/* ==========================================================================
   LeeZhi.dev - Core Design System & Stylesheet
   Style: Dark Cyber-Tech / Glassmorphism / Ultra-Modern Developer Portfolio
   Author: Senior Frontend Designer
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Custom Properties & Design Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Color Palette - Dark Base */
  --bg-dark: #090d16;
  --bg-surface: #0f172a;
  --bg-surface-elevated: rgba(15, 23, 42, 0.75);
  --bg-card: rgba(15, 23, 42, 0.6);
  --bg-card-hover: rgba(30, 41, 59, 0.75);

  /* Brand Accents & Neon Gradients */
  --accent-cyan: #38bdf8;
  --accent-blue: #6366f1;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-purple: #a855f7;

  /* Gradient Definitions */
  --grad-primary: linear-gradient(135deg, #38bdf8 0%, #818cf8 50%, #c084fc 100%);
  --grad-accent: linear-gradient(135deg, #34d399 0%, #38bdf8 100%);
  --grad-dark-card: linear-gradient(180deg, rgba(30, 41, 59, 0.5) 0%, rgba(15, 23, 42, 0.8) 100%);
  --grad-glow: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, rgba(9, 13, 22, 0) 70%);

  /* Typography Tokens */
  --font-heading: 'Syne', 'Plus Jakarta Sans', -apple-system, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Text Colors */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --border-light: rgba(255, 255, 255, 0.08);
  --border-active: rgba(56, 189, 248, 0.35);

  /* Shadows & Glassmorphism Filters */
  --backdrop-blur: blur(16px) saturate(180%);
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  --shadow-glow: 0 0 25px rgba(56, 189, 248, 0.25);

  /* Spacing & Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;
  --max-width: 1240px;
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   2. Reset & General Styles
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  color-scheme: dark;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: var(--radius-pill);
  border: 2px solid var(--bg-dark);
}
::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* Base Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-main);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
}

input, button {
  font-size: 1rem;
}

/* Utility Containers */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.text-gradient {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

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

.text-mono {
  font-family: var(--font-mono);
}

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

.d-none-mobile {
  display: flex;
}

/* --------------------------------------------------------------------------
   3. Ambient Background & Glass Effects
   -------------------------------------------------------------------------- */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
  animation: pulseGlow 12s infinite alternate ease-in-out;
}

.bg-glow-1 {
  width: 500px;
  height: 500px;
  background: var(--accent-cyan);
  top: -100px;
  right: -100px;
}

.bg-glow-2 {
  width: 600px;
  height: 600px;
  background: var(--accent-blue);
  bottom: 10%;
  left: -200px;
  animation-delay: -4s;
}

.bg-glow-3 {
  width: 400px;
  height: 400px;
  background: var(--accent-purple);
  top: 45%;
  right: 10%;
  animation-delay: -8s;
}

@keyframes pulseGlow {
  0% { transform: scale(1) translate(0, 0); opacity: 0.35; }
  100% { transform: scale(1.15) translate(30px, -20px); opacity: 0.55; }
}

.noise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.5;
}

.glass-card {
  background: var(--bg-card);
  backdrop-filter: var(--backdrop-blur);
  -webkit-backdrop-filter: var(--backdrop-blur);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
  position: relative;
  z-index: 2;
}

.glass-card:hover {
  border-color: var(--border-active);
  box-shadow: var(--shadow-card), var(--shadow-glow);
  transform: translateY(-4px);
}

/* --------------------------------------------------------------------------
   4. Navigation Bar
   -------------------------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1.25rem 0;
  transition: all var(--transition-normal);
}

.navbar.scrolled {
  padding: 0.85rem 0;
  background: rgba(9, 13, 22, 0.85);
  backdrop-filter: var(--backdrop-blur);
  -webkit-backdrop-filter: var(--backdrop-blur);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

.nav-brand {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
}

.brand-code {
  color: var(--accent-cyan);
  margin: 0 2px;
}

.brand-dot {
  color: var(--accent-cyan);
  font-weight: 900;
}

.nav-status-badge {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.825rem;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent-emerald);
  font-weight: 500;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
}

.pulsating {
  animation: pulseBeacon 2s infinite;
}

@keyframes pulseBeacon {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-link {
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 0.25rem 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-main);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-cyan);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--accent-cyan);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
}

.hamburger-btn span {
  width: 100%;
  height: 2px;
  background-color: var(--text-main);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

/* --------------------------------------------------------------------------
   5. Buttons & Interactive Elements
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition-normal);
  white-space: nowrap;
  user-select: none;
}

.btn-sm {
  padding: 0.45rem 0.95rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 0.95rem 1.85rem;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

.btn-primary {
  background: var(--grad-primary);
  color: #090d16;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(56, 189, 248, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(56, 189, 248, 0.5);
  opacity: 0.95;
}

.btn-glass {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  backdrop-filter: blur(8px);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--border-active);
  transform: translateY(-2px);
}

.btn-ghost {
  color: var(--text-muted);
  border: 1px solid transparent;
}

.btn-ghost:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.icon-svg {
  width: 1.25rem;
  height: 1.25rem;
}

.icon-svg-sm {
  width: 1rem;
  height: 1rem;
}

/* --------------------------------------------------------------------------
   6. Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  padding-top: 9rem;
  padding-bottom: 5rem;
  z-index: 2;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  color: var(--accent-cyan);
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: clamp(2.5rem, 4.5vw, 4rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
  letter-spacing: -0.03em;
}

.hero-typewriter {
  font-family: var(--font-mono);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
}

.typewriter-text {
  color: var(--accent-cyan);
  font-weight: 600;
  margin-left: 0.5rem;
}

.typewriter-cursor {
  animation: blinkCursor 0.8s infinite;
  color: var(--accent-cyan);
  margin-left: 2px;
}

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

.hero-description {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 620px;
  margin-bottom: 2.25rem;
  line-height: 1.7;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.5rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.stat-card {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-main);
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-dim);
  font-weight: 500;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   7. CLI Terminal Widget (Hero Right Column)
   -------------------------------------------------------------------------- */
.terminal-card {
  background: #0b0f19;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(56, 189, 248, 0.1);
  overflow: hidden;
  font-family: var(--font-mono);
}

.terminal-header {
  background: #111827;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.terminal-dots {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.terminal-title {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.terminal-clear-btn {
  font-size: 0.75rem;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 8px;
  border-radius: 4px;
}

.terminal-clear-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.15);
}

.terminal-body {
  padding: 1.25rem;
  height: 240px;
  overflow-y: auto;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #e2e8f0;
}

.terminal-line {
  margin-bottom: 0.5rem;
  word-break: break-word;
}

.terminal-line.muted { color: var(--text-dim); }
.term-cyan { color: var(--accent-cyan); font-weight: bold; }
.term-green { color: var(--accent-emerald); }
.term-amber { color: var(--accent-amber); }
.term-purple { color: var(--accent-purple); }
.term-highlight { color: #f8fafc; text-decoration: underline; }

.terminal-quick-buttons {
  padding: 0.5rem 1rem;
  background: #0e1526;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.term-btn {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all var(--transition-fast);
}

.term-btn:hover {
  background: rgba(56, 189, 248, 0.2);
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
}

.term-btn-accent {
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent-cyan);
}

.terminal-input-row {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  background: #090d16;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.terminal-prompt {
  color: var(--accent-emerald);
  font-weight: bold;
  font-size: 0.85rem;
  margin-right: 0.6rem;
}

.terminal-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 0.875rem;
}

.terminal-submit {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--bg-dark);
  background: var(--accent-cyan);
  font-weight: bold;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  transition: opacity var(--transition-fast);
}

.terminal-submit:hover { opacity: 0.9; }

/* --------------------------------------------------------------------------
   8. Section Standard Layout
   -------------------------------------------------------------------------- */
.section-padding {
  padding: 6rem 0;
  position: relative;
  z-index: 2;
}

.section-alt {
  background: rgba(15, 23, 42, 0.35);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--accent-cyan);
  display: inline-block;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 3rem auto;
}

/* --------------------------------------------------------------------------
   9. About Me Section
   -------------------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 2rem;
  align-items: stretch;
}

.about-main-card {
  padding: 2.5rem;
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.about-avatar-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.avatar-ring {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--grad-primary);
  padding: 3px;
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.3);
}

.avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-text {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 900;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.avatar-badge {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  color: var(--accent-emerald);
  font-weight: 600;
}

.pulsating-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
}

.about-bio {
  flex: 1;
}

.bio-name {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.bio-text {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 1rem;
  line-height: 1.7;
}

.bio-principles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}

.principle-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.principle-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.principle-item h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.principle-item p {
  font-size: 0.825rem;
  color: var(--text-dim);
}

.about-side-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.fact-card {
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.fact-icon {
  font-size: 1.75rem;
}

.fact-content {
  display: flex;
  flex-direction: column;
}

.fact-title {
  font-size: 0.775rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.fact-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
}

.fact-link {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent-cyan);
}

.fact-link:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   10. Skills Bento Grid Section
   -------------------------------------------------------------------------- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.bento-card {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bento-wide {
  grid-column: span 2;
}

.bento-tall {
  grid-row: span 2;
}

.bento-header {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.bento-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-blue { background: rgba(56, 189, 248, 0.15); color: var(--accent-cyan); border: 1px solid rgba(56, 189, 248, 0.3); }
.icon-emerald { background: rgba(16, 185, 129, 0.15); color: var(--accent-emerald); border: 1px solid rgba(16, 185, 129, 0.3); }
.icon-purple { background: rgba(168, 85, 247, 0.15); color: var(--accent-purple); border: 1px solid rgba(168, 85, 247, 0.3); }
.icon-amber { background: rgba(245, 158, 11, 0.15); color: var(--accent-amber); border: 1px solid rgba(245, 158, 11, 0.3); }

.bento-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.bento-desc {
  font-size: 0.875rem;
  color: var(--text-dim);
}

.skill-tags-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.skill-pill {
  font-size: 0.825rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.skill-pill:hover, .active-pill {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.3);
  color: var(--accent-cyan);
}

.skill-meter-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.meter-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.meter-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
}

.meter-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
}

.meter-fill {
  height: 100%;
  background: var(--grad-primary);
  border-radius: 4px;
  transition: width 1s ease-in-out;
}

.skill-feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.skill-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.check-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.8rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.skill-feature-list strong {
  font-size: 0.95rem;
  display: block;
  margin-bottom: 0.2rem;
}

.skill-feature-list p {
  font-size: 0.825rem;
  color: var(--text-dim);
}

/* --------------------------------------------------------------------------
   11. Projects Showcase Section
   -------------------------------------------------------------------------- */
.project-filter-bar {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--accent-cyan);
  color: var(--bg-dark);
  border-color: var(--accent-cyan);
  font-weight: 700;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.4);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.project-banner {
  height: 180px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-light);
}

.project-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-pill);
  background: rgba(9, 13, 22, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: var(--accent-cyan);
  font-size: 0.775rem;
  font-weight: 700;
  z-index: 3;
}

.accent-amber { border-color: rgba(245, 158, 11, 0.5); color: var(--accent-amber); }
.accent-purple { border-color: rgba(168, 85, 247, 0.5); color: var(--accent-purple); }
.accent-emerald { border-color: rgba(16, 185, 129, 0.5); color: var(--accent-emerald); }

.project-banner-illustration {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-normal);
}

.project-card:hover .project-banner-illustration {
  transform: scale(1.05);
}

.bg-grad-1 { background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%); }
.bg-grad-2 { background: linear-gradient(135deg, #1e1b4b 0%, #0f172a 100%); }
.bg-grad-3 { background: linear-gradient(135deg, #2e1065 0%, #0f172a 100%); }
.bg-grad-4 { background: linear-gradient(135deg, #064e3b 0%, #0f172a 100%); }

.illustration-code {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(0, 0, 0, 0.4);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px dashed rgba(255, 255, 255, 0.2);
}

.project-content {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.75rem;
}

.project-title {
  font-size: 1.25rem;
  font-weight: 700;
}

.project-year {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
}

.project-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  line-height: 1.6;
  flex: 1;
}

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

.tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-dim);
}

.project-links {
  display: flex;
  gap: 0.75rem;
}

.project-btn {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.project-btn.primary {
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.project-btn.primary:hover {
  background: var(--accent-cyan);
  color: var(--bg-dark);
}

.project-btn.secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid var(--border-light);
}

.project-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
}

/* --------------------------------------------------------------------------
   12. Contact & Collaboration Section
   -------------------------------------------------------------------------- */
.contact-box {
  padding: 3.5rem 2.5rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 2.5rem;
}

.contact-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-icon {
  font-size: 2.25rem;
  margin-bottom: 0.75rem;
}

.contact-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.contact-card p {
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
}

.copy-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #090d16;
  border: 1px solid var(--border-light);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  width: 100%;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.copy-btn {
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: bold;
}

.copy-btn:hover {
  text-decoration: underline;
}

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

.contact-footer-note {
  font-size: 0.9rem;
  color: var(--text-dim);
  border-top: 1px solid var(--border-light);
  padding-top: 1.5rem;
}

/* --------------------------------------------------------------------------
   13. Footer & Modals
   -------------------------------------------------------------------------- */
.footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border-light);
  background: #060911;
  position: relative;
  z-index: 2;
}

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

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-top: 0.4rem;
}

.back-to-top {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.back-to-top:hover {
  background: var(--accent-cyan);
  color: var(--bg-dark);
  border-color: var(--accent-cyan);
}

/* Modal Overlay & Card */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  width: 90%;
  max-width: 540px;
  padding: 2.5rem;
  position: relative;
  transform: translateY(20px);
  transition: transform var(--transition-normal);
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  font-size: 1.75rem;
  color: var(--text-dim);
}

.modal-close:hover {
  color: var(--text-main);
}

.modal-title {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

.modal-body {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.75rem;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

.qr-placeholder-box {
  margin: 1.5rem 0;
  display: flex;
  justify-content: center;
}

.qr-frame {
  width: 100%;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px dashed var(--border-active);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.qr-code-icon { font-size: 3rem; }
.qr-text { font-size: 1.1rem; color: var(--text-main); }
.qr-sub { font-size: 0.8rem; color: var(--text-dim); }

/* --------------------------------------------------------------------------
   14. Responsive Rules (Media Queries)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

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

  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bento-wide, .bento-tall {
    grid-column: span 1;
    grid-row: span 1;
  }

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

@media (max-width: 768px) {
  .d-none-mobile {
    display: none !important;
  }

  .hamburger-btn {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: #0b0f19;
    border-bottom: 1px solid var(--border-light);
    flex-direction: column;
    padding: 1.5rem 0;
    gap: 1.25rem;
    transform: translateY(-150%);
    transition: transform var(--transition-normal);
    box-shadow: 0 20px 30px rgba(0,0,0,0.5);
  }

  .nav-menu.open {
    transform: translateY(0);
  }

  .about-main-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .bio-principles {
    grid-template-columns: 1fr;
  }

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

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

  .footer-container {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
}
