/* Переменные для легкой настройки */
:root {
  --bg-dark: #0f172a;
  --bg-card: rgba(30, 41, 59, 0.4);
  --border-card: rgba(255, 255, 255, 0.1);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --accent-1: #3b82f6;
  --accent-2: #8b5cf6;
  --accent-3: #10b981;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* если есть горизонтальный скролл */
}

html {
    margin: 0;
    padding: 0;
}

.terminex-container {
  background-color: var(--bg-dark);
  min-height: 100vh;
  color: var(--text-main);
  font-family: 'Inter', sans-serif;
  position: relative;
  overflow-x: hidden;
  padding: 0 2rem;
}

/* Анимированные пятна на фоне */
.glow-blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  z-index: -1;
  opacity: 0.5;
  animation: float 10s infinite alternate;
}

.blob-1 {
  top: -10%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: var(--accent-2);
}

.blob-2 {
  bottom: -10%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: var(--accent-1);
  animation-delay: -5s;
}

@keyframes float {
  0% { transform: translate(0, 0); }
  100% { transform: translate(50px, 50px); }
}

/* Навигация (Glassmorphism) */
.glass-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  margin-bottom: 4rem;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-card);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.logo .dot { 
  color: var(--accent-1); 
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover, 
.nav-links a.active {
  color: var(--text-main);
  text-shadow: 0 0 10px rgba(255,255,255,0.3);
}

.btn-login {
  padding: 0.5rem 1.5rem;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  border: none;
  border-radius: 8px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

/* Hero Секция */
.hero-section {
  text-align: center;
  margin-bottom: 5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero-title {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  font-weight: 800;
}

.gradient-text {
  background: linear-gradient(to right, var(--accent-1), var(--accent-2), var(--accent-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Сетка проектов */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto 5rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

/* Эффект при наведении */
.project-card:hover {
  transform: translateY(-8px);
  border-color: rgba(139, 92, 246, 0.5); 
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.project-card:hover::before {
  opacity: 1;
}

/* Легкое свечение сверху при ховере */
.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  opacity: 0;
  transition: opacity 0.3s;
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  background: rgba(255,255,255,0.05);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

.project-card h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.project-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.tech-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tech-tags span {
  font-size: 0.75rem;
  padding: 4px 8px;
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
  color: var(--accent-1);
  font-family: monospace;
}

/* Стиль для LifeLine (выделяем его) */
.highlight-card {
  border-color: rgba(59, 130, 246, 0.3);
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.6), rgba(30, 41, 59, 0.3));
}

.highlight-card .sub-features {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.5rem;
}

.highlight-card .sub-features li {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.highlight-card .sub-features li strong {
  color: var(--text-main);
}

.footer {
  text-align: center;
  padding: 2rem;
  border-top: 1px solid var(--border-card);
  color: var(--text-muted);
  font-size: 0.9rem;
}