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

/* --- DESIGN TOKENS & VARIABLES --- */
:root {
  /* Font Family */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Global Core Colors */
  --color-bg-dark: #070a13;
  --color-bg-card: rgba(15, 23, 42, 0.45);
  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-glow: rgba(255, 255, 255, 0.15);
  
  --color-text-primary: #f8fafc;
  --color-text-secondary: #94a3b8;
  --color-text-muted: #64748b;
  
  /* Vinsen Holding Theme */
  --color-primary: #d4af37; /* Warm Gold */
  --color-primary-rgb: 212, 175, 55;
  --color-primary-hover: #f1c40f;
  
  /* Subsidiary Theme Variables (Dynamic based on selected active card) */
  --theme-primary: var(--color-primary);
  --theme-primary-rgb: var(--color-primary-rgb);
  --theme-bg-glow: rgba(var(--color-primary-rgb), 0.03);

  /* Spacing System */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-xxl: 6rem;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  /* Shadows */
  --shadow-sm: 0 2px 8px -2px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 8px 30px -10px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 40px -10px rgba(var(--color-primary-rgb), 0.25);
  
  /* Transition curve */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Subsidiary Dynamic Colors (Scoped Overrides) */
.sub-theme-pakan {
  --theme-primary: #10b981; /* Emerald */
  --theme-primary-rgb: 16, 185, 129;
  --theme-bg-glow: rgba(16, 185, 129, 0.05);
}

.sub-theme-vape {
  --theme-primary: #6366f1; /* Indigo */
  --theme-primary-rgb: 99, 102, 241;
  --theme-bg-glow: rgba(99, 102, 241, 0.05);
}

.sub-theme-barong {
  --theme-primary: #f97316; /* Flame Orange */
  --theme-primary-rgb: 249, 115, 22;
  --theme-bg-glow: rgba(249, 115, 22, 0.05);
}

/* --- RESET & GLOBAL STYLES --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--color-bg-dark);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  line-height: 1.6;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg-dark);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  border: 2px solid var(--color-bg-dark);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

p {
  color: var(--color-text-secondary);
  font-weight: 400;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

/* --- REUSABLE PATTERNS --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* Glassmorphism Card */
.glass-card {
  background: var(--color-bg-card);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
}

.glass-card:hover {
  border-color: var(--color-border-glow);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-bounce);
  border: none;
  gap: 0.5rem;
}

.btn-primary {
  background: var(--color-primary);
  color: #000;
}

.btn-primary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -5px rgba(var(--color-primary-rgb), 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--color-text-primary);
  border: 1px solid var(--color-border-glow);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--color-text-primary);
  transform: translateY(-2px);
}

/* Gradients & Text Glow */
.gradient-text {
  background: linear-gradient(135deg, #ffffff 40%, #e2e8f0 70%, var(--color-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glow-overlay {
  position: absolute;
  pointer-events: none;
  background: radial-gradient(circle, rgba(var(--color-primary-rgb), 0.12) 0%, transparent 70%);
  width: 600px;
  height: 600px;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  filter: blur(80px);
  z-index: 0;
}

/* --- HEADER / NAVIGATION --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  z-index: 100;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  background: rgba(7, 10, 19, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: var(--transition-smooth);
}

header.scrolled {
  height: 70px;
  background: rgba(7, 10, 19, 0.9);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--color-text-primary);
}

.logo span {
  color: var(--color-primary);
}

nav {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: var(--space-md);
}

.nav-links a {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  position: relative;
  padding: 0.5rem 0;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text-primary);
  margin: 5px 0;
  transition: var(--transition-smooth);
}

/* --- THEME TOGGLE PILL --- */
#theme-toggle {
  /* Reset button defaults */
  appearance: none;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

#theme-toggle:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: 999px;
}

.theme-toggle__track {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 52px;
  height: 26px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 0 6px;
  justify-content: space-between;
  transition: background 0.3s ease, border-color 0.3s ease;
  gap: 0;
}

#theme-toggle:hover .theme-toggle__track {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.12);
}

/* Sliding thumb */
.theme-toggle__thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.90);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
              background 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

/* SVG icons sit above the track background, below the thumb on z */
.theme-toggle__icon {
  flex-shrink: 0;
  z-index: 0;
  transition: color 0.3s ease, opacity 0.3s ease;
}

/* Dark mode (default): moon is active (right), sun is dim */
.theme-toggle__icon--sun  { color: rgba(255, 255, 255, 0.35); }
.theme-toggle__icon--moon { color: rgba(255, 255, 255, 0.90); }

/* Light mode: thumb slides right, sun becomes active */
body.light-mode .theme-toggle__thumb {
  transform: translateX(26px);
  background: #1a1814;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.20);
}

body.light-mode .theme-toggle__track {
  background: rgba(26, 24, 20, 0.08);
  border-color: rgba(120, 90, 30, 0.22);
}

body.light-mode #theme-toggle:hover .theme-toggle__track {
  border-color: rgba(120, 90, 30, 0.40);
  background: rgba(26, 24, 20, 0.12);
}

/* Light mode: sun is active, moon is dim */
body.light-mode .theme-toggle__icon--sun  { color: #8a6a10; opacity: 1; }
body.light-mode .theme-toggle__icon--moon { color: rgba(26, 24, 20, 0.30); }


#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  overflow: hidden;
  background: radial-gradient(circle at 10% 20%, rgba(15, 23, 42, 0.4) 0%, var(--color-bg-dark) 90%);
}

#hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('../assets/hero-bg.png');
  background-size: cover;
  background-position: center;
  opacity: 0.25;
  mix-blend-mode: overlay;
  z-index: -1;
  transform: scale(1.02);
  transition: transform 10s ease;
}

#hero:hover::before {
  transform: scale(1.05);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: var(--space-xl);
  z-index: 1;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  line-height: 1.1;
  margin-bottom: var(--space-sm);
  font-weight: 800;
}

.hero-content p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: var(--space-lg);
  max-width: 580px;
}

.hero-cta {
  display: flex;
  gap: var(--space-sm);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-brand-image {
  width: 100%;
  max-width: 420px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-glow);
  box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.7);
  transition: var(--transition-smooth);
}

body.light-mode .hero-brand-image {
  box-shadow: 0 20px 50px -15px rgba(100, 75, 20, 0.18);
  border-color: rgba(120, 90, 30, 0.12);
}

.visual-globe {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.3);
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: float 6s ease-in-out infinite;
  box-shadow: 0 0 60px -20px rgba(212, 175, 55, 0.3);
}

.visual-globe::after {
  content: '';
  position: absolute;
  width: 80%;
  height: 80%;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  animation: spin 30s linear infinite;
}

.visual-globe-core {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--color-primary) 0%, rgba(0,0,0,0.8) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2.2rem;
  color: #000;
  box-shadow: 0 0 30px rgba(var(--color-primary-rgb), 0.5);
}

/* --- ABOUT SECTION --- */
#about {
  padding: var(--space-xxl) 0;
  position: relative;
}

.section-tag {
  display: inline-block;
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: var(--space-sm);
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: var(--space-md);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.about-text p {
  margin-bottom: var(--space-md);
  font-size: 1.05rem;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.stat-card {
  padding: var(--space-md);
  text-align: center;
}

.stat-num {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 3rem);
  color: var(--color-primary);
  font-weight: 800;
  margin-bottom: var(--space-xs);
  display: block;
}

.stat-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-secondary);
}

/* --- SUBSIDIARIES SECTION --- */
#subsidiaries {
  padding: var(--space-xxl) 0;
  background: radial-gradient(100% 50% at 50% 50%, var(--theme-bg-glow) 0%, transparent 100%);
  transition: var(--transition-smooth);
  position: relative;
}

.subsidiaries-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.tab-btn {
  padding: var(--space-md);
  text-align: left;
  cursor: pointer;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: rgba(15, 23, 42, 0.3);
  transition: var(--transition-smooth);
}

.tab-btn:hover {
  background: rgba(15, 23, 42, 0.6);
  border-color: var(--color-border-glow);
}

.tab-btn.active {
  background: rgba(var(--theme-primary-rgb), 0.08);
  border-color: var(--theme-primary);
  box-shadow: 0 8px 30px -10px rgba(var(--theme-primary-rgb), 0.25);
}

.tab-btn-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-sm);
  font-size: 1.3rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-text-secondary);
  transition: var(--transition-bounce);
}

.tab-btn.active .tab-btn-icon {
  background: var(--theme-primary);
  color: #000;
}

.tab-btn h3 {
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}

.tab-btn p {
  font-size: 0.85rem;
}

/* Showcase Container */
.showcase-display {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-xl);
  align-items: center;
}

.showcase-content {
  opacity: 0;
  transform: translateY(20px);
  animation: tabFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.showcase-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.8rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(var(--theme-primary-rgb), 0.15);
  color: var(--theme-primary);
  border: 1px solid rgba(var(--theme-primary-rgb), 0.25);
  margin-bottom: var(--space-md);
}

.showcase-title {
  font-size: clamp(2rem, 3.5vw, 2.5rem);
  margin-bottom: var(--space-sm);
}

.showcase-desc {
  font-size: 1.1rem;
  margin-bottom: var(--space-lg);
  line-height: 1.7;
}

.showcase-features {
  list-style: none;
  margin-bottom: var(--space-lg);
}

.showcase-features li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.showcase-features li svg {
  color: var(--theme-primary);
  flex-shrink: 0;
}

.showcase-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1;
  box-shadow: 0 10px 40px -15px rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.showcase-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.5s ease;
  filter: brightness(0.85) contrast(1.05);
}

.showcase-image-wrapper:hover .showcase-image {
  transform: scale(1.04);
}

.showcase-glow-indicator {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--theme-primary);
  box-shadow: 0 0 20px rgba(var(--theme-primary-rgb), 0.8);
}

/* --- GOVERNANCE SECTION --- */
#governance {
  padding: var(--space-xxl) 0;
  position: relative;
}

.gov-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.gov-card {
  padding: var(--space-lg);
  position: relative;
  overflow: hidden;
}

.gov-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transform: scaleX(0);
  transition: transform 0.5s ease;
}

.gov-card:hover::before {
  transform: scaleX(1);
}

.gov-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--color-primary);
  margin-bottom: var(--space-md);
  border-radius: var(--radius-sm);
  background: rgba(var(--color-primary-rgb), 0.1);
}

.gov-card h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
}

/* --- CONTACT SECTION --- */
#contact {
  padding: var(--space-xxl) 0;
  background: radial-gradient(circle at 90% 80%, rgba(var(--color-primary-rgb), 0.04) 0%, transparent 60%);
  position: relative;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--space-xl);
  align-items: start;
  margin-top: var(--space-xl);
}

.contact-info h3 {
  font-size: 1.6rem;
  margin-bottom: var(--space-md);
}

.contact-info p {
  font-size: 1.05rem;
  margin-bottom: var(--space-lg);
}

.info-list {
  list-style: none;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.info-icon {
  color: var(--color-primary);
  font-size: 1.2rem;
  margin-top: 0.15rem;
}

.info-label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  display: block;
}

.info-val {
  font-weight: 500;
  color: var(--color-text-primary);
}

/* Contact Form */
.contact-form {
  padding: var(--space-lg);
}

.form-group {
  margin-bottom: var(--space-md);
  position: relative;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(7, 10, 19, 0.6);
  border: 1px solid var(--color-border);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 15px rgba(var(--color-primary-rgb), 0.15);
  background: rgba(7, 10, 19, 0.8);
}

/* Validation styles utilizing :user-valid and :invalid (once interacted) */
.form-control:user-invalid {
  border-color: #ef4444;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.15);
}

.form-error {
  font-size: 0.8rem;
  color: #ef4444;
  margin-top: 0.35rem;
  display: none;
}

.form-control:user-invalid + .form-error {
  display: block;
}

/* --- CUSTOM SELECT DROPDOWN --- */
.custom-select {
  position: relative;
  width: 100%;
  user-select: none;
  z-index: 10;
}

/* Trigger button */
.custom-select__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(7, 10, 19, 0.6);
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  gap: 0.5rem;
}

.custom-select:hover .custom-select__trigger {
  border-color: var(--color-border-glow);
}

.custom-select:focus .custom-select__trigger,
.custom-select[aria-expanded="true"] .custom-select__trigger {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), 0.12);
  background: rgba(7, 10, 19, 0.8);
  outline: none;
}

.custom-select__value {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* When an option is selected, text turns primary color */
.custom-select--selected .custom-select__value {
  color: var(--color-text-primary);
}

/* Chevron arrow animation */
.custom-select__arrow {
  color: var(--color-text-muted);
  flex-shrink: 0;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.custom-select[aria-expanded="true"] .custom-select__arrow {
  transform: rotate(180deg);
  color: var(--color-primary);
}

/* Dropdown panel */
.custom-select__panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  list-style: none;
  background: rgba(10, 14, 25, 0.95);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid var(--color-border-glow);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 20px 60px -10px rgba(0, 0, 0, 0.7),
              0 0 0 1px rgba(255,255,255,0.04) inset;

  /* Animated open/close */
  opacity: 0;
  transform: translateY(-8px) scaleY(0.97);
  transform-origin: top center;
  pointer-events: none;
  transition: opacity 0.25s ease,
              transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.custom-select[aria-expanded="true"] .custom-select__panel {
  opacity: 1;
  transform: translateY(0) scaleY(1);
  pointer-events: all;
}

/* Each option row */
.custom-select__option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.custom-select__option:last-child {
  border-bottom: none;
}

.custom-select__option:hover {
  background: rgba(var(--color-primary-rgb), 0.08);
  color: var(--color-text-primary);
}

.custom-select__option:focus-visible {
  outline: none;
  background: rgba(var(--color-primary-rgb), 0.12);
  color: var(--color-text-primary);
}

/* Selected state */
.custom-select__option[aria-selected="true"] {
  background: rgba(var(--color-primary-rgb), 0.12);
  color: var(--color-primary);
  font-weight: 600;
}

.custom-select__option[aria-selected="true"]::after {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
  margin-left: auto;
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(var(--color-primary-rgb), 0.6);
}

.custom-select__icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  width: 24px;
  text-align: center;
}

/* Validation error display for custom select */
.custom-select--invalid ~ .form-error,
.custom-select--invalid + .form-error {
  display: block;
}

/* --- CUSTOM SELECT: LIGHT MODE --- */
body.light-mode .custom-select__trigger {
  background: rgba(255, 252, 245, 0.9);
  border-color: rgba(120, 90, 30, 0.14);
  color: #7a6f5e;
}

body.light-mode .custom-select:hover .custom-select__trigger {
  border-color: rgba(212, 175, 55, 0.35);
}

body.light-mode .custom-select:focus .custom-select__trigger,
body.light-mode .custom-select[aria-expanded="true"] .custom-select__trigger {
  background: #fffdf8;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.12);
}

body.light-mode .custom-select--selected .custom-select__value {
  color: #1a1814;
}

body.light-mode .custom-select__panel {
  background: rgba(255, 251, 242, 0.98);
  border-color: rgba(120, 90, 30, 0.18);
  box-shadow: 0 16px 48px -8px rgba(100, 75, 20, 0.20),
              0 0 0 1px rgba(212, 175, 55, 0.06) inset;
}

body.light-mode .custom-select__option {
  color: #4a4538;
  border-bottom-color: rgba(120, 90, 30, 0.06);
}

body.light-mode .custom-select__option:hover {
  background: rgba(212, 175, 55, 0.07);
  color: #1a1814;
}

body.light-mode .custom-select__option[aria-selected="true"] {
  background: rgba(212, 175, 55, 0.10);
  color: #8a6a10;
}

body.light-mode .custom-select__arrow {
  color: #7a6f5e;
}


/* --- FOOTER --- */
footer {
  background: #04060b;
  border-top: 1px solid var(--color-border);
  padding: var(--space-xl) 0 var(--space-md) 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer-brand .logo {
  margin-bottom: var(--space-sm);
}

.footer-brand p {
  font-size: 0.9rem;
  margin-bottom: var(--space-md);
}

.footer-links h4 {
  font-size: 1.05rem;
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-primary);
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--color-primary);
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* --- ANIMATIONS --- */
@keyframes float {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(2deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes tabFadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Custom CSS-based scroll reveal animation (supported browsers) */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes fadeInUp {
      from {
        opacity: 0;
        transform: translateY(40px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .reveal-scroll {
      animation: fadeInUp auto linear forwards;
      animation-timeline: view();
      animation-range: entry 10% cover 30%;
    }
  }
}

/* Standard JS-triggered reveal state fallback */
.reveal-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-hidden {
  opacity: 0;
  transform: translateY(30px);
}

/* --- RESPONSIVENESS --- */
@media (max-width: 1024px) {
  :root {
    --space-xl: 3rem;
    --space-xxl: 4.5rem;
  }
  
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-lg);
  }
  
  .hero-content p {
    margin: 0 auto var(--space-lg) auto;
  }
  
  .hero-cta {
    justify-content: center;
  }
  
  .about-grid, .showcase-display, .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  
  .about-stats {
    order: 2;
  }
  
  .showcase-image-wrapper {
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
  }
}

@media (max-width: 768px) {
  header {
    height: 70px;
  }
  
  .nav-links {
    display: none; /* Controlled by JS mobile menu toggle */
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--color-bg-dark);
    flex-direction: column;
    padding: var(--space-md);
    border-bottom: 1px solid var(--color-border);
    gap: var(--space-sm);
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
  }
  
  .subsidiaries-tabs {
    grid-template-columns: 1fr;
  }
  
  .gov-grid {
    grid-template-columns: 1fr;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
}

/* ==============================================
   LIGHT MODE — Warm Cream Palette
   Brand anchor: #d4af37 (Warm Gold)
   Surface: warm cream #faf7f0 → #f5f0e8
   Cards: rgba(255,252,245, 0.85)
   Text: deep indigo #1a1a2e / slate #3d3d5c
   ============================================== */

/* --- LIGHT MODE DESIGN TOKENS --- */
body.light-mode {
  /* Surface & Background */
  --color-bg-dark:    hsl(38, 40%, 96%);    /* warm cream */
  --color-bg-card:    rgba(255, 252, 245, 0.85);
  --color-border:     rgba(120, 90, 30, 0.10);
  --color-border-glow: rgba(120, 90, 30, 0.22);

  /* Typography */
  --color-text-primary:   #1a1814;    /* near-black warm */
  --color-text-secondary: #4a4538;    /* warm dark taupe */
  --color-text-muted:     #7a6f5e;    /* warm mid taupe */

  /* Shadow (warm tinted) */
  --shadow-sm: 0 2px 8px -2px rgba(100, 75, 20, 0.12);
  --shadow-md: 0 8px 30px -10px rgba(100, 75, 20, 0.16);

  /* Subsidiary section glow stays visible but warmer */
  --theme-bg-glow: rgba(var(--theme-primary-rgb), 0.06);
}

/* html background must also switch */
body.light-mode,
body.light-mode html {
  background-color: hsl(38, 40%, 96%);
}

/* html element itself */
html:has(body.light-mode) {
  background-color: hsl(38, 40%, 96%);
}

/* --- SCROLLBAR --- */
body.light-mode ::-webkit-scrollbar-track {
  background: hsl(38, 40%, 94%);
}
body.light-mode ::-webkit-scrollbar-thumb {
  background: rgba(120, 90, 30, 0.18);
  border: 2px solid hsl(38, 40%, 94%);
}
body.light-mode ::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

/* --- NAVIGATION HEADER --- */
body.light-mode header {
  background: rgba(250, 247, 240, 0.75);
  border-bottom: 1px solid rgba(120, 90, 30, 0.08);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
}
body.light-mode header.scrolled {
  background: rgba(250, 247, 240, 0.95);
  box-shadow: 0 4px 24px rgba(100, 75, 20, 0.10);
  border-bottom: 1px solid rgba(120, 90, 30, 0.12);
}
body.light-mode .logo {
  color: #1a1814;
}
body.light-mode .nav-links a {
  color: #4a4538;
}
body.light-mode .nav-links a:hover,
body.light-mode .nav-links a.active {
  color: #1a1814;
}
body.light-mode .btn-outline {
  color: #1a1814;
  border-color: rgba(120, 90, 30, 0.22);
}
body.light-mode .btn-outline:hover {
  background: rgba(212, 175, 55, 0.08);
  border-color: var(--color-primary);
}
body.light-mode .mobile-menu-toggle span {
  background: #1a1814;
}
@media (max-width: 768px) {
  body.light-mode .nav-links {
    background: hsl(38, 40%, 95%);
    border-bottom: 1px solid rgba(120, 90, 30, 0.10);
  }
}

/* --- GLASS CARD (light variant) --- */
body.light-mode .glass-card {
  background: rgba(255, 252, 245, 0.85);
  border: 1px solid rgba(120, 90, 30, 0.10);
  box-shadow: 0 4px 20px -8px rgba(100, 75, 20, 0.14),
              0 1px 3px rgba(100, 75, 20, 0.06);
}
body.light-mode .glass-card:hover {
  border-color: rgba(212, 175, 55, 0.35);
  box-shadow: 0 8px 32px -10px rgba(100, 75, 20, 0.18),
              0 0 0 1px rgba(212, 175, 55, 0.08);
}

/* --- HERO SECTION --- */
body.light-mode #hero {
  background: linear-gradient(
    135deg,
    hsl(38, 45%, 93%) 0%,
    hsl(38, 35%, 97%) 60%,
    hsl(38, 40%, 96%) 100%
  );
}
body.light-mode #hero::before {
  opacity: 0.08;
  mix-blend-mode: multiply;
}
body.light-mode .gradient-text {
  background: linear-gradient(135deg, #1a1814 30%, #5a4a20 65%, var(--color-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
body.light-mode .hero-content p {
  color: #4a4538;
}
body.light-mode .glow-overlay {
  background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
}
body.light-mode .visual-globe {
  border: 1px solid rgba(212, 175, 55, 0.5);
  box-shadow: 0 0 60px -15px rgba(212, 175, 55, 0.30),
              inset 0 0 40px rgba(212, 175, 55, 0.05);
}
body.light-mode .visual-globe::after {
  border-color: rgba(120, 90, 30, 0.15);
}
body.light-mode .visual-globe-core {
  background: radial-gradient(circle, #d4af37 0%, #a07e1e 100%);
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.40);
  color: #fff;
}

/* --- SECTION TAGS & TITLES --- */
body.light-mode .section-tag {
  color: #8a6a10;   /* deeper gold on light bg */
}
body.light-mode h1,
body.light-mode h2,
body.light-mode h3,
body.light-mode h4,
body.light-mode h5,
body.light-mode h6 {
  color: #1a1814;
}
body.light-mode p {
  color: #4a4538;
}

/* --- ABOUT SECTION --- */
body.light-mode #about {
  background: linear-gradient(
    180deg,
    hsl(38, 40%, 96%) 0%,
    hsl(38, 38%, 94%) 100%
  );
}
body.light-mode .stat-num {
  color: #8a6a10;
}
body.light-mode .stat-label {
  color: #6a5a3a;
}

/* --- SUBSIDIARIES SECTION --- */
body.light-mode #subsidiaries {
  background: hsl(38, 38%, 95%);
}
body.light-mode .tab-btn {
  background: rgba(255, 252, 245, 0.7);
  border: 1px solid rgba(120, 90, 30, 0.10);
}
body.light-mode .tab-btn:hover {
  background: rgba(255, 252, 245, 0.95);
  border-color: rgba(212, 175, 55, 0.30);
  box-shadow: 0 4px 16px rgba(100, 75, 20, 0.10);
}
body.light-mode .tab-btn.active {
  background: rgba(var(--theme-primary-rgb), 0.07);
  border-color: var(--theme-primary);
  box-shadow: 0 6px 24px -8px rgba(var(--theme-primary-rgb), 0.20);
}
body.light-mode .tab-btn-icon {
  background: rgba(120, 90, 30, 0.07);
}
body.light-mode .tab-btn h3 {
  color: #1a1814;
}
body.light-mode .tab-btn p {
  color: #6a5a3a;
}
body.light-mode .showcase-desc {
  color: #4a4538;
}
body.light-mode .showcase-features li {
  color: #3a3228;
}
body.light-mode .showcase-title {
  color: #1a1814;
}
body.light-mode .showcase-image {
  filter: brightness(0.96) contrast(1.04) saturate(1.05);
}
body.light-mode .showcase-image-wrapper {
  border-color: rgba(120, 90, 30, 0.12);
  box-shadow: 0 10px 40px -15px rgba(100, 75, 20, 0.22);
}

/* --- GOVERNANCE SECTION --- */
body.light-mode #governance {
  background: linear-gradient(
    180deg,
    hsl(38, 38%, 94%) 0%,
    hsl(38, 40%, 96%) 100%
  );
}
body.light-mode .gov-card {
  background: rgba(255, 252, 245, 0.85);
}
body.light-mode .gov-card::before {
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.25), transparent);
}
body.light-mode .gov-icon {
  background: rgba(212, 175, 55, 0.12);
  color: #8a6a10;
}
body.light-mode .gov-card h3 {
  color: #1a1814;
}
body.light-mode .gov-card p {
  color: #4a4538;
}

/* --- CONTACT SECTION --- */
body.light-mode #contact {
  background: hsl(38, 38%, 94%);
}
body.light-mode .contact-info h3 {
  color: #1a1814;
}
body.light-mode .contact-info p {
  color: #4a4538;
}
body.light-mode .info-label {
  color: #7a6f5e;
}
body.light-mode .info-val {
  color: #1a1814;
}
body.light-mode .info-icon {
  color: #8a6a10;
}
body.light-mode .form-label {
  color: #4a4538;
}
body.light-mode .form-control {
  background: rgba(255, 252, 245, 0.9);
  border: 1px solid rgba(120, 90, 30, 0.14);
  color: #1a1814;
}
body.light-mode .form-control::placeholder {
  color: #9a8f7a;
}
body.light-mode .form-control:focus {
  background: #fffdf8;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.12),
              0 2px 8px rgba(100, 75, 20, 0.08);
}
body.light-mode .form-control option {
  background: #faf7f0;
  color: #1a1814;
}

/* --- FOOTER --- */
body.light-mode footer {
  background: hsl(38, 35%, 90%);
  border-top: 1px solid rgba(120, 90, 30, 0.12);
}
body.light-mode footer .logo {
  color: #1a1814;
}
body.light-mode .footer-links h4 {
  color: #1a1814;
}
body.light-mode .footer-links a {
  color: #5a4a30;
}
body.light-mode .footer-links a:hover {
  color: #8a6a10;
}
body.light-mode .footer-brand p {
  color: #5a4a30;
}
body.light-mode .copyright {
  border-top: 1px solid rgba(120, 90, 30, 0.08);
  color: #7a6f5e;
}

/* --- CUSTOM TOAST (light mode) --- */
body.light-mode #custom-toast {
  background: rgba(255, 252, 245, 0.97);
  border-color: var(--color-primary);
  color: #1a1814;
  box-shadow: 0 10px 40px rgba(100, 75, 20, 0.18);
}

/* --- BUTTONS: LIGHT MODE --- */
/* Primary button: default starts bright so it pops on cream background */
body.light-mode .btn-primary {
  background: #f1c40f;                          /* was the hover color — now the default */
  color: #1a1814;
  box-shadow: 0 4px 14px -4px rgba(180, 140, 10, 0.35);
}
body.light-mode .btn-primary:hover {
  background: #e6b800;                          /* slightly deeper amber on hover */
  box-shadow: 0 10px 24px -6px rgba(180, 140, 10, 0.50);
  transform: translateY(-2px);
}
body.light-mode .btn-primary:active {
  background: #d4a800;
  transform: translateY(0);
  box-shadow: 0 4px 10px -4px rgba(180, 140, 10, 0.40);
}

/* Outline button: warm taupe border → gold on hover */
body.light-mode .btn-outline {
  color: #1a1814;
  border-color: rgba(120, 90, 30, 0.30);
  background: transparent;
}
body.light-mode .btn-outline:hover {
  background: rgba(241, 196, 15, 0.08);
  border-color: #f1c40f;
  color: #1a1814;
}



