/* =============================================
   Shafinity - Talent Partners | Global Styles
   v2.0 — Preloader + Hero Carousel
   ============================================= */

:root {
  /* Dark Mode Variables (Default) */
  --color-bg: 10 15 30; /* #0a0f1e */
  --color-bg-secondary: 13 22 48; /* #0d1630 */
  --color-text: 255 255 255; /* #ffffff */
  
  --color-cyan: 6 182 212; /* #06b6d4 */
  --color-cyan-light: 103 232 249;
  --color-violet: 124 58 237; /* #7c3aed */
  --color-violet-light: 167 139 250;
  --color-blue-primary: 37 99 235; /* #2563eb */
  --color-blue-dark: 15 36 96; /* #0f2460 */
}

body.light-theme {
  /* Light Mode Variables (Requested Palette) */
  --color-bg: 248 250 252; /* #f8fafc (Light slate background) */
  --color-bg-secondary: 255 255 255; /* White for cards */
  --color-text: 11 76 140; /* #0B4C8C (Dark Blue text) */
  
  /* Primary accents and elements */
  --color-cyan: 244 212 124; /* #F4D47C (Gold) */
  --color-cyan-light: 244 212 124; /* #F4D47C (Gold) */
  --color-violet: 11 76 140; /* #0B4C8C (Dark Blue) */
  --color-violet-light: 11 76 140; /* #0B4C8C (Dark Blue) */
  --color-blue-primary: 11 76 140; /* #0B4C8C */
  --color-blue-dark: 244 212 124; /* #F4D47C */
}

body {
  background-color: rgb(var(--color-bg));
  color: rgb(var(--color-text));
  transition: background-color 0.5s ease, color 0.5s ease;
}


/* ══════════════════════════════════════════════
   PRELOADER
══════════════════════════════════════════════ */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgb(var(--color-bg));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s, filter 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.5s ease;
  overflow: hidden;
}

/* Animated background grid inside preloader */
#preloader::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(var(--color-cyan),0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--color-cyan),0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* Ambient orbs behind the logo */
#preloader::after {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--color-cyan),0.08) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: pl-pulse-orb 3s ease-in-out infinite;
}

@keyframes pl-pulse-orb {
  0%, 100% { transform: translate(-50%,-50%) scale(1); opacity: 0.6; }
  50% { transform: translate(-50%,-50%) scale(1.15); opacity: 1; }
}

#preloader.pl-hidden { display: none; }

#preloader.pl-exit {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.05);
  filter: blur(10px);
  pointer-events: none;
}

.pl-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

/* ── Logo wrap with spinning ring ── */
.pl-logo-wrap {
  position: relative;
  width: 140px; height: 140px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
}

.pl-ring {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  transform: rotate(-90deg);
  filter: drop-shadow(0 0 12px rgba(6,182,212,0.5));
}

.pl-ring-track {
  fill: none;
  stroke: rgba(255,255,255,0.06);
  stroke-width: 3;
}

.pl-ring-fill {
  fill: none;
  stroke: url(#plGrad);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 339;
  stroke-dashoffset: 339;
  animation: pl-ring-spin 2s cubic-bezier(0.4,0,0.2,1) forwards,
             pl-ring-loop 2s 2s linear infinite;
}

@keyframes pl-ring-spin {
  0%   { stroke-dashoffset: 339; }
  100% { stroke-dashoffset: 0; }
}

@keyframes pl-ring-loop {
  0%   { stroke-dashoffset: 0; transform: rotate(0deg); }
  100% { stroke-dashoffset: 0; transform: rotate(360deg); }
}

/* Define gradient for ring inside SVG — we use a defs trick via CSS */
.pl-ring { animation: pl-ring-rotate 2s linear infinite; }

@keyframes pl-ring-rotate {
  to { transform: rotate(360deg); }
}

.pl-logo {
  width: 110px; height: 110px;
  object-fit: contain;
  border-radius: 50%;
  animation: pl-logo-appear 0.8s cubic-bezier(0.34,1.56,0.64,1) both;
  filter: drop-shadow(0 0 20px rgba(6,182,212,0.4));
}

@keyframes pl-logo-appear {
  0%   { opacity: 0; transform: scale(0.5) rotate(-10deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

.pl-logo-fallback {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(6,182,212,0.15), rgba(124,58,237,0.15));
  border: 2px solid rgba(6,182,212,0.3);
  display: flex; align-items: center; justify-content: center;
}

.pl-brand {
  font-family: 'Sora', 'Inter', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  background: linear-gradient(135deg, #67e8f9 0%, #2563eb 50%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
  animation: pl-text-up 0.7s 0.4s ease both;
}

.pl-tagline {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: rgba(var(--color-text),0.35);
  font-weight: 500;
  margin-bottom: 28px;
  animation: pl-text-up 0.7s 0.55s ease both;
}

@keyframes pl-text-up {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Progress bar */
.pl-bar-wrap {
  width: 200px; height: 2px;
  background: rgba(var(--color-text),0.07);
  border-radius: 2px;
  overflow: hidden;
  animation: pl-text-up 0.7s 0.7s ease both;
}

.pl-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #06b6d4, #7c3aed, #06b6d4);
  background-size: 200% 100%;
  border-radius: 2px;
  animation: pl-bar-shimmer 1.5s linear infinite;
}

@keyframes pl-bar-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ══════════════════════════════════════════════
   HERO CAROUSEL
══════════════════════════════════════════════ */
.hero-carousel {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  z-index: 0;
  transition: opacity 1.4s cubic-bezier(0.4, 0, 0.2, 1);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
}

.carousel-slide.active {
  opacity: 1;
  z-index: 2;
}

.carousel-slide.exiting {
  opacity: 0;
  z-index: 1;
}

/* Dark overlay on each slide — DARK THEME: strong cinematic black overlay */
.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(2, 6, 15, 0.88) 0%,
    rgba(4, 10, 28, 0.75) 50%,
    rgba(6, 5, 20, 0.82) 100%
  );
  z-index: 1;
}

/* Additional grid texture overlay */
.slide-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(6,182,212,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6,182,212,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

.slide-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: 100px;
  padding-bottom: 80px;
}

/* Content animation when slide becomes active */
.carousel-slide.active .slide-animate {
  animation: slide-content-in 0.9s 0.3s cubic-bezier(0.34,1.2,0.64,1) both;
}

@keyframes slide-content-in {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Navbar logo image */
.navbar-logo-img {
  height: 48px;
  width: 48px; /* Force square for perfect circle */
  object-fit: cover;
  border-radius: 50%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 0 15px rgba(6,182,212,0.4);
}

.navbar-logo-img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(6,182,212,0.6);
}

/* Footer logo image */
.footer-bg img[src="shafinity_logo_1782756470904.png"] {
  height: 56px;
  width: 56px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(6,182,212,0.3);
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Sora:wght@400;500;600;700;800&display=swap');

/* ─── CSS Variables ─── */
:root {
  --navy:        rgb(var(--color-bg));
  --navy-light:  rgb(var(--color-bg-secondary));
  --blue-dark:   rgb(var(--color-blue-dark));
  --blue:        rgb(var(--color-blue-primary));
  --royal:       rgb(var(--color-blue-primary));
  --cyan:        rgb(var(--color-cyan));
  --cyan-light:  rgb(var(--color-cyan-light));
  --violet:      rgb(var(--color-violet));
  --violet-light:rgb(var(--color-violet-light));
  --white:       rgb(var(--color-text));
  --gray-100:    #f0f4ff;
  --gray-200:    #e2e8f0;
  --gray-400:    #94a3b8;
  --gray-500:    #64748b;
}

/* ─── Base Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: var(--navy);
  color: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--navy); }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--cyan), var(--violet)); border-radius: 10px; }

/* ─── Typography ─── */
h1, h2, h3, h4, h5 { font-family: 'Sora', 'Inter', sans-serif; font-weight: 700; line-height: 1.2; }

/* ─── Gradient Text ─── */
.gradient-text {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--blue) 50%, var(--violet-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-2 {
  background: linear-gradient(135deg, #67e8f9 0%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Glass Card ─── */
.glass-card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  transition: all 0.35s ease;
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(6, 182, 212, 0.3);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(6, 182, 212, 0.12), 0 0 0 1px rgba(6, 182, 212, 0.2);
}

/* ─── Glow Border ─── */
.glow-border {
  border: 1px solid rgba(6, 182, 212, 0.4);
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.15), inset 0 0 20px rgba(6, 182, 212, 0.05);
}

.glow-border-violet {
  border: 1px solid rgba(124, 58, 237, 0.4);
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.2);
}

/* ─── Gradient Buttons ─── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--cyan) 0%, var(--blue) 60%, var(--violet) 100%);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--violet) 0%, var(--blue) 60%, var(--cyan) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover { box-shadow: 0 8px 30px rgba(6, 182, 212, 0.4); transform: translateY(-2px); }
.btn-primary span { position: relative; z-index: 1; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  background: transparent;
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 50px;
  border: 1.5px solid rgba(255,255,255,0.3);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-outline:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.2);
  transform: translateY(-2px);
}

/* ─── Navbar ─── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all 0.4s ease;
  background: transparent;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

#navbar.scrolled {
  background: rgba(10, 15, 30, 0.45);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(6, 182, 212, 0.2);
  padding: 12px 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.nav-link {
  position: relative;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.3s ease;
  padding: 4px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--violet-light));
  border-radius: 2px;
  transition: width 0.3s ease;
}

.nav-link:hover { color: var(--cyan); }
.nav-link:hover::after { width: 100%; }
.nav-link.active { color: var(--cyan); }
.nav-link.active::after { width: 100%; }

/* ─── Mobile Menu ─── */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.4,0,0.2,1), opacity 0.35s ease;
  opacity: 0;
}

#mobile-menu.open {
  max-height: 600px;
  opacity: 1;
}

.mobile-nav-link {
  display: block;
  padding: 14px 24px;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: all 0.25s ease;
}

.mobile-nav-link:hover {
  color: var(--cyan);
  background: rgba(6, 182, 212, 0.06);
  padding-left: 32px;
}

/* ─── Hero Section ─── */
.hero-bg {
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(6,182,212,0.18) 0%, transparent 60%),
              radial-gradient(ellipse 60% 50% at 90% 50%, rgba(124,58,237,0.15) 0%, transparent 60%),
              radial-gradient(ellipse 50% 50% at 10% 80%, rgba(26,86,219,0.12) 0%, transparent 60%),
              linear-gradient(180deg, #0a0f1e 0%, #0d1630 100%);
}

/* ─── Orb / Glow Shapes ─── */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  animation: float 8s ease-in-out infinite;
}

.orb-1 {
  width: 400px; height: 400px;
  background: rgba(6, 182, 212, 0.12);
  top: -100px; left: -100px;
  animation-delay: 0s;
}

.orb-2 {
  width: 500px; height: 500px;
  background: rgba(124, 58, 237, 0.1);
  top: 100px; right: -150px;
  animation-delay: -3s;
}

.orb-3 {
  width: 300px; height: 300px;
  background: rgba(26, 86, 219, 0.12);
  bottom: 0; left: 30%;
  animation-delay: -5s;
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

/* ─── Section Backgrounds ─── */
.section-dark { background: linear-gradient(180deg, var(--navy) 0%, #0b1225 100%); }
.section-darker { background: linear-gradient(180deg, #08101f 0%, var(--navy) 100%); }
.section-mid {
  background: linear-gradient(135deg, #0d1630 0%, #0a0f1e 50%, #0f0a1e 100%);
}

/* ─── Stat Cards ─── */
.stat-card {
  background: linear-gradient(135deg, rgba(6,182,212,0.08) 0%, rgba(124,58,237,0.08) 100%);
  border: 1px solid rgba(6,182,212,0.2);
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
  transition: all 0.3s ease;
}

.stat-card:hover {
  border-color: rgba(6,182,212,0.5);
  box-shadow: 0 10px 40px rgba(6,182,212,0.15);
  transform: translateY(-4px);
}

/* ─── Service Cards ─── */
.service-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 20px;
  padding: 36px 28px;
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.service-card:hover::before { transform: scaleX(1); }
.service-card:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(6,182,212,0.25);
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

/* ─── Icon Wrapper ─── */
.icon-wrap {
  width: 60px; height: 60px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.icon-wrap-cyan {
  background: linear-gradient(135deg, rgba(6,182,212,0.2) 0%, rgba(6,182,212,0.05) 100%);
  border: 1px solid rgba(6,182,212,0.3);
}

.icon-wrap-violet {
  background: linear-gradient(135deg, rgba(124,58,237,0.2) 0%, rgba(124,58,237,0.05) 100%);
  border: 1px solid rgba(124,58,237,0.3);
}

.icon-wrap-blue {
  background: linear-gradient(135deg, rgba(26,86,219,0.2) 0%, rgba(26,86,219,0.05) 100%);
  border: 1px solid rgba(26,86,219,0.3);
}

.service-card:hover .icon-wrap { transform: scale(1.1) rotate(5deg); }

/* ─── Course Card ─── */
.course-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.35s ease;
}

.course-card:hover {
  border-color: rgba(6,182,212,0.35);
  transform: translateY(-8px);
  box-shadow: 0 25px 60px rgba(6,182,212,0.12);
}

.course-card-header {
  height: 160px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
}

.course-tag {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ─── Step Process ─── */
.step-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 24px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  transition: all 0.3s ease;
}

.step-item:hover {
  border-color: rgba(6,182,212,0.25);
  background: rgba(6,182,212,0.04);
}

.step-number {
  width: 48px; height: 48px;
  min-width: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 4px 20px rgba(6,182,212,0.3);
}

/* ─── Form Styles ─── */
.form-field {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 14px 18px;
  color: white;
  width: 100%;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  outline: none;
}

.form-field::placeholder { color: rgba(255,255,255,0.3); }

.form-field:focus {
  border-color: var(--cyan);
  background: rgba(6,182,212,0.06);
  box-shadow: 0 0 0 3px rgba(6,182,212,0.12);
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
}

/* ─── FAQ Accordion ─── */
.faq-item {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item.open { border-color: rgba(6,182,212,0.3); }

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  background: rgba(255,255,255,0.03);
  transition: all 0.3s ease;
  font-weight: 600;
  font-size: 1rem;
}

.faq-question:hover { background: rgba(6,182,212,0.05); }

.faq-icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(6,182,212,0.1);
  border: 1px solid rgba(6,182,212,0.3);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all 0.35s ease;
  color: var(--cyan);
  font-size: 1.2rem;
  line-height: 1;
}

.faq-item.open .faq-icon { transform: rotate(45deg); background: rgba(6,182,212,0.2); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1), padding 0.3s ease;
  padding: 0 24px;
  color: rgba(255,255,255,0.65);
  font-size: 0.95rem;
  line-height: 1.75;
}

.faq-item.open .faq-answer { max-height: 300px; padding: 0 24px 20px; }

/* ─── Filter Buttons ─── */
.filter-btn {
  padding: 9px 22px;
  border-radius: 50px;
  border: 1.5px solid rgba(255,255,255,0.12);
  background: transparent;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  border-color: rgba(6,182,212,0.5);
  color: var(--cyan);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  border-color: transparent;
  color: white;
  box-shadow: 0 4px 15px rgba(6,182,212,0.3);
}

/* ─── Testimonial Card ─── */
.testimonial-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 32px 28px;
  position: relative;
  transition: all 0.35s ease;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 16px; left: 24px;
  font-size: 5rem;
  line-height: 1;
  color: rgba(6,182,212,0.15);
  font-family: Georgia, serif;
}

.testimonial-card:hover {
  border-color: rgba(6,182,212,0.25);
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(6,182,212,0.1);
}

/* ─── Section Label ─── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border-radius: 30px;
  background: rgba(6,182,212,0.1);
  border: 1px solid rgba(6,182,212,0.25);
  color: var(--cyan);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

/* ─── Divider ─── */
.gradient-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(6,182,212,0.4), rgba(124,58,237,0.4), transparent);
  border: none;
  margin: 0;
}

/* ─── Footer ─── */
.footer-bg {
  background: linear-gradient(180deg, #060c1a 0%, #04080f 100%);
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-link {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
  display: block;
  margin-bottom: 10px;
}

.footer-link:hover { color: var(--cyan); }

/* ─── Social Icon ─── */
.social-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  color: rgba(255,255,255,0.6);
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.social-icon:hover {
  background: linear-gradient(135deg, rgba(6,182,212,0.2), rgba(124,58,237,0.2));
  border-color: rgba(6,182,212,0.5);
  color: var(--cyan);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(6,182,212,0.2);
}

/* ─── Contact Info Card ─── */
.contact-info-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 28px 24px;
  transition: all 0.3s ease;
  text-align: center;
}

.contact-info-card:hover {
  border-color: rgba(6,182,212,0.3);
  background: rgba(6,182,212,0.04);
  transform: translateY(-4px);
}

/* ─── Scroll Reveal ─── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-left.visible { opacity: 1; transform: translateX(0); }

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* Staggered reveal delays */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }
.delay-600 { transition-delay: 0.6s; }

/* ─── Map Placeholder ─── */
.map-placeholder {
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  height: 300px;
  background: linear-gradient(135deg, #0d1630, #0f0a1e);
  border: 1px solid rgba(6,182,212,0.2);
  display: flex; align-items: center; justify-content: center;
}

body.light-theme .map-placeholder {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(240, 248, 255, 0.8)) !important;
  border: 1px solid rgba(11, 76, 140, 0.15) !important;
  box-shadow: 0 10px 40px rgba(11, 76, 140, 0.08) !important;
}

/* ─── Badge ─── */
.badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 30px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-cyan  { background: rgba(6,182,212,0.15); color: #22d3ee; border: 1px solid rgba(6,182,212,0.3); }
.badge-violet{ background: rgba(124,58,237,0.15); color: #a78bfa; border: 1px solid rgba(124,58,237,0.3); }
.badge-blue  { background: rgba(26,86,219,0.15);  color: #60a5fa; border: 1px solid rgba(26,86,219,0.3); }
.badge-green { background: rgba(16,185,129,0.15); color: #34d399; border: 1px solid rgba(16,185,129,0.3); }

/* ─── Hero Floating Card ─── */
.hero-stat-card {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 20px 24px;
  animation: float-card 5s ease-in-out infinite;
}

@keyframes float-card {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ─── Checkmark List ─── */
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  color: rgba(255,255,255,0.8);
}

.check-list li::before {
  content: '✓';
  width: 22px; height: 22px;
  min-width: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  margin-top: 2px;
}

/* ─── Upload Box ─── */
.upload-box {
  border: 2px dashed rgba(6,182,212,0.35);
  border-radius: 14px;
  padding: 30px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: rgba(6,182,212,0.03);
}

.upload-box:hover {
  border-color: rgba(6,182,212,0.6);
  background: rgba(6,182,212,0.06);
}

/* ─── Hamburger ─── */
.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
}

/* ─── Pulsing Dot ─── */
.pulse-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--cyan);
  animation: pulse 2s ease-in-out infinite;
  display: inline-block;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 0 rgba(6,182,212,0.4); }
  50% { transform: scale(1.2); box-shadow: 0 0 0 8px rgba(6,182,212,0); }
}

/* ─── Background Grid ─── */
.bg-grid {
  background-image: linear-gradient(rgba(6,182,212,0.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(6,182,212,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ─── Gradient line decoration ─── */
.line-decoration {
  width: 60px; height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  margin: 0 auto 24px;
}

/* ─── Responsive Utilities ─── */
@media (max-width: 768px) {
  .hero-title { font-size: 2.2rem !important; }
  .section-title { font-size: 1.8rem !important; }
  .orb-1, .orb-2, .orb-3 { display: none; }
}

/* ════════════════════════════════════════════════════════
   LIGHT THEME — Full Overrides
   Palette: Background #f0f6ff, Text #0B4C8C, Accents #F4D47C (Gold)
════════════════════════════════════════════════════════ */

body.light-theme {
  background-color: #eaf2ff !important;
  color: #0B4C8C !important;
}

/* ── Navbar (light) ── */
body.light-theme #navbar {
  background: transparent !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
}
body.light-theme #navbar.scrolled {
  background: rgba(255, 255, 255, 0.55) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  border-bottom: 1px solid rgba(244, 212, 124, 0.4) !important;
  box-shadow: 0 4px 30px rgba(11, 76, 140, 0.1) !important;
}
body.light-theme .nav-link { color: #0B4C8C !important; }
body.light-theme .nav-link:hover,
body.light-theme .nav-link.active { color: #d4960a !important; }
body.light-theme .nav-link::after {
  background: linear-gradient(90deg, #d4960a, #0B4C8C) !important;
}

/* ── Mobile Menu (light) ── */
body.light-theme #mobile-menu {
  background: rgba(225, 238, 255, 0.99) !important;
  border-top: 1px solid rgba(11, 76, 140, 0.12) !important;
}
body.light-theme .mobile-nav-link {
  color: #0B4C8C !important;
  border-bottom: 1px solid rgba(11, 76, 140, 0.08) !important;
}
body.light-theme .mobile-nav-link:hover {
  color: #d4960a !important;
  background: rgba(11, 76, 140, 0.06) !important;
}
body.light-theme .hamburger-line { background: #0B4C8C !important; }

/* ── Theme Toggle Button (light) ── */
body.light-theme #theme-toggle {
  background: rgba(11, 76, 140, 0.12) !important;
  border: 1px solid rgba(11, 76, 140, 0.2);
}
body.light-theme #theme-toggle svg { stroke: #0B4C8C !important; }

/* ── Hero Slide overlay (light) — black overlay ── */
body.light-theme .slide-overlay {
  background: rgba(0, 0, 0, 0.65) !important;
}
body.light-theme .hero-carousel {
  background-color: #000 !important;
}
/* Keep hero text white since overlay is dark */
body.light-theme .hero-title { color: #ffffff !important; }
body.light-theme .slide-content h1,
body.light-theme .slide-content p,
body.light-theme .slide-content .section-label { color: rgba(255,255,255,0.9) !important; }
body.light-theme .slide-content .gradient-text {
  background: linear-gradient(135deg, #F4D47C 0%, #ffe082 50%, #F4D47C 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}
body.light-theme .slide-content .section-label {
  background: rgba(244, 212, 124, 0.18) !important;
  border: 1px solid rgba(244, 212, 124, 0.55) !important;
  color: #F4D47C !important;
}

/* ── Gradient text OUTSIDE hero (light) ── */
body.light-theme .gradient-text {
  background: linear-gradient(135deg, #0B4C8C 0%, #1565c0 50%, #d4960a 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}
body.light-theme .gradient-text-2 {
  background: linear-gradient(135deg, #0B4C8C 0%, #d4960a 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

/* ── Buttons (light) ── */
body.light-theme .btn-primary {
  background: linear-gradient(135deg, #0B4C8C 0%, #1565c0 60%, #d4960a 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 20px rgba(11, 76, 140, 0.35) !important;
}
body.light-theme .btn-primary:hover {
  box-shadow: 0 8px 30px rgba(11, 76, 140, 0.5) !important;
}
body.light-theme .btn-primary::before {
  background: linear-gradient(135deg, #d4960a 0%, #1565c0 60%, #0B4C8C 100%) !important;
}
/* Ensure button text stays white! (High specificity to override section span rules) */
body.light-theme section .btn-primary span,
body.light-theme section .btn-primary svg,
body.light-theme .btn-primary span,
body.light-theme .btn-primary svg {
  color: #ffffff !important;
}

body.light-theme .btn-outline {
  border: 1.5px solid #0B4C8C !important;
  color: #0B4C8C !important;
}
body.light-theme .btn-outline:hover {
  border-color: #d4960a !important;
  color: #d4960a !important;
  box-shadow: 0 0 20px rgba(212, 150, 10, 0.2) !important;
}
body.light-theme section .btn-outline span,
body.light-theme section .btn-outline svg,
body.light-theme .btn-outline span,
body.light-theme .btn-outline svg {
  color: inherit !important;
}

/* ── All section backgrounds (light) ── */
body.light-theme main section,
body.light-theme .section-dark,
body.light-theme .section-darker,
body.light-theme .section-mid,
body.light-theme [class*="bg-navy"],
body.light-theme [class*="bg-blue-dark"] {
  background-color: #eaf2ff !important;
}
/* Alternate sections get slightly different shade */
body.light-theme main section:nth-child(even) {
  background-color: #ddeeff !important;
}

/* ── Glass Cards (light) ── */
body.light-theme .glass-card {
  background: rgba(255, 255, 255, 0.82) !important;
  border: 1px solid rgba(11, 76, 140, 0.18) !important;
  box-shadow: 0 4px 20px rgba(11, 76, 140, 0.08) !important;
}
body.light-theme .glass-card:hover {
  background: rgba(255, 255, 255, 0.95) !important;
  border-color: rgba(212, 150, 10, 0.5) !important;
  box-shadow: 0 20px 60px rgba(11, 76, 140, 0.14), 0 0 0 1px rgba(212, 150, 10, 0.25) !important;
}

/* ── Stat Cards (light) ── */
body.light-theme .stat-card {
  background: rgba(255, 255, 255, 0.75) !important;
  border: 1px solid rgba(11, 76, 140, 0.22) !important;
}
body.light-theme .stat-card:hover {
  border-color: rgba(212, 150, 10, 0.55) !important;
  box-shadow: 0 10px 40px rgba(11, 76, 140, 0.15) !important;
}

/* ── Service Cards & Step items (light) ── */
body.light-theme .service-card,
body.light-theme .step-item {
  background: rgba(255, 255, 255, 0.80) !important;
  border: 1px solid rgba(11, 76, 140, 0.15) !important;
}
body.light-theme .service-card:hover,
body.light-theme .step-item:hover {
  background: rgba(255, 255, 255, 0.98) !important;
  border-color: rgba(212, 150, 10, 0.5) !important;
  box-shadow: 0 20px 50px rgba(11, 76, 140, 0.12) !important;
}

/* ── Course Cards (light) ── */
body.light-theme .course-card {
  background: rgba(255, 255, 255, 0.85) !important;
  border: 1px solid rgba(11, 76, 140, 0.15) !important;
}
body.light-theme .course-card:hover {
  border-color: rgba(212, 150, 10, 0.5) !important;
  box-shadow: 0 25px 60px rgba(11, 76, 140, 0.15) !important;
}

/* ── ALL text inside cards & sections (light) ── */
body.light-theme .service-card h3,
body.light-theme .service-card h4,
body.light-theme .service-card p,
body.light-theme .step-item h3,
body.light-theme .step-item p,
body.light-theme .glass-card h2,
body.light-theme .glass-card h3,
body.light-theme .glass-card p,
body.light-theme .stat-card h2,
body.light-theme .stat-card p,
body.light-theme .course-card h3,
body.light-theme .course-card p,
body.light-theme .testimonial-card p,
body.light-theme .testimonial-card h4 {
  color: #0B4C8C !important;
}

/* ── White-opacity text utility overrides (light) ── */
body.light-theme [class*="text-white"] {
  color: #0B4C8C !important;
}
/* Exception: inside hero slides, keep white */
body.light-theme .carousel-slide [class*="text-white"] {
  color: rgba(255, 255, 255, 0.85) !important;
}
body.light-theme .carousel-slide .hero-title {
  color: #ffffff !important;
}

/* ── Section headings (light) ── */
body.light-theme h1:not(.hero-title),
body.light-theme h2,
body.light-theme h3,
body.light-theme h4,
body.light-theme h5 {
  color: #0B4C8C !important;
}
body.light-theme p {
  color: rgba(11, 76, 140, 0.78) !important;
}

/* ── Section Label (light) ── */
body.light-theme .section-label {
  background: rgba(11, 76, 140, 0.1) !important;
  border: 1px solid rgba(11, 76, 140, 0.25) !important;
  color: #0B4C8C !important;
}

/* ── Forms (light) ── */
body.light-theme .form-field {
  background: rgba(255, 255, 255, 0.9) !important;
  border: 1px solid rgba(11, 76, 140, 0.22) !important;
  color: #0B4C8C !important;
}
body.light-theme .form-field::placeholder { color: rgba(11, 76, 140, 0.42) !important; }
body.light-theme .form-field:focus {
  border-color: #d4960a !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(212, 150, 10, 0.18) !important;
}
body.light-theme .form-label { color: rgba(11, 76, 140, 0.85) !important; }

/* ── FAQ Accordion (light) ── */
body.light-theme .faq-item {
  border: 1px solid rgba(11, 76, 140, 0.14) !important;
  background: rgba(255,255,255,0.65) !important;
}
body.light-theme .faq-item.open { border-color: rgba(212, 150, 10, 0.5) !important; }
body.light-theme .faq-question {
  background: rgba(255, 255, 255, 0.7) !important;
  color: #0B4C8C !important;
}
body.light-theme .faq-question:hover { background: rgba(11, 76, 140, 0.05) !important; }
body.light-theme .faq-icon {
  background: rgba(212, 150, 10, 0.15) !important;
  border: 1px solid rgba(212, 150, 10, 0.4) !important;
  color: #d4960a !important;
}
body.light-theme .faq-answer { color: rgba(11, 76, 140, 0.75) !important; }

/* ── Filter Buttons (light) ── */
body.light-theme .filter-btn {
  border: 1.5px solid rgba(11, 76, 140, 0.22) !important;
  color: rgba(11, 76, 140, 0.7) !important;
  background: transparent !important;
}
body.light-theme .filter-btn:hover {
  border-color: rgba(212, 150, 10, 0.6) !important;
  color: #d4960a !important;
}
body.light-theme .filter-btn.active {
  background: linear-gradient(135deg, #0B4C8C, #d4960a) !important;
  border-color: transparent !important;
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(11, 76, 140, 0.3) !important;
}

/* ── Testimonial Cards (light) ── */
body.light-theme .testimonial-card {
  background: rgba(255, 255, 255, 0.78) !important;
  border: 1px solid rgba(11, 76, 140, 0.14) !important;
}
body.light-theme .testimonial-card:hover {
  border-color: rgba(212, 150, 10, 0.5) !important;
  box-shadow: 0 15px 40px rgba(11, 76, 140, 0.12) !important;
}
body.light-theme .testimonial-card::before { color: rgba(212, 150, 10, 0.25) !important; }

/* ── Orbs (light) ── */
body.light-theme .orb-1 { background: rgba(11, 76, 140, 0.07) !important; }
body.light-theme .orb-2 { background: rgba(212, 150, 10, 0.08) !important; }
body.light-theme .orb-3 { background: rgba(11, 76, 140, 0.05) !important; }

/* ── Glow Borders (light) ── */
body.light-theme .glow-border {
  border: 1px solid rgba(212, 150, 10, 0.5) !important;
  box-shadow: 0 0 20px rgba(212, 150, 10, 0.14), inset 0 0 20px rgba(212, 150, 10, 0.04) !important;
}
body.light-theme .glow-border-violet {
  border: 1px solid rgba(11, 76, 140, 0.35) !important;
  box-shadow: 0 0 20px rgba(11, 76, 140, 0.14) !important;
}

/* ── Divider (light) ── */
body.light-theme .gradient-divider {
  background: linear-gradient(90deg, transparent, rgba(11, 76, 140, 0.3), rgba(212, 150, 10, 0.4), transparent) !important;
}

/* ── Icon wraps (light) ── */
body.light-theme .icon-wrap-cyan {
  background: linear-gradient(135deg, rgba(11, 76, 140, 0.12) 0%, rgba(11, 76, 140, 0.04) 100%) !important;
  border: 1px solid rgba(11, 76, 140, 0.25) !important;
}
body.light-theme .icon-wrap-violet {
  background: linear-gradient(135deg, rgba(212, 150, 10, 0.12) 0%, rgba(212, 150, 10, 0.04) 100%) !important;
  border: 1px solid rgba(212, 150, 10, 0.25) !important;
}
body.light-theme .icon-wrap-blue {
  background: linear-gradient(135deg, rgba(11, 76, 140, 0.12) 0%, rgba(11, 76, 140, 0.04) 100%) !important;
  border: 1px solid rgba(11, 76, 140, 0.22) !important;
}
/* Force icon SVG colors */
body.light-theme .icon-wrap svg { color: #0B4C8C !important; stroke: #0B4C8C !important; }
body.light-theme .icon-wrap-violet svg { color: #d4960a !important; stroke: #d4960a !important; }

/* ── Pulse dot (light) ── */
body.light-theme .pulse-dot { background: #d4960a !important; }

/* ── Footer (light) ── */
body.light-theme .footer-bg {
  background: linear-gradient(180deg, #d0e8ff 0%, #b8d4f8 100%) !important;
  border-top: 1px solid rgba(11, 76, 140, 0.18) !important;
}
body.light-theme .footer-link { color: rgba(11, 76, 140, 0.7) !important; }
body.light-theme .footer-link:hover { color: #d4960a !important; }
body.light-theme .footer-bg h4 { color: #0B4C8C !important; }
body.light-theme .footer-bg p { color: rgba(11, 76, 140, 0.7) !important; }

/* ── Scrollbar (light) ── */
body.light-theme ::-webkit-scrollbar-track { background: #eaf2ff !important; }
body.light-theme ::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #0B4C8C, #d4960a) !important;
}

/* ── Background utility overrides (light) ── */
body.light-theme .bg-navy { background-color: #eaf2ff !important; }
body.light-theme .bg-navy-light { background-color: #ddeeff !important; }
body.light-theme .bg-blue-dark { background-color: #c8dcf8 !important; }

/* ── Preloader (light) ── */
body.light-theme #preloader {
  background: linear-gradient(135deg, #0B4C8C 0%, #0d5fa8 50%, #0B4C8C 100%) !important;
}

/* ── Line decoration (light) ── */
body.light-theme .line-decoration {
  background: linear-gradient(90deg, #0B4C8C, #d4960a) !important;
}

/* ── Social icons (light) ── */
body.light-theme .social-icon {
  background: rgba(11, 76, 140, 0.12) !important;
  border: 1px solid rgba(11, 76, 140, 0.2) !important;
  color: #0B4C8C !important;
}
body.light-theme .social-icon:hover {
  background: #0B4C8C !important;
  color: #ffffff !important;
  border-color: #0B4C8C !important;
  box-shadow: 0 4px 15px rgba(11, 76, 140, 0.4) !important;
}

/* === LIGHT THEME TARGETED FIXES ===
   Fix 1: Smooth page-reveal animation
   Fix 2: Smart Choice section text visibility
   ======================================= */

/* ── Smooth page-reveal transition on body ── */
body {
  animation: none;
}

/* When preloader fades out, reveal page with a smooth fade */
body.page-ready {
  animation: page-fade-in 0.5s ease forwards;
}
@keyframes page-fade-in {
  from { opacity: 0.4; }
  to   { opacity: 1; }
}

/* Light theme: make preloader exit a cross-fade to light bg */
body.light-theme #preloader.pl-exit {
  background: #eaf2ff;
}

/* ── Preloader bar fill color in light mode ── */
body.light-theme .pl-bar-fill {
  background: linear-gradient(90deg, #0B4C8C, #d4960a, #0B4C8C) !important;
}

/* ── Preloader ring in light mode ── */
body.light-theme .pl-ring {
  filter: drop-shadow(0 0 12px rgba(244, 212, 124, 0.6)) !important;
}

/* ══════════════════════════════════════════════
   SMART CHOICE SECTION — Light Theme Text Fixes
   (Targets ALL text in .section-mid with inline
   Tailwind white-opacity classes that resist
   attribute selectors)
══════════════════════════════════════════════ */

/* Paragraph in the Why Choose section */
body.light-theme .section-mid p,
body.light-theme .section-mid li,
body.light-theme .section-mid span:not(.pulse-dot):not(.gradient-text) {
  color: rgba(11, 76, 140, 0.78) !important;
}

/* Section headings */
body.light-theme .section-mid h2,
body.light-theme .section-mid h3,
body.light-theme .section-mid h4 {
  color: #0B4C8C !important;
}

/* Check-list items */
body.light-theme .check-list li {
  color: rgba(11, 76, 140, 0.85) !important;
}
body.light-theme .check-list li::before {
  background: linear-gradient(135deg, #0B4C8C, #d4960a) !important;
  color: #ffffff !important;
}

/* Stat cards inside Smart Choice */
body.light-theme .stat-card {
  background: rgba(255, 255, 255, 0.85) !important;
  border: 1px solid rgba(11, 76, 140, 0.2) !important;
}
body.light-theme .stat-card > div:nth-child(2) {
  color: #0B4C8C !important;
}
body.light-theme .stat-card > div:nth-child(3) {
  color: rgba(11, 76, 140, 0.6) !important;
}
/* Force all text inside stat cards */
body.light-theme .stat-card [class*="font-semibold"],
body.light-theme .stat-card [class*="font-bold"] {
  color: #0B4C8C !important;
}
body.light-theme .stat-card [class*="text-sm"],
body.light-theme .stat-card [class*="text-xs"] {
  color: rgba(11, 76, 140, 0.65) !important;
}

/* Force ALL white/opacity text globally in light mode using wildcard */
body.light-theme *[style*="color: rgba(255"] {
  color: rgba(11, 76, 140, 0.75) !important;
}

/* Tailwind opacity text — override using direct element targeting in light mode */
body.light-theme section p:not(.slide-content p),
body.light-theme section li:not(.slide-content li),
body.light-theme section span:not(.gradient-text):not(.pulse-dot):not(.slide-content span):not(.badge) {
  color: rgba(11, 76, 140, 0.75);
}

/* ── Upload Box (light) ── */
body.light-theme .upload-box {
  border: 2px dashed rgba(11, 76, 140, 0.3) !important;
  background: rgba(11, 76, 140, 0.03) !important;
}
body.light-theme .upload-box:hover {
  border-color: rgba(212, 150, 10, 0.5) !important;
  background: rgba(11, 76, 140, 0.06) !important;
}

/* ── Section-mid in light mode ── */
body.light-theme .section-mid {
  background: linear-gradient(135deg, #d8eaff 0%, #e8f3ff 50%, #d8eaff 100%) !important;
}
body.light-theme .section-dark {
  background: linear-gradient(180deg, #e5f0ff 0%, #d5e8ff 100%) !important;
}
body.light-theme .section-darker {
  background: linear-gradient(180deg, #cfe0ff 0%, #c0d5ff 100%) !important;
}

/* === end of style.css === */



body.light-theme #mobile-menu {
  background: rgba(240, 246, 255, 0.99) !important;
  border-top: 1px solid rgba(11, 76, 140, 0.1);
}
body.light-theme .mobile-nav-link {
  color: #0B4C8C;
  border-bottom: 1px solid rgba(11, 76, 140, 0.08);
}
body.light-theme .mobile-nav-link:hover {
  color: #F4D47C;
  background: rgba(11, 76, 140, 0.05);
}
body.light-theme .hamburger-line { background: #0B4C8C; }

/* ── Theme Toggle (light) — adjust icon visibility ── */
body.light-theme #theme-toggle {
  background: rgba(11, 76, 140, 0.1);
}
body.light-theme #theme-toggle svg { stroke: #0B4C8C; }

/* ── Hero Slide overlay (light) ── */
body.light-theme .slide-overlay {
  background: rgba(0, 0, 0, 0.65);
}
body.light-theme .hero-title { color: #ffffff; }
body.light-theme .carousel-slide p { color: rgba(255,255,255,0.8); }
body.light-theme .section-label {
  background: rgba(244, 212, 124, 0.2);
  border: 1px solid rgba(244, 212, 124, 0.5);
  color: #F4D47C;
}

/* ── Gradient text (light) ── */
body.light-theme .gradient-text {
  background: linear-gradient(135deg, #F4D47C 0%, #e8a800 50%, #F4D47C 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
body.light-theme .gradient-text-2 {
  background: linear-gradient(135deg, #0B4C8C 0%, #F4D47C 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Buttons (light) ── */
body.light-theme .btn-primary {
  background: linear-gradient(135deg, #0B4C8C 0%, #1565c0 60%, #F4D47C 100%);
  color: #ffffff !important;
  box-shadow: 0 4px 20px rgba(11, 76, 140, 0.3);
}
body.light-theme .btn-primary:hover {
  box-shadow: 0 8px 30px rgba(11, 76, 140, 0.45);
}
body.light-theme .btn-outline {
  border: 1.5px solid #0B4C8C;
  color: #0B4C8C;
}
body.light-theme .btn-outline:hover {
  border-color: #F4D47C;
  color: #F4D47C;
  box-shadow: 0 0 20px rgba(244, 212, 124, 0.25);
}

/* ── Glass Cards (light) ── */
body.light-theme .glass-card {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(11, 76, 140, 0.15);
  box-shadow: 0 4px 20px rgba(11, 76, 140, 0.08);
}
body.light-theme .glass-card:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(244, 212, 124, 0.5);
  box-shadow: 0 20px 60px rgba(11, 76, 140, 0.15), 0 0 0 1px rgba(244, 212, 124, 0.3);
}

/* ── Section & Page Backgrounds (light) ── */
body.light-theme .section-dark,
body.light-theme .section-darker {
  background: linear-gradient(180deg, #eaf2ff 0%, #d6e8ff 100%);
}
body.light-theme .section-mid {
  background: linear-gradient(135deg, #e0ecff 0%, #eaf2ff 50%, #e0ecff 100%);
}

/* ── Stat Cards (light) ── */
body.light-theme .stat-card {
  background: linear-gradient(135deg, rgba(11, 76, 140, 0.06) 0%, rgba(244, 212, 124, 0.06) 100%);
  border: 1px solid rgba(11, 76, 140, 0.2);
}
body.light-theme .stat-card:hover {
  border-color: rgba(244, 212, 124, 0.6);
  box-shadow: 0 10px 40px rgba(11, 76, 140, 0.15);
}

/* ── Service & Step Cards (light) ── */
body.light-theme .service-card,
body.light-theme .step-item {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(11, 76, 140, 0.12);
  color: #0B4C8C;
}
body.light-theme .service-card:hover,
body.light-theme .step-item:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(244, 212, 124, 0.5);
  box-shadow: 0 20px 50px rgba(11, 76, 140, 0.12);
}

/* ── Course Cards (light) ── */
body.light-theme .course-card {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(11, 76, 140, 0.12);
  color: #0B4C8C;
}
body.light-theme .course-card:hover {
  border-color: rgba(244, 212, 124, 0.5);
  box-shadow: 0 25px 60px rgba(11, 76, 140, 0.14);
}

/* ── Forms (light) ── */
body.light-theme .form-field {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(11, 76, 140, 0.2);
  color: #0B4C8C;
}
body.light-theme .form-field::placeholder { color: rgba(11, 76, 140, 0.4); }
body.light-theme .form-field:focus {
  border-color: #F4D47C;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(244, 212, 124, 0.2);
}
body.light-theme .form-label { color: rgba(11, 76, 140, 0.8); }

/* ── FAQ Accordion (light) ── */
body.light-theme .faq-item {
  border: 1px solid rgba(11, 76, 140, 0.12);
}
body.light-theme .faq-item.open {
  border-color: rgba(244, 212, 124, 0.5);
}
body.light-theme .faq-question {
  background: rgba(255, 255, 255, 0.6);
  color: #0B4C8C;
}
body.light-theme .faq-question:hover {
  background: rgba(11, 76, 140, 0.04);
}
body.light-theme .faq-icon {
  background: rgba(244, 212, 124, 0.15);
  border: 1px solid rgba(244, 212, 124, 0.4);
  color: #F4D47C;
}
body.light-theme .faq-answer {
  color: rgba(11, 76, 140, 0.75);
}

/* ── Filter Buttons (light) ── */
body.light-theme .filter-btn {
  border: 1.5px solid rgba(11, 76, 140, 0.2);
  color: rgba(11, 76, 140, 0.65);
}
body.light-theme .filter-btn:hover {
  border-color: rgba(244, 212, 124, 0.6);
  color: #F4D47C;
}
body.light-theme .filter-btn.active {
  background: linear-gradient(135deg, #0B4C8C, #F4D47C);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(11, 76, 140, 0.3);
}

/* ── Testimonial Cards (light) ── */
body.light-theme .testimonial-card {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(11, 76, 140, 0.12);
}
body.light-theme .testimonial-card:hover {
  border-color: rgba(244, 212, 124, 0.5);
  box-shadow: 0 15px 40px rgba(11, 76, 140, 0.12);
}
body.light-theme .testimonial-card::before { color: rgba(244, 212, 124, 0.3); }

/* ── Section Label (light) ── */
body.light-theme .section-label {
  background: rgba(11, 76, 140, 0.08);
  border: 1px solid rgba(11, 76, 140, 0.2);
  color: #0B4C8C;
}

/* ── Orbs (light) ── */
body.light-theme .orb-1 { background: rgba(11, 76, 140, 0.08); }
body.light-theme .orb-2 { background: rgba(244, 212, 124, 0.1); }
body.light-theme .orb-3 { background: rgba(11, 76, 140, 0.06); }

/* ── Glow Borders (light) ── */
body.light-theme .glow-border {
  border: 1px solid rgba(244, 212, 124, 0.5);
  box-shadow: 0 0 20px rgba(244, 212, 124, 0.15), inset 0 0 20px rgba(244, 212, 124, 0.05);
}

/* ── Divider (light) ── */
body.light-theme .gradient-divider {
  background: linear-gradient(90deg, transparent, rgba(11, 76, 140, 0.3), rgba(244, 212, 124, 0.4), transparent);
}

/* ── Footer (light) ── */
body.light-theme .footer-bg {
  background: linear-gradient(180deg, #dbeafe 0%, #bfdbfe 100%);
  border-top: 1px solid rgba(11, 76, 140, 0.15);
}
body.light-theme .footer-link {
  color: rgba(11, 76, 140, 0.65);
}
body.light-theme .footer-link:hover { color: #F4D47C; }

/* ── Scrollbar (light) ── */
body.light-theme ::-webkit-scrollbar-track { background: #eaf2ff; }
body.light-theme ::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #0B4C8C, #F4D47C);
}

/* ── Generic text utility overrides (light) ── */
body.light-theme .text-white\/40,
body.light-theme .text-white\/45,
body.light-theme .text-white\/50,
body.light-theme .text-white\/55,
body.light-theme .text-white\/60,
body.light-theme .text-white\/65,
body.light-theme .text-white\/70,
body.light-theme .text-white\/80,
body.light-theme .text-white\/85 {
  color: rgba(11, 76, 140, 0.7) !important;
}
body.light-theme .text-white {
  color: #0B4C8C !important;
}

/* ── Background utility overrides (light) ── */
body.light-theme .bg-navy,
body.light-theme .bg-navy-light,
body.light-theme .bg-blue-dark {
  background-color: #f0f6ff !important;
}

/* ── Preloader (light) — keep dark during transition ── */
body.light-theme #preloader {
  background: #0B4C8C;
}

/* ═════════════════════════════════════════════════════════════
   ULTIMATE LIGHT THEME BUTTON & HERO OVERRIDES
   (Added at the end to guarantee highest specificity)
═════════════════════════════════════════════════════════════ */

/* 1. All Buttons Text to White (Ultra-high specificity) */
html body.light-theme .btn-primary.btn-primary,
html body.light-theme .btn-primary.btn-primary span,
html body.light-theme .btn-primary.btn-primary svg,
html body.light-theme .btn-outline.btn-outline,
html body.light-theme .btn-outline.btn-outline span,
html body.light-theme .btn-outline.btn-outline svg {
  color: #ffffff !important;
}

/* 2. Fix Outline Buttons in Light Theme */
html body.light-theme .btn-outline.btn-outline {
  border: 2px solid #ffffff !important; /* White border so it's visible on dark hero */
  background: rgba(255, 255, 255, 0.1) !important;
}
html body.light-theme .btn-outline.btn-outline:hover {
  background: #ffffff !important;
  color: #0B4C8C !important;
}
html body.light-theme .btn-outline.btn-outline:hover span,
html body.light-theme .btn-outline.btn-outline:hover svg {
  color: #0B4C8C !important;
}

/* 3. Fix Stat Cards & Glass Cards inside Hero Section */
html body.light-theme #hero-section .stat-card,
html body.light-theme #hero-section .glass-card {
  background: rgba(255, 255, 255, 0.9) !important;
  border: 1px solid rgba(11, 76, 140, 0.2) !important;
}
html body.light-theme #hero-section .stat-card > div,
html body.light-theme #hero-section .stat-card span,
html body.light-theme #hero-section .stat-card [class*="font-semibold"],
html body.light-theme #hero-section .stat-card [class*="text-sm"],
html body.light-theme #hero-section .glass-card > div,
html body.light-theme #hero-section .glass-card span,
html body.light-theme #hero-section .glass-card [class*="font-semibold"],
html body.light-theme #hero-section .glass-card [class*="text-sm"] {
  color: #0B4C8C !important;
}

/* 4. Ensure Hero Title and texts are always white */
body.light-theme #hero-section p,
body.light-theme #hero-section h1,
body.light-theme #hero-section .hero-title,
body.light-theme #hero-section .gradient-text {
  color: #ffffff !important;
}
body.light-theme #hero-section .gradient-text {
  background: none !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* 5. Course Cards and Why Choose buttons ensure white text */
html body.light-theme section .btn-primary.btn-primary span,
html body.light-theme section .btn-primary.btn-primary svg,
html body.light-theme section .btn-outline.btn-outline span,
html body.light-theme section .btn-outline.btn-outline svg {
  color: #ffffff !important;
}
html body.light-theme section .btn-outline.btn-outline {
  border-color: #0B4C8C !important;
  background: #0B4C8C !important;
}
html body.light-theme section .btn-outline.btn-outline:hover {
  background: #ffffff !important;
  color: #0B4C8C !important;
}
html body.light-theme section .btn-outline.btn-outline:hover span,
html body.light-theme section .btn-outline.btn-outline:hover svg {
  color: #0B4C8C !important;
}
