/* ==========================================================================
   ERAONE SOLUTIONS — ULTRA PREMIUM DIGITAL EXPERIENCE
   Global Style System & Creative Direction
   ========================================================================== */

:root {
  /* Brand Color System */
  --color-primary-navy: #0B2E63;
  --color-deep-navy: #061A35;
  --color-dark-bg: #041426;
  --color-dark-surface: #071E3D;
  --color-dark-card: rgba(11, 46, 99, 0.35);
  --color-primary-teal: #10B8B2;
  --color-bright-teal: #00D6C5;
  --color-teal-glow: rgba(0, 214, 197, 0.35);
  --color-teal-dim: rgba(16, 184, 178, 0.15);
  --color-white: #FFFFFF;
  --color-light-bg: #F5F8FC;
  --color-light-surface: #FFFFFF;
  --color-muted-text: #64748B;
  --color-text-light: #94A3B8;
  --color-border-dark: rgba(0, 214, 197, 0.15);
  --color-border-card: rgba(255, 255, 255, 0.08);

  /* Typography */
  --font-heading: 'Plus Jakarta Sans', 'Manrope', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  /* Spacing & Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out-expo: cubic-bezier(0.87, 0, 0.13, 1);
}

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

html {
  font-family: var(--font-body);
  background-color: var(--color-dark-bg);
  color: var(--color-white);
  scroll-behavior: auto; /* Managed by Lenis */
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--color-dark-bg);
  color: var(--color-white);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  min-height: 100vh;
  position: relative;
}

/* Headings */
h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--color-white);
  line-height: 1.15;
}

/* Selection */
::selection {
  background: var(--color-bright-teal);
  color: var(--color-dark-bg);
}

/* Blueprint Architecture Grid */
.bg-grid-pattern {
  background-size: 50px 50px;
  background-image: 
    linear-gradient(to right, rgba(0, 214, 197, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 214, 197, 0.04) 1px, transparent 1px);
}

.bg-radial-gradient {
  background: radial-gradient(circle at 50% 20%, rgba(16, 184, 178, 0.15) 0%, rgba(4, 20, 38, 0) 70%);
}

/* Ambient Canvas Container for 3D Monument */
#webgl-canvas-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: auto;
  z-index: 1;
}

#webgl-canvas-container canvas {
  width: 100% !important;
  height: 100% !important;
  outline: none;
}

/* Text Gradients */
.text-gradient-teal {
  background: linear-gradient(135deg, #00D6C5 0%, #10B8B2 50%, #FFFFFF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-silver {
  background: linear-gradient(135deg, #FFFFFF 0%, #CBD5E1 50%, #94A3B8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Noise Texture Overlay */
.noise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  opacity: 0.025;
  z-index: 999;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Lenis Smooth Scroll classes */
html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}
