/* ============================================================
   UDAY SHINDE PORTFOLIO — style.css
   Premium Glassmorphism · Futuristic Dark UI
   ============================================================ */

/* ── CSS VARIABLES ─────────────────────────────────────────── */
:root {
  /* Core palette */
  --bg-primary:    #080810;
  --bg-secondary:  #0d0d1a;
  --bg-card:       rgba(255,255,255,0.04);
  --bg-card-hover: rgba(255,255,255,0.07);
  --glass-border:  rgba(255,255,255,0.08);
  --glass-shadow:  0 8px 40px rgba(0,0,0,0.5);

  /* Accent — default cyan/electric-blue */
  --accent:        #00e5ff;
  --accent-rgb:    0,229,255;
  --accent-dim:    rgba(0,229,255,0.15);
  --accent-glow:   0 0 24px rgba(0,229,255,0.35);
  --accent-secondary: #7b5cff;

  /* Text */
  --text-primary:  #f0f0ff;
  --text-secondary:#a0a0c0;
  --text-muted:    #5a5a7a;

  /* Semantic */
  --success: #22c55e;
  --warning: #f59e0b;
  --error:   #ef4444;

  /* Typography */
  --font-display: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  /* Spacing */
  --section-pad: clamp(4rem, 10vh, 8rem);
  --container:   1200px;
  --radius:      16px;
  --radius-sm:   8px;
  --radius-lg:   24px;

  /* Transitions */
  --ease:        cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur:         0.3s;
}

/* Light mode overrides */
[data-theme="light"] {
  --bg-primary:    #f8f9fe;
  --bg-secondary:  #eef0fc;
  --bg-card:       rgba(255,255,255,0.7);
  --bg-card-hover: rgba(255,255,255,0.9);
  --glass-border:  rgba(0,0,0,0.08);
  --glass-shadow:  0 8px 40px rgba(0,0,80,0.1);
  --text-primary:  #0a0a1a;
  --text-secondary:#3a3a5a;
  --text-muted:    #8080a0;
}

/* Accent color themes */
[data-accent="purple"] { --accent: #a855f7; --accent-rgb: 168,85,247; }
[data-accent="green"]  { --accent: #22c55e; --accent-rgb: 34,197,94;  }
[data-accent="orange"] { --accent: #f97316; --accent-rgb: 249,115,22; }
[data-accent="pink"]   { --accent: #ec4899; --accent-rgb: 236,72,153; }

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  cursor: none;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}

img { max-width: 100%; display: block; }
a  { color: var(--accent); text-decoration: none; }
button { cursor: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }
ul { list-style: none; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: rgba(var(--accent-rgb),0.3); }

/* ── CUSTOM CURSOR ─────────────────────────────────────────── */
#cursor {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width .15s, height .15s, background .15s;
  mix-blend-mode: difference;
}

#cursor-follower {
  width: 30px; height: 30px;
  border: 1.5px solid rgba(var(--accent-rgb), 0.5);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform .08s var(--ease), width .3s, height .3s, border-color .3s;
}

body.cursor-hover #cursor { width: 14px; height: 14px; }
body.cursor-hover #cursor-follower { width: 50px; height: 50px; border-color: rgba(var(--accent-rgb), 0.3); }

@media (hover: none) { #cursor, #cursor-follower { display: none; } body { cursor: auto; } button { cursor: pointer; } }

/* ── SCROLL PROGRESS ───────────────────────────────────────── */
#scroll-progress {
  position: fixed; top: 0; left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
  z-index: 10000;
  width: 0%;
  transition: width .1s linear;
}

/* ── LOADING SCREEN ────────────────────────────────────────── */
#loader {
  position: fixed; inset: 0;
  background: var(--bg-primary);
  display: flex; align-items: center; justify-content: center;
  z-index: 99999;
  transition: opacity .5s var(--ease), visibility .5s;
}
#loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

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

.loader-logo {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: pulse-logo 1.2s ease-in-out infinite;
  margin-bottom: 2rem;
}

.loader-bar {
  width: 200px; height: 2px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  overflow: hidden;
  margin: 0 auto 1rem;
}
.loader-bar span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
  animation: loader-fill 1.5s var(--ease) forwards;
}

.loader-text { font-size: .85rem; color: var(--text-muted); font-family: var(--font-mono); }
.dots { animation: blink-dots 1s steps(3, end) infinite; }

@keyframes loader-fill { from { width: 0 } to { width: 100% } }
@keyframes pulse-logo  { 0%,100% { opacity: 1 } 50% { opacity: 0.6 } }
@keyframes blink-dots  { 0% { content: '' } 33% { content: '.' } 66% { content: '..' } 100% { content: '...' } }

/* ── SHORTCUT HINT ─────────────────────────────────────────── */
#shortcut-hint {
  position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%);
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  padding: .5rem 1.25rem;
  font-size: .8rem; color: var(--text-secondary);
  z-index: 9000;
  opacity: 0; pointer-events: none;
  transition: opacity .3s;
}
#shortcut-hint.visible { opacity: 1; }

/* ── GLASS CARD ────────────────────────────────────────────── */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow);
  transition: transform var(--dur) var(--ease), background var(--dur), box-shadow var(--dur);
}
.glass-card:hover {
  background: var(--bg-card-hover);
  box-shadow: var(--glass-shadow), 0 0 0 1px rgba(var(--accent-rgb), 0.15);
  transform: translateY(-2px);
}

/* ── NAV ───────────────────────────────────────────────────── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background var(--dur), box-shadow var(--dur), padding var(--dur);
  padding: 0;
}
#navbar.scrolled {
  background: rgba(8,8,16,0.85);
  backdrop-filter: blur(20px) saturate(200%);
  -webkit-backdrop-filter: blur(20px) saturate(200%);
  box-shadow: 0 1px 0 var(--glass-border);
}
[data-theme="light"] #navbar.scrolled { background: rgba(248,249,254,0.85); }

.nav-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex; align-items: center; gap: 2rem;
}
#navbar.scrolled .nav-container { padding-top: .85rem; padding-bottom: .85rem; }

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -.5px;
  flex-shrink: 0;
  transition: color var(--dur);
}
.nav-logo:hover { color: var(--accent); }
.logo-bracket { color: var(--accent); }

.nav-links {
  display: flex; gap: .25rem;
  margin-left: auto;
}

.nav-link {
  color: var(--text-secondary);
  font-size: .9rem;
  font-weight: 500;
  padding: .5rem .85rem;
  border-radius: 100px;
  transition: color var(--dur), background var(--dur);
  position: relative;
}
.nav-link::after {
  content: ''; position: absolute;
  bottom: 4px; left: 50%; transform: translateX(-50%);
  width: 0; height: 2px;
  background: var(--accent); border-radius: 2px;
  transition: width var(--dur) var(--ease);
}
.nav-link:hover { color: var(--text-primary); }
.nav-link:hover::after, .nav-link.active::after { width: 60%; }
.nav-link.active { color: var(--text-primary); }

.nav-actions { display: flex; align-items: center; gap: .75rem; flex-shrink: 0; }

.icon-btn {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  background: transparent;
  color: var(--text-secondary);
  font-size: 1rem;
  transition: color var(--dur), border-color var(--dur), background var(--dur);
}
.icon-btn:hover { color: var(--text-primary); border-color: var(--accent); background: var(--accent-dim); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  width: 36px; height: 36px;
  align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
}
.hamburger span {
  display: block; width: 18px; height: 1.5px;
  background: var(--text-primary);
  transition: transform var(--dur), opacity var(--dur);
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: absolute; top: 100%; left: 0; right: 0;
  background: rgba(8,8,16,0.96);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  padding: 1.5rem 2rem 2rem;
  opacity: 0; transform: translateY(-10px);
  transition: opacity var(--dur), transform var(--dur);
  pointer-events: none;
}
.mobile-menu.open { opacity: 1; transform: translateY(0); pointer-events: all; }
.mobile-menu li + li { margin-top: .5rem; }
.mobile-menu a { color: var(--text-secondary); font-size: 1rem; display: block; padding: .5rem 0; }
.mobile-menu a:hover { color: var(--accent); }

/* ── BUTTONS ───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .75rem 1.6rem;
  border-radius: 100px;
  font-size: .9rem; font-weight: 600;
  font-family: var(--font-body);
  border: none;
  transition: transform var(--dur) var(--ease-bounce), box-shadow var(--dur), background var(--dur);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), rgba(var(--accent-rgb),0.7));
  color: var(--bg-primary);
  box-shadow: 0 4px 20px rgba(var(--accent-rgb),0.35);
}
.btn-primary:hover { box-shadow: 0 6px 30px rgba(var(--accent-rgb),0.5); color: var(--bg-primary); }

.btn-glass {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
}
.btn-glass:hover { background: var(--bg-card-hover); border-color: rgba(var(--accent-rgb),0.3); color: var(--text-primary); }

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.btn-sm { padding: .5rem 1.1rem; font-size: .82rem; }
.btn-full { width: 100%; justify-content: center; }

.btn-loader {
  display: none; width: 14px; height: 14px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.btn.loading .btn-loader { display: block; }
.btn.loading span:first-child { display: none; }

/* ── SECTION BASE ──────────────────────────────────────────── */
.section { padding: var(--section-pad) 0; position: relative; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 2rem; }

.section-header { text-align: center; margin-bottom: 4rem; }
.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--accent);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: .75rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--text-primary);
}
.section-sub { margin-top: 1rem; color: var(--text-secondary); font-size: 1.05rem; }

/* ── SCROLL REVEAL ─────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: .1s; }
.reveal:nth-child(3) { transition-delay: .2s; }
.reveal:nth-child(4) { transition-delay: .3s; }

/* ── HERO ──────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding: 7rem 2rem 4rem;
}

#particles-canvas {
  position: absolute; inset: 0;
  z-index: 0; pointer-events: none;
}

.hero-grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(var(--accent-rgb),0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--accent-rgb),0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 0;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

.hero-content {
  position: relative; z-index: 2;
  max-width: 640px;
  flex: 1;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: .6rem;
  background: var(--accent-dim);
  border: 1px solid rgba(var(--accent-rgb), 0.25);
  border-radius: 100px;
  padding: .4rem 1rem;
  font-size: .8rem;
  color: var(--accent);
  font-family: var(--font-mono);
  margin-bottom: 1.5rem;
}
.badge-dot {
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  animation: badge-pulse 2s ease-in-out infinite;
}
@keyframes badge-pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb),0.4); }
  50% { box-shadow: 0 0 0 6px rgba(var(--accent-rgb),0); }
}

.hero-name { margin-bottom: 1.25rem; }
.hero-greeting {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(.9rem, 1.5vw, 1.1rem);
  color: var(--text-secondary);
  margin-bottom: .25rem;
}
.hero-title-name {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.04em;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 70%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-roles {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--text-secondary);
  margin-bottom: 1rem;
  min-height: 2rem;
  display: flex; align-items: center; gap: .25rem;
  flex-wrap: wrap;
}
.role-static { color: var(--text-muted); }
.typed-text { color: var(--accent); font-weight: 600; }
.typed-cursor { color: var(--accent); animation: blink .8s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

.hero-tagline {
  font-size: .9rem; color: var(--text-muted);
  font-family: var(--font-mono);
  margin-bottom: 2rem;
}

.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }

.hero-stats {
  display: flex; align-items: center; gap: 0;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.stat-item { padding: 0 1.5rem; text-align: center; }
.stat-item:first-child { padding-left: 0; }
.stat-num {
  font-family: var(--font-display);
  font-size: 2rem; font-weight: 800;
  color: var(--accent);
  display: inline-block;
  line-height: 1;
}
.stat-suffix { font-size: 1.25rem; font-weight: 700; color: var(--accent); }
.stat-label { display: block; font-size: .75rem; color: var(--text-muted); margin-top: .2rem; font-family: var(--font-mono); }

.stat-divider { width: 1px; height: 40px; background: var(--glass-border); }

.hero-socials { display: flex; gap: .75rem; flex-wrap: wrap; }
.social-pill {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .45rem 1rem;
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  color: var(--text-secondary);
  font-size: .82rem;
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  transition: color var(--dur), border-color var(--dur), background var(--dur);
}
.social-pill:hover { color: var(--accent); border-color: rgba(var(--accent-rgb),0.4); background: var(--accent-dim); }

/* Hero visual — right side */
.hero-visual {
  position: absolute; right: clamp(1rem, 5vw, 8rem);
  top: 50%; transform: translateY(-50%);
  z-index: 2;
  display: flex; flex-direction: column;
  gap: 1.25rem;
  align-items: flex-end;
}

.code-float {
  padding: 1.25rem;
  min-width: 280px;
  animation: float-code 6s ease-in-out infinite;
}
.code-header {
  display: flex; align-items: center; gap: .4rem;
  margin-bottom: .85rem;
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red    { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green  { background: #28c840; }
.code-filename { font-family: var(--font-mono); font-size: .7rem; color: var(--text-muted); margin-left: .4rem; }

.code-block { font-family: var(--font-mono); font-size: .78rem; line-height: 1.7; }
.c-kw  { color: #ff7b72; }
.c-var { color: #79c0ff; }
.c-key { color: #a5d6ff; }
.c-str { color: #a8d8a8; }
.c-num { color: #f0ad68; }
.c-bool{ color: #ff7b72; }

.floating-badge {
  display: flex; align-items: center; gap: .75rem;
  padding: .85rem 1.25rem;
  min-width: 200px;
}
.fb-emoji { font-size: 1.5rem; }
.fb-label { font-size: .85rem; font-weight: 600; }
.fb-sub   { font-size: .72rem; color: var(--text-muted); }
.badge-top   { animation: float-1 5s ease-in-out infinite; }
.badge-bottom{ animation: float-2 5.5s ease-in-out infinite; }

@keyframes float-code { 0%,100%{transform:translateY(0)}  50%{transform:translateY(-12px)} }
@keyframes float-1    { 0%,100%{transform:translateY(0)}  50%{transform:translateY(-8px)}  }
@keyframes float-2    { 0%,100%{transform:translateY(0)}  50%{transform:translateY(-16px)} }

/* Scroll indicator */
.scroll-indicator {
  position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  color: var(--text-muted); font-size: .75rem; font-family: var(--font-mono);
  z-index: 2;
  animation: scroll-bounce 2s ease-in-out infinite;
}
.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, transparent, var(--accent));
}
@keyframes scroll-bounce { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(6px)} }

/* ── ABOUT ─────────────────────────────────────────────────── */
.about-section { background: var(--bg-secondary); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
}

.about-image-col { position: sticky; top: 6rem; }

.about-avatar-wrap {
  position: relative;
  width: 220px; height: 220px;
  margin: 0 auto 2rem;
}
.avatar-ring {
  position: absolute; inset: -8px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary)) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  animation: spin-slow 10s linear infinite;
}
@keyframes spin-slow { to { transform: rotate(360deg); } }

.avatar-placeholder {
  width: 100%; height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-dim), rgba(var(--accent-rgb),0.05));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 3.5rem; font-weight: 800;
  color: var(--accent);
  border: 2px solid rgba(var(--accent-rgb), 0.2);
}
.avatar-status {
  position: absolute;
  bottom: 0; right: 0;
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  padding: .35rem .85rem;
  font-size: .72rem;
  display: flex; align-items: center; gap: .4rem;
  color: var(--success);
  white-space: nowrap;
}
.status-dot { width: 6px; height: 6px; background: var(--success); border-radius: 50%; animation: badge-pulse 2s infinite; }

.about-quick-info {
  padding: 1.5rem;
  display: flex; flex-direction: column; gap: 1rem;
}
.qi-row { display: flex; align-items: center; gap: 1rem; }
.qi-icon { font-size: 1.25rem; flex-shrink: 0; }
.qi-row strong { font-size: .9rem; }
.qi-row small  { color: var(--text-muted); font-size: .78rem; }

.about-text-col { padding-top: .5rem; }
.about-intro { font-size: 1.15rem; line-height: 1.7; margin-bottom: 1.25rem; }
.about-body  { color: var(--text-secondary); line-height: 1.8; margin-bottom: 1.25rem; }
.about-body em { color: var(--accent); font-style: normal; }
.about-body strong { color: var(--text-primary); }

.about-values { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.value-pill {
  padding: .4rem .9rem;
  background: var(--accent-dim);
  border: 1px solid rgba(var(--accent-rgb),0.2);
  border-radius: 100px;
  font-size: .8rem;
  color: var(--accent);
  font-weight: 500;
}

.about-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── SKILLS ────────────────────────────────────────────────── */
.skills-tabs {
  display: flex; justify-content: center; gap: .5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.skill-tab {
  padding: .5rem 1.5rem;
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  background: transparent;
  color: var(--text-secondary);
  font-size: .85rem; font-weight: 500;
  transition: all var(--dur);
}
.skill-tab:hover { color: var(--text-primary); border-color: rgba(var(--accent-rgb),0.3); }
.skill-tab.active { background: var(--accent-dim); border-color: var(--accent); color: var(--accent); }

.tab-content { display: none; }
.tab-content.active { display: grid; }

.skills-grid {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.skill-card {
  padding: 1.25rem 1.5rem;
  display: flex; align-items: center; gap: 1.25rem;
}
.skill-icon { font-size: 2rem; flex-shrink: 0; }
.skill-info { flex: 1; min-width: 0; }
.skill-name-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: .6rem; }
.skill-name { font-weight: 600; font-size: .9rem; }
.skill-pct  { font-family: var(--font-mono); font-size: .78rem; color: var(--accent); }
.skill-bar  { height: 4px; background: rgba(255,255,255,0.08); border-radius: 4px; overflow: hidden; margin-bottom: .4rem; }
.skill-fill {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
  border-radius: 4px;
  transition: width 1.2s var(--ease);
}
.skill-fill.animated { width: var(--pct); }
.skill-level { font-size: .72rem; color: var(--text-muted); font-family: var(--font-mono); }

/* ── PROJECTS ──────────────────────────────────────────────── */
.projects-section { background: var(--bg-secondary); }

.project-filters {
  display: flex; justify-content: center; gap: .5rem;
  margin-bottom: 1.5rem; flex-wrap: wrap;
}
.filter-btn {
  padding: .45rem 1.1rem;
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  background: transparent;
  color: var(--text-muted);
  font-size: .82rem; font-weight: 500;
  transition: all var(--dur);
}
.filter-btn:hover  { color: var(--text-primary); border-color: rgba(var(--accent-rgb),0.3); }
.filter-btn.active { background: var(--accent-dim); border-color: var(--accent); color: var(--accent); }

.project-search {
  position: relative; max-width: 380px; margin: 0 auto 3rem;
  display: flex; align-items: center;
}
.project-search svg { position: absolute; left: 1rem; color: var(--text-muted); pointer-events: none; }
#project-search-input {
  width: 100%; padding: .75rem 1rem .75rem 2.75rem;
  background: var(--bg-card); border: 1px solid var(--glass-border);
  border-radius: 100px; color: var(--text-primary); font-size: .9rem;
  transition: border-color var(--dur);
}
#project-search-input:focus { border-color: var(--accent); outline: none; }
#project-search-input::placeholder { color: var(--text-muted); }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 1.5rem;
}

.project-card {
  padding: 1.75rem;
  display: flex; flex-direction: column;
  gap: .75rem;
  position: relative;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur), opacity var(--dur);
}
.project-card.hidden { display: none; }
.project-card:hover  { transform: translateY(-6px) scale(1.01); box-shadow: var(--glass-shadow), 0 0 30px rgba(var(--accent-rgb),0.1); }

.project-card-top { display: flex; justify-content: space-between; align-items: flex-start; }
.project-emoji { font-size: 2.25rem; }
.project-links { display: flex; gap: .5rem; }
.project-link-btn {
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  transition: color var(--dur), border-color var(--dur);
}
.project-link-btn:hover { color: var(--accent); border-color: rgba(var(--accent-rgb),0.4); }

.project-featured-badge, .project-idea-badge {
  position: absolute; top: 1.25rem; left: 50%; transform: translateX(-50%);
  padding: .2rem .7rem;
  border-radius: 100px;
  font-size: .65rem; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  font-family: var(--font-mono);
}
.project-featured-badge { background: var(--accent-dim); color: var(--accent); }
.project-idea-badge     { background: rgba(123,92,255,0.15); color: var(--accent-secondary); }

.project-title { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; }
.project-desc  { color: var(--text-secondary); font-size: .88rem; line-height: 1.65; flex: 1; }
.project-tags  { display: flex; flex-wrap: wrap; gap: .4rem; }
.tag {
  padding: .2rem .65rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--glass-border);
  border-radius: 4px;
  font-size: .72rem; color: var(--text-muted);
  font-family: var(--font-mono);
}

/* ── EXPERIENCE TIMELINE ───────────────────────────────────── */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 0 2rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 50%; transform: translateX(-50%);
  top: 0; bottom: 0; width: 1px;
  background: linear-gradient(to bottom, transparent, var(--accent) 10%, var(--accent) 90%, transparent);
  opacity: 0.3;
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 0 3rem 2.5rem;
}
.timeline-item[data-side="right"] { left: 50%; }
.timeline-item[data-side="left"]  { left: 0; }

.timeline-dot {
  position: absolute; top: 1.5rem;
  width: 12px; height: 12px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(var(--accent-rgb),0.5);
}
.timeline-item[data-side="right"] .timeline-dot { left: -6px; }
.timeline-item[data-side="left"]  .timeline-dot { right: -6px; }

.timeline-card { padding: 1.5rem; }
.timeline-date { font-family: var(--font-mono); font-size: .72rem; color: var(--accent); margin-bottom: .5rem; }
.timeline-title { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; margin-bottom: .25rem; }
.timeline-org   { font-size: .82rem; color: var(--text-muted); margin-bottom: .65rem; }
.timeline-desc  { font-size: .87rem; color: var(--text-secondary); line-height: 1.65; margin-bottom: .85rem; }
.timeline-tags  { display: flex; flex-wrap: wrap; gap: .4rem; }

/* ── TESTIMONIALS ──────────────────────────────────────────── */
.testimonials-section { background: var(--bg-secondary); }

.testimonials-slider { max-width: 800px; margin: 0 auto; }
.test-track { overflow: hidden; position: relative; }

.test-card {
  display: none; padding: 2.5rem;
  animation: fade-in .4s var(--ease);
}
.test-card.active { display: block; }
@keyframes fade-in { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: none; } }

.test-stars { color: var(--accent); font-size: 1.1rem; margin-bottom: 1.25rem; letter-spacing: 2px; }
.test-text { font-size: 1.05rem; line-height: 1.8; color: var(--text-secondary); font-style: italic; margin-bottom: 1.75rem; }
.test-author { display: flex; align-items: center; gap: 1rem; }
.test-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .85rem; color: var(--bg-primary);
  flex-shrink: 0;
}
.test-author strong { display: block; font-size: .9rem; }
.test-author span   { color: var(--text-muted); font-size: .78rem; }

.test-controls {
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  margin-top: 1.5rem;
}
.test-btn {
  width: 40px; height: 40px;
  border: 1px solid var(--glass-border);
  border-radius: 50%; background: var(--bg-card);
  color: var(--text-secondary); font-size: 1rem;
  transition: all var(--dur);
}
.test-btn:hover { border-color: var(--accent); color: var(--accent); }
.test-dots { display: flex; gap: .5rem; }
.test-dot {
  width: 8px; height: 8px;
  border-radius: 50%; background: var(--glass-border);
  transition: background var(--dur), width var(--dur);
  cursor: pointer;
}
.test-dot.active { background: var(--accent); width: 24px; border-radius: 4px; }

/* ── BLOG ──────────────────────────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.blog-card { padding: 2rem; display: flex; flex-direction: column; gap: .75rem; }
.blog-category {
  font-family: var(--font-mono); font-size: .7rem;
  color: var(--accent); text-transform: uppercase; letter-spacing: 2px;
}
.blog-title { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; line-height: 1.35; }
.blog-excerpt { color: var(--text-secondary); font-size: .87rem; line-height: 1.65; flex: 1; }
.blog-meta { display: flex; gap: 1rem; font-size: .78rem; color: var(--text-muted); }
.blog-read-more { font-size: .85rem; color: var(--accent); font-weight: 600; transition: gap var(--dur); }
.blog-read-more:hover { letter-spacing: 1px; }

/* ── RESUME CTA ────────────────────────────────────────────── */
.resume-cta-card {
  display: flex; align-items: center; gap: 4rem;
  padding: 3rem 4rem;
  max-width: 900px; margin: 0 auto;
  overflow: hidden;
}
.resume-cta-content { flex: 1; }
.resume-icon { font-size: 3rem; margin-bottom: 1rem; }
.resume-cta-content h2 { font-family: var(--font-display); font-size: 2rem; font-weight: 800; margin-bottom: .5rem; }
.resume-cta-content p  { color: var(--text-secondary); margin-bottom: 1.5rem; }
.resume-cta-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

.resume-preview-placeholder { flex-shrink: 0; }
.resume-doc-mock {
  width: 120px; padding: 1.25rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  display: flex; flex-direction: column; gap: .5rem;
}
.rdm-line { height: 6px; background: rgba(255,255,255,0.1); border-radius: 3px; }
.rdm-line.short  { width: 60%; }
.rdm-line.medium { width: 80%; }

/* ── CONTACT ───────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  align-items: start;
}

.contact-card { padding: 2rem; margin-bottom: 1.5rem; }
.contact-card h3 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; margin-bottom: 1.25rem; }
.contact-links { display: flex; flex-direction: column; gap: .5rem; }
.contact-link {
  display: flex; align-items: center; gap: .85rem;
  padding: .85rem 1rem;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  transition: border-color var(--dur), background var(--dur);
}
.contact-link:hover { border-color: rgba(var(--accent-rgb),0.3); background: var(--accent-dim); color: var(--text-primary); }
.cl-icon { font-size: 1.25rem; }
.contact-link div { flex: 1; }
.contact-link strong { font-size: .9rem; display: block; }
.contact-link small  { color: var(--text-muted); font-size: .78rem; }
.cl-arrow { color: var(--accent); font-size: .9rem; }

.vcf-download { padding: 1.25rem 1.5rem; text-align: center; }
.vcf-download p { color: var(--text-secondary); font-size: .85rem; margin-bottom: 1rem; }

/* Contact Form */
.contact-form { padding: 2rem; }
.contact-form h3 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; margin-bottom: 1.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1rem; }
.form-group label { font-size: .82rem; font-weight: 600; color: var(--text-secondary); }

.form-group input,
.form-group select,
.form-group textarea {
  padding: .75rem 1rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: .9rem;
  transition: border-color var(--dur), background var(--dur);
  resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--accent); outline: none; background: rgba(var(--accent-rgb),0.04); }
.form-group select option { background: var(--bg-secondary); }

.form-group.error input,
.form-group.error textarea,
.form-group.error select { border-color: var(--error); }
.form-error { font-size: .75rem; color: var(--error); min-height: 1rem; }

.char-count { font-size: .72rem; color: var(--text-muted); text-align: right; margin-top: .25rem; }
.form-draft-bar { font-size: .72rem; color: var(--text-muted); margin-bottom: .5rem; min-height: 1rem; }

.form-success {
  padding: 1rem;
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.3);
  border-radius: var(--radius-sm);
  color: var(--success);
  font-size: .88rem; text-align: center;
  margin-top: 1rem;
  display: none;
}
.form-success.visible { display: block; animation: fade-in .4s var(--ease); }
.form-success.form-error-banner {
  background: rgba(239,68,68,0.1);
  border-color: rgba(239,68,68,0.3);
  color: var(--error);
}

/* Honeypot anti-spam field — invisible to sighted users and keyboard/tab
   order, but still present in the DOM for simple bots to fill in. */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ── FOOTER ────────────────────────────────────────────────── */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--glass-border);
  padding: 4rem 0 2rem;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--glass-border);
}
.footer-brand .nav-logo { margin-bottom: 1rem; display: inline-block; }
.footer-brand p { color: var(--text-muted); font-size: .88rem; line-height: 1.7; }
.footer-nav h4, .footer-connect h4 {
  font-family: var(--font-display);
  font-size: .82rem; font-weight: 700;
  color: var(--text-primary); text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 1rem;
}
.footer-nav li + li, .footer-connect li + li { margin-top: .5rem; }
.footer-nav a, .footer-connect a { color: var(--text-muted); font-size: .88rem; transition: color var(--dur); }
.footer-nav a:hover, .footer-connect a:hover { color: var(--accent); }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
}
.footer-bottom p { color: var(--text-muted); font-size: .8rem; }
.footer-shortcut { font-family: var(--font-mono); font-size: .75rem; }
kbd {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--glass-border);
  border-radius: 3px;
  font-size: .7rem;
  padding: 0 4px;
  font-family: var(--font-mono);
}

/* ── BACK TO TOP ───────────────────────────────────────────── */
#back-to-top {
  position: fixed; bottom: 5rem; right: 1.5rem;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary); font-size: 1.1rem;
  z-index: 500;
  opacity: 0; pointer-events: none;
  transform: translateY(10px);
  transition: opacity var(--dur), transform var(--dur), color var(--dur), border-color var(--dur);
  display: flex; align-items: center; justify-content: center;
}
#back-to-top.visible { opacity: 1; pointer-events: all; transform: none; }
#back-to-top:hover   { color: var(--accent); border-color: var(--accent); }

/* ── MODAL ─────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  z-index: 5000;
  display: flex; align-items: center; justify-content: center;
  padding: 2rem;
  opacity: 0; pointer-events: none;
  transition: opacity var(--dur);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal-content {
  max-width: 700px; width: 100%;
  max-height: 85vh; overflow-y: auto;
  padding: 2.5rem;
  position: relative;
  transform: translateY(20px);
  transition: transform var(--dur) var(--ease-bounce);
}
.modal-overlay.open .modal-content { transform: none; }
.modal-close { position: absolute; top: 1rem; right: 1rem; }
.modal-content h3 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; margin-bottom: 1.5rem; }

.shortcuts-table { width: 100%; border-collapse: collapse; }
.shortcuts-table tr + tr { border-top: 1px solid var(--glass-border); }
.shortcuts-table td { padding: .75rem 0; font-size: .88rem; }
.shortcuts-table td:first-child { width: 80px; }

/* ── CHATBOT ───────────────────────────────────────────────── */
.chatbot-container {
  position: fixed; bottom: 2rem; right: 1.5rem;
  z-index: 2000;
}
.chatbot-toggle {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  border: none; color: var(--bg-primary);
  font-size: 1.4rem;
  box-shadow: 0 4px 24px rgba(var(--accent-rgb),0.4);
  position: relative;
  display: flex; align-items: center; justify-content: center;
  transition: transform var(--dur) var(--ease-bounce), box-shadow var(--dur);
}
.chatbot-toggle:hover { transform: scale(1.1); }
.chatbot-pulse {
  position: absolute; inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(var(--accent-rgb),0.4);
  animation: chatbot-ring 2s ease-out infinite;
}
@keyframes chatbot-ring { 0%{transform:scale(1);opacity:1} 100%{transform:scale(1.5);opacity:0} }

.chatbot-window {
  position: absolute; bottom: 70px; right: 0;
  width: 340px;
  display: flex; flex-direction: column;
  overflow: hidden;
  transform-origin: bottom right;
  transform: scale(0.8); opacity: 0;
  pointer-events: none;
  transition: transform .3s var(--ease-bounce), opacity var(--dur);
}
.chatbot-window.open { transform: scale(1); opacity: 1; pointer-events: all; }

.chatbot-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--glass-border);
}
.chatbot-title {
  display: flex; align-items: center; gap: .5rem;
  font-weight: 600; font-size: .9rem;
}
.chatbot-status-dot { width: 7px; height: 7px; background: var(--success); border-radius: 50%; animation: badge-pulse 2s infinite; }

.chatbot-messages {
  padding: 1rem;
  flex: 1; max-height: 300px;
  overflow-y: auto;
  display: flex; flex-direction: column; gap: .75rem;
}
.chat-msg {
  max-width: 88%; padding: .65rem 1rem;
  border-radius: 14px; font-size: .85rem; line-height: 1.55;
}
.chat-msg.bot {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--glass-border);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.chat-msg.user {
  background: linear-gradient(135deg, var(--accent), rgba(var(--accent-rgb),0.7));
  color: var(--bg-primary);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.chat-typing { display: flex; gap: .3rem; padding: .65rem 1rem; align-self: flex-start; }
.chat-typing span {
  width: 7px; height: 7px; background: var(--text-muted);
  border-radius: 50%; animation: typing-dot .9s ease-in-out infinite;
}
.chat-typing span:nth-child(2) { animation-delay: .15s; }
.chat-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes typing-dot { 0%,80%,100%{transform:translateY(0)} 40%{transform:translateY(-6px)} }

.chatbot-quick-btns {
  display: flex; flex-wrap: wrap; gap: .4rem;
  padding: .75rem 1rem 0;
}
.quick-btn {
  padding: .3rem .75rem;
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  background: transparent;
  color: var(--text-muted); font-size: .75rem;
  transition: all var(--dur);
}
.quick-btn:hover { color: var(--accent); border-color: rgba(var(--accent-rgb),0.4); }

.chatbot-input-row {
  display: flex; gap: .5rem;
  padding: .75rem 1rem;
  border-top: 1px solid var(--glass-border);
}
#chatbot-input {
  flex: 1; padding: .5rem .85rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  color: var(--text-primary); font-size: .85rem;
}
#chatbot-input:focus { border-color: var(--accent); outline: none; }

/* ── THEME PANEL ───────────────────────────────────────────── */
.theme-panel {
  position: fixed; bottom: 5.5rem; right: 1.5rem;
  padding: 1rem 1.25rem; z-index: 1500;
  min-width: 160px;
  opacity: 0; pointer-events: none;
  transform: translateY(10px) scale(0.95);
  transition: opacity var(--dur), transform var(--dur) var(--ease-bounce);
}
.theme-panel.open { opacity: 1; pointer-events: all; transform: none; }
.tp-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: .75rem; font-size: .82rem; font-weight: 600; }
.tp-options { display: flex; gap: .5rem; flex-wrap: wrap; }
.tp-color {
  width: 24px; height: 24px; border-radius: 50%;
  border: 2px solid transparent; cursor: pointer;
  transition: transform var(--dur) var(--ease-bounce);
}
.tp-color:hover  { transform: scale(1.2); }
.tp-color.active { border-color: var(--text-primary); }

.theme-panel-trigger {
  position: fixed; bottom: 9rem; right: 1.5rem;
  z-index: 1500;
  width: 36px; height: 36px;
  font-size: .95rem;
}

/* ── ANIMATIONS ────────────────────────────────────────────── */
@keyframes spin { to { transform: rotate(360deg); } }

/* ── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-visual { display: none; }
  .hero-content { max-width: 100%; }
  .about-grid { grid-template-columns: 1fr; }
  .about-image-col { position: static; }
  .about-avatar-wrap { margin: 0 auto 1.5rem; }
  .timeline::before { left: 1rem; }
  .timeline-item { width: 100%; left: 0 !important; padding-left: 3rem; padding-right: 0; }
  .timeline-item .timeline-dot { left: calc(1rem - 6px) !important; right: auto !important; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --section-pad: 4rem; }
  .nav-links { display: none; }
  .hire-btn  { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: block; }
  .hero { padding: 6rem 1.5rem 4rem; }
  .hero-stats { gap: .25rem; }
  .stat-item  { padding: 0 .75rem; }
  .stat-num   { font-size: 1.5rem; }
  .form-row   { grid-template-columns: 1fr; }
  .resume-cta-card { flex-direction: column; gap: 2rem; padding: 2rem; }
  .resume-preview-placeholder { display: none; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .chatbot-window { width: 290px; }
  .projects-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .hero-title-name { font-size: 3rem; }
  .section-title  { font-size: 2rem; }
  .hero-cta { gap: .75rem; }
  .hero-cta .btn { font-size: .82rem; padding: .65rem 1.2rem; }
  .skills-grid { grid-template-columns: 1fr; }
}

/* ── SCROLLBAR ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: rgba(var(--accent-rgb),0.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(var(--accent-rgb),0.6); }

/* ── REDUCED MOTION ────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* ── BLOG ARTICLE PAGES ───────────────────────────────────────
   Reuses the existing design tokens (colors, fonts, glass-card) so
   article pages feel like part of the same site rather than a bolt-on. */
.article-topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8,8,16,0.7);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
}
[data-theme="light"] .article-topbar { background: rgba(248,249,254,0.75); }
.article-topbar .container { display: flex; align-items: center; justify-content: space-between; padding-top: 1rem; padding-bottom: 1rem; }
.article-back { display: inline-flex; align-items: center; gap: .5rem; color: var(--text-secondary); font-size: .88rem; font-weight: 600; transition: color var(--dur); }
.article-back:hover { color: var(--accent); }

.article-hero { padding: clamp(3rem, 8vh, 5rem) 0 2.5rem; }
.article-category { display: inline-block; padding: .3rem .9rem; border-radius: 999px; background: var(--accent-dim); color: var(--accent); font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 1.25rem; }
.article-title { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; line-height: 1.2; margin-bottom: 1rem; }
.article-meta { display: flex; flex-wrap: wrap; gap: 1.25rem; font-size: .85rem; color: var(--text-muted); }

.article-body { max-width: 760px; margin: 0 auto; padding-bottom: 5rem; }
.article-body h2 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; margin: 2.5rem 0 1rem; color: var(--text-primary); }
.article-body h3 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; margin: 2rem 0 .75rem; color: var(--text-primary); }
.article-body p { color: var(--text-secondary); line-height: 1.85; margin-bottom: 1.25rem; font-size: 1rem; }
.article-body p strong, .article-body li strong { color: var(--text-primary); }
.article-body em { color: var(--accent); font-style: normal; }
.article-body ul, .article-body ol { color: var(--text-secondary); line-height: 1.85; margin: 0 0 1.25rem 1.4rem; }
.article-body li { margin-bottom: .5rem; }
.article-body code { font-family: var(--font-mono); font-size: .85em; background: var(--bg-card); border: 1px solid var(--glass-border); padding: .15rem .4rem; border-radius: 4px; color: var(--accent); }
.article-callout { padding: 1.25rem 1.5rem; margin: 1.75rem 0; border-radius: var(--radius); }
.article-callout p:last-child { margin-bottom: 0; }
.article-callout.note { border-left: 3px solid var(--accent); }
.article-callout.ethics { border-left: 3px solid var(--warning); }
.article-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin: 2rem 0; }
.article-cta { text-align: center; margin-top: 3rem; padding-top: 2.5rem; border-top: 1px solid var(--glass-border); }
.article-cta p { margin-bottom: 1.25rem; }
