/* ============================================
   INTRODUCTION — Cinematic hero with kinetic text reveal
   ============================================ */

/* ——— keyframes ——— */
@keyframes introUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes introFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}


@keyframes introScrollPulse {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 0.8; }
  60%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  100% { transform: scaleY(1); transform-origin: bottom; opacity: 0; }
}


/* ——— section root ——— */
#intro {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  background-image: url('/images/backgrounds/Eyekonika_Hero.jpg');
  background-size: cover;
  background-position: center 60%;
  background-attachment: scroll;
  background-color: #030712;

  font-family: 'Poppins', sans-serif;
  color: white;
  overflow: hidden;
}


/* ——— dark gradient overlay ——— */
.intro-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(3, 7, 18, 0.78) 0%,
      rgba(3, 7, 18, 0.70) 30%,
      rgba(3, 7, 18, 0.70) 70%,
      rgba(3, 7, 18, 0.84) 100%
    );
  box-shadow: inset 0 0 220px rgba(3, 7, 18, 0.72);
  z-index: 1;
}


/* ——— inner content ——— */
.intro-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 4rem 2rem;
  max-width: 680px;
  width: 100%;
}


/* ——— kinetic animations ——— */
/* Preloader fades out at ~1.3s and takes 0.7s; animations start at 1.6s
   so they begin exactly as the preloader completes its exit.
   animation-fill-mode: both keeps elements invisible before their delay fires. */

.intro-logo {
  position: absolute;
  top: 2rem;
  left: 3.5rem;
  z-index: 2;
  display: block;
  max-width: 280px;
  width: clamp(200px, 22vw, 280px);
  height: auto;
  filter: drop-shadow(0 0 48px rgba(96, 165, 250, 0.15));

  animation: introUp 1s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 1.6s;
}

.intro-catchphrase {
  font-size: clamp(1.15rem, 2.6vw, 1.9rem);
  font-weight: 300;
  letter-spacing: 0.1em;
  color: #fff;
  margin: 0 0 0.9rem;
  line-height: 1.4;
  text-shadow:
    0 2px 16px rgba(0, 0, 0, 0.95),
    0 0 48px rgba(0, 0, 0, 0.8);

  animation: introUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 2.0s;
}

.intro-sub {
  font-size: clamp(0.68rem, 1.2vw, 0.85rem);
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  margin: 0 0 2.6rem;
  line-height: 1.8;
  text-shadow:
    0 1px 8px rgba(0, 0, 0, 0.95),
    0 0 24px rgba(0, 0, 0, 0.8);

  animation: introFade 1s ease both;
  animation-delay: 2.4s;
}

/* ——— CTA group ——— */
.intro-ctas {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;

  animation: introUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 2.65s;
}

.intro-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.88em 2.3em;
  border: 1px solid rgba(96, 165, 250, 0.38);
  border-radius: 2px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(96, 165, 250, 0.82);
  background: rgba(96, 165, 250, 0.05);
  transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}

.intro-cta--primary {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.75), rgba(14, 165, 233, 0.65));
  border-color: rgba(96, 165, 250, 0.55);
  color: #fff;
}

.intro-cta--primary:hover {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.95), rgba(14, 165, 233, 0.85));
  border-color: rgba(96, 165, 250, 0.85);
  color: #fff;
}

.intro-cta--secondary:hover {
  background: rgba(96, 165, 250, 0.13);
  color: #fff;
  border-color: rgba(96, 165, 250, 0.65);
}

.intro-cta svg {
  flex-shrink: 0;
  opacity: 0.7;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.intro-cta--secondary:hover svg {
  transform: translateX(4px);
  opacity: 1;
}

/* ——— animated scroll indicator ——— */
.intro-scroll {
  margin-top: 3.2rem;
  width: 1px;
  height: 52px;
  overflow: hidden;

  animation: introFade 0.6s ease both;
  animation-delay: 3s;
}

.intro-scroll-line {
  width: 1px;
  height: 100%;
  background: linear-gradient(
    to bottom,
    #60a5fa,
    rgba(96, 165, 250, 0.2)
  );
  animation: introScrollPulse 1.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  animation-delay: 3.2s;
}


/* ——— reduced motion ——— */
@media (prefers-reduced-motion: reduce) {
  .intro-logo,
  .intro-catchphrase,
  .intro-sub,
  .intro-ctas,
  .intro-scroll {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .intro-scroll-line {
    animation: none;
  }
}


/* ——— top-bar range: hide hero logo (sidebar shows it instead) ——— */
@media screen and (max-width: 1280px) {
  .intro-logo {
    display: none;
  }
}

/* ——— mobile ——— */
@media screen and (max-width: 736px) {
  .intro-logo {
    display: block;
    position: static;
    max-width: 220px;
    width: clamp(140px, 50vw, 220px);
    margin: 0 auto 1.5rem;
  }

  .intro-inner {
    padding: 3rem 1.5rem;
  }

  .intro-catchphrase {
    letter-spacing: 0.05em;
  }

  .intro-sub {
    font-size: 0.8rem;
    letter-spacing: 0.12em;
  }

  /* Tightened stagger — reduces total wait by ~0.4s across the chain */
  .intro-logo         { animation-delay: 1.1s; }
  .intro-catchphrase  { animation-delay: 1.3s; }
  .intro-sub          { animation-delay: 1.45s; }
  .intro-ctas         { animation-delay: 1.6s; }
  .intro-scroll       { animation-delay: 2.0s; }
  .intro-scroll-line  { animation-delay: 2.2s; }
}

/* ——— small mobile: full-width stacked CTAs with adequate tap targets ——— */
@media screen and (max-width: 480px) {
  .intro-ctas {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }

  .intro-cta {
    width: 100%;
    justify-content: center;
    padding: 1.1em 1.6em;
    letter-spacing: 0.15em;
  }
}
