/* ═══════════════════════════════════════════════════════════
   DEVELOPER PORTFOLIO — CLEAN WHITE & BLACK
   Author: Sourav Sanyal
   ═══════════════════════════════════════════════════════════ */

/* ─── 1. DESIGN TOKENS ───────────────────────────────────── */
:root {
  /* Background & surface — WHITE & BLACK */
  --bg:               #ffffff;
  --surface:          #ffffff;
  --surface-low:      #f8f9fa;
  --surface-mid:      #f1f3f5;
  --surface-high:     #e9ecef;
  --surface-highest:  #dee2e6;

  /* Brand */
  --primary:          #111111;
  --primary-dim:      #000000;
  --secondary:        #111111;
  --secondary-20:     rgba(0,0,0,.08);
  --tertiary:         #555555;
  --tertiary-20:      rgba(85,85,85,.12);

  /* Text */
  --text:             #111111;
  --text-muted:       #4a4a4a;
  --text-faint:       #888888;

  /* Glass — light frosted */
  --glass-bg:         rgba(255,255,255,0.65);
  --glass-border:     rgba(0,0,0,0.08);
  --glass-blur:       16px;

  /* Shadows (replaces glow for light theme) */
  --glow-primary:     0 4px 24px rgba(0,0,0,.08);
  --glow-tertiary:    0 4px 24px rgba(0,0,0,.06);

  /* Fonts */
  --font-sans:        'Inter', system-ui, sans-serif;
  --font-mono:        'JetBrains Mono', 'Fira Code', monospace;

  /* Spacing */
  --space-xs:  .25rem;
  --space-sm:  .75rem;
  --space-md:  1.5rem;
  --space-lg:  3rem;
  --space-xl:  5rem;

  /* Radii */
  --r-sm:  .375rem;
  --r-md:  .75rem;
  --r-lg:  1.25rem;
  --r-xl:  1.75rem;
  --r-full: 9999px;

  /* Transitions */
  --ease: cubic-bezier(.4,0,.2,1);
  --duration-fast:  150ms;
  --duration-base:  300ms;
  --duration-slow:  600ms;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%; /* Safari / older WebKit */
  text-size-adjust: 100%;          /* Chrome 54+, Edge 79+, Firefox, Samsung Internet 6.0+ */
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; height: auto; display: block; }
a         { color: inherit; text-decoration: none; }
ul        { list-style: none; }
button    { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ─── 3. TYPOGRAPHY ──────────────────────────────────────── */
.label-mono {
  font-family: var(--font-mono);
  font-size: .8125rem;
  letter-spacing: .06em;
}
.body-lg { font-size: 1.0625rem; line-height: 1.75; color: var(--text-muted); }
.body-md { font-size: .9375rem;  line-height: 1.6;  color: var(--text-muted); }

.gradient-text {
  background: linear-gradient(135deg, #111 0%, #555 50%, #999 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── 4. LAYOUT ──────────────────────────────────────────── */
.container {
  width: min(1200px, 92%);
  margin-inline: auto;
}

.section-pad { padding-block: var(--space-xl); }

/* ─── 5. GLASSMORPHISM ───────────────────────────────────── */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
}

/* ─── 6. BUTTONS ─────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem 1.5rem;
  border-radius: var(--r-full);
  font-family: var(--font-mono);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .04em;
  transition: transform var(--duration-base) var(--ease),
              box-shadow var(--duration-base) var(--ease),
              opacity var(--duration-base) var(--ease);
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.04);
  opacity: 0;
  transition: opacity var(--duration-fast) var(--ease);
}
.btn:hover::after { opacity: 1; }

.primary-btn {
  background: #111111;
  color: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
}
.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,.22);
  background: #000;
}

.secondary-btn {
  background: transparent;
  color: #111;
  border: 1.5px solid #111;
}
.secondary-btn:hover {
  background: #111;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
}

/* ─── 7. CHIPS ───────────────────────────────────────────── */
.chip {
  display: inline-block;
  padding: .3rem .85rem;
  border-radius: var(--r-full);
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .04em;
  transition: transform var(--duration-fast) var(--ease);
}
.chip:hover { transform: translateY(-1px); }

.chip-primary   { background: #f1f3f5; color: #111;   border: 1px solid #dee2e6; }
.chip-secondary { background: #e9ecef; color: #333; border: 1px solid #dee2e6; }
.chip-tertiary  { background: #f8f9fa; color: #555; border: 1px solid #e9ecef; }

.chip-sm { padding: .18rem .6rem; font-size: .7rem; }

/* ─── 8. SECTION HEADER ──────────────────────────────────── */
.section-header {
  margin-bottom: 3.5rem;
  text-align: center;
}
.section-label {
  color: #888;
  margin-bottom: .5rem;
}
.section-title {
  font-family: var(--font-mono);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.2;
}

/* ─── 9. BACKGROUND BLOBS ────────────────────────────────── */
.bg-blobs {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: .06;
  animation: blobFloat 12s ease-in-out infinite alternate;
}
.blob-1 {
  width: 50vw; height: 50vw;
  background: #aaa;
  top: -15%; left: -10%;
  animation-duration: 14s;
}
.blob-2 {
  width: 40vw; height: 40vw;
  background: #ccc;
  bottom: 10%; right: -10%;
  animation-duration: 18s;
  animation-delay: -6s;
}
.blob-3 {
  width: 30vw; height: 30vw;
  background: #bbb;
  top: 40%; left: 40%;
  animation-duration: 10s;
  animation-delay: -3s;
}
@keyframes blobFloat {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(3%,4%) scale(1.08); }
}

/* ─── 10. CURSOR GLOW ────────────────────────────────────── */
.cursor-glow {
  position: fixed;
  pointer-events: none;
  width: 350px; height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,0,0,.03) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  z-index: 0;
  transition: opacity .3s;
}

/* ─── 11. SCROLL PROGRESS ────────────────────────────────── */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #111, #555);
  z-index: 9999;
  transition: width .1s;
  box-shadow: none;
}

/* ─── 12. HEADER ─────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-radius: 0;
  border-top: none;
  border-left: none;
  border-right: none;
  border-bottom: 1px solid var(--glass-border);
  transition: background var(--duration-base) var(--ease),
              box-shadow var(--duration-base) var(--ease);
}
.site-header.scrolled {
  background: rgba(255,255,255,.9);
  box-shadow: 0 1px 12px rgba(0,0,0,.06);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1rem;
}
.logo {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--text);
  transition: color var(--duration-fast) var(--ease);
}
.logo:hover { color: var(--secondary); }
.logo-bracket { color: #888; }

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.nav-link {
  font-family: var(--font-mono);
  font-size: .82rem;
  letter-spacing: .05em;
  color: var(--text-muted);
  transition: color var(--duration-fast) var(--ease);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1.5px;
  background: var(--secondary);
  transition: width var(--duration-base) var(--ease);
}
.nav-link:hover,
.nav-link.active { color: var(--text); }
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

.hire-btn { padding: .5rem 1.1rem; font-size: .8rem; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 0;
}
.hamburger span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--duration-base) var(--ease), opacity var(--duration-base) var(--ease);
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── 13. HERO ───────────────────────────────────────────── */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding-block: 6rem 4rem;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-eyebrow {
  color: var(--secondary);
  margin-bottom: .75rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.hero-title {
  font-family: var(--font-mono);
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.1;
  margin-bottom: .6rem;
}

.hero-subtitle {
  font-family: var(--font-mono);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 400;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  min-height: 2.5rem;
  display: flex;
  align-items: center;
  gap: .25rem;
}
.typed-text { color: #111; font-weight: 600; }
.cursor-blink {
  color: #111;
  animation: blink .75s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-desc {
  max-width: 520px;
  margin-bottom: 2rem;
}

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

.hero-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.stat { text-align: center; }
.stat-num {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, #111, #444);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  line-height: 1;
}
.stat-label {
  font-size: .75rem;
  color: var(--text-faint);
  margin-top: .25rem;
  display: block;
}
.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--glass-border);
}

/* ─── Phone Mockup ─── */
.hero-visual { position: relative; display: flex; justify-content: center; }

.phone-mockup {
  width: 220px;
  height: 420px;
  background: #090a0f; /* Pitch black glossy body */
  border-radius: 2.25rem;
  border: 4px solid #1a1c24; /* Solid premium bezel */
  overflow: hidden;
  position: relative;
  box-shadow: 0 30px 60px rgba(0,0,0,.2),
              inset 0 0 10px rgba(255, 255, 255, 0.05);
  animation: phoneBob 4s ease-in-out infinite alternate;
  z-index: 1;
}
@keyframes phoneBob {
  from { transform: translateY(0) rotateY(-8deg); }
  to   { transform: translateY(-10px) rotateY(8deg); }
}
.phone-notch {
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 11px;
  background: #000;
  border-radius: var(--r-full);
  z-index: 10;
}
.phone-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .4rem .9rem .1rem;
  font-size: .55rem;
  color: rgba(255, 255, 255, 0.6);
  z-index: 5;
  background: #0c0f1d;
  width: 100%;
}
.status-icons {
  display: flex;
  align-items: center;
  gap: 4px;
}
.status-battery {
  width: 11px;
  height: 6px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 2px;
  position: relative;
}
.status-battery::after {
  content: '';
  position: absolute;
  top: 1px; left: 1px; bottom: 1px;
  width: 70%;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 1px;
}
.phone-screen {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  background: #0c0f1d; /* Premium deep blue background for the mock app */
  padding: 0 .6rem .6rem;
  gap: .4rem;
}
.phone-screen .app-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: .5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: .75rem;
}
.app-bar-profile {
  display: flex;
  align-items: center;
  gap: .4rem;
}
.app-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #111, #555);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.app-profile-info {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.app-bar-user {
  font-size: .55rem;
  font-weight: 600;
  color: #fff;
}
.app-bar-status {
  font-size: .45rem;
  color: #22c55e;
}
.phone-screen .app-bar-icon  { font-size: .6rem; opacity: .7; color: #fff; }

.phone-screen .app-body      { display: flex; flex-direction: column; gap: .45rem; flex: 1; }

.phone-screen .app-card {
  display: flex; align-items: center; gap: .5rem;
  padding: .5rem;
  border-radius: .6rem;
  color: #fff;
}
.phone-screen .app-card.glass {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.app-card.main-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .15rem;
  padding: .6rem;
}
.app-card-lbl {
  font-size: .45rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.app-card-val {
  font-size: .95rem;
  font-weight: 700;
  color: #fff;
  font-family: var(--font-mono);
}
.app-card-trend {
  font-size: .45rem;
  color: #22c55e;
}

.app-actions {
  display: flex;
  justify-content: space-between;
  gap: .4rem;
  padding-inline: .1rem;
}
.app-action-btn {
  flex: 1;
  height: 22px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: .4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .55rem;
  color: #fff;
  transition: all var(--duration-fast);
}
.app-action-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.phone-screen .app-card-img {
  width: 24px; height: 24px;
  border-radius: .4rem;
  flex-shrink: 0;
}
.phone-screen .app-card-content { flex: 1; display: flex; flex-direction: column; gap: .2rem; }
.phone-screen .app-card-title {
  height: 5px; border-radius: 4px;
  background: rgba(255, 255, 255, 0.15);
}
.phone-screen .app-card-sub {
  height: 4px; border-radius: 4px; width: 70%;
  background: rgba(255, 255, 255, 0.08);
}
@keyframes shimmer {
  from { opacity: .4; }
  to   { opacity: 1; }
}
.app-nav {
  display: flex; justify-content: space-around; align-items: center;
  padding: .5rem;
  background: var(--surface-high);
  border-radius: .75rem;
}
.nav-item       { font-size: .75rem; opacity: .5; }
.nav-item.active{ opacity: 1; }

.phone-glow {
  position: absolute;
  bottom: -30px; left: 50%;
  transform: translateX(-50%);
  width: 140px; height: 30px;
  background: var(--secondary);
  border-radius: 50%;
  filter: blur(20px);
  opacity: .4;
}

/* Floating badges */
.float-badge {
  position: absolute;
  display: flex; align-items: center; gap: .4rem;
  padding: .45rem .95rem;
  border-radius: var(--r-full);
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  color: #111;
  white-space: nowrap;
}
.badge-flutter  { top: 10%; right: -5%;  animation: floatA 3.5s ease-in-out infinite alternate; }
.badge-dart     { bottom: 30%; left: -8%; animation: floatB 4s ease-in-out infinite alternate; }
.badge-firebase { bottom: 10%; right: 0%; animation: floatA 4.5s ease-in-out infinite alternate; }
@keyframes floatA { from { transform: translateY(0);   } to { transform: translateY(-8px); } }
@keyframes floatB { from { transform: translateY(0);   } to { transform: translateY(6px);  } }

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  color: var(--text-faint);
}
.mouse {
  width: 22px; height: 36px;
  border: 2px solid var(--text-faint);
  border-radius: 12px;
  display: flex; justify-content: center; padding-top: 6px;
}
.mouse-wheel {
  width: 3px; height: 6px;
  background: var(--secondary);
  border-radius: 2px;
  animation: mouseScroll 1.5s ease-in-out infinite;
}
@keyframes mouseScroll {
  0%   { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(12px); opacity: 0; }
}

/* ─── 14. FADE IN ANIMATIONS ─────────────────────────────── */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp .7s var(--ease) forwards;
  animation-delay: var(--delay, 0s);
}
.fade-in-right {
  opacity: 0;
  transform: translateX(40px);
  animation: fadeInRight .8s var(--ease) forwards;
  animation-delay: var(--delay, 0s);
}
@keyframes fadeInUp   { to { opacity:1; transform:translateY(0); } }
@keyframes fadeInRight{ to { opacity:1; transform:translateX(0); } }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--delay, 0s);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── 15. ABOUT ──────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4rem;
  align-items: start;
}
.about-img-wrap {
  position: relative;
  width: 260px;
  flex-shrink: 0;
}
.about-img-frame.glass {
  position: relative;
  background: #090b16; /* Dark slate console background */
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r-xl);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  width: 240px;
  height: 280px;
  transition: transform var(--duration-base) var(--ease), box-shadow var(--duration-base) var(--ease);
}
.about-img-frame.glass:hover {
  transform: translateY(-6px) rotate(1deg);
  box-shadow: 0 28px 48px rgba(0, 0, 0, 0.22);
}

.ide-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .65rem .85rem;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ide-dots {
  display: flex;
  gap: 5px;
}

.ide-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.ide-dot.red    { background: #ff5f56; }
.ide-dot.yellow { background: #ffbd2e; }
.ide-dot.green  { background: #27c93f; }

.ide-tabs {
  display: flex;
  gap: .4rem;
  margin-left: 1rem;
}

.ide-tab {
  font-family: var(--font-mono);
  font-size: .625rem;
  color: rgba(255, 255, 255, 0.4);
  padding: .2rem .5rem;
  border-radius: var(--r-sm);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease);
}

.ide-tab:hover {
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.03);
}

.ide-tab.active {
  color: #60a5fa;
  background: rgba(255, 255, 255, 0.05);
  font-weight: 600;
}

.ide-content {
  display: none;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.ide-content.active {
  display: block;
  animation: ideFadeIn .3s ease forwards;
}

#tab-photo {
  width: 100%;
  height: 100%;
}

#tab-photo .about-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--duration-slow) var(--ease);
}

.about-img-frame.glass:hover #tab-photo .about-img {
  transform: scale(1.04);
}

@keyframes ideFadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

.ide-code-body {
  padding: 1.25rem 1rem;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

.ide-code-body pre {
  margin: 0;
  text-align: left;
  line-height: 1.52;
  font-size: .72rem;
  color: #a5b4fc;
}

.code-keyword { color: #f43f5e; font-weight: 600; }
.code-class   { color: #60a5fa; font-weight: 600; }
.code-type    { color: #34d399; }
.code-string  { color: #fbbf24; }
.about-img-border {
  position: absolute;
  inset: -10px;
  border: 2px solid #ccc;
  border-radius: calc(var(--r-xl) + 8px);
  z-index: -1;
  opacity: .6;
  pointer-events: none;
}
.about-badge {
  position: absolute;
  bottom: -16px; right: -16px;
  padding: .5rem 1rem;
  border-radius: var(--r-full);
  font-family: var(--font-mono);
  font-size: .75rem;
  display: flex; align-items: center; gap: .5rem;
}
.badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px rgba(34,197,94,.4);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: .5; } }

.about-details {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.detail-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .6rem 0;
  border-bottom: 1px solid var(--glass-border);
}
.detail-key  { color: var(--text-faint); min-width: 90px; }
.detail-val  { color: var(--text); }
.link        { color: #111; text-decoration: underline; transition: color var(--duration-fast); }
.link:hover  { color: #555; }
.status-open { color: #22c55e; }

/* ─── 16. SKILLS ─────────────────────────────────────────── */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.skills-col-title {
  color: #888;
  margin-bottom: 1.25rem;
  font-size: .8rem;
  text-transform: uppercase;
}
.skill-bars { display: flex; flex-direction: column; gap: 1.25rem; }
.skill-bar-wrap {}
.skill-bar-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: .5rem;
}
.skill-name { font-size: .9rem; color: var(--text); }
.skill-pct  { font-size: .75rem; color: #888; }

.skill-track {
  height: 4px;
  background: var(--surface-highest);
  border-radius: var(--r-full);
  overflow: hidden;
}
.skill-fill {
  height: 100%;
  width: 0;
  border-radius: var(--r-full);
  background: linear-gradient(90deg, #111, #555);
  box-shadow: none;
  transition: width 1.2s cubic-bezier(.25,1,.5,1);
}
.skill-fill.animated { width: var(--pct); }

.chip-cloud {
  display: flex; flex-wrap: wrap; gap: .5rem;
}

.soft-skills { display: flex; flex-direction: column; gap: 1rem; }
.soft-skill {
  display: flex; align-items: flex-start; gap: .75rem;
  padding: .75rem 1rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-md);
  transition: border-color var(--duration-base) var(--ease),
              box-shadow var(--duration-base) var(--ease);
}
.soft-skill:hover {
  border-color: rgba(0,0,0,.15);
  box-shadow: 0 4px 20px rgba(0,0,0,.07);
}
.soft-skill-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--surface-mid);
  border: 1px solid var(--glass-border);
  color: var(--text);
  flex-shrink: 0;
  transition: all var(--duration-base) var(--ease);
}
.soft-skill:hover .soft-skill-icon {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: scale(1.05);
}
.soft-skill strong { display: block; font-size: .9rem; margin-bottom: .2rem; color: var(--text); }
.soft-skill .body-md { font-size: .85rem; margin: 0; }

/* ─── 17. PROJECTS ───────────────────────────────────────── */
.filter-tabs {
  display: flex;
  gap: .5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.filter-btn {
  font-family: var(--font-mono);
  font-size: .8rem;
  padding: .45rem 1.1rem;
  border-radius: var(--r-full);
  color: var(--text-muted);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  transition: all var(--duration-base) var(--ease);
  letter-spacing: .04em;
}
.filter-btn:hover,
.filter-btn.active {
  background: #111;
  color: #fff;
  border-color: #111;
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.project-card {
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform var(--duration-base) var(--ease),
              box-shadow var(--duration-base) var(--ease),
              opacity .4s var(--ease);
  cursor: pointer;
}
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,.1);
}
.project-card.hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(.95);
}

.project-img-wrap { position: relative; overflow: hidden; }
.project-img {
  width: 100%; height: 180px;
  display: flex; align-items: center; justify-content: center;
  transition: transform var(--duration-slow) var(--ease);
}
.project-card:hover .project-img { transform: scale(1.06); }

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.65);
  display: flex; align-items: center; justify-content: center; gap: .75rem;
  opacity: 0;
  transition: opacity var(--duration-base) var(--ease);
}
.project-card:hover .project-overlay { opacity: 1; }

.icon-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.85);
  border: 1px solid rgba(255,255,255,.3);
  display: flex; align-items: center; justify-content: center;
  color: #111;
  transition: background var(--duration-fast) var(--ease),
              transform var(--duration-fast) var(--ease);
}
.icon-btn:hover { background: #111; color: #fff; transform: scale(1.1); }

.project-body { padding: 1.25rem; }
.project-meta {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: .6rem;
}
.project-year { color: var(--text-faint); font-size: .72rem; }
.project-title {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: .6rem;
  color: var(--text);
}
.project-desc { font-size: .875rem; margin-bottom: 1rem; }
.project-tech { display: flex; flex-wrap: wrap; gap: .4rem; }
.tech-tag {
  font-family: var(--font-mono);
  font-size: .68rem;
  padding: .2rem .55rem;
  border-radius: var(--r-sm);
  background: rgba(255,255,255,.05);
  border: 1px solid var(--glass-border);
  color: var(--text-faint);
}
/* ─── 17b. MINI UI PREVIEWS ───────────────────────────────── */
.project-img {
  position: relative;
  overflow: hidden;
}

.mini-ui {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transform: translateY(0);
  transition: transform var(--duration-base) var(--ease);
}
.project-card:hover .mini-ui {
  transform: translateY(-5px) scale(1.04);
}

/* Note UI */
.note-ui .mini-notepad {
  width: 110px;
  background: #fefcf0; /* Light yellow paper background */
  border: 1px solid #e1d8ba;
  border-radius: var(--r-sm);
  padding: .5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  gap: .35rem;
  position: relative;
}
.note-ui .notepad-header {
  height: 4px;
  background: #f43f5e; /* Red notebook header binder */
  border-radius: var(--r-full);
  width: 40%;
}
.note-ui .notepad-lines {
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.note-ui .notepad-line {
  height: 3px;
  background: #cbd5e1;
  border-radius: var(--r-full);
  position: relative;
}
.note-ui .notepad-line::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(239, 68, 68, 0.4); /* Left red margin line */
}
.note-ui .notepad-line:nth-child(1) { width: 90%; }
.note-ui .notepad-line:nth-child(2) { width: 75%; }
.note-ui .notepad-line:nth-child(3) { width: 85%; }

/* CV UI */
.cv-ui .mini-cv-card {
  width: 120px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--r-md);
  padding: .5rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  gap: .4rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}
.cv-ui .cv-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  width: 30px;
}
.cv-ui .cv-avatar {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}
.cv-ui .cv-line-sm {
  height: 3px;
  width: 100%;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--r-full);
}
.cv-ui .cv-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.cv-ui .cv-line-lg {
  height: 3.5px;
  width: 90%;
  background: rgba(255, 255, 255, 0.3);
  border-radius: var(--r-full);
}
.cv-ui .cv-line-md {
  height: 3.5px;
  width: 65%;
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--r-full);
}

/* Download UI */
.download-ui .mini-dl-box {
  width: 120px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--r-md);
  padding: .5rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.download-ui .dl-input {
  height: 10px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  position: relative;
}
.download-ui .dl-input::after {
  content: '⬇';
  position: absolute;
  right: 4px;
  top: 1px;
  font-size: 5px;
  color: rgba(255, 255, 255, 0.6);
}
.download-ui .dl-bar {
  height: 5px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--r-full);
  overflow: hidden;
}
.download-ui .dl-progress {
  height: 100%;
  width: 70%;
  background: linear-gradient(90deg, #10b981, #34d399);
  border-radius: var(--r-full);
}

/* Contract UI */
.contract-ui .mini-contract {
  width: 110px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--r-md);
  padding: .5rem .6rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: .5rem;
  position: relative;
}
.contract-ui .contract-seal {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  border: 1.5px solid #10b981;
  color: #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  font-weight: bold;
}
.contract-ui .contract-lines {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.contract-ui .contract-line {
  height: 3px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--r-full);
}
.contract-ui .contract-line:nth-child(1) { width: 85%; }
.contract-ui .contract-line:nth-child(2) { width: 50%; }

/* Portfolio UI */
.portfolio-ui .mini-browser {
  width: 120px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--r-md);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.portfolio-ui .browser-bar {
  padding: .25rem .4rem;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  gap: 3px;
}
.portfolio-ui .browser-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
}
.portfolio-ui .browser-body {
  padding: .4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .3rem;
}
.portfolio-ui .browser-card {
  height: 24px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Bot UI */
.bot-ui .mini-bot-chat {
  width: 110px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--r-md);
  padding: .5rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.bot-ui .bot-msg {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: .55rem;
  padding: .15rem .3rem;
  border-radius: 4px;
  border-bottom-left-radius: 1px;
}
.bot-ui .user-msg {
  align-self: flex-end;
}
.design-ui .mini-design-toggle.active::after {
  left: auto; right: 1px;
}

/* Food UI */
.food-ui .mini-food-card {
  width: 110px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--r-md);
  padding: .5rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.food-ui .mini-food-badge {
  font-size: .65rem;
  font-weight: 600;
  color: #fff;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: .15rem .3rem;
  border-radius: var(--r-sm);
  text-align: center;
}
.food-ui .mini-food-meta {
  display: flex;
  justify-content: space-between;
  font-size: .5rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Business UI */
.business-ui .mini-chart-card {
  width: 120px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--r-md);
  padding: .5rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.business-ui .mini-chart-bars {
  height: 36px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: .25rem;
}
.business-ui .chart-bar {
  flex: 1;
  background: linear-gradient(to top, #f59e0b, #fbbf24);
  border-top-left-radius: 2px;
  border-top-right-radius: 2px;
}
.business-ui .mini-chart-lbl {
  font-size: .65rem;
  font-weight: 700;
  color: #fff;
  text-align: center;
  font-family: var(--font-mono);
}

/* ─── 18. EXPERIENCE / TIMELINE ──────────────────────────── */
.timeline {
  position: relative;
  padding-left: 2rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 8px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--secondary), var(--tertiary));
  opacity: .4;
}
.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
}
.timeline-dot {
  position: absolute;
  left: -26px; top: 1.25rem;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #111;
  border: 3px solid #fff;
  box-shadow: 0 0 8px rgba(0,0,0,.15);
}
.timeline-content {
  padding: 1.5rem;
  border-radius: var(--r-lg);
  transition: box-shadow var(--duration-base) var(--ease);
}
.timeline-content:hover { box-shadow: var(--glow-primary); }
.timeline-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  flex-wrap: wrap; gap: .5rem;
  margin-bottom: 1rem;
}
.timeline-role { font-family: var(--font-mono); font-size: 1.05rem; font-weight: 600; color: var(--text); }
.timeline-company { color: #888; font-size: .9rem; margin-top: .2rem; }
.timeline-date { color: var(--text-faint); font-size: .75rem; }
.timeline-list {
  list-style: none; display: flex; flex-direction: column; gap: .4rem;
  margin-bottom: 1rem;
}
.timeline-list li {
  color: var(--text-muted);
  font-size: .9rem;
  padding-left: 1.25rem;
  position: relative;
}
.timeline-list li::before {
  content: '▹';
  position: absolute; left: 0;
  color: #111;
}
.timeline-tech { display: flex; flex-wrap: wrap; gap: .4rem; }

/* ─── 19. CONTACT ────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 4rem;
  align-items: start;
}
.contact-links {
  display: flex; flex-direction: column; gap: .75rem;
  margin-top: 2rem;
}
.contact-link {
  display: flex; align-items: center; gap: .75rem;
  padding: .9rem 1.25rem;
  border-radius: var(--r-md);
  color: var(--text);
  font-size: .9rem;
  transition: all var(--duration-base) var(--ease);
}
.contact-link:hover {
  border-color: rgba(0,0,0,.15);
  box-shadow: 0 4px 16px rgba(0,0,0,.06);
  color: #111;
  transform: translateX(4px);
}

/* Form */
.contact-form {
  padding: 2rem;
  border-radius: var(--r-xl);
  display: flex; flex-direction: column; gap: 1.25rem;
}
.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-label {
  font-size: .78rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.form-input {
  background: var(--surface-mid);
  border: 1.5px solid var(--glass-border);
  border-radius: var(--r-md);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: .9375rem;
  padding: .75rem 1rem;
  transition: border-color var(--duration-base) var(--ease),
              box-shadow var(--duration-base) var(--ease);
  resize: vertical;
}
.form-input::placeholder { color: var(--text-faint); }
.form-input:focus {
  outline: none;
  border-color: #111;
  box-shadow: 0 0 0 3px rgba(0,0,0,.06);
}
.form-input.error { border-color: #f87171; }

.form-submit { align-self: center; }

.form-success {
  display: none;
  color: #22c55e;
  font-family: var(--font-mono);
  font-size: .85rem;
}
.form-success.visible { display: block; animation: fadeInUp .4s var(--ease) both; }

/* ─── 20. FOOTER ─────────────────────────────────────────── */
.site-footer {
  border-radius: 0;
  border-bottom: none; border-left: none; border-right: none;
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
  padding-block: 1.5rem;
}
.footer-copy { color: var(--text-faint); font-size: .75rem; }
.footer-socials { display: flex; gap: .75rem; }
.social-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  transition: all var(--duration-base) var(--ease);
}
.social-icon:hover {
  background: #111;
  border-color: #111;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,.12);
}

/* ─── 21. BACK TO TOP ────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 2rem; right: 2rem;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: #111;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity var(--duration-base) var(--ease),
              transform var(--duration-base) var(--ease);
  z-index: 200;
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.back-to-top:hover { background: #000; transform: translateY(-3px); }

/* ─── 22. RESPONSIVE — PIXEL-PERFECT MOBILE VIEW ────────── */

/* ── Tablet landscape (≤ 1100px) ── */
@media (max-width: 1100px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Tablet portrait (≤ 900px) ── */
@media (max-width: 900px) {
  /* Hero */
  .hero {
    padding-block: 7rem 5rem;
    min-height: 100svh;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
  }
  .hero-eyebrow { justify-content: center; }
  .hero-title   { font-size: clamp(2rem, 8vw, 3rem); }
  .hero-subtitle{ justify-content: center; font-size: clamp(1rem, 4vw, 1.3rem); }
  .hero-desc    { margin-inline: auto; max-width: 560px; }
  .hero-cta     { justify-content: center; }
  .hero-stats   { justify-content: center; }
  .hero-visual  { display: none; }

  /* About */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .about-img-wrap { margin-inline: auto; }

  /* Skills */
  .skills-grid { grid-template-columns: 1fr; gap: 2.5rem; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }

  /* Timeline */
  .timeline-header { flex-direction: column; gap: .35rem; align-items: flex-start; }
}

/* ── Mobile (≤ 768px) ── */
@media (max-width: 768px) {

  .site-header {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(255, 255, 255, 0.97) !important;
  }
  .nav-links {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(78vw, 300px);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 0;
    padding: 6rem 2rem 2rem;
    border-left: 1px solid var(--glass-border);
    transform: translateX(110%);
    transition: transform var(--duration-slow) var(--ease);
    z-index: 99;
    list-style: none;
    overflow-y: auto;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
  }
  .nav-links li { width: 100%; }
  .nav-links.open { transform: translateX(0); }
  .nav-link {
    display: block;
    font-size: 1.15rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--glass-border);
    width: 100%;
  }
  .nav-link::after { display: none; } /* Remove underline — full-width border used instead */
  .nav-hire-item {
    width: 100%;
    padding: 1.5rem 0;
  }
  .nav-hire-item .hire-btn {
    display: flex;
    width: 100%;
    justify-content: center;
    font-size: 1rem;
    padding: 0.8rem 1.5rem;
  }
  .hamburger { display: flex; z-index: 100; }

  /* ── Section spacing ── */
  .section-pad { padding-block: 4rem; }
  .section-title { font-size: clamp(1.5rem, 5vw, 2rem); }
  .section-header { margin-bottom: 2.5rem; }

  /* ── Hero ── */
  .hero { padding-block: 6rem 4rem; }
  .hero-title { font-size: clamp(1.85rem, 8vw, 2.5rem); }
  .hero-subtitle { font-size: 1rem; }
  .hero-desc { font-size: 1rem; }
  .hero-cta { flex-direction: column; align-items: center; gap: .75rem; }
  .btn { width: 100%; max-width: 280px; justify-content: center; margin-inline: auto; }
  .hero-stats { gap: 1.5rem; }
  .stat-num { font-size: 1.4rem; }

  /* ── About ── */
  .about-img-frame.glass { width: 200px; height: 240px; }
  .ide-code-body pre { font-size: .62rem; }
  .about-badge { bottom: -12px; right: -8px; font-size: .7rem; padding: .4rem .8rem; }
  .detail-row { flex-direction: column; align-items: flex-start; gap: .25rem; padding: .5rem 0; }
  .detail-key { min-width: unset; }

  /* ── Skills ── */
  .chip-cloud { gap: .4rem; }
  .chip { font-size: .72rem; padding: .25rem .7rem; }
  .soft-skill { flex-direction: row; align-items: flex-start; }

  /* ── Projects ── */
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .filter-tabs { gap: .4rem; }
  .filter-btn  { font-size: .75rem; padding: .4rem .9rem; }
  .project-img { height: 160px; }
  .project-body { padding: 1rem; }
  .project-title { font-size: .95rem; }

  /* ── Timeline ── */
  .timeline { padding-left: 1.5rem; }
  .timeline-dot { left: -22px; }
  .timeline-content { padding: 1.1rem 1rem; }
  .timeline-role { font-size: .95rem; }
  .timeline-list li { font-size: .85rem; }

  /* ── Contact ── */
  .contact-form { padding: 1.25rem; }
  .contact-link { padding: .75rem 1rem; font-size: .85rem; }

  /* ── Footer ── */
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    padding-block: 1.75rem;
  }

  /* ── Back to top ── */
  .back-to-top { bottom: 1.25rem; right: 1.25rem; width: 40px; height: 40px; }
}

/* ── Small phones (≤ 480px) ── */
@media (max-width: 480px) {
  /* Base */
  :root {
    --space-xl: 3.5rem;
    --space-lg: 2rem;
  }
  .container { width: 94%; }

  /* Header */
  .logo { font-size: 1.1rem; }

  /* Hero */
  .hero { padding-block: 5.5rem 3.5rem; }
  .hero-title   { font-size: 1.75rem; letter-spacing: -.02em; }
  .hero-subtitle{ font-size: .95rem; }
  .hero-eyebrow { font-size: .75rem; }
  .hero-desc    { font-size: .95rem; }
  .hero-stats   {
    display: grid;
    grid-template-columns: 1fr 1px 1fr 1px 1fr;
    align-items: center;
    gap: .5rem;
    width: 100%;
  }
  .stat-divider { height: 28px; }
  .stat-num { font-size: 1.2rem; }
  .stat-label { font-size: .68rem; }

  /* Section */
  .section-pad { padding-block: 3rem; }
  .section-title { font-size: 1.4rem; }
  .section-header { margin-bottom: 2rem; }

  /* About */
  .about-grid { gap: 2rem; }
  .about-img-frame.glass { width: 170px; height: 210px; }
  .about-img-border { inset: -7px; }
  .ide-code-body pre { font-size: .52rem; }
  .ide-dots { gap: 3px; }
  .ide-dot { width: 6px; height: 6px; }
  .about-content .body-lg { font-size: .95rem; }
  .about-details { gap: .5rem; }

  /* Skills */
  .skills-col-title { font-size: .72rem; }
  .skill-name { font-size: .82rem; }
  .skill-pct  { font-size: .7rem; }
  .soft-skill { padding: .6rem .75rem; }
  .soft-skill-icon { width: 36px; height: 36px; }
  .soft-skill-icon svg { width: 16px; height: 16px; }
  .soft-skill strong { font-size: .82rem; }
  .soft-skill .body-md { font-size: .78rem; }

  /* Projects */
  .project-body { padding: .9rem; }
  .project-title { font-size: .9rem; }
  .project-desc { font-size: .82rem; }
  .tech-tag { font-size: .65rem; }
  .project-img { height: 145px; }

  /* Timeline */
  .timeline { padding-left: 1.25rem; }
  .timeline-dot { width: 11px; height: 11px; left: -20px; top: 1.1rem; }
  .timeline-content { padding: .9rem .85rem; }
  .timeline-role { font-size: .88rem; }
  .timeline-company { font-size: .82rem; }
  .timeline-date { font-size: .68rem; }
  .timeline-list li { font-size: .8rem; }
  .timeline-item { margin-bottom: 2rem; }

  /* Contact */
  .contact-form { padding: 1rem; gap: 1rem; }
  .form-input   { font-size: .875rem; padding: .65rem .85rem; }
  .contact-link { padding: .65rem .9rem; font-size: .82rem; }
  .contact-links { gap: .5rem; margin-top: 1.25rem; }

  /* Footer */
  .footer-copy  { font-size: .7rem; }
  .social-icon  { width: 32px; height: 32px; }
}

/* ── Very small phones (≤ 360px) ── */
@media (max-width: 360px) {
  .hero-title { font-size: 1.55rem; }
  .btn        { max-width: 100%; }
  .about-img-frame { width: 150px; height: 185px; }
  .filter-btn { font-size: .68rem; padding: .35rem .7rem; }
}

/* ─── 23. SCROLLBAR ──────────────────────────────────────── */
::-webkit-scrollbar       { width: 6px; }
::-webkit-scrollbar-track { background: #f8f9fa; }
::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #999; }

/* ─── 24. SELECTION ──────────────────────────────────────── */
::selection {
  background: rgba(0,0,0,.12);
  color: #000;
}
