/* =====================================================================
   style.css  -  Growth Skill Academy
   Layout and most styling use Tailwind utility classes; this file holds
   the custom details only.

   Contents
     1. Design tokens (colours)
     2. Fonts
     3. Base
     4. Header (glass bar + logo curve)
     5. Hero banner tags
     6. Marquee
     7. Testimonial slider
     8. Feature carousel pagination
     9. Rotating badge & pulse rings
    10. Feature connector lines (SVG)
    11. Responsive
    12. Reduced motion
   ===================================================================== */


/* =====================================================================
   1. DESIGN TOKENS
   Every colour in this file comes from here. Transparent versions are
   made with color-mix(), e.g.  color-mix(in srgb, var(--black-color) 20%, transparent)
   ===================================================================== */
:root {
  --primary-color:   #005FDD;
  --secondary-color: #EF7B21;
  --gray-color:      #9F9F9F;   /* the one gray: muted text, dashed lines */
  --white-color:     #FFFFFF;
  --black-color:     #111111;
}


/* =====================================================================
   2. FONTS
   ===================================================================== */
@font-face {
  font-family: 'Sora';
  src: url('../fonts/Sora-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Sora';
  src: url('../fonts/Sora-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Sora';
  src: url('../fonts/Sora-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Yuji Hentaigana Akari';
  src: url('../fonts/YujiHentaiganaAkari-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}


/* =====================================================================
   3. BASE
   ===================================================================== */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
  font-weight: 400;
}

body {
  margin: 0;
  font-family: 'Sora', sans-serif;
  font-weight: 400;
}

.container {
  max-width: 1428px;
}

a,
button,
input,
select {
  -webkit-tap-highlight-color: transparent;
  font-weight: 400;
}

.nav-link {
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--secondary-color);
}


/* =====================================================================
   4. HEADER
   ===================================================================== */

/* Glass navigation background */
.glass-bg {
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--white-color) 66%, transparent) 0,
    color-mix(in srgb, var(--black-color) 16%, transparent) 80px,
    color-mix(in srgb, var(--black-color) 28%, transparent) 240px,
    color-mix(in srgb, var(--black-color) 22%, transparent) 100%
  );
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid color-mix(in srgb, var(--white-color) 35%, transparent);
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--white-color) 45%, transparent),
    0 8px 24px color-mix(in srgb, var(--primary-color) 18%, transparent);
}

/* Curved edge attached to the logo.
   The shape is a mask, so its colour comes from --white-color. */
.logo-curve {
  position: relative;
  z-index: 2;
}

.logo-curve::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 100%;
  width: 52px;
  margin-left: -1px;
  pointer-events: none;
  background-color: var(--white-color);
  -webkit-mask: no-repeat 0 0 / 100% 100% url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 52 64' preserveAspectRatio='none'%3E%3Cpath d='M0 0H48C34 2 25 12 24 30 23 46 17 60 3 64H0Z'/%3E%3C/svg%3E");
          mask: no-repeat 0 0 / 100% 100% url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 52 64' preserveAspectRatio='none'%3E%3Cpath d='M0 0H48C34 2 25 12 24 30 23 46 17 60 3 64H0Z'/%3E%3C/svg%3E");
}


/* =====================================================================
   5. HERO BANNER TAGS (drop effect)
   ===================================================================== */
.banner-tags-container {
  position: absolute;
  inset: 0;
  z-index: 5;
  overflow: hidden;
  pointer-events: none;
}

.banner-tag {
  position: absolute;
  padding: 10px 20px;
  border-radius: 30px;
  background: var(--white-color);
  color: var(--black-color);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 8px 25px color-mix(in srgb, var(--black-color) 15%, transparent);
  pointer-events: auto;
  cursor: pointer;
  opacity: 0;
  /* Falls from the top and sticks at its position */
  animation: dropAndStick 1.1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.banner-tag:hover {
  transform: scale(1.08) rotate(0deg) !important;
  background: color-mix(in srgb, var(--primary-color) 8%, var(--white-color));
  color: var(--primary-color);
}

@keyframes dropAndStick {
  0% {
    transform: translateY(-90vh) rotate(var(--rot)) scale(0.9);
    opacity: 0;
  }
  65% {
    transform: translateY(18px) rotate(var(--rot)) scale(1.03);
    opacity: 1;
  }
  85% {
    transform: translateY(-8px) rotate(var(--rot)) scale(0.98);
    opacity: 1;
  }
  100% {
    transform: translateY(0) rotate(var(--rot)) scale(1);
    opacity: 1;
  }
}

/* Left tags (near the bottom of the hero area) */
.banner-tag.tag-l-1 { bottom: 360px; left: -4%; --rot: -8deg; animation-delay: 0.10s; }
.banner-tag.tag-l-2 { bottom: 310px; left:  0%; --rot:  5deg; animation-delay: 0.25s; }
.banner-tag.tag-l-3 { bottom: 355px; left:  5%; --rot: -5deg; animation-delay: 0.40s; }
.banner-tag.tag-l-4 { bottom: 389px; left: 14%; --rot: -9deg; animation-delay: 0.15s; }
.banner-tag.tag-l-5 { bottom: 340px; left: 17%; --rot:  3deg; animation-delay: 0.35s; }
.banner-tag.tag-l-6 { bottom: 302px; left:  9%; --rot:  6deg; animation-delay: 0.20s; }

/* Right tags (near the bottom of the hero area) */
.banner-tag.tag-r-1 { bottom: 350px; right: -2%; --rot:   4deg; animation-delay: 0.20s; }
.banner-tag.tag-r-2 { bottom: 310px; right:  4%; --rot:   4deg; animation-delay: 0.30s; }
.banner-tag.tag-r-3 { bottom: 370px; right:  6%; --rot: -15deg; animation-delay: 0.45s; }
.banner-tag.tag-r-4 { bottom: 402px; right: 13%; --rot:  -7deg; animation-delay: 0.12s; }
.banner-tag.tag-r-5 { bottom: 354px; right: 17%; --rot:   5deg; animation-delay: 0.38s; }
.banner-tag.tag-r-6 { bottom: 302px; right: 14%; --rot:  -4deg; animation-delay: 0.22s; }


/* =====================================================================
   6. MARQUEE
   ===================================================================== */
.trust {
  padding: 36px 0 10px;
  color: var(--gray-color);       /* was var(--muted), which was never defined */
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

.marquee {
  padding: 20px 0;
  overflow: hidden;
}

.marquee-track {
  display: flex;
  gap: 70px;
  width: max-content;
  animation: scroll 22s linear infinite;
}

.marquee-track span {
  color: var(--primary-color);
  font-size: 28px;
  font-weight: 800;
  white-space: nowrap;
  opacity: 0.75;
}

@keyframes scroll {
  to { transform: translateX(-50%); }
}


/* =====================================================================
   7. TESTIMONIAL SLIDER
   ===================================================================== */
.testimonial-shell {
  position: relative;
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
}

.swiper-testimonial-container {
  padding: 0 0 70px;
  overflow: hidden !important;
  visibility: hidden;                         /* revealed once Swiper has centred slide 1 */
}

.swiper-testimonial-container.swiper-initialized {
  visibility: visible;
}

/* Wide cards: ~466 x 572 on desktop, scaling down on small screens */
.swiper-testimonial-container .swiper-slide {
  position: relative;
  width: min(466px, 74vw);                    /* phones: side cards peek and are clipped */
  height: auto;
  aspect-ratio: 466 / 572;
  border-radius: 32px;
  user-select: none;
  opacity: 0.95;
  filter: blur(3px) brightness(0.9);          /* side cards: soft + dimmed */
  /* Swiper sets the duration inline; listing transform lets the coverflow motion animate */
  transition-property: transform, filter, opacity;
  transition-timing-function: ease;
}

.swiper-testimonial-container .swiper-slide-active {
  z-index: 20;
  opacity: 1;
  filter: none;
  box-shadow: 0 30px 60px -18px color-mix(in srgb, var(--black-color) 55%, transparent);
}

/* Only the active card and its neighbours show; everything further out is hidden */
.swiper-testimonial-container .swiper-slide:not(.swiper-slide-active):not(.swiper-slide-prev):not(.swiper-slide-next) {
  opacity: 0 !important;
  pointer-events: none;
}

.swiper-testimonial-container .swiper-slide:not(.swiper-slide-active) button {
  pointer-events: none;
}

/* Custom pagination (1 dot per real testimonial) */
.swiper-pagination {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 30px;
  z-index: 30;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.swiper-testimonial-container .t-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--white-color);
  opacity: 0.85;
  cursor: pointer;
  transition: width 0.3s ease, background 0.3s ease, opacity 0.3s ease;
}

.swiper-testimonial-container .t-dot.is-active {
  width: 30px;
  background: var(--primary-color);
  opacity: 1;
}

/* Tablet / desktop: the card is at most 50% of the slider so both side cards fit */
@media (min-width: 640px) {
  .swiper-testimonial-container .swiper-slide {
    width: min(466px, 50%);
  }
}


/* =====================================================================
   8. FEATURE CAROUSEL PAGINATION
   ===================================================================== */
.feature-carousel .swiper-pagination {
  position: static;
  margin-top: 1.5rem;
  gap: 0;
}

.feature-carousel .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  margin: 0 5px !important;
  background: var(--white-color);
  opacity: 0.55;
  transition: width 0.3s ease, opacity 0.3s ease;
}

.feature-carousel .swiper-pagination-bullet-active {
  width: 24px;
  border-radius: 9999px;
  background: var(--primary-color);
  opacity: 1;
}


/* =====================================================================
   9. ROTATING BADGE & PULSE RINGS
   ===================================================================== */

/* Outer curved text rotation */
@keyframes spinText {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.rotate-circular-text {
  animation: spinText 14s linear infinite;
}

/* Pause the rotation on hover */
.badge-container:hover .rotate-circular-text {
  animation-play-state: paused;
}

/* Container for centering elements */
.pulse-container {
  width: 280px;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Central Soft Blue Core Circle */
.pulse-core {
  width: 80px;
  height: 80px;
  background-color: #c9dbf8; /* Soft blue core color */
  border-radius: 50%;
  position: absolute;
  z-index: 2;
}

/* Concentric Expanding Pulse Rings */
.pulse-ring {
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: #c9dbf8;
  z-index: 1;
  opacity: 0;
  animation: pulseRipple 3s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

/* Stagger animation delays for continuous concentric rings */
.pulse-ring:nth-child(1) {
  animation-delay: 0s;
}

.pulse-ring:nth-child(2) {
  animation-delay: 1s;
}

.pulse-ring:nth-child(3) {
  animation-delay: 2s;
}

/* Keyframes matching the 4-stage breakdown from the image */
@keyframes pulseRipple {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  50% {
    opacity: 0.35;
  }
  100% {
    transform: scale(3.2); /* Expands out to match the large ring in Stage 4 */
    opacity: 0;
  }
}


/* =====================================================================
   10. FEATURE CONNECTOR LINES (SVG)
   ===================================================================== */
.route-dash {
  fill: none;
  stroke: var(--gray-color);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 4 5;                      /* dash length, gap */
}

/* Mask "eraser": a solid line that uncovers each dashed connector as it draws */
.route-reveal {
  fill: none;
  stroke: var(--white-color);
  stroke-width: 30;
  stroke-linecap: round;
}


/* =====================================================================
   11. RESPONSIVE
   ===================================================================== */
@media (max-width: 1200px) {
  .banner-tag.tag { display: none; }
}

@media (max-width: 767px) {
  .logo-curve::after {
    width: 36px;
  }

  .banner-tag.tag-r-6 { bottom: 428px; right: 46%;  --rot:   7deg; opacity: 0.2 !important; }
  .banner-tag.tag-r-3 { bottom: 370px; right: -10%; --rot: -10deg; opacity: 0.2 !important; }
  .banner-tag.tag-l-4 { bottom: 408px; left:  55%;  --rot:  -4deg; opacity: 0.2 !important; }
  .banner-tag.tag-l-2 { bottom: 367px; left:  33%;  --rot:   5deg; opacity: 0.2 !important; }
  .banner-tag.tag-l-1 { bottom: 380px; left:  -4%;  --rot:  -8deg; opacity: 0.2 !important; }
}


/* =====================================================================
   12. REDUCED MOTION
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}