/* =========================================================================
   2026 MODERN DESIGN SYSTEM — ChessMaster Academy
   Glassmorphism + Minimalist + Responsive Design
   
   FEATURES:
   • Modern color palette with contrast opposites
   • Cards, buttons, and components
   • Smooth animations and transitions
   • Full responsive design (mobile-first)
   • Dark & Light theme support
   • Accessibility-first approach
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800;900&family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* ────────────────────────────────────────────────────────────────────
   COLOR SYSTEM & CSS VARIABLES (2026 Modern Palette)
   ──────────────────────────────────────────────────────────────────── */

:root {
  /* ─── DARK MODE (Primary) ─── */
  --bg-dark: #0f1117;        /* Main background */
  --bg-darker: #0a0e1a;      /* Darker layer */
  --bg-card: #161b22;        /* Card backgrounds */
  --bg-hover: #21262d;       /* Hover state */
  --bg-glass: rgba(21, 27, 34, 0.8); /* Glassmorphism */
  
  /* ─── LIGHT TEXT (High Contrast) ─── */
  --text-primary: #ffffff;   /* 100% contrast on dark */
  --text-secondary: #c9d1d9; /* 90% contrast */
  --text-muted: #8b949e;     /* 70% contrast */
  --text-subdued: #6e7681;   /* 60% contrast */
  
  /* ─── MODERN COLOR PALETTE ─── */
  --color-cyan: #00d9ff;     /* Vibrant cyan */
  --color-purple: #bd3ff0;   /* Bold purple */
  --color-pink: #ff006e;     /* Hot pink */
  --color-green: #26ff42;    /* Neon green */
  --color-orange: #ff9f1c;   /* Warm orange */
  --color-blue: #3b82f6;     /* Sky blue */
  --color-gold: #f5c842;     /* Accent gold */
  
  /* ─── LIGHT MODE PALETTE ─── */
  --light-bg: #ffffff;
  --light-bg-secondary: #f6f8fa;
  --light-card: #ffffff;
  --light-text: #0d1117;
  --light-text-secondary: #57606a;
  
  /* ─── SEMANTIC COLORS ─── */
  --success: #26ff42;
  --danger: #ff006e;
  --warning: #ff9f1c;
  --info: #3b82f6;
  
  /* ─── BORDERS & SHADOWS ─── */
  --border-subtle: rgba(48, 54, 61, 0.6);
  --border-light: rgba(48, 54, 61, 0.3);
  --border-glass: rgba(255, 255, 255, 0.1);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.6);
  --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.4);
  
  /* ─── SPACING & LAYOUT ─── */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;
  
  /* ─── BORDER RADIUS ─── */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
  
  /* ─── TYPOGRAPHY ─── */
  --font-sans: 'Inter', 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Outfit', 'Poppins', sans-serif;
  --font-mono: 'Monaco', 'Menlo', monospace;
  
  /* ─── TRANSITIONS ─── */
  --transition-fast: 150ms ease;
  --transition-normal: 300ms ease;
  --transition-smooth: 400ms cubic-bezier(0.4, 0.0, 0.2, 1);
  --transition-bounce: 400ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
  
  /* ─── BREAKPOINTS ─── */
  --mobile: 480px;
  --tablet: 768px;
  --desktop: 1024px;
  --widescreen: 1280px;
  --ultrawide: 1920px;
}

/* Light Mode Support */
@media (prefers-color-scheme: light) {
  :root {
    --bg-dark: #ffffff;
    --bg-darker: #f6f8fa;
    --bg-card: #ffffff;
    --bg-hover: #f0f3f7;
    --bg-glass: rgba(255, 255, 255, 0.95);
    --text-primary: #0d1117;
    --text-secondary: #424a55;
    --text-muted: #6e7681;
    --text-subdued: #8b949e;
  }
}

/* ────────────────────────────────────────────────────────────────────
   RESET & BASE STYLES
   ──────────────────────────────────────────────────────────────────── */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  min-height: 100vh;
  transition: background-color var(--transition-smooth);
}

/* ────────────────────────────────────────────────────────────────────
   TYPOGRAPHY
   ──────────────────────────────────────────────────────────────────── */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: var(--spacing-md);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 900; }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 800; }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); font-weight: 600; }
h5 { font-size: 1.125rem; font-weight: 600; }
h6 { font-size: 1rem; font-weight: 600; }

p {
  margin-bottom: var(--spacing-md);
  color: var(--text-secondary);
  line-height: 1.7;
}

a {
  color: var(--color-cyan);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-purple);
  text-decoration: underline;
}

/* ────────────────────────────────────────────────────────────────────
   CONTAINERS & LAYOUT
   ──────────────────────────────────────────────────────────────────── */

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.container-fluid {
  width: 100%;
  padding: 0 var(--spacing-md);
}

.container-xl {
  width: 100%;
  max-width: 1536px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* Responsive Container Padding */
@media (min-width: 768px) {
  .container, .container-fluid, .container-xl {
    padding: 0 var(--spacing-lg);
  }
}

@media (min-width: 1024px) {
  .container, .container-fluid, .container-xl {
    padding: 0 var(--spacing-xl);
  }
}

/* ────────────────────────────────────────────────────────────────────
   GRID SYSTEM (Flexbox-based, modern and responsive)
   ──────────────────────────────────────────────────────────────────── */

.grid {
  display: grid;
  gap: var(--spacing-md);
}

.grid-1 { grid-template-columns: 1fr; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-6 { grid-template-columns: repeat(6, 1fr); }

/* Responsive Grid */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-6 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4, .grid-6 { grid-template-columns: 1fr; }
}

.flex {
  display: flex;
  gap: var(--spacing-md);
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-col {
  display: flex;
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

/* ────────────────────────────────────────────────────────────────────
   CARDS & CONTAINERS
   ──────────────────────────────────────────────────────────────────── */

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  transition: all var(--transition-smooth);
  box-shadow: var(--shadow-sm);
}

.card:hover {
  border-color: var(--color-cyan);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.card-glass {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-glass);
}

.card-bordered {
  border: 2px solid var(--border-subtle);
}

.card-flat {
  background: var(--bg-hover);
  border: none;
}

.card-elevated {
  box-shadow: var(--shadow-lg);
}

.card-header {
  margin-bottom: var(--spacing-lg);
  padding-bottom: var(--spacing-md);
  border-bottom: 1px solid var(--border-light);
}

.card-body {
  padding: var(--spacing-md);
}

.card-footer {
  margin-top: var(--spacing-lg);
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--border-light);
}

/* ────────────────────────────────────────────────────────────────────
   BUTTONS - Complete Modern Design
   ──────────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm) var(--spacing-lg);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  user-select: none;
  text-decoration: none;
  transition: all var(--transition-fast);
  outline: none;
  position: relative;
  overflow: hidden;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn:active {
  transform: translateY(0);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* ─── PRIMARY BUTTON ─── */
.btn-primary {
  background: linear-gradient(135deg, var(--color-cyan) 0%, var(--color-blue) 100%);
  color: var(--bg-dark);
  border: none;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 217, 255, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 8px 20px rgba(0, 217, 255, 0.5);
  transform: translateY(-3px);
}

/* ─── SECONDARY BUTTON ─── */
.btn-secondary {
  background: transparent;
  color: var(--color-cyan);
  border: 2px solid var(--color-cyan);
}

.btn-secondary:hover {
  background: var(--color-cyan);
  color: var(--bg-dark);
  box-shadow: 0 4px 12px rgba(0, 217, 255, 0.3);
}

/* ─── SUCCESS BUTTON ─── */
.btn-success {
  background: linear-gradient(135deg, var(--success) 0%, var(--color-green) 100%);
  color: var(--bg-dark);
  border: none;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(38, 255, 66, 0.3);
}

.btn-success:hover {
  box-shadow: 0 8px 20px rgba(38, 255, 66, 0.5);
}

/* ─── DANGER BUTTON ─── */
.btn-danger {
  background: linear-gradient(135deg, var(--danger) 0%, #ff3860 100%);
  color: #ffffff;
  border: none;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(255, 0, 110, 0.3);
}

.btn-danger:hover {
  box-shadow: 0 8px 20px rgba(255, 0, 110, 0.5);
}

/* ─── WARNING BUTTON ─── */
.btn-warning {
  background: linear-gradient(135deg, var(--warning) 0%, #ffa500 100%);
  color: var(--bg-dark);
  border: none;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(255, 159, 28, 0.3);
}

.btn-warning:hover {
  box-shadow: 0 8px 20px rgba(255, 159, 28, 0.5);
}

/* ─── PURPLE BUTTON ─── */
.btn-purple {
  background: linear-gradient(135deg, var(--color-purple) 0%, #9d4edd 100%);
  color: #ffffff;
  border: none;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(189, 63, 240, 0.3);
}

.btn-purple:hover {
  box-shadow: 0 8px 20px rgba(189, 63, 240, 0.5);
}

/* ─── GOLD BUTTON ─── */
.btn-gold {
  background: linear-gradient(135deg, var(--color-gold) 0%, #ffc300 100%);
  color: var(--bg-dark);
  border: none;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(245, 200, 66, 0.3);
}

.btn-gold:hover {
  box-shadow: 0 8px 20px rgba(245, 200, 66, 0.5);
}

/* ─── OUTLINE BUTTON ─── */
.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border-subtle);
}

.btn-outline:hover {
  border-color: var(--color-cyan);
  background: rgba(0, 217, 255, 0.1);
}

/* ─── GHOST BUTTON ─── */
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: none;
}

.btn-ghost:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

/* ─── BUTTON SIZES ─── */
.btn-sm {
  padding: var(--spacing-xs) var(--spacing-md);
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: var(--spacing-md) var(--spacing-2xl);
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}

.btn-xl {
  padding: var(--spacing-lg) var(--spacing-3xl);
  font-size: 1.1rem;
  border-radius: var(--radius-xl);
}

/* ─── FULL WIDTH BUTTON ─── */
.btn-block {
  width: 100%;
  display: flex;
}

/* ────────────────────────────────────────────────────────────────────
   BADGES & TAGS
   ──────────────────────────────────────────────────────────────────── */

.badge {
  display: inline-flex;
  align-items: center;
  padding: var(--spacing-xs) var(--spacing-md);
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-primary {
  background: rgba(0, 217, 255, 0.2);
  color: var(--color-cyan);
}

.badge-success {
  background: rgba(38, 255, 66, 0.2);
  color: var(--success);
}

.badge-danger {
  background: rgba(255, 0, 110, 0.2);
  color: var(--danger);
}

.badge-warning {
  background: rgba(255, 159, 28, 0.2);
  color: var(--warning);
}

.badge-purple {
  background: rgba(189, 63, 240, 0.2);
  color: var(--color-purple);
}

.badge-gold {
  background: rgba(245, 200, 66, 0.2);
  color: var(--color-gold);
}

/* ────────────────────────────────────────────────────────────────────
   FORMS & INPUTS
   ──────────────────────────────────────────────────────────────────── */

.form-group {
  margin-bottom: var(--spacing-lg);
}

label {
  display: block;
  margin-bottom: var(--spacing-sm);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="search"],
textarea,
select {
  width: 100%;
  padding: var(--spacing-sm) var(--spacing-md);
  background: var(--bg-hover);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 1rem;
  transition: all var(--transition-fast);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--color-cyan);
  background: var(--bg-card);
  box-shadow: 0 0 0 3px rgba(0, 217, 255, 0.1);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

.form-help {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: var(--spacing-xs);
}

.form-error {
  color: var(--danger);
  font-size: 0.85rem;
  margin-top: var(--spacing-xs);
}

/* ────────────────────────────────────────────────────────────────────
   ANIMATIONS & TRANSITIONS
   ──────────────────────────────────────────────────────────────────── */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.5);
  }
  50% {
    box-shadow: 0 0 30px rgba(0, 217, 255, 0.8);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Animation Classes */
.animate-fade-in {
  animation: fadeIn 0.6s var(--transition-smooth);
}

.animate-slide-in {
  animation: slideIn 0.6s var(--transition-smooth);
}

.animate-slide-in-up {
  animation: slideInUp 0.6s var(--transition-smooth);
}

.animate-pulse {
  animation: pulse 2s infinite;
}

.animate-glow {
  animation: glow 2s infinite;
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

/* ────────────────────────────────────────────────────────────────────
   UTILITY CLASSES
   ──────────────────────────────────────────────────────────────────── */

/* Spacing Utilities */
.m-0 { margin: 0; }
.m-1 { margin: var(--spacing-sm); }
.m-2 { margin: var(--spacing-md); }
.m-3 { margin: var(--spacing-lg); }
.m-4 { margin: var(--spacing-xl); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }
.mt-4 { margin-top: var(--spacing-xl); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }
.mb-4 { margin-bottom: var(--spacing-xl); }

.p-0 { padding: 0; }
.p-1 { padding: var(--spacing-sm); }
.p-2 { padding: var(--spacing-md); }
.p-3 { padding: var(--spacing-lg); }
.p-4 { padding: var(--spacing-xl); }

/* Text Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-primary { color: var(--text-primary); }

.text-cyan { color: var(--color-cyan); }
.text-purple { color: var(--color-purple); }
.text-pink { color: var(--color-pink); }
.text-green { color: var(--success); }
.text-orange { color: var(--color-orange); }
.text-gold { color: var(--color-gold); }

.text-sm { font-size: 0.875rem; }
.text-md { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }

.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }

/* Display Utilities */
.hidden { display: none !important; }
.visible { display: block !important; }
.inline { display: inline; }
.inline-block { display: inline-block; }
.block { display: block; }

/* Opacity Utilities */
.opacity-0 { opacity: 0; }
.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }
.opacity-100 { opacity: 1; }

/* Cursor Utilities */
.cursor-pointer { cursor: pointer; }
.cursor-default { cursor: default; }
.cursor-not-allowed { cursor: not-allowed; }

/* Misc Utilities */
.rounded { border-radius: var(--radius-md); }
.rounded-sm { border-radius: var(--radius-sm); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-full { border-radius: var(--radius-full); }

.shadow { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

/* ────────────────────────────────────────────────────────────────────
   RESPONSIVE UTILITIES
   ──────────────────────────────────────────────────────────────────── */

/* Mobile First */
@media (max-width: 480px) {
  :root {
    --spacing-xs: 0.2rem;
    --spacing-sm: 0.4rem;
    --spacing-md: 0.8rem;
    --spacing-lg: 1.2rem;
  }
  
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
  
  .container, .container-fluid { padding: 0 var(--spacing-md); }
  .btn { padding: var(--spacing-xs) var(--spacing-md); font-size: 0.9rem; }
  .card { padding: var(--spacing-md); }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1024px) {
  .grid-6 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* Large Desktop */
@media (min-width: 1920px) {
  .container { max-width: 1536px; }
  h1 { font-size: 4rem; }
  h2 { font-size: 3rem; }
}

/* Hidden Classes */
.hidden-sm { display: none; }
.hidden-md { display: none; }
.hidden-lg { display: block; }

@media (max-width: 768px) {
  .hidden-sm { display: none !important; }
  .hidden-md { display: none !important; }
  .hidden-lg { display: block !important; }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .hidden-md { display: none !important; }
}

/* ────────────────────────────────────────────────────────────────────
   NAVBAR & NAVIGATION
   ──────────────────────────────────────────────────────────────────── */

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-md) var(--spacing-lg);
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: all var(--transition-smooth);
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--color-cyan);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.navbar-brand:hover {
  color: var(--color-purple);
}

.nav-menu {
  display: flex;
  gap: var(--spacing-xl);
  list-style: none;
}

.nav-link {
  color: var(--text-secondary);
  font-weight: 500;
  transition: color var(--transition-fast);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-cyan);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-cyan);
  transition: width var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    background: var(--bg-darker);
    border-bottom: 1px solid var(--border-subtle);
  }
  
  .nav-menu.active {
    display: flex;
  }
}

/* ────────────────────────────────────────────────────────────────────
   HERO SECTION
   ──────────────────────────────────────────────────────────────────── */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-3xl) var(--spacing-lg);
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 800px;
  text-align: center;
  z-index: 1;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  margin-bottom: var(--spacing-lg);
  background: linear-gradient(135deg, var(--color-cyan) 0%, var(--color-purple) 50%, var(--color-pink) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-xl);
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* ────────────────────────────────────────────────────────────────────
   FOOTER
   ──────────────────────────────────────────────────────────────────── */

.footer {
  background: var(--bg-darker);
  border-top: 1px solid var(--border-subtle);
  padding: var(--spacing-3xl) var(--spacing-lg);
  margin-top: var(--spacing-3xl);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-2xl);
  margin-bottom: var(--spacing-2xl);
}

.footer-section h3 {
  margin-bottom: var(--spacing-md);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--color-cyan);
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--spacing-lg);
  text-align: center;
  color: var(--text-muted);
}

/* ────────────────────────────────────────────────────────────────────
   NOTIFICATIONS & ALERTS
   ──────────────────────────────────────────────────────────────────── */

.alert {
  padding: var(--spacing-lg) var(--spacing-lg);
  border-radius: var(--radius-md);
  border-left: 4px solid transparent;
  margin-bottom: var(--spacing-lg);
  animation: slideInUp 0.3s ease;
}

.alert-success {
  background: rgba(38, 255, 66, 0.1);
  border-color: var(--success);
  color: var(--text-primary);
}

.alert-error {
  background: rgba(255, 0, 110, 0.1);
  border-color: var(--danger);
  color: var(--text-primary);
}

.alert-warning {
  background: rgba(255, 159, 28, 0.1);
  border-color: var(--warning);
  color: var(--text-primary);
}

.alert-info {
  background: rgba(0, 217, 255, 0.1);
  border-color: var(--color-cyan);
  color: var(--text-primary);
}

/* ────────────────────────────────────────────────────────────────────
   RESPONSIVE ADJUSTMENTS (Mobile-First Approach)
   ──────────────────────────────────────────────────────────────────── */

@media (max-width: 480px) {
  .navbar {
    padding: var(--spacing-md);
  }
  
  .hero {
    min-height: 80vh;
    padding: var(--spacing-2xl) var(--spacing-md);
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .hero-cta {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
  }
  
  .card {
    padding: var(--spacing-md);
  }
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1920px) {
  .container {
    max-width: 1536px;
  }
}
