/* =========================================================
   Umar Intesab — Portfolio Design System
   Theme: "Dark editor" — Fully responsive with glassmorphism
   Enhanced for smooth performance
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  /* --- Color Palette --- */
  --bg: #0a0e1a;
  --bg-alt: #0f1629;
  --panel: #131b33;
  --panel-2: #182240;
  --border: #2a3a66;
  --border-soft: #1f2d52;

  --text: #dce3f2;
  --text-dim: #7a8bb5;
  --text-bright: #f0f4ff;

  /* Vibrant Accents */
  --electric-blue: #3B82F6;
  --cyan: #06B6D4;
  --violet: #8B5CF6;
  --purple: #7C3AED;
  --magenta: #EC4899;
  --emerald: #10B981;
  --orange: #F97316;
  --gold: #FACC15;
  --royal: #4d6bff;
  --green: #2dd4bf;
  --red: #ff8585;
  --amber: #F59E0B;
  --pink: #F472B6;
  --indigo: #6366F1;

  --radius: 10px;
  --radius-lg: 18px;
  --mono: 'JetBrains Mono', 'Courier New', monospace;
  --sans: 'Inter', 'Segoe UI', sans-serif;
  --display: 'Space Grotesk', 'Inter', sans-serif;

  /* Smooth easing functions */
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  /* --- Glass Tokens --- */
  --glass: rgba(255, 255, 255, 0.04);
  --glass-strong: rgba(255, 255, 255, 0.09);
  --glass-border: rgba(157, 148, 255, 0.2);
  --blur: 24px;

  /* Performance optimizations */
  --will-change: transform, opacity;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  position: relative;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  padding-top: 108px;
  min-height: 100vh;
  overflow-x: hidden;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.8s var(--ease-smooth), transform 0.8s var(--ease-out);
  will-change: var(--will-change);
}
body.loaded { 
  opacity: 1; 
  transform: translateY(0); 
}
body.menu-open { 
  overflow: hidden; 
}

/* =========================================================
   BACKGROUND FX — Optimized for smooth performance
   ========================================================= */
#bg-fx {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
  will-change: transform;
}

#bg-fx::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(6, 182, 212, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 60% 40%, rgba(236, 72, 153, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 10% 80%, rgba(16, 185, 129, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 90% 60%, rgba(250, 204, 21, 0.04) 0%, transparent 40%);
  animation: meshPulse 10s ease-in-out infinite alternate;
  will-change: transform, opacity;
}
@keyframes meshPulse {
  0% { opacity: 0.6; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.03); }
}

.aurora {
  position: absolute;
  inset: -20%;
  background: conic-gradient(from 0deg at 50% 50%,
    rgba(59, 130, 246, 0.25),
    rgba(139, 92, 246, 0.2),
    rgba(6, 182, 212, 0.2),
    rgba(236, 72, 153, 0.15),
    rgba(250, 204, 21, 0.1),
    rgba(16, 185, 129, 0.1),
    rgba(59, 130, 246, 0.25));
  filter: blur(80px);
  mix-blend-mode: screen;
  animation: auroraSpin 50s linear infinite;
  opacity: 0.6;
  will-change: transform;
}
@keyframes auroraSpin {
  to { transform: rotate(360deg); }
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.5;
  will-change: transform;
  animation: blobFloat 15s ease-in-out infinite alternate;
}
@keyframes blobFloat {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(60px, -40px) scale(1.08); }
}

.blob-royal {
  top: -10%;
  left: -8%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.4), transparent 70%);
  animation-delay: 0s;
}
.blob-violet {
  top: 20%;
  right: -15%;
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.35), transparent 70%);
  animation-delay: -4s;
}
.blob-cyan {
  bottom: -20%;
  left: 10%;
  width: 580px;
  height: 580px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.3), transparent 70%);
  animation-delay: -8s;
}
.blob-magenta {
  top: 60%;
  right: 5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.2), transparent 70%);
  animation-delay: -12s;
}
.blob-emerald {
  bottom: 10%;
  right: 30%;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.15), transparent 70%);
  animation-delay: -6s;
}

.particle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.4;
  box-shadow: 0 0 8px 2px currentColor;
  animation: particleFloat linear infinite;
  background: var(--electric-blue);
  will-change: transform, opacity;
}
@keyframes particleFloat {
  0%   { transform: translateY(0) translateX(0) scale(1); opacity: 0; }
  10%  { opacity: 0.6; }
  90%  { opacity: 0.3; }
  100% { transform: translateY(-120vh) translateX(var(--drift, 30px)) scale(0.5); opacity: 0; }
}

.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 500px;
  height: 500px;
  margin-left: -250px;
  margin-top: -250px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(139, 92, 246, 0.15),
    rgba(59, 130, 246, 0.1) 30%,
    rgba(6, 182, 212, 0.05) 60%,
    transparent 80%);
  pointer-events: none;
  z-index: -1;
  transition: opacity 0.3s ease;
  will-change: transform;
  filter: blur(10px);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

/* =========================================================
   NAVIGATION — Smooth transitions
   ========================================================= */
nav.tabbar {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: 1000px;
  z-index: 1000;
  background: rgba(10, 14, 26, 0.6);
  backdrop-filter: blur(var(--blur)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 20px 60px -20px rgba(0, 0, 0, 0.8),
    0 0 40px -12px rgba(59, 130, 246, 0.2),
    0 0 60px -12px rgba(139, 92, 246, 0.1);
  transition: box-shadow 0.5s var(--ease-smooth), border-color 0.5s var(--ease-smooth);
  will-change: box-shadow, border-color;
}
nav.tabbar:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 20px 60px -20px rgba(0, 0, 0, 0.8),
    0 0 50px -10px rgba(6, 182, 212, 0.25),
    0 0 70px -12px rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.3);
}
nav.tabbar::-webkit-scrollbar { display: none; }

.tab-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 24px 0 26px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-dim);
  border-right: 1px solid var(--border);
  white-space: nowrap;
  flex-shrink: 0;
}
.tab-brand .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 12px var(--emerald), 0 0 24px rgba(16, 185, 129, 0.3);
  animation: pulseDot 3s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.8; }
}

nav.tabbar a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 22px;
  height: 50px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
  border-right: 1px solid var(--border-soft);
  white-space: nowrap;
  transition: color 0.3s var(--ease-smooth), background 0.3s var(--ease-smooth);
  will-change: color, background;
}

nav.tabbar a:last-child { border-right: none; padding-right: 26px; }

nav.tabbar a::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-dim);
  transition: background 0.3s var(--ease-smooth), box-shadow 0.3s var(--ease-smooth);
}

nav.tabbar a:hover {
  color: var(--text-bright);
  background: rgba(255, 255, 255, 0.03);
}

nav.tabbar a.active {
  color: var(--text-bright);
  background: linear-gradient(180deg, rgba(6, 182, 212, 0.12), rgba(6, 182, 212, 0.02));
}
nav.tabbar a.active::before {
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan), 0 0 16px rgba(6, 182, 212, 0.4);
}
nav.tabbar a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--electric-blue), var(--violet), var(--magenta));
  border-radius: 0 0 4px 4px;
}

/* =========================================================
   HAMBURGER MENU — Smooth animations
   ========================================================= */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 2001;
  cursor: pointer;
  background: rgba(10, 14, 26, 0.7);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 10px;
  transition: all 0.4s var(--ease-spring);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  will-change: transform, border-color, box-shadow;
}
.hamburger:hover {
  border-color: var(--cyan);
  transform: scale(1.05);
  box-shadow: 0 0 30px -8px rgba(6, 182, 212, 0.2);
}
.hamburger:active {
  transform: scale(0.92);
}
.hamburger div {
  width: 22px;
  height: 2.5px;
  background: var(--text-bright);
  border-radius: 3px;
  transition: all 0.4s var(--ease-spring);
  transform-origin: center;
  will-change: transform, opacity;
}
.hamburger.active div:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active div:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.active div:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu Overlay — Smooth */
.mobile-menu {
  display: none !important;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 6px;
  background:
    radial-gradient(ellipse 500px 400px at 20% 20%, rgba(59, 130, 246, 0.12), transparent),
    radial-gradient(ellipse 500px 400px at 80% 80%, rgba(6, 182, 212, 0.1), transparent),
    radial-gradient(ellipse 400px 300px at 50% 50%, rgba(139, 92, 246, 0.08), transparent),
    radial-gradient(ellipse 300px 200px at 70% 30%, rgba(236, 72, 153, 0.06), transparent),
    rgba(8, 10, 15, 0.95);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 2000;
  padding: 80px 40px 40px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  transform: scale(0.95) translateY(20px);
  transition: opacity 0.5s var(--ease-smooth), transform 0.5s var(--ease-smooth);
  pointer-events: none;
  will-change: transform, opacity;
}
.mobile-menu.active {
  display: flex !important;
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: all;
}
.mobile-menu a {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
  font-family: var(--mono);
  font-size: 1.4rem;
  font-weight: 600;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-soft);
  width: 100%;
  transition: color 0.3s var(--ease-smooth), padding-left 0.3s var(--ease-smooth), border-color 0.3s var(--ease-smooth);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  will-change: color, padding-left, border-color;
}
.mobile-menu a:active {
  transform: scale(0.98);
}
.mobile-menu a:hover {
  color: var(--cyan);
  padding-left: 10px;
  border-color: var(--cyan);
}
.mobile-menu a::before {
  content: attr(data-idx);
  color: var(--electric-blue);
  font-size: 0.8rem;
  font-weight: 400;
  min-width: 30px;
}

/* =========================================================
   SHARED LAYOUT — Smooth reveals
   ========================================================= */
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--cyan);
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  text-transform: uppercase;
}
.eyebrow::before { content: '//'; color: var(--text-dim); }

.page-heading {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  background: linear-gradient(135deg, var(--text-bright), var(--text));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.page-sub {
  color: var(--text-dim);
  font-size: 1rem;
  max-width: 560px;
}
.page-header {
  padding: 64px 0 40px;
  text-align: center;
}
.page-header .eyebrow, .page-header .page-sub { margin-left: auto; margin-right: auto; }

.reveal {
  opacity: 0;
  transform: translateY(40px) scale(0.97);
  transition: opacity 0.8s var(--ease-smooth), transform 0.8s var(--ease-out);
  will-change: transform, opacity;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.panel {
  position: relative;
  background: linear-gradient(160deg, var(--glass-strong), var(--glass) 60%);
  backdrop-filter: blur(var(--blur)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 20px 50px -24px rgba(0, 0, 0, 0.8),
    0 0 30px -12px rgba(59, 130, 246, 0.08);
  transition: transform 0.6s var(--ease-smooth), box-shadow 0.6s var(--ease-smooth), border-color 0.6s var(--ease-smooth);
  will-change: transform, box-shadow, border-color;
}
.panel::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg,
    rgba(59, 130, 246, 0.4),
    rgba(6, 182, 212, 0.3),
    rgba(139, 92, 246, 0.35),
    rgba(236, 72, 153, 0.2),
    rgba(16, 185, 129, 0.2));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.4;
  pointer-events: none;
  transition: opacity 0.6s var(--ease-smooth);
  will-change: opacity;
}
.panel:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 30px 70px -24px rgba(0, 0, 0, 0.8),
    0 0 50px -12px rgba(59, 130, 246, 0.2),
    0 0 70px -12px rgba(139, 92, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.2);
}
.panel:hover::before { opacity: 0.9; }

/* =========================================================
   BUTTONS — Smooth interactions
   ========================================================= */
@property --angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.4s var(--ease-spring), box-shadow 0.4s var(--ease-smooth), background 0.4s var(--ease-smooth), border-color 0.4s var(--ease-smooth);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  will-change: transform, box-shadow;
}
.btn::before {
  content: '';
  position: absolute;
  inset: -2px;
  z-index: -2;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(from var(--angle, 0deg),
    var(--electric-blue),
    var(--violet),
    var(--cyan),
    var(--magenta),
    var(--emerald),
    var(--gold),
    var(--electric-blue));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: borderSpin 4s linear infinite;
  opacity: 0.8;
}
@keyframes borderSpin { to { --angle: 360deg; } }
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(115deg,
    transparent 30%,
    rgba(255, 255, 255, 0.25) 48%,
    rgba(255, 255, 255, 0.35) 52%,
    transparent 70%);
  transform: translateX(-150%);
  transition: transform 0.8s var(--ease-smooth);
}
.btn:hover::after { transform: translateX(150%); }
.btn:hover { transform: translateY(-3px) scale(1.02); }
.btn:active { transform: scale(0.95); }

.btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  transform: scale(0);
  animation: rippleOut 0.7s var(--ease-out);
  pointer-events: none;
}
@keyframes rippleOut { to { transform: scale(3); opacity: 0; } }

.btn-primary {
  background: linear-gradient(135deg, var(--electric-blue), var(--violet));
  color: #fff;
  box-shadow: 0 8px 30px -6px rgba(59, 130, 246, 0.5);
}
.btn-primary:hover {
  box-shadow: 0 16px 40px -8px rgba(59, 130, 246, 0.6), 0 0 40px -8px rgba(139, 92, 246, 0.3);
}

.btn-ghost {
  background: var(--glass);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  color: var(--text);
  border-color: var(--glass-border);
}
.btn-ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 10px 30px -10px rgba(6, 182, 212, 0.3), 0 0 40px -12px rgba(6, 182, 212, 0.1);
}

.btn-disabled {
  background: var(--panel-2);
  color: var(--text-dim);
  border-color: var(--border);
  cursor: not-allowed;
}
.btn-disabled::after, .btn-disabled::before { display: none; }

.btn-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 30px;
}

footer.site-footer {
  text-align: center;
  padding: 50px 20px 40px;
  color: var(--text-dim);
  font-family: var(--mono);
  font-size: 13px;
  border-top: 1px solid var(--border-soft);
  margin-top: 60px;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
}

/* =========================================================
   TERMINAL WINDOW
   ========================================================= */
.window {
  position: relative;
  background: linear-gradient(160deg, rgba(16, 20, 30, 0.8), rgba(10, 13, 20, 0.7));
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 30px 80px -24px rgba(0, 0, 0, 0.8),
    0 0 40px -16px rgba(59, 130, 246, 0.12);
  transition: box-shadow 0.5s var(--ease-smooth), transform 0.5s var(--ease-smooth);
  will-change: box-shadow, transform;
}
.window:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 30px 80px -24px rgba(0, 0, 0, 0.8),
    0 0 60px -16px rgba(6, 182, 212, 0.2),
    0 0 80px -16px rgba(59, 130, 246, 0.1);
}
.window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--glass-border);
}
.window-bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  transition: transform 0.3s var(--ease-spring);
}
.window-bar span:hover { transform: scale(1.2); }
.window-bar .c1 { background: #ff5f56; }
.window-bar .c2 { background: #ffbd2e; }
.window-bar .c3 { background: #27c93f; }
.window-bar .title {
  margin-left: 10px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
}
.window-body {
  padding: 28px 26px;
  font-family: var(--mono);
  font-size: 14.5px;
}
.window-body .prompt { color: var(--emerald); }
.window-body .path { color: var(--electric-blue); }
.window-body .cmd { color: var(--text-bright); }
.window-body .line { margin-bottom: 6px; }
.window-body .out { color: var(--text-dim); }
.caret {
  display: inline-block;
  width: 8px;
  height: 1.1em;
  background: var(--cyan);
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* =========================================================
   HERO — Smooth animations
   ========================================================= */
.hero {
  display: flex;
  align-items: center;
  gap: 60px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 70px 24px 90px;
  flex-wrap: wrap;
}
.hero-text { flex: 1 1 420px; min-width: 300px; }
.hero-text h1 {
  font-family: var(--display);
  font-size: clamp(2.6rem, 5.5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-bright);
  line-height: 1.1;
  margin-bottom: 10px;
}
.hero-text h1 .accent {
  background: linear-gradient(120deg,
    var(--cyan),
    var(--electric-blue),
    var(--violet),
    var(--magenta),
    var(--emerald),
    var(--gold),
    var(--cyan));
  background-size: 400% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 8s linear infinite;
}
.hero-text h2 {
  font-family: var(--display);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.3;
}
.hero-text h2 .accent {
  background: linear-gradient(120deg,
    var(--cyan),
    var(--electric-blue),
    var(--violet),
    var(--magenta));
  background-size: 300% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 6s linear infinite;
}
@keyframes shine { to { background-position: 400% center; } }

.hero-text p.lead {
  color: var(--text-dim);
  font-size: 1.15rem;
  max-width: 500px;
  margin-bottom: 28px;
  line-height: 1.8;
}

.hero-window { flex: 1 1 420px; min-width: 300px; }
.hero-window .window-body { min-height: 180px; }

/* Icons — Smooth */
.icons {
  margin-top: 32px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  transition: transform 0.4s var(--ease-spring), border-color 0.4s var(--ease-smooth), box-shadow 0.4s var(--ease-smooth), background 0.4s var(--ease-smooth);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  will-change: transform, border-color, box-shadow;
}
.icons a:hover {
  transform: translateY(-5px) scale(1.08);
  border-color: var(--cyan);
  box-shadow: 0 12px 30px -12px rgba(6, 182, 212, 0.4), 0 0 30px -8px rgba(6, 182, 212, 0.1);
  background: var(--glass-strong);
}
.icons a:active { transform: scale(0.92); }
.icons img { width: 22px; height: 22px; object-fit: contain; border-radius: 4px; }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.08);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  box-shadow: 0 0 30px -8px rgba(16, 185, 129, 0.3);
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.status-pill .ping {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  position: relative;
}
.status-pill .ping::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--emerald);
  animation: ping 1.8s ease-out infinite;
}
@keyframes ping {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(3); opacity: 0; }
}

.stat-strip {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  max-width: 1140px;
  margin: 0 auto 80px;
  padding: 0 24px;
}
.stat {
  flex: 1 1 200px;
  padding: 24px 28px;
  background: var(--glass);
  backdrop-filter: blur(var(--blur)) saturate(160%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(160%);
  border: 1px solid var(--glass-border);
  border-left: none;
  transition: background 0.4s var(--ease-smooth), transform 0.4s var(--ease-spring), box-shadow 0.4s var(--ease-smooth);
  will-change: transform, background, box-shadow;
}
.stat:hover {
  background: var(--glass-strong);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.4);
}
.stat:first-child {
  border-left: 1px solid var(--glass-border);
  border-top-left-radius: var(--radius-lg);
  border-bottom-left-radius: var(--radius-lg);
}
.stat:last-child {
  border-top-right-radius: var(--radius-lg);
  border-bottom-right-radius: var(--radius-lg);
}
.stat .num {
  font-family: var(--mono);
  font-size: 1.8rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--cyan), var(--electric-blue), var(--violet), var(--magenta));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 3s ease-in-out infinite;
}
@keyframes shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.stat .label {
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 4px;
}

/* =========================================================
   ABOUT, SKILLS, PROJECTS, TIMELINE, ACHIEVEMENTS, CONTACT
   ========================================================= */
/* All existing styles remain the same but with smooth transitions added */

.about-grid {
  display: flex;
  gap: 50px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 20px 24px 80px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.about-photo { flex: 0 0 300px; }
.about-photo .frame {
  position: relative;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 12px;
  background: var(--glass);
  backdrop-filter: blur(var(--blur)) saturate(160%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(160%);
  box-shadow:
    0 25px 60px -20px rgba(0, 0, 0, 0.7),
    0 0 40px -16px rgba(59, 130, 246, 0.3);
  transition: transform 0.5s var(--ease-spring), box-shadow 0.5s var(--ease-smooth);
  will-change: transform, box-shadow;
}
.about-photo .frame:hover {
  transform: translateY(-6px) rotate(-0.8deg) scale(1.01);
  box-shadow:
    0 30px 70px -20px rgba(0, 0, 0, 0.7),
    0 0 60px -16px rgba(6, 182, 212, 0.3),
    0 0 80px -16px rgba(139, 92, 246, 0.2);
}
.about-photo img {
  border-radius: 10px;
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}
.about-body { flex: 1 1 420px; min-width: 280px; }
.code-block {
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.9;
}
.code-block .kw { color: var(--violet); }
.code-block .fn { color: var(--electric-blue); }
.code-block .str { color: var(--emerald); }
.code-block .cm { color: var(--text-dim); }
.about-body p.readable {
  color: var(--text);
  font-size: 1.05rem;
  margin-bottom: 20px;
  line-height: 1.9;
}
.about-body strong {
  background: linear-gradient(135deg, var(--cyan), var(--electric-blue), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
}
.badge-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 24px 0 32px;
}
.badge {
  font-family: var(--mono);
  font-size: 12.5px;
  padding: 7px 14px;
  border-radius: 8px;
  border: 1px solid var(--glass-border);
  color: var(--text-dim);
  background: var(--glass);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  transition: transform 0.3s var(--ease-spring), border-color 0.3s var(--ease-smooth), color 0.3s var(--ease-smooth), box-shadow 0.3s var(--ease-smooth);
  touch-action: manipulation;
  will-change: transform, border-color, color;
}
.badge:hover {
  transform: translateY(-3px) scale(1.05);
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 8px 20px -10px rgba(6, 182, 212, 0.3);
}
.badge:active { transform: scale(0.95); }

/* Timeline */
.timeline {
  max-width: 800px;
  margin: 0 auto;
  padding: 10px 24px 80px;
  position: relative;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 43px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: linear-gradient(180deg, var(--cyan), var(--electric-blue), var(--violet), var(--magenta), var(--border) 90%);
}
.tl-item {
  position: relative;
  padding-left: 90px;
  margin-bottom: 40px;
}
.tl-item:last-child { margin-bottom: 0; }
.tl-dot {
  position: absolute;
  left: 34px;
  top: 6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--cyan);
  z-index: 2;
  box-shadow: 0 0 0 6px rgba(6, 182, 212, 0.12), 0 0 24px rgba(6, 182, 212, 0.4);
  animation: dotPulse 2.4s ease-in-out infinite;
}
.tl-item.done .tl-dot {
  border-color: var(--emerald);
  box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.12), 0 0 24px rgba(16, 185, 129, 0.3);
  animation: none;
}
@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 6px rgba(6, 182, 212, 0.12), 0 0 24px rgba(6, 182, 212, 0.4); }
  50% { box-shadow: 0 0 0 10px rgba(6, 182, 212, 0.06), 0 0 32px rgba(6, 182, 212, 0.5); }
}
.tl-card {
  padding: 24px 28px;
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}
.tl-card img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.tl-info { flex: 1 1 200px; min-width: 180px; }
.tl-info h2 {
  font-size: 1.3rem;
  color: var(--text-bright);
  margin-bottom: 4px;
}
.tl-info .school {
  color: var(--text-dim);
  font-size: 14px;
  margin-bottom: 8px;
}
.tl-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 12.5px;
}
.status {
  padding: 4px 12px;
  border-radius: 999px;
  font-weight: 600;
}
.status.pursuing {
  color: var(--cyan);
  background: rgba(6, 182, 212, 0.12);
}
.status.completed {
  color: var(--emerald);
  background: rgba(16, 185, 129, 0.12);
}
.tl-years { color: var(--text-dim); }

/* Skills */
.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 10px 24px 80px;
}
.skill-card { padding: 30px 28px; }
.skill-card .head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.skill-card .head .sw {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  animation: swPulse 2s ease-in-out infinite;
}
@keyframes swPulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}
.skill-card h2 {
  font-size: 1.2rem;
  color: var(--text-bright);
}
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tag {
  font-family: var(--mono);
  font-size: 12.5px;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--text);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  transition: border-color 0.3s var(--ease-smooth), color 0.3s var(--ease-smooth), transform 0.3s var(--ease-spring), box-shadow 0.3s var(--ease-smooth);
  touch-action: manipulation;
  will-change: transform, border-color, color;
}
.tag:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 12px 28px -14px rgba(0, 0, 0, 0.6);
}
.tag:active { transform: scale(0.95); }
.skill-card:nth-child(1) .tag:hover { border-color: var(--electric-blue); color: var(--electric-blue); }
.skill-card:nth-child(2) .tag:hover { border-color: var(--violet); color: var(--violet); }
.skill-card:nth-child(3) .tag:hover { border-color: var(--cyan); color: var(--cyan); }

/* Projects */
.projects-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  max-width: 1140px;
  margin: 0 auto;
  padding: 10px 24px 80px;
}
.project {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.project .thumb {
  position: relative;
  height: 180px;
  overflow: hidden;
}
.project .thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.6) 100%);
}
.project .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-smooth);
  will-change: transform;
}
.project:hover .thumb img { transform: scale(1.08); }
.project .body {
  padding: 24px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}
.project .repo-name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-weight: 700;
  color: var(--text-bright);
  font-size: 1.1rem;
}
.lang-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  animation: dotPulse 2s ease-in-out infinite;
}
.project p.desc {
  color: var(--text-dim);
  font-size: 14px;
  flex: 1;
  line-height: 1.7;
}
.project .btn { align-self: flex-start; margin-top: 6px; }

/* Achievements */
.gitlog {
  max-width: 780px;
  margin: 0 auto;
  padding: 10px 24px 80px;
  position: relative;
}
.gitlog::before {
  content: '';
  position: absolute;
  left: 33px;
  top: 14px;
  bottom: 14px;
  width: 2px;
  background: linear-gradient(180deg, var(--violet), var(--electric-blue), var(--cyan), var(--border));
}
.commit {
  position: relative;
  padding-left: 76px;
  margin-bottom: 32px;
}
.commit:last-child { margin-bottom: 0; }
.commit-dot {
  position: absolute;
  left: 24px;
  top: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--panel-2);
  border: 2px solid var(--violet);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: border-color 0.3s var(--ease-smooth), box-shadow 0.3s var(--ease-smooth);
  will-change: border-color, box-shadow;
}
.commit:hover .commit-dot {
  border-color: var(--cyan);
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.3);
}
.commit-dot::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--violet);
  transition: background 0.3s var(--ease-smooth);
}
.commit:hover .commit-dot::after { background: var(--cyan); }
.commit-card { padding: 22px 26px; }
.commit-hash {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--violet);
  margin-bottom: 6px;
  display: block;
  transition: color 0.3s var(--ease-smooth);
}
.commit:hover .commit-hash { color: var(--cyan); }
.commit-card h2 {
  font-size: 1.25rem;
  color: var(--text-bright);
  margin-bottom: 8px;
}
.commit-card p {
  color: var(--text-dim);
  font-size: 14.5px;
  line-height: 1.8;
}

/* Contact */
.contact-grid {
  display: flex;
  gap: 50px;
  max-width: 1040px;
  margin: 0 auto;
  padding: 10px 24px 80px;
  flex-wrap: wrap;
}
.contact-grid .window { flex: 1 1 460px; min-width: 300px; }
.contact-side { flex: 1 1 260px; min-width: 260px; }
.field { margin-bottom: 22px; }
.field label {
  display: block;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--electric-blue);
  margin-bottom: 8px;
}
.field label::before { content: 'const '; color: var(--violet); }
.field label::after { content: ' ='; color: var(--text-dim); }
.field input, .field textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  color: var(--text-bright);
  font-family: var(--sans);
  font-size: 15px;
  outline: none;
  transition: border-color 0.3s var(--ease-smooth), box-shadow 0.3s var(--ease-smooth), background 0.3s var(--ease-smooth);
  will-change: border-color, box-shadow, background;
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-dim); }
.field input:focus, .field textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.1), 0 0 30px -8px rgba(6, 182, 212, 0.05);
  background: rgba(0, 0, 0, 0.35);
}
.contact-side h2 {
  font-size: 1.4rem;
  color: var(--text-bright);
  margin-bottom: 14px;
}
.contact-side p {
  color: var(--text-dim);
  font-size: 14.5px;
  margin-bottom: 24px;
  line-height: 1.8;
}
.contact-side .icons { margin-top: 0; }

/* =========================================================
   SCROLL STAGGER
   ========================================================= */
.stat-strip .reveal:nth-child(1) { transition-delay: 0s; }
.stat-strip .reveal:nth-child(2) { transition-delay: 0.08s; }
.stat-strip .reveal:nth-child(3) { transition-delay: 0.16s; }
.stat-strip .reveal:nth-child(4) { transition-delay: 0.24s; }
.skills-container .reveal:nth-child(1) { transition-delay: 0s; }
.skills-container .reveal:nth-child(2) { transition-delay: 0.12s; }
.skills-container .reveal:nth-child(3) { transition-delay: 0.24s; }
.projects-wrapper .reveal:nth-child(1) { transition-delay: 0s; }
.projects-wrapper .reveal:nth-child(2) { transition-delay: 0.12s; }
.projects-wrapper .reveal:nth-child(3) { transition-delay: 0.24s; }
.timeline .tl-item.reveal:nth-child(1) { transition-delay: 0s; }
.timeline .tl-item.reveal:nth-child(2) { transition-delay: 0.15s; }
.timeline .tl-item.reveal:nth-child(3) { transition-delay: 0.3s; }
.gitlog .commit.reveal:nth-child(1) { transition-delay: 0s; }
.gitlog .commit.reveal:nth-child(2) { transition-delay: 0.15s; }
.gitlog .commit.reveal:nth-child(3) { transition-delay: 0.3s; }

.hero-window .window { animation: floatY 7s ease-in-out infinite; }
.about-photo .frame { animation: floatY 8s ease-in-out infinite; }
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* =========================================================
   RESPONSIVE BREAKPOINTS
   ========================================================= */
@media (max-width: 860px) {
  body { padding-top: 80px; }
  nav.tabbar { display: none; }
  .hamburger { display: flex; }
  
  .hero { padding: 30px 16px 50px; gap: 30px; }
  .hero-text h1 { font-size: clamp(2rem, 6vw, 2.8rem); }
  .hero-text h2 { font-size: clamp(1.2rem, 4vw, 1.8rem); }
  .hero-text p.lead { font-size: 1rem; }
  .hero-window .window-body { padding: 20px 18px; font-size: 13px; }
  
  .stat-strip { margin: 0 auto 50px; padding: 0 16px; }
  .stat { padding: 18px 20px; }
  .stat .num { font-size: 1.5rem; }
  
  .about-grid { gap: 30px; padding: 10px 16px 50px; }
  .about-photo { flex: 0 0 100%; max-width: 280px; margin: 0 auto; }
  .about-body p.readable { font-size: 0.95rem; }
  
  .skills-container { gap: 20px; padding: 10px 16px 50px; }
  .skill-card { padding: 24px 20px; }
  
  .projects-wrapper { gap: 20px; padding: 10px 16px 50px; }
  .project .thumb { height: 150px; }
  
  .timeline { padding: 10px 16px 50px; }
  .tl-card { padding: 18px 20px; gap: 16px; }
  .tl-card img { width: 60px; height: 60px; }
  
  .gitlog { padding: 10px 16px 50px; }
  .commit { padding-left: 60px; }
  .commit-card { padding: 16px 18px; }
  
  .contact-grid { gap: 30px; padding: 10px 16px 50px; }
  .page-header { padding: 40px 0 30px; }
  .page-heading { font-size: clamp(1.8rem, 4vw, 2.4rem); }
  
  .btn { padding: 11px 20px; font-size: 12px; }
  .btn-row { gap: 12px; }
  
  .mobile-menu { padding: 70px 30px 30px; }
  .mobile-menu a { font-size: 1.2rem; padding: 14px 0; }
}

@media (max-width: 480px) {
  body { padding-top: 70px; }
  .hamburger { width: 40px; height: 40px; top: 12px; right: 12px; padding: 8px; }
  .hamburger div { width: 20px; height: 2px; }
  
  .hero { padding: 20px 12px 40px; gap: 24px; }
  .hero-text h1 { font-size: clamp(1.6rem, 5vw, 2.2rem); }
  .hero-text h2 { font-size: clamp(1rem, 3.5vw, 1.4rem); }
  .hero-text p.lead { font-size: 0.95rem; margin-bottom: 20px; }
  .hero-window .window-body { padding: 16px 14px; font-size: 12px; }
  .hero-window .window-body .line { margin-bottom: 4px; }
  .window-bar { padding: 10px 14px; }
  .window-bar span { width: 9px; height: 9px; }
  
  .status-pill { font-size: 11px; padding: 5px 12px; margin-bottom: 16px; }
  .icons a { width: 40px; height: 40px; }
  .icons img { width: 18px; height: 18px; }
  
  .stat-strip { margin: 0 auto 30px; padding: 0 12px; }
  .stat { padding: 14px 16px; }
  .stat .num { font-size: 1.3rem; }
  .stat .label { font-size: 11px; }
  
  .about-grid { gap: 24px; padding: 10px 12px 40px; }
  .about-photo { max-width: 220px; }
  .about-photo .frame { padding: 8px; }
  .about-body p.readable { font-size: 0.9rem; margin-bottom: 14px; }
  .code-block { font-size: 12px; }
  .badge { font-size: 11px; padding: 5px 10px; }
  .badge-row { gap: 8px; margin: 16px 0 20px; }
  
  .skills-container { gap: 16px; padding: 10px 12px 40px; }
  .skill-card { padding: 20px 16px; }
  .skill-card h2 { font-size: 1rem; }
  .tag { font-size: 11px; padding: 6px 10px; }
  .tag-row { gap: 6px; }
  
  .projects-wrapper { gap: 16px; padding: 10px 12px 40px; grid-template-columns: 1fr; }
  .project .thumb { height: 130px; }
  .project .body { padding: 16px 16px 20px; }
  .project .repo-name { font-size: 0.95rem; }
  .project p.desc { font-size: 13px; }
  
  .timeline { padding: 10px 12px 40px; }
  .timeline::before { left: 28px; }
  .tl-item { padding-left: 60px; }
  .tl-dot { left: 20px; width: 16px; height: 16px; }
  .tl-card { padding: 14px 16px; gap: 12px; }
  .tl-card img { width: 50px; height: 50px; }
  .tl-info h2 { font-size: 1.1rem; }
  .tl-info .school { font-size: 12px; }
  .tl-meta { font-size: 11px; gap: 8px; }
  .status { font-size: 10px; padding: 3px 8px; }
  
  .gitlog { padding: 10px 12px 40px; }
  .gitlog::before { left: 20px; }
  .commit { padding-left: 48px; }
  .commit-dot { left: 12px; width: 16px; height: 16px; }
  .commit-dot::after { width: 4px; height: 4px; }
  .commit-card { padding: 14px 16px; }
  .commit-card h2 { font-size: 1.05rem; }
  .commit-card p { font-size: 13px; }
  .commit-hash { font-size: 10px; }
  
  .contact-grid { gap: 24px; padding: 10px 12px 40px; }
  .contact-grid .window { flex: 1 1 100%; min-width: 100%; }
  .contact-side { flex: 1 1 100%; min-width: 100%; }
  .field input, .field textarea { padding: 10px 12px; font-size: 14px; }
  .field label { font-size: 11px; }
  
  .page-header { padding: 30px 0 24px; }
  .page-heading { font-size: clamp(1.4rem, 3.5vw, 1.8rem); }
  .page-sub { font-size: 0.9rem; }
  .eyebrow { font-size: 11px; }
  
  .btn { padding: 10px 16px; font-size: 11px; border-radius: 8px; }
  .btn-row { gap: 10px; margin-top: 20px; }
  
  footer.site-footer { padding: 30px 16px 24px; font-size: 11px; margin-top: 30px; }
  
  .mobile-menu { padding: 60px 24px 30px; }
  .mobile-menu a { font-size: 1.1rem; padding: 12px 0; gap: 12px; }
  .mobile-menu a::before { font-size: 0.7rem; min-width: 24px; }
}

@media (max-width: 360px) {
  body { padding-top: 60px; }
  .hamburger { width: 36px; height: 36px; top: 10px; right: 10px; padding: 6px; }
  .hamburger div { width: 18px; height: 2px; }
  .hero-text h1 { font-size: 1.4rem; }
  .hero-window .window-body { font-size: 10px; padding: 12px 10px; }
  .stat .num { font-size: 1.1rem; }
  .about-photo { max-width: 180px; }
  .tl-card { padding: 12px 14px; }
  .tl-card img { width: 40px; height: 40px; }
  .tl-info h2 { font-size: 0.95rem; }
  .project .thumb { height: 110px; }
  
  .mobile-menu { padding: 50px 20px 20px; }
  .mobile-menu a { font-size: 1rem; padding: 10px 0; gap: 10px; }
}

/* =========================================================
   MOTION SAFE
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .hero-window .window,
  .about-photo .frame {
    animation: none !important;
  }
}