/* ============================================
   LAYOUT — The Seven AI (Thynk Unlimited Hero)
   ============================================ */

.main-content {
  width: 100%;
}

/* ===== HERO PIN WRAPPER ===== */
.hero-pin-wrapper,
.section-pin-wrapper {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

/* ===== SECTION TRANSITIONS ===== */
/* No negative margins — pinSpacing:true handles spacing automatically.
   z-index alone handles the visual stacking order. */
.section-overlap,
.services-overlap,
.portfolio-overlap,
.courses-overlap,
.contact-overlap,
.testimonials-overlap {
  position: relative;
}

/* ===== HERO BACKGROUND ===== */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(circle at 50% 50%, #0c1e3d 0%, #000000 100%);
}

/* Subtle radial glow behind video area */
.hero-bg::after {
  content: '';
  position: absolute;
  top: 10%;
  right: -5%;
  width: 70%;
  height: 120%;
  background: radial-gradient(ellipse at center, var(--primary-alpha) 0%, transparent 70%);
  pointer-events: none;
}

/* Subtle noise texture overlay */
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.4;
}

/* ===== HERO SPLIT LAYOUT ===== */
.hero-content-wrapper {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(2rem, 5vw, 6rem);
}

/* --- Left Text Column --- */
.hero-text-col {
  flex: 0 1 55%;
  max-width: 700px;
  padding-top: 2rem;
}

.hero-presents {
  font-size: clamp(0.9rem, 1.2vw, 1.15rem);
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  margin-bottom: 0.75rem;
  opacity: 0;
  transform: translateY(20px);
}

.hero-headline-group {
  margin-bottom: 1.5rem;
}

.hero-line-1 {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.3em;
}

.hero-ai {
  font-size: clamp(4.5rem, 9vw, 9rem);
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(180deg, #5b9cf6 0%, var(--primary-base) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.03em;
  opacity: 0;
  transform: translateY(40px);
}

.hero-solutions {
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.02em;
  opacity: 0;
  transform: translateY(40px);
}

.hero-future {
  display: block;
  font-size: clamp(3rem, 6.5vw, 6.5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #5b9cf6 0%, #1d4ed8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-transform: uppercase;
  margin-top: 0.1em;
  opacity: 0;
  transform: translateY(40px);
}

.hero-tagline {
  font-size: clamp(0.75rem, 1.1vw, 1rem);
  font-weight: 500;
  letter-spacing: 0.35em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateY(20px);
}

/* Bottom badges */
.hero-badges {
  display: flex;
  align-items: center;
  gap: 1rem;
  opacity: 0;
  transform: translateY(20px);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.4rem;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.04em;
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.04);
  transition: border-color 0.3s ease, background 0.3s ease;
}

.hero-badge:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.08);
}

/* --- Right Video Column --- */
.hero-video-col {
  flex: 0 1 45%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 100%;
}

.hero-canvas-container {
  position: relative;
  width: 100%;
  height: 98%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

#hero-video-canvas {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  margin-bottom: 27vh;
  scale: 1.9;
  /* Canvas will be sized via JS */
}

/* Subtle glow behind character */
.hero-canvas-glow {
  position: absolute;
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 60%;
  background: radial-gradient(ellipse at center bottom, rgba(37, 99, 235, 0.2) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

/* ===== SECTION 2: ABOUT (Pinned) ===== */
.section-pin-wrapper {
  z-index: 10;
  /* Ensure pinned section stays on top */
}

.section-pin-wrapper.white-theme {
  background: #fdfdfd;
}

.section-bg-parallax {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 1) 0%, rgba(245, 248, 255, 1) 100%);
  overflow: hidden;
}

.bubble {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  z-index: 2;
}

.bubble-1 {
  width: 450px;
  height: 450px;
  background: linear-gradient(135deg, var(--primary-glow) 0%, var(--primary-base) 100%);
  top: -150px;
  right: -100px;
}

.bubble-2 {
  width: 550px;
  height: 550px;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-glow) 100%);
  bottom: -200px;
  left: -150px;
}

.bubble-3 {
  width: 350px;
  height: 350px;
  background: linear-gradient(135deg, #93c5fd 0%, var(--primary-light) 100%);
  top: 35%;
  left: 15%;
}

.white-card-layer {
  position: absolute;
  top: 5%;
  /* 5% top + 90% height + 5% bottom = 100% */
  left: 5%;
  /* 5% left + 90% width + 5% right = 100% */
  width: 90%;
  height: 90%;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-radius: 20px;
  /* Using px for more consistent look, or use a high px value */
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.section-content-wrapper.split-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  padding: 0 clamp(2rem, 8vw, 6rem);
}

.canvas-col {
  flex: 0 1 50%;
  height: 95%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
  margin-top: 5vh;
}

.canvas-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.about-visual-img {
  width: 100%;
  height: 90%;
  object-fit: contain;
  scale: 1.3;
  margin-bottom: 2vh;
}

.text-col {
  flex: 0 1 45%;
  max-width: 550px;
  text-align: left;
}

.text-col h2 {
  font-size: clamp(2.5rem, 4vw, 4rem);
  margin-bottom: 1.5rem;
  color: var(--hero-bg-dark);
}

.text-col p {
  font-size: clamp(1rem, 1.2vw, 1.25rem);
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 1.2rem;
}


/* ===== SECTION 3: SERVICES (Pinned Space Theme) ===== */
.services-overlap {
  background: #000;
  /* Deep space base */
}

/* ===== SECTION 3 WHATSAPP PROMPT ===== */
.wa-query-prompt {
  position: fixed;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%) translateY(24px) scale(0.96);
  width: min(92vw, 420px);
  z-index: 1200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.wa-query-prompt.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0) scale(1);
}

.wa-query-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: 1.4rem 1.4rem 1.25rem;
  background:
    linear-gradient(135deg, rgba(8, 15, 32, 0.96), rgba(15, 23, 42, 0.88)) padding-box,
    linear-gradient(135deg, rgba(37, 99, 235, 0.9), rgba(34, 197, 94, 0.85), rgba(255, 255, 255, 0.18)) border-box;
  border: 1px solid transparent;
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.wa-query-shell::before {
  content: '';
  position: absolute;
  inset: -35% auto auto -18%;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.22) 0%, transparent 68%);
  pointer-events: none;
}

.wa-query-shell::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.06) 45%, transparent 70%);
  pointer-events: none;
}

.wa-query-orb {
  position: absolute;
  top: -18px;
  right: -10px;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(37, 99, 235, 0.9), rgba(34, 197, 94, 0.65));
  filter: blur(2px);
  opacity: 0.8;
  animation: waPulse 4s ease-in-out infinite;
}

.wa-query-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  z-index: 2;
}

.wa-query-copy {
  position: relative;
  z-index: 1;
  padding-right: 2rem;
}

.wa-query-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.7rem;
  color: rgba(255, 255, 255, 0.72);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 700;
}

.wa-query-copy h3 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.2rem, 3.5vw, 1.65rem);
  line-height: 1.08;
}

.wa-query-copy p {
  margin: 0.85rem 0 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.55;
  font-size: 0.95rem;
}

.wa-query-actions {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 0.75rem;
  margin-top: 1.2rem;
  align-items: center;
}

.wa-query-cta,
.wa-query-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.wa-query-cta {
  flex: 1;
  padding: 0.95rem 1.2rem;
  color: #03111a;
  background: linear-gradient(135deg, #25d366 0%, #7cf0a0 100%);
  box-shadow: 0 16px 40px rgba(37, 211, 102, 0.25);
}

.wa-query-secondary {
  padding: 0.95rem 1rem;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.08);
}

.wa-query-cta:hover,
.wa-query-secondary:hover,
.wa-query-close:hover {
  transform: translateY(-1px);
}

@keyframes waPulse {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(0, 6px, 0) scale(1.06); }
}

.services-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(circle at 50% 40%, #0a192f 0%, #000000 100%);
  overflow: hidden;
}

.stars-container {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.earth-container {
  position: absolute;
  top: -20%;
  left: -20%;
  width: 140%;
  height: 140%;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}

.earth-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.services-content-wrapper {
  position: relative;
  z-index: 5;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.services-headline-box {
  position: absolute;
  top: 10%;
  text-align: center;
  width: 100%;
}

.services-title {
  font-family: var(--font-body-family);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.2;
}

.services-title .line-1 {
  display: block;
  font-size: clamp(1.2rem, 2vw, 2.5rem);
  font-weight: 400;
  opacity: 0.9;
}

.services-title .line-2 {
  display: block;
  font-size: clamp(2.2rem, 4.5vw, 5.5rem);
  font-weight: 900;
}

.highlight-gold {
  color: #ffb800;
  /* Vibrant gold from image */
  text-shadow: 0 0 20px rgba(255, 184, 0, 0.4);
}

/* --- Floating Capsules --- */
.capsules-wrapper {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.floating-capsule {
  position: absolute;
  pointer-events: auto;
  padding: 1.2rem 2.2rem;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 100px;
  box-shadow:
    0 10px 25px rgba(0, 0, 0, 0.3),
    inset 0 0 15px var(--border-light);
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  z-index: 10;
}

.floating-capsule:hover {
  border-color: rgba(37, 99, 235, 0.6);
  background: rgba(15, 23, 42, 0.6);
}

.cap-text {
  font-size: clamp(0.8rem, 1vw, 1.1rem);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.3;
  display: block;
}

/* Position capsules according to image */
.cap-1 {
  top: 25%;
  left: 15%;
}

.cap-2 {
  top: 50%;
  left: 8%;
}

.cap-3 {
  top: 60%;
  left: 22%;
}

.cap-4 {
  top: 22%;
  right: 12%;
}

.cap-5 {
  top: 40%;
  right: 18%;
}

.cap-6 {
  top: 65%;
  right: 10%;
}

/* --- Jaggu Canvas --- */
.services-canvas-col {
  width: 100%;
  height: 80%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 31vh;
}

.services-canvas-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

#services-video-canvas {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent !important;
}

/* ===== STANDARD SECTIONS ===== */

/* ===== SECTION 4: WHY CHOOSE US (White Card Theme) ===== */
/* Handled by global overlap group above */

.nebula-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.8;
  overflow: hidden;
}

.nebula-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(10px);
}

.portfolio-text-col {
  flex: 0 1 50%;
  padding: 6rem clamp(2rem, 5vw, 6rem);
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

.choose-title {
  font-size: clamp(2.4rem, 4.8vw, 5.2rem);
  font-weight: 900;
  color: #1e293b;
  /* Slate-800 */
  line-height: 1.0;
  margin-bottom: 2.5rem;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.highlight-blue {
  color: var(--primary-base);
  display: inline-block;
  margin-top: 0.5rem;
}

.benefits-list {
  list-style: none;
  padding: 0;
}

.benefit-item {
  font-size: clamp(1rem, 1.2vw, 1.3rem);
  font-weight: 500;
  color: #334155;
  margin-bottom: 1.2rem;
  padding-left: 1.5rem;
  position: relative;
  display: flex;
  align-items: center;
}

.benefit-item::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #000;
  font-weight: 900;
  font-size: 1.5rem;
}

.portfolio-text-col {
  flex: 0 1 50%;
  padding-left: clamp(2rem, 5vw, 6rem);
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.portfolio-visual-col {
  flex: 0 1 50%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  /* Allow assets to move outside the col */
}

.portfolio-canvas-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 5;
}

.portfolio-visual-img {
  width: 100%;
  height: 90%;
  object-fit: contain;
  scale: 1.1;
  margin-bottom: 2vh;
  /* GSAP will control opacity and extra scale */
}

/* Floating Elements */
.floating-element {
  position: absolute;
  z-index: 2;
  /* Move behind text and character */
  pointer-events: none;
}

.planet-orb {
  top: 10%;
  left: 5%;
  width: clamp(80px, 10vw, 120px);
}

.planet-orb img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 15px rgba(59, 130, 246, 0.2));
}

.rocket-ship {
  bottom: 15%;
  left: 8%;
  width: clamp(100px, 12vw, 150px);
}

.rocket-ship img {
  width: 100%;
  height: auto;
}

/* ===== SECTION 6.5: STUDENT SHOWCASE (Tilted Marquee) ===== */
.marquee-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 4rem 0;
  width: 110vw; /* Wider than viewport to prevent edge cutoffs */
  position: relative;
  left: 50%;
  transform: translateX(-50%) rotate(-4deg) scale(1.05); /* Tilted container */
  transform-origin: center center;
  overflow: hidden;
}

.marquee-row {
  width: 100vw;
  display: flex;
  overflow: visible; /* track goes outside */
}

.marquee-track {
  display: flex;
  width: max-content;
}

.marquee-set {
  display: flex;
  gap: 2rem;
  padding-right: 2rem;
}

.marquee-left .marquee-track {
  animation: scrollLeft 40s linear infinite;
}

.marquee-right .marquee-track {
  animation: scrollRight 40s linear infinite;
}

.marquee-row:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes scrollLeft {
  0% { transform: translateX(0); }
  100% { transform: translateX(-10%); } /* Shifts exactly 1 set out of 10 */
}

@keyframes scrollRight {
  0% { transform: translateX(-10%); }
  100% { transform: translateX(0); }
}

.marquee-item {
  width: 400px;
  height: 280px;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 15px 35px rgba(0,0,0,0.4);
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), filter 0.5s ease;
  filter: grayscale(40%) brightness(0.8);
  border: 1px solid var(--border-light);
}

.marquee-row:hover .marquee-item {
  filter: grayscale(80%) brightness(0.4); /* dim others when row hovered */
}

.marquee-row .marquee-item:hover {
  transform: scale(1.08) rotate(4deg); /* Straighten out against the -4deg container tilt */
  filter: grayscale(0%) brightness(1.1);
  z-index: 10;
  box-shadow: 0 25px 50px rgba(0,0,0,0.6), 0 0 0 2px var(--primary-glow);
}

.marquee-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.marquee-item:hover img {
  transform: scale(1.1);
}

.marquee-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.4) 40%, transparent 80%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
}

.marquee-item:hover .marquee-overlay {
  opacity: 1;
  transform: translateY(0);
}

.marquee-badge {
  align-self: flex-start;
  background: rgba(59, 130, 246, 0.8);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  margin-bottom: 0.8rem;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255,255,255,0.2);
}

.marquee-overlay h3 {
  color: #fff;
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
}

@media (max-width: 1024px) {
  .marquee-item {
    width: 320px;
    height: 240px;
  }
}

@media (max-width: 768px) {
  .marquee-item {
    width: 260px;
    height: 180px;
  }
  .marquee-overlay h3 {
    font-size: 1.1rem;
  }
}

/* ===== SECTION 5: TESTIMONIALS (Horizontal Scrub) ===== */
.testimonials-overlap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonials-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(circle at 50% 50%, #0f172a 0%, #000000 100%);
  overflow: hidden;
}

.parallax-circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.2;
}

.pc-1 {
  width: 600px;
  height: 600px;
  background: #1e3a8a;
  top: -10%;
  right: -10%;
}

.pc-2 {
  width: 500px;
  height: 500px;
  background: var(--primary-glow);
  bottom: -5%;
  left: -5%;
}

.testimonials-container {
  position: relative;
  z-index: 5;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  /* Critical for horizontal scrub */
}

.testimonials-header {
  text-align: center;
  margin-bottom: 4rem;
  padding: 0 2rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 0.5rem;
}

.horizontal-scroll-wrapper {
  display: flex;
  gap: 3rem;
  padding: 0 10vw;
  /* Start padding */
  width: fit-content;
  /* Important for GSAP to measure width */
  will-change: transform;
}

.testimonial-card {
  flex: 0 0 clamp(300px, 40vw, 500px);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.4s ease;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.testimonial-card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: rgba(59, 130, 246, 0.5);
  background: var(--border-light);
}

.quote-icon {
  font-family: 'Georgia', serif;
  font-size: 5rem;
  line-height: 1;
  color: var(--primary-glow);
  opacity: 0.4;
  margin-bottom: -1rem;
}

.testimonial-text {
  font-size: clamp(1.1rem, 1.3vw, 1.4rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2.5rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.author-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e3a8a, var(--primary-glow));
  border: 2px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.author-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.2rem;
}

.author-role {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
}

/* ===== SECTION 6: OUR COURSES (Premium Redesign) ===== */
.courses-overlap {
  padding: 12rem 0;
  background: #ffffff;
  position: relative;
}

.courses-bg-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.bg-glow-1 {
  position: absolute;
  top: 10%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
  filter: blur(80px);
}

.bg-glow-2 {
  position: absolute;
  bottom: 10%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.05) 0%, transparent 70%);
  filter: blur(80px);
}

.courses-container {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.courses-header {
  text-align: center;
  margin-bottom: 6rem;
}

.section-tag {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  background: rgba(59, 130, 246, 0.08);
  color: var(--primary-base);
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

/* ===== SECTION 6: PREMIUM COURSES GRID (New Design) ===== */
.premium-courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 3.5rem;
  perspective: 2000px;
}

.premium-card {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 40px;
  padding: 4rem 3rem;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  transform-style: preserve-3d;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.premium-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
  transform: translateY(-10px) rotateX(4deg);
}

.card-glow-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, var(--primary-alpha), transparent 70%);
  opacity: 0;
  transition: opacity 0.6s ease;
  z-index: 0;
}

.premium-card:hover .card-glow-bg {
  opacity: 1;
}

.card-shine {
  position: absolute;
  top: -100%;
  left: -100%;
  width: 300%;
  height: 300%;
  background: linear-gradient(45deg, transparent 45%, var(--border-light) 50%, transparent 55%);
  z-index: 5;
  pointer-events: none;
  transform: rotate(25deg);
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.premium-card:hover .card-shine {
  transform: translate(30%, 30%) rotate(25deg);
}

.card-content {
  position: relative;
  z-index: 2;
  transform: translateZ(50px);
}

.card-icon-wrapper {
  margin-bottom: 3rem;
}

.card-icon {
  width: 80px;
  height: 80px;
  background: var(--border-light);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
  overflow: hidden;
}

.premium-card:hover .card-icon {
  transform: scale(1.1) rotate(5deg);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.premium-card .course-name {
  font-size: 2.2rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  background: none;
  -webkit-text-fill-color: initial;
}

.premium-card .course-overview {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
  max-width: 95%;
}

.card-footer {
  margin-top: 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 2;
  transform: translateZ(30px);
}

.card-tags {
  display: flex;
  gap: 0.8rem;
}

.card-tags span {
  padding: 0.6rem 1.2rem;
  background: var(--border-light);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card-arrow {
  width: 50px;
  height: 50px;
  background: var(--primary-base);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateX(20px);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.premium-card:hover .card-arrow {
  opacity: 1;
  transform: translateX(0);
}

.premium-card:hover .card-tags span {
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.fade-up-card {
  opacity: 0;
  transform: translateY(50px);
}

@media (max-width: 768px) {
  .premium-courses-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .premium-card {
    padding: 2.5rem 2rem;
  }

  .premium-card .course-name {
    font-size: 1.8rem;
  }
}

.course-price-box {
  display: flex;
  align-items: baseline;
  gap: 0.2rem;
}

.course-price-box .currency {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
}

.course-price-box .amount {
  font-size: 2rem;
  font-weight: 900;
  color: #0f172a;
}

.course-cta-btn {
  padding: 0.9rem 2.2rem;
  background: #0f172a;
  color: #ffffff;
  border-radius: 16px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  position: relative;
  border: 1px solid #0f172a;
}

.course-cta-btn:hover {
  background: var(--primary-base);
  border-color: var(--primary-base);
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.25);
}

.course-cta-btn span {
  transition: transform 0.3s ease;
}

.course-cta-btn:hover span {
  transform: translateX(3px);
}

/* Section 7 placeholder fix */
.contact-overlap {
  position: relative;
}

/* ===== SECTION 7: CONTACT US (Black Theme Premium) ===== */
.contact-overlap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-bg-elements {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.floating-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: var(--primary-base);
  top: -10%;
  left: -10%;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: #1e3a8a;
  bottom: -5%;
  right: -5%;
}

.contact-container {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.contact-split {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 4rem;
}

.contact-sidebar {
  flex: 1;
  padding: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  max-width: 450px;
}

.contact-form-outer {
  flex: 1.5;
  padding: 1.5rem;
}

.contact-form-inner {
  background: #bbf062;
  border-radius: 24px;
  padding: 4rem;
  height: 100%;
  position: relative;
  transition: opacity 0.4s ease;
}

.contact-success-state {
  height: 100%;
  background: #bbf062;
  border-radius: 24px;
  padding: 4rem;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}

.contact-info-col {
  flex: 0 1 45%;
}

.contact-tagline {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 3rem;
  line-height: 1.6;
}

.info-items {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.info-card:hover {
  transform: translateX(10px);
  border-color: rgba(37, 99, 235, 0.4);
  background: var(--border-light);
}

.info-icon {
  font-size: 1.8rem;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(37, 99, 235, 0.1);
  border-radius: 14px;
}

.info-text h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary-glow);
  margin-bottom: 0.2rem;
}

.info-text p {
  font-size: 1.1rem;
  color: #fff;
  font-weight: 500;
}

/* --- Form Column --- */
.contact-form-col {
  flex: 0 1 50%;
}

.premium-form {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 3.5rem;
  border-radius: 32px;
  backdrop-filter: blur(20px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.form-group {
  margin-bottom: 2rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--border-light);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 1.2rem;
  color: #fff;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-glow);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.2);
}

.submit-btn {
  width: 100%;
  padding: 1.4rem;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-glow {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.submit-btn:hover .btn-glow {
  left: 100%;
}

/* ===== BASE LAYOUT & COORDINATION ===== */
.main-content {
  position: relative;
  width: 100%;
}

/* Global Section Containers */
.section-pin-wrapper,
.standard-section {
  position: relative;
  width: 100%;
}

.section-pin-wrapper {
  height: 100vh;
}

.standard-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Ensure white/black themes have solid backgrounds */
.white-theme {
  background: #ffffff !important;
  color: #000000;
}

.black-theme {
  background: #000000 !important;
  color: #ffffff;
}

/* NOTE: Do NOT add position/transform !important overrides here.
   GSAP ScrollTrigger needs to set position:fixed and transform
   on pinned sections. !important rules will break ALL pinning. */


/* ===== RESPONSIVE / MOBILE-FRIENDLY ===== */
@media (max-width: 968px) {

  /* Navigation */
  .site-nav {
    padding: 0.5rem 1rem;
  }

  .nav-links {
    gap: 1rem;
  }

  .nav-link {
    font-size: 0.75rem;
  }

  /* Layouts & Typography */
  .split-layout {
    flex-direction: column !important;
    justify-content: flex-start !important;
    /* Changed from center to prevent pushing up */
    text-align: center;
    padding: 2rem 1rem !important;
    /* Critical for 100vh fitting */
  }

  .white-card-layer {
    top: 110px !important;
    /* Push down below the 80px-100px navbar area */
    left: 2.5% !important;
    width: 95% !important;
    height: calc(100% - 130px) !important;
    /* Maximize space for content */
  }

  .section-title,
  .choose-title {
    font-size: 2rem !important;
    /* Shrunk further */
    margin-bottom: 0.5rem !important;
  }

  p,
  .course-overview,
  .testimonial-text,
  .fade-text {
    font-size: 0.95rem !important;
    /* Save vertical space */
    line-height: 1.4 !important;
    margin-bottom: 0.8rem !important;
  }

  /* Section 1: Hero */
  .hero-content-wrapper {
    flex-direction: column;
    text-align: center;
    padding-top: 6rem;
  }

  .hero-text-col {
    order: 1;
    width: 100%;
    padding: 0 1.5rem;
    text-align: center;
    margin-bottom: 3vh;
  }

  .hero-line-1 {
    justify-content: center;
  }

  .hero-video-col {
    order: 2;
    width: 100%;
    height: 35vh;
    scale: 1.3;
  }

  .hero-ai {
    font-size: 2.8rem;
  }

  .hero-future {
    font-size: 2.2rem;
  }

  .hero-badges {
    justify-content: center;
    transform: scale(0.85);
  }

  /* Section 2: About */
  #about-text-col {
    width: 100%;
    padding: 0 1.5rem !important;
  }

  #about-canvas-col {
    height: 30vh;
    margin-bottom: 2rem;
  }

  /* Section 3: Services */
  .services-headline-box {
    top: 5%;
    padding: 0 1rem;
  }

  .services-title .line-2 {
    font-size: 2.2rem;
  }

  .services-canvas-col {
    height: 55%;
    margin-top: 8vh;
  }

  #services-video-canvas {
    scale: 1.3;
    margin-bottom: 5vh;
  }

  .cap-1 {
    top: 15%;
    left: 4%;
  }

  .cap-2 {
    top: 38%;
    left: 4%;
  }

  .cap-3 {
    top: 60%;
    left: 4%;
  }

  .cap-4 {
    top: 15%;
    right: 4%;
  }

  .cap-5 {
    top: 38%;
    right: 4%;
  }

  .cap-6 {
    top: 60%;
    right: 4%;
  }

  /* Section 4: Why Choose Us */
  .white-card-layer {
    position: relative !important;
    margin: 80px auto 40px !important;
    width: 92% !important;
    height: auto !important;
    min-height: auto !important;
    border-radius: 40px !important;
    padding: 3rem 1.5rem !important;
    z-index: 5;
    overflow: visible !important;
    display: block !important;
    top: auto !important;
    left: auto !important;
  }

  .section-content-wrapper {
    height: auto !important;
    padding: 0 !important;
  }

  .choose-title {
    font-size: 1.8rem !important;
    line-height: 1.1 !important;
    margin-bottom: 1rem !important;
    display: block !important;
  }

  .portfolio-text-col {
    padding: 4rem 1.5rem 1rem 1.5rem !important;
  }

  .portfolio-canvas-container {
    height: 45vh;
    margin-top: 1rem;
    align-items: center;
  }

  .portfolio-visual-img {
    height: 100% !important;
    width: auto !important;
    scale: 1.4 !important;
  }

  .benefit-item {
    font-size: 1.1rem;
    justify-content: center;
  }

  /* Section 5: Courses */
  .courses-overlap {
    padding: 4rem 0;
  }

  .courses-grid {
    grid-template-columns: 1fr;
    padding: 0 1rem;
    gap: 1.5rem;
  }

  .course-card {
    height: 300px;
  }

  .course-overlay {
    padding: 1.5rem;
  }

  /* Section 6.5: Gallery */
  .gallery-section {
    padding: 4rem 0;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 250px;
    padding: 0 1.5rem;
    gap: 1rem;
  }

  .gallery-item.large,
  .gallery-item.tall,
  .gallery-item.wide {
    grid-column: span 1;
    grid-row: span 1;
  }

  .gallery-item.large .item-content h3 {
    font-size: 1.2rem;
  }

  /* Section 6: Testimonials */
  .testimonials-header {
    margin-bottom: 2rem;
    padding: 0 1rem;
  }

  .horizontal-scroll-wrapper {
    padding: 0 1.5rem;
    gap: 1rem;
  }

  .testimonial-card {
    flex: 0 0 88vw;
    padding: 2rem 1.5rem;
    height: auto;
  }

  .quote-icon {
    font-size: 2.2rem;
    margin-bottom: 0;
  }

  /* Section 7: Contact */
  .contact-split {
    flex-direction: column;
    gap: 0;
    padding: 0;
  }
  
  .contact-sidebar {
    padding: 2.5rem 1.5rem;
    max-width: 100%;
  }

  .contact-form-outer {
    padding: 0;
  }

  .contact-form-inner,
  .contact-success-state {
    padding: 2.5rem 1.5rem;
    border-radius: 0 0 32px 32px;
  }

  .info-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .info-card {
    padding: 1.2rem;
  }

  .contact-form-col {
    padding: 0 !important;
    width: 100%;
  }

  .premium-form {
    padding: 2.5rem 1.5rem !important;
  }

  .form-group {
    margin-bottom: 1.5rem;
  }

  /* Footer */
  .site-footer {
    padding: 3rem 1.5rem;
  }
}

/* ========== MOBILE MENU STYLES ========== */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  cursor: pointer;
  z-index: 1000;
}

.mobile-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 10px;
  transition: all 0.3s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

.mobile-toggle.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bg-dark);
  /* Solid dark background */
  background: radial-gradient(circle at center, #0f172a 0%, var(--bg-dark) 100%);
  z-index: 10000;
  /* Above everything */
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.mobile-menu-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  width: 32px;
  height: 32px;
  cursor: pointer;
  z-index: 10001;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.mobile-menu-close span {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 10px;
  position: absolute;
}

.mobile-menu-close span:nth-child(1) {
  transform: rotate(45deg);
}

.mobile-menu-close span:nth-child(2) {
  transform: rotate(-45deg);
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3.5rem;
  width: 100%;
}

.mobile-link {
  font-size: 2.5rem;
  font-weight: 900;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  transition: all 0.3s ease;
  position: relative;
}

.mobile-link::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 4px;
  background: var(--primary-base);
  transition: width 0.3s ease;
}

.mobile-link:hover {
  color: var(--primary-glow);
  transform: scale(1.1);
}

.mobile-link:hover::after {
  width: 40px;
}

.no-scroll {
  overflow: hidden !important;
  height: 100vh;
}

/* --- Home Page Contact CTA --- */
.contact-cta-wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 12rem 2rem 16rem 2rem;
}

.contact-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: #ffffff;
  border-radius: 40px;
  padding: 6rem 3rem;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
  width: 100%;
}

.contact-icon {
  font-size: 4rem;
  margin-bottom: 2rem;
  transform: translateY(0);
  animation: float 6s ease-in-out infinite;
}

.contact-card .section-title {
  color: #0f172a;
  font-size: clamp(2rem, 4vw, 3.8rem);
  margin-bottom: 1.5rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.contact-card .section-subtitle {
  color: #475569;
  font-size: 1.25rem;
  line-height: 1.6;
  margin-bottom: 3.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 500;
}

.contact-card .btn-3d {
  text-decoration: none;
  display: inline-flex;
  width: auto;
  min-width: 250px;
  justify-content: center;
  padding: 1.2rem 3rem;
  font-size: 1.1rem;
}

@media (max-width: 1024px) {
  .desktop-only {
    display: none !important;
  }

  .mobile-toggle {
    display: flex;
  }

  /* mobile.css now handles all pin wrapper height overrides */

  .contact-cta-wrapper {
    padding: 6rem 1rem !important;
  }

  .contact-card {
    padding: 4rem 1.5rem !important;
    border-radius: 30px !important;
  }

  .contact-icon {
    font-size: 3rem !important;
  }

  .contact-card .section-subtitle {
    font-size: 1.1rem !important;
    margin-bottom: 2.5rem !important;
  }

  .section-content-wrapper.split-layout {
    flex-direction: column;
    text-align: center;
    gap: 4rem;
    padding: 10rem 1.5rem 6rem !important;
  }

  .text-col,
  .visual-col {
    width: 100% !important;
    padding: 0 !important;
  }

  /* Global Internal Page Mobile Refinements */
  .standard-section {
    padding: 6rem 1.5rem !important;
  }

  .main-content h1 {
    font-size: 2.8rem !important;
    line-height: 1.1 !important;
  }

  .main-content p {
    font-size: 1.1rem !important;
  }

  /* mobile.css handles the pin wrapper overrides above */
}

@media (max-width: 768px) {

  /* Hero Section Canvas Refinement */
  .hero-content-wrapper {
    padding-top: 6rem;
  }

  .hero-video-col {
    height: 35vh;
    margin-bottom: 5vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
  }

  #hero-video-canvas {
    width: 100%;
    height: 100%;
    object-fit: contain;
    scale: 1.35;
    margin-bottom: 0 !important;
  }

  .hero-ai {
    font-size: 2.5rem;
  }

  .hero-future {
    font-size: 2rem;
  }

  /* About Section Canvas Refinement */
  #about-canvas-col {
    height: 48vh;
    margin-top: 0;
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: visible;
  }

  .about-visual-img {
    scale: 1.1;
    margin-bottom: 0 !important;
    object-fit: contain;
    transform: translateY(0);
  }

  /* Services Section Canvas Refinement */
  .services-headline-box {
    top: 5rem !important;
    padding: 0 1rem;
    z-index: 20;
    text-align: center;
  }

  .services-title .line-2 {
    font-size: 2.4rem !important;
    text-align: center;
    width: 100%;
    display: block;
  }

  .services-canvas-col {
    height: 55vh;
    margin-top: 12vh;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: visible;
  }

  #services-video-canvas {
    scale: 1.4;
    margin-bottom: -39vh !important;
    object-fit: contain;
    transform-origin: bottom center;
  }

  .capsules-wrapper {
    z-index: 15;
  }

  .floating-capsule {
    padding: 0.5rem 0.8rem;
  }

  .cap-text {
    font-size: 0.65rem;
  }

  /* Adjusted capsule positions for better flow around bottom-centered character */
  .cap-1 {
    top: 22% !important;
    left: 6% !important;
  }

  .cap-2 {
    top: 42% !important;
    left: 4% !important;
  }

  .cap-3 {
    top: 62% !important;
    left: 6% !important;
  }

  .cap-4 {
    top: 22% !important;
    right: 6% !important;
  }

  .cap-5 {
    top: 42% !important;
    right: 4% !important;
  }

  .cap-6 {
    top: 62% !important;
    right: 6% !important;
  }

  /* ============================================================
     SECTION 4 – WHY CHOOSE US: MOBILE REDESIGN
     Critical: Force GSAP-animated elements visible on mobile.
     GSAP ScrollTrigger pins don't reliably fire on touch devices,
     leaving opacity:0 elements permanently hidden.
  ============================================================ */

  /* 1. Disable GSAP pinning behaviour on mobile */
  #portfolio-pin-wrapper {
    position: relative !important;
    height: auto !important;
    overflow: visible !important;
    margin-top: -80px;
  }

  /* 2. Make the white card a normal block (not absolutely positioned) */
  #portfolio-card-layer {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 92% !important;
    height: auto !important;
    min-height: auto !important;
    margin: 80px auto 2rem !important;
    /* 80px clears the fixed navbar */
    border-radius: 28px !important;
    padding: 2rem 1.25rem 2.5rem !important;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(30px) !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1) !important;
    display: block !important;
    z-index: 10 !important;
  }

  /* 3. CRITICAL – force all GSAP-hidden elements visible */
  .choose-title,
  .benefit-item,
  #portfolio-static-img,
  #planet-orb,
  #rocket-ship {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
    visibility: visible !important;
  }

  /* 4. Reset split-layout to a single column */
  .section-content-wrapper.split-layout {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 1.5rem !important;
    padding: 0 !important;
    height: auto !important;
  }

  /* 5. Text column – full width, top-aligned */
  #portfolio-text-col {
    width: 100% !important;
    flex: none !important;
    padding: 0 !important;
    text-align: center !important;
  }

  /* 6. Headline */
  .choose-title {
    font-size: 1.7rem !important;
    font-weight: 900 !important;
    line-height: 1.1 !important;
    letter-spacing: -0.02em !important;
    margin-bottom: 1.5rem !important;
    color: #1e293b !important;
  }

  /* 7. Benefit cards */
  .benefits-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.75rem !important;
    width: 100% !important;
    padding: 0 !important;
    list-style: none !important;
    margin: 0 !important;
    text-align: left !important;
  }

  .benefit-item {
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    background: rgba(37, 99, 235, 0.05) !important;
    border: 1px solid rgba(37, 99, 235, 0.12) !important;
    border-radius: 14px !important;
    padding: 0.9rem 1rem 0.9rem 3rem !important;
    margin: 0 !important;
    position: relative !important;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.06) !important;
  }

  .benefit-item::before {
    content: '→' !important;
    position: absolute !important;
    left: 1rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    font-size: 1rem !important;
    color: var(--primary-base) !important;
    font-weight: 900 !important;
  }

  /* 8. Visual / character column */
  .portfolio-visual-col {
    width: 100% !important;
    flex: none !important;
    height: 280px !important;
    position: relative !important;
    display: flex !important;
    align-items: flex-end !important;
    justify-content: center !important;
    overflow: visible !important;
  }

  .portfolio-canvas-container {
    height: 100% !important;
    display: flex !important;
    align-items: flex-end !important;
    justify-content: center !important;
    overflow: visible !important;
  }

  #portfolio-static-img {
    width: auto !important;
    height: 260px !important;
    object-fit: contain !important;
    display: block !important;
    scale: none !important;
    transform: none !important;
  }

  /* 9. Earth & Rocket – small decorative positions */
  #planet-orb {
    position: absolute !important;
    top: 10px !important;
    left: 20px !important;
    width: 55px !important;
    height: 55px !important;
    opacity: 1 !important;
    transform: none !important;
  }

  #planet-orb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
  }

  #rocket-ship {
    position: absolute !important;
    top: 10px !important;
    right: 20px !important;
    left: auto !important;
    width: 55px !important;
    height: 55px !important;
    opacity: 1 !important;
    transform: none !important;
  }

  #rocket-ship img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
  }

  /* 10. Hide the nebula background on mobile to remove visual clutter */
  #nebula-container {
    display: none !important;
  }
}

