: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(59, 130, 246, 0.08); /* Light blue */
  --color-bg-2: rgba(245, 158, 11, 0.08); /* Light yellow */
  --color-bg-3: rgba(34, 197, 94, 0.08); /* Light green */
  --color-bg-4: rgba(239, 68, 68, 0.08); /* Light red */
  --color-bg-5: rgba(147, 51, 234, 0.08); /* Light purple */
  --color-bg-6: rgba(249, 115, 22, 0.08); /* Light orange */
  --color-bg-7: rgba(236, 72, 153, 0.08); /* Light pink */
  --color-bg-8: rgba(6, 182, 212, 0.08); /* Light 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: 11px;
  --font-size-sm: 12px;
  --font-size-base: 14px;
  --font-size-md: 14px;
  --font-size-lg: 16px;
  --font-size-xl: 18px;
  --font-size-2xl: 20px;
  --font-size-3xl: 24px;
  --font-size-4xl: 30px;
  --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(29, 78, 216, 0.15); /* Dark blue */
    --color-bg-2: rgba(180, 83, 9, 0.15); /* Dark yellow */
    --color-bg-3: rgba(21, 128, 61, 0.15); /* Dark green */
    --color-bg-4: rgba(185, 28, 28, 0.15); /* Dark red */
    --color-bg-5: rgba(107, 33, 168, 0.15); /* Dark purple */
    --color-bg-6: rgba(194, 65, 12, 0.15); /* Dark orange */
    --color-bg-7: rgba(190, 24, 93, 0.15); /* Dark pink */
    --color-bg-8: rgba(8, 145, 178, 0.15); /* 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(29, 78, 216, 0.15); /* Dark blue */
  --color-bg-2: rgba(180, 83, 9, 0.15); /* Dark yellow */
  --color-bg-3: rgba(21, 128, 61, 0.15); /* Dark green */
  --color-bg-4: rgba(185, 28, 28, 0.15); /* Dark red */
  --color-bg-5: rgba(107, 33, 168, 0.15); /* Dark purple */
  --color-bg-6: rgba(194, 65, 12, 0.15); /* Dark orange */
  --color-bg-7: rgba(190, 24, 93, 0.15); /* Dark pink */
  --color-bg-8: rgba(8, 145, 178, 0.15); /* 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;
}

*,
*::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: dark) {
  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');
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Orbitron', monospace;
    background: #0a0a0a;
    color: #ffffff;
    overflow-x: hidden;
    line-height: 1.6;
}

html {
    scroll-behavior: smooth;
}

/* Loading Screen Styles */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #0a0a0a;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 1.5s ease-out, transform 2.0s ease-out;
}

.loading-screen.fade-out {
    opacity: 0;
    transform: scale(1.05);
    pointer-events: none;
}

.stars-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #ffffff;
    border-radius: 50%;
    animation: twinkle 1.5s infinite alternate;
}

.star:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.star:nth-child(2) { top: 80%; left: 90%; animation-delay: 0.3s; }
.star:nth-child(3) { top: 50%; left: 20%; animation-delay: 0.6s; }
.star:nth-child(4) { top: 30%; left: 80%; animation-delay: 0.9s; }
.star:nth-child(5) { top: 70%; left: 60%; animation-delay: 1.2s; }
.star:nth-child(6) { top: 40%; left: 40%; animation-delay: 0.2s; }
.star:nth-child(7) { top: 60%; left: 10%; animation-delay: 0.5s; }
.star:nth-child(8) { top: 10%; left: 70%; animation-delay: 0.8s; }
.star:nth-child(9) { top: 90%; left: 30%; animation-delay: 1.1s; }
.star:nth-child(10) { top: 25%; left: 50%; animation-delay: 1.4s; }

@keyframes twinkle {
    0% { opacity: 0.3; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.3); }
}

.loading-content {
    text-align: center;
    z-index: 2;
}

.loading-spinner {
    position: relative;
    width: 60px;
    height: 60px;
    margin: 0 auto 30px;
}

.spinner-ring {
    position: absolute;
    border: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
}

.spinner-ring:nth-child(1) {
    width: 60px;
    height: 60px;
    border-top: 2px solid #f99b05c4;
    border-right: 2px solid #f99b05c4;
    animation-delay: 0s;
}

.spinner-ring:nth-child(2) {
    width: 40px;
    height: 40px;
    top: 10px;
    left: 10px;
    border-top: 2px solid #ea4242;
    border-left: 2px solid #ea4242;
    animation-delay: 0.3s;
    animation-direction: reverse;
}

.spinner-ring:nth-child(3) {
    width: 20px;
    height: 20px;
    top: 20px;
    left: 20px;
    border-bottom: 2px solid #800080;
    border-right: 2px solid #800080;
    animation-delay: 0.6s;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.terminal-text {
    font-family: 'Space Mono', monospace;
    font-size: 16px;
    color: #f99b05c4;
    margin-bottom: 30px;
}

.cursor {
    animation: blink 0.8s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.skip-button {
    position: absolute;
    top: 30px;
    right: 30px;
    background: rgba(249, 155, 5, 0.2);
    color: #f99b05c4;
    border: 1px solid rgba(249, 155, 5, 0.5);
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Orbitron', monospace;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
}

.skip-button:hover {
    background: rgba(249, 155, 5, 0.3);
    border-color: #f99b05c4;
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(249, 155, 5, 0.3);
}

.enter-button {
    background: linear-gradient(45deg, rgba(166, 60, 60, 0.745), #ea4242, #800080);
    color: #ffffff;
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Orbitron', monospace;
    letter-spacing: 1px;
    box-shadow: 0 0 20px rgba(249, 155, 5, 0.3);
}

.enter-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(249, 155, 5, 0.5);
}

.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: radial-gradient(circle, #f99b05c4, transparent);
    border-radius: 50%;
    animation: float 4s infinite ease-in-out;
}

.particle:nth-child(1) { left: 20%; animation-delay: 0s; }
.particle:nth-child(2) { left: 40%; animation-delay: 0.8s; }
.particle:nth-child(3) { left: 60%; animation-delay: 1.6s; }
.particle:nth-child(4) { left: 80%; animation-delay: 2.4s; }
.particle:nth-child(5) { left: 10%; animation-delay: 3.2s; }

@keyframes float {
    0%, 100% { transform: translateY(100vh) scale(0); opacity: 0; }
    10% { opacity: 1; transform: scale(1); }
    90% { opacity: 1; }
    100% { transform: translateY(-100px) scale(0); }
}

.hidden {
    display: none !important;
}

/* Main Portfolio Styles - CRITICAL FIX */
.main-portfolio {
    position: relative;
    min-height: 100vh;
    display: block; /* Ensure it's always ready to be displayed */
    opacity: 1; /* Default opacity ready for transition */
}

.main-portfolio.hidden {
    display: block !important; /* Override hidden class but keep invisible */
    opacity: 0; /* Use opacity instead of display none */
    pointer-events: none; /* Prevent interaction while hidden */
}

/* Space Background */
.space-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: #0a0a0a;
}

.stars {
    position: absolute;
    width: 100%;
    height: 100%;
    background: transparent;
}

.stars::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(2px 2px at 20% 30%, #fff, transparent),
        radial-gradient(2px 2px at 40% 70%, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 60% 10%, #fff, transparent),
        radial-gradient(1px 1px at 90% 40%, rgba(255,255,255,0.6), transparent),
        radial-gradient(2px 2px at 30% 80%, #fff, transparent),
        radial-gradient(1px 1px at 70% 90%, rgba(255,255,255,0.7), transparent);
    background-size: 550px 550px, 350px 350px, 250px 250px, 150px 150px, 450px 450px, 200px 200px;
    animation: moveStars 20s linear infinite;
}

@keyframes moveStars {
    0% { transform: translateY(0); }
    100% { transform: translateY(-550px); }
}

.nebula {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(166, 60, 60, 0.1), transparent 50%),
        radial-gradient(ellipse at 80% 30%, rgba(234, 66, 66, 0.08), transparent 50%),
        radial-gradient(ellipse at 40% 80%, rgba(128, 0, 128, 0.05), transparent 50%);
    animation: nebulaPulse 8s ease-in-out infinite alternate;
}

@keyframes nebulaPulse {
    0% { opacity: 0.3; }
    100% { opacity: 0.6; }
}

.floating-particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.cosmic-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: #f99b05c4;
    border-radius: 50%;
    box-shadow: 0 0 10px #f99b05c4;
    animation: cosmicFloat 15s infinite linear;
}

.cosmic-particle:nth-child(1) { left: 10%; animation-delay: 0s; }
.cosmic-particle:nth-child(2) { left: 30%; animation-delay: 2s; }
.cosmic-particle:nth-child(3) { left: 50%; animation-delay: 4s; }
.cosmic-particle:nth-child(4) { left: 70%; animation-delay: 6s; }
.cosmic-particle:nth-child(5) { left: 90%; animation-delay: 8s; }
.cosmic-particle:nth-child(6) { left: 20%; animation-delay: 10s; }

@keyframes cosmicFloat {
    0% { transform: translateY(100vh) translateX(-20px) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100px) translateX(20px) rotate(360deg); opacity: 0; }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 0;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(249, 155, 5, 0.2);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.95);
    box-shadow: 0 2px 20px rgba(249, 155, 5, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
}

.logo-accent {
    color: #f99b05c4;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(45deg, #f99b05c4, #ea4242);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: #ffffff;
    margin: 3px 0;
    transition: 0.3s;
}

/* Sections */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 4rem;
    background: linear-gradient(45deg, #f99b05c4, #ea4242, #800080);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.glitch-text {
    background: linear-gradient(45deg, rgba(166, 60, 60, 0.745), #ea4242, #800080);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textGlow 2s ease-in-out infinite alternate;
}

@keyframes textGlow {
    0% { text-shadow: 0 0 10px rgba(249, 155, 5, 0.5); }
    100% { text-shadow: 0 0 20px rgba(249, 155, 5, 0.8), 0 0 30px rgba(234, 66, 66, 0.5); }
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #f99b05c4;
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    font-family: 'Orbitron', monospace;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(45deg, rgba(166, 60, 60, 0.745), #ea4242, #800080);
    color: #ffffff;
}

.btn-outline {
    background: transparent;
    border: 2px solid #f99b05c4;
    color: #f99b05c4;
}

.btn-outline:hover {
    background: #f99b05c4;
    color: #0a0a0a;
}

/* Profile Image */
.profile-container {
  position: relative;
  width: 360px;
  height: 360px;
  margin: 0 auto;
  z-index: 1;
}

/* Radial glowing halo light behind profile card */
.profile-halo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 52% 48%,
    #ea424230 32%,
    #f99b0530 62%,
    #80008016 85%,
    transparent 100%
  );
  filter: blur(7px);
  opacity: 0.7;
  z-index: 1;
  pointer-events: none;
}

.orbit-ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-name: orbit-rotate;
}

/* Ring 1: thin partial arc with subtle glow */
.ring-1 {
  width: 300px;
  height: 300px;
  top: 30px;
  left: 30px;
  opacity: 0.35;
  border: none;
  background: conic-gradient(
    #ea4242bb 0deg 50deg,
    transparent 50deg 80deg,
    #ea4242bb 80deg 140deg,
    transparent 140deg 360deg
  );
  box-shadow: 0 0 6px 2px #ea424299;
  animation-duration: 14s;
}

/* Ring 2: thinner arc with reverse spin */
.ring-2 {
  width: 320px;
  height: 320px;
  top: 20px;
  left: 20px;
  opacity: 0.28;
  border: none;
  background: conic-gradient(
    transparent 0deg 40deg,
    #f99b05bb 40deg 95deg,
    transparent 95deg 140deg,
    #f99b05bb 140deg 195deg,
    transparent 195deg 360deg
  );
  box-shadow: 0 0 5px 2px #f99b0529;
  animation-duration: 20s;
  animation-direction: reverse;
}

/* Ring 3: smallest and thinnest arc */
.ring-3 {
  width: 340px;
  height: 340px;
  top: 10px;
  left: 10px;
  opacity: 0.22;
  border: none;
  background: conic-gradient(
    #800080bb 0deg 30deg,
    transparent 30deg 60deg,
    #800080bb 60deg 100deg,
    transparent 100deg 160deg,
    #800080bb 160deg 190deg,
    transparent 190deg 360deg
  );
  box-shadow: 0 0 4px 1.5px #80008029;
  animation-duration: 26s;
}

/* Rotation animation */
@keyframes orbit-rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Glassmorphism card wrapping profile image */
.profile-image {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(30, 22, 50, 0.19);
  border: 2px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 6px 28px 2px rgba(234, 66, 66, 0.06),
    0 4px 36px 3px rgba(128, 0, 128, 0.08);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  overflow: hidden;
}

/* Profile photo must fill card exactly, be circular */
.profile-image img.profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  border: none;
  box-shadow: 0 2px 18px #ea424250;
  background: #140c24;
}

/* Small, subtle twinkling space dust particles */
.space-particle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    #fffefa 65%,
    #f99b0599 92%,
    transparent 97%
  );
  opacity: 0.72;
  z-index: 5;
  animation: space-pulse 3.5s infinite ease-in-out alternate;
}

.sp-1 {
  width: 10px;
  height: 10px;
  top: 44px;
  left: 362px;
  animation-delay: 0.6s;
}

.sp-2 {
  width: 7px;
  height: 7px;
  top: 95px;
  left: 39px;
  animation-delay: 2.1s;
}

.sp-3 {
  width: 8px;
  height: 8px;
  top: 322px;
  left: 360px;
  animation-delay: 1.7s;
}

@keyframes space-pulse {
  0% {
    opacity: 0.35;
    transform: scale(1);
  }
  100% {
    opacity: 0.82;
    transform: scale(1.22);
  }
}


/* Floating Animation */
.floating {
    animation: floating 6s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Cosmic Effects */
.cosmic-glow {
    box-shadow: 0 0 20px rgba(249, 155, 5, 0.3);
    transition: all 0.3s ease;
}

.cosmic-glow:hover {
    box-shadow: 0 0 40px rgba(249, 155, 5, 0.6);
    transform: translateY(-5px);
}

.cosmic-border {
    border: 1px solid rgba(249, 155, 5, 0.3);
    backdrop-filter: blur(10px);
}

.cosmic-card {
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(249, 155, 5, 0.2);
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.cosmic-card:hover {
    border-color: rgba(249, 155, 5, 0.4);
    transform: translateY(-10px);
    box-shadow: 0 10px 40px rgba(249, 155, 5, 0.2);
}

/* About Section */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: #f99b05c4;
    margin-bottom: 0.5rem;
}

/* Journey/Timeline Section */
.experience {
    padding: 120px 0;
    position: relative;
}

.journey-description {
    text-align: center;
    margin-bottom: 4rem;
}

.journey-description p {
    font-size: 1.1rem;
    opacity: 0.8;
    color: #f99b05c4;
}

.timeline-journey {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0;
}

.journey-path {
    position: absolute;
    left: 50%;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(249, 155, 5, 0.3) 10%,
        rgba(234, 66, 66, 0.4) 30%,
        rgba(128, 0, 128, 0.3) 50%,
        rgba(249, 155, 5, 0.4) 70%,
        rgba(234, 66, 66, 0.3) 90%,
        transparent 100%
    );
    transform: translateX(-50%);
    border-radius: 2px;
    box-shadow: 0 0 20px rgba(249, 155, 5, 0.3);
    animation: pathGlow 3s ease-in-out infinite alternate;
}

@keyframes pathGlow {
    0% { box-shadow: 0 0 20px rgba(249, 155, 5, 0.3); }
    100% { box-shadow: 0 0 30px rgba(249, 155, 5, 0.6), 0 0 40px rgba(234, 66, 66, 0.3); }
}

.journey-item {
    position: relative;
    margin: 4rem 0;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.journey-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.journey-item.left {
    text-align: right;
    margin-right: 55%;
}

.journey-item.right {
    text-align: left;
    margin-left: 55%;
}

.journey-node {
    position: absolute;
    width: 60px;
    height: 60px;
    z-index: 2;
}

.journey-item.left .journey-node {
    right: -110px;
    top: 50%;
    transform: translateY(-50%);
}

.journey-item.right .journey-node {
    left: -110px;
    top: 50%;
    transform: translateY(-50%);
}

.node-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(249, 155, 5, 0.3), transparent 70%);
    border-radius: 50%;
    animation: nodeGlow 2s ease-in-out infinite alternate;
}

@keyframes nodeGlow {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.2); opacity: 1; }
}

.node-core {
    position: absolute;
    width: 40px;
    height: 40px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(45deg, rgba(166, 60, 60, 0.745), #ea4242, #800080);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(249, 155, 5, 0.4);
    border: 2px solid rgba(249, 155, 5, 0.6);
}

.node-core i {
    font-size: 1.2rem;
    color: #ffffff;
}

.journey-card {
    position: relative;
    max-width: 400px;
    padding: 2rem;
    margin-bottom: 0;
    transform: translateY(0);
    transition: all 0.4s ease;
}

.journey-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 60px rgba(249, 155, 5, 0.3);
}

.journey-year {
    position: absolute;
    top: -10px;
    left: 20px;
    background: linear-gradient(45deg, rgba(166, 60, 60, 0.745), #ea4242, #800080);
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 0 15px rgba(249, 155, 5, 0.3);
}

.journey-card h3 {
    font-size: 1.4rem;
    margin: 1rem 0 0.5rem 0;
    color: #f99b05c4;
}

.journey-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #ea4242;
    font-weight: 500;
}

.company {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.date {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    margin-bottom: 1rem;
    font-style: italic;
}

.journey-card p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
    line-height: 1.6;
}

.journey-type {
    display: inline-block;
    padding: 0.3rem 1rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.journey-type.education {
    background: rgba(52, 152, 219, 0.2);
    color: #3498db;
    border: 1px solid rgba(52, 152, 219, 0.3);
}

.journey-type.internship {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.journey-type.achievement {
    background: rgba(230, 126, 34, 0.2);
    color: #e67e22;
    border: 1px solid rgba(230, 126, 34, 0.3);
}

.journey-type.projects {
    background: rgba(155, 89, 182, 0.2);
    color: #9b59b6;
    border: 1px solid rgba(155, 89, 182, 0.3);
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.skill-item {
    text-align: center;
    transition: all 0.3s ease;
}

.skill-item i {
    font-size: 3rem;
    color: #f99b05c4;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.skill-item:hover i {
    color: #ea4242;
    transform: scale(1.2);
}

.skill-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

/* Projects Section */
.projects-section {
  padding: 70px 20px;
  background-color: #0a0a0a;
  color: #f99b05;
}

.section-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 3rem;
  text-align: center;
  color: #ea4242;
  margin-bottom: 40px;
  text-shadow: 0 0 12px #f99b05;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.project-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #121010;
    border: 1.6px solid rgba(249, 155, 5, 0.10);
    border-radius: 18px;
    box-shadow: 0 3px 20px rgba(249, 155, 5, 0.12);
    transition: box-shadow 0.3s ease;
}

.project-card:hover {
  box-shadow: 0 6px 28px rgba(234, 66, 66, 0.25), 0 0 12px 3px rgba(249, 155, 5, 0.25);
}

.project-image {
    width: 100%;
    height: 245px; /* Previously 180px, increased ~36% */
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
    overflow: hidden;
    background: #222;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}


.project-content {
  padding: 20px 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.project-content h3 {
  color: #f99b05c4;
  margin-bottom: 1rem;
  font-size: 1.4rem;
  font-family: 'Orbitron', sans-serif;
}

.project-content p {
  margin-bottom: 1.5rem;
  opacity: 0.9;
  color: #fff;
  font-family: 'Space Mono', monospace;
  line-height: 1.5;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tag {
  background: rgba(249, 155, 5, 0.2);
  color: #f99b05c4;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  border: 1px solid rgba(249, 155, 5, 0.3);
  font-family: 'Orbitron', sans-serif;
}

.project-links {
  display: flex;
  gap: 1rem;
  margin-top: auto;
}

.project-link {
  color: #ffffff; /* Make text fully white for maximum contrast */
  background: linear-gradient(90deg, #f99b05 44%, #ea4242 88%);
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-family: 'Orbitron', sans-serif;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(249, 155, 5, 0.2);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.6); /* subtle shadow for readability */
}

.project-link i {
  font-size: 1rem;
  opacity: 1; /* Make icon fully opaque */
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.6);
}

.project-link:hover {
  color: #fff;
  background: linear-gradient(90deg, #ea4242 40%, #f99b05 100%);
  box-shadow: 0 4px 12px rgba(234, 66, 66, 0.4), 0 0 10px 3px rgba(249, 155, 5, 0.5);
  transform: translateY(-2px) scale(1.03);
}


/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 2rem;
}

.contact-item {
    text-align: center;
    margin-bottom: 2rem;
}

.contact-item i {
    font-size: 2rem;
    color: #f99b05c4;
    margin-bottom: 1rem;
}

.contact-item h3 {
    margin-bottom: 0.5rem;
    color: #ea4242;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(249, 155, 5, 0.1);
    border: 2px solid rgba(249, 155, 5, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f99b05c4;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(249, 155, 5, 0.2);
    border-color: #f99b05c4;
    transform: scale(1.1);
}

/* Contact Form */
.contact-form {
    max-width: 500px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #f99b05c4;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid rgba(249, 155, 5, 0.3);
    border-radius: 8px;
    color: #ffffff;
    font-family: 'Orbitron', monospace;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #f99b05c4;
    box-shadow: 0 0 10px rgba(249, 155, 5, 0.2);
}

/* Chatbot */
.chatbot-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 350px;
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid rgba(249, 155, 5, 0.3);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
}

.chatbot-header {
    padding: 1rem;
    background: linear-gradient(45deg, rgba(166, 60, 60, 0.745), #ea4242, #800080);
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.chatbot-toggle {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.2rem;
    cursor: pointer;
}

.chatbot-body {
    max-height: 400px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.chatbot-body.collapsed {
    max-height: 0;
}

.chatbot-messages {
    max-height: 300px;
    overflow-y: auto;
    padding: 1rem;
}

.message {
    margin-bottom: 1rem;
    padding: 0.8rem;
    border-radius: 10px;
    max-width: 80%;
}

.bot-message {
    background: rgba(249, 155, 5, 0.1);
    border: 1px solid rgba(249, 155, 5, 0.2);
    color: #ffffff;
}

.user-message {
    background: rgba(234, 66, 66, 0.1);
    border: 1px solid rgba(234, 66, 66, 0.2);
    color: #ffffff;
    margin-left: auto;
}

.chatbot-input-container {
    padding: 1rem;
    border-top: 1px solid rgba(249, 155, 5, 0.2);
    display: flex;
    gap: 0.5rem;
}

.chatbot-input-container input {
    flex: 1;
    padding: 0.8rem;
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid rgba(249, 155, 5, 0.3);
    border-radius: 20px;
    color: #ffffff;
    font-family: 'Orbitron', monospace;
}

.chatbot-send {
    background: linear-gradient(45deg, rgba(166, 60, 60, 0.745), #ea4242, #800080);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chatbot-send:hover {
    transform: scale(1.1);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, rgba(166, 60, 60, 0.745), #ea4242, #800080);
    border: none;
    border-radius: 50%;
    color: #ffffff;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(100px);
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px) scale(1.1);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(10, 10, 10, 0.95);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        backdrop-filter: blur(10px);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .skills-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .chatbot-container {
        width: 90%;
        right: 5%;
    }

    .profile-container {
        width: 250px;
        height: 250px;
    }

    .profile-image {
        width: 150px;
        height: 150px;
    }

    .ring-1 { width: 200px; height: 200px; top: 25px; left: 25px; }
    .ring-2 { width: 220px; height: 220px; top: 15px; left: 15px; }
    .ring-3 { width: 250px; height: 250px; top: 0px; left: 0px; }

    .skip-button {
        top: 20px;
        right: 20px;
        padding: 8px 16px;
        font-size: 12px;
    }

    /* Mobile Journey Timeline */
    .journey-item.left,
    .journey-item.right {
        margin-left: 0;
        margin-right: 0;
        text-align: center;
        padding: 0 3rem;
    }

    .journey-node {
        left: 50% !important;
        right: auto !important;
        transform: translate(-50%, -50%) !important;
    }

    .journey-path {
        left: 50%;
    }

    .journey-card {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .journey-item {
        padding: 0 2rem;
    }

    .journey-year {
        position: static;
        display: inline-block;
        margin-bottom: 1rem;
    }
}