/* ============================================
   ANIMATIONS CSS — The Seven AI
   ============================================ */

/* ===== NAVBAR ===== */
.site-header {
  position: fixed;
  top: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 3rem);
  max-width: 1200px;
  z-index: 1000;
  padding: 0;
  pointer-events: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

.site-nav:hover {
  background: rgba(15, 23, 42, 0.92);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.nav-brand-text {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  padding: 0.4rem 0;
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--hero-accent-glow);
  border-radius: 1px;
  transition: width 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
}

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

.nav-dropdown {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
}

.dropdown-toggle::after {
  display: none;
  /* remove underline for dropdown toggle */
}

.dropdown-menu {
  position: absolute;
  top: 150%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  min-width: 160px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  z-index: 1001;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-item {
  color: rgba(255, 255, 255, 0.7);
  padding: 0.8rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-align: center;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

/* ===== HERO SCROLL TEXT REVEAL STATES ===== */
/* These get animated via GSAP; initial states set here as fallback */

/* ===== BUTTON ===== */
.btn-3d {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 50px;
  background: var(--primary-base);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-decoration: none;
  pointer-events: auto;
}

.btn-3d:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

/* ===== FOOTER ===== */
.site-footer {
  background-color: var(--bg-dark);
  color: var(--text-light);
  padding: 4rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ===== PARALLAX FLOAT ANIMATION ===== */
@keyframes heroFloat {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-12px);
  }
}

.hero-canvas-container {
  animation: heroFloat 6s ease-in-out infinite;
}

/* Disable float during scroll-driven animation */
.hero-pin-wrapper.is-scrolling .hero-canvas-container {
  animation: none;
}

/* ===== SECTION TRANSITION GRADIENTS ===== */
.standard-section::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 120px;
  background: linear-gradient(to bottom, transparent, currentBgColor);
  pointer-events: none;
  opacity: 0;
}

/* Smooth gradient between hero and first section */
.hero-to-section-bridge {
  position: relative;
  height: 150px;
  background: linear-gradient(to bottom, var(--hero-bg-dark) 0%, var(--bg-light) 100%);
  z-index: 1;
}

/* ===== LOADING STATE ===== */
.hero-pin-wrapper.is-loading .hero-text-col,
.hero-pin-wrapper.is-loading .hero-video-col {
  opacity: 0;
}

.hero-pin-wrapper .hero-text-col,
.hero-pin-wrapper .hero-video-col {
  transition: opacity 0.6s ease;
}

/* ===== STAR BLINKING ANIMATION ===== */
@keyframes starBlink {

  0%,
  100% {
    opacity: 0.2;
    transform: scale(0.8);
  }

  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 5px #fff;
  pointer-events: none;
  animation: starBlink 2s infinite ease-in-out;
}

/* ===== GLOBAL SCROLL ANIMATION PERFORMANCE ===== */

/* GPU acceleration — ONLY for inner content, NOT for pinned wrappers.
   transform on a wrapper breaks GSAP's position:fixed pinning
   (fixed inside a transformed ancestor = absolute, not viewport-fixed). */
/* .standard-section — NO transform here. It creates a stacking context
   that breaks z-index coordination with GSAP's pinned sections. */

/* GPU hints for inner layers that GSAP animates (safe — not the pin target) */
.services-content-wrapper,
.services-bg,
.stars-container,
.earth-container,
.section-bg-parallax,
.white-card-layer,
.hero-content-wrapper,
.testimonials-container,
.contact-container {
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* Will-change hints for frequently animated elements */
#hero-text-col,
#hero-video-col,
.hero-bg,
#about-card-layer,
.bubble-1,
.bubble-2,
.bubble-3,
#earth-img,
.floating-capsule,
#nebula-img,
#planet-orb,
#rocket-ship,
.testimonial-card,
.course-card,
.orb-1,
.orb-2,
.contact-form-col,
.info-card {
  will-change: transform, opacity;
}

/* Clip-path text reveal — overflow must be visible */
.section-title,
.choose-title,
.services-title,
.hero-future,
.hero-ai {
  overflow: visible;
}

/* Smooth transitions on hover for interactive cards */
.course-card,
.info-card,
.testimonial-card {
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1),
    box-shadow 0.5s ease;
}

/* Scroll reveal utility — used by GSAP's initial set() states */
.reveal-text,
.fade-up {
  will-change: transform, opacity;
}

/* Benefit list items bullet decoration */
.benefit-item {
  position: relative;
  padding-left: 1.5rem;
  will-change: transform, opacity;
}

.benefit-item::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--primary-glow);
  font-weight: 700;
  font-size: 1.2em;
  line-height: 1;
}

/* ============================================================
   SECTION 4 — MOBILE AMBIENT ANIMATIONS (CSS-driven)
   CSS keyframes are 100% reliable on touch/mobile devices,
   unlike GSAP ScrollTrigger which needs scroll events to fire.
============================================================ */

/* Earth: slow orbital drift + spin */
@keyframes earth-orbit-mobile {
  0%   { transform: translate(0px, 0px) rotate(0deg); }
  25%  { transform: translate(-18px, -22px) rotate(90deg); }
  50%  { transform: translate(14px, -30px) rotate(180deg); }
  75%  { transform: translate(20px, -10px) rotate(270deg); }
  100% { transform: translate(0px, 0px) rotate(360deg); }
}

/* Earth image: continuous globe spin */
@keyframes earth-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Rocket: figure-8 float path with tilt */
@keyframes rocket-float-mobile {
  0%   { transform: translate(0px, 0px) rotate(-5deg); }
  20%  { transform: translate(16px, -20px) rotate(8deg); }
  40%  { transform: translate(-10px, -35px) rotate(-3deg); }
  60%  { transform: translate(-22px, -15px) rotate(10deg); }
  80%  { transform: translate(8px, 5px) rotate(-8deg); }
  100% { transform: translate(0px, 0px) rotate(-5deg); }
}

/* Apply on mobile/tablet only */
@media (max-width: 1024px) {
  #planet-orb {
    animation: earth-orbit-mobile 12s ease-in-out infinite !important;
  }

  #planet-orb img {
    animation: earth-spin 20s linear infinite !important;
  }

  #rocket-ship {
    animation: rocket-float-mobile 9s ease-in-out infinite !important;
  }
}
