/* =====================================================
   ALGOSPHERE 2025 — Design System & Styles
   A futuristic dark-theme landing page with glassmorphism,
   scroll-driven animations, and modern CSS techniques.
   ===================================================== */

/* ======================== RESET ======================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

/* =================== CUSTOM PROPERTIES =================== */
:root {
  /* — Colors — */
  --bg-primary: #06060e;
  --bg-secondary: #0b0b18;
  --bg-tertiary: #10101f;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-hover: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.14);

  --text-primary: #e8eaf6;
  --text-secondary: #8892b0;
  --text-muted: #5a6480;

  --accent-cyan: #00e5ff;
  --accent-purple: #7c3aed;
  --accent-pink: #ec4899;
  --accent-blue: #3b82f6;
  --accent-green: #10b981;

  --glow-cyan: rgba(0, 229, 255, 0.25);
  --glow-purple: rgba(124, 58, 237, 0.25);
  --glow-pink: rgba(236, 72, 153, 0.2);

  /* — Glass — */
  --glass-bg: rgba(13, 13, 26, 0.55);
  --glass-bg-hover: rgba(18, 18, 36, 0.7);
  --glass-border: rgba(255, 255, 255, 0.07);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);

  /* — Typography — */
  --font-heading: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* — Spacing — */
  --section-padding: clamp(80px, 12vh, 140px);
  --container-max: 1200px;
  --container-padding: clamp(20px, 5vw, 40px);

  /* — Radius — */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* — Transitions — */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --transition-fast: 0.2s var(--ease-out-expo);
  --transition-base: 0.4s var(--ease-out-expo);
  --transition-slow: 0.6s var(--ease-out-expo);
}

/* =================== BASE =================== */
body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  display: block;
}

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

ul, ol {
  list-style: none;
}

::selection {
  background: var(--accent-cyan);
  color: var(--bg-primary);
}

/* =================== LAYOUT =================== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.section {
  padding: var(--section-padding) 0;
  position: relative;
}

/* =================== CURSOR GLOW =================== */
.cursor-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.06) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
  opacity: 0;
  will-change: transform;
}

.cursor-glow.active {
  opacity: 1;
}

/* =================== SCROLL PROGRESS =================== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple), var(--accent-pink));
  z-index: 10000;
  transform-origin: left;
  transform: scaleX(0);
  will-change: transform;
  transition: none;
}

/* =================== PAGE LOADER =================== */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s var(--ease-out-expo), visibility 0.6s;
}

.page-loader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-content {
  text-align: center;
}

.loader-hex {
  font-size: 3rem;
  color: var(--accent-cyan);
  animation: loader-pulse 1.5s ease-in-out infinite;
  text-shadow: 0 0 30px var(--glow-cyan);
}

.loader-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--text-primary);
  margin-top: 16px;
}

.loader-bar {
  width: 200px;
  height: 3px;
  background: var(--surface);
  border-radius: 2px;
  margin: 24px auto 0;
  overflow: hidden;
}

.loader-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
  border-radius: 2px;
  animation: loader-bar 1.8s var(--ease-out-expo) forwards;
}

@keyframes loader-pulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 1; }
}

@keyframes loader-bar {
  from { width: 0; }
  to { width: 100%; }
}

/* =================== GLASSMORPHISM =================== */
.glass-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: transform var(--transition-base),
              border-color var(--transition-base),
              box-shadow var(--transition-base),
              background var(--transition-base);
}

.glass-card:hover {
  border-color: var(--border-hover);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 100%);
  box-shadow: var(--glass-shadow), 0 0 40px rgba(0, 229, 255, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* =================== TEXT GRADIENT =================== */
.text-gradient {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple), var(--accent-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* =================== BUTTONS =================== */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border: none;
  border-radius: var(--radius-xl);
  cursor: pointer;
  overflow: hidden;
  transition: transform var(--transition-fast), box-shadow var(--transition-base);
  text-decoration: none;
}

.btn-content {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-icon {
  transition: transform 0.3s var(--ease-spring);
}

.btn:hover .btn-icon {
  transform: translateY(3px);
}

.btn-outline:hover .btn-icon {
  transform: translateX(4px) translateY(0);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  color: var(--bg-primary);
  box-shadow: 0 4px 20px var(--glow-cyan), 0 0 60px rgba(0, 229, 255, 0.1);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 30px var(--glow-cyan), 0 0 80px rgba(0, 229, 255, 0.15);
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
}

.btn-glow {
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple), var(--accent-pink));
  border-radius: inherit;
  z-index: 0;
  opacity: 0;
  filter: blur(15px);
  transition: opacity var(--transition-base);
}

.btn-primary:hover .btn-glow {
  opacity: 0.5;
}

.btn-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: scale(0);
  z-index: 1;
  pointer-events: none;
}

.btn-ripple.active {
  animation: ripple 0.6s var(--ease-out-expo);
}

@keyframes ripple {
  to { transform: scale(4); opacity: 0; }
}

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

.btn-outline:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.1), inset 0 0 20px rgba(0, 229, 255, 0.03);
  transform: translateY(-2px);
}

.btn-outline:active {
  transform: translateY(0) scale(0.98);
}

/* =================== SECTION HEADER =================== */
.section-header {
  text-align: center;
  margin-bottom: clamp(48px, 6vw, 80px);
}

.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent-cyan);
  letter-spacing: 0.15em;
  margin-bottom: 16px;
}

.tag-slash {
  color: var(--accent-purple);
  margin-right: 6px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ===============================================
   NAVBAR
   =============================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: padding var(--transition-base),
              background var(--transition-base),
              backdrop-filter var(--transition-base),
              box-shadow var(--transition-base);
}

.navbar.scrolled {
  padding: 10px 0;
  background: rgba(6, 6, 14, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: transform var(--transition-fast);
}

.nav-logo:hover {
  transform: scale(1.03);
}

.logo-hex {
  font-size: 1.5rem;
  color: var(--accent-cyan);
  text-shadow: 0 0 20px var(--glow-cyan);
  transition: text-shadow var(--transition-base), transform var(--transition-base);
}

.nav-logo:hover .logo-hex {
  text-shadow: 0 0 30px var(--glow-cyan), 0 0 60px rgba(0, 229, 255, 0.15);
  transform: rotate(30deg);
}

.logo-accent {
  color: var(--accent-cyan);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  position: relative;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
  border-radius: 1px;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-out-expo);
}

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

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-link.active {
  color: var(--accent-cyan);
}

/* Mobile Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.toggle-bar {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.4s var(--ease-out-expo), opacity 0.3s;
}

.nav-toggle.active .toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.active .toggle-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle.active .toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===============================================
   HERO SECTION
   =============================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

/* Grid Background */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 70px 70px;
  mask-image: radial-gradient(ellipse at 50% 50%, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 20%, transparent 75%);
}

/* Floating Orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  will-change: transform;
}

.hero-orb-1 {
  width: 500px;
  height: 500px;
  background: var(--accent-cyan);
  opacity: 0.12;
  top: 10%;
  left: 5%;
  animation: float-orb-1 25s ease-in-out infinite;
}

.hero-orb-2 {
  width: 400px;
  height: 400px;
  background: var(--accent-purple);
  opacity: 0.1;
  top: 50%;
  right: 5%;
  animation: float-orb-2 20s ease-in-out infinite;
}

.hero-orb-3 {
  width: 300px;
  height: 300px;
  background: var(--accent-pink);
  opacity: 0.07;
  bottom: 10%;
  left: 30%;
  animation: float-orb-3 22s ease-in-out infinite;
}

@keyframes float-orb-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(60px, -40px) scale(1.1); }
  50% { transform: translate(-30px, 50px) scale(0.9); }
  75% { transform: translate(40px, 20px) scale(1.05); }
}

@keyframes float-orb-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-50px, 30px) scale(1.08); }
  66% { transform: translate(30px, -50px) scale(0.95); }
}

@keyframes float-orb-3 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(40px, -30px); }
}

/* Particles Canvas */
.hero-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Hero Content */
.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 0 var(--container-padding);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-cyan);
  letter-spacing: 0.08em;
  padding: 8px 20px;
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: 50px;
  background: rgba(0, 229, 255, 0.05);
  margin-bottom: 32px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 10px var(--glow-cyan);
  animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
  font-family: var(--font-heading);
  line-height: 1;
  margin-bottom: 24px;
}

.hero-title-line {
  display: block;
  font-size: clamp(3.5rem, 12vw, 9rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.hero-title-accent {
  background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-purple) 50%, var(--accent-pink) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 30px rgba(0, 229, 255, 0.2));
}

.hero-year {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: 0.5em;
  color: var(--accent-cyan);
  text-shadow: 0 0 40px var(--glow-cyan);
  margin-top: 8px;
  padding: 4px 24px;
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: var(--radius-sm);
}

.hero-tagline {
  font-family: var(--font-mono);
  font-size: clamp(0.9rem, 1.8vw, 1.15rem);
  color: var(--text-secondary);
  margin-bottom: 40px;
  min-height: 1.7em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.tagline-prefix {
  color: var(--accent-purple);
  font-weight: 500;
}

.typing-cursor {
  display: inline-block;
  color: var(--accent-cyan);
  animation: blink-cursor 0.8s step-end infinite;
}

@keyframes blink-cursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 10;
}

.scroll-mouse {
  width: 26px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.scroll-wheel {
  width: 3px;
  height: 8px;
  background: var(--accent-cyan);
  border-radius: 2px;
  animation: scroll-wheel 2s ease-in-out infinite;
}

@keyframes scroll-wheel {
  0% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(10px); opacity: 0; }
  51% { transform: translateY(0); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

.scroll-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* ===============================================
   HERO ENTRY ANIMATIONS
   =============================================== */
.animate-fade-in,
.animate-slide-up,
.animate-scale-in {
  opacity: 0;
}

body.loaded .animate-fade-in {
  animation: fadeIn 0.8s var(--ease-out-expo) forwards;
  animation-delay: var(--delay, 0s);
}

body.loaded .animate-slide-up {
  animation: slideUp 0.9s var(--ease-out-expo) forwards;
  animation-delay: var(--delay, 0s);
}

body.loaded .animate-scale-in {
  animation: scaleIn 0.7s var(--ease-spring) forwards;
  animation-delay: var(--delay, 0s);
}

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

@keyframes slideUp {
  from { opacity: 0; transform: translateY(60px) skewY(2deg); }
  to { opacity: 1; transform: translateY(0) skewY(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.7); }
  to { opacity: 1; transform: scale(1); }
}

/* ===============================================
   CSS SCROLL-DRIVEN ANIMATIONS (REVEAL)
   =============================================== */
.reveal-up,
.reveal-left,
.reveal-right,
.reveal-scale {
  opacity: 0;
  will-change: transform, opacity;
}

/* Modern browsers with animation-timeline support */
@supports (animation-timeline: view()) {
  .reveal-up {
    animation: revealUp linear both;
    animation-timeline: view();
    animation-range: entry 5% cover 25%;
  }

  .reveal-left {
    animation: revealLeft linear both;
    animation-timeline: view();
    animation-range: entry 5% cover 25%;
  }

  .reveal-right {
    animation: revealRight linear both;
    animation-timeline: view();
    animation-range: entry 5% cover 25%;
  }

  .reveal-scale {
    animation: revealScale linear both;
    animation-timeline: view();
    animation-range: entry 5% cover 25%;
  }
}

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

@keyframes revealLeft {
  from { opacity: 0; transform: translateX(-80px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes revealRight {
  from { opacity: 0; transform: translateX(80px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes revealScale {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

/* JS fallback: IntersectionObserver adds .is-visible */
.reveal-up.is-visible,
.reveal-left.is-visible,
.reveal-right.is-visible,
.reveal-scale.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s var(--ease-out-expo),
              transform 0.7s var(--ease-out-expo);
}

/* Staggered animations for grid items */
.program-card {
  transition-delay: calc(var(--stagger, 0) * 0.12s);
}

/* ===============================================
   ABOUT SECTION
   =============================================== */
.section-about {
  background: var(--bg-secondary);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-bottom: 48px;
}

.about-card {
  padding: clamp(28px, 4vw, 48px);
  position: relative;
  overflow: hidden;
}

.about-card:hover {
  transform: translateY(-6px);
}

.card-icon-wrap {
  margin-bottom: 20px;
}

.card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.1), rgba(124, 58, 237, 0.1));
  border: 1px solid rgba(0, 229, 255, 0.15);
  border-radius: var(--radius-md);
}

.about-card h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.about-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
}

.card-decoration {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  opacity: 0.04;
  transition: opacity var(--transition-base), transform var(--transition-base);
}

.about-card:hover .card-decoration {
  opacity: 0.08;
  transform: scale(1.3);
}

/* About Features */
.about-features {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.feature-item:hover {
  transform: translateY(-3px);
  border-color: var(--border-hover);
}

.feature-icon {
  font-size: 1.2rem;
}

.feature-text {
  color: var(--text-secondary);
}

/* ===============================================
   PROGRAMS SECTION
   =============================================== */
.section-programs {
  background: var(--bg-primary);
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.program-card {
  padding: clamp(28px, 4vw, 40px);
  position: relative;
  overflow: hidden;
  cursor: default;
}

.program-card:hover {
  transform: translateY(-8px);
}

.program-number {
  position: absolute;
  top: 20px;
  right: 24px;
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.03);
  line-height: 1;
  transition: color var(--transition-base);
}

.program-card:hover .program-number {
  color: rgba(0, 229, 255, 0.06);
}

.program-icon-wrap {
  margin-bottom: 20px;
}

.program-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.08), rgba(124, 58, 237, 0.08));
  border: 1px solid rgba(0, 229, 255, 0.12);
  border-radius: var(--radius-md);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.program-card:hover .program-icon {
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.1);
}

.program-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.program-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

.program-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.program-tags li {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-cyan);
  padding: 4px 12px;
  border: 1px solid rgba(0, 229, 255, 0.15);
  border-radius: 50px;
  background: rgba(0, 229, 255, 0.04);
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.program-card:hover .program-tags li {
  border-color: rgba(0, 229, 255, 0.25);
  background: rgba(0, 229, 255, 0.08);
}

.program-card-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200%;
  height: 200%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(0, 229, 255, 0.04) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition-slow);
  pointer-events: none;
}

.program-card:hover .program-card-glow {
  opacity: 1;
}

/* ===============================================
   STATS SECTION
   =============================================== */
.section-stats {
  position: relative;
  padding: clamp(60px, 8vh, 100px) 0;
  overflow: hidden;
}

.stats-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.04) 0%, rgba(124, 58, 237, 0.04) 50%, rgba(236, 72, 153, 0.03) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.stat-item {
  flex: 1;
  min-width: 160px;
  text-align: center;
  padding: 24px 20px;
}

.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
}

.stat-plus {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--accent-cyan);
}

.stat-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  margin-top: 8px;
}

.stat-divider {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--border-hover), transparent);
  flex: 0 0 auto;
}

/* ===============================================
   TIMELINE SECTION
   =============================================== */
.section-timeline {
  background: var(--bg-secondary);
}

.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 0;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
  transform: translateX(-50%);
}

.timeline-line-fill {
  width: 100%;
  height: 0%;
  background: linear-gradient(to bottom, var(--accent-cyan), var(--accent-purple), var(--accent-pink));
  border-radius: 1px;
  transition: height 0.05s linear;
}

.timeline-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  margin-bottom: 48px;
  padding: 0 20px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-left {
  justify-content: flex-start;
  padding-right: calc(50% + 40px);
}

.timeline-right {
  justify-content: flex-end;
  padding-left: calc(50% + 40px);
  padding-right: 20px;
}

.timeline-dot {
  position: absolute;
  left: 50%;
  top: 24px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-cyan);
  border: 3px solid var(--bg-secondary);
  transform: translateX(-50%);
  z-index: 2;
  box-shadow: 0 0 15px var(--glow-cyan);
}

.timeline-dot-pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid var(--accent-cyan);
  opacity: 0;
  animation: dot-pulse 3s ease-out infinite;
}

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

.timeline-card {
  padding: clamp(20px, 3vw, 32px);
  width: 100%;
}

.timeline-card:hover {
  transform: translateY(-4px);
}

.timeline-date {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-cyan);
  letter-spacing: 0.05em;
  padding: 4px 12px;
  border: 1px solid rgba(0, 229, 255, 0.15);
  border-radius: 50px;
  background: rgba(0, 229, 255, 0.04);
  margin-bottom: 12px;
}

.timeline-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.timeline-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ===============================================
   FOOTER
   =============================================== */
.footer {
  position: relative;
  padding: clamp(60px, 8vh, 100px) 0 40px;
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
  overflow: hidden;
}

.footer-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(0, 229, 255, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.footer-logo .logo-hex {
  font-size: 1.3rem;
}

.footer-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.8;
  max-width: 300px;
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  position: relative;
  transition: color var(--transition-fast), transform var(--transition-fast);
  display: inline-block;
}

.footer-links a:hover {
  color: var(--accent-cyan);
  transform: translateX(4px);
}

.social-links {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.social-link svg {
  width: 18px;
  height: 18px;
}

.social-link:hover {
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(0, 229, 255, 0.15);
}

.footer-email {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.footer-email:hover {
  color: var(--accent-cyan);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-credit .heart {
  color: var(--accent-pink);
  animation: heartbeat 1.5s ease-in-out infinite;
  display: inline-block;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  15% { transform: scale(1.25); }
  30% { transform: scale(1); }
  45% { transform: scale(1.15); }
}

/* ===============================================
   RESPONSIVE DESIGN
   =============================================== */
@media (max-width: 1024px) {
  .programs-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
  }
}

@media (max-width: 768px) {
  /* Navbar Mobile */
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 85vw);
    height: 100vh;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 90px 32px 32px;
    background: rgba(6, 6, 14, 0.95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-left: 1px solid var(--border);
    transform: translateX(100%);
    transition: transform 0.5s var(--ease-out-expo);
    z-index: 999;
  }

  .nav-links.active {
    transform: translateX(0);
  }

  .nav-link {
    font-size: 1.1rem;
    padding: 12px 16px;
    width: 100%;
  }

  /* About grid */
  .about-grid {
    grid-template-columns: 1fr;
  }

  /* Programs grid */
  .programs-grid {
    grid-template-columns: 1fr;
  }

  /* Stats */
  .stat-divider {
    display: none;
  }

  .stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  /* Timeline */
  .timeline-line {
    left: 20px;
  }

  .timeline-left,
  .timeline-right {
    padding-left: 60px;
    padding-right: 20px;
    justify-content: flex-start;
  }

  .timeline-dot {
    left: 20px;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  /* Hero */
  .hero-title-line {
    font-size: clamp(2.8rem, 14vw, 5rem);
  }

  .scroll-indicator {
    display: none;
  }

  /* Cursor glow hidden on touch */
  .cursor-glow {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-title-line {
    font-size: clamp(2.2rem, 14vw, 3.5rem);
  }

  .hero-year {
    font-size: 1.2rem;
    letter-spacing: 0.3em;
  }

  .hero-cta {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .about-features {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ===============================================
   PREFERS REDUCED MOTION
   =============================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .hero-orb,
  .cursor-glow,
  .hero-particles,
  .scroll-indicator {
    display: none;
  }

  .reveal-up,
  .reveal-left,
  .reveal-right,
  .reveal-scale,
  .animate-fade-in,
  .animate-slide-up,
  .animate-scale-in {
    opacity: 1 !important;
    transform: none !important;
  }
}
