/* ===================================
   INDEX PAGE SPECIFIC STYLES
   ==================================== */

/* 1. HERO SECTION */
.hero {
  position: relative;
  z-index: 10; /* CRUCIAL: Keeps Hero content on top */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  pointer-events: auto;
}

/* Light Mode Hero */
[data-theme="light"] .hero,
.light-mode .hero {
  background: rgba(0, 0, 0, 0.14);
}

/* Hero Content Animations */
.hero-badge,
.hero-title,
.hero-subtitle,
.hero-btns {
  position: relative;
  z-index: 10;
  opacity: 0;
  animation: slideUpFade 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.hero-badge {
  animation-delay: 0.2s;
  display: inline-block;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 500px;
  color: #007aff;
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
}

.hero-title {
  animation-delay: 0.4s;
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 1.5rem;
}

.hero-title span {
  background: white;
  background-size: 100% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textShine 6s linear infinite;
}

[data-theme="light"] .hero-title span,
.light-mode .hero-title span {
  background: black;
  background-size: 100% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textShine 6s linear infinite;
}

.hero-subtitle {
  animation-delay: 0.6s;
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 3rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
}

.hero-btns {
  animation-delay: 0.8s;
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(0, 122, 255, 0.2) 0%, rgba(0, 0, 0, 0) 70%);
  z-index: 1;
  pointer-events: none;
  animation: glowBreathe 8s ease-in-out infinite alternate;
}

/* ============================================================
   2. BASE GALLERY STYLES (LARGE DESKTOP)
   - Floats behind the Hero section as an animated background
   ============================================================ */
.scroll-gallery {
  position: absolute; /* This floats the gallery behind the hero */
  inset: 0;
  z-index: 0;         /* Keeps it behind the Hero content */
  width: 100%;
  height: 100%;       /* Fill the hero section */
  background: var(--color-midnight);
  overflow: hidden;
  display: flex;
  gap: 20px;
  padding: 4rem 2rem;
  pointer-events: none;
}

.column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 100%;
  overflow: hidden;
}

.column-track {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Vertical Animations for Desktop and Tablet */
.column-up .column-track { animation: scrollUp 25s linear infinite; }
.column-down .column-track { animation: scrollDown 25s linear infinite; }

.column-track img {
  width: 100%;
  height: 350px;
  object-fit: cover;
}

@keyframes scrollUp {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

@keyframes scrollDown {
  0% { transform: translateY(-50%); }
  100% { transform: translateY(0); }
}

/* --- MEDIUM SCREENS (Tablet) --- */
@media (max-width: 1100px) and (min-width: 769px) {
  .scroll-gallery {
    position: absolute !important;
    inset: 0 !important;
    z-index: 0 !important;
    display: flex;
    height: 100% !important;
    width: 100% !important;
    padding: 2rem 1.5rem;
  }
  #col3 { display: none; }
}

/* --- SMALL SCREENS (Mobile) --- */
@media (max-width: 768px) {
  .scroll-gallery {
    position: absolute !important;
    inset: 0 !important;
    z-index: 0 !important;
    display: block;
    height: 100% !important;
    width: 100% !important;
    padding: 0;
  }

  /* Ensure the Hero takes up its own space and doesn't collapse */
  .hero {
    position: relative;
    width: 100%;
    min-height: 80vh; 
  }

  #col2, #col3 { display: none; }
  #col1, #col1 .column-track {
    height: 100%;
    width: 100%;
    position: relative;
  }

  .column-track { animation: none !important; }

  .column-track img {
    position: absolute; 
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    transform: translateX(100%);
    transition: transform 0.6s ease-in-out;
  }

  .column-track img.active { transform: translateX(0); z-index: 2; }
  .column-track img.exit { transform: translateX(-100%); z-index: 1; }
}
.stats-section {
  padding: 4rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.01); /* Very subtle background lift */
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: #007aff; /* Your primary blue accent */
  letter-spacing: -2px;
  margin-bottom: 0.5rem;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255, 255, 255,0.4);
}
[data-theme="light"] .stat-label {
  color: rgba(0, 0, 0, 0.4);
}



/* Responsive: 2x2 on Tablet, 1x4 on Mobile */
@media (max-width: 992px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; gap: 3rem; }
}