/* Navy Blue Theme (Default) */
:root {
  --bg: #001f3f;
  --surface: #002a54;
  --surface-2: #003366;
  --text: #ffffff;
  --muted: #b0c4de;
  --primary: #4a90e2;
  --primary-2: #5ba3f5;
  --danger: #e11d48;
  --glass: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.1);
  --shadow: rgba(0, 0, 0, 0.3);
}

/* Dark theme overrides */
[data-theme="dark"] {
  --bg: #0b0f17;
  --surface: #0f1624;
  --surface-2: #0e1320;
  --text: #e6f0ff;
  --muted: #9aa7bd;
  --primary: #6ee7ff;
  --primary-2: #a78bfa;
  --danger: #ff6b6b;
  --glass: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.08);
  --shadow: rgba(0, 0, 0, 0.5);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: radial-gradient(1200px 800px at 80% -10%, rgba(74, 144, 226, 0.1), transparent),
              radial-gradient(1000px 700px at -10% 110%, rgba(91, 163, 245, 0.08), transparent),
              var(--bg);
  transition: background-color .3s ease, color .3s ease;
  overflow-x: hidden;
}

img, video, canvas, svg, iframe {
  max-width: 100%;
}

.bg-grid::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px),
                    linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.container { width: min(1100px, 92%); margin: 0 auto; }

.site-header {
  position: sticky; top: 0; z-index: 10;
  background: linear-gradient(to bottom, rgba(0,31,63,0.95), rgba(0,42,84,0.9));
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
[data-theme="dark"] .site-header { background: linear-gradient(to bottom, rgba(11,15,23,0.85), rgba(11,15,23,0.45)); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand-logo {
  height: 75px;
  width: auto;
  object-fit: contain;
}
.brand-text { font-weight: 700; letter-spacing: 0.5px; }

/* Brand Animation on Page Load - Professional & Elegant */
.animate-brand {
  opacity: 1;
}

/* Logo Animation - Smooth Scale */
.animate-logo {
  opacity: 1;
}

/* Text Animation - Elegant Fade */
.animate-text {
  opacity: 1;
}

.nav { display: flex; align-items: center; gap: 10px; }
.nav-user { color: var(--muted); margin-right: 8px; }

.site-footer { border-top: 1px solid var(--border); margin-top: 40px; }
.footer-inner { padding: 18px 0; display: flex; justify-content: center; }
.muted { color: var(--muted); }
.pulse { color: var(--primary); }

.intro-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  letter-spacing: 0.4px;
  opacity: 1;
}

.neuron-icon {
  color: var(--primary);
  font-size: 18px;
  filter: drop-shadow(0 0 6px rgba(110, 231, 255, 0.5));
}

.page {
  position: relative;
  z-index: 1;
  padding: 32px 0 48px;
  opacity: 1;
}

.card {
  background: linear-gradient(180deg, rgba(0,42,84,0.6), rgba(0,51,102,0.4));
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 10px 40px var(--shadow);
  overflow: hidden;
  transition: all 0.3s ease;
}

.card:hover {
  /* Removed animation */
}

/* Removed unused keyframes */

/* New animations for job match results */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

[data-theme="dark"] .card { 
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03)); 
}

.card-header { 
  padding: 18px 20px; 
  border-bottom: 1px solid var(--border); 
  display: flex; 
  align-items: center; 
  gap: 12px; 
}

.card-title { 
  font-weight: 700; 
  letter-spacing: 0.3px; 
}

.card-body { 
  padding: 22px; 
}

.row { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 720px) { .row.two { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .row.three { grid-template-columns: repeat(3, 1fr); } }

.field { 
  display: flex; 
  flex-direction: column; 
  gap: 8px; 
  transition: all 0.2s ease;
  transform: translateZ(0);
  will-change: transform;
}
.label { 
  font-size: 13px; 
  color: var(--muted); 
  transition: all 0.2s ease;
  transform: translateZ(0);
  will-change: color;
}

.field:hover .label { 
  color: var(--text); 
  transform: translateX(2px);
}

/* Form element animations */
.input, .select, .textarea {
  width: 100%;
  padding: 12px 14px;
  color: var(--text);
  background: rgba(0,42,84,0.5);
  border: 1px solid var(--border);
  border-radius: 10px;
  outline: none;
  transition: border-color .2s, box-shadow .2s, transform .05s;
  appearance: none; /* Remove default browser styling for select */
  -webkit-appearance: none;
  -moz-appearance: none;
}

[data-theme="dark"] .input, [data-theme="dark"] .select, [data-theme="dark"] .textarea { 
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)); 
}

.input:focus, .select:focus, .textarea:focus {
  border-color: rgba(110, 231, 255, 0.6);
  box-shadow: 0 0 0 4px rgba(110, 231, 255, 0.08);
}

/* Custom select arrow */
.select {
  background-image: linear-gradient(45deg, transparent 50%, var(--text) 50%),
                   linear-gradient(135deg, var(--text) 50%, transparent 50%);
  background-position: calc(100% - 20px) calc(1em + 2px), calc(100% - 15px) calc(1em + 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.textarea { min-height: 96px; resize: vertical; }

/* Button hover animations */
.btn { 
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 16px; border-radius: 10px; border: 1px solid var(--border);
  color: var(--text); text-decoration: none; cursor: pointer;
  background: linear-gradient(180deg, rgba(0,42,84,0.7), rgba(0,51,102,0.5));
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transform: translateZ(0);
  will-change: transform, box-shadow;
}

/* Staggered animations for buttons */

[data-theme="dark"] .btn { 
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)); 
}

.btn:hover { 
  transform: translateY(-3px) scale(1.02); 
  box-shadow: 0 12px 30px rgba(0,0,0,0.4);
  border-color: var(--accent);
}

.btn:active { 
  transform: translateY(1px) scale(0.98); 
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  transition: all 0.1s ease;
}

/* Futuristic button glow effect */
.btn-primary::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: 0.5s;
}

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

/* Animated input fields */
.input, .select, .textarea {
  width: 100%;
  padding: 12px 14px;
  color: var(--text);
  background: rgba(0,42,84,0.5);
  border: 1px solid var(--border);
  border-radius: 10px;
  outline: none;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transform: translateZ(0);
  will-change: border-color, box-shadow, transform;
  appearance: none; /* Remove default browser styling for select */
  -webkit-appearance: none;
  -moz-appearance: none;
}

/* Staggered animations for form fields */
.field:nth-child(8) .input, .field:nth-child(8) .select, .field:nth-child(8) .textarea { animation-delay: 0.8s; }

/* Input field focus animation */
.input:focus, .select:focus, .textarea:focus {
  border-color: rgba(110, 231, 255, 0.8);
  box-shadow: 0 0 0 4px rgba(110, 231, 255, 0.15), 0 5px 15px rgba(110, 231, 255, 0.3);
  transform: translateY(-3px);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  background: rgba(0,42,84,0.7);
}

/* Custom select arrow */
.select {
  background-image: linear-gradient(45deg, transparent 50%, var(--text) 50%),
                   linear-gradient(135deg, var(--text) 50%, transparent 50%);
  background-position: calc(100% - 20px) calc(1em + 2px), calc(100% - 15px) calc(1em + 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

/* Futuristic card hover effect */
.card {
  background: linear-gradient(180deg, rgba(0,42,84,0.6), rgba(0,51,102,0.4));
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 10px 40px var(--shadow);
  overflow: hidden;
  animation: cardAppear 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  transform: translateZ(0);
  will-change: transform, box-shadow, border-color;
  cursor: default;
}

.card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  border-color: var(--accent);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, 
    transparent, 
    rgba(255,255,255,0.1), 
    transparent);
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  will-change: opacity;
}

.card:hover::before {
  opacity: 0.8;
}

.btn-primary { 
  border-color: rgba(110, 231, 255, 0.3); 
  background: linear-gradient(180deg, rgba(110,231,255,0.18), rgba(110,231,255,0.06)); 
}

.btn-ghost { 
  color: var(--muted); 
}

.btn-danger { 
  border-color: rgba(255, 107, 107, 0.3); 
  background: linear-gradient(180deg, rgba(255,107,107,0.18), rgba(255,107,107,0.06)); 
}

/* Fade in animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.error {
  padding: 10px 12px;
  border: 1px solid rgba(255, 107, 107, 0.3);
  background: linear-gradient(180deg, rgba(255,107,107,0.14), rgba(255,107,107,0.06));
  color: #ffd7d7;
  border-radius: 10px;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
  animation: fadeIn 0.8s ease-out;
}
@media (max-width: 880px) { .hero { grid-template-columns: 1fr; } }

/* Login/Register specific hero sections */
.login-hero, .register-hero {
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  animation: fadeIn 0.8s ease-out;
}

@media (max-width: 768px) {
  .login-hero, .register-hero {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.hero-title {
  font-family: Orbitron, Inter, sans-serif;
  font-size: clamp(28px, 4.4vw, 42px);
  line-height: 1.1;
  margin: 0 0 10px 0;
}
.hero-subtitle { color: var(--muted); margin: 0 0 16px 0; }
.stack { display: flex; gap: 10px; flex-wrap: wrap; }

.stack > *,
.hero > *,
.row > *,
.kpi > * {
  min-width: 0;
}

.kpi {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px;
}
.kpi-item { background: var(--glass); border: 1px solid var(--border); border-radius: 12px; padding: 12px; text-align: center; }
.kpi-val { font-weight: 700; color: var(--primary); }

.glow {
  position: relative;
}

/* Theme toggle button */
.theme-toggle { width: 44px; height: 40px; }
.theme-icon { font-size: 18px; }

/* Video block styling */
.info-video {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--glass);
}
.info-video video { width: 100%; height: auto; display: block; }


.result {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid rgba(110,231,255,0.28);
  background: linear-gradient(180deg, rgba(110,231,255,0.14), rgba(110,231,255,0.04));
  color: var(--text);
  border-radius: 12px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-wrap: break-word;
  animation: fadeInScale 0.4s ease-out;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.result-error {
  border-color: rgba(255, 107, 107, 0.3);
  background: linear-gradient(180deg, rgba(255,107,107,0.14), rgba(255,107,107,0.04));
}

.result-warning {
  border-color: rgba(255, 193, 7, 0.4);
  background: linear-gradient(180deg, rgba(255,193,7,0.14), rgba(255,193,7,0.04));
}

.helper { font-size: 12px; color: var(--muted); }

/* Upload area styling */
.upload-form { margin-bottom: 0; }
.upload-area {
  position: relative;
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: 32px 20px;
  text-align: center;
  background: var(--glass);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  margin-bottom: 16px;
  transform: translateZ(0);
  will-change: border-color, background, transform;
}
.upload-area:hover { 
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(110,231,255,0.1), rgba(110,231,255,0.05));
  transform: scale(1.01);
}
.upload-area.dragover {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(110,231,255,0.2), rgba(110,231,255,0.1));
  transform: scale(1.03);
  box-shadow: 0 0 20px rgba(110, 231, 255, 0.3);
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.upload-area.has-file {
  border-color: rgba(110,231,255,0.7);
  background: linear-gradient(180deg, rgba(110,231,255,0.15), rgba(110,231,255,0.08));
  transform: scale(1.005);
}
.file-input {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  overflow: hidden;
}
.upload-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform: translateZ(0);
  will-change: transform, color;
}
.upload-icon {
  font-size: 48px;
  opacity: 0.7;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform: translateZ(0);
  will-change: transform;
}
.upload-area:hover .upload-icon { 
  transform: scale(1.15) rotate(5deg);
  color: var(--accent);
}

.upload-area:hover .upload-label {
  color: var(--accent);
  transform: translateY(-3px);
}
.upload-text {
  font-size: 15px;
  color: var(--text);
  font-weight: 500;
}
.upload-hint {
  font-size: 12px;
  color: var(--muted);
}
.file-name {
  margin-top: 12px;
  font-size: 13px;
  color: var(--primary);
  font-weight: 500;
}

.extracted-info {
  padding: 14px;
  margin-bottom: 20px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.extracted-info div {
  font-size: 13px;
  margin-bottom: 6px;
  color: var(--text);
}

/* Suggestions section */
.suggestions-section {
  margin-top: 24px;
  padding: 18px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 12px;
}

/* Job Match Results Card Enhancements */
.jobmatch-results-card {
  animation: fadeInUp 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(0,42,84,0.6), rgba(0,51,102,0.4));
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 10px 40px var(--shadow);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.jobmatch-results-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, 
    transparent, 
    rgba(255,255,255,0.1), 
    transparent);
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.jobmatch-results-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  border-color: var(--accent);
}

.jobmatch-results-card:hover::before {
  opacity: 0.8;
}

.animated-section {
  animation: slideInLeft 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
  opacity: 0;
  animation-fill-mode: forwards;
}

/* Staggered animations for sections */
.animated-section:nth-child(1) { animation-delay: 0.1s; }
.animated-section:nth-child(2) { animation-delay: 0.3s; }
.animated-section:nth-child(3) { animation-delay: 0.5s; }
.animated-section:nth-child(4) { animation-delay: 0.7s; }
.animated-section:nth-child(5) { animation-delay: 0.9s; }

.animated-progress {
  animation: slideInRight 1s cubic-bezier(0.22, 0.61, 0.36, 1);
  transition: width 1.5s cubic-bezier(0.22, 0.61, 0.36, 1);
  position: relative;
}

.pulse-animation {
  animation: pulse 2s infinite;
  display: inline-block;
}

.skill-badge {
  animation: bounceIn 0.5s ease;
  opacity: 0;
  animation-fill-mode: forwards;
}

/* Staggered animations for skill badges */
.skill-badge:nth-child(1) { animation-delay: 0.1s; }
.skill-badge:nth-child(2) { animation-delay: 0.2s; }
.skill-badge:nth-child(3) { animation-delay: 0.3s; }
.skill-badge:nth-child(4) { animation-delay: 0.4s; }
.skill-badge:nth-child(5) { animation-delay: 0.5s; }
.skill-badge:nth-child(6) { animation-delay: 0.6s; }
.skill-badge:nth-child(7) { animation-delay: 0.7s; }
.skill-badge:nth-child(8) { animation-delay: 0.8s; }
.skill-badge:nth-child(9) { animation-delay: 0.9s; }
.skill-badge:nth-child(10) { animation-delay: 1.0s; }

.plan-step {
  animation: fadeInUp 0.6s ease;
  opacity: 0;
  animation-fill-mode: forwards;
}

.plan-step:nth-child(1) { animation-delay: 0.2s; }
.plan-step:nth-child(2) { animation-delay: 0.4s; }
.plan-step:nth-child(3) { animation-delay: 0.6s; }

.step-number {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin-right: 16px;
  flex-shrink: 0;
  animation: pulse 3s infinite;
}

.plan-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}

.plan-step {
  display: flex;
  align-items: flex-start;
}

.step-content h5 {
  margin: 0 0 8px 0;
  color: var(--text);
}

.step-content p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.improvement-plan {
  margin-top: 24px;
  padding: 20px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.suggestions-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 16px 0;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.suggestions-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.suggestion-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border-left: 3px solid;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform: translateZ(0);
  will-change: transform, box-shadow;
  position: relative;
  overflow: hidden;
}
.suggestion-item:hover {
  transform: translateX(6px) scale(1.02);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
  border-left-width: 5px;
}
.suggestion-critical {
  border-left-color: rgba(255, 107, 107, 0.6);
  background: linear-gradient(90deg, rgba(255,107,107,0.08), rgba(255,107,107,0.02));
}
.suggestion-important {
  border-left-color: rgba(255, 193, 7, 0.6);
  background: linear-gradient(90deg, rgba(255,193,7,0.08), rgba(255,193,7,0.02));
}
.suggestion-moderate {
  border-left-color: rgba(110, 231, 255, 0.6);
  background: linear-gradient(90deg, rgba(110,231,255,0.08), rgba(110,231,255,0.02));
}
.suggestion-summary {
  border-left-color: rgba(167, 139, 250, 0.6);
  background: linear-gradient(90deg, rgba(167,139,250,0.08), rgba(167,139,250,0.02));
}
.suggestion-icon {
  font-size: 20px;
  flex-shrink: 0;
  line-height: 1.2;
}
.suggestion-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  flex: 1;
}
[data-theme="light"] .suggestion-item {
  background: rgba(0, 0, 0, 0.02);
}
[data-theme="light"] .suggestion-critical {
  background: linear-gradient(90deg, rgba(255,107,107,0.12), rgba(255,107,107,0.04));
}
[data-theme="light"] .suggestion-important {
  background: linear-gradient(90deg, rgba(255,193,7,0.12), rgba(255,193,7,0.04));
}
[data-theme="light"] .suggestion-moderate {
  background: linear-gradient(90deg, rgba(110,231,255,0.12), rgba(110,231,255,0.04));
}
[data-theme="light"] .suggestion-summary {
  background: linear-gradient(90deg, rgba(167,139,250,0.12), rgba(167,139,250,0.04));
}

/* Job Match Feature Styling */
.jobmatch-form { display: flex; flex-direction: column; gap: 24px; }
.jobmatch-section {
  padding: 18px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.section-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 16px 0;
  color: var(--text);
}
.input-option { margin-bottom: 16px; }
.input-option:last-child { margin-bottom: 0; }
.option-label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
  font-weight: 500;
}
.divider {
  text-align: center;
  margin: 20px 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  position: relative;
}
.divider::before,
.divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background: var(--border);
}
.divider::before { left: 0; }
.divider::after { right: 0; }

/* Small upload area for jobmatch */
.upload-area-small {
  position: relative;
  border: 2px dashed var(--border);
  border-radius: 10px;
  padding: 16px;
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.3s ease;
}
.upload-area-small:hover { border-color: rgba(110,231,255,0.4); }
.upload-label-small {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
}
.upload-label-small span:first-child { font-size: 24px; opacity: 0.7; }
.upload-label-small span:last-child { font-size: 13px; color: var(--text); }
.file-name-small {
  margin-top: 8px;
  font-size: 12px;
  color: var(--primary);
  font-weight: 500;
}

/* Job Fit Score Display */
.fit-score-section {
  margin-bottom: 24px;
  padding: 20px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.fit-score-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.fit-score-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  color: var(--text);
}
.fit-score-value {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary);
  font-family: Orbitron, Inter, sans-serif;
}
.progress-bar-container {
  width: 100%;
  height: 32px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border);
}
.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: width 0.6s ease;
  position: relative;
  box-shadow: 0 0 20px rgba(110, 231, 255, 0.3);
}
.progress-text {
  color: var(--text);
  font-weight: 700;
  font-size: 13px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.fit-score-interpretation {
  margin-top: 12px;
  text-align: center;
}
.interpretation {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}
.interpretation.excellent {
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.2), rgba(76, 175, 80, 0.1));
  color: #4caf50;
  border: 1px solid rgba(76, 175, 80, 0.3);
}
.interpretation.good {
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.2), rgba(255, 193, 7, 0.1));
  color: #ffc107;
  border: 1px solid rgba(255, 193, 7, 0.3);
}
.interpretation.low {
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.2), rgba(255, 107, 107, 0.1));
  color: #ff6b6b;
  border: 1px solid rgba(255, 107, 107, 0.3);
}

/* Skills Badges */
.skills-section {
  margin-bottom: 20px;
  padding: 16px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.skills-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 12px 0;
  color: var(--text);
}
.skills-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid;
  transition: transform 0.1s ease, box-shadow 0.2s ease;
}
.badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.badge-matched {
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.2), rgba(76, 175, 80, 0.1));
  color: #4caf50;
  border-color: rgba(76, 175, 80, 0.4);
}
.badge-missing {
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.2), rgba(255, 107, 107, 0.1));
  color: #ff6b6b;
  border-color: rgba(255, 107, 107, 0.4);
}
.suggestions-title-small {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 12px 0;
  color: var(--text);
}
.suggestions-list-simple {
  list-style: none;
  padding: 0;
  margin: 0;
}
.suggestions-list-simple li {
  padding: 10px 0;
  padding-left: 24px;
  position: relative;
  color: var(--text);
  line-height: 1.6;
  border-bottom: 1px solid var(--border);
}
.suggestions-list-simple li:last-child {
  border-bottom: none;
}
.suggestions-list-simple li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

/* Light theme adjustments */
[data-theme="light"] .jobmatch-section {
  background: rgba(0, 0, 0, 0.02);
}
[data-theme="light"] .upload-area-small {
  background: rgba(0, 0, 0, 0.01);
}
[data-theme="light"] .fit-score-section {
  background: rgba(0, 0, 0, 0.02);
}
[data-theme="light"] .skills-section {
  background: rgba(0, 0, 0, 0.02);
}

/* Main Upload Card Styling */
.main-upload-card {
  max-width: 800px;
  margin: 0 auto;
}

/* Manual Input Button - Always Visible */
.manual-input-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: var(--text);
  text-decoration: none;
  border-radius: 50px;
  box-shadow: 0 8px 24px rgba(110, 231, 255, 0.3);
  z-index: 100;
  opacity: 1;
  transform: translateY(0);
  transition: transform 0.2s ease, box-shadow 0.3s ease, scale 0.2s ease;
  font-weight: 600;
  border: 1px solid rgba(110, 231, 255, 0.3);
  animation: fadeInUp 0.5s ease;
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.manual-input-btn.visible {
  opacity: 1;
  transform: translateY(0);
}
.manual-input-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(110, 231, 255, 0.4);
}
.manual-input-btn .btn-icon {
  font-size: 20px;
}
.manual-input-btn .btn-text {
  font-size: 14px;
}
@media (max-width: 768px) {
  .manual-input-btn {
    bottom: 20px;
    right: 20px;
    padding: 12px 16px;
  }
  .manual-input-btn .btn-text {
    display: none;
  }
  .manual-input-btn .btn-icon {
    font-size: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page,
  .intro-brand,
  .neuron-icon,
  .manual-input-btn {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ========================================
   RESPONSIVE DESIGN - MOBILE, TABLET, PC
   ======================================== */

/* Mobile First - Base Styles (320px+) */
.container { 
  width: min(100%, 92%); 
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Header Responsive */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  flex-wrap: wrap;
}

.header-spacer {
  flex: 1 1 0;
  min-width: 0;
}

.header-brand-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-width: 0;
}

.brand-logo {
  height: 45px;
  width: auto;
  object-fit: contain;
}

.brand-text {
  font-size: 0.9rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-user {
  display: none; /* Hide on mobile */
}

.btn {
  padding: 8px 12px;
  font-size: 0.85rem;
}

/* Cards Responsive */
.card {
  margin-bottom: 20px;
  border-radius: 12px;
}

.card-header {
  padding: 15px;
}

.card-title {
  font-size: 18px;
}

.card-body {
  padding: 16px;
}

/* Forms Responsive */
.row {
  grid-template-columns: 1fr;
  gap: 12px;
}

.input, .select, .textarea {
  font-size: 16px; /* Prevents zoom on iOS */
  appearance: none; /* Remove default browser styling for select */
  -webkit-appearance: none;
  -moz-appearance: none;
}

/* Templates Grid - Mobile */
.templates-grid {
  grid-template-columns: 1fr;
  gap: 20px;
}

/* Ensure all auto-fit grids work well on mobile */
@media (max-width: 767px) {
  .templates-grid,
  .tips-grid,
  .steps-grid {
    grid-template-columns: 1fr !important;
  }
  
  .hero {
    grid-template-columns: 1fr !important;
  }
}

.tips-grid {
  grid-template-columns: 1fr;
  gap: 15px;
}

/* Hero Section - Mobile */
.hero {
  grid-template-columns: 1fr;
  gap: 15px;
}

/* ========================================
   TABLET VIEW (768px - 1024px)
   ======================================== */
@media (min-width: 768px) {
  .container {
    width: min(100%, 94%);
    max-width: 1100px;
    padding: 0 20px;
  }

  .header-inner {
    padding: 16px 0;
    flex-wrap: nowrap;
    justify-content: center;
  }

  .brand-logo {
    height: 60px;
  }

  .brand-text {
    font-size: 1rem;
  }

  .nav {
    gap: 10px;
    flex-wrap: nowrap;
  }

  .nav-user {
    display: inline-block; /* Show on tablet */
    font-size: 0.9rem;
  }

  .btn {
    padding: 10px 14px;
    font-size: 0.9rem;
  }

  .card-body {
    padding: 20px;
  }

  .row.two {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .templates-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  .tips-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }
}

/* ========================================
   DESKTOP VIEW (1024px+)
   ======================================== */
@media (min-width: 1024px) {
  .container {
    width: min(100%, 96%);
    max-width: 1200px;
    padding: 0;
  }

  .header-inner {
    padding: 16px 0;
    justify-content: space-between;
  }

  .brand-logo {
    height: 75px;
  }

  .brand-text {
    font-size: 1.1rem;
  }

  .nav {
    gap: 12px;
  }

  .nav-user {
    font-size: 1rem;
  }

  .site-header,
  .site-footer {
    width: 100%;
    margin-left: 0;
  }

  .btn {
    padding: 12px 16px;
    font-size: 0.9rem;
  }

  .card-body {
    padding: 22px;
  }

  .row.two {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .row.three {
    grid-template-columns: repeat(3, 1fr);
  }

  .templates-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
  }

  .tips-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }

  .hero {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 20px;
  }

  h1 {
    font-size: 3.5rem;
  }

  h2 {
    font-size: 2.5rem;
  }
}

/* ========================================
   LARGE DESKTOP (1440px+)
   ======================================== */
@media (min-width: 1440px) {
  .container {
    width: min(100%, 85%);
    max-width: 1400px;
  }

  .templates-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ========================================
   MOBILE SPECIFIC ADJUSTMENTS
   ======================================== */
@media (max-width: 767px) {
  /* Stack navigation vertically on very small screens */
  @media (max-width: 480px) {
    .header-inner {
      flex-direction: column;
      gap: 12px;
    }

    .nav {
      width: 100%;
      justify-content: center;
    }

    .brand {
      flex-direction: column;
      text-align: center;
    }

    .brand-text {
      font-size: 0.85rem;
    }
    
    /* Further card optimizations for very small screens */
    .card {
      margin-bottom: 12px;
      border-radius: 8px;
    }
    
    .card-header {
      padding: 10px 12px;
    }
    
    .card-title {
      font-size: 15px;
    }
    
    .card-body {
      padding: 12px;
    }
  }

  /* Template preview adjustments */
  .template-preview {
    height: 250px;
  }
  
  /* Card optimizations for mobile */
  .card {
    margin-bottom: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  }
  
  .card-header {
    padding: 12px 15px;
  }
  
  .card-title {
    font-size: 16px;
  }
  
  .card-body {
    padding: 15px;
  }
  
  .main-upload-card {
    margin-bottom: 20px;
  }

  /* Suggestions */
  .suggestions-list {
    gap: 10px;
  }

  .suggestion-item {
    padding: 10px;
    font-size: 0.9rem;
  }

  /* Stats */
  .stats {
    flex-direction: column;
  }

  .stat {
    width: 100%;
  }

  /* Footer */
  .footer-inner {
    font-size: 0.85rem;
    text-align: center;
  }

  /* Manual input button */
  .manual-input-btn {
    bottom: 15px;
    right: 15px;
    padding: 10px 14px;
  }

  .manual-input-btn .btn-text {
    display: none;
  }

  /* Job match */
  .fit-score-value {
    font-size: 24px;
  }

  .progress-bar-container {
    height: 24px;
  }

  /* Loading overlay */
  .loader {
    width: 60px;
    height: 60px;
  }

  .loader-ring {
    width: 60px;
    height: 60px;
  }

  .loader-text {
    font-size: 0.9rem;
  }
}

/* ========================================
   TOUCH DEVICE OPTIMIZATIONS
   ======================================== */
@media (hover: none) and (pointer: coarse) {
  /* Larger tap targets for touch */
  .btn {
    min-height: 44px;
    padding: 12px 16px;
  }

  .input, .select, .textarea {
    min-height: 44px;
  }

  /* Remove hover effects on touch devices */
  .btn:hover {
    transform: none;
  }

  .card:hover {
    transform: none;
  }
  
  /* Ensure proper tap targets */
  a, button, .btn, .sidebar-link {
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
  }
  
  .sidebar-link {
    padding: 12px;
  }
  
  .sidebar-link i {
    min-width: 24px;
  }
}

/* ========================================
   LANDSCAPE ORIENTATION
   ======================================== */
@media (max-width: 767px) and (orientation: landscape) {
  .brand-logo {
    height: 40px;
  }

  .header-inner {
    padding: 8px 0;
  }

  .page {
    padding: 20px 0;
  }
  
  /* Adjust sidebar for landscape */
  .sidebar {
    width: 160px;
  }
  
  /* Optimize card layouts for landscape */
  .card {
    margin-bottom: 12px;
  }
  
  .card-header {
    padding: 12px;
  }
  
  .card-body {
    padding: 12px;
  }
  
  /* Optimize form elements for landscape */
  .row {
    gap: 10px;
  }
  
  .field {
    gap: 5px;
  }
  
  .input, .select, .textarea {
    padding: 10px 12px;
  }
  
  /* Adjust button sizes for landscape */
  .btn {
    padding: 10px 14px;
    font-size: 14px;
  }
  
  /* Optimize container for landscape */
  .container {
    padding: 0 10px;
  }
}

/* Tablet landscape orientation */
@media (min-width: 768px) and (max-width: 1023px) and (orientation: landscape) {
  .sidebar {
    width: 170px;
  }
  
  .container {
    padding: 0 15px;
  }
  
  .card {
    margin-bottom: 15px;
  }
  
  .card-body {
    padding: 18px;
  }
}

/* Root variables - update fonts */
:root {
  --font-primary: 'Poppins', 'Segoe UI', sans-serif;
  --font-mono: 'Fira Code', 'Courier New', monospace;
  --font-display: 'Outfit', 'Inter', sans-serif;
}

/* Fluid typography for better mobile experience */
h1 {
  font-size: clamp(28px, 4.4vw, 42px);
}

h2 {
  font-size: clamp(22px, 3.5vw, 32px);
}

h3 {
  font-size: clamp(18px, 2.8vw, 24px);
}

/* Base font size adjustment for mobile */
@media (max-width: 767px) {
  body {
    font-size: 15px;
    line-height: 1.55;
  }
  
  p {
    font-size: 15px;
    line-height: 1.55;
  }
  
  .helper {
    font-size: 14px;
    line-height: 1.5;
  }
  
  .label {
    font-size: 12px;
  }
  
  .input, .select, .textarea {
    font-size: 16px; /* Prevents zoom on iOS */
  }
  
  .btn {
    font-size: 15px;
  }
  
  /* Improved spacing for mobile */
  .stack {
    gap: 12px;
  }
  
  .field {
    gap: 6px;
  }
  
  .row {
    gap: 12px;
  }
  
  /* Better padding and margins for mobile */
  .container {
    padding: 0 12px;
  }
  
  .page {
    padding: 20px 0;
  }
  
  .site-header {
    padding: 10px 0;
  }
  
  .site-footer {
    padding: 15px 0;
  }
}

/* Apply fonts globally */
* {
  font-family: var(--font-primary);
}

body {
  font-family: var(--font-primary);
  font-weight: 400;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.5px;
}

h1 {
  font-size: 3.5rem;
  font-weight: 800;
}

h2 {
  font-size: 2.5rem;
  font-weight: 700;
}

h3 {
  font-size: 1.8rem;
  font-weight: 600;
}

.brand-mark {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 1.2rem;
}

.brand-text {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 0.95rem;
}

button, .btn {
  font-family: var(--font-primary);
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.input, .textarea {
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 1rem;
}

code, pre {
  font-family: var(--font-mono);
}

/* Loading overlay */
.loading-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 31, 63, 0.82), rgba(0, 42, 84, 0.78));
  backdrop-filter: blur(4px);
  z-index: 1003;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.18s ease;
  overflow: hidden;
}

.loading-overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, 
    transparent, 
    rgba(255,255,255,0.05), 
    transparent);
  animation: hologram 4s linear infinite;
  pointer-events: none;
}

.loading-overlay.active {
  display: flex;
  opacity: 1;
}

.loader-container {
  text-align: center;
  position: relative;
  z-index: 2;
  transform: translateY(0);
  transition: transform 0.18s ease, opacity 0.18s ease;
}

/* Floating particles in loading overlay */
.loading-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.loading-particle {
  position: absolute;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.2;
  animation: float 3s infinite linear;
}

.loader {
  position: relative;
  width: 72px;
  height: 72px;
  margin: 0 auto 1rem;
}

.loader-ring {
  position: absolute;
  width: 72px;
  height: 72px;
  border: 4px solid transparent;
  border-top-color: var(--primary);
  border-right-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
  box-shadow: 0 0 12px rgba(74, 144, 226, 0.22);
}

.loader-ring:nth-child(1) {
  animation-delay: -0.24s;
  width: 86px;
  height: 86px;
  left: -7px;
  top: -7px;
}

.loader-ring:nth-child(2) {
  animation-delay: -0.16s;
  border-top-color: var(--primary-2);
  border-right-color: var(--primary-2);
  box-shadow: 0 0 14px rgba(91, 163, 245, 0.28);
}

.loader-ring:nth-child(3) {
  animation-delay: -0.08s;
  border-top-color: var(--accent);
  border-right-color: var(--accent);
  width: 58px;
  height: 58px;
  left: 7px;
  top: 7px;
  box-shadow: 0 0 10px rgba(110, 231, 255, 0.32);
}

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

.loader-text {
  font-family: var(--font-primary);
  font-size: 1.05rem;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% 200%;
  animation: pulse 1s ease-in-out infinite, textGlow 1.2s ease-in-out infinite;
  margin-top: 0.5rem;
  text-align: center;
  font-weight: 600;
  letter-spacing: 0.4px;
}

.progress-dots {
  display: inline-block;
  animation: dots 1.5s infinite;
}

@keyframes dots {
  0%, 20% { content: ''; }
  40% { content: '.'; }
  60% { content: '..'; }
  80%, 100% { content: '...'; }
}

.progress-steps {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.35rem;
  min-height: 1.2rem;
  transition: opacity 0.18s ease;
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}

@keyframes textGlow {
  0%, 100% {
    text-shadow: 0 0 5px rgba(74, 144, 226, 0.5);
  }
  50% {
    text-shadow: 0 0 15px rgba(74, 144, 226, 0.8), 0 0 25px rgba(74, 144, 226, 0.6);
  }
}

/* Futuristic Loading Page */
.futuristic-loading-container {
  max-width: 800px;
  margin: 2rem auto;
  padding: 2rem;
  text-align: center;
}

.loading-header {
  margin-bottom: 3rem;
}

.loading-title {
  font-size: 2.8rem;
  background: linear-gradient(90deg, #6ee7ff, #a78bfa, #6ee7ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% auto;
  animation: titleGlow 3s linear infinite;
  margin-bottom: 1rem;
  font-weight: 800;
}

@keyframes titleGlow {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.loading-subtitle {
  font-size: 1.2rem;
  color: var(--muted);
  margin-bottom: 0;
}

.loading-content {
  position: relative;
}

/* Neural Network Visualization */
.neural-network-container {
  position: relative;
  width: 300px;
  height: 300px;
  margin: 2rem auto;
}

.neural-node {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 0 20px rgba(110, 231, 255, 0.5);
  animation: nodePulse 2s ease-in-out infinite;
}

.neural-node::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60%;
  height: 60%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.node-1 {
  width: 40px;
  height: 40px;
  top: 20%;
  left: 30%;
  animation-delay: 0s;
}

.node-2 {
  width: 35px;
  height: 35px;
  top: 30%;
  right: 25%;
  animation-delay: 0.4s;
}

.node-3 {
  width: 45px;
  height: 45px;
  bottom: 25%;
  left: 20%;
  animation-delay: 0.8s;
}

.node-4 {
  width: 30px;
  height: 30px;
  bottom: 35%;
  right: 30%;
  animation-delay: 1.2s;
}

.node-5 {
  width: 50px;
  height: 50px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: 1.6s;
  background: linear-gradient(135deg, #ff6b6b, #ffa502);
  box-shadow: 0 0 25px rgba(255, 107, 107, 0.7);
}

@keyframes nodePulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 20px rgba(110, 231, 255, 0.5);
  }
  50% {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(167, 139, 250, 0.8);
  }
}

.neural-connections {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.connection-line {
  position: absolute;
  background: linear-gradient(90deg, rgba(110, 231, 255, 0.3), rgba(167, 139, 250, 0.3));
  transform-origin: 0 0;
}

.line-1 {
  width: 120px;
  height: 2px;
  top: 35%;
  left: 25%;
  transform: rotate(20deg);
  animation: lineGlow 1.5s ease-in-out infinite;
}

.line-2 {
  width: 140px;
  height: 2px;
  top: 45%;
  right: 20%;
  transform: rotate(-15deg);
  animation: lineGlow 1.5s ease-in-out infinite 0.5s;
}

.line-3 {
  width: 100px;
  height: 2px;
  bottom: 40%;
  left: 30%;
  transform: rotate(-25deg);
  animation: lineGlow 1.5s ease-in-out infinite 1s;
}

.line-4 {
  width: 160px;
  height: 2px;
  bottom: 30%;
  right: 25%;
  transform: rotate(10deg);
  animation: lineGlow 1.5s ease-in-out infinite 1.5s;
}

@keyframes lineGlow {
  0%, 100% {
    opacity: 0.3;
    background: linear-gradient(90deg, rgba(110, 231, 255, 0.3), rgba(167, 139, 250, 0.3));
  }
  50% {
    opacity: 0.8;
    background: linear-gradient(90deg, rgba(110, 231, 255, 0.8), rgba(167, 139, 250, 0.8));
  }
}

/* Analysis Stages */
.analysis-stages {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 3rem 0;
}

.stage {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  transition: all 0.4s ease;
  opacity: 0.6;
}

.stage.active {
  opacity: 1;
  background: rgba(110, 231, 255, 0.1);
  border-color: rgba(110, 231, 255, 0.3);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  transform: translateY(-5px);
}

.stage-icon {
  font-size: 2rem;
  min-width: 60px;
  text-align: center;
  animation: iconFloat 3s ease-in-out infinite;
}

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

.stage-content {
  flex: 1;
  text-align: left;
}

.stage-content h3 {
  margin: 0 0 0.3rem 0;
  font-size: 1.2rem;
  color: var(--text);
}

.stage-content p {
  margin: 0;
  font-size: 1rem;
  color: var(--muted);
}

/* History Page Styles */
.history-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.history-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  transition: all 0.3s ease;
}

.history-item:hover {
  background: rgba(110, 231, 255, 0.05);
  border-color: rgba(110, 231, 255, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.history-type {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}

.history-date {
  font-size: 0.9rem;
  color: var(--muted);
}

.history-content {
  margin-bottom: 15px;
}

.history-score {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.score-label {
  font-weight: 600;
  color: var(--text);
}

.score-value {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: Orbitron, Inter, sans-serif;
}

.score-value.high {
  color: #4CAF50;
}

.score-value.medium {
  color: #FFC107;
}

.score-value.low {
  color: #FF9800;
}

.score-value.very-low {
  color: #F44336;
}

.history-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-label {
  color: var(--muted);
  font-size: 0.9rem;
}

.detail-value {
  font-weight: 600;
  color: var(--text);
}

.history-actions {
  display: flex;
  justify-content: flex-end;
}

.btn-small {
  padding: 8px 12px;
  font-size: 0.9rem;
}

.empty-history {
  text-align: center;
  padding: 40px 20px;
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.empty-history h3 {
  margin: 0 0 10px 0;
  color: var(--text);
}

.empty-history p {
  color: var(--muted);
  margin-bottom: 20px;
}

/* History Detail Page Styles */
.history-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

/* Light theme adjustments */
[data-theme="light"] .history-item {
  background: rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .history-item:hover {
  background: rgba(110, 231, 255, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .history-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .history-details {
    grid-template-columns: 1fr;
  }
  
  .detail-row {
    flex-direction: column;
    gap: 5px;
  }
  
  .history-actions {
    justify-content: center;
  }
}
/* Progress Bar */
.overall-progress {
  background: rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  margin: 2rem 0;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-weight: 600;
  color: var(--text);
  font-size: 1.1rem;
}

.progress-percent {
  color: var(--primary);
}

.overall-progress-bar {
  width: 100%;
  height: 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  overflow: hidden;
}

.overall-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  width: 0%;
  border-radius: 6px;
  transition: width 0.3s ease;
  box-shadow: 0 0 10px rgba(110, 231, 255, 0.5);
}

/* Loading Message */
.loading-message {
  margin-top: 2rem;
}

.message-text {
  font-size: 1.1rem;
  color: var(--muted);
  font-style: italic;
  animation: messagePulse 2s ease-in-out infinite;
}

@keyframes messagePulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

/* Resume Analyzer Layout */
.resume-analyzer-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

@media (max-width: 992px) {
  .resume-analyzer-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.form-column {
  min-width: 0;
}

.suggestions-column {
  min-width: 0;
  animation: fadeInSlide 0.5s ease-out;
}

/* Animations for suggestions panel */
@keyframes fadeInSlide {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.suggestions-column .suggestions-section {
  height: 100%;
  display: flex;
  flex-direction: column;
  animation: slideInSuggestions 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

.suggestions-column .suggestions-list {
  flex: 1;
  overflow-y: auto;
  max-height: 600px;
}

/* Enhanced suggestion item animations */
.suggestion-item {
  transition: all 0.3s ease;
  animation: fadeInUp 0.4s ease forwards;
  opacity: 0;
  transform: translateY(15px);
}

/* Staggered animation delays for suggestion items */
.suggestion-item:nth-child(1) { animation-delay: 0.1s; }
.suggestion-item:nth-child(2) { animation-delay: 0.2s; }
.suggestion-item:nth-child(3) { animation-delay: 0.3s; }
.suggestion-item:nth-child(4) { animation-delay: 0.4s; }
.suggestion-item:nth-child(5) { animation-delay: 0.5s; }
.suggestion-item:nth-child(6) { animation-delay: 0.6s; }
.suggestion-item:nth-child(7) { animation-delay: 0.7s; }
.suggestion-item:nth-child(8) { animation-delay: 0.8s; }
.suggestion-item:nth-child(9) { animation-delay: 0.9s; }
.suggestion-item:nth-child(10) { animation-delay: 1.0s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hover effects for suggestion items */
.suggestion-item:hover {
  transform: translateX(5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease;
}

/* ========================================
   ANALYTICS DASHBOARD STYLES
   ======================================== */

.analytics-dashboard {
  margin-top: 30px;
  padding: 20px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 12px;
  animation: fadeIn 0.6s ease-out;
}

.analytics-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 20px 0;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}

.analytics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 25px;
}

.analytics-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.analytics-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.card-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 15px 0;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.score-visualization {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.score-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    #4CAF50 0deg,
    #4CAF50 270deg,
    #FFEB3B 270deg,
    #FFEB3B 180deg,
    #FF9800 180deg,
    #FF9800 90deg,
    #F44336 90deg,
    #F44336 360deg
  );
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.score-circle::before {
  content: "";
  position: absolute;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--surface);
}

/* Red - 1 to 25 */
.score-circle.red {
  background: conic-gradient(
    from 0deg,
    #F44336 0deg,
    #F44336 90deg,
    transparent 90deg,
    transparent 360deg
  );
}

/* Orange - 26 to 50 */
.score-circle.orange {
  background: conic-gradient(
    from 0deg,
    #F44336 0deg,
    #F44336 90deg,
    #FF9800 90deg,
    #FF9800 180deg,
    transparent 180deg,
    transparent 360deg
  );
}

/* Yellow - 51 to 75 */
.score-circle.yellow {
  background: conic-gradient(
    from 0deg,
    #F44336 0deg,
    #F44336 90deg,
    #FF9800 90deg,
    #FF9800 180deg,
    #FFEB3B 180deg,
    #FFEB3B 270deg,
    transparent 270deg,
    transparent 360deg
  );
}

/* Green - 76 to 100 */
.score-circle.green {
  background: conic-gradient(
    from 0deg,
    #F44336 0deg,
    #F44336 90deg,
    #FF9800 90deg,
    #FF9800 180deg,
    #FFEB3B 180deg,
    #FFEB3B 270deg,
    #4CAF50 270deg,
    #4CAF50 360deg
  );
}

.score-text {
  position: relative;
  font-size: 28px;
  font-weight: 700;
  font-family: Orbitron, Inter, sans-serif;
  color: var(--text);
}

.score-label {
  font-size: 14px;
  color: var(--muted);
}

.score-description {
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  margin-top: 5px;
}

.score-description.red {
  color: #F44336;
}

.score-description.orange {
  color: #FF9800;
}

.score-description.yellow {
  color: #FFEB3B;
}

.score-description.green {
  color: #4CAF50;
}

.skill-analysis {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.progress-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--text);
}

.progress-bar-bg {
  height: 10px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 5px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  border-radius: 5px;
  transition: width 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.progress-bar-fill.excellent {
  background: linear-gradient(90deg, #4CAF50, #8BC34A);
}

.progress-bar-fill.good {
  background: linear-gradient(90deg, #FFC107, #FF9800);
}

.progress-bar-fill.low {
  background: linear-gradient(90deg, #FF6B6B, #FF5252);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 15px;
}

.metric-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 15px;
  text-align: center;
}

.metric-value {
  font-size: 24px;
  font-weight: 700;
  font-family: Orbitron, Inter, sans-serif;
  margin: 0 0 5px 0;
  color: var(--primary);
}

.metric-label {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

.missing-skills {
  margin-top: 15px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.missing-skills h5 {
  margin: 0 0 10px 0;
  font-size: 14px;
  color: var(--text);
}

.missing-skills ul {
  margin: 0;
  padding-left: 18px;
}

.missing-skills li {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 5px;
}

.missing-skills li:last-child {
  margin-bottom: 0;
}

.analysis-text {
  margin-top: 15px;
  font-size: 13px;
  color: var(--muted);
}

.analysis-text p {
  margin: 5px 0;
}

.detailed-breakdown {
  margin-top: 25px;
}

.breakdown-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.breakdown-item {
  display: flex;
  justify-content: space-between;
  padding: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.breakdown-label {
  font-size: 13px;
  color: var(--muted);
}

.breakdown-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}

.skill-comparison {
  margin-top: 20px;
}

.skill-comparison h5 {
  margin: 0 0 10px 0;
  font-size: 14px;
  color: var(--text);
}

.skills-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 15px;
}

.skill-tag {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--muted);
  margin: 4px;
  display: inline-block;
}

.skill-tag.matched {
  background: rgba(76, 175, 80, 0.15);
  border-color: #4CAF50;
  color: #4CAF50;
}

.skill-tag.missing {
  background: rgba(255, 107, 107, 0.15);
  border-color: #FF6B6B;
  color: #FF6B6B;
}

.missing-skills-section {
  margin-top: 15px;
  padding: 15px;
  background: rgba(255, 107, 107, 0.05);
  border-radius: 8px;
  border-left: 3px solid #FF6B6B;
}

.missing-skills-section h5 {
  color: #FF6B6B;
  margin-top: 0;
}

.missing-skills-section ul {
  padding-left: 20px;
  margin-bottom: 0;
}

.missing-skills-section li {
  margin-bottom: 5px;
  color: var(--text);
}

.missing-skills-section {
  margin-top: 15px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.missing-skills-section h5 {
  margin: 0 0 10px 0;
  font-size: 14px;
  color: var(--text);
}

.missing-skills-section ul {
  margin: 0;
  padding-left: 18px;
}

.missing-skills-section li {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 5px;
}

.missing-skills-section li:last-child {
  margin-bottom: 0;
}

.scoring-details {
  margin-top: 20px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.scoring-details h5 {
  margin: 0 0 10px 0;
  font-size: 14px;
  color: var(--text);
}

.scoring-details ul {
  margin: 0;
  padding-left: 18px;
}

.scoring-details li {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 5px;
}

/* Light theme adjustments */
[data-theme="light"] .analytics-card {
  background: rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .metric-card {
  background: rgba(0, 0, 0, 0.01);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .analytics-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .analytics-card {
    padding: 15px;
  }
  
  .score-circle {
    width: 100px;
    height: 100px;
  }
  
  .score-circle::before {
    width: 80px;
    height: 80px;
  }
  
  .score-text {
    font-size: 24px;
  }
  
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  .metric-card {
    padding: 12px 8px;
  }
  
  .metric-value {
    font-size: 20px;
  }
  
  .metric-label {
    font-size: 12px;
  }
  
  .progress-container {
    margin-bottom: 15px;
  }
  
  .skill-comparison {
    margin-top: 15px;
  }
  
  .skills-container {
    max-height: 150px;
    overflow-y: auto;
  }
  
  .skill-tag {
    font-size: 11px;
    padding: 4px 8px;
  }
  
  .breakdown-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .breakdown-item {
    padding: 8px;
  }
  
  .breakdown-label {
    font-size: 12px;
  }
  
  .breakdown-value {
    font-size: 14px;
  }
  
  /* Mobile sidebar styles */
  .sidebar {
    width: 220px;
  }
  
  .sidebar-toggle-btn {
    display: flex;
  }
  
  .main-content {
    margin-left: 0;
  }
  
  .main-content.shifted {
    margin-left: 0;
  }
}

/* ========================================
   HOW IT WORKS SECTION STYLES
   ======================================== */

.how-it-works-content {
  margin-top: 15px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 25px;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 15px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.step-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.step-number {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: var(--text);
  font-weight: 700;
  border-radius: 50%;
  margin-bottom: 12px;
  font-size: 16px;
}

.step-title {
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.step-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

/* Light theme adjustments */
[data-theme="light"] .step-item {
  background: rgba(0, 0, 0, 0.02);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .step-item {
    padding: 15px 10px;
  }
}

@media (max-width: 480px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }
  
  .analytics-card {
    padding: 12px;
  }
  
  .card-title {
    font-size: 16px;
  }
  
  .score-circle {
    width: 80px;
    height: 80px;
  }
  
  .score-circle::before {
    width: 60px;
    height: 60px;
  }
  
  .score-text {
    font-size: 20px;
  }
  
  .metrics-grid {
    grid-template-columns: 1fr;
  }
  
  .metric-card {
    padding: 10px;
  }
  
  .metric-value {
    font-size: 18px;
  }
  
  .breakdown-grid {
    grid-template-columns: 1fr;
  }
  
  .skills-container {
    max-height: 120px;
  }
  
  .skill-tag {
    font-size: 10px;
    padding: 3px 6px;
  }
}

/* Left Sidebar Navigation Styles */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 180px; /* Fixed width */
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,31,63,0.95), rgba(0,42,84,0.9));
  backdrop-filter: blur(10px);
  border-right: 1px solid var(--border);
  z-index: 1002;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 20px 0;
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
  /* Permanently visible, no transform or transition needed */
}

.sidebar::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera*/
}


.sidebar-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.sidebar-user {
  padding: 0 15px 15px; /* Reduced padding to fit narrower sidebar */
  border-bottom: 1px solid var(--border);
  margin-bottom: 15px; /* Reduced margin */
  color: var(--muted);
  font-size: 0.9rem; /* Smaller font size */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 0; /* Prevent shrinking */
}

.sidebar-links {
  display: flex;
  flex-direction: column;
  gap: 4px; /* Reduced gap between links */
  padding: 0 12px; /* Reduced padding to fit narrower sidebar */
  min-height: 0;
}

/* Sidebar toggle button */
.sidebar-toggle-btn {
  position: fixed;
  top: 15px;
  left: 15px;
  z-index: 1001;
  background: var(--primary);
  color: var(--text);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.sidebar-toggle-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.sidebar-toggle-btn i {
  font-size: 18px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  padding: 10px 12px; /* Reduced padding to fit narrower sidebar */
  color: var(--text);
  text-decoration: none;
  border-radius: 6px; /* Slightly reduced border radius */
  transition: all 0.2s ease;
  font-size: 0.9rem; /* Slightly smaller font */
}

.sidebar-link:hover {
  background: rgba(110, 231, 255, 0.1);
  color: var(--primary);
  transform: translateX(5px);
}

.sidebar-link i {
  margin-right: 8px; /* Reduced margin to fit narrower sidebar */
  width: 16px; /* Smaller icon width */
  text-align: center;
  font-size: 0.9rem; /* Slightly smaller icon size */
}

.sidebar-link-text {
  transition: opacity 0.2s ease;
}

/* Sidebar overlay for mobile */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1001;
  display: none;
}

.sidebar-overlay.active {
  display: block;
}

/* Mobile sidebar styles */
.sidebar {
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.sidebar.open {
  transform: translateX(0);
}

/* Main content shift - simplified for fixed navbar */
.main-content {
  transition: margin-left 0.5s cubic-bezier(0.25, 0.8, 0.25, 1); /* Smoother animation */
  margin-left: 180px; /* Fixed margin for permanent sidebar */
  width: calc(100% - 180px);
  max-width: calc(100% - 180px);
  min-width: 0;
}

.main-content.shifted {
  margin-left: 180px;
  width: calc(100% - 180px);
  max-width: calc(100% - 180px);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.form-actions > * {
  flex: 1 1 180px;
  min-width: 0;
}

@media (max-width: 991px) {
  .kpi {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .main-content,
  .main-content.shifted {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
  }

  .sidebar {
    width: min(82vw, 280px);
    max-width: 280px;
  }

  .site-header,
  .site-footer {
    padding-left: 0;
  }

  .sidebar-link {
    white-space: normal;
    align-items: flex-start;
  }

  .kpi {
    grid-template-columns: 1fr;
  }

  .form-actions > * {
    flex-basis: 100%;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .bg-grid,
  .bg-grid::before,
  .matrix-rain,
  .particles {
    display: none !important;
  }

  .site-header,
  .site-footer {
    width: 100%;
    margin-left: 0;
    padding-left: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .header-inner {
    justify-content: center;
  }

  .header-spacer {
    display: none;
  }

  .header-brand-wrap {
    flex: 0 1 auto;
    width: 100%;
    margin: 0 auto;
  }

  .brand {
    justify-content: center;
    width: 100%;
  }

  .sidebar {
    width: min(82vw, 280px);
    max-width: 280px;
  }

  .main-content,
  .main-content.shifted {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
  }

  .sidebar-toggle-btn {
    display: flex;
  }

  .glass-effect,
  .card,
  .btn,
  .sidebar,
  .sidebar-link,
  .main-content,
  .site-header {
    transition: none !important;
  }

  .card:hover,
  .btn:hover,
  .sidebar-link:hover {
    transform: none !important;
    box-shadow: none !important;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
