/* ============================================
   CSS VARIABLES & THEME CONFIGURATION
   ============================================ */
:root {
  /* Color System - Tonik Brand Colors (Simplified Palette) */
  --color-primary: #f31bf8;        /* Pink/Magenta - Primary Accent */
  --color-secondary: #5bf590;      /* Green - Secondary Accent */
  
  /* Dark Theme Colors - Only 3 Colors */
  --color-background: #0a0a0f;    /* Really dark */
  --color-surface: #141414;       /* Medium dark - Neutral gray (no purple tint) */
  --color-text: #ffffff;          /* Really light */
  
  /* Derived colors using opacity */
  --color-text-secondary: rgba(255, 255, 255, 0.6);
  --color-border: var(--color-surface-50);
  
  /* Color opacity variants - Primary (Pink/Magenta) */
  --color-primary-03: rgba(243, 27, 248, 0.03);
  --color-primary-04: rgba(243, 27, 248, 0.04);
  --color-primary-05: rgba(243, 27, 248, 0.05);
  --color-primary-06: rgba(243, 27, 248, 0.06);
  --color-primary-08: rgba(243, 27, 248, 0.08);
  --color-primary-10: rgba(243, 27, 248, 0.1);
  --color-primary-12: rgba(243, 27, 248, 0.12);
  --color-primary-15: rgba(243, 27, 248, 0.15);
  --color-primary-20: rgba(243, 27, 248, 0.2);
  --color-primary-25: rgba(243, 27, 248, 0.25);
  --color-primary-30: rgba(243, 27, 248, 0.3);
  --color-primary-40: rgba(243, 27, 248, 0.4);
  
  /* Color opacity variants - Secondary (Green) */
  --color-secondary-03: rgba(91, 245, 144, 0.03);
  --color-secondary-04: rgba(91, 245, 144, 0.04);
  --color-secondary-05: rgba(91, 245, 144, 0.05);
  --color-secondary-08: rgba(91, 245, 144, 0.08);
  --color-secondary-10: rgba(91, 245, 144, 0.1);
  --color-secondary-12: rgba(91, 245, 144, 0.12);
  --color-secondary-15: rgba(91, 245, 144, 0.15);
  --color-secondary-20: rgba(91, 245, 144, 0.2);
  --color-secondary-25: rgba(91, 245, 144, 0.25);
  --color-secondary-30: rgba(91, 245, 144, 0.3);
  
  /* Color opacity variants - Background/Surface */
  --color-background-40: rgba(10, 10, 15, 0.4);
  --color-background-60: rgba(10, 10, 15, 0.6);
  --color-background-95: rgba(10, 10, 15, 0.95);
  --color-surface-50: rgba(21, 21, 32, 0.5);
  
  /* Color opacity variants - Text (White) */
  --color-text-15: rgba(255, 255, 255, 0.15);
  
  /* Gradient Colors - Simplified (Pink to Green) */
  --gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  --gradient-button: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  --gradient-secondary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  --gradient-vibrant: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  --gradient-tech-art: linear-gradient(315deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  --gradient-dark: linear-gradient(135deg, var(--color-surface) 0%, var(--color-background) 100%);
  
  /* Typography */
  --font-sans: 'Montserrat', system-ui, -apple-system, sans-serif;
  --font-heading: 'Montserrat', system-ui, -apple-system, sans-serif;
  
  /* Font Sizes */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 4rem;
  
  /* Spacing Scale */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  
  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 30px var(--color-primary-15);
  --shadow-glow-subtle: 0 0 20px var(--color-primary-10);
  --shadow-glow-green: 0 0 20px var(--color-secondary-15);
  
  /* Transitions */
  --transition-fast: 200ms ease-out;
  --transition-normal: 300ms ease-out;
  --transition-slow: 500ms ease-out;
  
  /* Z-index Scale */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal: 1040;
  --z-popover: 1050;
  --z-tooltip: 1060;
}

/* Dark Theme (Always Active) */
[data-theme="dark"] {
  --color-background: #0a0a0f;
  --color-surface: #141414;
  --color-text: #ffffff;
  --color-text-secondary: rgba(255, 255, 255, 0.6);
  --color-border: var(--color-surface-50);
}

/* ============================================
   BASE ELEMENT STYLES
   ============================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-background);
  line-height: 1.7;
  min-height: 100vh;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Smooth fade-in on page load */
  animation: fadeIn 0.6s ease-out;
  position: relative;
}

/* Site-wide atmospheric background gradients */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 25% 50%, var(--color-primary-20) 0%, transparent 60%),
              radial-gradient(circle at 75% 50%, var(--color-secondary-15) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
  opacity: 0.8;
}

/* Site-wide tech grid background - REMOVED */

/* Ensure all content stays above background effects */
body > * {
  position: relative;
  z-index: 1;
}

/* Navbar and header need higher z-index */
.header,
#navbar-container {
  z-index: var(--z-fixed) !important;
}

/* Hero sections should have no backdrop blur and be more transparent */
.hero,
.hero-investors,
.speakers-hero,
main > section:first-of-type {
  backdrop-filter: none !important;
}

.hero.section--dark,
.hero-investors.section--dark,
.speakers-hero.section--dark,
main > section:first-of-type.section--dark {
  background: rgba(10, 10, 15, 0.3) !important;
}

main > section:first-of-type.section--light {
  background: rgba(21, 21, 32, 0.4) !important;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  text-wrap: balance;
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

p {
  margin-bottom: var(--space-md);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input, button, textarea, select {
  font: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

/* Accessibility */
.skip-to-content {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--gradient-primary);
  color: white;
  padding: var(--space-sm) var(--space-md);
  text-decoration: none;
  z-index: var(--z-tooltip);
  opacity: 0;
  pointer-events: none;
}

.skip-to-content:focus {
  top: 0;
  opacity: 1;
  pointer-events: auto;
}

/* Container Utility */
.container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: var(--space-md);
}

@media (min-width: 768px) {
  .container {
    padding-inline: var(--space-xl);
  }
}

@media (min-width: 1440px) {
  .container {
    max-width: 1200px;
  }
  
  /* Keep header/navbar at full width on larger screens */
  .header .container {
    max-width: 1280px;
  }
}

@media (min-width: 1920px) {
  .container {
    max-width: 1100px;
  }
  
  /* Keep header/navbar at full width on ultra-wide screens */
  .header .container {
    max-width: 1280px;
  }
}

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

/* ============================================
   BUTTON UTILITIES
   ============================================ */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: var(--text-base);
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
  font-family: var(--font-sans);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: var(--color-primary-20);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
  z-index: 0;
}

.button:hover::before {
  width: 300px;
  height: 300px;
}

.button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 20px var(--color-primary-20);
}

.button--primary {
  background: var(--color-primary);
  color: var(--color-text);
  box-shadow: var(--shadow-glow-subtle);
  position: relative;
  overflow: hidden;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.button--primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--color-text-15), transparent);
  transition: left 0.6s ease-out;
}

.button--primary:hover::before {
  left: 100%;
}

.button--primary:hover {
  background: var(--color-secondary);
  color: var(--color-text);
  box-shadow: var(--shadow-glow-green), var(--shadow-md);
}

/* .button--secondary styles moved to buttons-bem.css */

.button--outline {
  background: transparent;
  color: var(--color-text);
  border: 2px solid var(--color-border);
}

.button--outline:hover {
  border-color: var(--color-secondary);
  color: var(--color-secondary);
  box-shadow: 0 0 15px var(--color-secondary-30);
}

.button--large {
  padding: var(--space-lg) var(--space-2xl);
  font-size: var(--text-lg);
}

.button--small {
  padding: var(--space-sm) var(--space-md);
  font-size: var(--text-sm);
}

.button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* ============================================
   ACCESSIBILITY: REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  body {
    animation: none;
  }
  
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
@import './utilities.css';

/* ============================================
   BEM COMPONENTS
   ============================================ */
@import './components/buttons-bem.css';
@import './components/cards-bem.css';
@import './components/speaker-card-bem.css';
@import './components/sections-bem.css';
