/* ===========================================
   Goldaking - Custom Styles
   Logo Colors: Blue (#2B9FE8) + Orange (#FF7A1A)

   Light Theme: Blue primary, Orange accent
   Dark Theme: Orange primary, Blue accent
   =========================================== */

/* ============ LOCAL FONTS ============ */
@font-face {
  font-family: 'Inter';
  font-weight: 300;
  font-style: normal;
  src: local('Inter Light'), local('Inter-Light'), url('assets/fonts/Inter-300.ttf') format('truetype');
}
@font-face {
  font-family: 'Inter';
  font-weight: 400;
  font-style: normal;
  src: local('Inter Regular'), local('Inter-Regular'), url('assets/fonts/Inter-400.ttf') format('truetype');
}
@font-face {
  font-family: 'Inter';
  font-weight: 500;
  font-style: normal;
  src: local('Inter Medium'), local('Inter-Medium'), url('assets/fonts/Inter-500.ttf') format('truetype');
}
@font-face {
  font-family: 'Inter';
  font-weight: 600;
  font-style: normal;
  src: local('Inter SemiBold'), local('Inter-SemiBold'), url('assets/fonts/Inter-600.ttf') format('truetype');
}
@font-face {
  font-family: 'Inter';
  font-weight: 700;
  font-style: normal;
  src: local('Inter Bold'), local('Inter-Bold'), url('assets/fonts/Inter-700.ttf') format('truetype');
}
@font-face {
  font-family: 'Inter';
  font-weight: 800;
  font-style: normal;
  src: local('Inter ExtraBold'), local('Inter-ExtraBold'), url('assets/fonts/Inter-800.ttf') format('truetype');
}
@font-face {
  font-family: 'Inter';
  font-weight: 900;
  font-style: normal;
  src: local('Inter Black'), local('Inter-Black'), url('assets/fonts/Inter-900.ttf') format('truetype');
}

@font-face {
  font-family: 'Noto Sans SC';
  font-weight: 300;
  font-style: normal;
  src: local('Noto Sans SC Light'), local('NotoSansSC-Light'), url('assets/fonts/NotoSansSC-300.ttf') format('truetype');
}
@font-face {
  font-family: 'Noto Sans SC';
  font-weight: 400;
  font-style: normal;
  src: local('Noto Sans SC Regular'), local('NotoSansSC-Regular'), url('assets/fonts/NotoSansSC-400.ttf') format('truetype');
}
@font-face {
  font-family: 'Noto Sans SC';
  font-weight: 500;
  font-style: normal;
  src: local('Noto Sans SC Medium'), local('NotoSansSC-Medium'), url('assets/fonts/NotoSansSC-500.ttf') format('truetype');
}
@font-face {
  font-family: 'Noto Sans SC';
  font-weight: 700;
  font-style: normal;
  src: local('Noto Sans SC Bold'), local('NotoSansSC-Bold'), url('assets/fonts/NotoSansSC-700.ttf') format('truetype');
}
@font-face {
  font-family: 'Noto Sans SC';
  font-weight: 900;
  font-style: normal;
  src: local('Noto Sans SC Black'), local('NotoSansSC-Black'), url('assets/fonts/NotoSansSC-900.ttf') format('truetype');
}

@font-face {
  font-family: 'JetBrains Mono';
  font-weight: 400;
  font-style: normal;
  src: local('JetBrains Mono Regular'), local('JetBrainsMono-Regular'), url('assets/fonts/JetBrainsMono-400.ttf') format('truetype');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-weight: 600;
  font-style: normal;
  src: local('JetBrains Mono SemiBold'), local('JetBrainsMono-SemiBold'), url('assets/fonts/JetBrainsMono-600.ttf') format('truetype');
}

/* ============ LIGHT THEME (Blue Primary) ============ */
html[data-theme="light"] {
  --bg-deep: #FEFBF8;
  --bg-deep-rgb: 254, 251, 248;
  --bg-card: #FFFFFF;
  --bg-card-rgb: 255, 255, 255;
  --bg-elevated: #F0F6FC;
  --bg-elevated-rgb: 240, 246, 252;

  /* Blue - primary brand color */
  --blue: #2B9FE8;
  --blue-bright: #6BD8FF;
  --blue-soft: rgba(43, 159, 232, 0.1);
  --blue-glow: rgba(43, 159, 232, 0.3);

  /* Orange - accent color */
  --orange: #FF7A1A;
  --orange-bright: #FFB24A;
  --orange-soft: rgba(255, 122, 26, 0.08);
  --orange-glow: rgba(255, 122, 26, 0.2);

  /* Alias for compatibility */
  --gold: var(--blue);
  --gold-bright: var(--blue-bright);
  --gold-soft: var(--blue-soft);
  --gold-glow: var(--blue-glow);

  /* Text colors */
  --text-primary: #1A1816;
  --text-primary-rgb: 26, 24, 22;
  --text-muted: #5C5650;
  --text-muted-rgb: 92, 86, 80;

  /* Border colors */
  --border-gold: rgba(43, 159, 232, 0.25);
  --border-gold-strong: rgba(43, 159, 232, 0.5);
}

/* ============ DARK THEME (Orange Primary) ============ */
:root,
html[data-theme="dark"] {
  --bg-deep: #0A0F1C;
  --bg-deep-rgb: 10, 15, 28;
  --bg-card: #111827;
  --bg-card-rgb: 17, 24, 39;
  --bg-elevated: #1A2942;
  --bg-elevated-rgb: 26, 41, 66;

  /* Blue - accent for dark */
  --blue: #6BD8FF;
  --blue-bright: #9BE4FF;
  --blue-soft: rgba(107, 216, 255, 0.08);
  --blue-glow: rgba(107, 216, 255, 0.2);

  /* Orange - primary brand color */
  --orange: #FF7A1A;
  --orange-bright: #FFB24A;
  --orange-soft: rgba(255, 122, 26, 0.12);
  --orange-glow: rgba(255, 122, 26, 0.4);

  /* Alias for compatibility */
  --gold: var(--orange);
  --gold-bright: var(--orange-bright);
  --gold-soft: var(--orange-soft);
  --gold-glow: var(--orange-glow);

  /* Text colors - brighter for dark mode */
  --text-primary: #FFFFFF;
  --text-primary-rgb: 255, 255, 255;
  --text-muted: #B4BCC8;
  --text-muted-rgb: 180, 188, 200;

  /* Border colors */
  --border-gold: rgba(255, 122, 26, 0.3);
  --border-gold-strong: rgba(255, 122, 26, 0.6);
}

* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

html { scroll-behavior: smooth; }
body {
  background: var(--bg-deep);
  color: var(--text-primary);
  font-feature-settings: "ss01", "cv11";
}

/* ============ NAVBAR ============ */
#navbar {
  background: var(--bg-deep);
  border-bottom: 1px solid transparent;
}
#navbar.scrolled {
  background: var(--bg-deep);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-gold);
}

.nav-link {
  position: relative;
  padding: 0.5rem 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.3s;
}
.nav-link:hover { color: var(--text-primary); }
.nav-link::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-bright), var(--gold));
  transition: all 0.3s;
  transform: translateX(-50%);
}
.nav-link:hover::after { width: 60%; }

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  color: var(--text-muted);
  background: color-mix(in srgb, var(--text-primary) 5%, transparent);
  border: 1px solid var(--border-gold);
  transition: all 0.3s;
}
.social-icon:hover {
  color: var(--text-primary);
  border-color: var(--gold);
  background: var(--gold-soft);
  transform: translateY(-2px);
}

/* ============ HERO ============ */
.hero-grid {
  background-image:
    linear-gradient(rgba(43, 159, 232, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(43, 159, 232, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 80%);
}
html[data-theme="dark"] .hero-grid {
  background-image:
    linear-gradient(rgba(255, 122, 26, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 122, 26, 0.05) 1px, transparent 1px);
}

/* Hero blobs */
.hero-blob-gold {
  background: color-mix(in srgb, var(--blue) 12%, transparent);
}
.hero-blob-blue {
  background: color-mix(in srgb, var(--blue) 15%, transparent);
}
.hero-blob-amber {
  background: color-mix(in srgb, var(--blue-bright) 6%, transparent);
}
.hero-blob-glow {
  background: color-mix(in srgb, var(--blue-bright) 8%, transparent);
}

html[data-theme="dark"] .hero-blob-gold {
  background: color-mix(in srgb, var(--orange) 12%, transparent);
}
html[data-theme="dark"] .hero-blob-blue {
  background: color-mix(in srgb, var(--orange) 15%, transparent);
}
html[data-theme="dark"] .hero-blob-amber {
  background: color-mix(in srgb, var(--orange-bright) 6%, transparent);
}
html[data-theme="dark"] .hero-blob-glow {
  background: color-mix(in srgb, var(--orange-bright) 8%, transparent);
}

.map-blob {
  background: color-mix(in srgb, var(--bg-elevated) 25%, transparent);
}
html[data-theme="dark"] .map-blob {
  background: color-mix(in srgb, var(--orange) 10%, transparent);
}

.section-blob {
  background: color-mix(in srgb, var(--blue) 4%, transparent);
}
html[data-theme="dark"] .section-blob {
  background: color-mix(in srgb, var(--orange) 4%, transparent);
}

/* ============ FEATURE PILL & BULLET ============ */
.feature-pill {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  background: color-mix(in srgb, var(--text-primary) 4%, transparent);
  border: 1px solid var(--border-gold);
  border-radius: 999px;
  font-size: 0.95rem;
  color: var(--text-primary);
  transition: all 0.3s;
}
.feature-pill:hover {
  background: var(--gold-soft);
  border-color: var(--gold);
  transform: translateY(-2px);
}
.feature-bullet {
  width: 8px;
  height: 8px;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 10px var(--gold-glow);
}

/* ============ FEATURE ROWS ============ */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 8rem;
}
.feature-row.reverse .feature-text { order: 2; }
.feature-row.reverse .feature-visual { order: 1; }
.feature-row:last-child { margin-bottom: 0; }

@media (max-width: 1024px) {
  .feature-row { grid-template-columns: 1fr; gap: 2.5rem; margin-bottom: 5rem; }
  .feature-row.reverse .feature-text { order: 0; }
  .feature-row.reverse .feature-visual { order: 0; }
}

/* Section headings - no wrap on PC */
@media (min-width: 1024px) {
  h2.text-4xl,
  h2.text-5xl {
    font-size: 2.5rem !important;
    white-space: nowrap !important;
  }

  h2.text-4xl span,
  h2.text-5xl span {
    white-space: nowrap !important;
  }
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--gold);
  margin-bottom: 1rem;
  position: relative;
  padding-left: 2.5rem;
}
.eyebrow::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 2rem;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.feature-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
.feature-body {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.tech-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.875rem;
  background: var(--gold-soft);
  border: 1px solid var(--border-gold-strong);
  color: var(--gold-bright);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  font-family: 'JetBrains Mono', monospace;
}

.visual-frame {
  position: relative;
  border-radius: 16px;
  overflow: visible;
}
.visual-frame img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid var(--border-gold-strong);
  position: relative;
  z-index: 2;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.5);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
html[data-theme="dark"] .visual-frame img {
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.4);
}
.visual-frame:hover img {
  transform: translateY(-6px) scale(1.01);
}
.visual-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(ellipse at center, var(--gold-glow) 0%, transparent 70%);
  z-index: 1;
  opacity: 0.4;
  filter: blur(40px);
  transition: opacity 0.6s;
}
.visual-frame:hover .visual-glow { opacity: 0.65; }

/* ============ ADVANTAGES ============ */
.advantage-card {
  padding: 2rem 1.5rem;
  background: linear-gradient(180deg, var(--bg-card) 0%, color-mix(in srgb, var(--bg-card) 40%, transparent) 100%);
  border: 1px solid var(--border-gold);
  border-radius: 20px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}
.advantage-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top, var(--gold-soft) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
}
.advantage-card:hover {
  border-color: var(--gold);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -20px var(--gold-glow);
}
.advantage-card:hover::before { opacity: 1; }

.advantage-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: #FFFFFF;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px -10px var(--gold-glow);
  position: relative;
  z-index: 1;
}
html[data-theme="dark"] .advantage-icon {
  color: #0A0F1C;
}

.advantage-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}
.advantage-body {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

/* ============ MAP ============ */
.map-frame {
  position: relative;
  background: color-mix(in srgb, var(--bg-elevated) 40%, transparent);
  border-radius: 20px;
  padding: 2rem;
  max-width: 900px;
  margin: 0 auto;
}
html[data-theme="dark"] .map-frame {
  background: color-mix(in srgb, var(--bg-card) 60%, transparent);
}

.country-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.4rem 0.75rem;
  background: color-mix(in srgb, var(--text-primary) 5%, transparent);
  border: 1px solid var(--border-gold);
  border-radius: 999px;
  color: var(--text-primary);
  font-size: 0.8rem;
  white-space: nowrap;
  transition: all 0.3s;
}
.country-pill:hover {
  background: var(--gold-soft);
  border-color: var(--gold);
  color: var(--gold-bright);
}
.country-pill img {
  height: 16px;
  width: auto;
}

/* ============ COUNTRY PILLS RESPONSIVE ============ */
.country-pills-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 0.5rem;
}

@media (max-width: 640px) {
  .country-pills-container {
    gap: 0.5rem;
  }

  .country-pill {
    padding: 0.35rem 0.6rem;
    font-size: 0.7rem;
  }

  .country-pill img {
    height: 12px;
  }
}

/* ============ CONTACT ============ */
.contact-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  background: linear-gradient(180deg, var(--bg-card) 0%, color-mix(in srgb, var(--bg-card) 40%, transparent) 100%);
  border: 1px solid var(--border-gold);
  border-radius: 20px;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}
.contact-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top right, var(--gold-soft) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.35s;
}
.contact-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px var(--gold-glow);
}
.contact-card:hover::before { opacity: 1; }

.contact-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  box-shadow: 0 8px 20px -8px var(--gold-glow);
  position: relative;
  z-index: 1;
}
html[data-theme="dark"] .contact-icon {
  color: #0A0F1C;
}

.contact-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
  position: relative;
  z-index: 1;
}
a.contact-card .contact-value { transition: color 0.2s; }
a.contact-card:hover .contact-value { color: var(--gold-bright); }

.contact-arrow {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-gold-strong);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  z-index: 1;
}
a.contact-card:hover .contact-arrow {
  background: var(--gold);
  color: #FFFFFF;
  border-color: var(--gold);
  transform: translateX(4px);
}
html[data-theme="dark"] a.contact-card:hover .contact-arrow {
  color: #0A0F1C;
}

/* ============ COUNTER ============ */
.counter {
  font-variant-numeric: tabular-nums;
  font-family: 'Inter', sans-serif;
  letter-spacing: -0.02em;
}

/* ============ REVEAL ANIMATION ============ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children */
.feature-row.reveal:nth-of-type(1) { transition-delay: 0.05s; }
.feature-row.reveal:nth-of-type(2) { transition-delay: 0.1s; }
.feature-row.reveal:nth-of-type(3) { transition-delay: 0.15s; }
.feature-row.reveal:nth-of-type(4) { transition-delay: 0.2s; }
.feature-row.reveal:nth-of-type(5) { transition-delay: 0.25s; }
.feature-row.reveal:nth-of-type(6) { transition-delay: 0.3s; }
.feature-row.reveal:nth-of-type(7) { transition-delay: 0.35s; }

/* ============ RESPONSIVE ============ */
@media (max-width: 640px) {
  /* Feature pills */
  .feature-pill { font-size: 0.8rem; padding: 0.5rem 0.85rem; }

  /* Tech tags */
  .tech-tag { font-size: 0.65rem; padding: 0.25rem 0.6rem; }

  /* Map frame */
  .map-frame { padding: 0.75rem; }

  /* Advantage cards */
  .advantage-card { padding: 1.25rem 0.75rem; }

  /* Contact cards grid - responsive 1 column */
  section#contact .grid {
    grid-template-columns: 1fr !important;
    gap: 1rem;
  }

  /* Section headings */
  .text-4xl, h2.text-4xl {
    font-size: 1.75rem !important;
  }
  .text-5xl {
    font-size: 2rem !important;
  }

  /* Eyebrow text */
  .eyebrow {
    font-size: 0.7rem;
    padding-left: 2rem;
  }
  .eyebrow::before {
    width: 1.5rem;
  }

  /* Feature row text */
  .feature-title {
    font-size: 1.5rem;
  }

  /* Stats section */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.5rem;
  }

  /* Navbar mobile adjustments */
  #navbar {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* Footer */
  footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* Section padding */
  section {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* Hero headline - prevent wrapping on small screens */
  section#home h1 {
    font-size: clamp(1.75rem, 8vw, 3rem) !important;
    white-space: nowrap;
  }

  section#home h1 span {
    white-space: nowrap;
  }

  /* Subtitle text */
  section#home p {
    font-size: 0.95rem !important;
    max-width: 600px !important;
  }

  /* Feature row headings */
  .feature-row h3 {
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  /* Extra small screens - 360px support */
  .country-pills-container {
    justify-content: flex-start;
  }

  .country-pill {
    padding: 0.3rem 0.5rem;
    font-size: 0.65rem;
  }

  .country-pill img {
    height: 10px;
  }

  /* Hero headline for very small screens */
  section#home h1 {
    font-size: clamp(1.75rem, 8vw, 2.5rem) !important;
    white-space: nowrap !important;
    letter-spacing: -0.02em;
  }

  section#home h1 span {
    white-space: nowrap !important;
  }

  /* Section headings on very small screens */
  h2.text-4xl {
    font-size: 1.25rem !important;
    white-space: nowrap;
    letter-spacing: -0.01em;
  }

  h2.text-4xl span {
    white-space: nowrap;
  }

  .text-5xl {
    font-size: 1.5rem !important;
    white-space: nowrap;
  }

  /* Feature titles */
  .feature-title {
    font-size: 1.1rem;
    white-space: nowrap;
  }

  /* Stats text */
  .stats-grid span {
    font-size: 0.75rem;
  }

  .counter.text-2xl {
    font-size: 1.25rem !important;
  }

  /* Navbar logo text */
  .text-lg.font-extrabold {
    font-size: 0.95rem !important;
  }

  /* Eyebrow labels */
  .eyebrow {
    font-size: 0.55rem !important;
    letter-spacing: 0.08em;
    padding-left: 1.5rem;
  }

  .eyebrow::before {
    width: 1.2rem;
  }

  /* Eyebrow text spans (PRODUCT FEATURES, etc) */
  .eyebrow span {
    font-size: 0.6rem !important;
    letter-spacing: 0.1em;
    white-space: nowrap;
  }

  /* Contact card values */
  .contact-value {
    font-size: 0.85rem !important;
  }

  /* Advantage card text */
  .advantage-title {
    font-size: 0.9rem !important;
  }

  /* CTA buttons text */
  .cta-secondary {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
  }

  a[href="#contact"].bg-gradient-to-r {
    font-size: 0.85rem;
    padding: 0.5rem 1.25rem;
  }

  /* Prevent text overflow wrapping */
  h1, h2, h3, h4 {
    overflow-wrap: normal;
    word-break: normal;
  }

  /* Ensure hero section fits screen width */
  section#home {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
    overflow: hidden;
  }

  section#home .max-w-7xl {
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
  }
}

/* ============ ACCESSIBILITY: REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    transition-duration: 0.001s !important;
  }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ============ SELECTION ============ */
::selection {
  background: var(--gold);
  color: #FFFFFF;
}
html[data-theme="dark"] ::selection {
  background: var(--gold);
  color: #0A0F1C;
}

/* ============ SCROLLBAR (WEBKIT) ============ */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  border-radius: 5px;
  border: 2px solid var(--bg-deep);
}
html[data-theme="dark"] ::-webkit-scrollbar-track { background: var(--bg-card); }
html[data-theme="dark"] ::-webkit-scrollbar-thumb {
  border-color: var(--bg-card);
}
::-webkit-scrollbar-thumb:hover { background: var(--gold-bright); }

/* ============ THEME IMAGE SWITCHING ============ */
html[data-theme="light"] .theme-img-dark { display: none !important; }
html[data-theme="light"] .theme-img-light { display: block !important; }
html[data-theme="dark"] .theme-img-dark { display: block !important; }
html[data-theme="dark"] .theme-img-light { display: none !important; }

/* ============ TEXT COLORS ============ */
.text-gold { color: var(--gold) !important; }
.text-gold-bright { color: var(--gold-bright) !important; }
.text-text-primary { color: var(--text-primary) !important; }
.text-text-muted { color: var(--text-muted) !important; }

/* ============ CTA BUTTONS ============ */
.cta-secondary {
  background: color-mix(in srgb, var(--text-primary) 5%, transparent);
  backdrop-filter: blur(12px);
}
.cta-secondary:hover {
  background: color-mix(in srgb, var(--text-primary) 10%, transparent);
}
html[data-theme="dark"] .cta-secondary {
  background: color-mix(in srgb, var(--text-primary) 8%, transparent);
}
html[data-theme="dark"] .cta-secondary:hover {
  background: color-mix(in srgb, var(--text-primary) 15%, transparent);
}

/* Gradient buttons with white text */
.bg-gradient-to-r.from-gold-bright.to-gold {
  color: #FFFFFF;
}
html[data-theme="dark"] .bg-gradient-to-r.from-gold-bright.to-gold {
  color: #0A0F1C;
}

/* ============ MOBILE MENU ============ */
#mobileMenu {
  background: var(--bg-deep);
}

/* ============ NAVBAR SPECIFIC ============ */
html[data-theme="light"] .nav-link {
  color: #5C5650;
}
html[data-theme="light"] .nav-link:hover {
  color: #1A1816;
}

html[data-theme="dark"] .nav-link {
  color: #B4BCC8;
}
html[data-theme="dark"] .nav-link:hover {
  color: #FFFFFF;
}

/* Theme toggle button */
html[data-theme="light"] #themeToggle {
  color: #5C5650;
  border-color: rgba(43, 159, 232, 0.25);
}
html[data-theme="dark"] #themeToggle {
  color: #B4BCC8;
  border-color: rgba(255, 122, 26, 0.4);
}

/* ============ FOOTER ============ */
footer {
  background: var(--bg-deep);
  color: var(--text-muted);
}
footer a {
  color: var(--text-muted);
}
footer a:hover {
  color: var(--gold);
}

/* ============ LOGO ============ */
#navbar img {
  opacity: 0.9;
}
html[data-theme="dark"] #navbar img {
  opacity: 1;
}

/* ============ STATS SECTION ============ */
.stat-value {
  color: var(--gold);
}
html[data-theme="dark"] .stat-value {
  color: var(--gold-bright);
}

/* ============ SECTION HEADINGS ============ */
.section-heading {
  color: var(--text-primary);
}
.section-subheading {
  color: var(--text-muted);
}

/* ============ DIVIDERS ============ */
.border-border-gold {
  border-color: var(--border-gold);
}
.border-border-gold-strong {
  border-color: var(--border-gold-strong);
}