/* ═══════════════════════════════════════════════════════
   PAVAN SHETTY — Portfolio v3.0
   Premium dark-first design · Glassmorphism · Kinetic UI
═══════════════════════════════════════════════════════ */

/* ── DESIGN TOKENS ──────────────────────────────── */
:root {
  --bg:       #06050b;
  --bg2:      #0c0a14;
  --surface:  #110f1b;
  --surface2: #16132a;
  --glass:    rgba(17, 15, 27, .55);
  --border:   rgba(255,255,255,.06);
  --border-h: rgba(255,255,255,.12);
  --text:     #ede9f8;
  --text-dim: #b8b0d0;
  --muted:    #6e6882;
  --accent:   #8b5cf6;
  --accent2:  #06b6d4;
  --accent3:  #f472b6;
  --success:  #34d399;
  --grad:     linear-gradient(135deg, #8b5cf6 0%, #06b6d4 50%, #f472b6 100%);
  --grad-t:   linear-gradient(90deg, #a78bfa, #22d3ee, #fb7185);
  --glow-v:   0 0 80px rgba(139,92,246,.12);
  --glow-c:   0 0 80px rgba(6,182,212,.10);
  --radius:   16px;
  --radius-s: 10px;
  --radius-xs:6px;
  --nav-h:    72px;
  --ease:     cubic-bezier(.22,1,.36,1);
  --font-body:'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-head:'Outfit', sans-serif;
  --font-mono:'JetBrains Mono','Fira Code', monospace;
  --font-acc: 'Playfair Display', serif;
}

[data-theme="light"] {
  --bg:       #f8f9fa;
  --bg2:      #ffffff;
  --surface:  #f1f3f5;
  --surface2: #e9ecef;
  --glass:    rgba(255, 255, 255, .7);
  --border:   rgba(0,0,0,.08);
  --border-h: rgba(0,0,0,.15);
  --text:     #111827;
  --text-dim: #4b5563;
  --muted:    #6b7280;
  --glow-v:   0 0 40px rgba(139,92,246,.15);
  --glow-c:   0 0 40px rgba(6,182,212,.12);
}

/* ── RESET ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 2rem); }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; font-family: inherit; }
::selection { background: rgba(139,92,246,.35); color: #fff; }

/* ── SCROLLBAR ───────────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent), var(--accent3));
  border-radius: 4px;
}

/* ── NOISE OVERLAY ───────────────────────────────── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
  opacity: .5;
}

/* ── SCROLL PROGRESS ─────────────────────────────── */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: var(--grad-t);
  background-size: 300%;
  animation: gradientSlide 6s ease infinite;
  z-index: 10000;
  border-radius: 0 2px 2px 0;
  box-shadow: 0 0 20px rgba(139,92,246,.4);
}
@keyframes gradientSlide {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ── CUSTOM CURSOR ───────────────────────────────── */
#cur, #cur-r {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%,-50%);
  transition: width .25s var(--ease), height .25s var(--ease), opacity .25s;
}
#cur {
  display: none;
}
#cur-r {
  width: 36px; height: 36px;
  border: 1.5px solid rgba(139,92,246,.5);
  opacity: .5;
  background: radial-gradient(circle, rgba(139,92,246,.1) 0%, transparent 70%);
}
@media (hover: none), (pointer: coarse) {
  #cur, #cur-r { display: none; }
  body { cursor: auto; }
}

/* ── NAVIGATION ──────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  transition: all .4s var(--ease);
}
nav.scrolled {
  background: var(--surface2);
  box-shadow: 0 4px 30px rgba(0,0,0,.1);
}

.logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -.03em;
  background: var(--grad-t);
  background-size: 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientSlide 4s ease infinite;
}

.nav-links {
  display: flex;
  gap: 0;
  list-style: none;
}
.nav-links li a {
  padding: .5rem 1.1rem;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  border-radius: var(--radius-xs);
  transition: color .3s, background .3s;
  position: relative;
}
.nav-links li a:hover,
.nav-links li a.active {
  color: var(--text);
  background: rgba(139,92,246,.08);
}
.nav-links li a.active::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 4px;
  background: var(--accent);
  border-radius: 50%;
}

.nav-r { display: flex; align-items: center; gap: .6rem; }

.btn-sm {
  padding: .55rem 1.2rem;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  color: var(--muted);
  background: transparent;
  border-radius: var(--radius-xs);
  transition: all .3s var(--ease);
}
.btn-sm:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 20px rgba(139,92,246,.15);
}

/* ── NAV HAMBURGER ───────────────────────────────── */
.nav-ham {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}
.nav-ham span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-dim);
  transition: all .4s var(--ease);
  border-radius: 2px;
}
.nav-ham.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-ham.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-ham.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ── MOBILE DRAWER ───────────────────────────────── */
.mob-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 990;
  background: rgba(6,5,11,.97);
  backdrop-filter: blur(40px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s var(--ease);
}
.mob-nav.open { opacity: 1; pointer-events: all; }
.mob-nav a {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--muted);
  transition: color .3s, transform .3s;
  text-transform: lowercase;
}
.mob-nav a:hover { color: var(--text); transform: translateX(8px); }

/* ── HERO ────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + 4rem) clamp(1.5rem, 5vw, 4rem) 4rem;
  position: relative;
  overflow: hidden;
  z-index: 2;
}

/* Orbs */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: .12;
  pointer-events: none;
  will-change: transform;
}
.o1 { width: 600px; height: 600px; background: var(--accent); top: -150px; right: -100px; animation: orbFloat1 18s ease-in-out infinite; }
.o2 { width: 500px; height: 500px; background: var(--accent2); bottom: -100px; left: -80px; animation: orbFloat2 22s ease-in-out infinite; }
.o3 { width: 350px; height: 350px; background: var(--accent3); top: 40%; left: 40%; animation: orbFloat3 25s ease-in-out infinite; }
@keyframes orbFloat1 { 0%, 100% { transform: translate(0,0) scale(1); } 33% { transform: translate(30px, 40px) scale(1.05); } 66% { transform: translate(-20px, 20px) scale(.95); } }
@keyframes orbFloat2 { 0%, 100% { transform: translate(0,0) scale(1); } 50% { transform: translate(40px, -30px) scale(1.08); } }
@keyframes orbFloat3 { 0%, 100% { transform: translate(0,0) scale(1); } 40% { transform: translate(-30px, 50px) scale(1.1); } 80% { transform: translate(20px, -20px) scale(.9); } }

.hero-eyebrow {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: .8rem;
}
.hero-eyebrow::before {
  content: '';
  width: 2.5rem;
  height: 1px;
  background: linear-gradient(90deg, var(--accent2), transparent);
}
.hero-eyebrow .dot {
  width: 6px; height: 6px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(52,211,153,.5);
}
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .5; transform: scale(.8); } }

h1.hero-name {
  font-family: var(--font-head);
  font-size: clamp(3.5rem, 10vw, 7.5rem);
  font-weight: 900;
  line-height: .92;
  letter-spacing: -.045em;
  margin-bottom: 1.5rem;
}
h1.hero-name .line1 { display: block; }
h1.hero-name .line2 {
  display: block;
  background: var(--grad-t);
  background-size: 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientSlide 5s ease infinite;
}

.hero-role {
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: .5rem;
  min-height: 1.4em;
}
.typed-cursor {
  display: inline-block;
  width: 2px; height: .9em;
  background: var(--accent);
  margin-left: 3px;
  animation: blink .7s step-start infinite;
  vertical-align: middle;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.hero-sub {
  font-family: var(--font-acc);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.ctas { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-p {
  padding: .9rem 2.2rem;
  background: var(--grad);
  background-size: 200%;
  color: #fff;
  border: none;
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: var(--radius-s);
  transition: all .4s var(--ease);
  position: relative;
  overflow: hidden;
}
.btn-p::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,.15), transparent);
  transform: translateX(-100%);
  transition: transform .5s;
}
.btn-p:hover::before { transform: translateX(100%); }
.btn-p:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(139,92,246,.3); }

.btn-g {
  padding: .9rem 2.2rem;
  background: transparent;
  color: var(--text-dim);
  border: 1px solid var(--border);
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: var(--radius-s);
  transition: all .3s var(--ease);
}
.btn-g:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: inset 0 0 20px rgba(139,92,246,.06), 0 0 20px rgba(139,92,246,.1);
}

.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  font-size: .6rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}
.scroll-line {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2.5s ease-in-out infinite;
}
@keyframes scrollPulse { 0%, 100% { opacity: .3; transform: scaleY(1); } 50% { opacity: 1; transform: scaleY(1.3); } }

/* ── STATS STRIP ─────────────────────────────────── */
.stats-strip {
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 3rem 2rem;
  position: relative;
  z-index: 2;
  flex-wrap: wrap;
}
.stat-card {
  text-align: center;
  padding: 2rem 2.5rem;
  background: var(--glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-width: 160px;
  transition: all .4s var(--ease);
}
.stat-card:hover {
  border-color: var(--border-h);
  transform: translateY(-4px);
  box-shadow: var(--glow-v);
}
.stat-num {
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 800;
  background: var(--grad-t);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: .4rem;
}
.stat-label {
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── SECTIONS ────────────────────────────────────── */
section {
  padding: clamp(4rem, 8vw, 7rem) clamp(1.5rem, 5vw, 4rem);
  position: relative;
  z-index: 2;
}
.inner { max-width: 1200px; margin: 0 auto; }

.s-label {
  font-family: var(--font-mono);
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .75rem;
  display: flex;
  align-items: center;
  gap: .75rem;
}
.s-label::after {
  content: '';
  width: 2.5rem;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.s-title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.1;
  margin-bottom: 3rem;
}
.hl {
  background: var(--grad-t);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── ABOUT ───────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 4rem;
  align-items: start;
}

.about-photo-wrap { position: relative; }
.about-photo-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: var(--radius);
  transition: transform .5s var(--ease);
}
.about-photo-wrap:hover .about-photo-frame { transform: scale(1.02); }
.about-photo-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(.85) contrast(1.05);
  transition: filter .5s;
}
.about-photo-wrap:hover .about-photo-frame img { filter: saturate(1) contrast(1.08); }
.about-photo-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(139,92,246,.2) 0%, rgba(244,114,182,.1) 100%);
  mix-blend-mode: color;
}

.photo-accent {
  position: absolute;
  top: -10px; left: -10px;
  width: 60px; height: 60px;
  border-top: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
  border-radius: 4px 0 0 0;
  pointer-events: none;
  transition: all .4s var(--ease);
}
.photo-accent2 {
  position: absolute;
  bottom: -10px; right: -10px;
  width: 60px; height: 60px;
  border-bottom: 2px solid var(--accent3);
  border-right: 2px solid var(--accent3);
  border-radius: 0 0 4px 0;
  pointer-events: none;
  transition: all .4s var(--ease);
}
.about-photo-wrap:hover .photo-accent { transform: translate(-4px, -4px); }
.about-photo-wrap:hover .photo-accent2 { transform: translate(4px, 4px); }

.about-text p {
  color: var(--text-dim);
  line-height: 1.9;
  margin-bottom: 1.2rem;
  font-size: .88rem;
}
.about-text p strong { color: var(--text); font-weight: 600; }

/* ── EXPERIENCE TIMELINE ─────────────────────────── */
.exp-list { margin-top: 2rem; display: flex; flex-direction: column; gap: 0; }
.exp-item {
  padding: 1.2rem 0;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .5rem;
  align-items: start;
  transition: all .3s var(--ease);
}
.exp-item:last-child { border-bottom: 1px solid var(--border); }
.exp-item:hover { padding-left: .8rem; background: rgba(139,92,246,.03); }
.exp-role { font-size: .88rem; font-weight: 600; color: var(--text); margin-bottom: .2rem; }
.exp-org { font-size: .75rem; color: var(--accent); font-weight: 500; }
.exp-date {
  font-family: var(--font-mono);
  font-size: .68rem;
  color: var(--muted);
  text-align: right;
  margin-top: .15rem;
}

/* ── SKILL TAGS ──────────────────────────────────── */
.skills-row { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 2rem; }
.stag {
  padding: .3rem .8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  font-size: .65rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  transition: all .3s var(--ease);
  cursor: default;
}
.stag:hover {
  border-color: var(--accent2);
  color: var(--accent2);
  box-shadow: 0 0 16px rgba(6,182,212,.15);
  transform: translateY(-2px);
}

/* ── RESUME ──────────────────────────────────────── */
#resume { background: var(--bg2); }
.resume-inner { max-width: 900px; margin: 0 auto; }
.res-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 2rem;
}
.res-card {
  background: var(--surface);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: all .4s var(--ease);
}
.res-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}
.res-card:hover::before { transform: scaleX(1); }
.res-card:hover { background: var(--bg); }
.res-date {
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .12em;
  color: var(--accent);
  margin-bottom: 1rem;
  text-transform: uppercase;
}
.res-title {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: .3rem;
  letter-spacing: -.02em;
}
.res-org {
  font-size: .82rem;
  color: var(--accent3);
  margin-bottom: 1rem;
  font-weight: 600;
}
.res-desc { font-size: .82rem; color: var(--muted); line-height: 1.7; }
.resume-btns {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

/* ── PROJECTS ────────────────────────────────────── */
#projects { background: var(--bg2); }
.proj-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.2rem;
}
.proj-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: all .4s var(--ease);
}
.proj-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--grad);
  opacity: 0;
  transition: opacity .4s;
}
.proj-card:hover::before { opacity: 1; }
.proj-card:hover {
  border-color: var(--border-h);
  transform: translateY(-4px);
  box-shadow: 0 16px 50px rgba(0,0,0,.3), var(--glow-v);
}

.pnum {
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .12em;
  color: var(--accent);
  margin-bottom: 1.2rem;
  opacity: .7;
}
.ptitle {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: .6rem;
  letter-spacing: -.02em;
}
.pdesc { font-size: .8rem; color: var(--muted); line-height: 1.7; margin-bottom: 1.5rem; }
.pmeta { display: flex; justify-content: space-between; align-items: center; }
.plang {
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent2);
  display: flex;
  align-items: center;
  gap: .4rem;
}
.plang::before {
  content: '';
  width: 5px; height: 5px;
  background: var(--accent2);
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(6,182,212,.4);
}
.plink {
  font-size: .68rem;
  font-weight: 500;
  color: var(--muted);
  transition: color .3s;
  letter-spacing: .04em;
}
.plink:hover { color: var(--accent); }

/* ── CREATIVE ────────────────────────────────────── */
.cr-intro {
  font-family: var(--font-acc);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1rem, 2vw, 1.35rem);
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 3rem;
  line-height: 1.8;
}
.cr-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}
.cr-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: all .4s var(--ease);
}
.cr-item:hover {
  border-color: var(--border-h);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,.25);
}

/* ── SVG HOBBY ICONS ─────────────────────────────── */
.cr-icon-svg {
  display: block;
  width: 52px;
  height: 52px;
  margin-bottom: 1rem;
  transition: transform .4s var(--ease), filter .4s;
  filter: drop-shadow(0 0 8px rgba(139,92,246,.15));
}
.cr-item:hover .cr-icon-svg {
  transform: scale(1.18) rotate(-6deg);
  filter: drop-shadow(0 0 16px rgba(139,92,246,.3));
}
.cr-icon-svg svg {
  width: 100%;
  height: 100%;
}

/* SVG Animations */
.svg-pulse {
  animation: svgPulse 2.5s ease-in-out infinite;
}
@keyframes svgPulse {
  0%, 100% { opacity: 1; transform-origin: center; }
  50% { opacity: .5; }
}

.svg-spin {
  animation: svgSpin 8s linear infinite;
  transform-origin: center;
}
@keyframes svgSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.svg-draw {
  stroke-dasharray: 120;
  stroke-dashoffset: 120;
  animation: svgDraw 2.5s ease forwards;
}
.cr-item:hover .svg-draw {
  animation: svgDraw 1.2s ease forwards;
}
@keyframes svgDraw {
  to { stroke-dashoffset: 0; }
}

.cr-name {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: .3rem;
  letter-spacing: -.01em;
}
.cr-desc { font-size: .76rem; color: var(--muted); line-height: 1.65; }
.cr-corner {
  position: absolute;
  top: 1.1rem; right: 1.1rem;
  width: 20px; height: 20px;
  border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
  opacity: .4;
  border-radius: 0 4px 0 0;
  transition: all .3s;
}
.cr-item:hover .cr-corner { border-color: var(--accent); opacity: .7; }

/* ── CONTACT ─────────────────────────────────────── */
#contact { background: var(--bg2); }
.ct-inner { max-width: 700px; margin: 0 auto; text-align: center; }
.ct-tag {
  font-family: var(--font-acc);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  color: var(--muted);
  margin-bottom: 3rem;
  line-height: 1.7;
}
.email-big {
  font-family: var(--font-head);
  font-size: clamp(1rem, 3vw, 1.6rem);
  font-weight: 700;
  background: var(--grad-t);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 2.5rem;
  transition: all .3s;
}
.ct-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .8rem;
  margin-bottom: 2rem;
}
.ct-link {
  padding: .75rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: .5rem;
  transition: all .3s var(--ease);
}
.ct-link:hover {
  border-color: var(--accent);
  color: var(--text);
  background: rgba(139,92,246,.06);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(139,92,246,.12);
}
.ct-avail {
  font-size: .72rem;
  color: var(--muted);
  font-family: var(--font-acc);
  font-style: italic;
}

/* ── FOOTER ──────────────────────────────────────── */
footer {
  padding: 2rem clamp(1.5rem, 5vw, 3rem);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .68rem;
  letter-spacing: .06em;
  color: var(--muted);
  z-index: 2;
  position: relative;
}
.fg {
  background: var(--grad-t);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

/* ── REVEAL ANIMATIONS ───────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.vis {
  opacity: 1;
  transform: none;
}
.reveal:nth-child(2)  { transition-delay: .08s; }
.reveal:nth-child(3)  { transition-delay: .16s; }
.reveal:nth-child(4)  { transition-delay: .24s; }
.reveal:nth-child(5)  { transition-delay: .32s; }
.reveal:nth-child(6)  { transition-delay: .4s; }

/* Hero entrance */
.hero-enter { opacity: 0; transform: translateY(40px); }
.hero-enter.active {
  opacity: 1;
  transform: none;
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.hero-enter:nth-child(2) { transition-delay: .15s; }
.hero-enter:nth-child(3) { transition-delay: .25s; }
.hero-enter:nth-child(4) { transition-delay: .35s; }
.hero-enter:nth-child(5) { transition-delay: .45s; }
.hero-enter:nth-child(6) { transition-delay: .55s; }
.hero-enter:nth-child(7) { transition-delay: .65s; }

/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 768px) {
  nav { padding: 0 1.25rem; }
  .nav-links { display: none; }
  .nav-ham { display: flex; }
  .mob-nav { display: flex; }
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .cr-grid { grid-template-columns: 1fr; }
  .cr-item:nth-child(1), .cr-item:nth-child(4) { grid-column: span 1; }
  .stats-strip { gap: 1rem; }
  .stat-card { min-width: 120px; padding: 1.5rem; }
  .stat-num { font-size: 1.6rem; }
  footer { flex-direction: column; gap: .5rem; text-align: center; }
  .proj-grid { grid-template-columns: 1fr; }
  .res-grid { grid-template-columns: 1fr; }
}
/* ── VIEW TRANSITIONS (INK SPLASH) ───────────────── */
::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}
::view-transition-old(root) {
  z-index: 1;
}
::view-transition-new(root) {
  z-index: 2;
  filter: url('#ink-bleed');
}
