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

/* --- Design Tokens --- */
:root {
  --font-primary: 'Inter', sans-serif;

  /* Color Palette */
  --bg-main: #080B11;
  --bg-card: #0F1420;
  --bg-card-hover: #151D2F;
  --bg-nav: rgba(8, 11, 17, 0.85);

  --bg-deep: #06080d;
  --bg-badge: rgba(30, 41, 59, 0.4);
  --bg-input: rgba(15, 20, 32, 0.6);
  --bg-btn-secondary-hover: rgba(0, 229, 255, 0.03);

  --border-subtle: #1E293B;
  --border-hover: #334155;

  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;

  --accent: #00E5FF;
  --accent-dim: #00B0FF;
  --accent-glow: rgba(0, 229, 255, 0.15);
  --accent-border: rgba(0, 229, 255, 0.25);

  --svg-line: #334155;

  /* Gradients */
  --grad-hero: radial-gradient(circle at 80% 20%, rgba(0, 229, 255, 0.08) 0%, transparent 60%);
  --grad-diff: linear-gradient(180deg, rgba(15, 20, 32, 0.3) 0%, rgba(8, 11, 17, 0.9) 100%);
  --grad-cta: linear-gradient(135deg, rgba(0, 229, 255, 0.08) 0%, rgba(0, 176, 255, 0.02) 100%);

  /* Layout */
  --max-width: 1200px;
  --header-height-large: 90px;
  --header-height-scrolled: 70px;
}

[data-theme="light"] {
  --bg-main: #FAFBFC;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F1F5F9;
  --bg-nav: rgba(250, 251, 252, 0.85);
  --bg-deep: #F1F5F9;
  --bg-badge: rgba(226, 232, 240, 0.6);
  --bg-input: #FFFFFF;
  --bg-btn-secondary-hover: rgba(0, 136, 204, 0.03);

  --border-subtle: #E2E8F0;
  --border-hover: #CBD5E1;

  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #64748B;

  --accent: #0088CC;
  --accent-dim: #006699;
  --accent-glow: rgba(0, 136, 204, 0.1);
  --accent-border: rgba(0, 136, 204, 0.2);

  --svg-line: #CBD5E1;

  --grad-hero: radial-gradient(circle at 80% 20%, rgba(0, 136, 204, 0.05) 0%, transparent 60%);
  --grad-diff: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, rgba(250, 251, 252, 0.9) 100%);
}

/* Logo color inversion for light theme */
[data-theme="light"] .logo img,
[data-theme="light"] .footer-brand img,
[data-theme="light"] .footer img {
  filter: invert(1);
}

/* Home page transparent header logo exception (keep white on dark hero on desktop) */
@media (min-width: 992px) {
  [data-theme="light"] .home-page .header-wrapper:not(.scrolled) .logo img {
    filter: none;
  }
}

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

html {
  font-family: var(--font-primary);
  scroll-behavior: smooth;
  background-color: var(--bg-main);
  color: var(--text-primary);
}

body {
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

p {
  font-weight: 300;
}

body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 900px;
  background: var(--grad-hero);
  pointer-events: none;
  z-index: 0;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul,
ol {
  list-style: none;
}

input,
textarea,
select,
button {
  font-family: inherit;
  color: inherit;
  background: transparent;
  border: none;
  outline: none;
}

/* --- Layout Utility --- */
.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 15px;
  position: relative;
  z-index: 1;
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.section-padding {
  padding: 100px 0;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-block;
  margin-bottom: 16px;
  position: relative;
  padding-left: 16px;
}

.section-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 1px;
  background-color: var(--accent);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: var(--text-primary);
  line-height: 1.2;
}

.section-title span {
  font-weight: 300;
}

.section-desc {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 650px;
  margin-bottom: 40px;
}

/* --- Typography Helpers --- */
.h1-hero {
  font-size: 4rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 24px;
}

.h1-hero span {
  display: block;
  font-weight: 300;
}

.text-gradient {
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --- Interactive Navigation Header --- */
.header-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 110;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border-bottom: 1px solid transparent;
}

.header-wrapper.scrolled {
  height: var(--header-height-scrolled);
  background-color: var(--bg-nav);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-wrapper:not(.scrolled) {
  height: var(--header-height-large);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 30px;
}

.logo {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo span {
  font-weight: 300;
  color: var(--text-secondary);
}

.logo::before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  background-color: var(--accent);
  border-radius: 2px;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 6px 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--accent);
  transition: width 0.25s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* --- Mobile Menu Trigger & Overlay --- */
.mobile-overlay {
  display: none;
}

.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
  z-index: 110;
}

.hamburger-line {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--text-primary);
  margin: 5px 0;
  transition: all 0.3s ease;
}

/* Force standard theme colors when mobile menu overlay is active to ensure the close button is visible */
.mobile-menu-open .hamburger-line {
  background-color: var(--text-primary) !important;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  gap: 8px;
}

.btn-primary {
  background-color: var(--accent);
  color: var(--bg-main);
  border: 1px solid var(--accent);
}

.btn-primary:hover {
  background-color: var(--bg-main);
  color: var(--accent);
  box-shadow: 0 0 15px var(--accent-glow);
}

.btn-secondary {
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
}

.btn-secondary:hover {
  border-color: var(--accent);
  background-color: var(--bg-btn-secondary-hover);
}

/* --- Tech Cards --- */
.tech-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.tech-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

.tech-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-border);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 229, 255, 0.02);
}

.tech-card:hover::before {
  transform: translateX(100%);
}

.tech-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--accent);
  background-color: rgba(0, 229, 255, 0.02);
  transition: border-color 0.3s ease;
}

.tech-card:hover .tech-card-icon {
  border-color: var(--accent);
}

.tech-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.tech-card-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.5;
}

.tech-card-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tech-card-link span {
  transition: transform 0.2s ease;
}

.tech-card:hover .tech-card-link span {
  transform: translateX(4px);
}

/* --- Inline System Badges --- */
.tech-badge {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 4px 10px;
  background-color: var(--bg-badge);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  border-radius: 4px;
  display: inline-block;
  margin-right: 8px;
  margin-bottom: 8px;
}

/* --- Timelines & Sequences --- */
.timeline {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-top: 60px;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--border-subtle);
  z-index: 0;
}

.timeline-step {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 0 16px;
}

.timeline-node {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--bg-main);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.timeline-step:hover .timeline-node {
  border-color: var(--accent);
  color: var(--text-primary);
  box-shadow: 0 0 10px var(--accent-glow);
}

.timeline-step-content {
  text-align: center;
}

.timeline-step-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.timeline-step-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* --- FAQ Accordion --- */
.faq-accordion {
  border-bottom: 1px solid var(--border-subtle);
}

.faq-header {
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.faq-header h4 {
  font-size: 1.125rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.faq-icon {
  width: 20px;
  height: 20px;
  position: relative;
  color: var(--text-secondary);
  transition: transform 0.3s ease;
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background-color: currentColor;
  transition: transform 0.3s ease;
}

.faq-icon::before {
  top: 9px;
  left: 3px;
  width: 14px;
  height: 2px;
}

.faq-icon::after {
  top: 3px;
  left: 9px;
  width: 2px;
  height: 14px;
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s ease;
}

.faq-content {
  padding-bottom: 24px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.faq-accordion.active .faq-header h4 {
  color: var(--accent);
}

.faq-accordion.active .faq-icon {
  transform: rotate(45deg);
}

.faq-accordion.active .faq-body {
  max-height: 500px;
}

/* --- Form Elements --- */
.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  background-color: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  font-size: 0.95rem;
  color: var(--text-primary);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.05);
}

.form-row {
  display: flex;
  gap: 20px;
}

.form-row .form-group {
  flex: 1;
}

/* --- Custom SVGs and Architecture Diagrams --- */
.visual-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.home-page .visual-container {
  perspective: 1200px;
  /* Enable 3D perspective */
  transform-style: preserve-3d;
  transform: rotateX(20deg) rotateY(-25deg) rotateZ(8deg);
  filter: drop-shadow(12px 24px 35px rgba(0, 0, 0, 0.45));
  animation: float3D 8s ease-in-out infinite;
  transition: transform 0.5s ease-out;
}

.architecture-svg {
  width: 100%;
  height: auto;
  max-width: 550px;
}

.tech-graphic-panel {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 24px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  box-sizing: border-box;
}

.tech-graphic-panel .svg-text {
  font-size: 13px !important;
  fill: var(--text-primary) !important;
}

.tech-graphic-panel .svg-text-title {
  font-size: 14px !important;
  font-weight: 600 !important;
}

.home-page .architecture-svg {
  transform-style: preserve-3d;
}

/* Premium 3D Floating Animation */
@keyframes float3D {
  0% {
    transform: rotateX(18deg) rotateY(-22deg) rotateZ(6deg) translateY(0);
    filter: drop-shadow(10px 20px 30px rgba(0, 0, 0, 0.4));
  }

  50% {
    transform: rotateX(22deg) rotateY(-26deg) rotateZ(10deg) translateY(-12px);
    filter: drop-shadow(18px 36px 45px rgba(0, 0, 0, 0.5));
  }

  100% {
    transform: rotateX(18deg) rotateY(-22deg) rotateZ(6deg) translateY(0);
    filter: drop-shadow(10px 20px 30px rgba(0, 0, 0, 0.4));
  }
}


/* Animation utilities for inline SVGs */
@keyframes pulse {
  0% {
    r: 6;
    opacity: 0.5;
  }

  50% {
    r: 12;
    opacity: 0.15;
  }

  100% {
    r: 6;
    opacity: 0.5;
  }
}

@keyframes pulseGlow {

  0%,
  100% {
    filter: drop-shadow(0 0 2px var(--accent));
  }

  50% {
    filter: drop-shadow(0 0 10px var(--accent));
  }
}

@keyframes dash {
  to {
    stroke-dashoffset: -40;
  }
}

.animate-pulse-glow {
  animation: pulseGlow 4s infinite ease-in-out;
}

.animate-dash {
  stroke-dasharray: 8, 4;
  animation: dash 2s infinite linear;
}

.animate-circle-pulse {
  transform-origin: center;
  animation: pulse 3s infinite ease-in-out;
}

/* Node layout styling for SVG */
.svg-node {
  fill: var(--bg-card);
  stroke: var(--border-subtle);
  stroke-width: 1.5;
  transition: all 0.3s ease;
}

.svg-node:hover {
  stroke: var(--accent);
  fill: var(--bg-card-hover);
}

.svg-node-active {
  stroke: var(--accent);
  fill: var(--bg-card-hover);
}

.svg-text {
  fill: var(--text-secondary);
  font-family: var(--font-primary);
  font-size: 11px;
  font-weight: 500;
  text-anchor: middle;
  pointer-events: none;
  user-select: none;
}

.svg-node:hover+.svg-text,
.svg-node-active+.svg-text {
  fill: var(--text-primary);
}

.svg-text-title {
  fill: var(--text-primary);
  font-weight: 600;
}

.svg-line {
  stroke: var(--svg-line);
  stroke-width: 1;
}

.svg-line-active {
  stroke: var(--accent) !important;
  stroke-width: 1.5 !important;
}

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 80px 0 40px;
  background-color: var(--bg-deep);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  max-width: 280px;
  margin-bottom: 24px;
}

.footer-col h4 {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.footer-col ul li a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* --- Shared CTA Card --- */
.cta-banner {
  background: var(--grad-cta);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 60px;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

/* --- Mobile Breakpoints (Under 1200px) --- */
@media (max-width: 1199px) {
  .grid-12 {
    gap: 20px;
  }

  .h1-hero {
    font-size: 3.25rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
  }

  .footer-brand {
    grid-column: span 3;
    margin-bottom: 20px;
  }
}

@media (max-width: 991px) {
  .section-padding {
    padding: 80px 0;
  }

  .h1-hero {
    font-size: 3rem;
  }

  .timeline {
    flex-direction: column;
    gap: 40px;
    margin-top: 40px;
  }

  .timeline::before {
    display: none;
  }

  .timeline-step {
    padding: 0;
    text-align: left;
    display: flex;
    gap: 20px;
    align-items: flex-start;
  }

  .timeline-step-content {
    flex: 1;
    text-align: left;
  }

  .timeline-node {
    margin: 0;
    flex-shrink: 0;
  }

  /* Navigation hiding moved to tablet viewport threshold */
  .nav-links,
  .header-cta {
    display: none;
  }

  .hamburger {
    display: block;
  }

  .header-wrapper {
    background-color: var(--bg-nav) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border-bottom: 1px solid var(--border-subtle) !important;
    height: 70px !important;
  }

  /* Mobile Fullscreen Navigation Overlay */
  .mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-main);
    z-index: 105;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-20px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .mobile-overlay.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .mobile-nav-link {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-secondary);
  }

  .mobile-nav-link.active,
  .mobile-nav-link:hover {
    color: var(--text-primary);
  }
}

@media (max-width: 767px) {
  body::before {
    height: 600px;
  }

  .container {
    width: 92%;
  }

  .home-page .visual-container {
    transform: rotateX(10deg) rotateY(-12deg) rotateZ(3deg) !important;
    animation: float3DMobile 8s ease-in-out infinite !important;
  }

  .architecture-svg {
    max-width: 90% !important;
  }

  @keyframes float3DMobile {

    0%,
    100% {
      transform: rotateX(8deg) rotateY(-10deg) rotateZ(2deg) translateY(0);
    }

    50% {
      transform: rotateX(12deg) rotateY(-14deg) rotateZ(4deg) translateY(-8px);
    }
  }

  .h1-hero {
    font-size: 2.5rem;
  }

  .grid-12 {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .cta-banner {
    padding: 40px 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: span 2;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }
}

@media (max-width: 480px) {
  .h1-hero {
    font-size: 2.25rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-column: span 1;
  }
}

/* --- Hero Background Slider --- */
.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 2s ease-in-out, transform 2s ease-out;
  transform: scale(1.02);
  z-index: 1;
}

.hero-slide.active {
  opacity: 0.8;
  /* Increased opacity for better visibility */
  z-index: 2;
  transform: scale(1.1);
  transition: opacity 2s ease-in-out, transform 10s linear;
}

.hero-slider-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, rgba(8, 11, 17, 0.3) 0%, rgba(8, 11, 17, 0.92) 100%);
  z-index: 3;
  pointer-events: none !important;
  /* Ensure background overlay doesn't swallow mouse clicks */
}

/* --- Theme Toggle Button --- */
.theme-toggle {
  background: none;
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
  background-color: var(--bg-btn-secondary-hover);
}

.theme-toggle .sun-icon {
  display: none;
}

.theme-toggle .moon-icon {
  display: block;
}

/* In Dark Mode, show the Sun icon, hide the Moon icon */
[data-theme="dark"] .theme-toggle .sun-icon {
  display: block;
}

[data-theme="dark"] .theme-toggle .moon-icon {
  display: none;
}

/* --- Hero Section Height & Scope Overrides --- */
.hero-section {
  min-height: calc(100vh - 67px);
  min-height: calc(100dvh - 67px);
  display: flex;
  align-items: center;
  padding-top: 120px !important;
  padding-bottom: 60px !important;
  box-sizing: border-box;
  background-color: #080B11 !important;
  /* Force solid dark background behind slider */

  /* Force dark theme color token values inside the hero section */
  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --accent: #00E5FF;
  --accent-dim: #00B0FF;
  --accent-glow: rgba(0, 229, 255, 0.15);
  --accent-border: rgba(0, 229, 255, 0.25);
  --border-subtle: #1E293B;
  --border-hover: #334155;
  --bg-card: #0F1420;
  --bg-card-hover: #151D2F;
  --svg-line: #1E293B;
}

.hero-section .container {
  position: relative;
  z-index: 5;
  /* Place hero content container on top of background slider and overlay */
}

/* --- Inner Pages Hero Background Layout --- */
.inner-hero {
  position: relative;
  background-image: var(--hero-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
  overflow: hidden;
}

.inner-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(135deg, rgba(8, 11, 17, 0.94) 0%, rgba(8, 11, 17, 0.8) 100%);
  transition: background 0.3s ease;
}

[data-theme="light"] .inner-hero::before {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94) 0%, rgba(248, 250, 252, 0.88) 100%);
}

.inner-hero>.container {
  position: relative;
  z-index: 2;
}

@media (min-width: 992px) {

  /* Homepage navigation header visibility overrides in Light Mode (forces dark-theme colors before scrolling) */
  .home-page .header-wrapper:not(.scrolled) {
    --text-primary: #F8FAFC;
    --text-secondary: #94A3B8;
    --accent: #00E5FF;
    --accent-dim: #00B0FF;
    --border-subtle: rgba(255, 255, 255, 0.15);
    --bg-btn-secondary-hover: rgba(255, 255, 255, 0.05);
  }
}

/* --- Language Switcher --- */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  background-color: var(--bg-badge);
  border: 1px solid var(--border-subtle);
  padding: 4px 8px;
  border-radius: 20px;
  height: 28px;
}

.lang-btn {
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s ease;
  padding: 2px 6px;
  border-radius: 12px;
  line-height: 1;
}

.lang-btn:hover {
  color: var(--text-primary);
}

.lang-btn.active {
  color: var(--accent);
  background-color: rgba(0, 229, 255, 0.08);
}

[data-theme="light"] .lang-btn.active {
  color: var(--accent);
  background-color: rgba(0, 136, 204, 0.08);
}

.lang-separator {
  color: var(--text-muted);
  user-select: none;
  font-size: 0.75rem;
  opacity: 0.5;
}

/* Mobile Language Switcher overlay override styling */
.mobile-overlay .lang-switch.mobile-lang-switch {
  margin-top: 15px;
  align-self: center;
  height: auto;
  padding: 6px 12px;
  font-size: 0.875rem;
  gap: 8px;
  background-color: var(--bg-badge);
  border: 1px solid var(--border-subtle);
}

.mobile-overlay .mobile-lang-switch .lang-btn {
  padding: 4px 10px;
  border-radius: 14px;
}

/* --- Floating Buttons --- */
.floating-btn {
  position: fixed;
  bottom: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
}

.floating-btn.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.btn-whatsapp {
  left: 24px;
  width: 40px;
  height: 40px;
  background-color: transparent;
  border: none;
  box-shadow: none;
  text-decoration: none;
}

.btn-whatsapp:hover {
  transform: scale(1.08) translateY(-2px);
}


.btn-scroll-top {
  right: 24px;
  background-color: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.btn-scroll-top:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--accent);
  color: var(--accent);
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 6px 16px var(--accent-glow);
}

/* --- Cookie Banner --- */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(24px);
  width: calc(100% - 48px);
  max-width: 520px;
  background-color: var(--bg-nav);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 24px;
  z-index: 150;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.cookie-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cookie-desc {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.cookie-options {
  display: none;
  margin-bottom: 20px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 16px;
  flex-direction: column;
  gap: 12px;
}

.cookie-options.expanded {
  display: flex;
}

.cookie-option-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
}

.cookie-option-info {
  display: flex;
  flex-direction: column;
}

.cookie-option-label {
  font-weight: 600;
  color: var(--text-primary);
}

.cookie-option-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Custom Switch Toggle */
.cookie-switch {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
}

.cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--border-hover);
  transition: .3s;
  border-radius: 20px;
}

.cookie-slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: var(--text-primary);
  transition: .3s;
  border-radius: 50%;
}

.cookie-switch input:checked+.cookie-slider {
  background-color: var(--accent);
}

.cookie-switch input:disabled+.cookie-slider {
  opacity: 0.5;
  cursor: not-allowed;
}

.cookie-switch input:checked+.cookie-slider:before {
  transform: translateX(16px);
}

.cookie-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.cookie-btn {
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.cookie-btn-secondary {
  background-color: transparent;
  border-color: var(--border-subtle);
  color: var(--text-secondary);
}

.cookie-btn-secondary:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
  background-color: var(--bg-btn-secondary-hover);
}

.cookie-btn-primary {
  background-color: var(--accent);
  color: #080B11;
  /* Dark theme background for contrast */
}

.cookie-btn-primary:hover {
  background-color: var(--accent-dim);
  box-shadow: 0 0 12px var(--accent-glow);
}

[data-theme="light"] .cookie-btn-primary {
  color: #FAFBFC;
}