/* =============================================
   BASE.CSS — Enhanced Design System v2
   ============================================= */



/* ── CSS Variables ── */
:root {
  /* === LIGHT BACKGROUNDS (MINIMALIST WHITE) === */
  --clr-bg:      #FFFFFF;
  --clr-bg-2:    #FBFBFB;
  --clr-bg-3:    #F5F5F5;
  --clr-surface: rgba(255, 255, 255, 0.9);
  --clr-surface-2: rgba(251, 251, 251, 0.95);

  /* === BORDERS === */
  --clr-border:   rgba(0, 0, 0, 0.08);
  --clr-border-2: rgba(0, 0, 0, 0.12);

  /* === PRIMARY (BLACK) === */
  --clr-primary:       #000000;
  --clr-primary-dark:  #000000;
  --clr-primary-light: #333333;
  --clr-primary-glow:  rgba(0, 0, 0, 0.06);
  --clr-primary-glow2: rgba(0, 0, 0, 0.03);

  /* === SECONDARY (GREY) === */
  --clr-secondary:      #444444;
  --clr-secondary-dark: #1A1A1A;
  --clr-secondary-glow: rgba(0, 0, 0, 0.04);

  /* === ACCENT === */
  --clr-accent:       #666666;
  --clr-accent-glow:  rgba(0, 0, 0, 0.04);
  --clr-accent-2:     #888888;

  /* === SEMANTIC === */
  --clr-success: #1B5E20;
  --clr-warning: #E65100;
  --clr-danger:  #C62828;
  --clr-info:    #01579B;
  
  /* === NAVBAR/HEADER (WHITE GLASS) === */
  --clr-nav-bg:    rgba(255, 255, 255, 0.9);
  --clr-nav-text:  #1A1A1A;
  --clr-nav-border: rgba(0, 0, 0, 0.08);

  /* === TEXT === */
  --clr-text:   #1A1A1A;
  --clr-text-2: #4A4A4A;
  --clr-text-3: #757575;
  --clr-text-inv: #FFFFFF;

  /* === MONOCHROME GRADIENTS === */
  --grad-primary: linear-gradient(135deg, #1A1A1A 0%, #444444 100%);
  --grad-primary-v: linear-gradient(180deg, #1A1A1A 0%, #444444 100%);
  --grad-gold-shine: linear-gradient(135deg, #1A1A1A 0%, #444444 50%, #1A1A1A 100%);
  --grad-onyx:   linear-gradient(135deg, #000000 0%, #1A1A1A 100%);
  --grad-hero:   linear-gradient(135deg, #FFFFFF 0%, #F5F5F5 100%);
  --grad-card:   linear-gradient(145deg, #FFFFFF 0%, #FBFBFB 100%);
  --grad-card-hover: linear-gradient(145deg, #FFFFFF 0%, #FFFFFF 100%);
  --grad-mesh:   none;

  /* === DYNAMIC & ACCENT GRADIENTS (SUBDUED) === */
  --grad-electric:  linear-gradient(135deg, #333333 0%, #111111 100%);
  --grad-rose:      linear-gradient(135deg, #444444 0%, #000000 100%);
  --grad-aurora:    linear-gradient(270deg, #111111, #444444, #222222, #111111);
  --grad-secondary: linear-gradient(135deg, #555555 0%, #333333 100%);

  /* === TYPOGRAPHY === */
  --font-base:    'Plus Jakarta Sans', 'IBM Plex Sans', sans-serif;
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-mono:    'IBM Plex Mono', monospace;

  /* === SPACING === */
  --space-1: 4px;  --space-2: 8px;   --space-3: 12px;
  --space-4: 16px; --space-5: 20px;  --space-6: 24px;
  --space-8: 32px; --space-10: 40px; --space-12: 48px;
  --space-16: 64px; --space-20: 80px;

  /* === RADIUS === */
  --radius-sm: 4px; --radius-md: 8px; --radius-lg: 16px;
  --radius-xl: 32px; --radius-full: 9999px;

  /* === SHADOWS (REDUCED OPACITY) === */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.03);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.05);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.08);
  --shadow-primary:    0 8px 20px rgba(0,0,0,0.1);
  --shadow-primary-lg: 0 12px 32px rgba(0,0,0,0.15);
  --shadow-card:       0 1px 3px rgba(0,0,0,0.02), 0 4px 12px rgba(0,0,0,0.03);
  --shadow-card-hover: 0 12px 40px rgba(0,0,0,0.08), 0 0 0 1px rgba(0,0,0,0.05);
  --shadow-rose:       0 8px 20px rgba(0,0,0,0.1);
  --shadow-cyan:       0 8px 20px rgba(0,0,0,0.1);

  /* === TRANSITIONS === */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --trans-fast: 200ms var(--ease-out);
  --trans-base: 400ms var(--ease-out);
  --trans-slow: 700ms var(--ease-out);
  --ease-spring: cubic-bezier(0.68, -0.6, 0.32, 1.6);

  /* === Z-INDEX === */
  --z-dropdown: 100; --z-sticky: 200; --z-modal: 500;
  --z-overlay: 400; --z-toast: 600;
}

/* === DARK THEME DISABLED (FORCED WHITE) === */
body.dark-theme {
  --clr-bg:      #FFFFFF;
  --clr-bg-2:    #FBFBFB;
  --clr-bg-3:    #F5F5F5;
  --clr-surface: rgba(255, 255, 255, 0.9);
  --clr-surface-2: rgba(251, 251, 251, 0.95);
  --clr-text:   #1A1A1A;
  --clr-text-2: #4A4A4A;
  --clr-text-3: #757575;
  --clr-text-inv: #FFFFFF;
  --clr-nav-bg:     rgba(255, 255, 255, 0.95);
  --clr-nav-text:   #1A1A1A;
  --clr-nav-border: rgba(0, 0, 0, 0.08);
  --grad-hero: linear-gradient(135deg, #FFFFFF 0%, #F5F5F5 100%);
  --grad-card: linear-gradient(145deg, rgba(255, 255, 255, 0.95) 0%, rgba(251, 251, 251, 0.98) 100%);
}

body {
  transition: background-color 0.4s var(--ease-out), color 0.4s var(--ease-out);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 13px; }
body {
  font-family: var(--font-base);
  background: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.55;
  letter-spacing: -0.01em;
  min-height: 100vh;
  overflow-x: hidden;
  width: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; border: none; outline: none; }
ul, ol { list-style: none; }

/* ── Typography ── */
h1,h2,h3,h4,h5,h6 { font-family: var(--font-heading); font-weight: 700; line-height: 1.15; letter-spacing: -0.015em; }
h1 { font-size: clamp(1.5rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.2rem, 2.8vw, 1.75rem); }
h3 { font-size: clamp(1rem, 2vw, 1.3rem); }
h4 { font-size: 1rem; }
h5 { font-size: 0.9rem; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: #F1F5F9; }
::-webkit-scrollbar-thumb { background: rgba(124,58,237,0.3); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: var(--clr-primary); }

/* ── Selection ── */
::selection { background: rgba(124,58,237,0.2); color: var(--clr-primary-dark); }

/* ── Keyframes ── */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-32px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(32px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.90) translateY(16px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33%  { transform: translateY(-14px) rotate(1deg); }
  66%  { transform: translateY(-7px) rotate(-1deg); }
}
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 20px var(--clr-primary-glow), 0 0 40px transparent; }
  50%       { box-shadow: 0 0 40px rgba(124,110,255,0.5), 0 0 80px rgba(124,110,255,0.2); }
}
@keyframes toastIn {
  from { opacity: 0; transform: translateX(110%) scale(0.9); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes toastOut {
  from { opacity: 1; transform: translateX(0) scale(1); }
  to   { opacity: 0; transform: translateX(110%) scale(0.9); }
}
@keyframes badgePop {
  0%   { transform: scale(0) rotate(-10deg); }
  65%  { transform: scale(1.25) rotate(4deg); }
  100% { transform: scale(1) rotate(0deg); }
}
@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.4; }
  33%  { transform: translate(30px, -20px) scale(1.1); opacity: 0.6; }
  66%  { transform: translate(-15px, 15px) scale(0.95); opacity: 0.3; }
}
@keyframes auroraShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes shimmerBtn {
  0%   { left: -100%; }
  100% { left: 200%; }
}
@keyframes borderGlow {
  0%, 100% { border-color: rgba(124,110,255,0.2); }
  50%       { border-color: rgba(124,110,255,0.5); }
}

/* ── Utilities ── */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.fade-in       { animation: fadeIn 0.55s var(--ease-out) both; }
.fade-in-left  { animation: fadeInLeft 0.55s var(--ease-out) both; }
.fade-in-right { animation: fadeInRight 0.55s var(--ease-out) both; }
.fade-in-scale { animation: fadeInScale 0.45s var(--ease-out) both; }

/* Animate on Scroll (AOS) Classes */
.fade-in-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.fade-in-on-scroll.appear {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}
@media (max-width: 640px) {
  .container { padding: 0 var(--space-3); }
}

/* Glass surfaces */
.glass {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px) saturate(200%);
  -webkit-backdrop-filter: blur(16px) saturate(200%);
  border: 1px solid var(--clr-border);
}
.glass-dark {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--clr-border);
}
.glass-card {
  background: linear-gradient(145deg, rgba(255,255,255,1) 0%, rgba(248,250,252,1) 100%);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--clr-border);
}

/* Gradient text */
.gradient-text {
  background: var(--grad-electric);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gradient-text-aurora {
  background: var(--grad-aurora);
  background-size: 200% 200%;
  animation: auroraShift 4s ease infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Layout utils */
.text-center { text-align: center; }
.text-muted { color: var(--clr-text-2); }
.text-sm { font-size: 0.8rem; }
.text-xs { font-size: 0.7rem; }
.text-lg { font-size: 1rem; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.w-full { width: 100%; }
.hidden { display: none !important; }

/* ── Background Orbs ── */
.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  animation: orbFloat 10s ease-in-out infinite;
}
.bg-orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(124,58,237,0.12) 0%, transparent 70%);
  top: -150px; right: -100px;
}
.bg-orb-2 {
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(37,99,235,0.08) 0%, transparent 70%);
  bottom: -80px; left: -80px;
  animation-delay: -4s;
}
.bg-orb-3 {
  width: 250px; height: 250px;
  background: radial-gradient(circle, rgba(5,150,105,0.07) 0%, transparent 70%);
  top: 45%; left: 22%;
  animation-delay: -7s;
}
.bg-orb-4 {
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(219,39,119,0.06) 0%, transparent 70%);
  top: 20%; left: 60%;
  animation-delay: -2s;
}

/* ── Noise texture overlay ── */
.noise-overlay {
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 1;
}
