

/* Orbital STRIKE Intro Animation (scoped to .strike-intro) */
.strike-intro {
  position: relative;
  min-height: min(60vh, 65rem);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: hsl(var(--bg));
}

@media (max-width: 768px) {
  .strike-intro {
    min-height: min(55vh, 48rem);
  }
}

/* Starfield background (scoped) */
.strike-intro__sky {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.strike-intro__sky::before,
.strike-intro__sky::after {
  content: '';
  position: absolute;
  width: 2px;
  height: 2px;
  background: transparent;
  border-radius: 50%;
  box-shadow: 
    1131px 485px hsl(var(--txt)),
    1938px 1638px hsl(var(--txt)),
    1529px 388px hsl(var(--txt)),
    464px 1467px hsl(var(--txt)),
    1084px 1652px hsl(var(--txt)),
    966px 1914px hsl(var(--txt)),
    1398px 1177px hsl(var(--txt)),
    1946px 1413px hsl(var(--txt)),
    1967px 982px hsl(var(--txt)),
    1748px 711px hsl(var(--txt)),
    504px 1661px hsl(var(--txt)),
    1622px 1655px hsl(var(--txt)),
    182px 1941px hsl(var(--txt)),
    1014px 1749px hsl(var(--txt)),
    524px 1967px hsl(var(--txt)),
    1142px 340px hsl(var(--txt)),
    1061px 1395px hsl(var(--txt)),
    1529px 351px hsl(var(--txt)),
    1815px 1208px hsl(var(--txt)),
    729px 1431px hsl(var(--txt)),
    330px 1353px hsl(var(--txt)),
    1736px 1946px hsl(var(--txt)),
    1495px 830px hsl(var(--txt)),
    419px 1744px hsl(var(--txt)),
    1679px 1410px hsl(var(--txt)),
    1184px 1798px hsl(var(--txt)),
    1831px 224px hsl(var(--txt)),
    728px 683px hsl(var(--txt)),
    1926px 1288px hsl(var(--txt)),
    1894px 1467px hsl(var(--txt));
}

.strike-intro__sky::after {
  width: 3px;
  height: 3px;
  box-shadow: 
    1234px 762px hsl(var(--accent)),
    456px 1523px hsl(var(--accent)),
    1789px 342px hsl(var(--accent)),
    923px 1876px hsl(var(--accent)),
    234px 567px hsl(var(--accent)),
    1456px 1123px hsl(var(--accent)),
    678px 234px hsl(var(--accent)),
    1890px 1456px hsl(var(--accent));
}

/* STRIKE Title */
.strike-intro__title {
  font-family: 'Josefin Sans', sans-serif;
  font-size: clamp(3rem, 10vw, 8rem);
  font-weight: 700;
  letter-spacing: clamp(1rem, 3vw, 3rem);
  color: hsl(var(--txt));
  text-shadow: 
    0 0 10px hsl(var(--accent) / 0.8),
    0 0 20px hsl(var(--accent) / 0.6),
    0 0 30px hsl(var(--accent) / 0.4);
  position: relative;
  z-index: 10;
}

.strike-intro__title em {
  font-style: normal;
  position: relative;
  display: inline-block;
}

/* Orbital planet letters */
.strike-intro__title .planet {
  position: relative;
}

.strike-intro__title .planet::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(6rem, 15vw, 12rem);
  height: clamp(6rem, 15vw, 12rem);
  border: 2px solid hsl(var(--accent) / 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.strike-intro__title .planet::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(1rem, 2vw, 1.5rem);
  height: clamp(1rem, 2vw, 1.5rem);
  background: hsl(var(--accent));
  border-radius: 50%;
  box-shadow: 0 0 10px hsl(var(--accent)), 0 0 20px hsl(var(--accent));
  animation: orbit 3s linear infinite;
  transform-origin: 0 0;
}

/* Left orbit (T) */
.strike-intro__title .planet.left::after {
  animation: orbit-left 3s linear infinite;
}

/* Right orbit (K) */
.strike-intro__title .planet.right::after {
  animation: orbit-right 3s linear infinite reverse;
}

@keyframes orbit-left {
  0% {
    transform: translate(-50%, -50%) rotate(0deg) translateX(clamp(3rem, 7.5vw, 6rem)) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg) translateX(clamp(3rem, 7.5vw, 6rem)) rotate(-360deg);
  }
}

@keyframes orbit-right {
  0% {
    transform: translate(-50%, -50%) rotate(0deg) translateX(clamp(3rem, 7.5vw, 6rem)) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg) translateX(clamp(3rem, 7.5vw, 6rem)) rotate(-360deg);
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .strike-intro__title .planet::after {
    animation: none;
    transform: translate(-50%, -50%) translateX(clamp(3rem, 7.5vw, 6rem));
  }

  .strike-intro__title {
    text-shadow: 
      0 0 10px hsl(var(--accent)),
      0 0 20px hsl(var(--accent));
  }
}

/* ==========================================================================
   Page Animation Utilities
   ========================================================================== */

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Apply subtle entrance animations */
.section-header {
  animation: fade-in-up 0.6s ease-out;
}

.feature-card,
.course-card,
.instructor-card,
.pricing-card,
.testimonial-card {
  animation: fade-in-up 0.6s ease-out;
  animation-fill-mode: both;
}

/* Stagger animation delays */
.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }

.course-card:nth-child(1) { animation-delay: 0.1s; }
.course-card:nth-child(2) { animation-delay: 0.2s; }
.course-card:nth-child(3) { animation-delay: 0.3s; }

.instructor-card:nth-child(1) { animation-delay: 0.1s; }
.instructor-card:nth-child(2) { animation-delay: 0.2s; }
.instructor-card:nth-child(3) { animation-delay: 0.3s; }
.instructor-card:nth-child(4) { animation-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  .section-header,
  .feature-card,
  .course-card,
  .instructor-card,
  .pricing-card,
  .testimonial-card {
    animation: fade-in 0.01ms;
    animation-delay: 0s;
  }
}
