/* ==========================================================================
   Y-Tech Innovations - Luxury Dark Mode & Gold Theme Stylesheet
   Pure Bootstrap 5 & Custom CSS Architecture
   ========================================================================== */

:root {
  --bg-canvas: #070709;
  --bg-canvas-alt: #0b0b0f;
  --bg-card: #111118;
  --bg-card-elevated: #161622;
  --bg-card-hover: #1c1c2b;
  --border-subtle: #1f1f2e;
  --border-medium: #2a2a3e;
  --border-hover: rgba(185, 154, 69, 0.45);
  --gold-primary: #b99a45;
  --gold-light: #d8b95f;
  --gold-dark: #8c702c;
  --gold-gradient: linear-gradient(135deg, #e4cb80 0%, #b99a45 50%, #8c702c 100%);
  --gold-gradient-horizontal: linear-gradient(90deg, #d8b95f 0%, #b99a45 50%, #8c702c 100%);
  --gold-glow: 0 0 35px -5px rgba(185, 154, 69, 0.35);
  --gold-glow-sm: 0 0 15px -3px rgba(185, 154, 69, 0.25);
  --card-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.65);
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Kanit', sans-serif;
}

/* Base resets & dark canvas */
html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-canvas);
  color: #d1d5db;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #09090d;
}
::-webkit-scrollbar-thumb {
  background: #252535;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold-primary);
}

/* Typography Overrides */
h1, h2, h3, h4, h5, h6, .font-display {
  font-family: var(--font-display);
  color: #ffffff;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* High-Visibility Paragraph & Secondary Text in Dark Mode */
p {
  color: #e2e8f0f0; /* Crisp soft white */
  line-height: 1.75;
}

p.lead, .lead {
  color: #f8fafc !important; /* Bright readable white */
}

/* Override Bootstrap's dark #6c757d text-secondary for high dark-mode contrast */
.text-secondary {
  color: #e2e8f0f0 !important;
}

p.text-secondary {
  color: #e2e8f0f0 !important;
}

small.text-secondary {
  color: #cbd5e1 !important;
}

.text-muted {
  color: #cbd5e1 !important;
}

.text-light {
  color: #f8fafc !important;
}

.glass-card p,
.pillar-card p {
  color: #e2e8f0f0;
}

/* Service Bullet Points - 0.95rem with clear spacing */
.services-list li,
.service-bullets li,
.service-feature-item,
.glass-card ul.space-y-2 li,
.glass-card ul.space-y-3 li,
.glass-card ul li {
  font-size: 0.95rem !important;
  line-height: 1.65;
  color: #f1f5f9;
}

.glass-card ul li i,
ul.space-y-2 li i,
ul.space-y-3 li i {
  font-size: 1rem !important;
}

/* All Services Box Headings - letter-spacing: 0px and font-weight: 600 */
.glass-card h2,
.glass-card h3,
.pillar-card h2,
.pillar-card h3,
.service-card h2,
.service-card h3,
.service-box h2,
.service-box h3 {
  letter-spacing: 0px !important;
  font-weight: 600 !important;
}

a {
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Gold Gradient Text */
.gold-gradient-text {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.text-gold {
  color: var(--gold-primary) !important;
}

.text-gold-light {
  color: var(--gold-light) !important;
}

/* Ambient Background Glow Mesh */
.bg-glow-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  opacity: 0.18;
  animation: floatOrb 12s ease-in-out infinite alternate;
}

.glow-orb-gold {
  background: radial-gradient(circle, var(--gold-primary) 0%, rgba(185, 154, 69, 0) 70%);
}

.glow-orb-purple {
  background: radial-gradient(circle, #6366f1 0%, rgba(99, 102, 241, 0) 70%);
  opacity: 0.08;
}

@keyframes floatOrb {
  0% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.08); }
  100% { transform: translateY(20px) scale(0.95); }
}

/* Section Backgrounds */
.bg-canvas {
  background-color: var(--bg-canvas);
}

.bg-canvas-alt {
  background-color: var(--bg-canvas-alt);
}

.border-subtle {
  border-color: var(--border-subtle) !important;
}

/* Glassmorphism Navigation */
.navbar-custom {
  background: rgba(9, 9, 13, 0.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding: 0.5rem 0;
  transition: all 0.35s ease;
  z-index: 1050;
}

.navbar-custom.scrolled {
  padding: 0.65rem 0;
  background: rgba(7, 7, 10, 0.95);
  border-bottom-color: rgba(185, 154, 69, 0.25);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.8);
}

.navbar-brand img {
  max-height: 80px;
  height: auto;
  width: auto;
  transition: transform 0.3s ease, max-height 0.3s ease;
}

.navbar-custom.scrolled .navbar-brand img {
  max-height: 62px;
}

.navbar-brand:hover img {
  transform: scale(1.03);
}

.nav-link {
  color: #cbd5e1 !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  border-radius: 8px;
  transition: all 0.25s ease;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--gold-light) !important;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0px;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background: var(--gold-gradient);
  border-radius: 2px;
}

/* Dropdown Menu */
.dropdown-menu-dark-custom {
  background: #111119;
  border: 1px solid var(--border-medium);
  box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.7);
  border-radius: 16px;
  padding: 0.75rem;
  margin-top: 0.75rem;
}

.dropdown-item-custom {
  color: #e2e8f0f0;
  border-radius: 10px;
  padding: 0.65rem 1rem;
  transition: all 0.2s ease;
}

.dropdown-item-custom:hover {
  background: rgba(185, 154, 69, 0.12);
  color: var(--gold-light);
  transform: translateX(4px);
}

/* Desktop Dropdown Visible on Hover */
@media (min-width: 992px) {
  .navbar-nav .nav-item.dropdown {
    position: relative;
  }

  .navbar-nav .nav-item.dropdown .dropdown-menu {
    display: block !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
    margin-top: 0.25rem;
  }

  /* Bridge to prevent mouse-leave between nav-link and dropdown menu */
  .navbar-nav .nav-item.dropdown .dropdown-menu::before {
    content: '';
    position: absolute;
    top: -14px;
    left: 0;
    right: 0;
    height: 14px;
  }

  .navbar-nav .nav-item.dropdown:hover > .dropdown-menu,
  .navbar-nav .nav-item.dropdown .dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }
}

/* Hero Heading Size - 3.70rem for Desktop Only */
@media (min-width: 992px) {
  .hero-heading {
    font-size: 3.60rem !important;
    line-height: 1.15;
  }
}

/* Buttons */
.gold-btn {
  background: var(--gold-gradient);
  color: #070709 !important;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  padding: 0.75rem 1.75rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px -2px rgba(185, 154, 69, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}

.gold-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transition: 0.6s ease;
  z-index: -1;
}

.gold-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px -4px rgba(185, 154, 69, 0.55);
}

.gold-btn:hover::before {
  left: 100%;
}

.gold-outline-btn {
  background: rgba(185, 154, 69, 0.05);
  color: #ffffff !important;
  font-weight: 600;
  border: 1px solid rgba(185, 154, 69, 0.45);
  border-radius: 12px;
  padding: 0.75rem 1.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.gold-outline-btn:hover {
  background: rgba(185, 154, 69, 0.15);
  border-color: var(--gold-primary);
  color: var(--gold-light) !important;
  transform: translateY(-2px);
  box-shadow: var(--gold-glow-sm);
}

/* Badge / Pills */
.gold-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(185, 154, 69, 0.12);
  color: var(--gold-light);
  border: 1px solid rgba(185, 154, 69, 0.3);
}

/* Glass & Elevated Cards */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  box-shadow: var(--card-shadow);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(185, 154, 69, 0.3), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.glass-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.8), var(--gold-glow-sm);
}

.glass-card:hover::before {
  opacity: 1;
}

/* Icon Box */
.icon-box-gold {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: rgba(185, 154, 69, 0.12);
  border: 1px solid rgba(185, 154, 69, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.glass-card:hover .icon-box-gold {
  background: var(--gold-gradient);
  color: #070709;
  transform: scale(1.08) rotate(3deg);
  box-shadow: var(--gold-glow-sm);
}

/* Feature Pillar Step Cards */
.pillar-card {
  background: #101018;
  border: 1px solid #1f1f2e;
  border-radius: 22px;
  padding: 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.35s ease;
  position: relative;
}

.pillar-card:hover {
  border-color: rgba(185, 154, 69, 0.5);
  background: #141420;
  transform: translateY(-5px);
}

.pillar-num {
  font-size: 2.2rem;
  font-family: var(--font-display);
  font-weight: 900;
  color: rgba(185, 154, 69, 0.35);
  transition: color 0.3s ease;
}

.pillar-card:hover .pillar-num {
  color: var(--gold-light);
}

/* Marquee Ticker */
.marquee-wrapper {
  background: #0a0a0f;
  border-top: 1px solid #1a1a26;
  border-bottom: 1px solid #1a1a26;
  overflow: hidden;
  padding: 1rem 0;
  white-space: nowrap;
}

.marquee-content {
  display: inline-flex;
  animation: marquee 32s linear infinite;
}

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

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #94a3b8;
  margin: 0 1.75rem;
}

.marquee-item i {
  color: var(--gold-primary);
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Portfolio Card */
.portfolio-card {
  border-radius: 22px;
  overflow: hidden;
  position: relative;
  background: #12121c;
  border: 1px solid #1f1f2e;
  transition: all 0.4s ease;
}

.portfolio-img-wrap {
  position: relative;
  overflow: hidden;
  height: 250px;
}

.portfolio-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-card:hover .portfolio-img-wrap img {
  transform: scale(1.08);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 7, 10, 0.1) 0%, rgba(7, 7, 10, 0.85) 100%);
}

.portfolio-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(7, 7, 9, 0.8);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(185, 154, 69, 0.3);
  color: var(--gold-light);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
}

/* Form Styles */
.form-control-dark {
  background: #09090e !important;
  border: 1px solid #232333 !important;
  color: #ffffff !important;
  border-radius: 12px;
  padding: 0.85rem 1.15rem;
  font-size: 0.95rem;
  transition: all 0.25s ease;
}

.form-control-dark:focus {
  background: #0d0d14 !important;
  border-color: var(--gold-primary) !important;
  box-shadow: 0 0 0 3px rgba(185, 154, 69, 0.2) !important;
  color: #ffffff !important;
}

.form-control-dark::placeholder {
  color: #64748b;
}

.form-label-custom {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
  margin-bottom: 0.4rem;
}

/* Stat Counters */
.stat-number {
  font-size: 3rem;
  font-family: var(--font-display);
  font-weight: 900;
  color: var(--gold-light);
  line-height: 1;
}

/* Inner Page Banners */
.inner-hero {
  padding: 5.5rem 0 3.5rem 0;
  position: relative;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(185, 154, 69, 0.12) 0%, rgba(11, 11, 15, 0.5) 60%, var(--bg-canvas) 100%);
}

.breadcrumb-custom {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #94a3b8;
  margin-bottom: 1.25rem;
}

.breadcrumb-custom a {
  color: var(--gold-primary);
}

.breadcrumb-custom a:hover {
  color: var(--gold-light);
}

/* Footer */
.footer-custom {
  background: #040406;
  border-top: 1px solid #1a1a26;
  padding-top: 4.5rem;
  padding-bottom: 2.5rem;
  position: relative;
  color: #8a8aa3;
}

.footer-link {
  color: #94a3b8;
  display: inline-block;
  padding: 0.35rem 0;
  transition: all 0.2s ease;
}

.footer-link:hover {
  color: var(--gold-light);
  transform: translateX(4px);
}

/* Offcanvas Mobile Menu */
.offcanvas-dark {
  background: #09090e !important;
  color: #ffffff;
  border-left: 1px solid #1f1f2e;
}

.offcanvas-dark .btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
}

/* Floating pulse animation */
@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 20px -3px rgba(185, 154, 69, 0.3);
  }
  50% {
    box-shadow: 0 0 35px 2px rgba(185, 154, 69, 0.55);
  }
}

.pulse-glow {
  animation: pulseGlow 4s infinite;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
  .navbar-custom {
    padding: 0.75rem 0;
  }
  .stat-number {
    font-size: 2.4rem;
  }
}

/* ==========================================================================
   Theme Toggle Switcher Button
   ========================================================================== */
.theme-toggle-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(185, 154, 69, 0.45);
  background: rgba(185, 154, 69, 0.1);
  color: var(--gold-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
  padding: 0;
}

.theme-toggle-btn:hover {
  background: rgba(185, 154, 69, 0.25);
  border-color: var(--gold-primary);
  transform: scale(1.08) rotate(15deg);
  box-shadow: 0 0 15px rgba(185, 154, 69, 0.35);
}

.theme-toggle-btn .theme-icon-sun {
  display: inline-block;
  font-size: 1.1rem;
}

.theme-toggle-btn .theme-icon-moon {
  display: none;
  font-size: 1.1rem;
}

/* ==========================================================================
   Floating Theme Switcher: Fixed on Right in Middle of Screen
   ========================================================================== */
.floating-theme-wrap {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1040;
}

.theme-toggle-btn.floating-theme-btn {
  width: 48px;
  height: 50px;
  border-radius: 12px 0 0 12px;
  background: rgba(14, 14, 20, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(185, 154, 69, 0.5);
  border-right: none;
  color: #fbbf24;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: -4px 0 22px rgba(0, 0, 0, 0.45), 0 0 16px rgba(185, 154, 69, 0.25);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  outline: none;
}

.theme-toggle-btn.floating-theme-btn:hover {
  background: rgba(22, 22, 32, 0.98);
  border-color: var(--gold-primary);
  transform: translateX(-4px);
  box-shadow: -6px 0 25px rgba(185, 154, 69, 0.5), 0 0 20px rgba(185, 154, 69, 0.35);
}

.theme-toggle-btn.floating-theme-btn .theme-icon-sun {
  display: inline-block;
  font-size: 1.25rem;
  color: #fbbf24;
  transition: transform 0.4s ease;
}

.theme-toggle-btn.floating-theme-btn:hover .theme-icon-sun {
  transform: rotate(45deg) scale(1.12);
}

.theme-toggle-btn.floating-theme-btn .theme-icon-moon {
  display: none;
  font-size: 1.25rem;
  color: #826529;
  transition: transform 0.4s ease;
}

.theme-toggle-btn.floating-theme-btn:hover .theme-icon-moon {
  transform: rotate(-20deg) scale(1.12);
}

/* Floating Tooltip Label */
.floating-theme-tooltip {
  position: absolute;
  right: 100%;
  margin-right: 12px;
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  background: rgba(10, 10, 15, 0.96);
  border: 1px solid rgba(185, 154, 69, 0.4);
  color: #f8fafc;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.floating-theme-btn:hover .floating-theme-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

.tooltip-dark-text {
  display: inline;
}

.tooltip-light-text {
  display: none;
}

@media (max-width: 767.98px) {
  .floating-theme-tooltip {
    display: none !important;
  }
  .theme-toggle-btn.floating-theme-btn {
    width: 42px;
    height: 44px;
    border-radius: 10px 0 0 10px;
  }
}

/* ==========================================================================
   LIGHT MODE: Luxury Subtle White & Cream Shades
   ========================================================================== */
body.light-mode {
  --bg-canvas: #fdfbf9; /* Clean soft white */
  --bg-canvas-alt: #f6f2e8; /* Warm lighter shade of cream */
  --bg-card: #ffffff; /* Crisp white card base */
  --bg-card-elevated: #faf7f0; /* Subtle elevated cream card */
  --bg-card-hover: #ffffff;
  --border-subtle: #e8e2d4;
  --border-medium: #ddd4c0;
  --border-hover: rgba(185, 154, 69, 0.6);
  --gold-primary: #a38234; /* Richer deeper gold for high contrast on light */
  --gold-light: #826529;
  --gold-dark: #664f1d;
  --gold-gradient: linear-gradient(135deg, #b89139 0%, #947427 50%, #755b1c 100%);
  --card-shadow: 0 10px 30px -10px rgba(120, 100, 60, 0.08);
  
  background-color: var(--bg-canvas);
  color: #334155;
  transition: background-color 0.35s ease, color 0.35s ease;
}

/* Toggle icon states in light mode */
body.light-mode .theme-toggle-btn {
  background: rgba(185, 154, 69, 0.15);
  border-color: rgba(185, 154, 69, 0.5);
  color: #826529;
}

body.light-mode .theme-toggle-btn .theme-icon-sun {
  display: none;
}

body.light-mode .theme-toggle-btn .theme-icon-moon {
  display: inline-block;
}

/* Light Mode Styling for Floating Button */
body.light-mode .theme-toggle-btn.floating-theme-btn {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(185, 154, 69, 0.5);
  border-right: none;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.12), 0 0 15px rgba(185, 154, 69, 0.2);
  color: #826529;
}

body.light-mode .theme-toggle-btn.floating-theme-btn:hover {
  background: #ffffff;
  border-color: #a38234;
  box-shadow: -6px 0 25px rgba(185, 154, 69, 0.4);
}

body.light-mode .theme-toggle-btn.floating-theme-btn .theme-icon-sun {
  display: none;
}

body.light-mode .theme-toggle-btn.floating-theme-btn .theme-icon-moon {
  display: inline-block;
  color: #826529;
}

body.light-mode .tooltip-dark-text {
  display: none;
}

body.light-mode .tooltip-light-text {
  display: inline;
}

body.light-mode .floating-theme-tooltip {
  background: #ffffff;
  border-color: rgba(185, 154, 69, 0.5);
  color: #070709;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

/* Typography in light mode - Black theme color for headings */
body.light-mode h1,
body.light-mode h2,
body.light-mode h3,
body.light-mode h4,
body.light-mode h5,
body.light-mode h6,
body.light-mode .font-display,
body.light-mode h1.text-white,
body.light-mode h2.text-white,
body.light-mode h3.text-white,
body.light-mode h4.text-white,
body.light-mode h5.text-white,
body.light-mode h6.text-white,
body.light-mode .display-1,
body.light-mode .display-2,
body.light-mode .display-3,
body.light-mode .display-4,
body.light-mode .display-5,
body.light-mode .display-6,
body.light-mode .display-1.text-white,
body.light-mode .display-2.text-white,
body.light-mode .display-3.text-white,
body.light-mode .display-4.text-white,
body.light-mode .display-5.text-white,
body.light-mode .display-6.text-white,
body.light-mode .modal-title,
body.light-mode .modal-title.text-white {
  color: #070709 !important; /* Pure black / deep theme black */
}

/* Ensure Gold Gradient text remains vivid and distinct inside black headings */
body.light-mode .gold-gradient-text {
  background: var(--gold-gradient) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
  display: inline-block;
}

/* General text-white elements in light mode outside dark footer */
body.light-mode .text-white:not(.footer-custom *):not(.gold-btn *):not(.badge):not(.portfolio-badge) {
  color: #070709 !important;
}

body.light-mode strong.text-white:not(.footer-custom *),
body.light-mode b.text-white:not(.footer-custom *),
body.light-mode span.text-white:not(.footer-custom *):not(.badge):not(.portfolio-badge),
body.light-mode a.text-white:not(.footer-custom *):not(.gold-btn) {
  color: #070709 !important;
}

body.light-mode p {
  color: #334155 !important;
}

body.light-mode .text-secondary,
body.light-mode p.text-secondary {
  color: #475569 !important;
}

body.light-mode small.text-secondary {
  color: #64748b !important;
}

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

body.light-mode .text-light {
  color: #1e293b !important;
}

body.light-mode .lead {
  color: #0f172a !important;
}

body.light-mode .glass-card ul li,
body.light-mode ul.space-y-2 li,
body.light-mode ul.space-y-3 li {
  color: #1e293b !important;
}

/* Section Background Variations in light mode */
body.light-mode .bg-canvas {
  background-color: #fdfbf9 !important;
}

body.light-mode .bg-canvas-alt {
  background-color: #f6f2e8 !important; /* Soft warm cream */
}

body.light-mode .inner-hero {
  background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(185, 154, 69, 0.16) 0%, rgba(246, 242, 232, 0.85) 60%, #fdfbf9 100%) !important;
}

/* Navigation in light mode */
body.light-mode .navbar-custom {
  background: rgba(253, 251, 249, 0.92);
  border-bottom: 1px solid rgba(220, 212, 195, 0.8);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

body.light-mode .navbar-custom.scrolled {
  background: rgba(248, 244, 236, 0.98);
  border-bottom-color: rgba(185, 154, 69, 0.35);
  box-shadow: 0 10px 25px -8px rgba(0, 0, 0, 0.08);
}

body.light-mode .nav-link {
  color: #1e293b !important;
}

body.light-mode .nav-link:hover,
body.light-mode .nav-link.active {
  color: var(--gold-primary) !important;
}

body.light-mode .dropdown-menu-dark-custom {
  background: #ffffff;
  border-color: #e2dcce;
  box-shadow: 0 15px 35px -5px rgba(100, 80, 50, 0.12);
}

body.light-mode .dropdown-item-custom {
  color: #1e293b;
}

body.light-mode .dropdown-item-custom:hover {
  background: rgba(185, 154, 69, 0.12);
  color: var(--gold-primary);
}

/* Cards & Framework Blocks in light mode */
body.light-mode .glass-card {
  background: #ffffff !important;
  border-color: #e8e2d4 !important;
  box-shadow: 0 10px 30px -8px rgba(80, 70, 50, 0.08);
}

body.light-mode .glass-card:hover {
  border-color: rgba(185, 154, 69, 0.6) !important;
  box-shadow: 0 16px 36px -10px rgba(185, 154, 69, 0.2);
}

body.light-mode .pillar-card {
  background: #ffffff !important;
  border-color: #e8e2d4 !important;
}

body.light-mode .pillar-card:hover {
  border-color: rgba(185, 154, 69, 0.6) !important;
  background: #fdfcf9 !important;
}

body.light-mode .pillar-num {
  color: rgba(185, 154, 69, 0.45);
}

/* Marquee Ticker in light mode */
body.light-mode .marquee-wrapper {
  background: #efebe1 !important; /* Muted warm cream */
  border-color: #dfd8c8 !important;
}

body.light-mode .marquee-item {
  color: #475569 !important;
}

/* Badges & Icon boxes in light mode */
body.light-mode .gold-badge {
  background: rgba(185, 154, 69, 0.14);
  color: #8c6e24;
  border-color: rgba(185, 154, 69, 0.4);
}

body.light-mode .icon-box-gold {
  background: rgba(185, 154, 69, 0.14);
  border-color: rgba(185, 154, 69, 0.35);
  color: #8c6e24;
}

/* Form Controls in light mode */
body.light-mode .form-control-dark {
  background: #ffffff !important;
  border: 1px solid #dcd4c3 !important;
  color: #0f172a !important;
}

body.light-mode .form-control-dark:focus {
  background: #ffffff !important;
  border-color: var(--gold-primary) !important;
  box-shadow: 0 0 0 3px rgba(185, 154, 69, 0.2) !important;
}

body.light-mode .form-control-dark::placeholder {
  color: #94a3b8;
}

body.light-mode .form-label-custom {
  color: #55647a;
}

/* Hero right card stat items in light mode */
body.light-mode .glass-card [style*="background: #171724"],
body.light-mode .glass-card [style*="background: #151522"] {
  background: #f8f5ee !important;
  border-color: #e4ded0 !important;
}

body.light-mode .glass-card [style*="background: #171724"] .text-white,
body.light-mode .glass-card [style*="background: #151522"] .text-white {
  color: #0f172a !important;
}

/* Offcanvas in light mode */
body.light-mode .offcanvas-dark {
  background: #fdfbf7 !important;
  color: #0f172a !important;
  border-left-color: #e2dcce !important;
}

body.light-mode .offcanvas-dark .btn-close {
  filter: none;
}

body.light-mode .offcanvas-dark .nav-link {
  color: #1e293b !important;
}

body.light-mode .offcanvas-dark .text-white {
  color: #0f172a !important;
}

/* Outline button in light mode */
body.light-mode .gold-outline-btn {
  background: #ffffff;
  color: #0f172a !important;
  border-color: rgba(185, 154, 69, 0.6);
}

body.light-mode .gold-outline-btn:hover {
  background: rgba(185, 154, 69, 0.15);
  border-color: var(--gold-primary);
  color: var(--gold-primary) !important;
}

/* Call to Action Banner card in light mode */
body.light-mode .glass-card[style*="linear-gradient"] {
  background: linear-gradient(135deg, #f7f3e8 0%, #fdfcf9 50%, #f4efe4 100%) !important;
  border-color: rgba(185, 154, 69, 0.4) !important;
}

body.light-mode .glass-card[style*="linear-gradient"] h2 {
  color: #0f172a !important;
}

body.light-mode .glass-card[style*="linear-gradient"] p {
  color: #475569 !important;
}

/* Ambient glow orbs in light mode */
body.light-mode .glow-orb-gold {
  opacity: 0.12;
}

body.light-mode .glow-orb-purple {
  opacity: 0.04;
}

/* Glass Card text contrast in light mode */
body.light-mode .glass-card .text-white {
  color: #0f172a !important;
}

body.light-mode .glass-card .text-light {
  color: #1e293b !important;
}

/* Retain high contrast for contrasting luxury footer in light mode */
body.light-mode .footer-custom {
  background: #09090e !important;
  border-top-color: #1f1f2e !important;
}

body.light-mode .footer-custom h5,
body.light-mode .footer-custom .text-white {
  color: #ffffff !important;
}

body.light-mode .footer-custom .text-secondary {
  color: #94a3b8 !important;
}

body.light-mode .footer-custom .footer-link {
  color: #94a3b8 !important;
}

body.light-mode .footer-custom .footer-link:hover {
  color: var(--gold-light) !important;
}

body.light-mode .footer-custom p {
  color: #94a3b8 !important;
}

/* Modal in light mode */
body.light-mode .modal-content {
  background: #ffffff !important;
  border-color: rgba(185, 154, 69, 0.4) !important;
  color: #0f172a !important;
}

body.light-mode .modal-content h4 {
  color: #0f172a !important;
}

body.light-mode .modal-content .btn-close-white {
  filter: none !important;
}

/* Breadcrumb in light mode */
body.light-mode .breadcrumb-custom {
  color: #64748b !important;
}

body.light-mode .breadcrumb-custom span.text-white {
  color: #0f172a !important;
}

/* Stat counters in light mode */
body.light-mode .stat-number {
  color: #967425 !important;
}



