/* ==========================================================================
   RAISINA GROUP — SOVEREIGN MERIDIAN DESIGN SYSTEM
   Modern Luxury Commodity Conglomerate Aesthetics
   Enhanced for High Accessibility (WCAG 2.1 AA/AAA) & Text Readability
   Preserves All Original Color Gradients & Visual Identity
   ========================================================================== */

:root {
  --color-surface-lowest: #05080e;
  --color-surface-low: #0a0e17;
  --color-surface: #0f1420;
  --color-surface-high: #161e2e;
  --color-surface-highest: #1f2a3f;
  
  --color-primary: #eec05b;
  --color-primary-bright: #f7df94;
  --color-primary-dim: #c89d3c;
  --color-primary-dark: #8f6a22;
  --color-primary-container: #402d00;
  
  --color-secondary: #e7c35a;
  --color-tertiary: #e6c26c;
  
  /* WCAG High-Contrast Text Tokens (13:1 to 17:1 against dark backgrounds) */
  --color-on-surface: #f3f5fa;
  --color-on-surface-variant: #d2d8e6;
  --color-on-surface-muted: #abb4c7;
  --color-outline: #b8ad9a;
  --color-outline-variant: rgba(212, 175, 55, 0.35);

  --font-display: 'Syne', sans-serif;
  --font-body: 'Hanken Grotesk', 'Geist', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base resets & styles */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--color-surface-lowest);
  color: var(--color-on-surface);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  line-height: 1.62;
  text-rendering: optimizeLegibility;
}

/* Skip Link for Keyboard / Screen-Reader Accessibility */
.skip-link {
  position: absolute;
  top: -120px;
  left: 1.5rem;
  background: #eec05b;
  color: #05080e !important;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.75rem 1.5rem;
  z-index: 999999;
  border-radius: 2px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8), 0 0 12px rgba(238, 192, 91, 0.6);
  transition: top var(--transition-fast);
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
  outline: 3px solid #ffffff;
  outline-offset: 2px;
}

/* Custom Luxury Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: #05080e;
}
::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.38);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(238, 192, 91, 0.75);
}

/* Typography Utility Classes */
.font-display { font-family: var(--font-display); }
.font-body { font-family: var(--font-body); }
.font-mono { 
  font-family: var(--font-mono); 
  font-weight: 500;
}

/* Sovereign Gold Metallics — Exactly Preserved Gradients with Readability Silhouette */
.gold-gradient-text,
.text-gold-gradient {
  background: linear-gradient(135deg, #FFF5DE 0%, #F7DF94 25%, #EEC05B 50%, #C89D3C 75%, #946E26 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  /* Readability enhancement: dark silhouette prevents letters from washing out on complex backdrops */
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.95)) drop-shadow(0 2px 8px rgba(0, 0, 0, 0.7));
  font-weight: 700;
}

.text-gold-bright {
  background: linear-gradient(135deg, #FFF6DC 0%, #F5CE75 45%, #C99933 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.95)) drop-shadow(0 2px 8px rgba(0, 0, 0, 0.7));
  font-weight: 700;
}

.gold-gradient-bg {
  background: linear-gradient(135deg, #F7DF94 0%, #EEC05B 45%, #C89D3C 75%, #946E26 100%);
}

.gold-glow {
  box-shadow: 0 0 25px -4px rgba(212, 175, 55, 0.32), 0 0 10px rgba(247, 223, 148, 0.15);
}

.gold-border-glow {
  border-color: rgba(238, 192, 91, 0.45);
  box-shadow: 0 0 20px -2px rgba(212, 175, 55, 0.25);
}

/* Obsidian Glass Cards — Preserved Gradient with Optimized Contrast & Blur */
.obsidian-card {
  background: linear-gradient(180deg, rgba(16, 22, 34, 0.94) 0%, rgba(9, 13, 22, 0.98) 100%);
  border: 1px solid rgba(212, 175, 55, 0.28);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all var(--transition-normal);
}

.obsidian-card:hover {
  border-color: rgba(238, 192, 91, 0.55);
  box-shadow: 0 14px 40px -10px rgba(0, 0, 0, 0.85), 0 0 22px rgba(212, 175, 55, 0.2);
}

.glass-gold-badge {
  background: rgba(17, 23, 36, 0.92);
  border: 1px solid rgba(212, 175, 55, 0.38);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Ambient Radial Flares */
.ambient-glow-1 {
  background: radial-gradient(circle at 50% 50%, rgba(238, 192, 91, 0.12) 0%, rgba(17, 23, 36, 0.04) 55%, transparent 100%);
}

.ambient-glow-sapphire {
  background: radial-gradient(circle at 50% 50%, rgba(26, 44, 82, 0.35) 0%, rgba(13, 20, 36, 0.08) 60%, transparent 100%);
}

.grid-matrix-pattern {
  background-image: radial-gradient(rgba(212, 175, 55, 0.12) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* Smooth Navigation Tab States */
.nav-link {
  position: relative;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, #EEC05B, #C89D3C);
  transition: width var(--transition-normal);
}

.nav-link.active {
  color: var(--color-primary) !important;
  font-weight: 700;
}

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

/* Continuous Monumental Flow with Dynamic Section Transitions */
.page-view {
  display: block !important;
  opacity: 1 !important;
  transform: none !important;
  scroll-margin-top: 5rem;
  position: relative;
}

/* Dynamic Scroll Reveal */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delay helpers */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }

/* Live Telemetry Ping Animation */
@keyframes radarSweep {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.radar-sweep {
  animation: radarSweep 6s linear infinite;
  transform-origin: center center;
}

/* Interactive cluster node animations */
.cluster-node {
  cursor: pointer;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.cluster-node:hover, .cluster-node.active {
  transform: scale(1.03);
  border-color: #EEC05B !important;
  box-shadow: 0 0 25px rgba(238, 192, 91, 0.35);
}

/* Input & Form Focus Accessibility (WCAG 2.4.7) */
input, select, textarea {
  color: #f3f5fa !important;
  background-color: #0c111d !important;
  border: 1px solid rgba(212, 175, 55, 0.42) !important;
}

input:focus, select:focus, textarea:focus {
  outline: 2px solid #EEC05B !important;
  outline-offset: 1px !important;
  border-color: #EEC05B !important;
  box-shadow: 0 0 14px rgba(238, 192, 91, 0.35) !important;
}

input::placeholder, textarea::placeholder {
  color: #9ba5ba !important;
  opacity: 1 !important;
}

/* High-Contrast Focus Visible Rings for Keyboard Navigation */
:focus-visible {
  outline: 2px solid #EEC05B !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 4px rgba(238, 192, 91, 0.35) !important;
}

/* Modal styling */
.modal-backdrop {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background-color: rgba(5, 8, 14, 0.88);
}

/* ==========================================================================
   HERO VIDEO STREAM & CONTINUOUS LOOP CONTROLS (ACCESSIBILITY OPTIMIZED)
   ========================================================================== */
#hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42 !important; /* Preserves video atmosphere while ensuring overlaid text passes WCAG contrast */
  transition: opacity 0.8s ease-in-out;
}

#hero-feed-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.4s ease-in-out;
}

.clip-selector {
  cursor: pointer;
  padding: 2px 7px;
  font-size: 9px;
  line-height: 1.25;
  border-radius: 2px;
  font-weight: 600;
  color: rgba(220, 226, 238, 0.85);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(238, 192, 91, 0.25);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.clip-selector:hover {
  color: #ffffff;
  background: rgba(238, 192, 91, 0.25);
  border-color: rgba(238, 192, 91, 0.6);
}

.clip-selector.active {
  color: #05080e !important;
  background: var(--color-primary) !important;
  border-color: var(--color-primary) !important;
  font-weight: 700;
}

.video-control-pill {
  background: rgba(5, 8, 14, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(238, 192, 91, 0.42);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.85);
}

/* Floating Executive Compass Dock */
.dock-dot {
  cursor: pointer;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.dock-dot.active {
  color: #05080e !important;
  background: var(--color-primary) !important;
  box-shadow: 0 0 12px rgba(238, 192, 91, 0.6);
}

/* ==========================================================================
   READABILITY & CONTRAST ENHANCEMENTS (WCAG 2.1 AA/AAA COMPLIANCE)
   ========================================================================== */

/* Enhanced Paragraph & Body Readability */
p {
  line-height: 1.68 !important;
  max-width: 82ch;
}

/* Global High-Contrast Color Enforcement */
.text-on-surface {
  color: var(--color-on-surface) !important;
}

.text-on-surface-variant {
  color: var(--color-on-surface-variant) !important;
}

/* Faint Opacity Elevators: Elevate text opacities to prevent faded/invisible text */
.text-on-surface-variant\/70,
.text-on-surface-variant\/80 {
  color: #d2d8e6 !important;
  opacity: 0.98 !important;
}

.text-on-surface\/60,
.text-on-surface\/70,
.text-on-surface\/80 {
  color: #f3f5fa !important;
  opacity: 0.98 !important;
}

.text-primary\/60,
.text-primary\/70,
.text-primary\/80 {
  color: #eec05b !important;
  opacity: 0.98 !important;
}

/* Elevate Micro-Text to Minimum Legible Sizes */
.text-\[9px\] {
  font-size: 11px !important;
  line-height: 1.4 !important;
  letter-spacing: 0.04em !important;
  font-weight: 500 !important;
}

.text-\[10px\] {
  font-size: 11.5px !important;
  line-height: 1.4 !important;
  letter-spacing: 0.025em !important;
  font-weight: 500 !important;
}

.text-\[11px\] {
  font-size: 12px !important;
  line-height: 1.45 !important;
  font-weight: 500 !important;
}

.text-xs {
  font-size: 0.8125rem !important; /* 13px */
  line-height: 1.52 !important;
}

/* Accessible Text Shadow on Hero and Stately Sections */
#view-home h1,
#view-home p,
#view-about h1,
#view-about p,
.hero-readable-text {
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.92), 0 2px 10px rgba(0, 0, 0, 0.75);
}

/* Table Readability and Contrast */
table {
  border-collapse: separate;
  border-spacing: 0;
}

table th {
  color: #f3f5fa !important;
  background-color: #0f1626 !important;
  font-weight: 700 !important;
  border-bottom: 2px solid rgba(212, 175, 55, 0.4) !important;
  padding: 12px 16px !important;
  letter-spacing: 0.04em;
}

table td {
  color: #d2d8e6 !important;
  border-bottom: 1px solid rgba(212, 175, 55, 0.18) !important;
  padding: 12px 16px !important;
  background-color: rgba(12, 17, 28, 0.6) !important;
}

table tr:hover td {
  background-color: rgba(238, 192, 91, 0.08) !important;
  color: #ffffff !important;
}

/* Motion Sensitivity / Vestibular Accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   TARGETED HIGH-VISIBILITY ENHANCEMENTS (USER DIRECTIVE)
   ========================================================================== */

/* 1. "Powering Sovereign Commerce" - Maximized luminous silhouette without gradient alterations */
.hero-powering-gold {
  background: linear-gradient(135deg, #FFF5DE 0%, #F7DF94 25%, #EEC05B 50%, #C89D3C 75%, #946E26 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  filter: drop-shadow(0 2px 4px #000000) drop-shadow(0 4px 18px rgba(0, 0, 0, 0.95)) drop-shadow(0 0 35px rgba(238, 192, 91, 0.65)) !important;
  -webkit-text-stroke: 0.5px rgba(255, 245, 222, 0.45);
  font-weight: 800 !important;
  display: inline-block;
}

/* 2. "CONTINENTS" - About Us Headline Radiant Visibility */
.hero-continents-gold {
  background: linear-gradient(135deg, #FFF5DE 0%, #F7DF94 25%, #EEC05B 50%, #C89D3C 75%, #946E26 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  filter: drop-shadow(0 2px 4px #000000) drop-shadow(0 4px 18px rgba(0, 0, 0, 0.95)) drop-shadow(0 0 32px rgba(238, 192, 91, 0.7)) !important;
  -webkit-text-stroke: 0.5px rgba(255, 245, 222, 0.45);
  font-weight: 800 !important;
  display: inline-block;
}

/* 3. Golden Buttons: "Explore Strategic Architecture" and Header "Initiate RFQ" */
.btn-gold-cta {
  background: linear-gradient(135deg, #F7DF94 0%, #EEC05B 45%, #C89D3C 75%, #946E26 100%) !important;
  color: #000000 !important;
  font-weight: 800 !important;
  border: 1.5px solid #FFF8E7 !important;
  box-shadow: 0 0 25px rgba(238, 192, 91, 0.65), 0 4px 15px rgba(0, 0, 0, 0.85) !important;
  letter-spacing: 0.05em;
  text-shadow: 0 0 1px rgba(255, 255, 255, 0.3);
}

.btn-gold-cta:hover {
  filter: brightness(1.15) !important;
  box-shadow: 0 0 35px rgba(247, 223, 148, 0.9), 0 4px 20px rgba(0, 0, 0, 0.9) !important;
}

.btn-gold-header {
  background: linear-gradient(135deg, #F7DF94 0%, #EEC05B 45%, #C89D3C 75%, #946E26 100%) !important;
  color: #000000 !important;
  font-weight: 800 !important;
  border: 1.5px solid #FFF8E7 !important;
  box-shadow: 0 0 22px rgba(238, 192, 91, 0.7), 0 2px 10px rgba(0, 0, 0, 0.9) !important;
  letter-spacing: 0.06em;
}

.btn-gold-header:hover {
  filter: brightness(1.15) !important;
  box-shadow: 0 0 32px rgba(247, 223, 148, 0.95), 0 4px 14px rgba(0, 0, 0, 0.95) !important;
}

/* 4. "68 SOVEREIGN PORTS" - Prevents text cutoff by adjacent grid column */
.metric-ports-title {
  font-size: clamp(1.15rem, 1.8vw, 1.875rem) !important;
  line-height: 1.15 !important;
  letter-spacing: -0.015em;
  overflow-wrap: break-word;
  word-break: normal;
  white-space: normal;
  color: #eec05b !important;
  font-weight: 800 !important;
}

/* 5. RAISINA MANDATE Box & High-Contrast Sovereign Typography */
.mandate-box {
  border-left: 5px solid #FFDF8A !important;
  border-top: 1px solid rgba(212, 175, 55, 0.45) !important;
  border-right: 1px solid rgba(212, 175, 55, 0.3) !important;
  border-bottom: 1px solid rgba(212, 175, 55, 0.3) !important;
  background: #0d1424 !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 25px rgba(212, 175, 55, 0.25) !important;
  position: relative;
}

.mandate-title {
  color: #FFDF8A !important;
  font-family: var(--font-mono);
  font-weight: 800 !important;
  letter-spacing: 0.16em !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9) !important;
}

.mandate-quote {
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
  background: none !important;
  filter: none !important;
  font-family: var(--font-display);
  font-weight: 800 !important;
  line-height: 1.35 !important;
  letter-spacing: 0.02em !important;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.95) !important;
}


