:root {
  /* Primitive Color Tokens */
  --color-white: rgba(255, 255, 255, 1);
  --color-black: rgba(0, 0, 0, 1);
  --color-cream-50: rgba(252, 252, 249, 1);
  --color-cream-100: rgba(255, 255, 253, 1);
  --color-gray-200: rgba(245, 245, 245, 1);
  --color-gray-300: rgba(167, 169, 169, 1);
  --color-gray-400: rgba(119, 124, 124, 1);
  --color-slate-500: rgba(98, 108, 113, 1);
  --color-brown-600: rgba(94, 82, 64, 1);
  --color-charcoal-700: rgba(31, 33, 33, 1);
  --color-charcoal-800: rgba(38, 40, 40, 1);
  --color-slate-900: rgba(19, 52, 59, 1);
  --color-teal-300: rgba(50, 184, 198, 1);
  --color-teal-400: rgba(45, 166, 178, 1);
  --color-teal-500: rgba(33, 128, 141, 1);
  --color-teal-600: rgba(29, 116, 128, 1);
  --color-teal-700: rgba(26, 104, 115, 1);
  --color-teal-800: rgba(41, 150, 161, 1);
  --color-red-400: rgba(255, 84, 89, 1);
  --color-red-500: rgba(192, 21, 47, 1);
  --color-orange-400: rgba(230, 129, 97, 1);
  --color-orange-500: rgba(168, 75, 47, 1);

  /* RGB versions for opacity control */
  --color-brown-600-rgb: 94, 82, 64;
  --color-teal-500-rgb: 33, 128, 141;
  --color-slate-900-rgb: 19, 52, 59;
  --color-slate-500-rgb: 98, 108, 113;
  --color-red-500-rgb: 192, 21, 47;
  --color-red-400-rgb: 255, 84, 89;
  --color-orange-500-rgb: 168, 75, 47;
  --color-orange-400-rgb: 230, 129, 97;

  /* Background color tokens (Light Mode) */
  --color-bg-1: rgba(224, 231, 255, 0.7); /* Soft Indigo */
  --color-bg-2: rgba(254, 243, 226, 0.8); /* Soft Amber */
  --color-bg-3: rgba(209, 250, 229, 0.7); /* Soft Emerald */
  --color-bg-4: rgba(254, 226, 226, 0.7); /* Soft Red */
  --color-bg-5: rgba(245, 208, 254, 0.7); /* Soft Fuchsia */
  --color-bg-6: rgba(255, 237, 213, 0.8); /* Soft Orange */
  --color-bg-7: rgba(252, 231, 243, 0.7); /* Soft Rose */
  --color-bg-8: rgba(207, 250, 254, 0.7); /* Soft Cyan */

  /* Semantic Color Tokens (Light Mode) */
  --color-background: var(--color-cream-50);
  --color-surface: var(--color-cream-100);
  --color-text: var(--color-slate-900);
  --color-text-secondary: var(--color-slate-500);
  --color-primary: var(--color-teal-500);
  --color-primary-hover: var(--color-teal-600);
  --color-primary-active: var(--color-teal-700);
  --color-secondary: rgba(var(--color-brown-600-rgb), 0.12);
  --color-secondary-hover: rgba(var(--color-brown-600-rgb), 0.2);
  --color-secondary-active: rgba(var(--color-brown-600-rgb), 0.25);
  --color-border: rgba(var(--color-brown-600-rgb), 0.2);
  --color-btn-primary-text: var(--color-cream-50);
  --color-card-border: rgba(var(--color-brown-600-rgb), 0.12);
  --color-card-border-inner: rgba(var(--color-brown-600-rgb), 0.12);
  --color-error: var(--color-red-500);
  --color-success: var(--color-teal-500);
  --color-warning: var(--color-orange-500);
  --color-info: var(--color-slate-500);
  --color-focus-ring: rgba(var(--color-teal-500-rgb), 0.4);
  --color-select-caret: rgba(var(--color-slate-900-rgb), 0.8);

  /* Common style patterns */
  --focus-ring: 0 0 0 3px var(--color-focus-ring);
  --focus-outline: 2px solid var(--color-primary);
  --status-bg-opacity: 0.15;
  --status-border-opacity: 0.25;
  --select-caret-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23134252' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  --select-caret-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f5f5f5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");

  /* RGB versions for opacity control */
  --color-success-rgb: 33, 128, 141;
  --color-error-rgb: 192, 21, 47;
  --color-warning-rgb: 168, 75, 47;
  --color-info-rgb: 98, 108, 113;

  /* Typography */
  --font-family-base: "FKGroteskNeue", "Geist", "Inter", -apple-system,
    BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-family-mono: "Berkeley Mono", ui-monospace, SFMono-Regular, Menlo,
    Monaco, Consolas, monospace;
  --font-size-xs: 13px;
  --font-size-sm: 14px;
  --font-size-base: 16px;
  --font-size-md: 16px;
  --font-size-lg: 18px;
  --font-size-xl: 20px;
  --font-size-2xl: 22px;
  --font-size-3xl: 28px;
  --font-size-4xl: 34px;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 550;
  --font-weight-bold: 600;
  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --letter-spacing-tight: -0.01em;

  /* Spacing */
  --space-0: 0;
  --space-1: 1px;
  --space-2: 2px;
  --space-4: 4px;
  --space-6: 6px;
  --space-8: 8px;
  --space-10: 10px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-32: 32px;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-base: 8px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.04),
    0 2px 4px -1px rgba(0, 0, 0, 0.02);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.04),
    0 4px 6px -2px rgba(0, 0, 0, 0.02);
  --shadow-inset-sm: inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 0 rgba(0, 0, 0, 0.03);

  /* Animation */
  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --ease-standard: cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
}

/* Dark mode colors */
@media (prefers-color-scheme: dark) {
  :root {
    /* RGB versions for opacity control (Dark Mode) */
    --color-gray-400-rgb: 119, 124, 124;
    --color-teal-300-rgb: 50, 184, 198;
    --color-gray-300-rgb: 167, 169, 169;
    --color-gray-200-rgb: 245, 245, 245;

    /* Background color tokens (Dark Mode) */
    --color-bg-1: rgba(67, 56, 202, 0.2);   /* Dark Indigo */
    --color-bg-2: rgba(180, 83, 9, 0.2);    /* Dark Amber */
    --color-bg-3: rgba(5, 150, 105, 0.2);   /* Dark Emerald */
    --color-bg-4: rgba(185, 28, 28, 0.2);   /* Dark Red */
    --color-bg-5: rgba(134, 25, 143, 0.2);  /* Dark Fuchsia */
    --color-bg-6: rgba(194, 65, 12, 0.2);   /* Dark Orange */
    --color-bg-7: rgba(190, 24, 93, 0.2);   /* Dark Rose */
    --color-bg-8: rgba(8, 145, 178, 0.2);   /* Dark Cyan */
    
    /* Semantic Color Tokens (Dark Mode) */
    --color-background: var(--color-charcoal-700);
    --color-surface: var(--color-charcoal-800);
    --color-text: var(--color-gray-200);
    --color-text-secondary: rgba(var(--color-gray-300-rgb), 0.7);
    --color-primary: var(--color-teal-300);
    --color-primary-hover: var(--color-teal-400);
    --color-primary-active: var(--color-teal-800);
    --color-secondary: rgba(var(--color-gray-400-rgb), 0.15);
    --color-secondary-hover: rgba(var(--color-gray-400-rgb), 0.25);
    --color-secondary-active: rgba(var(--color-gray-400-rgb), 0.3);
    --color-border: rgba(var(--color-gray-400-rgb), 0.3);
    --color-error: var(--color-red-400);
    --color-success: var(--color-teal-300);
    --color-warning: var(--color-orange-400);
    --color-info: var(--color-gray-300);
    --color-focus-ring: rgba(var(--color-teal-300-rgb), 0.4);
    --color-btn-primary-text: var(--color-slate-900);
    --color-card-border: rgba(var(--color-gray-400-rgb), 0.2);
    --color-card-border-inner: rgba(var(--color-gray-400-rgb), 0.15);
    --shadow-inset-sm: inset 0 1px 0 rgba(255, 255, 255, 0.1),
      inset 0 -1px 0 rgba(0, 0, 0, 0.15);
    --button-border-secondary: rgba(var(--color-gray-400-rgb), 0.2);
    --color-border-secondary: rgba(var(--color-gray-400-rgb), 0.2);
    --color-select-caret: rgba(var(--color-gray-200-rgb), 0.8);

    /* Common style patterns - updated for dark mode */
    --focus-ring: 0 0 0 3px var(--color-focus-ring);
    --focus-outline: 2px solid var(--color-primary);
    --status-bg-opacity: 0.15;
    --status-border-opacity: 0.25;
    --select-caret-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23134252' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    --select-caret-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f5f5f5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");

    /* RGB versions for dark mode */
    --color-success-rgb: var(--color-teal-300-rgb);
    --color-error-rgb: var(--color-red-400-rgb);
    --color-warning-rgb: var(--color-orange-400-rgb);
    --color-info-rgb: var(--color-gray-300-rgb);
  }
}

/* Data attribute for manual theme switching */
[data-color-scheme="dark"] {
  /* RGB versions for opacity control (dark mode) */
  --color-gray-400-rgb: 119, 124, 124;
  --color-teal-300-rgb: 50, 184, 198;
  --color-gray-300-rgb: 167, 169, 169;
  --color-gray-200-rgb: 245, 245, 245;

  /* Colorful background palette - Dark Mode */
  --color-bg-1: rgba(67, 56, 202, 0.2);   /* Dark Indigo */
  --color-bg-2: rgba(180, 83, 9, 0.2);    /* Dark Amber */
  --color-bg-3: rgba(5, 150, 105, 0.2);   /* Dark Emerald */
  --color-bg-4: rgba(185, 28, 28, 0.2);   /* Dark Red */
  --color-bg-5: rgba(134, 25, 143, 0.2);  /* Dark Fuchsia */
  --color-bg-6: rgba(194, 65, 12, 0.2);   /* Dark Orange */
  --color-bg-7: rgba(190, 24, 93, 0.2);   /* Dark Rose */
  --color-bg-8: rgba(8, 145, 178, 0.2);   /* Dark Cyan */
  
  /* Semantic Color Tokens (Dark Mode) */
  --color-background: var(--color-charcoal-700);
  --color-surface: var(--color-charcoal-800);
  --color-text: var(--color-gray-200);
  --color-text-secondary: rgba(var(--color-gray-300-rgb), 0.7);
  --color-primary: var(--color-teal-300);
  --color-primary-hover: var(--color-teal-400);
  --color-primary-active: var(--color-teal-800);
  --color-secondary: rgba(var(--color-gray-400-rgb), 0.15);
  --color-secondary-hover: rgba(var(--color-gray-400-rgb), 0.25);
  --color-secondary-active: rgba(var(--color-gray-400-rgb), 0.3);
  --color-border: rgba(var(--color-gray-400-rgb), 0.3);
  --color-error: var(--color-red-400);
  --color-success: var(--color-teal-300);
  --color-warning: var(--color-orange-400);
  --color-info: var(--color-gray-300);
  --color-focus-ring: rgba(var(--color-teal-300-rgb), 0.4);
  --color-btn-primary-text: var(--color-slate-900);
  --color-card-border: rgba(var(--color-gray-400-rgb), 0.15);
  --color-card-border-inner: rgba(var(--color-gray-400-rgb), 0.15);
  --shadow-inset-sm: inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15);
  --color-border-secondary: rgba(var(--color-gray-400-rgb), 0.2);
  --color-select-caret: rgba(var(--color-gray-200-rgb), 0.8);

  /* Common style patterns - updated for dark mode */
  --focus-ring: 0 0 0 3px var(--color-focus-ring);
  --focus-outline: 2px solid var(--color-primary);
  --status-bg-opacity: 0.15;
  --status-border-opacity: 0.25;
  --select-caret-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23134252' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  --select-caret-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f5f5f5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");

  /* RGB versions for dark mode */
  --color-success-rgb: var(--color-teal-300-rgb);
  --color-error-rgb: var(--color-red-400-rgb);
  --color-warning-rgb: var(--color-orange-400-rgb);
  --color-info-rgb: var(--color-gray-300-rgb);
}

[data-color-scheme="light"] {
  /* RGB versions for opacity control (light mode) */
  --color-brown-600-rgb: 94, 82, 64;
  --color-teal-500-rgb: 33, 128, 141;
  --color-slate-900-rgb: 19, 52, 59;
  
  /* Semantic Color Tokens (Light Mode) */
  --color-background: var(--color-cream-50);
  --color-surface: var(--color-cream-100);
  --color-text: var(--color-slate-900);
  --color-text-secondary: var(--color-slate-500);
  --color-primary: var(--color-teal-500);
  --color-primary-hover: var(--color-teal-600);
  --color-primary-active: var(--color-teal-700);
  --color-secondary: rgba(var(--color-brown-600-rgb), 0.12);
  --color-secondary-hover: rgba(var(--color-brown-600-rgb), 0.2);
  --color-secondary-active: rgba(var(--color-brown-600-rgb), 0.25);
  --color-border: rgba(var(--color-brown-600-rgb), 0.2);
  --color-btn-primary-text: var(--color-cream-50);
  --color-card-border: rgba(var(--color-brown-600-rgb), 0.12);
  --color-card-border-inner: rgba(var(--color-brown-600-rgb), 0.12);
  --color-error: var(--color-red-500);
  --color-success: var(--color-teal-500);
  --color-warning: var(--color-orange-500);
  --color-info: var(--color-slate-500);
  --color-focus-ring: rgba(var(--color-teal-500-rgb), 0.4);

  /* RGB versions for light mode */
  --color-success-rgb: var(--color-teal-500-rgb);
  --color-error-rgb: var(--color-red-500-rgb);
  --color-warning-rgb: var(--color-orange-500-rgb);
  --color-info-rgb: var(--color-slate-500-rgb);
}

/* Base styles */
html {
  font-size: var(--font-size-base);
  font-family: var(--font-family-base);
  line-height: var(--line-height-normal);
  color: var(--color-text);
  background-color: var(--color-background);
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  padding-top: 80px; /* FIXED: Added padding to prevent navbar overlap */
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-tight);
  color: var(--color-text);
  letter-spacing: var(--letter-spacing-tight);
}

h1 {
  font-size: var(--font-size-4xl);
}
h2 {
  font-size: var(--font-size-3xl);
}
h3 {
  font-size: var(--font-size-2xl);
}
h4 {
  font-size: var(--font-size-xl);
}
h5 {
  font-size: var(--font-size-lg);
}
h6 {
  font-size: var(--font-size-md);
}

p {
  margin: 0 0 var(--space-16) 0;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-standard);
}

a:hover {
  color: var(--color-primary-hover);
}

code,
pre {
  font-family: var(--font-family-mono);
  font-size: calc(var(--font-size-base) * 0.95);
  background-color: var(--color-secondary);
  border-radius: var(--radius-sm);
}

code {
  padding: var(--space-1) var(--space-4);
}

pre {
  padding: var(--space-16);
  margin: var(--space-16) 0;
  overflow: auto;
  border: 1px solid var(--color-border);
}

pre code {
  background: none;
  padding: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8) var(--space-16);
  border-radius: var(--radius-base);
  font-size: var(--font-size-base);
  font-weight: 500;
  line-height: 1.5;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-standard);
  border: none;
  text-decoration: none;
  position: relative;
}

.btn:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-btn-primary-text);
}

.btn--primary:hover {
  background: var(--color-primary-hover);
}

.btn--primary:active {
  background: var(--color-primary-active);
}

.btn--secondary {
  background: var(--color-secondary);
  color: var(--color-text);
}

.btn--secondary:hover {
  background: var(--color-secondary-hover);
}

.btn--secondary:active {
  background: var(--color-secondary-active);
}

.btn--outline {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text);
}

.btn--outline:hover {
  background: var(--color-secondary);
}

.btn--sm {
  padding: var(--space-4) var(--space-12);
  font-size: var(--font-size-sm);
  border-radius: var(--radius-sm);
}

.btn--lg {
  padding: var(--space-10) var(--space-20);
  font-size: var(--font-size-lg);
  border-radius: var(--radius-md);
}

.btn--full-width {
  width: 100%;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Form elements */
.form-control {
  display: block;
  width: 100%;
  padding: var(--space-8) var(--space-12);
  font-size: var(--font-size-md);
  line-height: 1.5;
  color: var(--color-text);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-base);
  transition: border-color var(--duration-fast) var(--ease-standard),
    box-shadow var(--duration-fast) var(--ease-standard);
}

textarea.form-control {
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
}

select.form-control {
  padding: var(--space-8) var(--space-12);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: var(--select-caret-light);
  background-repeat: no-repeat;
  background-position: right var(--space-12) center;
  background-size: 16px;
  padding-right: var(--space-32);
}

/* Add a dark mode specific caret */
@media (prefers-color-scheme: light) {
  select.form-control {
    background-image: var(--select-caret-dark);
  }
}

/* Also handle data-color-scheme */
[data-color-scheme="dark"] select.form-control {
  background-image: var(--select-caret-dark);
}

[data-color-scheme="light"] select.form-control {
  background-image: var(--select-caret-light);
}

.form-control:focus {
  border-color: var(--color-primary);
  outline: var(--focus-outline);
}

.form-label {
  display: block;
  margin-bottom: var(--space-8);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-sm);
}

.form-group {
  margin-bottom: var(--space-16);
}

/* Card component */
.card {
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-card-border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--duration-normal) var(--ease-standard);
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card__body {
  padding: var(--space-16);
}

.card__header,
.card__footer {
  padding: var(--space-16);
  border-bottom: 1px solid var(--color-card-border-inner);
}

/* Status indicators - simplified with CSS variables */
.status {
  display: inline-flex;
  align-items: center;
  padding: var(--space-6) var(--space-12);
  border-radius: var(--radius-full);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-sm);
}

.status--success {
  background-color: rgba(
    var(--color-success-rgb, 33, 128, 141),
    var(--status-bg-opacity)
  );
  color: var(--color-success);
  border: 1px solid
    rgba(var(--color-success-rgb, 33, 128, 141), var(--status-border-opacity));
}

.status--error {
  background-color: rgba(
    var(--color-error-rgb, 192, 21, 47),
    var(--status-bg-opacity)
  );
  color: var(--color-error);
  border: 1px solid
    rgba(var(--color-error-rgb, 192, 21, 47), var(--status-border-opacity));
}

.status--warning {
  background-color: rgba(
    var(--color-warning-rgb, 168, 75, 47),
    var(--status-bg-opacity)
  );
  color: var(--color-warning);
  border: 1px solid
    rgba(var(--color-warning-rgb, 168, 75, 47), var(--status-border-opacity));
}

.status--info {
  background-color: rgba(
    var(--color-info-rgb, 98, 108, 113),
    var(--status-bg-opacity)
  );
  color: var(--color-info);
  border: 1px solid
    rgba(var(--color-info-rgb, 98, 108, 113), var(--status-border-opacity));
}

/* Container layout */
.container {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  padding-right: var(--space-16);
  padding-left: var(--space-16);
}

@media (min-width: 640px) {
  .container {
    max-width: var(--container-sm);
  }
}
@media (min-width: 768px) {
  .container {
    max-width: var(--container-md);
  }
}
@media (min-width: 1024px) {
  .container {
    max-width: var(--container-lg);
  }
}
@media (min-width: 1280px) {
  .container {
    max-width: var(--container-xl);
  }
}

/* Utility classes */
.flex {
  display: flex;
}
.flex-col {
  flex-direction: column;
}
.items-center {
  align-items: center;
}
.justify-center {
  justify-content: center;
}
.justify-between {
  justify-content: space-between;
}
.gap-4 {
  gap: var(--space-4);
}
.gap-8 {
  gap: var(--space-8);
}
.gap-16 {
  gap: var(--space-16);
}

.m-0 {
  margin: 0;
}
.mt-8 {
  margin-top: var(--space-8);
}
.mb-8 {
  margin-bottom: var(--space-8);
}
.mx-8 {
  margin-left: var(--space-8);
  margin-right: var(--space-8);
}
.my-8 {
  margin-top: var(--space-8);
  margin-bottom: var(--space-8);
}

.p-0 {
  padding: 0;
}
.py-8 {
  padding-top: var(--space-8);
  padding-bottom: var(--space-8);
}
.px-8 {
  padding-left: var(--space-8);
  padding-right: var(--space-8);
}
.py-16 {
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
}
.px-16 {
  padding-left: var(--space-16);
  padding-right: var(--space-16);
}

.block {
  display: block;
}
.hidden {
  display: none;
}

/* Accessibility */
.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;
}

:focus-visible {
  outline: var(--focus-outline);
  outline-offset: 2px;
}

/* Dark mode specifics */
[data-color-scheme="dark"] .btn--outline {
  border: 1px solid var(--color-border-secondary);
}

@font-face {
  font-family: 'FKGroteskNeue';
  src: url('https://r2cdn.perplexity.ai/fonts/FKGroteskNeue.woff2')
    format('woff2');
}

/* END PERPLEXITY DESIGN SYSTEM */
/* Enhanced ECCI6 Conference Website Styles */

/* Enhanced Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: 80px; /* Adjusted height for better visibility */
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(15px);
  z-index: 1000;
  border-bottom: 1px solid var(--color-border);
  transition: all var(--duration-normal) var(--ease-standard);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.logo-img {
    max-height: 75px;  /* Adjust this pixel value to fit your navbar design */
    width: auto;
    object-fit: contain;
    display: block;
    background-color: transparent;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-18); /* Adjusted padding */
}

.nav-brand h3 {
  color: var(--color-primary);
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  background: linear-gradient(135deg, var(--color-primary), var(--color-teal-600));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: var(--space-20);
}

.nav-link {
  color: var(--color-text);
  text-decoration: none;
  font-weight: var(--font-weight-medium);
  padding: var(--space-8) var(--space-16);
  border-radius: var(--radius-full);
  transition: color var(--duration-fast) var(--ease-standard), background-color var(--duration-fast) var(--ease-standard);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.nav-link::before {
  display: none;
}

/* **FIXED** Separated hover and active states to prevent flickering */
.nav-link:hover {
  color: var(--color-primary);
  background-color: transparent; /* Ensure hover doesn't add a background */
}

.nav-link.active {
  color: var(--color-primary);
  background: var(--color-secondary);
}

/* If a link is active AND hovered, ensure it keeps its active style */
.nav-link.active:hover {
    color: var(--color-primary);
    background: var(--color-secondary);
}


.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: var(--space-4);
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: var(--color-text);
  border-radius: var(--radius-sm);
  transition: all var(--duration-fast) var(--ease-standard);
}


/* === START: UPDATED HERO SECTION STYLES === */

/* Main hero container as a positioning context */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  color: var(--color-white); /* Ensure all text inside is white by default */
}

/* Slideshow container as the background layer */
.hero-slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1; /* Places it at the very back */
}

/* Individual slides within the slideshow */
.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  animation: fade 1.5s ease-in-out; /* Add fade animation */
  display: none; /* Hidden by default, controlled by JS */
}

/* Ensure images cover the entire slide area without distortion */
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover; 
}

/* The semi-transparent overlay for text readability */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* A single dark overlay */
  z-index: 2; /* Sits on top of the slideshow */
}

/* Floating particles effect */
.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 100px 100px, 150px 150px, 200px 200px;
  animation: float 20s infinite linear;
  z-index: 3; /* On top of the overlay */
}

/* Ensure content is on top of all background layers */
.hero-content {
  position: relative;
  z-index: 4; /* Sits on top of everything else */
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-32);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5); /* Improves text readability */
  animation: slideInUp 1s ease-out;
}

/* Style for the navigation dots */
.hero-dots {
    text-align: center;
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4; /* Ensures dots are clickable */
}

.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 4px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.dot.active,
.dot:hover {
    background-color: var(--color-white);
}

/* Keyframe Animations */
@keyframes fade {
  from { opacity: 0.8; }
  to { opacity: 1; }
}

@keyframes float {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
  100% { transform: translateY(0px) rotate(360deg); }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero Content Specifics */
.hero-title {
 /* Multiplies each original value in clamp() by 1.25 (i.e., a 25% increase) */
 font-size: clamp(calc(var(--font-size-2xl) * 1.5), calc(4vw * 1.5), calc(var(--font-size-4xl) * 1.5));
 font-weight: var(--font-weight-bold);
 line-height: var(--line-height-tight);
 margin-bottom: var(--space-16);
 color: var(--color-white);
}

.hero-subtitle {
 /* Multiplies the original font size by 1.25 (a 25% increase) */
 font-size: calc(var(--font-size-3xl) * 2);
 font-weight: var(--font-weight-semibold);
 color: var(--color-teal-300);
 margin-bottom: var(--space-24);
 animation-delay: 0.2s;
}

.hero-details {
  margin-bottom: var(--space-32);
  animation-delay: 0.4s;
}

/* --- UPDATED "BADGE" STYLE WITH RELIABLE SIZING --- */
.hero-date {
  display: inline-block;
  
  /*
   * Using a specific 'rem' unit for a guaranteed size increase.
   * 1.5rem is typically 24px. Adjust the number as needed.
   * Try 1.25rem for a smaller size, or 2rem for a much larger one.
  */
  font-size: 1.5rem;
  
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-teal-200);
  background-color: rgba(0, 0, 0, 0.25);
  padding: var(--space-8) var(--space-16);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-16);
}

.hero-venue {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-8);
  opacity: 0.9;
}
.hero-IEEE-approval {
  font-size: 1.9rem;
  margin-bottom: var(--space-8);
  opacity: 0.9;
}
.hero-actions {
  display: flex;
  gap: var(--space-16);
  justify-content: center;
  flex-wrap: wrap;
  animation-delay: 0.6s;
}

.hero-btn {
  transform: translateY(0);
  transition: all var(--duration-normal) var(--ease-standard);
}

/* Make hero section buttons stand out more on the dark background */
.hero-btn.btn--outline {
    color: var(--color-white);
    border-color: var(--color-white);
}

.hero-btn.btn--outline:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--color-white);
}

.hero-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* === END: UPDATED HERO SECTION STYLES === */


/* Enhanced Organized By and Co-Sponsored Sections */
.organized-by,
.co-sponsored {
  padding: var(--space-32) 0;
  background: var(--color-bg-1);
  text-align: center;
}

.organized-content h3,
.co-sponsored-content h3 {
  color: var(--color-text);
  margin-bottom: var(--space-24);
  font-size: var(--font-size-2xl);
}

.sponsors-grid {
  display: flex;
  justify-content: center;
  gap: var(--space-32);
  flex-wrap: wrap;
}

.sponsor-item {
  background: var(--color-surface);
  padding: var(--space-24) var(--space-32);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-card-border);
  font-weight: var(--font-weight-semibold);
  color: var(--color-primary);
  text-align: center;
  transition: all var(--duration-normal) var(--ease-standard);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.sponsor-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(var(--color-primary-rgb, 33, 128, 141), 0.1), transparent);
  transition: left var(--duration-normal) var(--ease-standard);
}

.sponsor-item:hover::before {
  left: 100%;
}

.sponsor-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary);
}

.sponsor-logo {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-8);
}

.sponsor-item span {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  display: block;
}

/* Enhanced Cards */
.enhanced-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-card-border);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: all var(--duration-normal) var(--ease-standard);
  position: relative;
}

.enhanced-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-teal-600));
}

.enhanced-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Enhanced Buttons */
.enhanced-btn {
  position: relative;
  overflow: hidden;
  transition: all var(--duration-normal) var(--ease-standard);
}

.enhanced-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left var(--duration-normal) var(--ease-standard);
}

.enhanced-btn:hover::before {
  left: 100%;
}

.enhanced-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Enhanced Patrons Section */
.patron-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-card-border);
  box-shadow: var(--shadow-md);
  padding: var(--space-32);
  text-align: center;
  transition: all var(--duration-normal) var(--ease-standard);
  position: relative;
  overflow: hidden;
}

.patron-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-teal-600));
}

.patron-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.patron-placeholder {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-teal-600));
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  margin: 0 auto var(--space-20);
  box-shadow: var(--shadow-md);
}

/* Enhanced Committee Section */
.committee-member {
  background: var(--color-surface);
  padding: var(--space-24);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-card-border);
  text-align: center;
  transition: all var(--duration-normal) var(--ease-standard);
  position: relative;
  overflow: hidden;
}

.committee-member::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-teal-600));
}

.committee-member:hover {
  background: var(--color-bg-2);
  border-color: var(--color-primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Enhanced Paper Submission Section */
.submission-category {
  margin-bottom: var(--space-32);
}

.category-title {
  font-size: var(--font-size-2xl);
  color: var(--color-text);
  margin-bottom: var(--space-24);
  text-align: center;
  position: relative;
  display: inline-block;
  width: 100%;
}

.category-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-teal-600));
  border-radius: var(--radius-full);
}

.enhanced-grid,
.enhanced-policies {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-24);
}

.enhanced-template-card,
.enhanced-policy-card {
  background: var(--color-surface);
  padding: var(--space-24);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-card-border);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: all var(--duration-normal) var(--ease-standard);
  position: relative;
  overflow: hidden;
}

.enhanced-template-card::before,
.enhanced-policy-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-teal-600));
}

.enhanced-template-card:hover,
.enhanced-policy-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.template-icon,
.policy-icon {
  font-size: 3rem;
  margin-bottom: var(--space-16);
  transition: transform var(--duration-normal) var(--ease-standard);
}

.enhanced-template-card:hover .template-icon,
.enhanced-policy-card:hover .policy-icon {
  transform: scale(1.1) rotate(5deg);
}

/* Enhanced Guidelines */
.enhanced-guidelines-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-24);
}

.enhanced-guideline-card {
  background: var(--color-surface);
  padding: var(--space-24);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-card-border);
  box-shadow: var(--shadow-sm);
  transition: all var(--duration-normal) var(--ease-standard);
  position: relative;
}

.enhanced-guideline-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-teal-600));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.enhanced-guideline-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.guideline-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-16);
  display: block;
}

/* Enhanced Publication Section */
.enhanced-publication-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-20);
  padding: var(--space-16);
  border-radius: var(--radius-base);
  transition: all var(--duration-normal) var(--ease-standard);
}

.enhanced-publication-item:hover {
  background: var(--color-bg-1);
  transform: translateX(8px);
}

/* Enhanced Themes Section */
.enhanced-themes-overview {
  margin-bottom: var(--space-32);
}

.theme-stats {
  display: flex;
  justify-content: space-around;
  margin-top: var(--space-24);
  flex-wrap: wrap;
  gap: var(--space-16);
}

.theme-stat {
  text-align: center;
  padding: var(--space-16);
  background: var(--color-bg-2);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-card-border);
  min-width: 120px;
  transition: all var(--duration-normal) var(--ease-standard);
}

.theme-stat:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.theme-stat .stat-number {
  display: block;
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}

.theme-stat .stat-label {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  font-weight: var(--font-weight-medium);
}

.theme-category {
  margin-bottom: var(--space-32);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-card-border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.category-header {
  display: flex;
  align-items: center;
  gap: var(--space-20);
  padding: var(--space-24) var(--space-32);
  background: linear-gradient(135deg, var(--color-bg-1), var(--color-bg-2));
  border-bottom: 1px solid var(--color-card-border);
}

.category-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
}

.category-info h3 {
  color: var(--color-text);
  margin-bottom: var(--space-8);
  font-size: var(--font-size-2xl);
}

.category-info p {
  color: var(--color-text-secondary);
  margin: 0;
  font-size: var(--font-size-md);
}

.themes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--space-20);
  padding: var(--space-24);
}

.enhanced-theme-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-card-border);
  box-shadow: var(--shadow-sm);
  transition: all var(--duration-normal) var(--ease-standard);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.enhanced-theme-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-teal-600));
}

.enhanced-theme-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary);
}

.theme-content {
  padding: var(--space-24);
}

.theme-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-16);
  transition: transform var(--duration-normal) var(--ease-standard);
  display: block;
}

.enhanced-theme-card:hover .theme-icon {
  transform: scale(1.2) rotate(10deg);
}

.theme-content h4 {
  color: var(--color-text);
  margin-bottom: var(--space-12);
  font-size: var(--font-size-lg);
}

.theme-description {
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-16);
  line-height: 1.5;
}

.theme-topics {
  background: var(--color-bg-1);
  padding: var(--space-16);
  border-radius: var(--radius-base);
  border: 1px solid var(--color-card-border-inner);
}

.theme-topics h5 {
  color: var(--color-text);
  margin-bottom: var(--space-8);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
}

.theme-topics ul {
  margin: 0;
  padding-left: var(--space-16);
  list-style-type: disc;
}

.theme-topics li {
  color: var(--color-text-secondary);
  font-size: var(--font-size-xs);
  margin-bottom: var(--space-4);
  line-height: 1.4;
}

/* Enhanced Registration */
.enhanced-registration {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: var(--space-32);
  margin-bottom: var(--space-32);
}

.enhanced-registration-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-card-border);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: all var(--duration-normal) var(--ease-standard);
}

.enhanced-registration-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.enhanced-registration-card h3 {
  background: linear-gradient(135deg, var(--color-primary), var(--color-teal-600));
  color: var(--color-white);
  padding: var(--space-24);
  margin: 0;
  text-align: center;
  font-size: var(--font-size-xl);
  position: relative;
}

.enhanced-registration-card h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-full);
}

/* Enhanced Stats */
.enhanced-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-24);
  margin-top: var(--space-32);
}

.enhanced-stat-card {
  text-align: center;
  padding: var(--space-32);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-card-border);
  box-shadow: var(--shadow-sm);
  transition: all var(--duration-normal) var(--ease-standard);
  position: relative;
  overflow: hidden;
}

.enhanced-stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-teal-600));
}

.enhanced-stat-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.stat-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-12);
  transition: transform var(--duration-normal) var(--ease-standard);
}

.enhanced-stat-card:hover .stat-icon {
  transform: scale(1.2) rotate(10deg);
}

/* Enhanced Venue */
.enhanced-venue {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-32);
  align-items: start;
}

.enhanced-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-16);
}

.feature-item {
  background: var(--color-surface);
  padding: var(--space-16);
  border-radius: var(--radius-base);
  border: 1px solid var(--color-card-border);
  color: var(--color-text);
  transition: all var(--duration-normal) var(--ease-standard);
  cursor: pointer;
}

.feature-item:hover {
  background: var(--color-bg-2);
  border-color: var(--color-primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.enhanced-map {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-card-border);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--duration-normal) var(--ease-standard);
}

.enhanced-map:hover {
  box-shadow: var(--shadow-lg);
}

.enhanced-map-info {
  padding: var(--space-24);
  background: var(--color-bg-1);
}

/* Enhanced Contact */
.enhanced-contact {
  display: flex;
  justify-content: center;
  gap: var(--space-32);
  align-items: start;
}

.enhanced-contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-20);
  padding: var(--space-24);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-card-border);
  box-shadow: var(--shadow-sm);
  transition: all var(--duration-normal) var(--ease-standard);
  position: relative;
  overflow: hidden;
}

.enhanced-contact-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-teal-600));
}

.enhanced-contact-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.enhanced-form {
  background: var(--color-surface);
  padding: var(--space-32);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-card-border);
  box-shadow: var(--shadow-md);
  position: relative;
}

.enhanced-form::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-teal-600));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

/* Enhanced Footer */
.enhanced-footer {
  background: linear-gradient(135deg, var(--color-slate-900), var(--color-charcoal-800));
  color: var(--color-gray-200);
  padding: var(--space-32) 0 var(--space-16);
  position: relative;
}

.enhanced-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-teal-600));
}

.footer-social {
  margin-top: var(--space-16);
  color: var(--color-gray-300);
  font-size: var(--font-size-sm);
}

/* Enhanced Policies */
.enhanced-reg-policies {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-24);
}

/* Sections */
.section {
  padding: var(--space-32) 0;
}

.section--alt {
  background: var(--color-bg-1);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-32);
}

.section-header h2 {
  font-size: var(--font-size-3xl);
  color: var(--color-text);
  margin-bottom: var(--space-16);
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-teal-600));
  border-radius: var(--radius-full);
}

.section-header p {
  color: var(--color-text-secondary);
  font-size: var(--font-size-lg);
  margin: 0;
}

/* Grid Layouts */
.patrons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-24);
}

.committee-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-24);
}

.committee-section {
  margin-bottom: var(--space-32);
}

.committee-section h3 {
  color: var(--color-text);
  margin-bottom: var(--space-20);
  font-size: var(--font-size-xl);
  text-align: center;
  position: relative;
}

.committee-section h3::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: var(--color-primary);
  border-radius: var(--radius-full);
}
.platform-info {
  display: flex;
  align-items: center;
  gap: var(--space-24);
}

.platform-logo {
  font-size: 4rem;
  flex-shrink: 0;
}

.fee-table {
  padding: var(--space-24);
}

.fee-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-12) 0;
  border-bottom: 1px solid var(--color-card-border-inner);
}

.fee-row:last-child {
  border-bottom: none;
}

.fee-amount {
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
  font-size: var(--font-size-lg);
}

.registration-action {
  text-align: center;
  margin-top: var(--space-32);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-32);
  margin-bottom: var(--space-24);
}

.footer-section h4 {
  color: var(--color-white);
  margin-bottom: var(--space-16);
  font-size: var(--font-size-lg);
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section li {
  margin-bottom: var(--space-8);
}

.footer-section a {
  color: var(--color-gray-300);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-standard);
}

.footer-section a:hover {
  color: var(--color-white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-16);
  text-align: center;
  color: var(--color-gray-300);
  font-size: var(--font-size-sm);
}

.contact-icon {
  font-size: 1.5rem;
  color: var(--color-primary);
  flex-shrink: 0;
}

.contact-details h4 {
  margin-bottom: var(--space-8);
  color: var(--color-text);
}

.contact-details p {
  margin: 0;
  color: var(--color-text-secondary);
}

.venue-contact {
  margin: var(--space-20) 0;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: var(--space-12);
  margin-bottom: var(--space-8);
}

.publication-icon {
  font-size: 2rem;
  color: var(--color-primary);
  flex-shrink: 0;
}

/* === NEW STYLES FOR COUNTDOWN AND ENHANCED TIMELINE === */
/* (Append this to the end of your existing style.css) */

/* --- Countdown Timer --- */
.countdown-container {
    text-align: center;
    background: var(--color-surface);
    padding: var(--space-24) var(--space-16);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--space-32);
    border: 1px solid var(--color-card-border);
}

.countdown-container h3 {
    color: var(--color-text-secondary);
    font-weight: var(--font-weight-medium);
    font-size: var(--font-size-lg);
    margin: 0 0 var(--space-16) 0;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: var(--space-16);
    flex-wrap: wrap;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--color-bg-2);
    padding: var(--space-12);
    border-radius: var(--radius-md);
    min-width: 90px;
    border: 1px solid var(--color-card-border-inner);
}

.countdown-item span {
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
    line-height: 1;
}

.countdown-item p {
    margin: 0;
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    font-weight: var(--font-weight-medium);
}


/* === CORRECTED ALTERNATING TIMELINE === */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto; /* FIXED: Removed top margin */
  padding: var(--space-32) 0;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 4px;
  background-color: var(--color-border);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
  border-radius: var(--radius-full);
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  width: 50%;
  box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
  left: 0;
}

.timeline-item:nth-child(even) {
  left: 50%;
}

.timeline-content {
  padding: var(--space-20);
  background: var(--color-surface);
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-card-border);
  box-shadow: var(--shadow-md);
  transition: all var(--duration-normal) var(--ease-standard);
}

.timeline-content::after {
  content: " ";
  position: absolute;
  top: 28px;
  width: 0;
  height: 0;
  border: 10px solid transparent;
}

.timeline-item:nth-child(odd) .timeline-content::after {
  right: -20px;
  border-left-color: var(--color-card-border);
}
.timeline-item:nth-child(odd) .timeline-content::before {
  content: " ";
  position: absolute;
  top: 29px;
  right: -18px;
  width: 0;
  height: 0;
  border: 9px solid transparent;
  border-left-color: var(--color-surface);
  z-index: 1;
}

.timeline-item:nth-child(even) .timeline-content::after {
  left: -20px;
  border-right-color: var(--color-card-border);
}
.timeline-item:nth-child(even) .timeline-content::before {
  content: " ";
  position: absolute;
  top: 29px;
  left: -18px;
  width: 0;
  height: 0;
  border: 9px solid transparent;
  border-right-color: var(--color-surface);
  z-index: 1;
}

.timeline-marker {
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: var(--color-gray-300);
  border: 4px solid var(--color-surface);
  top: 28px;
  border-radius: 50%;
  z-index: 1;
  box-shadow: var(--shadow-sm);
  transition: all var(--duration-normal) ease;
}

.timeline-item:nth-child(odd) .timeline-marker {
  right: -10px;
}

.timeline-item:nth-child(even) .timeline-marker {
  left: -10px;
}

.timeline-header {
    display: flex;
    align-items: center;
    gap: var(--space-12);
    margin-bottom: var(--space-8);
}

.timeline-icon {
    font-size: var(--font-size-xl);
    color: var(--color-primary);
    background-color: var(--color-secondary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.timeline-content h4 {
    margin: 0;
    font-size: var(--font-size-lg);
    color: var(--color-text);
}

.timeline-date {
    margin: 0;
    padding-top: var(--space-4);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--color-text-secondary);
}

/* Timeline Item States */
.timeline-item--past .timeline-content {
    opacity: 0.6;
    background-color: var(--color-gray-200);
}
.timeline-item--past .timeline-content::after {
    border-left-color: var(--color-gray-200);
    border-right-color: var(--color-gray-200);
}
.timeline-item--past .timeline-content::before {
    border-left-color: var(--color-gray-200);
    border-right-color: var(--color-gray-200);
}

.timeline-item--past .timeline-marker {
    background-color: var(--color-gray-400);
}

.timeline-item--past .timeline-icon {
    color: var(--color-text-secondary);
    background-color: var(--color-border);
}

.timeline-item--next .timeline-marker {
    background-color: var(--color-primary);
    transform: scale(1.2);
}

.timeline-item--next .timeline-content {
    border-color: var(--color-primary);
}

@keyframes glow {
    0% { box-shadow: 0 0 5px var(--color-focus-ring); }
    50% { box-shadow: 0 0 20px var(--color-focus-ring); }
    100% { box-shadow: 0 0 5px var(--color-focus-ring); }
}

.timeline-item--next .timeline-content {
    animation: glow 2.5s infinite;
}

.theme-icon {
    /* Sizing and Shape */
    width: 60px;
    height: 60px;
    flex-shrink: 0; /* Prevent the icon from shrinking */
    
    /* Content Alignment */
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* Font and Color */
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);

    /* Background and Border */
    background-color: var(--color-secondary);
    border: 1px solid var(--color-border);
    border-radius: 50%; /* Makes it a circle */
    
    /* Spacing */
    margin-right: var(--space-20); /* Add space between the icon and the text */
    
    /* Animation */
    transition: all var(--duration-normal) var(--ease-standard);
}
/* ADD THIS NEW CSS FOR THE HEADER IMAGES */
.track-header-image {
    /* Sizing and Shape */
    width: 70px;
    height: 70px;
    flex-shrink: 0; /* Prevents the image from shrinking */
    
    /* Appearance */
    object-fit: cover; /* Ensures the image fills the space without distortion */
    border-radius: 50%; /* Makes it a circle */
    border: 2px solid var(--color-border);

    /* Spacing */
    margin-right: var(--space-24); /* Adds space between the image and the text */

    /* Animation */
    transition: transform 0.3s var(--ease-standard);
}

.track-header:hover .track-header-image {
    transform: scale(1.08); /* A nice hover effect */
}
.track-header:hover .theme-icon {
    transform: scale(1.05);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-sm);
}

/* We also need to remove the margin from the description inside the header */
.track-header .theme-content .theme-description {
    margin-top: 0; /* REMOVED margin-top: 0.25rem; */
    color: var(--color-text-secondary);
}
.tracks-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.enhanced-theme-card--interactive {
    flex-direction: column;
    align-items: stretch;
}
        
.track-header {
    display: flex;
    align-items: center;
    width: 100%;
    cursor: pointer;
    padding: 1rem;
    box-sizing: border-box;
}

.track-header .theme-icon {
    flex-shrink: 0;
}

.track-header .theme-content {
    flex-grow: 1;
    padding-right: 1rem;
}
        
.track-header .theme-content .theme-description {
    margin-top: 0.25rem;
    color: var(--color-text-secondary);
}

.toggle-icon {
    font-size: 2rem;
    font-weight: 300;
    color: var(--color-text);
    transition: transform 0.3s ease-out;
    padding: 0 0.5rem;
}

.track-header.active .toggle-icon {
    transform: rotate(45deg);
    color: var(--color-primary);
}
        
.track-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s ease-in-out, padding 0.5s ease-in-out;
    padding: 0 2rem;
    border-top: 1px solid transparent;
}

.track-details.show {
    max-height: 1200px;
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--color-border);
}

.track-details ul {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
    column-count: 2;
    column-gap: 2rem;
}
        
.track-details li {
    padding: 0.4rem 0;
    color: var(--color-text-secondary);
    font-size: 0.95rem;
}

/* ================================================= */
/* ================= RESPONSIVE DESIGN ============= */
/* ================================================= */

@media (max-width: 1100px) {
  
  /* === MOBILE NAVIGATION STYLES (THE FIX) === */
  .nav-toggle {
    display: flex; /* Show the hamburger icon */
    z-index: 1001; /* Make sure it's on top of other content */
  }

  .nav-menu {
    /* Position the menu as a sidebar that slides in */
    position: fixed;
    top: 0;
    right: -100%; /* Start completely off-screen to the right */
    width: 280px;  /* Set a fixed width for the menu */
    height: 100vh; /* Make it full height */
    background-color: var(--color-surface);
    
    /* Arrange links vertically */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--space-24);
    
    /* Add smooth animation */
    transition: right 0.4s ease-in-out;

    /* Add a subtle shadow for depth */
    box-shadow: -4px 0px 15px rgba(0, 0, 0, 0.1);
  }

  /* This is the crucial part that the JavaScript toggles */
  .nav-menu.active {
    right: 0; /* Slide the menu into view */
  }

  .nav-link {
    font-size: var(--font-size-xl); /* Make text larger for easy tapping */
    width: 100%;
    text-align: center;
  }
  
  /* Ensure the main content doesn't hide behind the fixed navbar */
  main {
      padding-top: 0px; /* Adjust this value to match your navbar's height */
  }
  /* === END OF MOBILE NAVIGATION FIX === */


  .hero-title {
    font-size: var(--font-size-2xl);
  }

  .hero-subtitle {
    font-size: var(--font-size-xl);
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .enhanced-contact {
    grid-template-columns: 1fr;
  }

  .enhanced-registration {
    grid-template-columns: 1fr;
  }

  .enhanced-venue {
    grid-template-columns: 1fr;
  }

  .platform-info {
    flex-direction: column;
    text-align: center;
  }

  .enhanced-grid {
    grid-template-columns: 1fr;
  }

  .themes-grid {
    grid-template-columns: 1fr;
  }

  .enhanced-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .enhanced-features {
    grid-template-columns: 1fr;
  }

  .theme-stats {
    justify-content: center;
  }

  .category-header {
    flex-direction: column;
    text-align: center;
    gap: var(--space-12);
  }
}

@media (max-width: 768px) {
  .track-details ul {
    column-count: 1;
  }
  
  .timeline::after {
    left: 31px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }

  .timeline-item:nth-child(even) {
    left: 0%;
  }

  .timeline-marker {
    left: 31px;
  }

  .timeline-item:nth-child(odd) .timeline-marker,
  .timeline-item:nth-child(even) .timeline-marker {
    transform: translateX(-50%);
  }

  .timeline-content::after,
  .timeline-item:nth-child(odd) .timeline-content::after,
  .timeline-item:nth-child(even) .timeline-content::after {
    left: -20px;
    border-right-color: var(--color-card-border);
    border-left-width: 0;
  }
  
  .timeline-content::before,
  .timeline-item:nth-child(odd) .timeline-content::before,
  .timeline-item:nth-child(even) .timeline-content::before {
    left: -18px;
    border-right-color: var(--color-surface);
    border-left-width: 0;
  }
}

@media (max-width: 680px) {
  .hero-content {
    padding: var(--space-16);
  }

  .section {
    padding: var(--space-24) 0;
  }

  .enhanced-stats {
    grid-template-columns: 1fr;
  }

  .sponsors-grid {
    flex-direction: column;
    align-items: center;
  }

  .patrons-grid {
    grid-template-columns: 1fr;
  }

  .committee-grid {
    grid-template-columns: 1fr;
  }

  .enhanced-guidelines-grid {
    grid-template-columns: 1fr;
  }

  .enhanced-reg-policies {
    grid-template-columns: 1fr;
  }

  .platform-logo {
    font-size: 2.5rem;
  }

  .template-icon {
    font-size: 2rem;
  }

  .map-embed {
    height: 300px;
  }

  .enhanced-registration {
    grid-template-columns: 1fr;
  }

  .themes-grid {
    grid-template-columns: 1fr;
  }

  .theme-stats {
    flex-direction: column;
    align-items: center;
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Animation classes */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all var(--duration-normal) var(--ease-standard);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Loading animations */
@keyframes shimmer {
  0% {
    background-position: -200px 0;
  }
  100% {
    background-position: calc(200px + 100%) 0;
  }
}

.loading {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200px 100%;
  animation: shimmer 1.5s infinite;
}

/* Dark mode adjustments */
@media (prefers-color-scheme: dark) {
  .navbar {
    background: #343A40;
  }

  .nav-link {
    color: var(--color-gray-300);
  }
  
  .nav-link:hover {
    color: var(--color-white);
  }

  .nav-link.active {
    background: var(--color-teal-400);
    color: var(--color-slate-900);
  }
  
  .hero-background {
    background: linear-gradient(135deg, var(--color-teal-700) 0%, var(--color-slate-900) 50%, var(--color-charcoal-800) 100%);
  }
}

[data-color-scheme="dark"] .navbar {
  background: rgba(15, 23, 42, 0.9);
}

[data-color-scheme="dark"] .nav-link {
  color: var(--color-gray-300);
}

[data-color-scheme="dark"] .nav-link:hover {
  color: var(--color-white);
}

[data-color-scheme="dark"] .nav-link.active {
  background: var(--color-teal-400);
  color: var(--color-slate-900);
}

[data-color-scheme="dark"] .hero-background {
  background: linear-gradient(135deg, var(--color-teal-700) 0%, var(--color-slate-900) 50%, var(--color-charcoal-800) 100%);
}

/* Additional animations */
@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.scale-in {
  animation: fadeInScale 0.6s ease-out;
}

/* Enhanced scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-background);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--color-primary), var(--color-teal-600));
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--color-teal-600), var(--color-primary));
}

/* Modal Styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal.hidden {
  display: none;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
}

.modal-content {
  position: relative;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: modalSlideIn 0.3s ease-out;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-24);
  border-bottom: 1px solid var(--color-card-border);
  background: linear-gradient(135deg, var(--color-primary), var(--color-teal-600));
  color: white;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.modal-close {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.modal-body {
  padding: var(--space-24);
}

.modal-footer {
  padding: var(--space-24);
  border-top: 1px solid var(--color-card-border);
  display: flex;
  gap: var(--space-16);
  justify-content: flex-end;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.guideline-section {
  margin-bottom: var(--space-24);
}

.guideline-section h4 {
  color: var(--color-text);
  margin-bottom: var(--space-12);
}

.guideline-section ul {
  margin: 0;
  padding-left: var(--space-20);
  color: var(--color-text-secondary);
}

.guideline-section li {
  margin-bottom: var(--space-8);
}
