/* ========================================
   Link Holdings Group — Black & Gold Glassmorphism Theme
   ======================================== */

/* --- CSS Variables --- */
:root {
    --gold: #c9a84c;
    --gold-light: #e2c97e;
    --gold-dark: #a68a3e;
    --gold-glow: rgba(201, 168, 76, 0.4);
    --gold-subtle: rgba(201, 168, 76, 0.1);
    --black: #000000;
    --black-light: #0a0a0a;
    --black-card: #111111;
    --black-soft: #1a1a1a;
    --black-muted: #222222;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-bg-hover: rgba(255, 255, 255, 0.06);
    --glass-hover:  rgba(255,255,255,0.06);
    --gold-glow:    rgba(201,168,76,0.15);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-gold: rgba(201, 168, 76, 0.2);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    --font-display: 'Cormorant Garamond', 'Georgia', serif;
    --font-body:    'Inter', system-ui, sans-serif;
}

/* --- Base --- */
*, *::before, *::after { box-sizing: border-box; }
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
body {
    font-family: var(--font-body);
    background: #080807;
    color: rgba(255,255,255,0.75);
    overflow-x: hidden;
    cursor: none; 
}
a, button, input, select, textarea, label, [role="button"] {
  cursor: none;
}
::selection {
    background: var(--gold);
    color: var(--black);
}

.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 6px;
  height: 6px;
  background: #c9a84c;
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease, background 0.2s ease;
  will-change: transform;
}
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(201, 168, 76, 0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              height 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease,
              background 0.3s ease;
  will-change: transform;
}
 
.cursor-ring.hover {
  width: 50px;
  height: 50px;
  border-color: rgba(201, 168, 76, 0.8);
  background: rgba(201, 168, 76, 0.07);
}
 
.cursor-ring.clicking {
  width: 22px;
  height: 22px;
  background: rgba(201, 168, 76, 0.2);
  border-color: #c9a84c;
}
.cursor-dot.hover {
  transform: translate(-50%, -50%) scale(1.8);
  background: #e9c371;
}
@media (hover: none) {
  .cursor-dot, .cursor-ring { display: none !important; }
  body, a, button, input, select, textarea, label, [role="button"] {
    cursor: auto !important;
  }
}
/* --- Glassmorphism Utility --- */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
  transition:
    border-color var(--duration-base) var(--ease-out-quart),
    transform var(--duration-base) var(--ease-out-expo),
    box-shadow var(--duration-base) ease;
}
.glass-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--gold-500) 30%,
    var(--gold-300) 50%,
    var(--gold-500) 70%,
    transparent 100%
  );
  opacity: 0;
  transform: scaleX(0.4);
  transition:
    opacity var(--duration-base) ease,
    transform var(--duration-slow) var(--ease-out-expo);
}
 
.glass-card:hover::before {
  opacity: 1;
  transform: scaleX(1);
}
.glass-card:hover {
  border-color: rgba(201,168,76,0.3);
  transform: translateY(-4px);
  box-shadow:
    0 24px 60px rgba(0,0,0,0.4),
    0 0 0 1px rgba(201,168,76,0.08),
    inset 0 1px 0 rgba(255,255,255,0.05);
}
.glass-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, var(--gold-glow) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--duration-base) ease;
  pointer-events: none;
}
 
.glass-card:hover::after { opacity: 1; }
.glass-gold {
    background: rgba(201, 168, 76, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border-gold);
    box-shadow: 0 8px 32px rgba(201, 168, 76, 0.08);
}

.glass-strong {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

/* --- Gold Gradient Text --- */
.gold-text {
    background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gold-gradient-bg {
    background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark));
}

/* --- Header --- */
.site-header {
    background: rgba(8,8,7,0);
    border-bottom: 1px solid transparent;
    transition:
       background var(--duration-slow) ease,
       border-color var(--duration-slow) ease,
       backdrop-filter var(--duration-slow) ease;
}

.site-header.scrolled {
    background: rgba(0, 0, 0, 0.85);
    border-bottom-color: rgba(255,255,255,0.06);
    backdrop-filter: blur(20px);  
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(201, 168, 76, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.site-header.header-hidden {
    transform: translateY(-100%);
}
nav a {
  position: relative;
  transition: color var(--duration-fast) ease;
}
nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  right: 50%;
  height: 1px;
  background: var(--gold-500);
  transition: left var(--duration-base) var(--ease-out-expo),
              right var(--duration-base) var(--ease-out-expo);
}
 
nav a:hover::after,
nav a.text-gold-500::after {
  left: 0;
  right: 0;
}
.nav-dropdown {
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition:
    opacity var(--duration-base) ease,
    transform var(--duration-base) var(--ease-out-expo),
    visibility 0s var(--duration-base);
}
 
.nav-item-dropdown:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition:
    opacity var(--duration-base) ease,
    transform var(--duration-base) var(--ease-out-expo),
    visibility 0s 0s;
}
/* --- Hero Slider --- */
.hero-section {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  background: radial-gradient(ellipse, rgba(201,168,76,0.07) 0%, transparent 65%);
  pointer-events: none;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 100%);
  animation: grid-drift 20s linear infinite;
}
 
@keyframes grid-drift {
  0%   { transform: translate(0, 0); }
  100% { transform: translate(80px, 80px); }
}
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
 
.scroll-indicator__line {
  width: 1px;
  height: 60px;
  background: linear-gradient(180deg, var(--gold-500) 0%, transparent 100%);
  animation: scroll-line 2s ease-in-out infinite;
}
 
@keyframes scroll-line {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 1; }
  50%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  51%  { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}
.scroll-indicator__text {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  writing-mode: vertical-rl;
  animation: fade-pulse 2s ease-in-out infinite;
}
 
@keyframes fade-pulse {
  0%, 100% { opacity: 0.3; }
  50%       { opacity: 0.7; }
}
.hero-slider {
    position: relative;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide .slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1);
    transition: transform 10s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.hero-slide.active .slide-bg {
    transform: scale(1.08);
}

.hero-content {
    position: relative;
    z-index: 10;
}

/* Hero text animations */
.hero-slide .hero-heading {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease 0.3s, transform 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
}

.hero-slide .hero-desc {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease 0.5s, transform 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.5s;
}

.hero-slide .hero-cta {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease 0.7s, transform 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.7s;
}

.hero-slide.active .hero-heading,
.hero-slide.active .hero-desc,
.hero-slide.active .hero-cta {
    opacity: 1;
    transform: translateY(0);
}

.hero-pagination-dot {
    width: 40px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
}

.hero-pagination-dot::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--gold-light), var(--gold));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.hero-pagination-dot.active {
    width: 60px;
}

.hero-pagination-dot.active::after {
    transform: scaleX(1);
}
.form-input {
  width: 100%;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.85);
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 14px 18px;
  outline: none;
  transition:
    border-color var(--duration-base) ease,
    background var(--duration-base) ease,
    box-shadow var(--duration-base) ease;
}
 
.form-input::placeholder { color: rgba(255,255,255,0.2); }
 
.form-input:focus {
  border-color: rgba(201,168,76,0.5);
  background: rgba(201,168,76,0.03);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.07), inset 0 1px 0 rgba(255,255,255,0.04);
}
 
.form-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 8px;
}
/* --- Buttons --- */
.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
  background: var(--gold-500);
  color: #000;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 16px 32px;
  border: none;
  outline: none;
  transition:
    color var(--duration-fast) ease,
    transform var(--duration-base) var(--ease-out-expo);
}
.btn-gold::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold-300);
  transform: translateX(-101%);
  transition: transform var(--duration-base) var(--ease-out-expo);
}
 
.btn-gold:hover::before { transform: translateX(0); }
.btn-gold:hover { transform: translateY(-2px); }
.btn-gold > * { position: relative; z-index: 1; }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
  background: transparent;
  color: rgba(255,255,255,0.6);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 15px 32px;
  border: 1px solid rgba(255,255,255,0.15);
  outline: none;
  transition:
    color var(--duration-base) ease,
    border-color var(--duration-base) ease,
    transform var(--duration-base) var(--ease-out-expo);
}
.btn-ghost::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.04);
  transform: translateX(-101%);
  transition: transform var(--duration-base) var(--ease-out-expo);
}
 
.btn-ghost:hover {
  color: var(--gold-400);
  border-color: rgba(201,168,76,0.4);
  transform: translateY(-2px);
}
 
.btn-ghost:hover::before { transform: translateX(0); }
.btn-ghost > * { position: relative; z-index: 1; }
.btn-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-500);
  transition: gap var(--duration-base) var(--ease-out-expo), color var(--duration-fast) ease;
}
 
.btn-arrow svg {
  width: 16px;
  height: 16px;
  transition: transform var(--duration-base) var(--ease-out-expo);
}
 
.btn-arrow:hover { gap: 14px; color: var(--gold-300); }
.btn-arrow:hover svg { transform: translateX(4px); }
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.25rem;
    background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark));
    color: var(--black);
    font-weight: 600;
    font-size: 0.8125rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--gold), #fff5d4, var(--gold));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(201, 168, 76, 0.4);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary span, .btn-primary svg {
    position: relative;
    z-index: 1;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.25rem;
    border: 1px solid var(--gold);
    color: var(--gold);
    font-weight: 600;
    font-size: 0.8125rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-outline::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-outline:hover {
    color: var(--black);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(201, 168, 76, 0.3);
}

.btn-outline:hover::before {
    transform: translateY(0);
}

.btn-outline span, .btn-outline svg {
    position: relative;
    z-index: 1;
}

.btn-outline-dark {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.25rem;
    border: 1px solid var(--gold);
    color: var(--gold);
    font-weight: 600;
    font-size: 0.8125rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-outline-dark::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-outline-dark:hover {
    color: var(--black);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(201, 168, 76, 0.3);
}

.btn-outline-dark:hover::before {
    transform: translateY(0);
}

.btn-outline-dark span, .btn-outline-dark svg {
    position: relative;
    z-index: 1;
}

/* --- Section Eyebrow --- */
.eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.75rem;
}

/* --- Glassmorphism Cards --- */
.company-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.company-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(201, 168, 76, 0.05), transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
}

.company-card:hover {
    transform: translateY(-8px);
    border-color: var(--glass-border-gold);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(201, 168, 76, 0.08);
}

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

.company-card .card-image {
    overflow: hidden;
    position: relative;
}

.company-card .card-image img,
.company-card .card-image > div:first-child {
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.company-card:hover .card-image img,
.company-card:hover .card-image > div:first-child {
    transform: scale(1.08);
}

.sector-card {
    padding: 2.5rem 2rem;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.sector-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-light), var(--gold), var(--gold-dark));
    transform: scaleX(0);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.sector-card:hover {
    transform: translateY(-6px);
    border-color: var(--glass-border-gold);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4), 0 0 30px rgba(201, 168, 76, 0.06);
}

.sector-card:hover::after {
    transform: scaleX(1);
}

.sector-card .sector-icon {
    color: var(--gold);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.sector-card:hover .sector-icon {
    transform: scale(1.15) rotate(3deg);
    filter: drop-shadow(0 0 12px rgba(201, 168, 76, 0.4));
}

.value-card {
    padding: 2rem;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-left: 3px solid var(--gold);
    border-radius: 4px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.value-card:hover {
    transform: translateX(6px);
    border-color: var(--glass-border-gold);
    border-left-color: var(--gold-light);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), -4px 0 20px rgba(201, 168, 76, 0.08);
}

.location-card {
    padding: 2.5rem 2rem;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.location-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.location-card:hover {
    transform: translateY(-6px);
    border-color: var(--glass-border-gold);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4), 0 0 30px rgba(201, 168, 76, 0.06);
}

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

/* --- Scroll Animations (Heavy) --- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-scroll.animate-from-left {
    transform: translateX(-60px) translateY(0);
}

.animate-on-scroll.animate-from-left.animated {
    transform: translateX(0) translateY(0);
}

.animate-on-scroll.animate-from-right {
    transform: translateX(60px) translateY(0);
}

.animate-on-scroll.animate-from-right.animated {
    transform: translateX(0) translateY(0);
}

.animate-on-scroll.animate-scale {
    transform: scale(0.9);
}

.animate-on-scroll.animate-scale.animated {
    transform: scale(1);
}

/* Stagger delays */
.animate-delay-1 { transition-delay: 0.1s; }
.animate-delay-2 { transition-delay: 0.2s; }
.animate-delay-3 { transition-delay: 0.3s; }
.animate-delay-4 { transition-delay: 0.4s; }
.animate-delay-5 { transition-delay: 0.5s; }
.animate-delay-6 { transition-delay: 0.6s; }

/* --- Floating Particles Background --- */
.particles-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--gold);
    border-radius: 50%;
    opacity: 0;
    animation: float-particle 8s infinite ease-in-out;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 7s; }
.particle:nth-child(2) { left: 25%; animation-delay: 1.5s; animation-duration: 9s; }
.particle:nth-child(3) { left: 40%; animation-delay: 0.8s; animation-duration: 6s; }
.particle:nth-child(4) { left: 55%; animation-delay: 2.2s; animation-duration: 8s; }
.particle:nth-child(5) { left: 70%; animation-delay: 0.4s; animation-duration: 10s; }
.particle:nth-child(6) { left: 85%; animation-delay: 1.8s; animation-duration: 7.5s; }
.particle:nth-child(7) { left: 15%; animation-delay: 3s; animation-duration: 8.5s; }
.particle:nth-child(8) { left: 60%; animation-delay: 2.5s; animation-duration: 6.5s; }

@keyframes float-particle {
    0% { opacity: 0; transform: translateY(100vh) scale(0); }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% { opacity: 0; transform: translateY(-20vh) scale(1.5); }
}

/* --- Glowing line separator --- */
.glow-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0.3;
}

/* --- Dropdown --- */
.nav-dropdown {
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item-dropdown:hover .nav-dropdown,
.nav-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* --- Page Banner --- */
.page-banner {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.page-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center top, rgba(201, 168, 76, 0.08), transparent 60%),
                linear-gradient(180deg, rgba(0, 0, 0, 0.3), var(--black));
    z-index: 1;
}

.page-banner > * {
    position: relative;
    z-index: 2;
}

/* --- Contact Form --- */
.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 2px;
    font-size: 0.9375rem;
    color: #e0e0e0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1), 0 0 20px rgba(201, 168, 76, 0.05);
    background: rgba(255, 255, 255, 0.05);
}

/* --- Leader Card --- */
.leader-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.leader-card:hover {
    border-color: var(--glass-border-gold);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(201, 168, 76, 0.06);
}

/* --- Mobile Menu --- */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.open {
    transform: translateX(0);
}

/* --- Placeholder images --- */
.placeholder-img {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
}

.placeholder-img-alt {
    background: linear-gradient(135deg, #111 0%, #222 50%, #111 100%);
}

/* --- Counter Animation --- */
@keyframes count-up {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Shimmer effect for cards on hover --- */
@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.company-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.04), transparent);
    transform: translateX(-100%);
    z-index: 1;
    pointer-events: none;
}

.company-card:hover::after {
    animation: shimmer 1s ease forwards;
}

/* --- Pulsing glow for key elements --- */
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 10px rgba(201, 168, 76, 0.2); }
    50% { box-shadow: 0 0 25px rgba(201, 168, 76, 0.4); }
}

.pulse-gold {
    animation: pulse-glow 3s ease-in-out infinite;
}

/* --- Rotating border gradient --- */
@keyframes rotate-border {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.rotating-border {
    position: relative;
    overflow: hidden;
}

.rotating-border::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent, var(--gold), transparent, transparent);
    animation: rotate-border 6s linear infinite;
    z-index: -1;
}

/* --- Text reveal animation --- */
@keyframes text-reveal {
    0% {
        clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
    }
    100% {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
}

/* --- Company Sections --- */
.company-section {
    position: relative;
}

.company-section .aspect-\[4\/3\] {
    border-radius: 4px;
    overflow: hidden;
}

[data-theme="light"] .company-section {
    background: transparent;
}

/* Company section text in light mode */
[data-theme="light"] .company-section .text-white {
    color: #1a1a1a !important;
}
[data-theme="light"] .company-section .text-white\/40,
[data-theme="light"] .company-section .text-white\/50 {
    color: #666 !important;
}
[data-theme="light"] .company-section h3 {
    color: #1a1a1a !important;
}

/* Keep image overlay text white */
[data-theme="light"] .company-section .aspect-\[4\/3\] .glass,
[data-theme="light"] .company-section .aspect-\[4\/3\] span {
    color: white !important;
    -webkit-text-fill-color: white !important;
}

/* --- Companies Carousel (legacy) --- */
.companies-carousel {
    position: relative;
    padding: 0 1rem;
}

.carousel-viewport {
    overflow: hidden;
    margin: 0 -1rem;
}

.carousel-track {
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}

.carousel-track:active {
    cursor: grabbing;
}

.carousel-slide {
    padding: 0 0.75rem;
}

.carousel-slide .company-card {
    height: 100%;
}

.carousel-btn {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.carousel-btn:hover {
    box-shadow: 0 8px 30px rgba(201, 168, 76, 0.2);
}

[data-theme="light"] .carousel-btn {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .carousel-btn:hover {
    box-shadow: 0 8px 30px rgba(201, 168, 76, 0.12);
}

.carousel-dot {
    width: 32px;
    height: 3px;
    border-radius: 2px;
    background: rgba(201, 168, 76, 0.2);
    border: none;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.carousel-dot::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--gold-light), var(--gold));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.carousel-dot.active {
    width: 48px;
}

.carousel-dot.active::after {
    transform: scaleX(1);
}

[data-theme="light"] .carousel-dot {
    background: rgba(201, 168, 76, 0.15);
}

/* --- Smooth underline animation for links --- */
.animated-link {
    position: relative;
}

.animated-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.animated-link:hover::after {
    width: 100%;
}

/* ========================================
   LIGHT THEME
   ======================================== */

/* Transition for theme switch */
html.theme-transitioning,
html.theme-transitioning *,
html.theme-transitioning *::before,
html.theme-transitioning *::after {
    transition: background-color 0.5s ease, color 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease, opacity 0.5s ease !important;
}

/* Circular reveal overlay */
.theme-reveal {
    position: fixed;
    z-index: 9999;
    border-radius: 50%;
    pointer-events: none;
    transform: scale(0);
}

.theme-reveal.expanding {
    animation: theme-reveal-expand 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes theme-reveal-expand {
    0% { transform: scale(0); opacity: 1; }
    80% { opacity: 1; }
    100% { transform: scale(1); opacity: 0; }
}

/* --- Light theme variable overrides --- */
[data-theme="light"] {
    --black: #ffffff;
    --black-light: #fafafa;
    --black-card: #ffffff;
    --black-soft: #f5f5f0;
    --black-muted: #eeeeee;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-bg-hover: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(0, 0, 0, 0.1);
    --glass-border-gold: rgba(201, 168, 76, 0.3);
    --glass-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
    --gold-dark: #8a6d2a;
}

[data-theme="light"] body {
    background: #f5f4f0;
    color: #444;
}

[data-theme="light"] ::selection {
    background: var(--gold);
    color: white;
}

/* ---- HEADER ---- */
/* On hero (not scrolled): keep nav text WHITE so it reads over the dark hero */
[data-theme="light"] .site-header:not(.scrolled) nav a,
[data-theme="light"] .site-header:not(.scrolled) nav button {
    color: rgba(255, 255, 255, 0.85) !important;
}
[data-theme="light"] .site-header:not(.scrolled) nav a:hover,
[data-theme="light"] .site-header:not(.scrolled) nav button:hover {
    color: white !important;
}
[data-theme="light"] .site-header:not(.scrolled) .theme-toggle {
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
}
[data-theme="light"] .site-header:not(.scrolled) #mobile-menu-toggle {
    color: white !important;
}

/* Scrolled header: white bg with dark text */
[data-theme="light"] .site-header.scrolled {
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.07);
}
[data-theme="light"] .site-header.scrolled nav a,
[data-theme="light"] .site-header.scrolled nav button:not(.theme-toggle) {
    color: #444 !important;
}
[data-theme="light"] .site-header.scrolled nav a:hover,
[data-theme="light"] .site-header.scrolled nav button:hover {
    color: var(--gold-dark) !important;
}
[data-theme="light"] .site-header.scrolled #mobile-menu-toggle {
    color: #333 !important;
}

/* ---- DARK HERO: keep fully dark, text stays white ---- */
[data-theme="light"] .hero-slider {
    /* Hero stays dark — no overrides needed, images have dark overlays */
}
[data-theme="light"] .hero-slider .text-white\/50,
[data-theme="light"] .hero-slider .text-white\/40 {
    color: rgba(255, 255, 255, 0.6) !important;
}
[data-theme="light"] .hero-slider .eyebrow {
    -webkit-text-fill-color: initial;
    background: none;
    color: var(--gold-light);
}
/* Keep hero placeholder dark so text stays readable if image fails to load */
[data-theme="light"] .hero-slide .slide-bg {
    background-color: #0a0f1e;
}

/* ---- PAGE BANNER (dark section, stays dark) ---- */
[data-theme="light"] .page-banner {
    background: #0f1628;
}
/* Fix the ::before gradient — it was fading to var(--black)=#fff, making the banner dissolve */
[data-theme="light"] .page-banner::before {
    background: radial-gradient(ellipse at center top, rgba(201, 168, 76, 0.08), transparent 60%),
                linear-gradient(180deg, rgba(0, 0, 0, 0.2), #0f1628);
}
[data-theme="light"] .page-banner * {
    color: white;
}
[data-theme="light"] .page-banner .text-white\/40,
[data-theme="light"] .page-banner .text-white\/60 {
    color: rgba(255, 255, 255, 0.5) !important;
}
[data-theme="light"] .page-banner .eyebrow {
    -webkit-text-fill-color: initial;
    background: none;
    color: var(--gold-light);
}

/* ---- CTA SECTION (dark) ---- */
[data-theme="light"] .cta-section-wrap {
    background: #0a0a0a !important;
}
[data-theme="light"] .cta-section-wrap,
[data-theme="light"] .cta-section-wrap * {
    color: white;
}
[data-theme="light"] .cta-section-wrap .text-white\/40 {
    color: rgba(255, 255, 255, 0.5) !important;
}
[data-theme="light"] .cta-section-wrap .btn-outline {
    border-color: var(--gold);
    color: var(--gold);
}

/* Nav dropdown */
[data-theme="light"] .nav-dropdown {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}
[data-theme="light"] .site-header:not(.scrolled) .nav-dropdown a,
[data-theme="light"] .site-header.scrolled .nav-dropdown a {
    color: #555 !important;
}
[data-theme="light"] .site-header:not(.scrolled) .nav-dropdown a:hover,
[data-theme="light"] .site-header.scrolled .nav-dropdown a:hover {
    color: var(--gold-dark) !important;
    background: #faf8f3;
}

/* ---- SECTION BACKGROUNDS ---- */
/* Alternating white / soft cream for readable light theme */
[data-theme="light"] section:not(.hero-slider):not(.page-banner):not(.cta-section-wrap) {
    background: #f5f4f0;
}
[data-theme="light"] section:not(.hero-slider):not(.page-banner):not(.cta-section-wrap):nth-of-type(even) {
    background: #ffffff;
}

/* ---- TEXT: white → dark in light sections ---- */
[data-theme="light"] h1:not(.hero-slider h1):not(.page-banner h1):not(.cta-section-wrap h1),
[data-theme="light"] h2:not(.hero-slider h2):not(.page-banner h2):not(.cta-section-wrap h2),
[data-theme="light"] h3:not(.hero-slider h3):not(.page-banner h3):not(.cta-section-wrap h3),
[data-theme="light"] h4:not(.hero-slider h4):not(.page-banner h4):not(.cta-section-wrap h4) {
    color: #1a1a1a;
}

[data-theme="light"] section:not(.hero-slider):not(.page-banner):not(.cta-section-wrap) .text-white {
    color: #1a1a1a !important;
}
[data-theme="light"] section:not(.hero-slider):not(.page-banner):not(.cta-section-wrap) .text-white\/80,
[data-theme="light"] section:not(.hero-slider):not(.page-banner):not(.cta-section-wrap) .text-white\/70,
[data-theme="light"] section:not(.hero-slider):not(.page-banner):not(.cta-section-wrap) .text-white\/60 {
    color: #444 !important;
}
[data-theme="light"] section:not(.hero-slider):not(.page-banner):not(.cta-section-wrap) .text-white\/50,
[data-theme="light"] section:not(.hero-slider):not(.page-banner):not(.cta-section-wrap) .text-white\/40 {
    color: #666 !important;
}
[data-theme="light"] section:not(.hero-slider):not(.page-banner):not(.cta-section-wrap) .text-white\/35,
[data-theme="light"] section:not(.hero-slider):not(.page-banner):not(.cta-section-wrap) .text-white\/30,
[data-theme="light"] section:not(.hero-slider):not(.page-banner):not(.cta-section-wrap) .text-white\/25,
[data-theme="light"] section:not(.hero-slider):not(.page-banner):not(.cta-section-wrap) .text-white\/20 {
    color: #888 !important;
}

/* ---- NAMED CARDS ---- */
[data-theme="light"] .company-card,
[data-theme="light"] .leader-card {
    background: white;
    border-color: rgba(0, 0, 0, 0.07);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}
[data-theme="light"] .company-card:hover,
[data-theme="light"] .leader-card:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(201, 168, 76, 0.2);
}

[data-theme="light"] .sector-card,
[data-theme="light"] .value-card,
[data-theme="light"] .location-card {
    background: white;
    border-color: rgba(0, 0, 0, 0.07);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.05);
}
[data-theme="light"] .sector-card:hover,
[data-theme="light"] .value-card:hover,
[data-theme="light"] .location-card:hover {
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.09), 0 0 0 1px rgba(201, 168, 76, 0.25);
}

/* Card image overlays — keep text white inside image areas */
[data-theme="light"] .company-card .card-image *,
[data-theme="light"] .leader-card .relative:first-child * {
    color: white !important;
}

/* ---- GLASS UTILITY ---- */
[data-theme="light"] .glass {
    background: white;
    border-color: rgba(0, 0, 0, 0.09);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}
[data-theme="light"] .glass-gold {
    background: rgba(255, 251, 235, 0.9);
    border-color: rgba(201, 168, 76, 0.25);
    box-shadow: 0 2px 12px rgba(201, 168, 76, 0.06);
}
[data-theme="light"] .glass-strong {
    background: white;
    border-color: rgba(0, 0, 0, 0.09);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

/* Company section images — keep overlay text white */
[data-theme="light"] .company-section .aspect-\[4\/3\] .glass span,
[data-theme="light"] .company-section .aspect-\[4\/3\] span {
    color: white !important;
    -webkit-text-fill-color: white !important;
}

/* Company section content text */
[data-theme="light"] .company-section .text-white {
    color: #1a1a1a !important;
}
[data-theme="light"] .company-section .text-white\/40,
[data-theme="light"] .company-section .text-white\/50 {
    color: #666 !important;
}
[data-theme="light"] .company-section h3 {
    color: #1a1a1a !important;
}
/* Keep service bullet text readable */
[data-theme="light"] .company-section .text-sm.text-white\/50 {
    color: #666 !important;
}

/* ---- FORM ---- */
[data-theme="light"] .form-input {
    background: white;
    border-color: #d8d6d0;
    color: #333;
}
[data-theme="light"] .form-input::placeholder { color: #aaa; }
[data-theme="light"] .form-input:focus {
    background: white;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.12);
}

/* ---- BUTTONS ---- */
[data-theme="light"] section:not(.hero-slider):not(.cta-section-wrap) .btn-outline,
[data-theme="light"] section:not(.hero-slider):not(.cta-section-wrap) .btn-outline-dark {
    border-color: var(--gold-dark);
    color: var(--gold-dark);
}
[data-theme="light"] section:not(.hero-slider):not(.cta-section-wrap) .btn-outline:hover,
[data-theme="light"] section:not(.hero-slider):not(.cta-section-wrap) .btn-outline-dark:hover {
    color: #fff;
}

/* ---- DIVIDERS ---- */
[data-theme="light"] .glow-line {
    background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.3), transparent);
    opacity: 0.7;
}

/* ---- DECORATIONS ---- */
[data-theme="light"] .particles-bg { display: none; }
/* Tone down ambient glow blobs */
[data-theme="light"] section:not(.hero-slider):not(.page-banner):not(.cta-section-wrap) [class*="bg-gold-500"] {
    opacity: 0 !important;
}

/* ---- FOOTER (keep dark) ---- */
[data-theme="light"] footer { background: #111 !important; }
[data-theme="light"] footer h4 { color: rgba(201, 168, 76, 0.7) !important; }
[data-theme="light"] footer a,
[data-theme="light"] footer span,
[data-theme="light"] footer p { color: rgba(255, 255, 255, 0.45) !important; }
[data-theme="light"] footer a:hover { color: var(--gold) !important; }
[data-theme="light"] footer .gold-text { -webkit-text-fill-color: initial; color: var(--gold) !important; }
/* Footer glass elements must stay dark since footer keeps dark background */
[data-theme="light"] footer .glass {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: none;
}

/* ---- PLACEHOLDER IMAGES ---- */
/* Use background-color only — the background shorthand would reset background-size/position,
   which breaks hero images whose background-size is set by CSS (lower specificity) not inline style. */
[data-theme="light"] .placeholder-img { background-color: #c0bdb7; }
[data-theme="light"] .placeholder-img-alt { background-color: #b0ada8; }

/* ---- MOBILE MENU ---- */
[data-theme="light"] .mobile-menu { background: rgba(255, 255, 255, 0.98) !important; }
[data-theme="light"] .mobile-menu a,
[data-theme="light"] .mobile-menu button { color: #333 !important; border-color: rgba(0, 0, 0, 0.06) !important; }
[data-theme="light"] .mobile-menu a:hover { color: var(--gold) !important; }

/* ---- MAP ---- */
[data-theme="light"] .presence-map [style*="background: rgba(5,5,5"] {
    background: rgba(255, 255, 255, 0.92) !important;
    border-color: rgba(201, 168, 76, 0.3) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}
[data-theme="light"] .presence-map [style*="color: #ffe6a0"] {
    color: var(--gold-dark) !important;
}

/* ---- ITERATION 2 FIXES ---- */

/* glass-gold number badges (service cards, company number, etc.) */
[data-theme="light"] .glass-gold {
    background: rgba(253, 246, 220, 0.95);
    border-color: rgba(201, 168, 76, 0.35);
    box-shadow: 0 2px 10px rgba(201, 168, 76, 0.08);
}

/* Service cards on company detail page need stronger definition on cream background */
[data-theme="light"] section:not(.hero-slider):not(.page-banner):not(.cta-section-wrap) .glass {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
}

/* Leader card quote text */
[data-theme="light"] .leader-card p,
[data-theme="light"] .leader-card .text-white\/50,
[data-theme="light"] .leader-card .text-white\/60 {
    color: #555 !important;
}
[data-theme="light"] .leader-card .text-white {
    color: #1a1a1a !important;
}

/* Sibling / company overview card title + text inside glass cards (company detail page) */
[data-theme="light"] section a.glass .text-white\/40,
[data-theme="light"] section a.glass span {
    color: #666 !important;
}
[data-theme="light"] section a.glass strong {
    color: #333 !important;
}

/* Company section decorative large number — keep barely visible in light mode */
[data-theme="light"] .company-section .text-white\/\[0\.06\] {
    color: rgba(0, 0, 0, 0.04) !important;
}

/* Sibling company card titles on company detail */
[data-theme="light"] section a[href*="/companies"] .text-white {
    color: #1a1a1a !important;
}
[data-theme="light"] section a[href*="/companies"] .text-white\/30,
[data-theme="light"] section a[href*="/companies"] p {
    color: #888 !important;
}

/* Company section home — inline divider line */
[data-theme="light"] .company-section .bg-gradient-to-r.from-gold-500\/20 {
    opacity: 0.5;
}

/* Global presence page — location cards */
[data-theme="light"] .location-card .text-white,
[data-theme="light"] .location-card h3 {
    color: #1a1a1a !important;
}
[data-theme="light"] .location-card .text-white\/40,
[data-theme="light"] .location-card p {
    color: #666 !important;
}

/* Leadership philosophy list items */
[data-theme="light"] section li .text-white\/60 {
    color: #555 !important;
}

/* Theme toggle button */
.theme-toggle {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--gold);
    overflow: hidden;
}

.theme-toggle:hover {
    border-color: rgba(201, 168, 76, 0.3);
    background: rgba(201, 168, 76, 0.1);
}

[data-theme="light"] .theme-toggle {
    border-color: rgba(0, 0, 0, 0.1);
    background: rgba(0, 0, 0, 0.03);
    color: var(--gold-dark);
}

[data-theme="light"] .theme-toggle:hover {
    border-color: rgba(201, 168, 76, 0.3);
    background: rgba(201, 168, 76, 0.08);
}

.theme-toggle svg {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-toggle:hover svg {
    transform: rotate(30deg);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
    position: absolute;
    transition: opacity 0.3s ease, transform 0.4s ease;
}

.theme-toggle .icon-sun {
    opacity: 1;  transform: rotate(0deg) scale(1); 
}

.theme-toggle .icon-moon {
    opacity: 0;
    transform: rotate(-90deg) scale(0.5); 
}

[data-theme="light"] .theme-toggle .icon-sun {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

[data-theme="light"] .theme-toggle .icon-moon {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}

/* Mobile theme toggle — inline layout, no absolute positioning */
#theme-toggle-mobile {
    width: auto;
    height: auto;
    border: none;
    background: none;
    box-shadow: none;
    position: static;
}
#theme-toggle-mobile .icon-sun,
#theme-toggle-mobile .icon-moon {
    position: static;
    transition: opacity 0.3s ease;
}
/* In dark mode show moon, in light mode show sun */
#theme-toggle-mobile .icon-sun { display: none; }
#theme-toggle-mobile .icon-moon { display: flex; }
[data-theme="light"] #theme-toggle-mobile .icon-sun { display: flex; }
[data-theme="light"] #theme-toggle-mobile .icon-moon { display: none; }
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: #080807; }
::-webkit-scrollbar-thumb {
  background: rgba(201,168,76,0.3);
  border-radius: 2px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(201,168,76,0.6); }
/* ============================================================
   DISPLAY SERIF HEADINGS — Cormorant Garamond
============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400;1,600&display=swap');

h1, h2, h3,
.display-heading {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

/* Larger, lighter weight for hero h1 specifically */
h1 {
  font-weight: 300;
  line-height: 1.05;
}

/* Section h2s get slightly tighter tracking */
h2 {
  font-weight: 400;
  letter-spacing: -0.02em;
}

/* Keep Inter for nav, buttons, labels, small UI text */
nav, button, .btn-gold, .btn-ghost,
input, select, textarea,
.eyebrow, .badge, label,
.text-xs, .text-sm {
  font-family: 'Inter', system-ui, sans-serif;
}
/* ============================================================
   GOLD GRADIENT TEXT
   Usage: add class="gold-text" to any h1, h2, or span
============================================================ */
.gold-text {
  background: linear-gradient(
    135deg,
    #e9c371 0%,
    #c9a84c 35%,
    #f0d080 55%,
    #c9a84c 75%,
    #a68a3e 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% auto;
  animation: gold-shimmer 4s linear infinite;
}

@keyframes gold-shimmer {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* Static version (no shimmer) — use .gold-text-static */
.gold-text-static {
  background: linear-gradient(135deg, #e9c371 0%, #c9a84c 50%, #a68a3e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Italic emphasis inside headings */
.gold-italic {
  font-style: italic;
  background: linear-gradient(135deg, #e9c371 0%, #c9a84c 60%, #f0d080 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
/* ============================================================
   HERO ANIMATED BACKGROUND
   A moving dot grid + radial gold spotlight
   Apply .hero-bg to your hero <section> wrapper
============================================================ */
.hero-bg {
  position: relative;
  overflow: hidden;
}

/* Dot grid layer */
.hero-bg::before {
  content: '';
  position: absolute;
  inset: -100px;
  background-image: radial-gradient(
    circle,
    rgba(201, 168, 76, 0.35) 1px,
    transparent 1px
  );
  background-size: 40px 40px;
  animation: grid-float 18s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(
    ellipse 80% 70% at 50% 50%,
    black 0%,
    transparent 100%
  );
  -webkit-mask-image: radial-gradient(
    ellipse 80% 70% at 50% 50%,
    black 0%,
    transparent 100%
  );
}

/* Gold spotlight layer */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 60% 50% at 30% 40%,
      rgba(201, 168, 76, 0.08) 0%,
      transparent 65%
    ),
    radial-gradient(
      ellipse 40% 60% at 70% 60%,
      rgba(201, 168, 76, 0.05) 0%,
      transparent 60%
    );
  animation: spotlight-drift 12s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

/* All content inside hero-bg must sit above the backgrounds */
.hero-bg > * {
  position: relative;
  z-index: 1;
}

@keyframes grid-float {
  0%   { transform: translate(0px, 0px) scale(1); }
  33%  { transform: translate(12px, -8px) scale(1.01); }
  66%  { transform: translate(-8px, 10px) scale(0.99); }
  100% { transform: translate(6px, -4px) scale(1.01); }
}

@keyframes spotlight-drift {
  0%   { opacity: 0.6; transform: scale(1); }
  50%  { opacity: 1;   transform: scale(1.05); }
  100% { opacity: 0.7; transform: scale(0.98); }
}

/* Reduce motion — keeps dots but removes animation */
@media (prefers-reduced-motion: reduce) {
  .hero-bg::before { animation: none; }
  .hero-bg::after  { animation: none; }
}
/* ============================================================
   HERO CANVAS PARTICLE BACKGROUND
============================================================ */
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.2s ease;
}

#hero-canvas.ready {
  opacity: 1;
}