/* ==========================================================================
   THEME VARIABLES & DESIGN TOKENS
   ========================================================================== */
:root {
  --bg-primary: #070709;
  --bg-secondary: #0d0d12;
  --bg-tertiary: #13131a;
  --bg-card: rgba(19, 19, 26, 0.7);
  --border-color: rgba(239, 68, 68, 0.18);
  --border-glow: rgba(239, 68, 68, 0.4);

  --accent-red: #ef4444;
  --accent-crimson: #dc2626;
  --accent-red-hover: #b91c1c;
  --accent-glow: rgba(239, 68, 68, 0.35);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-code: 'Fira Code', monospace;

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
}

/* Dynamic Accent Color Themes */
[data-theme="indigo"] {
  --accent-red: #6366f1;
  --accent-crimson: #4f46e5;
  --accent-red-hover: #4338ca;
  --accent-glow: rgba(99, 102, 241, 0.4);
  --border-color: rgba(99, 102, 241, 0.2);
  --border-glow: rgba(99, 102, 241, 0.4);
}

[data-theme="cyan"] {
  --accent-red: #06b6d4;
  --accent-crimson: #0891b2;
  --accent-red-hover: #0e7490;
  --accent-glow: rgba(6, 182, 212, 0.4);
  --border-color: rgba(6, 182, 212, 0.2);
  --border-glow: rgba(6, 182, 212, 0.4);
}

[data-theme="emerald"] {
  --accent-red: #10b981;
  --accent-crimson: #059669;
  --accent-red-hover: #047857;
  --accent-glow: rgba(16, 185, 129, 0.4);
  --border-color: rgba(16, 185, 129, 0.2);
  --border-glow: rgba(16, 185, 129, 0.4);
}

[data-theme="amber"] {
  --accent-red: #f59e0b;
  --accent-crimson: #d97706;
  --accent-red-hover: #b45309;
  --accent-glow: rgba(245, 158, 11, 0.4);
  --border-color: rgba(245, 158, 11, 0.2);
  --border-glow: rgba(245, 158, 11, 0.4);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-main);
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* Ambient Glow Gradients */
.glow-bg {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.25;
}

.glow-top-left {
  top: -150px;
  left: -150px;
  background: radial-gradient(circle, var(--accent-red), transparent 70%);
}

.glow-bottom-right {
  bottom: -150px;
  right: -150px;
  background: radial-gradient(circle, var(--accent-crimson), transparent 70%);
}

.grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(239, 68, 68, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(239, 68, 68, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 0;
}

/* Mouse Spotlight Cursor Glow */
.cursor-glow {
  position: fixed;
  width: 550px;
  height: 550px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(239, 68, 68, 0.12), transparent 70%);
  transform: translate(-50%, -50%);
  z-index: 0;
  transition: opacity 0.3s ease;
  mix-blend-mode: screen;
  opacity: 0;
}
.cursor-glow.active {
  opacity: 1;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

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

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

.gradient-text {
  background: linear-gradient(135deg, #ffffff 10%, #ef4444 80%, #b91c1c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-red {
  color: var(--accent-red);
}

.text-green {
  color: #10b981;
}

/* ==========================================================================
   BUTTONS & BADGES
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--accent-crimson), var(--accent-red));
  color: #ffffff;
  box-shadow: 0 6px 20px var(--accent-glow);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-red), #f87171);
  box-shadow: 0 8px 25px rgba(239, 68, 68, 0.5);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border-color: var(--border-color);
}

.btn-secondary:hover {
  border-color: var(--accent-red);
  background: rgba(239, 68, 68, 0.1);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  color: var(--accent-red);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 14px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 650px;
  margin: 0 auto 50px;
}

/* ==========================================================================
   HEADER & NAVBAR
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(7, 7, 9, 0.75);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition-fast);
}

.header.scrolled {
  background: rgba(7, 7, 9, 0.92);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand-logo {
  font-family: var(--font-code);
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
}

.logo-bracket {
  color: var(--text-muted);
}

.logo-accent {
  color: var(--accent-red);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 6px 0;
}

.nav-link:hover, .nav-link.active {
  color: #ffffff;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-red);
  transition: var(--transition-fast);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cmd-palette-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  backdrop-filter: blur(8px);
}

.cmd-palette-trigger:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  border-color: var(--border-color);
}

.cmd-shortcut-badge {
  display: inline-flex;
  gap: 3px;
}

.cmd-shortcut-badge kbd,
.cmd-esc-badge kbd,
.cmd-footer-keys kbd {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  padding: 2px 5px;
  font-size: 0.72rem;
  font-family: var(--font-code);
  color: var(--text-muted);
}

.mode-toggle-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.mode-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  border-color: var(--border-color);
  transform: rotate(15deg);
}

.badge-cv {
  background: var(--accent-red);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
  letter-spacing: 0.5px;
}

.btn-resume {
  display: inline-flex;
  align-items: center;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1.4rem;
  cursor: pointer;
}

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

.hero-container {
  width: 100%;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 50px;
  margin-bottom: 70px;
  text-align: left;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 8px 20px;
  border-radius: var(--radius-full);
  color: #10b981;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse 2s infinite;
}

.pulse-green {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-title {
  font-size: clamp(2.3rem, 4.8vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 20px;
}

.nickname {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 600;
  color: var(--text-secondary);
}

.typing-container {
  display: inline-flex;
  align-items: center;
  background: rgba(19, 19, 26, 0.85);
  border: 1px solid var(--border-color);
  padding: 10px 22px;
  border-radius: var(--radius-md);
  font-family: var(--font-code);
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  margin-bottom: 24px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.terminal-prefix {
  color: var(--accent-red);
  font-weight: 700;
}

.typing-text {
  color: #ffffff;
  min-height: 1.5em;
  display: inline-block;
}

.cursor {
  display: inline-block;
  background: var(--accent-red);
  width: 2px;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.hero-desc {
  color: var(--text-secondary);
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  max-width: 620px;
  margin-bottom: 35px;
  line-height: 1.75;
}

.highlight-diu {
  color: #ffffff;
  border-bottom: 1.5px dashed var(--accent-red);
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 14px;
}

/* ==========================================================================
   3D HERO AVATAR SHOWCASE
   ========================================================================== */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.avatar-3d-wrapper {
  position: relative;
  width: 320px;
  height: 320px;
  max-width: 100%;
  transform-style: preserve-3d;
  perspective: 1000px;
  cursor: pointer;
}

/* Animated Rotating Conic Glow Border */
.avatar-glow-ring {
  position: absolute;
  inset: -10px;
  border-radius: 34px;
  background: conic-gradient(from 0deg, #ef4444, #b91c1c, #f87171, #ef4444);
  filter: blur(16px);
  opacity: 0.8;
  animation: spinConic 9s linear infinite;
  z-index: 1;
}

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

.avatar-orb {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-red);
  box-shadow: 0 0 15px var(--accent-red);
  z-index: 2;
  pointer-events: none;
}

.orb-1 {
  top: -20px;
  right: 40px;
  animation: floatSlow 4s ease-in-out infinite;
}

.orb-2 {
  bottom: -15px;
  left: 30px;
  animation: floatDelayed 5s ease-in-out infinite;
}

/* Inner Avatar Card */
.avatar-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
  border: 2px solid rgba(239, 68, 68, 0.45);
  background: #0d0d12;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7), inset 0 0 20px rgba(239, 68, 68, 0.15);
  z-index: 2;
  transform: translateZ(20px);
}

.hero-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.avatar-3d-wrapper:hover .hero-avatar-img {
  transform: scale(1.05);
}

.avatar-overlay-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 7, 9, 0.85) 0%, transparent 45%);
  pointer-events: none;
}

.avatar-status-tag {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(19, 19, 26, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #10b981;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 9999px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
  z-index: 3;
  white-space: nowrap;
}

/* Floating 3D Tech Badges */
.floating-badge {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(19, 19, 26, 0.88);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(239, 68, 68, 0.35);
  padding: 9px 15px;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(239, 68, 68, 0.15);
  pointer-events: none;
}

.badge-top-left {
  top: -12px;
  left: -22px;
}

.badge-top-right {
  top: 25px;
  right: -28px;
}

.badge-bottom-left {
  bottom: 25px;
  left: -28px;
}

.badge-bottom-right {
  bottom: -12px;
  right: -20px;
}

.f-badge-icon {
  width: 32px;
  height: 32px;
  background: rgba(239, 68, 68, 0.15);
  color: var(--accent-red);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.f-badge-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.f-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: #ffffff;
}

.f-sub {
  font-size: 0.68rem;
  color: var(--text-secondary);
}

/* Floating Animations */
.float-slow {
  animation: floatSlow 4s ease-in-out infinite;
}

.float-delayed {
  animation: floatDelayed 4.5s ease-in-out infinite;
}

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

@keyframes floatDelayed {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(7px); }
}

/* 3D Tilt Engine Classes */
.tilt-3d {
  transform-style: preserve-3d;
  transition: transform 0.15s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.25s ease;
  will-change: transform;
}

.tilt-3d:hover {
  box-shadow: 0 16px 40px rgba(239, 68, 68, 0.18);
}

.contact-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.stats-counter-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  max-width: 980px;
  margin: 0 auto;
}

.stat-pill {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  padding: 18px 22px;
  border-radius: var(--radius-md);
  text-align: left;
  transition: var(--transition-smooth);
}

.stat-pill:hover {
  transform: translateY(-3px);
  border-color: var(--accent-red);
  box-shadow: 0 10px 25px rgba(239, 68, 68, 0.15);
}

.stat-icon {
  font-size: 1.6rem;
  color: var(--accent-red);
  background: rgba(239, 68, 68, 0.1);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

.stat-num {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: start;
}

.about-bio-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.about-bio-card h3 {
  font-size: 1.5rem;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.about-bio-card p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-size: 1.02rem;
}

.career-goal-box {
  position: relative;
  background: rgba(239, 68, 68, 0.06);
  border-left: 3px solid var(--accent-red);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin: 24px 0;
}

.quote-mark {
  position: absolute;
  top: -8px;
  right: 14px;
  font-size: 3rem;
  color: rgba(239, 68, 68, 0.2);
  line-height: 1;
}

.goal-text {
  color: #ffffff !important;
  font-size: 0.95rem !important;
  margin-bottom: 0 !important;
}

.info-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-tertiary);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.focus-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.focus-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.focus-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.focus-icon {
  font-size: 1.5rem;
  color: var(--accent-red);
  margin-bottom: 14px;
}

.focus-card h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: #ffffff;
}

.focus-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
  flex-grow: 1;
}

.card-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-red);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.card-link:hover {
  gap: 10px;
  color: #ffffff;
}

/* ==========================================================================
   CODING JOURNEY TIMELINE
   ========================================================================== */
.timeline-wrapper {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 0;
}

.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--accent-red) 15%, var(--accent-crimson) 85%, transparent);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 20px 40px;
  margin-bottom: 30px;
}

.timeline-item.left {
  left: 0;
  text-align: right;
}

.timeline-item.right {
  left: 50%;
  text-align: left;
}

.timeline-dot {
  position: absolute;
  top: 28px;
  width: 44px;
  height: 44px;
  background: var(--bg-secondary);
  border: 2px solid var(--accent-red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-red);
  font-size: 1.1rem;
  z-index: 2;
  box-shadow: 0 0 20px var(--accent-glow);
}

.timeline-item.left .timeline-dot {
  right: -22px;
}

.timeline-item.right .timeline-dot {
  left: -22px;
}

.timeline-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: var(--transition-smooth);
}

.timeline-card:hover {
  border-color: var(--accent-red);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(239, 68, 68, 0.15);
}

.timeline-card.highlight-card {
  border-color: var(--accent-red);
  background: rgba(220, 38, 38, 0.08);
  box-shadow: 0 10px 30px rgba(239, 68, 68, 0.2);
}

.milestone-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-red);
  margin-bottom: 12px;
}

.milestone-badge.badge-red {
  background: var(--accent-crimson);
  color: #ffffff;
  border-color: transparent;
}

.timeline-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: #ffffff;
}

.milestone-text {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.timeline-item.left .tag-cloud {
  justify-content: flex-end;
}

.tag {
  background: var(--bg-tertiary);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.76rem;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tag.tag-diu {
  border-color: rgba(239, 68, 68, 0.4);
  color: #ffffff;
  background: rgba(239, 68, 68, 0.15);
}

/* ==========================================================================
   FIRST CODING MEMORIES GALLERY
   ========================================================================== */
.memories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  margin-bottom: 40px;
}

.memory-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.memory-card:hover {
  border-color: var(--accent-red);
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(239, 68, 68, 0.2);
}

.memory-img-wrapper {
  position: relative;
  height: 280px;
  background: #000000;
  overflow: hidden;
}

.memory-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.memory-card:hover .memory-img-wrapper img {
  transform: scale(1.05);
}

.zoom-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(7, 7, 9, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0;
  transition: var(--transition-fast);
}

.memory-card:hover .zoom-overlay {
  opacity: 1;
}

.memory-body {
  padding: 24px;
}

.memory-date {
  display: inline-block;
  color: var(--accent-red);
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.memory-body h4 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: #ffffff;
}

.memory-body p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.6;
}

.memories-quote-box {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 800px;
  margin: 0 auto;
  background: rgba(239, 68, 68, 0.05);
  border: 1px solid var(--border-color);
  padding: 20px 28px;
  border-radius: var(--radius-md);
  text-align: center;
}

.memories-quote-box i {
  font-size: 1.8rem;
}

.memories-quote-box p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin: 0;
}

/* ==========================================================================
   SKILLS SECTION
   ========================================================================== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.skill-category-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: var(--transition-smooth);
}

.skill-category-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

.cat-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.cat-icon {
  font-size: 1.3rem;
  color: var(--accent-red);
}

.cat-header h3 {
  font-size: 1.15rem;
  color: #ffffff;
}

.skill-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.skill-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.skill-badge:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: var(--border-color);
  color: #ffffff;
  transform: translateX(4px);
}

.skill-badge i {
  color: var(--accent-red);
  width: 20px;
  text-align: center;
}

.skill-icons-banner {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 28px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.banner-title {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.skillicons-img {
  margin: 0 auto;
  max-width: 100%;
}

/* ==========================================================================
   PROJECTS SECTION
   ========================================================================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  margin-bottom: 40px;
}

.project-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-red);
  box-shadow: 0 16px 36px rgba(239, 68, 68, 0.18);
}

.project-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.project-folder-icon {
  font-size: 1.8rem;
  color: var(--accent-red);
}

.project-links a {
  font-size: 1.25rem;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.project-links a:hover {
  color: #ffffff;
  transform: scale(1.15);
}

.project-title {
  font-size: 1.35rem;
  margin-bottom: 12px;
  color: #ffffff;
}

.project-desc {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.project-features {
  margin-bottom: 24px;
  flex-grow: 1;
}

.project-features li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.project-tags span {
  font-family: var(--font-code);
  font-size: 0.74rem;
  color: var(--accent-red);
  background: rgba(239, 68, 68, 0.08);
  padding: 3px 10px;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   LEETCODE SECTION
   ========================================================================== */
.leetcode-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: center;
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.leetcode-card {
  text-align: center;
}

.leetcode-img {
  margin: 0 auto;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  transition: var(--transition-smooth);
}

.leetcode-img:hover {
  transform: scale(1.02);
}

.leetcode-details h3 {
  font-size: 1.5rem;
  margin-bottom: 14px;
}

.leetcode-details p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.leetcode-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.topic-pill {
  background: var(--bg-tertiary);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ==========================================================================
   ANALYTICS & ACTIVITY SECTION
   ========================================================================== */
.analytics-cards-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 24px;
}

.stat-img-card img {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.streak-card {
  margin-bottom: 24px;
}

.streak-card img, .activity-graph-card img {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  margin: 0 auto;
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-wrapper {
  max-width: 720px;
  margin: 0 auto;
}

.contact-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
}

.avatar-ring {
  width: 80px;
  height: 80px;
  background: rgba(239, 68, 68, 0.1);
  border: 2px solid var(--accent-red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--accent-red);
  margin: 0 auto 20px;
  box-shadow: 0 0 25px var(--accent-glow);
}

.contact-card-header h3 {
  font-size: 1.6rem;
  margin-bottom: 6px;
}

.contact-sub {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin-bottom: 30px;
}

.contact-email-box {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  padding: 12px 24px;
  border-radius: var(--radius-full);
  margin-bottom: 36px;
}

.email-address {
  font-family: var(--font-code);
  color: #ffffff;
  font-size: 1rem;
}

.copy-btn {
  background: var(--accent-crimson);
  color: #ffffff;
  border: none;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.copy-btn:hover {
  background: var(--accent-red);
}

.social-links-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--bg-tertiary);
  transition: var(--transition-smooth);
}

.social-pill:hover {
  transform: translateY(-3px);
}

.social-pill.linkedin:hover {
  background: #0077b5;
  border-color: #0077b5;
  color: #ffffff;
}

.social-pill.github:hover {
  background: #181717;
  border-color: #ffffff;
  color: #ffffff;
}

.social-pill.leetcode:hover {
  background: #ffa116;
  border-color: #ffa116;
  color: #000000;
}

.social-pill.facebook:hover {
  background: #1877f2;
  border-color: #1877f2;
  color: #ffffff;
}

.social-pill.email:hover {
  background: var(--accent-red);
  border-color: var(--accent-red);
  color: #ffffff;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background: #030305;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 40px 0;
}

.footer-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  font-family: var(--font-code);
  font-size: 1.15rem;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 8px;
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.back-to-top {
  width: 44px;
  height: 44px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--accent-red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.back-to-top:hover {
  background: var(--accent-red);
  color: #ffffff;
  transform: translateY(-3px);
}

/* ==========================================================================
   LIGHTBOX MODAL & TOAST
   ========================================================================== */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 900px;
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
  animation: zoomIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes zoomIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: rgba(0, 0, 0, 0.6);
  border: none;
  color: #ffffff;
  font-size: 2rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  z-index: 10;
}

.lightbox-close:hover {
  background: var(--accent-red);
}

#lightbox-img {
  width: 100%;
  max-height: 65vh;
  object-fit: contain;
  background: #000000;
}

.lightbox-caption {
  padding: 24px 30px;
}

.lightbox-caption h4 {
  font-size: 1.25rem;
  margin-bottom: 6px;
  color: #ffffff;
}

.lightbox-caption p {
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--accent-crimson);
  color: #ffffff;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 10px 25px var(--accent-glow);
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: var(--transition-smooth);
}

.toast.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* ==========================================================================
   SCROLL REVEAL ANIMATIONS
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-cta-group {
    justify-content: center;
  }

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-visual {
    order: -1;
    margin-bottom: 20px;
  }

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

  .timeline-line {
    left: 28px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 0;
    text-align: left !important;
  }

  .timeline-item.right {
    left: 0;
  }

  .timeline-item.left .timeline-dot,
  .timeline-item.right .timeline-dot {
    left: 6px;
    right: auto;
  }

  .timeline-item.left .tag-cloud {
    justify-content: flex-start;
  }

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

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 76px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 76px);
    background: rgba(7, 7, 9, 0.98);
    backdrop-filter: blur(20px);
    padding: 40px 24px;
    transition: var(--transition-smooth);
    border-top: 1px solid var(--border-color);
  }

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

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .nav-link {
    font-size: 1.2rem;
  }

  .nav-toggle {
    display: block;
  }

  .focus-cards-grid {
    grid-template-columns: 1fr;
  }

  .footer-container {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .avatar-3d-wrapper {
    width: 270px;
    height: 270px;
  }

  .floating-badge {
    padding: 7px 11px;
    gap: 7px;
  }

  .f-badge-icon {
    width: 26px;
    height: 26px;
    font-size: 0.78rem;
  }

  .f-title {
    font-size: 0.72rem;
  }

  .f-sub {
    font-size: 0.62rem;
  }

  .badge-top-left {
    top: -10px;
    left: -10px;
  }

  .badge-top-right {
    top: 15px;
    right: -10px;
  }

  .badge-bottom-left {
    bottom: 15px;
    left: -10px;
  }

  .badge-bottom-right {
    bottom: -10px;
    right: -10px;
  }
}

/* ==========================================================================
   ULTRA-PREMIUM UPGRADES: SPOTLIGHT CARDS, TERMINAL & THEME CONTROLS
   ========================================================================== */

/* 1. Theme Accent Switcher in Header */
.theme-accent-switcher {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px 10px;
  border-radius: var(--radius-full);
  backdrop-filter: blur(12px);
  margin-right: 6px;
}

.theme-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.2s;
  outline: none;
}

.theme-dot:hover {
  transform: scale(1.2);
}

.theme-dot.active {
  border-color: #ffffff;
  transform: scale(1.25);
  box-shadow: 0 0 10px var(--accent-glow);
}

.dot-red { background-color: #ef4444; }
.dot-indigo { background-color: #6366f1; }
.dot-cyan { background-color: #06b6d4; }
.dot-emerald { background-color: #10b981; }
.dot-amber { background-color: #f59e0b; }

/* 2. Spotlight Hover Glow Effect (Vercel / Raycast style) */
.spotlight-card {
  position: relative;
  background: rgba(15, 17, 24, 0.75);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  overflow: hidden;
  transition: border-color var(--transition-smooth), transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.spotlight-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(450px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), var(--accent-glow), transparent 40%);
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 1;
}

.spotlight-card:hover {
  border-color: var(--border-glow);
}

.spotlight-card:hover::before {
  opacity: 1;
}

/* Ensure contents stay above spotlight glow */
.spotlight-card > * {
  position: relative;
  z-index: 2;
}

/* 3. Interactive Developer Terminal */
.hero-terminal-wrapper {
  margin-top: 2rem;
  width: 100%;
}

.terminal-card {
  border-radius: var(--radius-md);
  box-shadow: 0 20px 45px -15px rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(9, 11, 17, 0.85);
}

.terminal-bar {
  background: rgba(14, 16, 23, 0.95);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  font-family: var(--font-code);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.dot-red { background-color: #ef4444; }
.dot-yellow { background-color: #eab308; }
.dot-green { background-color: #22c55e; }

.terminal-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-weight: 500;
}

.terminal-badge {
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.68rem;
  color: var(--accent-red);
}

.terminal-body {
  padding: 16px;
  font-family: var(--font-code);
  font-size: 0.85rem;
  line-height: 1.6;
  max-height: 320px;
  overflow-y: auto;
}

.terminal-line {
  color: var(--text-muted);
  margin-bottom: 4px;
}

.prompt {
  color: var(--accent-red);
  font-weight: 600;
  margin-right: 8px;
}

.cmd-echo {
  color: var(--text-primary);
}

.terminal-output {
  color: var(--text-secondary);
  margin: 6px 0 12px;
  line-height: 1.5;
}

.t-highlight {
  color: var(--accent-red);
  font-weight: 600;
}

.terminal-quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.t-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: var(--text-secondary);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-family: var(--font-code);
  cursor: pointer;
  transition: all 0.2s;
}

.t-chip:hover {
  background: var(--border-color);
  color: var(--text-primary);
  border-color: var(--accent-red);
  transform: translateY(-1px);
}

.terminal-input-line {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
}

.terminal-input {
  background: transparent;
  border: none;
  color: #ffffff;
  font-family: var(--font-code);
  font-size: 0.85rem;
  flex: 1;
  outline: none;
}

.terminal-input::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
}

/* 4. Project Card Enhancements */
.project-card.featured-project {
  border-color: var(--border-color);
  background: linear-gradient(145deg, rgba(20, 22, 32, 0.85), rgba(12, 14, 20, 0.95));
}

.project-badge-corner {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid var(--border-color);
  color: var(--accent-red);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  z-index: 3;
}

.live-link-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-red);
  background: rgba(239, 68, 68, 0.1);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  transition: all 0.2s;
  margin-right: 6px;
}

.live-link-badge:hover {
  background: var(--accent-red);
  color: #ffffff;
  box-shadow: 0 4px 15px var(--accent-glow);
}

.case-study-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(56, 189, 248, 0.3);
  transition: all 0.2s;
  margin-right: 6px;
  cursor: pointer;
}

.case-study-badge:hover {
  background: #0284c7;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.4);
}

/* 5. Top Scroll Progress Indicator */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3.5px;
  background: linear-gradient(90deg, var(--accent-crimson), var(--accent-red), #f87171);
  z-index: 9999;
  width: 0%;
  transition: width 0.08s ease-out;
  box-shadow: 0 0 12px var(--accent-glow);
}

/* 6. Three.js 3D WebGL Canvas */
.three-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

/* 7. Interactive Project Category Filter Bar */
.project-filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 35px;
}

.filter-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  outline: none;
}

.filter-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.filter-pill.active {
  background: linear-gradient(135deg, var(--accent-crimson), var(--accent-red));
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 18px var(--accent-glow);
  transform: translateY(-2px);
}

.project-card.filtered-out {
  display: none !important;
}

/* 8. macOS Style Floating Glass Dock */
.floating-glass-dock {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  pointer-events: auto;
}

.dock-container {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(13, 15, 24, 0.72);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.85), 0 0 25px -5px var(--accent-glow);
}

.dock-item {
  position: relative;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: 1.05rem;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
  outline: none;
  cursor: pointer;
}

.dock-item:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-6px) scale(1.18);
}

.dock-item.active {
  color: var(--accent-red);
  background: rgba(239, 68, 68, 0.15);
  border-color: var(--border-color);
}

.dock-divider {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0 2px;
}

/* Dock Tooltip */
.dock-item::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: rgba(10, 10, 15, 0.95);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.15s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

.dock-item:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 640px) {
  .floating-glass-dock {
    bottom: 12px;
    width: 92%;
  }
  .dock-container {
    justify-content: space-around;
    width: 100%;
    padding: 6px 10px;
    gap: 4px;
  }
  .dock-item {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }
}

/* ==========================================================================
   9. PRELOADER SCREEN
   ========================================================================== */
.preloader {
  position: fixed;
  inset: 0;
  background: #070709;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  animation: preloaderAutoHide 1.2s ease 0.5s forwards;
  pointer-events: none;
}

.preloader.fade-out {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

@keyframes preloaderAutoHide {
  0%, 70% {
    opacity: 1;
    visibility: visible;
  }
  100% {
    opacity: 0;
    visibility: hidden;
  }
}

.preloader-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.preloader-logo {
  font-family: var(--font-code);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.preloader-bar {
  width: 220px;
  height: 3.5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  overflow: hidden;
  position: relative;
}

.preloader-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-crimson), var(--accent-red));
  border-radius: 9999px;
  animation: preloaderAnimation 1.1s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

@keyframes preloaderAnimation {
  0% { width: 0%; }
  50% { width: 70%; }
  100% { width: 100%; }
}

.preloader-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-code);
  letter-spacing: 0.5px;
}

/* ==========================================================================
   10. ACHIEVEMENTS & MILESTONES SECTION
   ========================================================================== */
.achievements-section {
  position: relative;
  padding: 100px 0;
}

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.achievement-card {
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 250px;
  position: relative;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.achievement-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -15px var(--accent-glow);
}

.achieve-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--accent-red);
  margin-bottom: 20px;
}

.achieve-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--accent-red);
  margin-bottom: 8px;
}

.achieve-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.4;
}

.achieve-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.achieve-metric {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
  font-family: var(--font-code);
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.metric-num {
  color: var(--accent-red);
}

.metric-unit {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}

@media (max-width: 1024px) {
  .achievements-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* ==========================================================================
   11. STRATEGIC ROADMAP TIMELINE (2025 - 2028)
   ========================================================================== */
.roadmap-timeline-section {
  position: relative;
  padding: 100px 0;
}

.roadmap-timeline-wrapper {
  position: relative;
  max-width: 960px;
  margin: 50px auto 0;
}

.roadmap-track-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: linear-gradient(180deg, var(--accent-crimson) 0%, var(--accent-red) 60%, rgba(255, 255, 255, 0.1) 100%);
  transform: translateX(-50%);
  border-radius: 9999px;
}

.roadmap-node {
  position: relative;
  width: 50%;
  padding: 20px 40px;
  box-sizing: border-box;
}

.roadmap-node.left {
  left: 0;
  text-align: right;
  padding-right: 50px;
}

.roadmap-node.right {
  left: 50%;
  text-align: left;
  padding-left: 50px;
}

.node-marker {
  position: absolute;
  top: 28px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
  transition: all 0.3s ease;
}

.roadmap-node.left .node-marker {
  right: -27px;
}

.roadmap-node.right .node-marker {
  left: -27px;
}

.node-year {
  font-family: var(--font-code);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-red);
}

.node-marker.active {
  border-color: var(--accent-red);
  box-shadow: 0 0 25px var(--accent-glow);
  background: var(--accent-crimson);
}

.node-marker.active .node-year {
  color: #ffffff;
}

.node-card {
  padding: 28px 30px;
  border-radius: var(--radius-lg);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.roadmap-node.left .node-card {
  text-align: left;
}

.node-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px -10px var(--accent-glow);
}

.node-card.active-node {
  border-color: var(--border-glow);
  background: rgba(239, 68, 68, 0.05);
}

.node-phase-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 4px 10px;
  border-radius: 9999px;
  margin-bottom: 12px;
}

.node-phase-tag.completed {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.node-phase-tag.in-progress {
  background: rgba(239, 68, 68, 0.15);
  color: var(--accent-red);
  border: 1px solid var(--border-color);
}

.node-phase-tag.upcoming {
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.node-phase-tag.target {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.node-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.node-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.node-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.node-skills span {
  font-size: 0.75rem;
  font-family: var(--font-code);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4px 9px;
  border-radius: 6px;
  color: var(--text-primary);
}

@media (max-width: 768px) {
  .roadmap-track-line {
    left: 28px;
  }
  .roadmap-node {
    width: 100%;
    padding-left: 70px !important;
    padding-right: 15px !important;
    left: 0 !important;
    text-align: left !important;
  }
  .roadmap-node.left .node-marker,
  .roadmap-node.right .node-marker {
    left: 2px !important;
    right: auto !important;
  }
}

/* ==========================================================================
   12. COMMAND PALETTE MODAL (Ctrl+K / Cmd+K)
   ========================================================================== */
.cmd-palette-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 99999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 14vh;
  opacity: 0;
  visibility: hidden;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.cmd-palette-overlay.active {
  opacity: 1;
  visibility: visible;
}

.cmd-palette-container {
  width: 90%;
  max-width: 640px;
  background: rgba(15, 17, 24, 0.95);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.9), 0 0 35px -5px var(--accent-glow);
  overflow: hidden;
  transform: scale(0.96) translateY(-10px);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.cmd-palette-overlay.active .cmd-palette-container {
  transform: scale(1) translateY(0);
}

.cmd-palette-header {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  gap: 12px;
}

.cmd-terminal-icon {
  font-size: 1.1rem;
  color: var(--accent-red);
}

#cmd-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-main);
  font-size: 1.05rem;
  color: var(--text-primary);
}

#cmd-input::placeholder {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.cmd-esc-badge {
  display: inline-flex;
}

.cmd-palette-body {
  max-height: 380px;
  overflow-y: auto;
  padding: 12px 10px;
}

.cmd-palette-body::-webkit-scrollbar {
  width: 5px;
}

.cmd-palette-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 9999px;
}

.cmd-group-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  padding: 10px 12px 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cmd-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
  color: var(--text-secondary);
}

.cmd-item:hover,
.cmd-item.active {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  transform: translateX(4px);
}

.cmd-item i {
  width: 20px;
  text-align: center;
  font-size: 1rem;
  color: var(--accent-red);
}

.cmd-item-title {
  flex: 1;
  font-size: 0.92rem;
  font-weight: 500;
}

.cmd-item-shortcut,
.cmd-item-badge {
  font-family: var(--font-code);
  font-size: 0.72rem;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

.cmd-color-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: inline-block;
}

.cmd-palette-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: rgba(0, 0, 0, 0.25);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.cmd-footer-keys {
  display: flex;
  gap: 12px;
}

@media (max-width: 640px) {
  .cmd-palette-overlay {
    padding-top: 6vh;
  }
  .cmd-footer-brand {
    display: none;
  }
}

/* ==========================================================================
   13. PROJECT CASE STUDY SLIDE-OVER DRAWER
   ========================================================================== */
.case-study-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 99998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  justify-content: flex-end;
}

.case-study-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.case-study-drawer {
  width: 100%;
  max-width: 680px;
  height: 100%;
  background: var(--bg-secondary);
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: -20px 0 50px rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.case-study-backdrop.active .case-study-drawer {
  transform: translateX(0);
}

.case-study-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 28px 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 17, 24, 0.8);
  position: sticky;
  top: 0;
  z-index: 10;
}

.case-study-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent-red);
  margin-bottom: 6px;
}

.case-study-heading {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.3;
}

.case-study-sub {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

.case-study-close-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.case-study-close-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  transform: rotate(90deg);
}

.case-study-body {
  padding: 32px;
  overflow-y: auto;
  flex: 1;
}

.case-study-body::-webkit-scrollbar {
  width: 6px;
}

.case-study-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 9999px;
}

.cs-section {
  margin-bottom: 32px;
}

.cs-section-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 8px;
}

.cs-section-title i {
  color: var(--accent-red);
}

.cs-text {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.cs-tech-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cs-tech-pill {
  font-family: var(--font-code);
  font-size: 0.78rem;
  padding: 6px 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.cs-arch-pre {
  background: #050507;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 16px;
  font-family: var(--font-code);
  font-size: 0.8rem;
  line-height: 1.6;
  color: #38bdf8;
  overflow-x: auto;
}

.cs-challenge-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 3px solid var(--accent-red);
  padding: 14px 18px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 12px;
}

.cs-challenge-card h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.cs-challenge-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.cs-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

@media (max-width: 640px) {
  .case-study-drawer {
    max-width: 100%;
  }
  .case-study-header {
    padding: 20px;
  }
  .case-study-body {
    padding: 20px;
  }
}

/* ==========================================================================
   14. LIGHT MODE THEME SYSTEM ([data-color-mode="light"])
   ========================================================================== */
[data-color-mode="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-tertiary: #e2e8f0;
  --bg-card: rgba(255, 255, 255, 0.88);
  --border-color: rgba(220, 38, 38, 0.22);
  --border-glow: rgba(220, 38, 38, 0.35);

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
}

[data-color-mode="light"] body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

[data-color-mode="light"] .header {
  background: rgba(248, 250, 252, 0.85);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

[data-color-mode="light"] .spotlight-card,
[data-color-mode="light"] .project-card,
[data-color-mode="light"] .achievement-card,
[data-color-mode="light"] .node-card,
[data-color-mode="light"] .skill-category,
[data-color-mode="light"] .memory-card,
[data-color-mode="light"] .contact-card {
  background: rgba(255, 255, 255, 0.92) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
}

[data-color-mode="light"] .terminal-card {
  background: #0d1117 !important; /* Keep engineering terminal sleek high-contrast dark */
}

[data-color-mode="light"] .cmd-palette-container {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.25);
}

[data-color-mode="light"] .cmd-palette-header {
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

[data-color-mode="light"] .cmd-item:hover,
[data-color-mode="light"] .cmd-item.active {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-primary);
}

[data-color-mode="light"] .cmd-palette-footer {
  background: rgba(0, 0, 0, 0.04);
  border-top-color: rgba(0, 0, 0, 0.08);
}

[data-color-mode="light"] .case-study-drawer {
  background: #ffffff;
  border-left-color: rgba(0, 0, 0, 0.1);
}

[data-color-mode="light"] .case-study-header {
  background: rgba(248, 250, 252, 0.95);
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

[data-color-mode="light"] .cs-arch-pre {
  background: #0f172a;
}

[data-color-mode="light"] .dock-container {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
}

[data-color-mode="light"] .dock-item {
  color: #475569;
}

[data-color-mode="light"] .dock-item:hover {
  color: #0f172a;
  background: rgba(0, 0, 0, 0.06);
}

[data-color-mode="light"] .filter-pill {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.08);
  color: #475569;
}

[data-color-mode="light"] .grid-overlay {
  opacity: 0.15;
}