/* =============================================
   VARUN BADIREDDI — PORTFOLIO  v2
   Aesthetic: Editorial Dark · Refined · Creative
   Fonts: Clash Display (headings) · Instrument Serif (italic accents)
          DM Mono (code/labels) · Figtree (body)
   ============================================= */

/* ── RESET ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img, svg { display: block; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* ── TOKENS ─────────────────────────────────── */
:root {
  /* backgrounds */
  --bg-0: #f3f8fb;
  --bg-1: #f8fcff;
  --bg-2: #eaf3f8;
  --bg-3: #dfeaf2;
  --bg-4: #d5e2ec;

  /* borders */
  --bdr:       rgba(80,70,160,0.12);
  --bdr-glow:  rgba(108,99,255,0.40);

  /* accent palette */
  --a1:        #6c5ce7;  
  --a1-light:  #8b7ff5;
  --a1-dim:    rgba(108,92,231,0.10);
  --a2:        #e84040;   /* coral — secondary */
  --a3:        #00b894;   /* teal — tertiary */
  --a-green:   #22c55e;   /* status green */

  /* typography */
  --tx-1:      #1a1a2e;   /* primary text */
  --tx-2:      #4a4a72;   /* secondary */
  --tx-3:      #8888aa;   /* muted */

  /* fonts */
  --f-head:    'Clash Display', 'Syne', sans-serif;
  --f-serif:   'Instrument Serif', Georgia, serif;
  --f-mono:    'DM Mono', 'Space Mono', monospace;
  --f-body:    'Figtree', 'DM Sans', sans-serif;

  /* spacing */
  --section-py: 110px;

  /* radii */
  --r-sm:  8px;
  --r-md:  14px;
  --r-lg:  20px;

  /* shadows */
  --sh-card:  0 2px 20px rgba(60,50,120,0.08);
  --sh-glow:  0 0 48px rgba(108,92,231,0.15);

  /* animation */
  --ease:  cubic-bezier(0.22, 1, 0.36, 1);
  --t:     0.28s;
}

/* ── BASE ─────────────────────────────────── */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 68px;
}
body {
  background: var(--bg-1);
  color: var(--tx-1);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.72;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--a1); color: #fff; }

/* scrollbar */
::-webkit-scrollbar       { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: var(--a1); border-radius: 2px; }

/* ── LAYOUT HELPERS ─────────────────────────── */
.container {
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 48px;
}
@media (max-width: 768px) { .container { padding-inline: 24px; } }

section { padding-block: var(--section-py); position: relative; }
.section-alt { background: var(--bg-2); }

/* ── TYPOGRAPHY SYSTEM ────────────────────── */
.sec-label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--a1);
  margin-bottom: 14px;
}
.sec-title {
  font-family: var(--f-head);
  font-size: clamp(30px, 4.2vw, 52px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--tx-1);
  margin-bottom: 52px;
}
.sec-title em {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--a1-light);
}
.sec-desc {
  font-size: 16px;
  color: var(--tx-2);
  max-width: 580px;
  line-height: 1.8;
  margin-bottom: 52px;
}

/* ── ACCENT UTILITY ───────────────────────── */
.accent { color: var(--a1); }
.dot    { color: var(--a1); }

/* ── BUTTONS ─────────────────────────────── */
.btn-fill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  background: var(--a1);
  color: #fff;
  font-family: var(--f-head);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: var(--r-sm);
  border: none;
  transition: background var(--t) var(--ease), transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.btn-fill:hover {
  background: var(--a1-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(108,92,231,0.30);
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border: 1.5px solid var(--bdr);
  color: var(--tx-1);
  font-family: var(--f-head);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: var(--r-sm);
  transition: border-color var(--t), color var(--t), transform var(--t);
}
.btn-outline:hover {
  border-color: var(--a1);
  color: var(--a1);
  transform: translateY(-2px);
}

/* ── NAVBAR ─────────────────────────────── */
#navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 900;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 40px;
  padding-inline: 48px;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--bdr);
  transition: background var(--t);
}
#navbar.scrolled { background: rgba(255,255,255,0.97); }

.nav-logo {
  font-family: var(--f-head);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.04em;
  margin-right: auto;
  color: var(--tx-1);
}
.nav-links {
  display: flex;
  gap: 32px;
}
.nav-links a {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--tx-3);
  letter-spacing: 0.4px;
  transition: color var(--t);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--a1);
  transition: width 0.22s ease;
}
.nav-links a:hover        { color: var(--tx-1); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active       { color: var(--a1); }
.nav-links a.active::after{ width: 100%; }

.nav-resume-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--f-mono);
  font-size: 11.5px;
  padding: 8px 16px;
  border: 1px solid var(--a1);
  color: var(--a1);
  border-radius: var(--r-sm);
  transition: background var(--t), color var(--t);
}
.nav-resume-btn:hover { background: var(--a1-dim); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--tx-2);
  border-radius: 2px;
  transition: transform var(--t), opacity var(--t);
}
.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 900px) {
  #navbar { padding-inline: 24px; gap: 16px; }
  .nav-links, .nav-resume-btn { display: none; }
  .hamburger { display: flex; }
}

/* ── MOBILE MENU ────────────────────────── */
.mobile-menu {
  position: fixed;
  top: 68px; inset-inline: 0;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--bdr);
  z-index: 899;
  padding: 28px 24px 36px;
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: transform var(--t) var(--ease), opacity var(--t);
}
.mobile-menu.open { transform: translateY(0); opacity: 1; pointer-events: all; }
.mobile-menu ul { display: flex; flex-direction: column; gap: 22px; }
.mob-link {
  font-family: var(--f-head);
  font-size: 18px;
  font-weight: 500;
  color: var(--tx-2);
  transition: color var(--t);
}
.mob-link:hover   { color: var(--tx-1); }
.mob-resume       { color: var(--a1) !important; font-size: 15px; font-family: var(--f-mono); }

/* ── REVEAL ANIMATION ────────────────────── */
.reveal-fade {
  opacity: 0;
  transform: translateY(22px);
  animation: revealFade 0.7s var(--ease) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes revealFade {
  to { opacity: 1; transform: translateY(0); }
}

/* ── SCROLL-TRIGGERED FADE ────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.fade-in.visible { opacity: 1; transform: none; }

/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */
#hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--bg-0);
  position: relative;
  overflow: hidden;
  padding-block: 100px 80px;
}

/* bg grain texture */
.hero-grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px;
  pointer-events: none;
  z-index: 0;
}

/* ambient orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}
.orb-1 {
  width: 520px; height: 520px;
  top: -120px; left: -80px;
  background: radial-gradient(circle, rgba(108,92,231,0.10) 0%, transparent 70%);
}
.orb-2 {
  width: 400px; height: 400px;
  bottom: -60px; right: 10%;
  background: radial-gradient(circle, rgba(0,184,148,0.07) 0%, transparent 70%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 48px;
  display: flex;
  align-items: center;
  gap: 72px;
  width: 100%;
}

/* LEFT */
.hero-left { flex: 1; min-width: 0; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--tx-2);
  background: rgba(108,92,231,0.07);
  border: 1px solid var(--bdr);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 28px;
}
.status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--a-green);
  box-shadow: 0 0 0 3px rgba(74,222,128,0.2);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 3px rgba(74,222,128,0.2); }
  50%      { box-shadow: 0 0 0 6px rgba(74,222,128,0.05); }
}

.hero-headline {
  font-family: var(--f-head);
  font-size: clamp(46px, 6.8vw, 86px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.0;
  margin-bottom: 22px;
  color: var(--tx-1);
}
.hero-headline .line-1 { display: block; }
.hero-headline .line-2 { display: block; }
.hero-headline em {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--a1-light);
}

.hero-role {
  font-family: var(--f-head);
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 500;
  color: var(--tx-2);
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.hero-sub {
  font-family: var(--f-mono);
  font-size: 12.5px;
  color: var(--tx-3);
  letter-spacing: 0.4px;
  margin-bottom: 40px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 52px; }

.hero-stats {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--bdr);
}
.hstat { display: flex; flex-direction: column; gap: 3px; }
.hstat strong {
  font-family: var(--f-head);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--tx-1);
  line-height: 1;
}
.hstat span {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--tx-3);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.hstat-sep {
  width: 1px; height: 36px;
  background: var(--bdr);
  flex-shrink: 0;
}

/* RIGHT — terminal */
.hero-right {
  width: 420px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.terminal {
  background: var(--bg-3);
  border: 1px solid var(--bdr);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-card), 0 0 60px rgba(108,92,231,0.07);
}
.term-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 18px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--bdr);
}
.tb-dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  flex-shrink: 0;
}
.tb-red    { background: #ff5f57; }
.tb-yellow { background: #febc2e; }
.tb-green  { background: #28c840; }
.tb-title {
  font-family: var(--f-mono);
  font-size: 11.5px;
  color: var(--tx-3);
  margin-left: 6px;
}
.term-body {
  padding: 20px 22px;
  font-family: var(--f-mono);
  font-size: 13px;
  line-height: 1.85;
  min-height: 230px;
}
.t-line { display: block; opacity: 0; animation: tLine 0.12s forwards; }
@keyframes tLine { to { opacity: 1; } }
.t-prompt  { color: var(--a1); }
.t-cmd     { color: var(--tx-1); }
.t-out     { color: var(--tx-2); padding-left: 14px; display: block; }
.t-hl      { color: var(--a3); }
.t-cursor  {
  display: inline-block;
  width: 8px; height: 15px;
  background: var(--a1);
  vertical-align: text-bottom;
  margin-left: 2px;
  animation: blink 1.1s step-end infinite;
}
@keyframes blink { 0%,100%{ opacity:1 } 50%{ opacity:0 } }

/* floating chips */
.hero-chip {
  position: absolute;
  font-family: var(--f-mono);
  font-size: 11.5px;
  padding: 6px 14px;
  background: var(--bg-3);
  border: 1px solid var(--bdr);
  border-radius: 999px;
  color: var(--tx-2);
  white-space: nowrap;
  animation: float 4s ease-in-out infinite;
  box-shadow: var(--sh-card);
}
.chip-1 { top: -20px;  right:  30px; animation-delay: 0s;    }
.chip-2 { bottom: 30px; left: -30px; animation-delay: 1.2s;  }
.chip-3 { top:  50%;   right: -28px; animation-delay: 0.6s;  transform: translateY(-50%); }
@keyframes float {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-8px); }
}
.chip-3 { animation-name: floatMid; }
@keyframes floatMid {
  0%,100% { transform: translateY(-50%); }
  50%     { transform: translateY(calc(-50% - 8px)); }
}

/* scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--tx-3);
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  z-index: 1;
}
.scroll-wheel { animation: scrollDown 2s ease-in-out infinite; }
@keyframes scrollDown {
  0%   { cy: 7;  opacity: 1; }
  80%  { cy: 15; opacity: 0; }
  100% { cy: 7;  opacity: 0; }
}

/* hero responsive */
@media (max-width: 1100px) {
  .hero-right { width: 360px; }
  .hero-inner { gap: 48px; }
}
@media (max-width: 900px) {
  .hero-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 48px;
    padding-inline: 24px;
  }
  .hero-right { width: 100%; max-width: 480px; }
  .chip-1,.chip-2,.chip-3 { display: none; }
  .scroll-hint { display: none; }
  #hero { padding-block: 100px 60px; }
}
@media (max-width: 480px) {
  .hero-headline { font-size: 42px; }
  .hero-stats { gap: 16px; }
  .hstat strong { font-size: 22px; }
}

/* ══════════════════════════════════════════
   ABOUT
══════════════════════════════════════════ */
#about { background: var(--bg-1); }
.about-layout {
  display: grid;
  grid-template-columns: 300px 1fr 280px;
  gap: 64px;
  align-items: start;
}
.about-headline h2 {
  font-family: var(--f-head);
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.18;
  color: var(--tx-1);
  position: sticky;
  top: 96px;
}
.about-headline h2 em {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--a1-light);
}
.about-body p {
  color: var(--tx-2);
  font-size: 16px;
  margin-bottom: 18px;
  line-height: 1.8;
}
.about-body p:last-of-type { margin-bottom: 28px; }
.about-body strong { color: var(--tx-1); font-weight: 600; }

.about-socials {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.soc-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--tx-3);
  padding: 7px 14px;
  border: 1px solid var(--bdr);
  border-radius: var(--r-sm);
  transition: color var(--t), border-color var(--t), background var(--t);
}
.soc-link:hover { color: var(--a1); border-color: var(--a1); background: var(--a1-dim); }

.about-card {
  background: var(--bg-3);
  border: 1px solid var(--bdr);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--sh-card);
  position: sticky;
  top: 96px;
}
.ac-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--bdr);
}
.ac-row:last-child { border-bottom: none; }
.ac-row--highlight { background: rgba(108,92,231,0.05); }
.ac-key {
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--tx-3);
}
.ac-val {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--tx-1);
  line-height: 1.4;
}
.ac-val a { color: var(--a1); }
.ac-val a:hover { text-decoration: underline; }
.ac-val.accent { color: var(--a-green); font-family: var(--f-mono); font-size: 12.5px; }

@media (max-width: 1100px) {
  .about-layout { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; gap: 40px; }
  .about-headline { grid-column: 1 / -1; }
  .about-headline h2 { position: static; }
  .about-card { position: static; }
}
@media (max-width: 700px) {
  .about-layout { grid-template-columns: 1fr; gap: 32px; }
  .about-headline { grid-column: 1; }
}

/* ══════════════════════════════════════════
   EXPERIENCE / TIMELINE
══════════════════════════════════════════ */
.timeline { position: relative; padding-left: 32px; }
.timeline::before {
  content: '';
  position: absolute;
  top: 8px; bottom: 8px; left: 6px;
  width: 1px;
  background: linear-gradient(to bottom, var(--a1) 0%, transparent 100%);
  opacity: 0.4;
}
.tl-item { position: relative; margin-bottom: 40px; }
.tl-item:last-child { margin-bottom: 0; }

.tl-marker {
  position: absolute;
  left: -27px;
  top: 22px;
  width: 13px; height: 13px;
  border-radius: 50%;
  border: 2px solid var(--bg-1);
}
.tl-marker.work { background: var(--a1); box-shadow: 0 0 14px rgba(108,92,231,0.35); }
.tl-marker.edu  { background: var(--a3); box-shadow: 0 0 14px rgba(0,184,148,0.35); }

.tl-card {
  background: var(--bg-3);
  border: 1px solid var(--bdr);
  border-radius: var(--r-md);
  padding: 28px 30px;
  transition: border-color var(--t), box-shadow var(--t);
}
.tl-card:hover { border-color: var(--bdr-glow); box-shadow: var(--sh-glow); }

.tl-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.tl-role {
  font-family: var(--f-head);
  font-size: 18px;
  font-weight: 600;
  color: var(--tx-1);
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 5px;
}
.tl-org {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--a1);
  letter-spacing: 0.3px;
}
.tl-period {
  font-family: var(--f-mono);
  font-size: 11.5px;
  color: var(--tx-3);
  white-space: nowrap;
  margin-top: 4px;
  flex-shrink: 0;
}

.tl-list { margin-bottom: 18px; }
.tl-list li {
  font-size: 14.5px;
  color: var(--tx-2);
  line-height: 1.7;
  padding: 4px 0 4px 18px;
  position: relative;
}
.tl-list li::before {
  content: '▸';
  position: absolute;
  left: 0; top: 5px;
  color: var(--a1);
  font-size: 10px;
}
.tl-list li strong { color: var(--tx-1); font-weight: 600; }

.tl-note {
  font-size: 14.5px;
  color: var(--tx-2);
  line-height: 1.7;
}
.tl-note strong { color: var(--tx-1); }

.tl-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.tl-chips span {
  font-family: var(--f-mono);
  font-size: 11px;
  padding: 3px 11px;
  background: var(--bg-2);
  border: 1px solid var(--bdr);
  border-radius: 4px;
  color: var(--tx-3);
  letter-spacing: 0.2px;
}

/* ══════════════════════════════════════════
   PROJECTS
══════════════════════════════════════════ */
#projects { background: var(--bg-1); }

/* FEATURED card */
.project-featured {
  background: var(--bg-3);
  border: 1px solid var(--bdr);
  border-radius: var(--r-lg);
  padding: 36px 40px;
  margin-bottom: 28px;
  transition: border-color var(--t), box-shadow var(--t);
  position: relative;
  overflow: hidden;
}
.project-featured::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--a1) 0%, var(--a3) 100%);
}
.project-featured:hover { border-color: var(--bdr-glow); box-shadow: var(--sh-glow); }

.pf-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}
.pf-number {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--tx-3);
  letter-spacing: 1.5px;
}
.pf-badge {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--a1);
  padding: 3px 10px;
  border: 1px solid rgba(108,92,231,0.35);
  border-radius: 4px;
  background: var(--a1-dim);
}
.pf-body {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  align-items: start;
}
.pf-title {
  font-family: var(--f-head);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--tx-1);
  margin-bottom: 14px;
  line-height: 1.2;
}
.pf-desc {
  font-size: 15px;
  color: var(--tx-2);
  line-height: 1.75;
  margin-bottom: 20px;
}
.pf-list { margin-bottom: 0; }
.pf-list li {
  font-size: 14px;
  color: var(--tx-2);
  line-height: 1.65;
  padding: 4px 0 4px 18px;
  position: relative;
}
.pf-list li::before {
  content: '→';
  position: absolute;
  left: 0; top: 5px;
  color: var(--a1);
  font-size: 11px;
}
.ps-label {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--tx-3);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.ps-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 24px; }
.ps-tags span {
  font-family: var(--f-mono);
  font-size: 11px;
  padding: 4px 12px;
  background: var(--bg-2);
  border: 1px solid var(--bdr);
  border-radius: 5px;
  color: var(--tx-2);
}
.pf-github-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 20px;
  border: 1.5px solid var(--bdr);
  color: var(--tx-2);
  font-family: var(--f-mono);
  font-size: 12.5px;
  border-radius: var(--r-sm);
  transition: color var(--t), border-color var(--t), background var(--t);
}
.pf-github-btn:hover { color: var(--a1); border-color: var(--a1); background: var(--a1-dim); }

/* GRID projects */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.proj-card {
  background: var(--bg-3);
  border: 1px solid var(--bdr);
  border-radius: var(--r-md);
  padding: 28px 30px;
  display: flex;
  flex-direction: column;
  transition: border-color var(--t), box-shadow var(--t), transform var(--t);
}
.proj-card:hover { border-color: var(--bdr-glow); transform: translateY(-4px); box-shadow: var(--sh-glow); }

.pc-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.pc-num {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--tx-3);
  letter-spacing: 1.5px;
}
.pc-gh {
  color: var(--tx-3);
  transition: color var(--t);
}
.pc-gh:hover { color: var(--a1); }

.pc-title {
  font-family: var(--f-head);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--tx-1);
  margin-bottom: 12px;
  line-height: 1.25;
}
.pc-desc {
  font-size: 14px;
  color: var(--tx-2);
  line-height: 1.72;
  margin-bottom: 18px;
}
.pc-list { margin-bottom: 20px; flex: 1; }
.pc-list li {
  font-size: 13.5px;
  color: var(--tx-2);
  line-height: 1.65;
  padding: 3px 0 3px 16px;
  position: relative;
}
.pc-list li::before {
  content: '→';
  position: absolute;
  left: 0; top: 4px;
  color: var(--a1);
  font-size: 11px;
}
.pc-list li strong { color: var(--tx-1); }
.pc-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pc-tags span {
  font-family: var(--f-mono);
  font-size: 11px;
  padding: 3px 10px;
  background: var(--bg-2);
  border: 1px solid var(--bdr);
  border-radius: 4px;
  color: var(--tx-3);
  transition: color var(--t), border-color var(--t);
}
.proj-card:hover .pc-tags span { color: var(--tx-2); border-color: rgba(108,92,231,0.22); }

@media (max-width: 860px) {
  .pf-body { grid-template-columns: 1fr; gap: 28px; }
  .projects-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════
   SKILLS
══════════════════════════════════════════ */
.skills-layout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.skill-col { display: flex; flex-direction: column; gap: 28px; }
.sk-group {
  background: var(--bg-3);
  border: 1px solid var(--bdr);
  border-radius: var(--r-md);
  padding: 22px 24px;
  transition: border-color var(--t);
}
.sk-group:hover { border-color: var(--bdr-glow); }

.sk-head {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--a1);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--bdr);
}
.sk-pills { display: flex; flex-wrap: wrap; gap: 7px; }
.sk-pills span {
  font-family: var(--f-mono);
  font-size: 12px;
  padding: 5px 13px;
  background: var(--bg-2);
  border: 1px solid var(--bdr);
  border-radius: 5px;
  color: var(--tx-2);
  line-height: 1;
  transition: color var(--t), border-color var(--t), background var(--t);
}
.sk-pills span:hover {
  color: var(--a1);
  border-color: rgba(108,92,231,0.35);
  background: var(--a1-dim);
}

@media (max-width: 900px) { .skills-layout { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .skills-layout { grid-template-columns: 1fr; } }

/* ══════════════════════════════════════════
   CONTACT
══════════════════════════════════════════ */
.contact-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 56px;
  align-items: start;
}
.contact-links { display: flex; flex-direction: column; gap: 10px; }

.cl-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-3);
  border: 1px solid var(--bdr);
  border-radius: var(--r-sm);
  transition: border-color var(--t), transform var(--t), background var(--t);
}
.cl-item:hover { border-color: var(--bdr-glow); transform: translateX(5px); background: var(--bg-4); }
.cl-resume { border-color: rgba(108,92,231,0.25); }

.cl-icon {
  width: 40px; height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-2);
  border: 1px solid var(--bdr);
  border-radius: 10px;
  color: var(--a1);
}
.cl-icon svg { width: 18px; height: 18px; }

.cl-label {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--tx-3);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 3px;
}
.cl-value {
  font-size: 14px;
  color: var(--tx-1);
  font-weight: 500;
  line-height: 1.3;
}

/* FORM */
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cf-field { display: flex; flex-direction: column; gap: 7px; }

.cf-field label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--tx-3);
}
.cf-field input,
.cf-field textarea {
  width: 100%;
  background: var(--bg-3);
  border: 1px solid var(--bdr);
  border-radius: var(--r-sm);
  padding: 13px 16px;
  color: var(--tx-1);
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.5;
  outline: none;
  resize: vertical;
  transition: border-color var(--t), box-shadow var(--t), background var(--t);
  -webkit-appearance: none;
}
.cf-field input::placeholder,
.cf-field textarea::placeholder { color: var(--tx-3); }
.cf-field input:focus,
.cf-field textarea:focus {
  border-color: var(--a1);
  background: var(--bg-4);
  box-shadow: 0 0 0 3px rgba(108,92,231,0.10);
}

.cf-submit {
  align-self: flex-start;
  font-family: var(--f-head);
}
.cf-status {
  font-family: var(--f-mono);
  font-size: 12.5px;
  min-height: 20px;
}
.cf-status.success { color: var(--a-green); }
.cf-status.error   { color: var(--a2); }

.spin-icon {
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 960px) {
  .contact-layout { grid-template-columns: 1fr; gap: 40px; }
  .cf-row { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
footer {
  background: var(--bg-0);
  border-top: 1px solid var(--bdr);
  padding: 30px 48px;
}
.footer-inner {
  max-width: 1120px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.foot-logo {
  font-family: var(--f-head);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--tx-1);
}
.foot-copy {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--tx-3);
}
.foot-links { display: flex; gap: 24px; }
.foot-links a {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--tx-3);
  transition: color var(--t);
}
.foot-links a:hover { color: var(--a1); }

@media (max-width: 640px) {
  footer { padding: 24px 24px; }
  .footer-inner { flex-direction: column; align-items: center; text-align: center; }
  .foot-copy { order: 3; }
}
