@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* --- DESIGN SYSTEM TOKENS --- */
:root {
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Luxury Dark Navy & Electric Blue Palette */
  --bg-primary: #060913;      /* Deepest Space Black/Navy */
  --bg-secondary: #0b1120;    /* Dark Navy Panel */
  --bg-tertiary: #111a30;     /* Lighter Navy Panel */
  
  --text-primary: #ffffff;    /* Pure White */
  --text-secondary: #cbd5e1;  /* Silver Gray */
  --text-muted: #64748b;      /* Slate Gray */
  --border-color: rgba(255, 255, 255, 0.08);
  
  /* Brand Colors */
  --primary: #0052ff;         /* Electric Blue */
  --primary-hover: #003cd0;
  --secondary: #00d2ff;       /* Cyan Glow */
  --accent: #e2e8f0;          /* Silver Accents */
  --accent-hover: #ffffff;
  
  --success: #10b981;
  --error: #ef4444;
  --warning: #f59e0b;
  --info: #3b82f6;

  /* Gradients */
  --grad-primary: linear-gradient(135deg, #0052ff 0%, #00d2ff 100%);
  --grad-text: linear-gradient(135deg, #ffffff 0%, #94a3b8 100%);
  --grad-dark: linear-gradient(180deg, #0b1120 0%, #060913 100%);
  --grad-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
  
  /* Shadows & Glassmorphism */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.5);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 82, 255, 0.15), 0 4px 6px -2px rgba(0, 82, 255, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.5);
  
  /* Glassmorphism Borders & Blur */
  --glass-bg: rgba(11, 17, 32, 0.7);
  --glass-border: rgba(255, 255, 255, 0.06);
  --glass-blur: blur(16px);

  /* Radius & Transitions */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Layout sizes */
  --header-height: 80px;
  --max-width: 1400px;
}

/* --- LIGHT MODE OPTION (RETAIN OVERRIDES FOR COMPATIBILITY) --- */
[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f5f9;
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --border-color: #e2e8f0;
  
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(226, 232, 240, 0.8);
  
  --shadow-lg: 0 10px 15px -3px rgba(0, 82, 255, 0.05), 0 4px 6px -2px rgba(0, 82, 255, 0.02);
  --grad-text: linear-gradient(135deg, #0f172a 0%, #475569 100%);
}

/* --- RESET & GLOBAL STYLES --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  border: none;
  background: none;
  outline: none;
}

button {
  cursor: pointer;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

/* --- SCROLLBAR --- */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* --- LAYOUT UTILITIES --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 100px 0;
}

@media (max-width: 768px) {
  .section-padding {
    padding: 60px 0;
  }
}

.flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.grid { display: grid; }

.text-center { text-align: center; }
.gradient-text {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

/* Dynamic Page Container */
#main-content {
  min-height: calc(100vh - var(--header-height) - 400px); /* Fill space */
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Grid Utilities */
.grid-2 { grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); gap: 24px; }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .grid-4, .grid-3, .grid-2 {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
