/* ==========================================================================
   Light Mode Design Tokens & Glassy Variable Overrides
   Inspiration: #f2f2f2 (Glassy Canvas) & #961b2b (Crimson Accent)
   Roar Projects Theme System (Dark Mode Default / Light Mode Alternate)
   ========================================================================== */

body[data-theme="light"],
html[data-theme="light"] {
  /* Surfaces & Glassy Canvas */
  --bg-base: #f2f2f2;
  --bg-surface: rgba(242, 242, 242, 0.76);
  --bg-card: rgba(255, 255, 255, 0.78);
  --bg-card-elevated: rgba(248, 249, 250, 0.85);

  /* Primary Accent: Crimson & Burgundy */
  --gold-primary: #961b2b;
  --gold-hover: #7a1421;
  --gold-glow: rgba(150, 27, 43, 0.25);
  --gold-muted: rgba(150, 27, 43, 0.12);
  --gold-gradient: linear-gradient(135deg, #b82337 0%, #961b2b 50%, #7a1421 100%);

  /* Secondary Accent: Slate & Platinum */
  --silver-primary: #5c6470;
  --silver-light: #2b303a;
  --silver-glow: rgba(92, 100, 112, 0.2);
  --silver-gradient: linear-gradient(135deg, #495057 0%, #6c757d 50%, #adb5bd 100%);

  /* Borders & Grids - Darker Crimson Division Accents */
  --border-subtle: rgba(150, 27, 43, 0.38);
  --border-card: rgba(150, 27, 43, 0.28);
  --border-accent: rgba(150, 27, 43, 0.65);
  --grid-line: rgba(150, 27, 43, 0.04);

  /* Typography */
  --text-primary: #121417;
  --text-heading: #1a1d21;
  --text-body: #343a40;
  --text-muted: #667085;

  /* Shadows */
  --card-shadow: 0 10px 30px rgba(150, 27, 43, 0.06);
  --gold-box-shadow: 0 4px 18px rgba(150, 27, 43, 0.22);
}

/* Base Body Glass Canvas with Ambient Crimson Light Blobs */
body[data-theme="light"] {
  background-color: #f2f2f2;
  background-image:
    radial-gradient(at 10% 20%, rgba(150, 27, 43, 0.08) 0px, transparent 45%),
    radial-gradient(at 90% 15%, rgba(150, 27, 43, 0.05) 0px, transparent 40%),
    radial-gradient(at 80% 65%, rgba(150, 27, 43, 0.07) 0px, transparent 45%),
    radial-gradient(at 20% 80%, rgba(92, 100, 112, 0.06) 0px, transparent 45%),
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%, 32px 32px, 32px 32px;
  background-attachment: fixed;
}

/* ==========================================================================
   Section Glassmorphic Style Overrides (Light Mode Features Only)
   Darker Crimson Accent Borders to Emphasize Section Division
   ========================================================================== */

/* 1. Header Glass */
body[data-theme="light"] #header_wrapper {
  background: rgba(242, 242, 242, 0.85);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border-bottom: 2px solid rgba(150, 27, 43, 0.65);
  box-shadow: 0 4px 24px rgba(150, 27, 43, 0.08);
}

/* 2. Hero Section Glass */
body[data-theme="light"] .top_cont_outer {
  background: radial-gradient(circle at 72% 50%, rgba(150, 27, 43, 0.12) 0%, rgba(242, 242, 242, 0.72) 55%, rgba(242, 242, 242, 0.92) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 2px solid rgba(150, 27, 43, 0.65);
}

/* 3. About Us Section Glass */
body[data-theme="light"] #aboutUs {
  background: rgba(242, 242, 242, 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 2px solid rgba(150, 27, 43, 0.55);
}

/* 4. Services Section Glass */
body[data-theme="light"] #service {
  background: rgba(242, 242, 242, 0.76);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1.5px solid rgba(150, 27, 43, 0.45);
  border-bottom: 2px solid rgba(150, 27, 43, 0.65);
  box-shadow: 0 8px 32px 0 rgba(150, 27, 43, 0.05);
}

/* Skills Ticker Divider Inside Services */
body[data-theme="light"] .skills-ticker-section {
  border-top: 2px solid rgba(150, 27, 43, 0.5);
}

/* 5. Skills Section Glass */
body[data-theme="light"] #skills {
  background: rgba(242, 242, 242, 0.76);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1.5px solid rgba(150, 27, 43, 0.45);
  border-bottom: 2px solid rgba(150, 27, 43, 0.65);
  box-shadow: 0 8px 32px 0 rgba(150, 27, 43, 0.05);
}

/* 7. Clients Section Glass */
body[data-theme="light"] #clients,
body[data-theme="light"] .client_logos {
  background: rgba(242, 242, 242, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1.5px solid rgba(150, 27, 43, 0.45);
  border-bottom: 2px solid rgba(150, 27, 43, 0.65);
}

/* 8. Team Section Glass */
body[data-theme="light"] #team,
body[data-theme="light"] .page_section.team {
  background: rgba(242, 242, 242, 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1.5px solid rgba(150, 27, 43, 0.4);
  border-bottom: 2px solid rgba(150, 27, 43, 0.65);
}

/* 9. Contact Section Glass */
body[data-theme="light"] #contact,
body[data-theme="light"] .page_section.contact {
  background: rgba(242, 242, 242, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1.5px solid rgba(150, 27, 43, 0.45);
  border-bottom: 2px solid rgba(150, 27, 43, 0.65);
}

/* 10. Footer Section Glass */
body[data-theme="light"] .footer_wrapper {
  background: rgba(238, 241, 245, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 2.5px solid rgba(150, 27, 43, 0.75);
  box-shadow: 0 -8px 30px rgba(150, 27, 43, 0.08);
}

body[data-theme="light"] .footer_bottom_bar {
  border-top: 1.5px solid rgba(150, 27, 43, 0.45);
}

/* Darker Crimson Dividers & Accents in Light Mode */
body[data-theme="light"] .section-divider,
body[data-theme="light"] .borderTop::before {
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(150, 27, 43, 0.8), transparent);
  opacity: 1;
}

body[data-theme="light"] #bfilters ul {
  border-bottom: 1.5px solid rgba(150, 27, 43, 0.35);
}

/* ==========================================================================
   Glass Cards & UI Components (Light Mode)
   ========================================================================== */

/* High Contrast Primary Action Buttons */
body[data-theme="light"] .btn-primary,
body[data-theme="light"] a.contact_btn,
body[data-theme="light"] .input-btn,
body[data-theme="light"] .navbar-inverse .navbar-nav>.active>a {
  color: #ffffff !important;
}

/* Secondary / Ghost Buttons */
body[data-theme="light"] .btn-secondary,
body[data-theme="light"] .btn-outline,
body[data-theme="light"] a.read_more2 {
  color: #1a1d21;
  border-color: #5c6470;
}

body[data-theme="light"] .btn-secondary:hover,
body[data-theme="light"] .btn-outline:hover,
body[data-theme="light"] a.read_more2:hover {
  background: rgba(92, 100, 112, 0.1);
  color: #961b2b;
  border-color: #961b2b;
}

/* Hero Tagline White Wave Animation on Black Background */
body[data-theme="light"] .hero_tagline_text,
body[data-theme="light"] .hero_tagline_text .wave-char {
  color: #ffffff !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.95), 0 0 16px rgba(0, 0, 0, 0.85);
}

body[data-theme="light"] .hero_tagline_text .wave-char {
  animation-name: letterWaveEnlargeLight;
}

@keyframes letterWaveEnlargeLight {

  0%,
  100% {
    transform: scale(1) translateY(0);
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.95), 0 0 14px rgba(0, 0, 0, 0.85);
  }

  12% {
    transform: scale(1.35) translateY(-5px);
    color: #ffffff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 1), 0 0 36px rgba(255, 255, 255, 0.75), 0 4px 14px rgba(0, 0, 0, 0.95);
  }

  24% {
    transform: scale(1) translateY(0);
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.95), 0 0 14px rgba(0, 0, 0, 0.85);
  }
}

@media (max-width: 768px) {
  body[data-theme="light"] .hero_tagline_text .wave-char {
    animation-name: letterWaveEnlargeMobileLight;
  }
}

@keyframes letterWaveEnlargeMobileLight {

  0%,
  100% {
    transform: scale(1) translateY(0);
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.95), 0 0 14px rgba(0, 0, 0, 0.85);
  }

  12% {
    transform: scale(1.2) translateY(-3px);
    color: #ffffff;
    text-shadow: 0 0 16px rgba(255, 255, 255, 1), 0 0 28px rgba(255, 255, 255, 0.7), 0 3px 10px rgba(0, 0, 0, 0.95);
  }

  24% {
    transform: scale(1) translateY(0);
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.95), 0 0 14px rgba(0, 0, 0, 0.85);
  }
}

/* Glass Filter Pills & Badges */
body[data-theme="light"] #bfilters ul li a h5 {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(211, 215, 222, 0.8);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  color: var(--text-body);
}

body[data-theme="light"] #bfilters ul li a:hover h5,
body[data-theme="light"] #bfilters ul li a.active h5 {
  background: rgba(150, 27, 43, 0.12);
  color: var(--gold-primary);
  border-color: var(--gold-primary);
  box-shadow: 0 4px 15px rgba(150, 27, 43, 0.18);
}

body[data-theme="light"] .tech-badge,
body[data-theme="light"] .status-badge {
  background: rgba(150, 27, 43, 0.08);
  border-color: var(--border-accent);
}

/* Glass Cards & Hover Elevations */
body[data-theme="light"] .feature-card,
body[data-theme="light"] .service_block,
body[data-theme="light"] .team .member .inner-container,
body[data-theme="light"] .stat-block {
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 8px 24px rgba(150, 27, 43, 0.05), 0 2px 6px rgba(0, 0, 0, 0.02);
}

body[data-theme="light"] .feature-card:hover,
body[data-theme="light"] .service_block:hover,
body[data-theme="light"] .team .member .inner-container:hover,
body[data-theme="light"] .stat-block:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--gold-primary);
  box-shadow: 0 14px 34px rgba(150, 27, 43, 0.12), 0 0 16px var(--gold-glow);
  transform: translateY(-4px);
}

body[data-theme="light"] .skills-logo-item {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 14px rgba(150, 27, 43, 0.05);
}

body[data-theme="light"] .skills-logo-item:hover {
  background: rgba(255, 255, 255, 0.92);
  border-color: var(--gold-primary);
  box-shadow: 0 10px 25px rgba(150, 27, 43, 0.12), 0 0 18px var(--gold-glow);
}

/* Glass Form Controls */
body[data-theme="light"] .input-text,
body[data-theme="light"] .form select {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(211, 215, 222, 0.8);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.03);
}

body[data-theme="light"] .input-text:focus,
body[data-theme="light"] .form select:focus {
  background: rgba(255, 255, 255, 0.95);
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px var(--gold-glow);
}

/* Glass Footer Skills Grid Items */
body[data-theme="light"] .footer_skill_item {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.85);
}

body[data-theme="light"] .footer_skill_item:hover {
  background: rgba(255, 255, 255, 0.85);
  border-color: var(--gold-primary);
  box-shadow: 0 4px 15px rgba(150, 27, 43, 0.1);
}

/* ==========================================================================
   Theme Toggle Button Styling in Header Navigation
   ========================================================================== */

.theme-toggle-item {
  display: inline-flex;
  align-items: center;
  margin-left: 10px;
  vertical-align: middle;
}

.theme-toggle-btn {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-card);
  color: var(--gold-primary);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: 12px;
  transition: all 0.25s ease;
  vertical-align: middle;
  padding: 0;
  outline: none;
}

.theme-toggle-btn:hover {
  background: var(--gold-muted);
  border-color: var(--gold-primary);
  transform: scale(1.08);
}

.theme-toggle-btn:focus-visible {
  outline: 2px solid var(--gold-primary);
  outline-offset: 2px;
}

.theme-toggle-btn i {
  font-size: 15px;
  line-height: 1;
}

body[data-theme="light"] .theme-toggle-btn {
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(150, 27, 43, 0.25);
  box-shadow: 0 2px 8px rgba(150, 27, 43, 0.08);
}

body[data-theme="light"] .theme-toggle-btn:hover {
  background: var(--gold-muted);
  border-color: var(--gold-primary);
  box-shadow: 0 4px 14px rgba(150, 27, 43, 0.2);
}

@media (max-width: 768px) {
  .navStyle ul li.theme-toggle-item {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px 0;
    margin: 5px 0 0 0;
  }

  .theme-toggle-btn {
    margin-left: 0;
    width: 40px;
    height: 40px;
  }

  .theme-toggle-btn i {
    font-size: 17px;
  }
}