/* ═══════════════════════════════════════════════════════════
   Pratik Mandge Portfolio — v2
   Theme: Dark Luxury Premium · Fintech AI Engineering
   Fonts: Cormorant Garamond (display) · Plus Jakarta Sans (body) · JetBrains Mono
   ═══════════════════════════════════════════════════════════ */

/* ── CSS Variables — Default Dark Luxury (English) ──────── */
:root {
  /* Core palette */
  --bg:          #050810;
  --bg-alt:      #080d1a;
  --surface:     #0d1117;
  --surface-2:   #111827;
  --surface-3:   #1a2235;
  --border:      rgba(200, 151, 42, 0.12);
  --border-soft: rgba(255,255,255,0.06);

  /* Accent — Liquid Gold */
  --accent:      #c8972a;
  --accent-b:    #e8b84b;
  --accent-glow: rgba(200, 151, 42, 0.25);
  --accent-rgb:  200, 151, 42;

  /* Text */
  --text:        #e8eaf0;
  --text-muted:  #8892a4;
  --text-dim:    #4a5568;

  /* Status */
  --ok:    #22c55e;
  --warn:  #f59e0b;
  --info:  #3b82f6;

  /* Typography */
  --font-display: 'Cormorant Garamond', 'Georgia', ui-serif, serif;
  --font-body:    'Plus Jakarta Sans', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', 'Fira Code', ui-monospace, monospace;

  /* Layout */
  --max-w:  1100px;
  --pad:    clamp(1.5rem, 5vw, 4rem);
  --nav-h:  72px;
  --radius: 12px;
  --radius-lg: 20px;

  /* Animation */
  --ease:        cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-in:     cubic-bezier(0.55, 0, 1, 0.45);
  --dur-fast:    0.15s;
  --dur:         0.35s;
  --dur-slow:    0.7s;
}

/* ── Regional / Language Themes ─────────────────────────── */

/* Hindi / Marathi / Sanskrit — Saffron & Indigo */
[data-region="in-north"] {
  --accent:      #ff7b1a;
  --accent-b:    #ffaa44;
  --accent-glow: rgba(255, 123, 26, 0.25);
  --accent-rgb:  255, 123, 26;
  --bg:          #060510;
  --surface:     #0e0c1a;
}

/* South Indian (Kannada / Tamil / Telugu / Malayalam) */
[data-region="in-south"] {
  --accent:      #00c9a7;
  --accent-b:    #43dfc0;
  --accent-glow: rgba(0, 201, 167, 0.22);
  --accent-rgb:  0, 201, 167;
  --bg:          #050e10;
  --surface:     #081518;
}

/* Punjabi */
[data-region="in-punjab"] {
  --accent:      #fca311;
  --accent-b:    #ffd166;
  --accent-glow: rgba(252, 163, 17, 0.25);
  --accent-rgb:  252, 163, 17;
  --bg:          #07060e;
  --surface:     #100f1d;
}

/* Urdu — Mughal Elegance */
[data-region="ur"] {
  --accent:      #c084fc;
  --accent-b:    #d8b4fe;
  --accent-glow: rgba(192, 132, 252, 0.22);
  --accent-rgb:  192, 132, 252;
  --bg:          #07050e;
  --surface:     #110d1a;
}

/* Russian — Steel Blue Precision */
[data-region="ru"] {
  --accent:      #4fc3f7;
  --accent-b:    #81d4fa;
  --accent-glow: rgba(79, 195, 247, 0.22);
  --accent-rgb:  79, 195, 247;
  --bg:          #050810;
  --surface:     #0a0f1a;
}

/* German — Gunmetal & Amber */
[data-region="de"] {
  --accent:      #f59e0b;
  --accent-b:    #fbbf24;
  --accent-glow: rgba(245, 158, 11, 0.22);
  --accent-rgb:  245, 158, 11;
  --bg:          #080808;
  --surface:     #141414;
}

/* Irish — Forest Emerald */
[data-region="ga"] {
  --accent:      #10b981;
  --accent-b:    #34d399;
  --accent-glow: rgba(16, 185, 129, 0.22);
  --accent-rgb:  16, 185, 129;
  --bg:          #040c0a;
  --surface:     #081510;
}

/* Arabic — Midnight & Rich Gold */
[data-region="ar"] {
  --accent:      #daa520;
  --accent-b:    #f0c040;
  --accent-glow: rgba(218, 165, 32, 0.28);
  --accent-rgb:  218, 165, 32;
  --bg:          #04040a;
  --surface:     #0a0910;
}

/* Italian — Mediterranean Warmth */
[data-region="it"] {
  --accent:      #ef4444;
  --accent-b:    #f87171;
  --accent-glow: rgba(239, 68, 68, 0.22);
  --accent-rgb:  239, 68, 68;
  --bg:          #090506;
  --surface:     #150a0a;
}

/* Spanish — Crimson Passion */
[data-region="es"] {
  --accent:      #e11d48;
  --accent-b:    #fb7185;
  --accent-glow: rgba(225, 29, 72, 0.22);
  --accent-rgb:  225, 29, 72;
  --bg:          #08040a;
  --surface:     #120710;
}

/* ── Weather Theme Overlays ──────────────────────────────── */

/* Rain */
body.weather-rain {
  --bg:          #050b12;
  --surface:     #08111c;
  --border:      rgba(79, 150, 220, 0.15);
}

/* Snow */
body.weather-snow {
  --bg:          #06080e;
  --surface:     #0c1020;
  --accent-glow: rgba(180, 200, 255, 0.20);
}

/* Sunny / Hot */
body.weather-sunny {
  --accent-glow: rgba(var(--accent-rgb), 0.35);
}

/* Fog */
body.weather-fog {
  --text-muted:  #7a8899;
}

/* Night theme (auto based on time) */
body.time-night {
  --bg:      #030508;
  --surface: #080d14;
}

/* Day theme */
body.time-day {
  /* Slightly warmer darks */
  --bg:      #070810;
  --surface: #0e1020;
}

/* RTL Support */
[dir="rtl"] {
  text-align: right;
}
[dir="rtl"] .nav-links { flex-direction: row-reverse; }
[dir="rtl"] .nav-inner { flex-direction: row-reverse; }
[dir="rtl"] .about-grid { direction: rtl; }
[dir="rtl"] .timeline-item { direction: rtl; }
[dir="rtl"] .contact-row { flex-direction: row-reverse; }
[dir="rtl"] .contact-arr { transform: scaleX(-1); }

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  font-size: 16px;
  scroll-padding-top: calc(var(--nav-h) + 1rem);
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background 0.8s var(--ease), color 0.4s;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
::selection { background: var(--accent); color: #000; }
*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ── Progress Bar ────────────────────────────────────────── */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-b));
  width: 0%;
  z-index: 9999;
  transition: width 0.1s linear;
  box-shadow: 0 0 8px var(--accent-glow);
}

/* ── Loader ──────────────────────────────────────────────── */
.loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s var(--ease), visibility 0.6s;
}
.loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
.loader-monogram {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: -0.03em;
  animation: pulse-glow 1.5s ease-in-out infinite;
}
.loader-text {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.loader-track {
  width: 200px;
  height: 1px;
  background: var(--border-soft);
  border-radius: 1px;
  overflow: hidden;
}
.loader-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-b));
  width: 0%;
  transition: width 0.3s var(--ease);
  box-shadow: 0 0 10px var(--accent-glow);
}

@keyframes pulse-glow {
  0%, 100% { text-shadow: 0 0 30px var(--accent-glow); }
  50%        { text-shadow: 0 0 60px var(--accent-glow), 0 0 100px var(--accent-glow); }
}

/* ── Custom Cursor ───────────────────────────────────────── */
.cursor-dot,
.cursor-ring {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9997;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
}
.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
  transition: transform 0.1s, opacity 0.3s;
}
.cursor-ring {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(var(--accent-rgb), 0.5);
  transition: width 0.3s var(--ease), height 0.3s var(--ease),
              border-color 0.3s, opacity 0.3s, transform 0.15s;
}
.cursor-ring.hovering {
  width: 48px;
  height: 48px;
  border-color: var(--accent);
  background: rgba(var(--accent-rgb), 0.05);
}
.cursor-ring.clicking {
  width: 24px;
  height: 24px;
  background: rgba(var(--accent-rgb), 0.15);
}
@media (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ── Weather Canvas ──────────────────────────────────────── */
.weather-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 1s;
}
.weather-canvas.active { opacity: 1; }

/* ── Skip Link ───────────────────────────────────────────── */
.skip-link {
  position: fixed; top: -100%; left: 1rem; z-index: 9999;
  background: var(--accent); color: #000;
  padding: 0.4rem 1rem; border-radius: 4px;
  font-size: 0.85rem; font-family: var(--font-body);
  font-weight: 600;
  transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

/* ── Navigation ──────────────────────────────────────────── */
#site-header {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(5, 8, 16, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  z-index: 200;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}
#site-header.scrolled {
  border-color: var(--border);
  box-shadow: 0 4px 40px rgba(0,0,0,0.4);
  background: rgba(5, 8, 16, 0.95);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav-mark {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  gap: 0.15rem;
  margin-right: auto;
}
.nav-links a {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.4rem 0.7rem;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: rgba(var(--accent-rgb), 0.08);
}
.nav-links a.active { color: var(--accent); }
.nav-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* Weather Widget */
.weather-widget {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border-soft);
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  white-space: nowrap;
  transition: all 0.3s;
}
.weather-widget:hover {
  border-color: var(--border);
  color: var(--text);
}
.w-icon { font-size: 0.9rem; }
.w-temp { color: var(--accent); font-weight: 500; }
.w-sep  { opacity: 0.3; }
.w-time { letter-spacing: 0.05em; }

/* Language Selector */
.lang-selector {
  position: relative;
}
.lang-trigger {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border-soft);
  padding: 0.3rem 0.7rem;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.lang-trigger:hover {
  color: var(--text);
  border-color: var(--border);
  background: var(--surface-2);
}
.lang-globe { font-size: 0.9rem; }
.lang-chevron { opacity: 0.6; transition: transform 0.2s; font-size: 0.65rem; }
.lang-trigger[aria-expanded="true"] .lang-chevron { transform: rotate(180deg); }
.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.5rem;
  min-width: 180px;
  z-index: 300;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.97);
  transition: all 0.2s var(--ease);
  pointer-events: none;
}
.lang-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: all;
}
.lang-group { margin-bottom: 0.5rem; }
.lang-group:last-child { margin-bottom: 0; }
.lang-group-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.3rem 0.6rem 0.2rem;
}
.lang-opt {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.82rem;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.lang-opt:hover, .lang-opt.active {
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--accent);
}

/* Nav CTA + links */
.nav-link-sub {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}
.nav-link-sub:hover { color: var(--text); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--bg);
  background: var(--accent);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  transition: all 0.2s var(--ease);
  white-space: nowrap;
}
.nav-cta:hover {
  background: var(--accent-b);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(var(--accent-rgb), 0.35);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-muted);
  border-radius: 2px;
  transition: all 0.25s var(--ease);
}
.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); }
.hidden-mobile { display: inline-flex; }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--nav-h);
}
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
/* Gradient overlay to blend canvas with content */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 70% 50%, rgba(var(--accent-rgb), 0.04) 0%, transparent 70%),
    radial-gradient(ellipse 80% 60% at 20% 80%, rgba(var(--accent-rgb), 0.03) 0%, transparent 60%),
    linear-gradient(180deg, rgba(5,8,16,0) 0%, rgba(5,8,16,0.3) 100%);
  pointer-events: none;
  z-index: 0;
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 4rem var(--pad);
  width: 100%;
}
.hero-content {
  max-width: 700px;
}
.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.45rem 1rem;
  border-radius: 20px;
  margin-bottom: 2rem;
  letter-spacing: 0.02em;
}
.avail-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 8px var(--ok);
  flex-shrink: 0;
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%        { opacity: 0.4; }
}
.hero-name {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 600;
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 1.25rem;
  display: block;
}
.hero-name-first {
  display: block;
  color: var(--text);
}
.hero-name-last {
  display: block;
  background: linear-gradient(135deg, var(--accent), var(--accent-b));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.scramble-char {
  color: var(--accent);
  opacity: 0.7;
  font-style: italic;
}
.hero-title {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
}
.hero-sub {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-muted);
  max-width: 580px;
  margin-bottom: 2.5rem;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}
.hero-metrics {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  width: fit-content;
  max-width: 100%;
}
.metric {
  text-align: center;
  padding: 0 1.5rem;
  position: relative;
}
.metric-val {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--accent);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 0.35rem;
}
.metric-lbl {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.metric-sep {
  width: 1px;
  height: 40px;
  background: var(--border);
  flex-shrink: 0;
}

/* Hero scroll cue */
.hero-scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: var(--pad);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 2;
}
.scroll-line {
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}
@keyframes scroll-pulse {
  0%, 100% { width: 40px; opacity: 0.5; }
  50%        { width: 70px; opacity: 1; }
}

/* ── Reveal Animations ───────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* Hero reveal (CSS animation, not observer) */
.hero .reveal {
  opacity: 0;
  animation: hero-in 0.9s var(--ease) forwards;
}
.hero .delay-1 { animation-delay: 0.15s; }
.hero .delay-2 { animation-delay: 0.3s; }
.hero .delay-3 { animation-delay: 0.45s; }
.hero .delay-4 { animation-delay: 0.6s; }
.hero .delay-5 { animation-delay: 0.75s; }
@keyframes hero-in {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  background: var(--accent);
  color: #000;
  padding: 0.7rem 1.6rem;
  border-radius: 30px;
  transition: all 0.25s var(--ease);
  letter-spacing: 0.01em;
}
.btn-primary:hover {
  background: var(--accent-b);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(var(--accent-rgb), 0.4);
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 0.68rem 1.5rem;
  border-radius: 30px;
  transition: all 0.25s var(--ease);
}
.btn-ghost:hover {
  background: rgba(var(--accent-rgb), 0.1);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(var(--accent-rgb), 0.2);
}
.btn-text {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.btn-text:hover { color: var(--accent); }

/* ── Sections ────────────────────────────────────────────── */
.section { padding: 6rem 0; }
.section-alt { background: var(--surface); }
.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.section-head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 3.5rem;
}
.section-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.05em;
  opacity: 0.8;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.1;
}
.section-sub {
  margin-top: 4rem;
}
.section-sub h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 1.5rem;
}

/* ── About ───────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 4rem;
  align-items: start;
}
.about-text p {
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 1.2rem;
  font-size: 1.02rem;
}
.about-text p:last-child { margin-bottom: 0; }
.fact-list {
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
}
.fact {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1rem;
  padding: 0.9rem 1.2rem;
  border-bottom: 1px solid var(--border-soft);
  font-size: 0.88rem;
  align-items: baseline;
}
.fact:last-child { border-bottom: none; }
.fact dt {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding-top: 0.1rem;
}
.fact dd { color: var(--text-muted); }

/* ── Timeline ────────────────────────────────────────────── */
.timeline {
  position: relative;
  padding-left: 2rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, var(--accent), transparent);
}
.timeline-item {
  position: relative;
  padding-bottom: 3rem;
  padding-left: 2rem;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
  transform: translateX(-3.5px);
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}
.timeline-period {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.03em;
}
.timeline-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.15rem 0.6rem;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.timeline-badge.current {
  background: rgba(34, 197, 94, 0.12);
  color: var(--ok);
  border: 1px solid rgba(34, 197, 94, 0.25);
}
.timeline-body h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 0.3rem;
}
.timeline-org {
  font-size: 0.9rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.timeline-org a {
  color: var(--accent);
  transition: color 0.2s;
}
.timeline-org a:hover { color: var(--accent-b); }
.timeline-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}
.timeline-bullets {
  margin-bottom: 1rem;
}
.timeline-bullets li {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.75;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border-soft);
  padding-left: 1rem;
  position: relative;
}
.timeline-bullets li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
.timeline-bullets li:last-child { border-bottom: none; }
.timeline-bullets strong { color: var(--text); font-weight: 600; }
.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
}

/* ── Chips / Tags ────────────────────────────────────────── */
.chip {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.08);
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  letter-spacing: 0.02em;
  transition: all 0.2s;
  white-space: nowrap;
}
.chip:hover {
  background: rgba(var(--accent-rgb), 0.15);
  border-color: rgba(var(--accent-rgb), 0.4);
}
.tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  color: #000;
  background: var(--accent);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  letter-spacing: 0.04em;
}

/* ── Projects ────────────────────────────────────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.project-card {
  position: relative;
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s var(--ease);
  transform-style: preserve-3d;
  will-change: transform;
}
.project-card:hover {
  border-color: rgba(var(--accent-rgb), 0.35);
  box-shadow:
    0 20px 60px rgba(0,0,0,0.4),
    0 0 40px rgba(var(--accent-rgb), 0.06),
    inset 0 1px 0 rgba(var(--accent-rgb), 0.1);
}
.project-card.featured {
  background: linear-gradient(135deg, var(--surface-2) 0%, var(--surface-3) 100%);
  border-color: var(--border);
}
.project-card.featured:hover {
  border-color: rgba(var(--accent-rgb), 0.5);
}
/* Card shine (3D glare effect) */
.card-shine {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 1;
}
.project-card:hover .card-shine,
.cert-card:hover .card-shine {
  opacity: 1;
}
.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
}
.project-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.05em;
  opacity: 0.7;
}
.project-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.proj-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--text-dim);
  background: var(--surface);
  border: 1px solid var(--border-soft);
  padding: 0.2rem 0.55rem;
  border-radius: 10px;
  letter-spacing: 0.04em;
}
.proj-link {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--accent);
  transition: color 0.2s;
}
.proj-link:hover { color: var(--accent-b); }
.project-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 0.6rem;
  line-height: 1.3;
  position: relative;
  z-index: 2;
}
.project-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 1.2rem;
  position: relative;
  z-index: 2;
}
.project-metrics {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}
.pm { text-align: center; }
.pm-v {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: -0.01em;
}
.pm-l {
  display: block;
  font-size: 0.65rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.15rem;
}
.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  position: relative;
  z-index: 2;
}
.wip-note { font-style: italic; opacity: 0.75; }

/* ── Skills ──────────────────────────────────────────────── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}
.skill-group {
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.3s;
}
.skill-group:hover { border-color: var(--border); }
.skill-group-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.skill-list { display: flex; flex-direction: column; gap: 0.85rem; }
.skill-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.skill-level {
  position: relative;
  width: 80px;
  height: 3px;
  background: var(--border-soft);
  border-radius: 3px;
  flex-shrink: 0;
  overflow: hidden;
}
.skill-level::after {
  content: '';
  position: absolute;
  left: 0; top: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-b));
  border-radius: 3px;
  transition: width 1s var(--ease);
  box-shadow: 0 0 6px var(--accent-glow);
}
.skill-level.animated::after {
  width: calc(var(--l) * 1%);
}

/* Certifications */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.cert-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 1.25rem;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s var(--ease);
  transform-style: preserve-3d;
  will-change: transform;
}
.cert-card:hover {
  border-color: rgba(var(--accent-rgb), 0.3);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3), 0 0 20px rgba(var(--accent-rgb), 0.04);
}
.cert-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  filter: grayscale(0.3);
}
.cert-card strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.3rem;
  position: relative;
  z-index: 2;
}
.cert-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.55;
  position: relative;
  z-index: 2;
}

/* Education */
.edu-list { display: flex; flex-direction: column; gap: 1.25rem; }
.edu-item {
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.1rem 1.5rem;
  transition: border-color 0.3s;
}
.edu-item:hover { border-color: rgba(var(--accent-rgb), 0.4); }
.edu-degree {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.3rem;
}
.edu-inst {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}
.edu-meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.03em;
}

/* ── Writing ─────────────────────────────────────────────── */
.writing-intro p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}
.posts-list { display: flex; flex-direction: column; gap: 0; }
.post-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 2rem;
  align-items: start;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border-soft);
  transition: background 0.2s;
}
.post-row:last-child { border-bottom: none; }
.post-row:hover { background: rgba(var(--accent-rgb), 0.02); }
.post-meta { padding-top: 0.15rem; }
.post-status {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 10px;
}
.post-status.wip {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warn);
  border: 1px solid rgba(245, 158, 11, 0.25);
}
.post-body h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  line-height: 1.4;
  transition: color 0.2s;
}
.post-row:hover .post-body h3 { color: var(--accent); }
.post-body p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}
.post-tags { display: flex; gap: 0.35rem; flex-wrap: wrap; }

/* ── Contact ─────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 4rem;
  align-items: start;
}
.contact-text p {
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 1.2rem;
  font-size: 1.02rem;
}
.contact-links { display: flex; flex-direction: column; gap: 0.75rem; }
.contact-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  transition: all 0.25s var(--ease);
  position: relative;
  overflow: hidden;
}
.contact-row::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--accent);
  transform: scaleY(0);
  transition: transform 0.25s var(--ease);
}
.contact-row:hover {
  border-color: rgba(var(--accent-rgb), 0.3);
  background: var(--surface-3);
  transform: translateX(4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}
.contact-row:hover::before { transform: scaleY(1); }
.contact-icon {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  width: 24px;
  flex-shrink: 0;
  text-align: center;
}
.contact-val {
  flex: 1;
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color 0.2s;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.contact-row:hover .contact-val { color: var(--text); }
.contact-arr {
  font-size: 0.85rem;
  color: var(--text-dim);
  transition: transform 0.2s, color 0.2s;
}
.contact-row:hover .contact-arr { transform: translateX(3px); color: var(--accent); }

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border-soft);
  padding: 2rem 0;
  background: var(--surface);
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

/* ── Magnetic Button Effect ──────────────────────────────── */
.magnetic { display: inline-flex; position: relative; }

/* ── Mobile Responsive ───────────────────────────────────── */
@media (max-width: 900px) {
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .fact-list { max-width: 100%; }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }

  .hamburger { display: flex; }
  .hidden-mobile { display: none !important; }
  .nav-cta { display: none; }
  .weather-widget { display: none; }

  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(5, 8, 16, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    gap: 0;
    padding: 1rem;
    border-bottom: 1px solid var(--border-soft);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s var(--ease), opacity 0.35s;
    z-index: 199;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  .nav-links a {
    display: block;
    padding: 0.9rem 1rem;
    border-radius: 8px;
    font-size: 1rem;
  }

  .hero-name { font-size: 3rem; }

  .projects-grid {
    grid-template-columns: 1fr;
  }
  .post-row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .hero-metrics {
    flex-direction: column;
    gap: 1rem;
    padding: 1.2rem;
  }
  .metric { padding: 0; }
  .metric-sep { width: 100%; height: 1px; }

  .timeline { padding-left: 1rem; }
  .timeline-item { padding-left: 1.25rem; }

  .skills-grid { grid-template-columns: 1fr; }
  .certs-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }

  .lang-dropdown { right: auto; left: 0; }

  .hero-actions { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  :root { --pad: 1.25rem; }
  .hero-name { font-size: 2.5rem; }
  .section-head h2 { font-size: 1.8rem; }
  .lang-trigger .lang-name { display: none; }
}

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

/* ── Glow text effect for hero name ─────────────────────── */
.hero-name-last {
  text-shadow: 0 0 80px rgba(var(--accent-rgb), 0.15);
}

/* ── Section transition ──────────────────────────────────── */
.section, .section-alt {
  transition: background 0.8s var(--ease);
}
