/* ============================================================
   LIGHT THEME — Prism Sapphire Aesthetic (PROJECT 7 MATCH)
   Palette: Deep Sapphire #051c2d / Sapphire #0d4c76 / Blue #4a9fd8
   Sirf `html[data-theme="light"]` pe apply hota hai
   ============================================================ */

/* ============================================================
   KEYFRAMES — Global
   ============================================================ */
@keyframes float1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(24px, -36px) scale(1.06); }
  66% { transform: translate(-18px, 24px) scale(0.96); }
}

@keyframes float2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-28px, 28px) scale(1.07); }
  66% { transform: translate(18px, -22px) scale(0.94); }
}

@keyframes float3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(32px, 18px) scale(1.08); }
}

@keyframes float4 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-22px, -18px) scale(1.08); }
}

@keyframes shine {
  0% { transform: translateX(-120%) skewX(-12deg); }
  100% { transform: translateX(220%) skewX(-12deg); }
}

@keyframes prismShift {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(12deg); }
}

@keyframes pulse {
  50% { opacity: 0.5; }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes lightBlobShift {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(20px, -24px) scale(1.04); }
  66%  { transform: translate(-16px, 18px) scale(0.98); }
  100% { transform: translate(0, 0) scale(1); }
}

/* ============================================================
   ROOT LIGHT OVERRIDES — Sapphire palette
   ============================================================ */
html[data-theme="light"] {
  --bg2: #f0f8ff;
  --gold: #0d4c76;
  --gold-2: #051c2d;
  --gold-3: #4a9fd8;
  --accent-cyan: #7fc4e8;
  --text-primary: #051c2d;
  --text-muted: #2a5c7e;
  --text-faint: #6a90b8;
  --prism-gradient: linear-gradient(100deg, #051c2d 0%, #0d4c76 42%, #4a9fd8 100%);
  --prism-text-gradient: linear-gradient(92deg, #051c2d 0%, #0d4c76 35%, #4a9fd8 70%, #7fc4e8 100%);

  /* Safe fallback tokens */
  --background: #f0f8ff;
  --foreground: #051c2d;
  --card: rgba(255, 255, 255, 0.72);
  --card-foreground: #051c2d;
  --primary: #051c2d;
  --primary-foreground: #ffffff;
  --secondary: #0d4c76;
  --accent: #4a9fd8;
  --muted: #2a5c7e;
  --muted-foreground: #6a90b8;
  --border: rgba(255, 255, 255, 0.85);
  --ring: rgba(13, 76, 118, 0.3);
}

/* ============================================================
   BODY BG
   ============================================================ */
html[data-theme="light"],
html[data-theme="light"] body {
  background-color: transparent !important;
  color: var(--text-primary) !important;
  font-family: ui-rounded, 'SF Pro Rounded', system-ui, -apple-system, sans-serif !important;
  position: relative;
  width: 100%;
  max-width: 100%;
}

/* ============================================================
   MESH-BG + BLOBS — Sapphire pastel backdrop
   ============================================================ */
html[data-theme="light"] .mesh-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: transparent;
  overflow: hidden;
  pointer-events: none;
  max-width: 100vw;
  max-height: 100vh;
}

html[data-theme="light"] .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(64px);
  opacity: 0.62;
  mix-blend-mode: multiply;
  max-width: 92vw;
  pointer-events: none;
}

html[data-theme="light"] body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 18%, #d4e6f5 0%, transparent 42%),
    radial-gradient(circle at 88% 22%, #b3d9ee 0%, transparent 40%),
    radial-gradient(circle at 22% 82%, #a8cbe6 0%, transparent 42%),
    radial-gradient(circle at 78% 78%, #8fb5d8 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, #dceaf7 0%, transparent 45%);
  opacity: 0.55;
  filter: blur(60px);
  animation: lightBlobShift 24s ease-in-out infinite alternate;
}

/* ============================================================
   HEADER
   ============================================================ */
html[data-theme="light"] #top {
  background-color: transparent !important;
}

html[data-theme="light"] .logo_top img,
html[data-theme="light"] #top a img {
  filter: none !important;
}

/* ============================================================
   NAV — GLASS
   ============================================================ */
html[data-theme="light"] .site-nav,
html[data-theme="light"] .site-nav.banner-nav {
  background: rgba(255, 255, 255, 0.72) !important;
  backdrop-filter: blur(22px) saturate(1.4) !important;
  -webkit-backdrop-filter: blur(22px) saturate(1.4) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.85) !important;
}

html[data-theme="light"] .nav-links a {
  color: var(--text-muted) !important;
  font-weight: 600 !important;
}

html[data-theme="light"] .nav-links a.active {
  color: #0d4c76 !important;
  border-bottom-color: #0d4c76 !important;
  font-weight: 800 !important;
}

html[data-theme="light"] .nav-links a:hover {
  color: var(--text-primary) !important;
}

html[data-theme="light"] .dropdown button {
  color: var(--text-muted) !important;
  font-weight: 700 !important;
}

html[data-theme="light"] .dropdown button:hover {
  color: #0d4c76 !important;
}

html[data-theme="light"] .dropdown-box {
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(28px) saturate(1.5) !important;
  -webkit-backdrop-filter: blur(28px) saturate(1.5) !important;
  border: 1px solid rgba(255, 255, 255, 0.9) !important;
  box-shadow: 0 30px 80px rgba(13, 76, 118, 0.18) !important;
}

html[data-theme="light"] .dropdown-title {
  color: #0d4c76 !important;
  font-weight: 800 !important;
}

html[data-theme="light"] .grid-2 div {
  background: rgba(255, 255, 255, 0.65) !important;
  border: 1px solid rgba(255, 255, 255, 0.85) !important;
  color: var(--text-primary) !important;
  font-weight: 600 !important;
}

html[data-theme="light"] .grid-2 div:hover {
  background: rgba(255, 255, 255, 0.9) !important;
  border-color: rgba(13, 76, 118, 0.4) !important;
  color: #0d4c76 !important;
}

html[data-theme="light"] .nav-actions a {
  color: var(--text-primary) !important;
  font-weight: 700 !important;
}

html[data-theme="light"] .nav-actions a:hover {
  color: #0d4c76 !important;
}

html[data-theme="light"] .mobile-brand {
  color: #0d4c76 !important;
  font-weight: 900 !important;
}

html[data-theme="light"] .menu-btn {
  background: rgba(255, 255, 255, 0.72) !important;
  border: 1px solid rgba(255, 255, 255, 0.85) !important;
  color: var(--text-primary) !important;
  backdrop-filter: blur(22px) saturate(1.4) !important;
  -webkit-backdrop-filter: blur(22px) saturate(1.4) !important;
  box-shadow: 0 6px 18px rgba(13, 76, 118, 0.1) !important;
}

html[data-theme="light"] .mobile-menu {
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(28px) saturate(1.5) !important;
  -webkit-backdrop-filter: blur(28px) saturate(1.5) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.9) !important;
  box-shadow: 0 20px 60px rgba(13, 76, 118, 0.15) !important;
}

html[data-theme="light"] .mobile-links a {
  color: var(--text-primary) !important;
  font-weight: 600 !important;
  border-bottom-color: rgba(13, 76, 118, 0.08) !important;
}

html[data-theme="light"] .mobile-links a:hover {
  color: #0d4c76 !important;
  background: rgba(13, 76, 118, 0.06) !important;
}

html[data-theme="light"] .mobile-dropdown-btn {
  color: var(--text-primary) !important;
  font-weight: 700 !important;
}

html[data-theme="light"] .mobile-dropdown-box {
  background: rgba(255, 255, 255, 0.6) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
}

html[data-theme="light"] .mobile-dropdown-box a {
  color: var(--text-muted) !important;
}

/* ============================================================
   LANGUAGE SWITCHER
   ============================================================ */
html[data-theme="light"] .lang-switcher-nav {
  background: rgba(255, 255, 255, 0.72) !important;
  backdrop-filter: blur(22px) saturate(1.4) !important;
  -webkit-backdrop-filter: blur(22px) saturate(1.4) !important;
  border: 1px solid rgba(255, 255, 255, 0.85) !important;
  box-shadow: 0 6px 18px rgba(13, 76, 118, 0.08) !important;
}

html[data-theme="light"] .lang-btn-nav {
  color: var(--text-muted) !important;
}

html[data-theme="light"] .lang-btn-nav:hover {
  color: #0d4c76 !important;
  background: rgba(13, 76, 118, 0.08) !important;
}

html[data-theme="light"] .lang-btn-nav.active {
  background: var(--prism-gradient) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(13, 76, 118, 0.3) !important;
}

/* ============================================================
   FOOTER
   ============================================================ */
html[data-theme="light"] footer {
  background: rgba(255, 255, 255, 0.72) !important;
  backdrop-filter: blur(22px) saturate(1.4) !important;
  -webkit-backdrop-filter: blur(22px) saturate(1.4) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.85) !important;
  color: var(--text-primary) !important;
  box-shadow: 0 -10px 40px rgba(13, 76, 118, 0.08) !important;
}

html[data-theme="light"] .footer-top {
  background: rgba(255, 255, 255, 0.4) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.6) !important;
}

html[data-theme="light"] .footer-buttons a {
  background: rgba(255, 255, 255, 0.72) !important;
  backdrop-filter: blur(22px) saturate(1.4) !important;
  -webkit-backdrop-filter: blur(22px) saturate(1.4) !important;
  border: 1px solid rgba(255, 255, 255, 0.85) !important;
  color: var(--text-primary) !important;
  font-weight: 700 !important;
  box-shadow: 0 6px 18px rgba(13, 76, 118, 0.08) !important;
}

html[data-theme="light"] .footer-buttons a:hover {
  background: var(--prism-gradient) !important;
  color: #ffffff !important;
  box-shadow: 0 10px 24px rgba(13, 76, 118, 0.28) !important;
  transform: translateY(-1px) !important;
}

html[data-theme="light"] .footer-middle {
  background: transparent !important;
}

html[data-theme="light"] .footer-commitment {
  background: rgba(255, 255, 255, 0.72) !important;
  backdrop-filter: blur(22px) saturate(1.4) !important;
  -webkit-backdrop-filter: blur(22px) saturate(1.4) !important;
  border: 1px solid rgba(255, 255, 255, 0.85) !important;
  box-shadow: 0 22px 50px rgba(13, 76, 118, 0.1) !important;
}

html[data-theme="light"] .commitment-title {
  color: #0d4c76 !important;
  font-weight: 800 !important;
}

html[data-theme="light"] .commitment-text {
  background: var(--prism-text-gradient) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  color: transparent !important;
  font-weight: 800 !important;
}

html[data-theme="light"] .commitment-sub {
  color: var(--text-muted) !important;
}

html[data-theme="light"] .commitment-quote {
  background: rgba(255, 255, 255, 0.72) !important;
  backdrop-filter: blur(22px) !important;
  -webkit-backdrop-filter: blur(22px) !important;
  border: 1px solid rgba(255, 255, 255, 0.85) !important;
  color: #0d4c76 !important;
  font-weight: 700 !important;
}

html[data-theme="light"] .footer-powered {
  background: rgba(255, 255, 255, 0.5) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.7) !important;
}

html[data-theme="light"] .footer-powered p {
  color: var(--text-primary) !important;
  font-weight: 600 !important;
}

/* ============================================================
   THEME TOGGLE
   ============================================================ */
html[data-theme="light"] .themeToggleFixed {
  background: rgba(255, 255, 255, 0.88) !important;
  backdrop-filter: blur(28px) saturate(1.5) !important;
  -webkit-backdrop-filter: blur(28px) saturate(1.5) !important;
  border: 1px solid rgba(255, 255, 255, 0.9) !important;
  box-shadow: 0 12px 32px rgba(13, 76, 118, 0.18) !important;
}

html[data-theme="light"] .themeToggleTrack {
  background: linear-gradient(100deg, #051c2d 0%, #0d4c76 42%, #4a9fd8 100%) !important;
}

html[data-theme="light"] .themeToggleIcon {
  color: var(--text-muted) !important;
}

html[data-theme="light"] .themeToggleIconActive {
  color: #0d4c76 !important;
}

/* ============================================================
   SHIMMER / SKELETON
   ============================================================ */
html[data-theme="light"] .banner-skeleton {
  background: linear-gradient(
    90deg,
    rgba(168, 203, 230, 0.6) 25%,
    rgba(220, 234, 247, 0.6) 50%,
    rgba(168, 203, 230, 0.6) 75%
  ) !important;
  background-size: 200% 100% !important;
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
html[data-theme="light"] ::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

html[data-theme="light"] ::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.5);
}

html[data-theme="light"] ::-webkit-scrollbar-thumb {
  background: linear-gradient(100deg, #051c2d 0%, #0d4c76 42%, #4a9fd8 100%);
  border-radius: 999px;
}

html[data-theme="light"] ::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(100deg, #051c2d 0%, #0d4c76 100%);
}

/* ============================================================
   TEXT SELECTION
   ============================================================ */
html[data-theme="light"] ::selection {
  background: rgba(13, 76, 118, 0.2) !important;
  color: #051c2d !important;
}

html[data-theme="light"] ::-moz-selection {
  background: rgba(13, 76, 118, 0.2) !important;
  color: #051c2d !important;
}

/* ============================================================
   LINKS
   ============================================================ */
html[data-theme="light"] a {
  color: inherit;
  transition: color 0.2s;
}

html[data-theme="light"] a:hover {
  color: #0d4c76;
}

/* ============================================================
   INPUTS / PLACEHOLDERS
   ============================================================ */
html[data-theme="light"] input,
html[data-theme="light"] textarea,
html[data-theme="light"] select {
  color: var(--text-primary);
}

html[data-theme="light"] input::placeholder,
html[data-theme="light"] textarea::placeholder {
  color: var(--text-faint);
}

/* ============================================================
   GLASS SURFACES
   ============================================================ */
html[data-theme="light"] .glass,
html[data-theme="light"] .glass-strong {
  background: rgba(255, 255, 255, 0.72) !important;
  backdrop-filter: blur(22px) saturate(1.4) !important;
  -webkit-backdrop-filter: blur(22px) saturate(1.4) !important;
  border: 1px solid rgba(255, 255, 255, 0.85) !important;
}

html[data-theme="light"] .glass-strong {
  background: rgba(255, 255, 255, 0.88) !important;
  backdrop-filter: blur(28px) saturate(1.5) !important;
  -webkit-backdrop-filter: blur(28px) saturate(1.5) !important;
  border: 1px solid rgba(255, 255, 255, 0.9) !important;
}

/* ============================================================
   BOOK GLOW
   ============================================================ */
html[data-theme="light"] .book-glow {
  filter: blur(22px);
  opacity: 0.52;
  max-width: 100%;
}

/* ============================================================
   NO SCROLLBAR
   ============================================================ */
html[data-theme="light"] .no-scrollbar::-webkit-scrollbar {
  display: none;
}

html[data-theme="light"] .no-scrollbar {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

/* ============================================================
   PRISM TEXT + BUTTON
   ============================================================ */
html[data-theme="light"] .prism-text {
  background: var(--prism-text-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

html[data-theme="light"] .prism-btn {
  background: var(--prism-gradient);
  position: relative;
  overflow: hidden;
}

html[data-theme="light"] .prism-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 45%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 100%);
  transform: translateX(-120%) skewX(-12deg);
  animation: shine 2.8s ease-in-out infinite;
}

/* ============================================================
   PULSE
   ============================================================ */
html[data-theme="light"] .animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ============================================================
   UTILITY
   ============================================================ */
html[data-theme="light"] .rotate-180 {
  transform: rotate(180deg);
}

/* ============================================================
   TAILWIND BG OVERRIDES
   ============================================================ */
html[data-theme="light"] .bg-\[\#00DFD8\] {
  background-color: rgb(74 159 216 / 1) !important;
}

html[data-theme="light"] .bg-\[\#E0F7FF\]\/70 {
  background-color: rgba(220, 234, 247, 0.7) !important;
}

html[data-theme="light"] .bg-\[\#FFE8F2\]\/60 {
  background-color: rgba(220, 234, 247, 0.6) !important;
}

html[data-theme="light"] .bg-white {
  background-color: #ffffff !important;
}

html[data-theme="light"] .border-white\/60 {
  border-color: rgba(255, 255, 255, 0.6) !important;
}

html[data-theme="light"] .hover\:bg-white:hover {
  background-color: #ffffff !important;
}

html[data-theme="light"] .hover\:bg-white\/90:hover {
  background-color: rgba(255, 255, 255, 0.9) !important;
}

html[data-theme="light"] .placeholder\:text-\[\#9A8DB8\]::placeholder {
  color: #6a90b8 !important;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  html[data-theme="light"] #top {
    background: transparent !important;
  }
}