/* ==========================================================================
   YATORO // DOTA 2 ESPORTS PORTFOLIO
   Design System & Main Stylesheet
   Ultra-Premium, 120Hz Smooth, Cinematic Dark Theme
   ========================================================================== */

:root {
  /* Color Palette */
  --bg-primary: #060709;
  --bg-secondary: #0b0d12;
  --bg-tertiary: #11141c;
  --bg-card: rgba(17, 20, 28, 0.7);
  --bg-card-hover: rgba(23, 28, 40, 0.85);
  --bg-glass: rgba(11, 13, 18, 0.75);
  
  /* Accent Colors */
  --radiant-teal: #10e7b2;
  --radiant-teal-glow: rgba(16, 231, 178, 0.28);
  --radiant-teal-dim: rgba(16, 231, 178, 0.12);
  --dire-red: #ff334b;
  --dire-red-glow: rgba(255, 51, 75, 0.25);
  --dire-red-dim: rgba(255, 51, 75, 0.12);
  
  /* Aegis & Trophy Gold */
  --aegis-gold: #f5c451;
  --aegis-gold-light: #ffde82;
  --aegis-gold-glow: rgba(245, 196, 81, 0.35);
  --aegis-gold-dim: rgba(245, 196, 81, 0.12);
  --aegis-gold-gradient: linear-gradient(135deg, #ffe08a 0%, #d4a034 50%, #8c6317 100%);
  
  /* Text Colors */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-dim: #334155;
  
  /* Borders & Dividers */
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-light: rgba(255, 255, 255, 0.14);
  --border-teal: rgba(16, 231, 178, 0.25);
  --border-gold: rgba(245, 196, 81, 0.3);
  
  /* Typography */
  --font-display: 'Syne', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Space Grotesk', monospace;
  
  /* Transitions & Animation Easing */
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.25, 0.1, 0.25, 1);
  --duration-fast: 0.2s;
  --duration-normal: 0.35s;
  --duration-slow: 0.6s;
  
  /* Shadows */
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
  --shadow-glow-teal: 0 0 40px -10px rgba(16, 231, 178, 0.35);
  --shadow-glow-gold: 0 0 50px -10px rgba(245, 196, 81, 0.4);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Ambient Canvas Background */
#ambient-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
  opacity: 0.85;
}

/* Subtle Dota 2 Grid / Minimap Background Overlay */
.background-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 50% 20%, rgba(16, 231, 178, 0.035) 0%, transparent 60%),
    radial-gradient(circle at 80% 80%, rgba(255, 51, 75, 0.025) 0%, transparent 50%),
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 60px 60px, 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* Custom Interactive Cursor Spotlight */
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 450px;
  height: 450px;
  margin-left: -225px;
  margin-top: -225px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 231, 178, 0.06) 0%, rgba(245, 196, 81, 0.02) 40%, transparent 70%);
  pointer-events: none;
  z-index: 2;
  transform: translate3d(-1000px, -1000px, 0);
  transition: opacity 0.3s ease;
  will-change: transform;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 7px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: #1e2433;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--radiant-teal);
}

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

.text-gradient-teal {
  background: linear-gradient(135deg, #ffffff 30%, var(--radiant-teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-gold {
  background: var(--aegis-gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-mono {
  font-family: var(--font-mono);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--radiant-teal);
  margin-bottom: 14px;
  padding: 4px 12px;
  background: var(--radiant-teal-dim);
  border: 1px solid var(--border-teal);
  border-radius: 100px;
  backdrop-filter: blur(8px);
}

.section-label.gold {
  color: var(--aegis-gold);
  background: var(--aegis-gold-dim);
  border-color: var(--border-gold);
}

.section-label::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 640px;
  line-height: 1.65;
}

/* Layout Containers */
.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 5;
}

section {
  position: relative;
  padding: 130px 0;
  z-index: 5;
}

/* Screen Reader Utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Global Reveal Animation on Scroll */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-spring), transform 0.7s var(--ease-spring);
  will-change: opacity, transform;
}

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

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* Responsive adjustments */
@media (max-width: 768px) {
  section {
    padding: 85px 0;
  }
  .container {
    padding: 0 20px;
  }
  .cursor-glow {
    display: none;
  }
}
