/* ========================================================
   KAMAL DHARMA - LUXURY LIGHT & DARK THEME SYSTEM
   ======================================================== */

/* Logo Switching */
.logo-mark-dark { display: block !important; }
.logo-mark-light { display: none !important; }
html.light .logo-mark-dark { display: none !important; }
html.light .logo-mark-light { display: block !important; }

/* Theme Toggle Button Styling */
.theme-toggle-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.theme-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #facc15;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  outline: none;
  padding: 0;
}

.theme-toggle:hover {
  color: #fef08a;
  border-color: rgba(250, 204, 21, 0.45);
  background: rgba(250, 204, 21, 0.1);
  box-shadow: 0 0 16px rgba(250, 204, 21, 0.25), inset 0 0 8px rgba(250, 204, 21, 0.1);
  transform: scale(1.05);
}

.theme-toggle:active {
  transform: scale(0.95);
}

.theme-toggle .icon-sun {
  display: block;
  width: 1.25rem;
  height: 1.25rem;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
}

.theme-toggle .icon-moon {
  display: none;
  width: 1.2rem;
  height: 1.2rem;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
}

.theme-toggle:hover .icon-sun {
  transform: rotate(35deg);
}

/* ========================================================
   LIGHT MODE TOGGLE BUTTON - REFINED LUXURY CERAMIC GLASS
   ======================================================== */
html.light .theme-toggle {
  background: rgba(255, 255, 255, 0.92) !important;
  border: 1px solid rgba(15, 23, 42, 0.12) !important;
  color: #0284c7 !important;
  box-shadow: 0 2px 8px -1px rgba(15, 23, 42, 0.08), 0 1px 3px 0 rgba(15, 23, 42, 0.04) !important;
  animation: none !important;
}

html.light .theme-toggle:hover {
  background: #ffffff !important;
  border-color: rgba(2, 132, 199, 0.4) !important;
  color: #0369a1 !important;
  box-shadow: 0 4px 16px -2px rgba(2, 132, 199, 0.22), 0 0 0 1px rgba(2, 132, 199, 0.15) !important;
  transform: scale(1.05) !important;
}

html.light .theme-toggle .icon-sun {
  display: none !important;
}

html.light .theme-toggle .icon-moon {
  display: block !important;
  color: #0284c7 !important;
}

html.light .theme-toggle:hover .icon-moon {
  transform: rotate(-15deg);
}

/* ========================================================
   REFINED TOOLTIP WITH CARET
   ======================================================== */
.theme-tooltip {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  pointer-events: none;
  white-space: nowrap;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 100;
  background: rgba(9, 14, 26, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f8fafc;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 4px 8px -2px rgba(0, 0, 0, 0.3);
}

/* Tooltip caret */
.theme-tooltip::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-bottom-color: rgba(255, 255, 255, 0.14);
}

.theme-tooltip::after {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-bottom-color: rgba(9, 14, 26, 0.95);
}

.theme-toggle-wrap:hover .theme-tooltip,
.theme-toggle:focus-visible ~ .theme-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.theme-tooltip .tooltip-dark-text { display: inline; }
.theme-tooltip .tooltip-light-text { display: none; }

html.light .theme-tooltip {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.12) !important;
  color: #0f172a !important;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.12), 0 4px 8px -2px rgba(15, 23, 42, 0.06) !important;
}

html.light .theme-tooltip::before {
  border-bottom-color: rgba(15, 23, 42, 0.12) !important;
}

html.light .theme-tooltip::after {
  border-bottom-color: #ffffff !important;
}

html.light .theme-tooltip .tooltip-dark-text { display: none !important; }
html.light .theme-tooltip .tooltip-light-text { display: inline !important; }

/* ========================================================
   FULL LIGHT MODE DESIGN SYSTEM - COMPLETE WEBSITE OVERRIDES
   ======================================================== */

html.light {
  --background: #f8fafc;
  --glass: rgba(255, 255, 255, 0.88);
  --glassBorder: rgba(15, 23, 42, 0.08);
  --primary: #0284c7;
  --secondary: #0f766e;
  --accent: #65a30d;
  --textMuted: #64748b;
  --cardGlow: rgba(2, 132, 199, 0.15);
  background: #f8fafc !important;
  color: #0f172a !important;
  color-scheme: light;
}

html.light body {
  background: #f8fafc !important;
  color: #0f172a !important;
}

/* Headings & Text */
html.light h1,
html.light h2,
html.light h3,
html.light h4,
html.light h5,
html.light h6 {
  color: #0f172a !important;
}

html.light p {
  color: #334155;
}

html.light .text-white {
  color: #0f172a !important;
}

html.light .text-slate-200 {
  color: #334155 !important;
}

html.light .text-slate-300 {
  color: #475569 !important;
}

html.light .text-slate-400 {
  color: #64748b !important;
}

html.light .text-muted {
  color: #64748b !important;
}

html.light .text-primary {
  color: #0284c7 !important;
}

html.light .text-secondary,
html.light .text-secondary\/90 {
  color: #0f766e !important;
}

html.light .kicker {
  color: #0284c7 !important;
}

html.light .grad-text {
  background: linear-gradient(135deg, #0f172a 0%, #0369a1 55%, #0f766e 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
}

/* Glassmorphism & Cards */
html.light .glass {
  background: rgba(255, 255, 255, 0.88) !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.05), 0 4px 6px -2px rgba(15, 23, 42, 0.02) !important;
}

html.light .border-white\/10,
html.light .border-white\/15,
html.light .border-white\/20,
html.light .border-white\/25,
html.light .border-white\/30 {
  border-color: rgba(15, 23, 42, 0.08) !important;
}

html.light .bg-white\/5,
html.light .bg-white\/10 {
  background-color: rgba(15, 23, 42, 0.04) !important;
}

html.light .bg-primary\/10 {
  background-color: rgba(2, 132, 199, 0.08) !important;
}

html.light .hover\:border-white\/30:hover {
  border-color: rgba(15, 23, 42, 0.22) !important;
}

html.light .hover\:bg-\[\#0a1230\]:hover {
  background-color: #f1f5f9 !important;
}

html.light .shadow-black\/30 {
  --tw-shadow-color: rgba(15, 23, 42, 0.06) !important;
}

/* Ambient Hero & Section Background Overlays */
html.light .from-\[\#050816\] {
  --tw-gradient-from: #f8fafc var(--tw-gradient-from-position) !important;
  --tw-gradient-to: rgb(248 250 252 / 0) var(--tw-gradient-from-position) !important;
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to) !important;
}

html.light .from-\[\#050816\]\/40 {
  --tw-gradient-from: rgb(241 245 249 / 0.5) var(--tw-gradient-from-position) !important;
  --tw-gradient-to: rgb(241 245 249 / 0) var(--tw-gradient-from-position) !important;
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to) !important;
}

html.light .from-\[\#050816\]\/60 {
  --tw-gradient-from: rgb(226 232 240 / 0.7) var(--tw-gradient-from-position) !important;
  --tw-gradient-to: rgb(226 232 240 / 0) var(--tw-gradient-from-position) !important;
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to) !important;
}

html.light .from-\[\#050816\]\/90,
html.light .from-\[\#050816\]\/95 {
  --tw-gradient-from: rgb(218 226 236 / 0.88) var(--tw-gradient-from-position) !important;
  --tw-gradient-to: rgb(218 226 236 / 0) var(--tw-gradient-from-position) !important;
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to) !important;
}

html.light .via-\[\#050816\]\/40 {
  --tw-gradient-to: rgb(241 245 249 / 0) var(--tw-gradient-to-position) !important;
  --tw-gradient-stops: var(--tw-gradient-from), rgb(241 245 249 / 0.4) var(--tw-gradient-via-position), var(--tw-gradient-to) !important;
}

html.light .via-\[\#050816\]\/60,
html.light .via-\[\#050816\]\/70 {
  --tw-gradient-to: rgb(226 232 240 / 0) var(--tw-gradient-to-position) !important;
  --tw-gradient-stops: var(--tw-gradient-from), rgb(226 232 240 / 0.65) var(--tw-gradient-via-position), var(--tw-gradient-to) !important;
}

html.light .to-\[\#050816\] {
  --tw-gradient-to: #f1f5f9 var(--tw-gradient-to-position) !important;
}

html.light .to-\[\#050816\]\/90 {
  --tw-gradient-to: rgb(226 232 240 / 0.85) var(--tw-gradient-to-position) !important;
}

html.light .bg-\[\#050816\] {
  background-color: #f8fafc !important;
}

html.light .bg-\[\#050816\]\/95 {
  background-color: rgba(248, 250, 252, 0.98) !important;
}

html.light .bg-\[\#0a1230\] {
  background-color: #ffffff !important;
}

/* ========================================================
   HERO SECTION LIGHT MODE REFINEMENT
   Darker, richer atmospheric overlay so landscape & text have depth
   ======================================================== */
html.light section[aria-label="Introduction"] .bg-gradient-to-r {
  background: linear-gradient(
    to right,
    rgba(215, 225, 236, 0.88) 0%,
    rgba(224, 233, 242, 0.72) 35%,
    rgba(235, 241, 248, 0.40) 65%,
    rgba(240, 244, 250, 0.05) 100%
  ) !important;
}

html.light section[aria-label="Introduction"] .bg-gradient-to-t {
  background: linear-gradient(
    to top,
    rgba(226, 232, 240, 0.85) 0%,
    rgba(235, 241, 248, 0.40) 50%,
    transparent 100%
  ) !important;
}

html.light section[aria-label="Introduction"] h1 {
  color: #091e42 !important;
}

html.light section[aria-label="Introduction"] .kicker {
  color: #0284c7 !important;
  font-weight: 700 !important;
  letter-spacing: 0.16em !important;
}

html.light section[aria-label="Introduction"] dl .border-l {
  border-color: rgba(15, 23, 42, 0.18) !important;
}

html.light section[aria-label="Introduction"] dl dd.text-primary {
  color: #0284c7 !important;
}

html.light section[aria-label="Introduction"] dl dd.text-white {
  color: #0f172a !important;
  font-weight: 600 !important;
}

html.light section[aria-label="Introduction"] dl dd.text-muted {
  color: #475569 !important;
  font-weight: 500 !important;
}

html.light section[aria-label="Introduction"] .font-quote.text-accent {
  color: #0284c7 !important;
  font-weight: 600 !important;
}

/* ========================================================
   MANIFESTO / THE MISSION SECTION - PURE WHITE BG & BLUE HIGHLIGHTING
   ======================================================== */
html.light section[aria-labelledby="mission-h"],
html.light section.bg-black,
html.light .bg-black {
  background-color: #ffffff !important;
  background: #ffffff !important;
}

html.light section[aria-labelledby="mission-h"] #mission-h,
html.light section[aria-labelledby="mission-h"] .kicker {
  color: #0284c7 !important;
  font-weight: 700 !important;
  letter-spacing: 0.2em !important;
}

/* Manifesto statements in deep blue with scroll highlighting */
html.light section[aria-labelledby="mission-h"] p.font-head {
  color: #1d4ed8 !important; /* Bold royal blue when highlighted */
  transition: color 0.3s ease;
}

/* Secondary phrases in the mission ("Create more.", "Connect deeper.", "Solve harder problems.") */
html.light section[aria-labelledby="mission-h"] p.font-head.text-slate-300 {
  color: #0284c7 !important;
}

/* Climax statement ("And unlock human potential.") */
html.light section[aria-labelledby="mission-h"] p.font-head.grad-text {
  background: linear-gradient(135deg, #0284c7 0%, #1e40af 50%, #0369a1 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
}

/* Commitment quote at the bottom of the section */
html.light section[aria-labelledby="mission-h"] p.font-quote {
  color: #0369a1 !important;
  font-weight: 500 !important;
}

/* Light Mode Buttons */
html.light .btn-ghost {
  border: 1px solid rgba(15, 23, 42, 0.16) !important;
  color: #0f172a !important;
  background: rgba(15, 23, 42, 0.04) !important;
}

html.light .btn-ghost:hover {
  background: rgba(15, 23, 42, 0.08) !important;
  border-color: rgba(15, 23, 42, 0.25) !important;
  color: #0284c7 !important;
}

html.light .btn-primary {
  background: linear-gradient(135deg, #0284c7, #0d9488) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 20px rgba(2, 132, 199, 0.25) !important;
}

html.light .btn-primary:hover {
  box-shadow: 0 6px 24px rgba(2, 132, 199, 0.35) !important;
}

/* Status Badges & Interactive Hotspots */
html.light .status {
  border-color: rgba(15, 23, 42, 0.12) !important;
  background: rgba(15, 23, 42, 0.03) !important;
  color: #475569 !important;
}

html.light .status.s-live {
  border-color: #059669 !important;
  color: #059669 !important;
  background: rgba(16, 185, 129, 0.08) !important;
}

html.light .status.s-build {
  border-color: #0284c7 !important;
  color: #0284c7 !important;
  background: rgba(14, 165, 233, 0.08) !important;
}

html.light .status.s-plan {
  border-color: #7c3aed !important;
  color: #7c3aed !important;
  background: rgba(124, 58, 237, 0.08) !important;
}

html.light .hotspot {
  background: rgba(255, 255, 255, 0.95) !important;
  border-color: #0284c7 !important;
  color: #0284c7 !important;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.2) !important;
}

/* Navigation & Mobile Drawer */
html.light header nav.glass {
  background: rgba(255, 255, 255, 0.88) !important;
  border-color: rgba(15, 23, 42, 0.08) !important;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.05) !important;
}

html.light nav a {
  color: #475569;
}

html.light nav a:hover {
  color: #0284c7 !important;
}

html.light nav a.bg-white\/10 {
  background-color: rgba(15, 23, 42, 0.08) !important;
  color: #0f172a !important;
}

html.light button[aria-controls="mobile-menu"] span {
  background-color: #0f172a !important;
}

html.light #mobile-menu {
  background-color: rgba(255, 255, 255, 0.98) !important;
}

html.light #mobile-menu a {
  color: #0f172a !important;
}

html.light #mobile-menu a:hover {
  color: #0284c7 !important;
}

/* Form Controls */
html.light input,
html.light textarea,
html.light select {
  background-color: #ffffff !important;
  color: #0f172a !important;
  border-color: rgba(15, 23, 42, 0.15) !important;
}

html.light input:focus,
html.light textarea:focus,
html.light select:focus {
  border-color: #0284c7 !important;
  outline-color: #0284c7 !important;
}

html.light input::placeholder,
html.light textarea::placeholder {
  color: #94a3b8 !important;
}

/* Footer */
html.light footer {
  color: #64748b !important;
}

html.light footer .text-white {
  color: #0f172a !important;
}

html.light footer a {
  color: #475569;
}

html.light footer a:hover {
  color: #0284c7 !important;
}
