/* ═══════════════════════════════════════════════════════════════
   COSMOS — Main Stylesheet
   Dark space theme with glassmorphism, neon, and futuristic UI
═══════════════════════════════════════════════════════════════ */

/* ── CSS Custom Properties (Design Tokens) ── */
:root {
  /* Colors */
  --clr-bg: #03010a;
  --clr-bg-2: #060b1f;
  --clr-surface: rgba(255, 255, 255, 0.04);
  --clr-surface-hover: rgba(255, 255, 255, 0.08);
  --clr-border: rgba(255, 255, 255, 0.08);
  --clr-border-glow: rgba(100, 180, 255, 0.3);

  /* Accent Colors */
  --clr-accent: #4f8fff;
  --clr-accent-2: #a855f7;
  --clr-accent-3: #00f0ff;
  --clr-neon: #00f0ff;
  --clr-neon-2: #b06eff;

  /* Text */
  --clr-text: #e8eaf6;
  --clr-text-muted: rgba(232, 234, 246, 0.55);
  --clr-white: #ffffff;

  /* Gradients */
  --gradient-hero: linear-gradient(135deg, #03010a 0%, #0d1b4b 50%, #03010a 100%);
  --gradient-nebula: radial-gradient(ellipse at 20% 50%, rgba(75, 0, 130, 0.35) 0%, transparent 60%),
                     radial-gradient(ellipse at 80% 20%, rgba(0, 150, 255, 0.25) 0%, transparent 50%);
  --gradient-card: linear-gradient(135deg, rgba(255,255,255,0.07) 0%, rgba(255,255,255,0.02) 100%);
  --gradient-glow: linear-gradient(135deg, var(--clr-accent), var(--clr-accent-2));
  --gradient-text: linear-gradient(135deg, #4f8fff, #a855f7, #00f0ff);

  /* Fonts */
  --font-primary: 'Outfit', sans-serif;
  --font-secondary: 'Space Grotesk', sans-serif;

  /* Spacing */
  --section-padding: clamp(80px, 10vw, 130px);
  --container-width: 1240px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-med: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-slow: 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);

  /* Borders */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-card: 0 8px 40px rgba(0, 0, 0, 0.6);
  --shadow-neon-blue: 0 0 20px rgba(79, 143, 255, 0.4), 0 0 60px rgba(79, 143, 255, 0.15);
  --shadow-neon-purple: 0 0 20px rgba(168, 85, 247, 0.4), 0 0 60px rgba(168, 85, 247, 0.15);
  --shadow-neon-cyan: 0 0 20px rgba(0, 240, 255, 0.4), 0 0 60px rgba(0, 240, 255, 0.1);
}

/* ── Base Reset & Typography ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--clr-bg);
  color: var(--clr-text);
  font-family: var(--font-primary);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none; /* Hide default cursor for custom one */
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--clr-bg); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--clr-accent), var(--clr-accent-2));
  border-radius: var(--radius-full);
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── Utility: Container ── */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 clamp(16px, 5vw, 48px);
}

/* ── Utility: Gradient Text ── */
.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Starfield Canvas ── */
#starfield {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ═══════════════════════════════════════
   CUSTOM CURSOR
═══════════════════════════════════════ */
.cursor {
  position: fixed;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.9), rgba(79, 143, 255, 0.6));
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, opacity 0.2s;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.7), 0 0 30px rgba(0, 240, 255, 0.3);
  mix-blend-mode: screen;
}

.cursor-trail {
  position: fixed;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(0, 240, 255, 0.3);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.12s ease, width 0.3s, height 0.3s;
}

.cursor.cursor-hover {
  width: 36px;
  height: 36px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.9), rgba(79, 143, 255, 0.6));
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.8), 0 0 50px rgba(168, 85, 247, 0.3);
}

/* ═══════════════════════════════════════
   NAVIGATION
═══════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px clamp(16px, 5vw, 48px);
  transition: background var(--transition-med), backdrop-filter var(--transition-med), padding var(--transition-med);
}

.navbar.scrolled {
  background: rgba(3, 1, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--clr-border);
  padding: 14px clamp(16px, 5vw, 48px);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-secondary);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 3px;
}

.logo-icon {
  color: var(--clr-neon);
  font-size: 1.5rem;
  filter: drop-shadow(0 0 8px var(--clr-neon));
  animation: star-pulse 3s ease-in-out infinite;
}

.logo-text { color: var(--clr-white); }

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

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--clr-text-muted);
  position: relative;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--gradient-text);
  transition: width var(--transition-med);
  border-radius: var(--radius-full);
}

.nav-link:hover,
.nav-link.active {
  color: var(--clr-white);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.music-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  font-size: 1.1rem;
  transition: var(--transition-fast);
}

.music-btn:hover {
  background: var(--clr-surface-hover);
  border-color: var(--clr-accent);
  box-shadow: var(--shadow-neon-blue);
}

.nav-cta {
  padding: 9px 22px;
  background: var(--gradient-glow);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--clr-white);
  transition: var(--transition-fast);
  box-shadow: 0 4px 20px rgba(79, 143, 255, 0.3);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(79, 143, 255, 0.5);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 4px;
  z-index: 1100;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--clr-white);
  border-radius: 2px;
  transition: var(--transition-med);
}
.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(3, 1, 10, 0.97);
  backdrop-filter: blur(30px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-med);
}
.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}
.mobile-menu ul {
  display: flex;
  flex-direction: column;
  gap: 32px;
  text-align: center;
}
.mobile-link {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--clr-text-muted);
  transition: color var(--transition-fast);
}
.mobile-link:hover { color: var(--clr-neon); }

/* ═══════════════════════════════════════
   BUTTONS
═══════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
  transition: var(--transition-med);
}

/* Ripple effect on click */
.btn::before {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s, opacity 0.6s;
  opacity: 0;
  pointer-events: none;
}
.btn.ripple::before {
  width: 300px;
  height: 300px;
  opacity: 0;
}

.btn-primary {
  background: var(--gradient-glow);
  color: var(--clr-white);
  box-shadow: 0 6px 30px rgba(79, 143, 255, 0.4);
}
.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 40px rgba(79, 143, 255, 0.6), 0 0 0 1px rgba(79, 143, 255, 0.3);
}
.btn-primary svg { transition: transform var(--transition-fast); }
.btn-primary:hover svg { transform: translateX(4px); }

.btn-ghost {
  background: transparent;
  color: var(--clr-text);
  border: 1px solid var(--clr-border);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover {
  border-color: var(--clr-accent);
  color: var(--clr-white);
  background: rgba(79, 143, 255, 0.08);
  transform: translateY(-3px);
  box-shadow: var(--shadow-neon-blue);
}

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

/* Three.js planet wrapper */
.planet-wrapper {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(380px, 45vw, 700px);
  height: clamp(380px, 45vw, 700px);
  pointer-events: none;
  z-index: 2;
}

/* Nebula overlays */
.nebula {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 1;
}
.nebula-1 {
  width: 80vw;
  height: 80vw;
  max-width: 900px;
  max-height: 900px;
  top: -30%;
  left: -20%;
  background: radial-gradient(circle, rgba(79, 143, 255, 0.1) 0%, rgba(168, 85, 247, 0.07) 40%, transparent 70%);
  animation: nebula-drift 20s ease-in-out infinite alternate;
}
.nebula-2 {
  width: 60vw;
  height: 60vw;
  max-width: 700px;
  max-height: 700px;
  bottom: -20%;
  right: 5%;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.07) 0%, rgba(168, 85, 247, 0.1) 50%, transparent 70%);
  animation: nebula-drift 25s ease-in-out infinite alternate-reverse;
}

/* Orbital Rings */
.orbital-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(79, 143, 255, 0.12);
  pointer-events: none;
  z-index: 2;
}
.ring-1 {
  width: 550px;
  height: 550px;
  right: 8%;
  top: 50%;
  transform: translateY(-50%) rotateX(70deg) rotateY(15deg);
  animation: orbit-rotate 20s linear infinite;
  transform-style: preserve-3d;
}
.ring-2 {
  width: 750px;
  height: 750px;
  right: 1%;
  top: 50%;
  transform: translateY(-50%) rotateX(70deg) rotateY(15deg);
  animation: orbit-rotate 35s linear infinite reverse;
  border-color: rgba(168, 85, 247, 0.08);
}

.hero-content {
  position: relative;
  z-index: 5;
  max-width: 700px;
  padding: 0 clamp(16px, 5vw, 48px);
  padding-top: 100px;
}

.hero-subtitle {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--clr-neon);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-subtitle::before {
  content: '';
  width: 30px;
  height: 1.5px;
  background: var(--clr-neon);
  box-shadow: 0 0 8px var(--clr-neon);
}

.hero-title {
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 24px;
  letter-spacing: -2px;
}

.title-line {
  display: block;
}

.hero-description {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--clr-text-muted);
  max-width: 520px;
  margin-bottom: 36px;
  line-height: 1.75;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

/* Stats */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 20px 28px;
  background: var(--clr-surface);
  backdrop-filter: blur(20px);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  width: fit-content;
}

.stat {
  text-align: center;
}

.stat-num {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.stat-suffix {
  font-size: 1.2rem;
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.7rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--clr-text-muted);
  margin-top: 4px;
  display: block;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--clr-border);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 5;
  animation: scroll-pulse 2s ease-in-out infinite;
}

.scroll-line {
  width: 1.5px;
  height: 50px;
  background: linear-gradient(to bottom, var(--clr-accent), transparent);
  border-radius: var(--radius-full);
}

.scroll-indicator span {
  font-size: 0.65rem;
  letter-spacing: 3px;
  color: var(--clr-text-muted);
  text-transform: uppercase;
}

/* ═══════════════════════════════════════
   SECTION COMMONS
═══════════════════════════════════════ */
.section {
  position: relative;
  padding: var(--section-padding) 0;
  z-index: 2;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--clr-neon);
  margin-bottom: 14px;
  padding: 6px 18px;
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: var(--radius-full);
  background: rgba(0, 240, 255, 0.05);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 16px;
  line-height: 1.15;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--clr-text-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.75;
}

/* ═══════════════════════════════════════
   ABOUT / PLANETS SECTION
═══════════════════════════════════════ */
.about {
  background: radial-gradient(ellipse at 50% 100%, rgba(79, 143, 255, 0.04) 0%, transparent 60%);
}

.planets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

/* Planet Card */
.planet-card {
  position: relative;
  background: var(--gradient-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  overflow: hidden;
  transition: var(--transition-med);
  transform-style: preserve-3d;
  backdrop-filter: blur(10px);
}

.planet-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-card);
  border-radius: inherit;
  opacity: 0;
  transition: opacity var(--transition-med);
  z-index: 0;
}

.planet-card:hover {
  border-color: var(--clr-border-glow);
  transform: translateY(-6px);
  box-shadow: var(--shadow-card), 0 0 30px rgba(79, 143, 255, 0.12);
}

/* Glow blob behind card */
.card-glow {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: var(--glow-color, #4f8fff);
  opacity: 0.08;
  filter: blur(40px);
  transition: opacity var(--transition-med);
  pointer-events: none;
  z-index: 0;
}
.planet-card:hover .card-glow { opacity: 0.18; }

/* Planet ball */
.card-planet {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  box-shadow: inset -20px -10px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 0, 0, 0.3);
  animation: planet-float 6s ease-in-out infinite;
  transition: transform var(--transition-med);
}
.planet-card:hover .card-planet { transform: scale(1.1) rotate(5deg); }

.card-content {
  position: relative;
  z-index: 1;
}

.card-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--clr-white);
}

.card-text {
  font-size: 0.9rem;
  color: var(--clr-text-muted);
  line-height: 1.65;
  margin-bottom: 16px;
}

.card-stats {
  display: flex;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--clr-text-muted);
  font-weight: 500;
}

/* ═══════════════════════════════════════
   DISCOVERIES / TIMELINE SECTION
═══════════════════════════════════════ */
.discoveries {
  background: linear-gradient(to bottom, transparent, rgba(79, 143, 255, 0.03) 50%, transparent);
}

.discoveries-nebula {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 10% 50%, rgba(168, 85, 247, 0.07) 0%, transparent 50%),
    radial-gradient(ellipse at 90% 50%, rgba(79, 143, 255, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

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

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1.5px;
  background: linear-gradient(to bottom, transparent, var(--clr-accent) 10%, var(--clr-accent-2) 90%, transparent);
  transform: translateX(-50%);
  opacity: 0.3;
}

.timeline-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 28px;
  margin-bottom: 48px;
  padding-left: calc(50% + 40px);
}

.timeline-right {
  flex-direction: row-reverse;
  padding-left: 0;
  padding-right: calc(50% + 40px);
  text-align: right;
}

.timeline-dot {
  position: absolute;
  left: calc(50% - 7px);
  top: 18px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gradient-glow);
  box-shadow: 0 0 0 4px rgba(79, 143, 255, 0.2), var(--shadow-neon-blue);
  z-index: 2;
  transition: transform var(--transition-med), box-shadow var(--transition-med);
}
.timeline-item:hover .timeline-dot {
  transform: scale(1.5);
  box-shadow: 0 0 0 6px rgba(79, 143, 255, 0.3), var(--shadow-neon-blue);
}

.timeline-year {
  position: absolute;
  left: calc(50% - 68px);
  top: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--clr-accent);
  white-space: nowrap;
}

.timeline-right .timeline-year {
  left: auto;
  right: calc(50% - 68px);
}

.timeline-card {
  background: var(--gradient-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: 24px;
  flex: 1;
  backdrop-filter: blur(10px);
  transition: var(--transition-med);
}
.timeline-card:hover {
  border-color: var(--clr-border-glow);
  transform: translateX(6px);
  box-shadow: var(--shadow-card);
}
.timeline-right .timeline-card:hover { transform: translateX(-6px); }

.tl-icon {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.timeline-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--clr-white);
  margin-bottom: 8px;
}

.timeline-card p {
  font-size: 0.875rem;
  color: var(--clr-text-muted);
  line-height: 1.7;
}

/* ═══════════════════════════════════════
   FEATURES SECTION
═══════════════════════════════════════ */
.features {
  background: radial-gradient(ellipse at 50% 50%, rgba(168, 85, 247, 0.05) 0%, transparent 60%);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}

.feature-item {
  padding: 32px 24px;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  text-align: center;
  backdrop-filter: blur(10px);
  transition: var(--transition-med);
  animation-delay: var(--delay, 0s);
}

.feature-item:hover {
  border-color: var(--clr-border-glow);
  background: var(--clr-surface-hover);
  transform: translateY(-8px);
  box-shadow: var(--shadow-card), var(--shadow-neon-blue);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 18px;
  display: block;
  animation: planet-float 4s ease-in-out infinite;
}

.feature-item h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--clr-white);
  margin-bottom: 12px;
}

.feature-item p {
  font-size: 0.875rem;
  color: var(--clr-text-muted);
  line-height: 1.7;
}

/* ═══════════════════════════════════════
   GALLERY SECTION
═══════════════════════════════════════ */
.gallery {
  background: linear-gradient(to bottom, transparent, rgba(168, 85, 247, 0.03) 50%, transparent);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 280px;
  gap: 20px;
}

.item-large {
  grid-row: span 2;
}

.item-wide {
  grid-column: span 2;
}

.gallery-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.gallery-img {
  width: 100%;
  height: 100%;
  position: relative;
  transition: transform var(--transition-med);
}

.gallery-item:hover .gallery-img {
  transform: scale(1.06);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(3, 1, 10, 0.9) 0%, rgba(3, 1, 10, 0.2) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  opacity: 0;
  transition: opacity var(--transition-med);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--clr-white);
  margin-bottom: 6px;
}

.gallery-overlay p {
  font-size: 0.8rem;
  color: var(--clr-text-muted);
}

/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */
.footer {
  position: relative;
  background: linear-gradient(to top, rgba(79, 143, 255, 0.03), transparent);
  border-top: 1px solid var(--clr-border);
  overflow: hidden;
  z-index: 2;
}

.footer-nebula {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(79, 143, 255, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 64px;
  padding: 64px 0 48px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-secondary);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 3px;
}

.footer-tagline {
  font-size: 0.9rem;
  color: var(--clr-text-muted);
  line-height: 1.6;
  max-width: 280px;
}

.footer-socials {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--clr-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: var(--transition-fast);
  color: var(--clr-text-muted);
}

.social-link:hover {
  border-color: var(--clr-accent);
  color: var(--clr-accent);
  box-shadow: var(--shadow-neon-blue);
  transform: translateY(-3px);
}

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--clr-white);
  margin-bottom: 20px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  font-size: 0.875rem;
  color: var(--clr-text-muted);
  transition: color var(--transition-fast);
}

.footer-col a:hover {
  color: var(--clr-accent);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  border-top: 1px solid var(--clr-border);
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--clr-text-muted);
}

.footer-coords {
  display: flex;
  gap: 24px;
  font-size: 0.75rem;
  color: var(--clr-text-muted);
  letter-spacing: 0.5px;
}

/* ═══════════════════════════════════════
   SCROLL REVEAL SYSTEM
═══════════════════════════════════════ */
.reveal-up,
.reveal-card,
.reveal-left,
.reveal-right {
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-up { transform: translateY(40px); }
.reveal-card { transform: translateY(30px) scale(0.97); }
.reveal-left { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }

.reveal-up.visible,
.reveal-card.visible,
.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: translate(0) scale(1);
}

.animate-reveal {
  opacity: 0;
  transform: translateY(30px);
}

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media (max-width: 1024px) {
  .planet-wrapper {
    width: clamp(280px, 40vw, 500px);
    height: clamp(280px, 40vw, 500px);
    right: -10%;
    opacity: 0.7;
  }
  .timeline-item,
  .timeline-right {
    padding-left: 70px;
    padding-right: 0;
    flex-direction: column;
    text-align: left;
  }
  .timeline-right .timeline-card:hover { transform: translateX(6px); }
  .timeline-line { left: 20px; }
  .timeline-dot { left: 13px; }
  .timeline-year { left: 42px; top: -4px; position: relative; }
  .timeline-right .timeline-year { right: auto; left: 0; }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .item-wide { grid-column: span 2; }
  .item-large { grid-row: span 1; }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions .nav-cta { display: none; }
  .hamburger { display: flex; }
  .nav-actions .music-btn { display: flex; }

  .hero-content { padding-top: 120px; text-align: center; }
  .hero-subtitle { justify-content: center; }
  .hero-description { margin: 0 auto 36px; }
  .hero-cta-group { justify-content: center; }
  .hero-stats { flex-direction: row; flex-wrap: wrap; justify-content: center; width: auto; }
  .planet-wrapper { opacity: 0.3; width: 80vw; height: 80vw; top: 10%; right: 50%; transform: translateX(50%); }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
  }
  .item-wide, .item-large { grid-column: span 1; grid-row: span 1; }

  .footer-top { grid-template-columns: 1fr; gap: 40px; }
  .footer-links-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: column; text-align: center; }
  .ring-1, .ring-2 { display: none; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.6rem; }
  .btn { padding: 12px 22px; font-size: 0.875rem; }
  .hero-stats { gap: 16px; padding: 14px 18px; }
  .footer-links-grid { grid-template-columns: 1fr; }
  .footer-coords { flex-direction: column; gap: 8px; align-items: center; }
}
