/* =====================================================
   ANISH KARKI - DEV TERMINAL PORTFOLIO
   Crystal Clear High-Contrast Theme
   ===================================================== */

:root {
  /* Crystal Clear High-Contrast (Backgrounds) */
  --term-bg: #0a0a0a;
  --term-bg-light: #121212;
  --term-bg-card: #1a1a1a;
  --term-border: #333333;
  --term-border-highlight: #60a5fa;
  
  /* High-Contrast Accents - Vibrant & Readable */
  --term-green: #4ade80;
  --term-green-dim: #22c55e;
  --term-green-bright: #86efac;
  --term-green-glow: rgba(74, 222, 128, 0.4);
  
  /* Vibrant Accent Colors */
  --term-cyan: #60a5fa;
  --term-yellow: #fde047;
  --term-orange: #fb923c;
  --term-red: #f87171;
  --term-purple: #c084fc;
  --term-blue: #60a5fa;
  
  /* High-Contrast Text - Maximum Readability */
  --term-text: #f5f5f5;
  --term-text-dim: #d4d4d4;
  --term-text-bright: #ffffff;
  --term-comment: #a3a3a3;
  
  /* Legacy Variable Mappings (High-Contrast) */
  --quantum-gradient: linear-gradient(135deg, #0a0a0a 0%, #121212 100%);
  --plasma-gradient: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  --stellar-gradient: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
  --quantum-blue: #0a0a0a;
  --neutron-cyan: #60a5fa;
  --stellar-white: #ffffff;
  --cosmic-gray: #d4d4d4;
  --photon-green: #4ade80;
  --electron-violet: #c084fc;
  --nebula-pink: #f472b6;
  --proton-orange: #fb923c;
  --transition-normal: all 0.3s ease;
  --transition-slow: all 0.5s ease;
  
  /* Typography */
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', 'Consolas', monospace;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  
  /* Terminal Window */
  --term-radius: 8px;
  --term-header-height: 36px;
}

/* =====================================================
   RESET & BASE
   ===================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--term-green-dim) var(--term-bg);
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--term-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--term-green-dim);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--term-green);
}

body {
  font-family: var(--font-mono);
  background: var(--term-bg);
  color: var(--term-text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Scanline Effect */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.15),
    rgba(0, 0, 0, 0.15) 1px,
    transparent 1px,
    transparent 2px
  );
  pointer-events: none;
  z-index: 9998;
  opacity: 0.3;
}

/* CRT Vignette */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
  pointer-events: none;
  z-index: 9997;
}

::selection {
  background: var(--term-green);
  color: var(--term-bg);
}

/* =====================================================
   SCROLL PROGRESS
   ===================================================== */
.scroll-indicator {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--term-border);
  z-index: 10000;
}

.scroll-progress {
  height: 100%;
  background: var(--term-green);
  width: 0%;
  transition: width 100ms ease-out;
  box-shadow: 0 0 10px var(--term-green-glow), 0 0 20px var(--term-green-glow);
}

/* =====================================================
   PARTICLE SYSTEM (Matrix Style)
   ===================================================== */
.particle-system,
.neural-network {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  opacity: 0.15;
}

.quantum-particle {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--term-green);
  text-shadow: 0 0 5px var(--term-green-glow);
  animation: matrixFall 10s linear infinite;
}

@keyframes matrixFall {
  0% { transform: translateY(-100vh); opacity: 1; }
  100% { transform: translateY(100vh); opacity: 0; }
}

/* =====================================================
   NAVIGATION
   ===================================================== */
.navbar {
  background: var(--term-bg-light) !important;
  border-bottom: 1px solid var(--term-border);
  padding: var(--space-sm) 0;
  font-family: var(--font-mono);
}

.navbar-brand {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--term-green) !important;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.navbar-brand::before {
  content: '>';
  color: var(--term-green);
  animation: blink 1s step-end infinite;
}

.nav-link {
  color: var(--term-text-dim) !important;
  font-size: 0.9rem;
  padding: var(--space-sm) var(--space-md) !important;
  position: relative;
  transition: color 0.2s ease;
}

.nav-link::before {
  content: './';
  color: var(--term-comment);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.nav-link:hover::before,
.nav-link.active::before {
  opacity: 1;
}

.nav-link:hover,
.nav-link.active {
  color: var(--term-green) !important;
}

.navbar-toggler {
  border: 1px solid var(--term-border);
  color: var(--term-green);
  padding: var(--space-xs) var(--space-sm);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%2300ff41' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* =====================================================
   HERO SECTION
   ===================================================== */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 6rem 0 4rem;
}

.hero-greeting {
  color: var(--term-comment);
  font-size: 0.9rem;
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.hero-greeting::before {
  content: '//';
  color: var(--term-green-dim);
}

.hero-title {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 700;
  color: var(--term-green);
  margin-bottom: var(--space-sm);
  line-height: 1.2;
  text-shadow: 0 0 20px var(--term-green-glow), 0 0 40px var(--term-green-glow);
}

.hero-title::before {
  content: '$ whoami';
  display: block;
  font-size: 0.9rem;
  color: var(--term-text-dim);
  text-shadow: none;
  margin-bottom: var(--space-sm);
}

.hero-subtitle {
  font-size: clamp(1rem, 3vw, 1.5rem);
  color: var(--term-cyan);
  margin-bottom: var(--space-xl);
  font-weight: 400;
}

.typing-effect {
  border-right: 2px solid var(--term-green);
  padding-right: 4px;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { border-color: transparent; }
}

.hero-description {
  color: var(--term-text);
  line-height: 1.8;
  max-width: 650px;
  margin-bottom: var(--space-xl);
  font-size: 0.95rem;
  padding: var(--space-md);
  background: var(--term-bg-card);
  border: 1px solid var(--term-border);
  border-left: 3px solid var(--term-green);
  border-radius: var(--term-radius);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.social-links {
  display: flex;
  gap: var(--space-lg);
}

.social-link {
  color: var(--term-text-dim);
  font-size: 1.5rem;
  transition: all 0.2s ease;
  text-decoration: none;
}

.social-link:hover {
  color: var(--term-green);
  text-shadow: 0 0 10px var(--term-green-glow);
  transform: translateY(-2px);
}

/* Scroll Indicator */
.scroll-down {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s ease-in-out infinite;
}

.scroll-link {
  color: var(--term-green);
  font-size: 1.5rem;
  text-decoration: none;
}

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

/* =====================================================
   TERMINAL BUTTONS
   ===================================================== */
.quantum-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  background: transparent;
  border: 1px solid var(--term-green);
  color: var(--term-green);
  font-family: var(--font-mono);
  font-weight: 500;
  padding: var(--space-sm) var(--space-lg);
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.2s ease;
}

.quantum-btn::before {
  content: '>';
  margin-right: var(--space-xs);
}

.quantum-btn:hover {
  background: var(--term-green);
  color: var(--term-bg);
  box-shadow: 0 0 20px var(--term-green-glow);
  text-decoration: none;
}

.quantum-btn-outline {
  border-color: var(--term-cyan);
  color: var(--term-cyan);
}

.quantum-btn-outline::before {
  content: '$';
}

.quantum-btn-outline:hover {
  background: var(--term-cyan);
  color: var(--term-bg);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

/* =====================================================
   SECTIONS
   ===================================================== */
.section {
  padding: var(--space-3xl) 0;
  position: relative;
}

.section.bg-light,
.section.bg-dark {
  background: var(--term-bg-light);
}

.section-title {
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 600;
  text-align: center;
  margin-bottom: var(--space-3xl);
  color: var(--term-green);
  position: relative;
}

.section-title::before {
  content: '# ';
  color: var(--term-comment);
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: var(--term-green);
  margin: var(--space-md) auto 0;
  box-shadow: 0 0 10px var(--term-green-glow);
}

/* =====================================================
   TERMINAL CARDS
   ===================================================== */
.quantum-card,
.card {
  background: var(--term-bg-card);
  border: 1px solid var(--term-border);
  border-radius: var(--term-radius);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

/* Terminal Window Header */
.quantum-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: var(--term-header-height);
  background: var(--term-bg-light);
  border-bottom: 1px solid var(--term-border);
}

.quantum-card::after {
  content: '● ● ●';
  position: absolute;
  top: 0;
  left: var(--space-md);
  height: var(--term-header-height);
  line-height: var(--term-header-height);
  font-size: 10px;
  letter-spacing: 4px;
  color: var(--term-green);
}

.quantum-card > * {
  position: relative;
  z-index: 1;
}

.quantum-card {
  padding: calc(var(--term-header-height) + var(--space-lg)) var(--space-lg) var(--space-lg);
}

.quantum-card:hover {
  border-color: var(--term-green-dim);
  box-shadow: 0 0 30px rgba(0, 255, 65, 0.1);
}

/* =====================================================
   PROFILE IMAGE
   ===================================================== */
.profile-image-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.profile-image {
  width: 220px;
  height: 220px;
  border-radius: var(--term-radius);
  object-fit: cover;
  border: 2px solid var(--term-green);
  filter: grayscale(30%);
  transition: all 0.3s ease;
}

.profile-image:hover {
  filter: grayscale(0%);
  box-shadow: 0 0 30px var(--term-green-glow);
}

/* =====================================================
   TIMELINE
   ===================================================== */
.quantum-timeline {
  position: relative;
  padding-left: var(--space-xl);
}

.quantum-timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--term-green), var(--term-green-dim), transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: var(--space-xl);
}

.timeline-item::before {
  content: '▶';
  position: absolute;
  left: calc(-1 * var(--space-xl) - 6px);
  top: var(--space-lg);
  font-size: 10px;
  color: var(--term-green);
  text-shadow: 0 0 10px var(--term-green-glow);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
  gap: var(--space-md);
}

.timeline-header h3 {
  color: var(--term-cyan);
  font-weight: 600;
  margin: 0;
  font-size: 1.1rem;
}

.timeline-badge {
  background: var(--term-bg);
  border: 1px solid var(--term-green);
  color: var(--term-green);
  padding: var(--space-xs) var(--space-md);
  font-size: 0.8rem;
  font-family: var(--font-mono);
}

.timeline-institution {
  color: var(--term-yellow);
  font-weight: 500;
  margin-bottom: var(--space-sm);
  font-size: 0.95rem;
}

.timeline-description {
  color: var(--term-text-dim);
  margin-bottom: var(--space-md);
  line-height: 1.7;
}

.timeline-details h5 {
  color: var(--term-purple);
  font-weight: 600;
  margin-top: var(--space-md);
  margin-bottom: var(--space-sm);
  font-size: 0.9rem;
}

.timeline-details h5::before {
  content: '→ ';
  color: var(--term-green);
}

.timeline-list,
.timeline-details ul {
  color: var(--term-text);
  line-height: 1.8;
  padding-left: var(--space-lg);
  list-style: none;
}

.timeline-list li,
.timeline-details li {
  margin-bottom: var(--space-sm);
  position: relative;
}

.timeline-list li::before,
.timeline-details li::before {
  content: '•';
  color: var(--term-green);
  position: absolute;
  left: -1rem;
}

/* =====================================================
   SKILLS
   ===================================================== */
.skill-category-title {
  color: var(--term-cyan);
  margin-bottom: var(--space-lg);
  font-weight: 600;
  font-size: 1rem;
}

.skill-quantum {
  margin-bottom: var(--space-md);
}

.skill-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--space-xs);
  font-size: 0.85rem;
  color: var(--term-text);
}

.skill-bar {
  height: 6px;
  background: var(--term-border);
  border-radius: 3px;
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  background: var(--term-green);
  border-radius: 3px;
  transition: width 1.5s ease-out;
  width: 0%;
  box-shadow: 0 0 10px var(--term-green-glow);
}

/* =====================================================
   PROJECTS
   ===================================================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.project-card {
  background: var(--term-bg-card);
  border: 1px solid var(--term-border);
  border-radius: var(--term-radius);
  padding: var(--space-lg);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-card:hover {
  border-color: var(--term-green-dim);
  transform: translateY(-4px);
}

.project-icon {
  font-size: 2rem;
  color: var(--term-green);
  margin-bottom: var(--space-md);
}

.project-title {
  color: var(--term-cyan);
  font-weight: 600;
  margin-bottom: var(--space-sm);
  font-size: 1rem;
}

.project-title::before {
  content: './';
  color: var(--term-comment);
}

.project-description {
  color: var(--term-text-dim);
  margin-bottom: var(--space-md);
  line-height: 1.7;
  font-size: 0.9rem;
  flex-grow: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.project-tag {
  background: var(--term-bg);
  border: 1px solid var(--term-border);
  color: var(--term-yellow);
  padding: 2px var(--space-sm);
  font-size: 0.75rem;
  font-family: var(--font-mono);
}

.project-links {
  margin-top: auto;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--term-green);
  text-decoration: none;
  font-size: 0.85rem;
  padding: var(--space-xs) var(--space-sm);
  border: 1px solid var(--term-green);
  transition: all 0.2s ease;
}

.project-link::before {
  content: '>';
}

.project-link:hover {
  background: var(--term-green);
  color: var(--term-bg);
}

.project-badge {
  background: var(--term-bg);
  border: 1px solid var(--term-purple);
  color: var(--term-purple);
  padding: var(--space-xs) var(--space-sm);
  font-size: 0.8rem;
}

/* =====================================================
   CERTIFICATIONS
   ===================================================== */
#certifications .row {
  display: flex;
  flex-wrap: wrap;
}

#certifications .col-lg-4,
#certifications .col-md-6 {
  display: flex;
}

#certifications .quantum-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
}

#certifications .cert-skills {
  margin-top: auto;
}

.cert-badge {
  width: 100px;
  height: 100px;
  margin: 0 auto var(--space-md);
  border-radius: var(--term-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--term-bg);
  border: 1px solid var(--term-green);
  padding: 8px;
  flex-shrink: 0;
}

.cert-image {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.cert-title {
  color: var(--term-cyan);
  font-weight: 600;
  margin-bottom: var(--space-sm);
  font-size: 0.9rem;
  line-height: 1.4;
}

.cert-title a {
  color: inherit;
  text-decoration: none;
}

.cert-title a:hover {
  color: var(--term-green);
}

.cert-year {
  color: var(--term-yellow);
  margin-bottom: var(--space-md);
  font-size: 0.85rem;
}

.cert-skills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  justify-content: center;
  margin-bottom: var(--space-md);
}

.cert-skill {
  background: var(--term-bg);
  border: 1px solid var(--term-border);
  color: var(--term-text-dim);
  padding: 2px var(--space-sm);
  font-size: 0.7rem;
}

.cert-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--term-green);
  text-decoration: none;
  font-size: 0.8rem;
  padding: var(--space-xs) var(--space-sm);
  border: 1px solid var(--term-green);
  transition: all 0.2s ease;
}

.cert-link:hover {
  background: var(--term-green);
  color: var(--term-bg);
}

/* =====================================================
   CONTACT
   ===================================================== */
.contact-intro {
  color: var(--term-text);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: var(--space-xl);
  text-align: center;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.contact-item {
  display: flex;
  align-items: center;
  padding: var(--space-md);
  background: var(--term-bg);
  border: 1px solid var(--term-border);
  border-radius: var(--term-radius);
  transition: all 0.25s ease;
  text-decoration: none;
  color: var(--term-text-dim);
}

.contact-item:hover {
  border-color: var(--term-blue);
  color: var(--term-text);
  background: rgba(88, 166, 255, 0.05);
}

.contact-item.location-item {
  cursor: default;
}

.contact-item.location-item:hover {
  border-color: var(--term-border);
  color: var(--term-text-dim);
  background: var(--term-bg);
}

.contact-icon {
  width: 40px;
  height: 40px;
  background: var(--term-bg-card);
  border: 1px solid var(--term-border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: var(--space-md);
  font-size: 1rem;
  color: var(--term-blue);
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.contact-item:hover .contact-icon {
  border-color: var(--term-blue);
  color: var(--term-text-bright);
  background: rgba(88, 166, 255, 0.1);
}

.contact-info {
  flex-grow: 1;
  font-size: 0.9rem;
  min-width: 0;
  overflow: hidden;
  word-break: break-word;
  overflow-wrap: break-word;
}

.contact-info strong {
  color: var(--term-blue);
  font-weight: 600;
  display: block;
  margin-bottom: 2px;
}

.contact-cta {
  text-align: center;
}

.contact-cta .quantum-btn {
  border-color: var(--term-blue);
  color: var(--term-blue);
}

.contact-cta .quantum-btn:hover {
  background: var(--term-blue);
  color: var(--term-bg);
  box-shadow: 0 0 20px rgba(88, 166, 255, 0.3);
}

.contact-details h3 {
  color: var(--term-text-dim);
  font-size: 1rem;
  margin-bottom: var(--space-md);
}

.contact-details h3::before {
  content: '## ';
  color: var(--term-comment);
}

.contact-list {
  list-style: none;
  padding: 0;
}

.contact-list li {
  margin-bottom: var(--space-sm);
  color: var(--term-text);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.contact-list a {
  color: var(--term-blue);
  text-decoration: none;
}

.contact-list a:hover {
  color: var(--term-text-bright);
  text-decoration: underline;
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
  background: var(--term-bg-light);
  border-top: 1px solid var(--term-border);
  padding: var(--space-xl) 0;
  text-align: center;
}

.footer p {
  color: var(--term-text-dim);
  font-size: 0.85rem;
}

.footer a {
  color: var(--term-green);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--term-bg);
  border: 1px solid var(--term-border);
  border-radius: 4px;
  color: var(--term-text-dim);
  text-decoration: none;
  margin: 0 var(--space-xs);
  transition: all 0.2s ease;
  font-size: 1.1rem;
}

.footer-social-link:hover {
  border-color: var(--term-green);
  color: var(--term-green);
}

.footer-nav-link {
  color: var(--term-text-dim);
  text-decoration: none;
  margin: 0 var(--space-md);
  font-size: 0.85rem;
  transition: color 0.2s ease;
}

.footer-nav-link:hover {
  color: var(--term-green);
}

.footer-tech-stack {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-md);
  color: var(--term-comment);
  font-size: 0.8rem;
}

.footer-title {
  color: var(--term-green);
  font-weight: 700;
  margin: 0;
  font-size: 1.1rem;
}

.term-prompt {
  color: var(--term-cyan);
}

.footer-tagline {
  color: var(--term-text-dim);
  margin: 0;
  font-size: 0.9rem;
}

.footer-copyright {
  color: var(--term-text-dim);
  margin: 0;
  font-size: 0.9rem;
}

.footer-credit {
  color: var(--term-comment);
  margin: 0;
  font-size: 0.8rem;
  opacity: 0.8;
}

.footer-connect-title {
  color: var(--term-cyan);
  font-weight: 600;
  margin-bottom: var(--space-md);
}

.footer-bottom {
  border-top: 1px solid var(--term-border);
}

.tech-item {
  color: var(--term-text-dim);
  font-size: 0.8rem;
  margin-right: var(--space-md);
}

/* =====================================================
   BOOTSTRAP OVERRIDES
   ===================================================== */
.text-primary {
  color: var(--term-green) !important;
}

.text-info {
  color: var(--term-cyan) !important;
}

.text-light {
  color: var(--term-text) !important;
}

.text-white {
  color: var(--term-text-bright) !important;
}

.bg-dark {
  background: var(--term-bg-light) !important;
}

.bg-light {
  background: var(--term-bg-light) !important;
}

.bg-primary {
  background: var(--term-green) !important;
}

.border-primary {
  border-color: var(--term-border) !important;
}

.lead {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--term-text);
}

.rounded-4 {
  border-radius: var(--term-radius) !important;
}

.rounded-pill {
  border-radius: 0 !important;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 992px) {
  .hero-section {
    padding: 5rem 0 3rem;
  }
  
  .profile-image {
    width: 180px;
    height: 180px;
  }
  
  .quantum-card {
    padding: calc(var(--term-header-height) + var(--space-md)) var(--space-md) var(--space-md);
  }
  
  .skill-label span {
    font-size: 0.8rem;
  }
  
  .skill-category-title {
    font-size: 0.95rem;
  }
  
  .projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  :root {
    --space-lg: 1rem;
    --space-xl: 1.5rem;
    --space-2xl: 2rem;
    --space-3xl: 2.5rem;
  }
  
  .hero-section {
    min-height: auto;
    padding: 4rem 0 2rem;
  }
  
  .hero-title {
    font-size: clamp(1.5rem, 8vw, 2rem);
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .hero-description {
    font-size: 0.85rem;
    padding: var(--space-sm);
  }
  
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .quantum-btn {
    width: 100%;
    justify-content: center;
    padding: var(--space-sm) var(--space-md);
    font-size: 0.85rem;
  }
  
  .section-title {
    font-size: 1.2rem;
    margin-bottom: var(--space-xl);
  }
  
  .timeline-header {
    flex-direction: column;
  }
  
  .timeline-header h3 {
    font-size: 1rem;
  }
  
  .timeline-description,
  .timeline-list li {
    font-size: 0.85rem;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  
  .project-card {
    padding: var(--space-md);
  }
  
  .project-title {
    font-size: 0.95rem;
  }
  
  .project-description {
    font-size: 0.85rem;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-item {
    padding: var(--space-sm);
  }
  
  .contact-icon {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }
  
  .contact-info {
    font-size: 0.85rem;
  }
  
  /* Skills responsive */
  .skill-label {
    flex-wrap: wrap;
    gap: var(--space-xs);
  }
  
  .skill-label span:first-child {
    flex: 1 1 70%;
    word-break: break-word;
    font-size: 0.8rem;
    line-height: 1.3;
  }
  
  .skill-label span:last-child {
    flex: 0 0 auto;
    font-size: 0.75rem;
  }
  
  .skill-category-title {
    font-size: 0.9rem;
    flex-wrap: wrap;
  }
  
  .skill-category-title i {
    margin-right: var(--space-sm) !important;
    font-size: 1rem;
  }
  
  /* Certifications responsive */
  .cert-badge {
    width: 80px;
    height: 80px;
  }
  
  .cert-image {
    width: 60px;
    height: 60px;
  }
  
  .cert-title {
    font-size: 0.85rem;
  }
  
  .cert-skill {
    font-size: 0.65rem;
  }
  
  /* Footer responsive */
  .footer-nav-link {
    display: block;
    margin: var(--space-sm) 0;
  }
  
  .footer-tech-stack {
    gap: var(--space-sm);
  }
  
  .tech-item {
    font-size: 0.7rem;
    margin-right: 0;
  }
  
  .footer-tagline {
    font-size: 0.8rem;
  }
  
  /* Hide scanlines on mobile for performance */
  body::before {
    display: none;
  }
  
  /* Social links */
  .social-links {
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .social-link {
    font-size: 1.25rem;
  }
}

@media (max-width: 576px) {
  .hero-title::before {
    font-size: 0.8rem;
  }
  
  .hero-title {
    font-size: 1.5rem;
  }
  
  .hero-subtitle {
    font-size: 0.9rem;
  }
  
  .quantum-card {
    padding: calc(var(--term-header-height) + var(--space-sm)) var(--space-sm) var(--space-sm);
  }
  
  .quantum-card::after {
    font-size: 8px;
    letter-spacing: 3px;
  }
  
  .quantum-timeline {
    padding-left: var(--space-lg);
  }
  
  .timeline-item::before {
    left: calc(-1 * var(--space-lg) - 6px);
  }
  
  .profile-image {
    width: 150px;
    height: 150px;
  }
  
  /* Skills extra small */
  .skill-label span:first-child {
    font-size: 0.75rem;
  }
  
  .skill-category-title {
    font-size: 0.85rem;
  }
  
  .skill-bar {
    height: 5px;
  }
  
  /* Project tags */
  .project-tag {
    font-size: 0.65rem;
    padding: 1px 6px;
  }
  
  /* Footer extra small */
  .footer-social-link {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
  
  .footer-title {
    font-size: 1rem;
  }
  
  .footer-connect-title {
    font-size: 0.85rem;
  }
  
  /* Container padding */
  .container {
    padding-left: var(--space-md);
    padding-right: var(--space-md);
  }
}

/* =====================================================
   ACCESSIBILITY
   ===================================================== */
.quantum-btn:focus,
.quantum-btn:focus-visible,
.nav-link:focus,
.contact-item:focus,
.project-link:focus,
.cert-link:focus,
.social-link:focus {
  outline: 2px solid var(--term-green);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  body::before,
  body::after {
    display: none;
  }
}

/* =====================================================
   PRINT
   ===================================================== */
@media print {
  body::before,
  body::after,
  .particle-system,
  .neural-network,
  .scroll-indicator,
  .navbar {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
  
  .quantum-card,
  .project-card {
    background: white !important;
    border: 1px solid #ccc !important;
  }
  
  .hero-title,
  .section-title {
    color: black !important;
    text-shadow: none !important;
  }
}
