/* ============================================================
   Макет 3 — hero-секция портфолио. Чистый HTML/CSS/JS.
   Токены дизайна — в :root, как требует спецификация.
   ============================================================ */

:root {
  --bg: #030305;
  --text-primary: #ffffff;
  --text-secondary: #d5d5d5;
  --accent: #8a63f8;
  --success: #00ff88;

  --glass-bg: rgba(20, 20, 25, 0.4);
  --glass-border: rgba(255, 255, 255, 0.08);

  --accent-gradient: linear-gradient(135deg, #8a63f8 0%, #5c43fa 100%);
  --accent-gradient-hover: linear-gradient(135deg, #9c7afa 0%, #6d56fb 100%);
  --accent-text-gradient: linear-gradient(90deg, #9c7afa 0%, #5a8cff 100%);
  --video-overlay-gradient: linear-gradient(
    90deg,
    rgba(5, 5, 8, 0.95) 0%,
    rgba(29, 29, 53, 0.182) 40%,
    rgba(5, 5, 8, 0.4) 100%
  );

  --font-primary: 'Outfit', system-ui, -apple-system, sans-serif;
  --font-secondary: 'Inter', system-ui, -apple-system, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-primary);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ---------- каркас ---------- */

.hero-section {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 2rem 4rem;
  overflow: hidden;
}

.video-container {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  inset: 0;
  background: var(--video-overlay-gradient);
}

/* ---------- навигация ---------- */

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.logo i {
  font-size: 1.8rem;
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-link {
  position: relative;
  font-family: var(--font-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--accent-gradient);
}

.mobile-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text-primary);
  font-size: 1.4rem;
  cursor: pointer;
}

/* ---------- кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 2rem;
  border-radius: 8px;
  font-family: var(--font-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: 0.3s ease;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 8px 24px rgba(138, 99, 248, 0.25);
}

.btn-primary:hover {
  background: var(--accent-gradient-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(138, 99, 248, 0.4);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

/* ---------- центральный блок ---------- */

.hero-content {
  display: flex;
  flex: 1;
  align-items: center;
  padding: 2rem 0;
}

.text-wrapper {
  max-width: 800px;
}

.greeting {
  margin-bottom: 1rem;
  font-family: var(--font-secondary);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
}

.main-title {
  margin-bottom: 1rem;
  font-size: 4.5rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1px;
  color: var(--text-primary);
}

.sub-title {
  margin-bottom: 2rem;
  font-size: 1.8rem;
  font-weight: 500;
  background: var(--accent-text-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.description {
  max-width: 560px;
  margin-bottom: 3rem;
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-secondary);
}

.cta-group {
  display: flex;
  gap: 1rem;
}

/* ---------- подвал героя ---------- */

.hero-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  padding-top: 2rem;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.stats-group {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.stat-value {
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1;
}

.stat-label {
  font-family: var(--font-secondary);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.stat-line {
  width: 1px;
  height: 32px;
  background: var(--glass-border);
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 1.1rem;
  transition: 0.3s ease;
}

.social-link:hover {
  background: #ffffff;
  color: var(--bg);
  transform: translateY(-3px);
}

/* ---------- индикатор прокрутки ---------- */

.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.mouse {
  display: flex;
  justify-content: center;
  width: 24px;
  height: 38px;
  padding-top: 8px;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
}

.wheel {
  width: 3px;
  height: 6px;
  border-radius: 2px;
  background: var(--text-primary);
  animation: wheel 2s ease-in-out infinite;
}

.scroll-label {
  font-family: var(--font-secondary);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-secondary);
}

/* ---------- стеклянная панель ---------- */

.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 1.5rem 2rem;
  max-width: 320px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.availability-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}

.availability-title {
  font-family: var(--font-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.availability-text {
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--text-secondary);
}

.pulse-dot {
  position: relative;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--success);
}

.pulse-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--success);
  animation: pulse 2s ease-out infinite;
}

/* ---------- анимации ---------- */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes wheel {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  100% {
    transform: translateY(15px);
    opacity: 0;
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(2.5);
    opacity: 0;
  }
}

.animate-fade-up {
  opacity: 0;
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 {
  animation-delay: 0.1s;
}
.delay-2 {
  animation-delay: 0.2s;
}
.delay-3 {
  animation-delay: 0.3s;
}
.delay-5 {
  animation-delay: 0.5s;
}

/* ---------- адаптив ---------- */

@media (max-width: 1200px) {
  .hero-section {
    padding: 2rem;
  }

  .main-title {
    font-size: 4.5rem;
  }
}

@media (max-width: 1024px) {
  .nav-links,
  .nav-actions {
    display: none;
  }

  .mobile-menu-toggle {
    display: inline-flex;
  }

  .hero-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 3rem;
  }

  .scroll-indicator {
    display: none;
  }

  .footer-left {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .glass-panel {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding: 1.5rem;
  }

  .main-title {
    font-size: 3.5rem;
  }

  .sub-title {
    font-size: 1.4rem;
  }

  .cta-group {
    flex-direction: column;
  }

  .footer-left {
    flex-direction: column;
    align-items: flex-start;
  }

  .stats-group {
    flex-wrap: wrap;
  }

  .stat-line {
    display: none;
  }
}

@media (max-width: 480px) {
  .main-title {
    font-size: 2.8rem;
  }

  .sub-title {
    font-size: 1.2rem;
  }
}
