/* ============================================================
   VARIABLES
   ============================================================ */
:root {
  --bg:          #07070f;
  --bg2:         #0d0d1c;
  --bg3:         #111127;
  --card:        rgba(255,255,255,0.04);
  --card-hover:  rgba(255,255,255,0.07);
  --border:      rgba(255,255,255,0.08);
  --border-hi:   rgba(124,58,237,0.45);

  --purple:      #7c3aed;
  --purple-lt:   #a855f7;
  --pink:        #f472b6;
  --cyan:        #06b6d4;
  --green:       #22c55e;

  --grad:        linear-gradient(135deg, #7c3aed, #a855f7, #f472b6);
  --grad-h:      linear-gradient(135deg, #6d28d9, #9333ea, #ec4899);

  --t1:  #f1f5f9;
  --t2:  #94a3b8;
  --t3:  #64748b;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 28px;

  --ease: cubic-bezier(0.4,0,0.2,1);
  --tr:   all 0.3s var(--ease);

  --nav-h: 68px;
  --max-w: 1160px;

  --font:  'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono:  'Fira Code', 'Cascadia Code', monospace;
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; font-size:16px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--t1);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a  { text-decoration:none; color:inherit; transition: var(--tr); }
ul { list-style:none; }
img { max-width:100%; display:block; }
button { cursor:pointer; border:none; background:none; font-family:var(--font); }
input, textarea { font-family:var(--font); }

::selection { background: rgba(124,58,237,0.4); color:#fff; }
::-webkit-scrollbar { width:5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--purple); border-radius:3px; }

/* ============================================================
   UTILITIES
   ============================================================ */
.container { max-width:var(--max-w); margin:0 auto; padding:0 24px; }
.section   { padding:110px 0; }
.section-header { text-align:center; margin-bottom:64px; }

.section-tag {
  display:inline-block;
  font-size:.75rem; font-weight:600; letter-spacing:.14em; text-transform:uppercase;
  color: var(--purple-lt);
  background: rgba(168,85,247,.1);
  border: 1px solid rgba(168,85,247,.22);
  padding:4px 18px; border-radius:100px; margin-bottom:14px;
}
.section-title {
  font-size: clamp(1.9rem,4vw,2.8rem);
  font-weight:800; letter-spacing:-.03em; line-height:1.15;
}
.section-subtitle {
  margin-top:14px; color:var(--t2); font-size:1.05rem;
  max-width:480px; margin-left:auto; margin-right:auto;
}
.gradient-text {
  background: var(--grad);
  -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text;
}
.hidden { display:none !important; }

/* Offset anchor links so they clear the fixed navbar */
section[id] { scroll-margin-top: var(--nav-h); }

/* Scroll-animate */
[data-animate] { opacity:0; transform:translateY(28px); transition:opacity .7s var(--ease), transform .7s var(--ease); }
[data-animate].in { opacity:1; transform:translateY(0); }
[data-animate]:nth-child(2) { transition-delay:.1s; }
[data-animate]:nth-child(3) { transition-delay:.18s; }
[data-animate]:nth-child(4) { transition-delay:.26s; }
[data-animate]:nth-child(5) { transition-delay:.34s; }
[data-animate]:nth-child(6) { transition-delay:.42s; }
[data-animate]:nth-child(7) { transition-delay:.5s; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  display:inline-flex; align-items:center; gap:8px;
  padding:12px 28px; background:var(--grad); color:#fff;
  font-weight:600; font-size:.92rem; border-radius:var(--r-md);
  box-shadow:0 4px 20px rgba(124,58,237,.35);
  transition: var(--tr);
}
.btn-primary:hover { transform:translateY(-2px); box-shadow:0 8px 28px rgba(124,58,237,.55); background:var(--grad-h); }

.btn-secondary {
  display:inline-flex; align-items:center; gap:8px;
  padding:12px 28px; background:transparent; color:var(--t1);
  font-weight:600; font-size:.92rem; border-radius:var(--r-md);
  border:1px solid var(--border); backdrop-filter:blur(10px);
  transition: var(--tr);
}
.btn-secondary:hover { border-color:var(--purple); color:var(--purple-lt); background:rgba(124,58,237,.08); transform:translateY(-2px); }

.btn-ghost {
  display:inline-flex; align-items:center; gap:8px;
  padding:11px 24px; background:transparent; color:var(--t2);
  font-weight:500; font-size:.88rem; border-radius:var(--r-md);
  border:1px solid var(--border); transition: var(--tr);
}
.btn-ghost:hover { color:var(--t1); border-color:var(--border-hi); background:rgba(255,255,255,.04); }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position:fixed; top:0; left:0; right:0; z-index:900;
  height:var(--nav-h); display:flex; align-items:center;
  transition: var(--tr);
}
.navbar.scrolled {
  background:rgba(7,7,15,.88);
  backdrop-filter:blur(20px); -webkit-backdrop-filter:blur(20px);
  border-bottom:1px solid var(--border);
  box-shadow:0 4px 32px rgba(0,0,0,.4);
}
.nav-container {
  max-width:var(--max-w); width:100%; margin:0 auto; padding:0 24px;
  display:flex; align-items:center; gap:8px;
}
.nav-logo {
  font-family:var(--mono); font-size:1.25rem; font-weight:600;
  display:flex; align-items:center; flex-shrink:0; margin-right:auto;
}
.logo-bracket { color:var(--purple); font-size:1.35rem; }

.nav-links {
  display:flex; align-items:center; gap:2px;
}
.nav-link {
  font-size:.875rem; font-weight:500; color:var(--t2);
  padding:6px 13px; border-radius:var(--r-sm); position:relative;
  transition: var(--tr);
}
.nav-link:hover, .nav-link.active { color:var(--t1); }
.nav-link.active::after {
  content:''; position:absolute; bottom:-3px; left:50%; transform:translateX(-50%);
  width:4px; height:4px; background:var(--purple); border-radius:50%;
}
.btn-hire {
  display:inline-flex; align-items:center;
  padding:8px 20px; background:var(--grad); color:#fff;
  font-weight:600; font-size:.85rem; border-radius:var(--r-md);
  margin-left:16px; flex-shrink:0;
  box-shadow:0 3px 14px rgba(124,58,237,.3);
  transition: var(--tr);
}
.btn-hire:hover { transform:translateY(-1px); box-shadow:0 6px 20px rgba(124,58,237,.48); }

.hamburger { display:none; flex-direction:column; gap:5px; padding:4px; margin-left:12px; }
.hamburger span { display:block; width:23px; height:2px; background:var(--t1); border-radius:2px; transition:var(--tr); }
.hamburger.open span:nth-child(1) { transform:rotate(45deg) translate(5px,5px); }
.hamburger.open span:nth-child(2) { opacity:0; }
.hamburger.open span:nth-child(3) { transform:rotate(-45deg) translate(5px,-5px); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position:relative; min-height:100vh;
  display:flex; align-items:center; justify-content:center;
  padding:calc(var(--nav-h) + 60px) 24px 100px;
  overflow:hidden; flex-direction:column;
}
#hero-canvas {
  position:absolute; inset:0; width:100%; height:100%;
  pointer-events:none; z-index:0;
}
.hero-glow {
  position:absolute; border-radius:50%;
  pointer-events:none; z-index:1;
  animation:glow-pulse 7s ease-in-out infinite;
}
.hero-glow-1 {
  width:600px; height:600px; top:-150px; right:-100px;
  background:radial-gradient(circle, rgba(124,58,237,.18) 0%, transparent 70%);
}
.hero-glow-2 {
  width:500px; height:500px; bottom:-80px; left:-80px;
  background:radial-gradient(circle, rgba(6,182,212,.1) 0%, transparent 70%);
  animation-delay:-3.5s;
}
@keyframes glow-pulse {
  0%,100% { transform:scale(1); opacity:.8; }
  50%      { transform:scale(1.12); opacity:1; }
}

.hero-inner {
  position:relative; z-index:2;
  max-width:var(--max-w); width:100%;
  display:flex; align-items:center; gap:60px;
}

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

.hero-badge {
  display:inline-flex; align-items:center; gap:8px;
  padding:5px 16px; border-radius:100px;
  background:rgba(6,182,212,.1); border:1px solid rgba(6,182,212,.25);
  font-size:.78rem; font-weight:500; color:var(--cyan);
  margin-bottom:24px;
  animation: fadeUp .8s var(--ease) both;
}
.badge-dot {
  width:7px; height:7px; background:var(--green);
  border-radius:50%; animation:blink 2s ease infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.25} }

.hero-name {
  font-size:clamp(2.4rem,5.5vw,4rem);
  font-weight:900; letter-spacing:-.035em; line-height:1.06; margin-bottom:18px;
  animation: fadeUp .8s var(--ease) .1s both;
}
.hero-role {
  font-size:clamp(1rem,2.2vw,1.3rem); font-weight:500;
  color:var(--t2); margin-bottom:22px; min-height:2.2em;
  animation: fadeUp .8s var(--ease) .18s both;
}
.typing-text { color:var(--purple-lt); font-weight:600; }
.cursor { color:var(--purple); animation:cursor-blink .8s step-end infinite; }
@keyframes cursor-blink { 0%,100%{opacity:1} 50%{opacity:0} }

.hero-desc {
  font-size:1.03rem; color:var(--t2); line-height:1.75;
  margin-bottom:34px; max-width:520px;
  animation: fadeUp .8s var(--ease) .26s both;
}
.highlight { color:var(--t1); font-weight:500; }

.hero-cta {
  display:flex; align-items:center; gap:14px; flex-wrap:wrap;
  margin-bottom:36px;
  animation: fadeUp .8s var(--ease) .34s both;
}

.hero-socials {
  display:flex; align-items:center; gap:10px;
  animation: fadeUp .8s var(--ease) .42s both;
}
.social-link {
  display:flex; align-items:center; justify-content:center;
  width:40px; height:40px; border-radius:var(--r-md);
  background:var(--card); border:1px solid var(--border);
  color:var(--t2); transition:var(--tr);
}
.social-link svg { width:17px; height:17px; }
.social-link:hover { color:var(--purple-lt); border-color:var(--purple); background:rgba(124,58,237,.1); transform:translateY(-3px); box-shadow:0 8px 20px rgba(124,58,237,.2); }

/* CODE BLOCK — RIGHT */
.hero-code-block {
  flex-shrink:0; width:360px;
  background:rgba(10,10,25,.85);
  border:1px solid var(--border);
  border-radius:var(--r-lg);
  overflow:hidden;
  box-shadow:0 20px 60px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.04);
  animation: fadeRight .8s var(--ease) .35s both;
}
@keyframes fadeRight { from{opacity:0;transform:translateX(30px)} to{opacity:1;transform:none} }

.code-header {
  display:flex; align-items:center; gap:6px;
  padding:11px 16px;
  background:rgba(255,255,255,.03); border-bottom:1px solid var(--border);
}
.code-dot { width:12px; height:12px; border-radius:50%; }
.code-dot.red    { background:#ff5f57; }
.code-dot.yellow { background:#ffbd2e; }
.code-dot.green  { background:#28ca41; }
.code-filename { font-family:var(--mono); font-size:.72rem; color:var(--t3); margin-left:6px; }

.code-content {
  padding:22px 24px;
  font-family:var(--mono); font-size:.82rem; line-height:1.9;
  overflow:auto;
}
.ck { color:#c792ea; }
.cv { color:#82aaff; }
.cp { color:#f07178; }
.cs { color:#c3e88d; }
.cb { color:#ff9cac; }

/* SCROLL INDICATOR */
.scroll-indicator {
  position:absolute; bottom:36px; left:50%; transform:translateX(-50%);
  z-index:2; display:flex; flex-direction:column; align-items:center; gap:7px;
  color:var(--t3); font-size:.72rem; letter-spacing:.1em; text-transform:uppercase;
  animation: fadeUp 1s var(--ease) 1.1s both;
}
.scroll-mouse {
  width:23px; height:36px; border:2px solid rgba(255,255,255,.12);
  border-radius:12px; display:flex; justify-content:center; padding-top:5px;
}
.scroll-wheel {
  width:3px; height:7px; background:var(--purple-lt);
  border-radius:2px; animation:scroll-anim 2s ease-in-out infinite;
}
@keyframes scroll-anim { 0%{opacity:1;transform:translateY(0)} 100%{opacity:0;transform:translateY(10px)} }
@keyframes fadeUp { from{opacity:0;transform:translateY(22px)} to{opacity:1;transform:none} }

/* ============================================================
   ABOUT
   ============================================================ */
.about { background:var(--bg2); }
.about-grid {
  display:grid; grid-template-columns:1fr 1.4fr; gap:80px; align-items:center;
}

/* Image col */
.about-img-col { display:flex; justify-content:center; }
.about-img-wrapper {
  position:relative; width:400px; height:400px;
  display:flex; align-items:center; justify-content:center;
}
.avatar-circle {
  width:305px; height:305px; border-radius:50%;
  background:var(--grad);
  display:flex; align-items:center; justify-content:center;
  position:relative; z-index:2;
  box-shadow:0 0 60px rgba(124,58,237,.4);
  overflow:hidden;
}
/* .avatar-initials {
  font-size:3rem; font-weight:800; color:#fff; letter-spacing:-.04em;
} */
.profile-pic {
  width:100%; height:100%;
  border-radius:50%;
  object-fit:cover; object-position:center top;
  display:block;
}
.avatar-ring {
  position:absolute; border-radius:50%;
  border:1px solid rgba(124,58,237,.25);
  animation:ring-spin linear infinite;
}
.r1 { width:220px; height:220px; animation-duration:12s; }
.r2 { width:255px; height:255px; animation-duration:18s; animation-direction:reverse; border-color:rgba(168,85,247,.15); }
.r3 { width:285px; height:285px; animation-duration:25s; border-color:rgba(244,114,182,.1); }
@keyframes ring-spin { from{transform:rotate(0)} to{transform:rotate(360deg)} }

.floating-badge {
  position:absolute; display:flex; align-items:center; gap:8px;
  background:rgba(13,13,28,.9); border:1px solid var(--border-hi);
  backdrop-filter:blur(12px); border-radius:var(--r-md);
  padding:10px 16px; box-shadow:0 8px 24px rgba(0,0,0,.4);
  z-index:3;
}
.badge-exp { top:10px; right:-20px; }
.badge-proj { bottom:20px; left:-20px; }
.fb-num { font-size:1.4rem; font-weight:800; color:var(--purple-lt); line-height:1; }
.fb-lbl { font-size:.72rem; color:var(--t2); line-height:1.3; }

/* Text col */
.about-heading { font-size:clamp(1.5rem,3vw,2.1rem); font-weight:800; letter-spacing:-.03em; margin-bottom:20px; }
.about-p { color:var(--t2); font-size:.97rem; margin-bottom:14px; line-height:1.75; }
.about-p strong { color:var(--t1); font-weight:600; }

.about-stats {
  display:flex; align-items:center; gap:0;
  background:var(--card); border:1px solid var(--border);
  border-radius:var(--r-md); padding:20px 24px; margin:28px 0;
}
.stat-item { flex:1; text-align:center; }
.stat-num { display:block; font-size:2rem; font-weight:800; color:var(--purple-lt); line-height:1; }
.stat-lbl { font-size:.72rem; color:var(--t3); text-transform:uppercase; letter-spacing:.1em; margin-top:4px; display:block; }
.stat-div { width:1px; height:40px; background:var(--border); }

.about-actions { display:flex; gap:12px; flex-wrap:wrap; margin-top:28px; }

/* ============================================================
   EXPERIENCE
   ============================================================ */
.experience { background:var(--bg); }

.timeline { position:relative; max-width:760px; margin:0 auto; padding-left:30px; }
.timeline::before {
  content:''; position:absolute; left:6px; top:0; bottom:0;
  width:2px; background:linear-gradient(to bottom, var(--purple), var(--pink), transparent);
  border-radius:2px;
}

.tl-item {
  position:relative; margin-bottom:44px;
}
.tl-dot {
  position:absolute; left:-30px; top:22px;
  width:14px; height:14px; border-radius:50%;
  background:var(--bg); border:2px solid var(--purple);
  display:flex; align-items:center; justify-content:center;
  transition:var(--tr);
}
.tl-dot-inner {
  width:5px; height:5px; border-radius:50%; background:var(--purple-lt);
  transition:var(--tr);
}
.tl-item:hover .tl-dot { border-color:var(--pink); box-shadow:0 0 12px rgba(244,114,182,.4); }
.tl-item:hover .tl-dot-inner { background:var(--pink); }

.tl-card {
  background:var(--card); border:1px solid var(--border);
  border-radius:var(--r-lg); padding:24px 28px;
  transition:var(--tr);
}
.tl-card:hover { border-color:var(--border-hi); background:var(--card-hover); transform:translateX(4px); }

.tl-badge {
  display:inline-flex; align-items:center; gap:5px;
  font-size:.7rem; font-weight:600; letter-spacing:.1em; text-transform:uppercase;
  color:var(--green); background:rgba(34,197,94,.1);
  border:1px solid rgba(34,197,94,.2); padding:2px 10px; border-radius:100px;
  margin-bottom:10px;
}
.tl-role { font-size:1.08rem; font-weight:700; margin-bottom:4px; }
.tl-company { font-size:.88rem; color:var(--purple-lt); font-weight:500; margin-bottom:8px; }
.tl-period {
  display:inline-flex; align-items:center; gap:6px;
  font-size:.78rem; color:var(--t3); margin-bottom:12px;
}
.tl-desc { font-size:.9rem; color:var(--t2); line-height:1.7; margin-bottom:14px; }
.tl-tags { display:flex; gap:8px; flex-wrap:wrap; }
.tag {
  font-size:.72rem; font-weight:500; color:var(--purple-lt);
  background:rgba(168,85,247,.1); border:1px solid rgba(168,85,247,.2);
  padding:3px 10px; border-radius:100px;
}

/* ============================================================
   SKILLS
   ============================================================ */
.skills { background:var(--bg2); }

.skills-grid {
  display:grid; grid-template-columns:1fr 1fr; gap:24px; margin-bottom:48px;
}
.skill-cat {
  background:var(--card); border:1px solid var(--border);
  border-radius:var(--r-lg); padding:28px;
  transition:var(--tr);
}
.skill-cat:hover { border-color:var(--border-hi); }
.skill-cat-title {
  font-size:.95rem; font-weight:700; margin-bottom:22px;
  display:flex; align-items:center; gap:8px;
}
.cat-emoji { font-size:1.1rem; }

.skill-bars { display:flex; flex-direction:column; gap:16px; }
.skill-bar { }
.skill-meta {
  display:flex; justify-content:space-between;
  font-size:.83rem; margin-bottom:6px;
}
.skill-meta span:first-child { color:var(--t1); font-weight:500; }
.skill-pct { color:var(--t3); font-size:.75rem; }
.learning-label { color:var(--cyan) !important; font-size:.75rem !important; }

.skill-track {
  height:6px; background:rgba(255,255,255,.07); border-radius:3px; overflow:hidden;
}
.skill-fill {
  height:100%; width:0; border-radius:3px;
  background:var(--grad); transition:width 1.2s var(--ease);
}
.skill-fill.learning {
  background:linear-gradient(90deg, var(--cyan), #818cf8);
  animation:shimmer 2s ease infinite;
}
@keyframes shimmer {
  0%,100% { opacity:1; }
  50%      { opacity:.6; }
}

.skill-cat-ai { grid-column:span 1; }
.ai-note {
  margin-top:20px; padding:14px 16px;
  background:rgba(6,182,212,.06); border:1px solid rgba(6,182,212,.18);
  border-radius:var(--r-md); font-size:.82rem; color:var(--t2); line-height:1.65;
  display:flex; gap:10px; align-items:flex-start;
}
.ai-pulse {
  flex-shrink:0; width:8px; height:8px; border-radius:50%;
  background:var(--cyan); margin-top:4px;
  animation:blink 1.5s ease infinite;
}

/* TECH STACK PILLS */
.tech-stack {
  background:var(--card); border:1px solid var(--border);
  border-radius:var(--r-lg); padding:28px 32px;
}
.ts-title {
  font-size:.85rem; font-weight:700; color:var(--t2);
  text-transform:uppercase; letter-spacing:.12em; margin-bottom:18px;
}
.tech-pills { display:flex; flex-wrap:wrap; gap:10px; }
.pill {
  font-size:.8rem; font-weight:500; color:var(--t1);
  background:rgba(255,255,255,.06); border:1px solid var(--border);
  padding:6px 16px; border-radius:100px; transition:var(--tr);
}
.pill:hover { background:rgba(124,58,237,.15); border-color:var(--purple); color:var(--purple-lt); transform:translateY(-2px); }

/* ============================================================
   PROJECTS
   ============================================================ */
.projects { background:var(--bg); }

.projects-grid {
  display:grid; grid-template-columns:repeat(3,1fr); gap:24px;
}
.proj-card-wide { grid-column:span 3; display:flex; flex-direction:row; }
.proj-card-wide .proj-preview { width:280px; flex-shrink:0; border-radius:var(--r-lg) 0 0 var(--r-lg); height:auto; align-self:stretch; min-height:200px; }
.proj-card-wide .proj-body { flex:1; }

.proj-card {
  background:var(--card); border:1px solid var(--border);
  border-radius:var(--r-lg); overflow:hidden;
  transition:var(--tr); display:flex; flex-direction:column;
}
.proj-card:hover { border-color:var(--border-hi); transform:translateY(-5px); box-shadow:0 20px 50px rgba(0,0,0,.4); }

.proj-preview {
  position:relative; height:200px; overflow:hidden;
  background:var(--bg3);
}
.proj-img {
  width:100%; height:100%;
  object-fit:cover; object-position:top center;
  display:block;
  transition:transform .55s var(--ease);
}
.proj-card:hover .proj-img { transform:scale(1.06); }

.proj-overlay {
  position:absolute; inset:0;
  background:linear-gradient(to top, rgba(0,0,0,.75) 0%, rgba(0,0,0,.35) 60%, transparent 100%);
  display:flex; align-items:center; justify-content:center;
  opacity:0; transition:var(--tr);
}
.proj-card:hover .proj-overlay { opacity:1; }
.overlay-link {
  font-size:.85rem; font-weight:600; color:#fff;
  background:var(--grad); padding:9px 22px; border-radius:var(--r-md);
  transition:var(--tr);
}
.overlay-link:hover { transform:scale(1.04); }

.proj-body { padding:20px 22px; display:flex; flex-direction:column; flex:1; }
.proj-top  { display:flex; align-items:center; gap:8px; margin-bottom:10px; }
.proj-title { font-size:1rem; font-weight:700; flex:1; }
.enterprise-badge {
  font-size:.68rem; font-weight:600; color:var(--cyan);
  background:rgba(6,182,212,.1); border:1px solid rgba(6,182,212,.22);
  padding:2px 9px; border-radius:100px;
}
.proj-icons { display:flex; gap:6px; margin-left:auto; }
.proj-icon-link {
  display:flex; align-items:center; justify-content:center;
  width:30px; height:30px; border-radius:var(--r-sm);
  background:var(--card); border:1px solid var(--border);
  color:var(--t3); transition:var(--tr);
}
.proj-icon-link:hover { color:var(--purple-lt); border-color:var(--purple); }

.proj-desc { font-size:.85rem; color:var(--t2); line-height:1.7; margin-bottom:14px; flex:1; }
.proj-tags { display:flex; flex-wrap:wrap; gap:6px; margin-top:auto; }
.ptag {
  font-size:.7rem; font-weight:500;
  color:var(--t3); background:rgba(255,255,255,.05);
  border:1px solid var(--border); padding:3px 10px; border-radius:100px;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact { background:var(--bg2); }

.contact-grid {
  display:grid; grid-template-columns:1fr 1.4fr; gap:56px; align-items:start;
}

.contact-info { display:flex; flex-direction:column; gap:16px; }
.contact-card {
  display:flex; align-items:center; gap:16px;
  background:var(--card); border:1px solid var(--border);
  border-radius:var(--r-md); padding:18px 20px;
  transition:var(--tr);
}
.contact-card:hover { border-color:var(--border-hi); }
.contact-icon {
  width:42px; height:42px; border-radius:var(--r-md);
  background:rgba(124,58,237,.12); border:1px solid rgba(124,58,237,.2);
  display:flex; align-items:center; justify-content:center;
  color:var(--purple-lt); flex-shrink:0;
}
.contact-icon svg { width:18px; height:18px; }
.contact-card h4 { font-size:.75rem; text-transform:uppercase; letter-spacing:.1em; color:var(--t3); margin-bottom:3px; }
.contact-card a, .contact-card span { font-size:.9rem; color:var(--t1); font-weight:500; }
.contact-card a:hover { color:var(--purple-lt); }
.avail-pill {
  display:inline-flex; align-items:center; gap:6px;
  font-size:.78rem; color:var(--green);
  background:rgba(34,197,94,.1); border:1px solid rgba(34,197,94,.2);
  padding:3px 10px; border-radius:100px;
}
.avail-pill::before { content:'●'; font-size:.5rem; }

.contact-btns { display:flex; gap:12px; flex-wrap:wrap; margin-top:8px; }

/* FORM */
.contact-form-wrap {
  background:var(--card); border:1px solid var(--border);
  border-radius:var(--r-xl); padding:36px;
}
.contact-form { display:flex; flex-direction:column; gap:20px; }
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:16px; }

.form-group { display:flex; flex-direction:column; gap:6px; }
.form-group label { font-size:.78rem; font-weight:600; color:var(--t2); text-transform:uppercase; letter-spacing:.1em; }
.form-group input,
.form-group textarea {
  padding:12px 16px; background:rgba(255,255,255,.04);
  border:1px solid var(--border); border-radius:var(--r-md);
  color:var(--t1); font-size:.9rem; transition:var(--tr);
  outline:none; resize:none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color:var(--t3); }
.form-group input:focus,
.form-group textarea:focus { border-color:var(--purple); background:rgba(124,58,237,.06); box-shadow:0 0 0 3px rgba(124,58,237,.12); }

.btn-submit {
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  padding:13px 28px; background:var(--grad); color:#fff;
  font-weight:600; font-size:.95rem; border-radius:var(--r-md);
  box-shadow:0 4px 20px rgba(124,58,237,.35);
  transition:var(--tr);
}
.btn-submit:hover { transform:translateY(-2px); box-shadow:0 8px 28px rgba(124,58,237,.55); background:var(--grad-h); }

.form-success {
  display:flex; align-items:center; gap:10px;
  padding:14px 18px; background:rgba(34,197,94,.1);
  border:1px solid rgba(34,197,94,.25); border-radius:var(--r-md);
  font-size:.88rem; color:var(--green); font-weight:500;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background:var(--bg); border-top:1px solid var(--border); padding:48px 0; text-align:center; }
.footer-logo { display:inline-flex; align-items:center; font-family:var(--mono); font-size:1.15rem; font-weight:600; margin-bottom:12px; }
.footer-tagline { font-size:.88rem; color:var(--t2); margin-bottom:16px; }
.footer-links { display:flex; justify-content:center; gap:24px; margin-bottom:20px; }
.footer-links a { font-size:.85rem; color:var(--t3); transition:var(--tr); }
.footer-links a:hover { color:var(--purple-lt); }
.footer-copy { font-size:.78rem; color:var(--t3); }

/* BACK TO TOP */
.back-to-top {
  position:fixed; bottom:28px; right:28px; z-index:800;
  width:42px; height:42px; border-radius:var(--r-md);
  background:var(--grad); color:#fff;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 4px 20px rgba(124,58,237,.4);
  opacity:0; pointer-events:none; transition:var(--tr);
  transform:translateY(12px);
}
.back-to-top.show { opacity:1; pointer-events:all; transform:none; }
.back-to-top:hover { transform:translateY(-3px); box-shadow:0 8px 28px rgba(124,58,237,.55); }
.back-to-top svg { width:18px; height:18px; }

/* ============================================================
   PRESENTATIONS & PUBLIC SPEAKING
   ============================================================ */
.presentations { background: var(--bg2); }

.pres-layout {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 72px;
  align-items: start;
}

/* ── Image column ── */
.pres-img-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  position: sticky;
  top: calc(var(--nav-h) + 32px);
}

.pres-img-frame {
  position: relative;
  width: 100%;
  max-width: 310px;
  padding-bottom: 18px;
}

/* dot grid behind image */
/* .pf-bg-dots {
  position: absolute;
  inset: -28px;
  background-image: radial-gradient(rgba(124,58,237,0.22) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse 78% 78% at 50% 50%, transparent 42%, black 100%);
  -webkit-mask-image: radial-gradient(ellipse 78% 78% at 50% 50%, transparent 42%, black 100%);
} */

/* ambient glow behind image */
.pf-bg-glow {
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,58,237,0.18) 0%, transparent 68%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  pointer-events: none;
  z-index: 0;
  animation: pf-glow-breathe 5s ease-in-out infinite;
}

@keyframes pf-glow-breathe {
  0%, 100% { opacity: 0.65; transform: translate(-50%,-55%) scale(1);    }
  50%       { opacity: 1;    transform: translate(-50%,-55%) scale(1.12); }
}

/* wrapper holding image + corners */
.pf-frame-wrap {
  position: relative;
  z-index: 1;
}

/* L-shaped corner brackets */
.pf-corners {
  position: absolute;
  inset: -3px;
  pointer-events: none;
  z-index: 3;
}

.pfc {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 2px solid rgba(124,58,237,0.55);
  transition: border-color 0.4s ease;
}
.pfc.pfc-tl { top:0; left:0; border-right:none; border-bottom:none; border-radius:3px 0 0 0; }
.pfc.pfc-tr { top:0; right:0; border-left:none; border-bottom:none; border-radius:0 3px 0 0; }
.pfc.pfc-bl { bottom:0; left:0; border-right:none; border-top:none; border-radius:0 0 0 3px; }
.pfc.pfc-br { bottom:0; right:0; border-left:none; border-top:none; border-radius:0 0 3px 0; }

.pres-img-frame:hover .pfc { border-color: rgba(168,85,247,0.9); }

/* main image container */
.pf-img-wrap {
  position: relative;
  z-index: 1;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  width: 100%;
  box-shadow:
    0 0 0 1px rgba(124,58,237,0.2),
    0 18px 46px rgba(0,0,0,0.6);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

.pres-img-frame:hover .pf-img-wrap {
  transform: translateY(-6px);
  box-shadow:
    0 0 0 1px rgba(124,58,237,0.5),
    0 0 24px rgba(124,58,237,0.28),
    0 26px 54px rgba(0,0,0,0.7);
}

.pf-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.5s var(--ease), opacity 0.32s ease;
}

.pres-img-frame:hover .pf-img-wrap img { transform: scale(1.04); }

.pf-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7,7,15,0.52) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}

/* floating glassmorphism badge */
.pf-badge {
  position: absolute;
  bottom: 0;
  left: 18px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  background: rgba(13,13,28,0.88);
  border: 1px solid rgba(124,58,237,0.38);
  border-radius: var(--r-md);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--t1);
  box-shadow: 0 8px 28px rgba(0,0,0,0.45), 0 0 12px rgba(124,58,237,0.12);
  white-space: nowrap;
  pointer-events: none;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.pres-img-frame:hover .pf-badge {
  border-color: rgba(168,85,247,0.58);
  box-shadow: 0 10px 32px rgba(0,0,0,0.5), 0 0 18px rgba(124,58,237,0.22);
}

.pf-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
  animation: blink 2s ease infinite;
}

.pf-badge-text { color: var(--purple-lt); }

/* floating particles */
.pf-particle {
  position: absolute;
  border-radius: 50%;
  background: var(--purple-lt);
  pointer-events: none;
  z-index: 2;
  animation: pf-float 4s ease-in-out infinite;
}
.pf-p1 { width:5px; height:5px; top:12%; right:-18px; opacity:0.45; animation-delay:0s; }
.pf-p2 { width:4px; height:4px; top:44%; right:-23px; opacity:0.3;  animation-delay:1.5s; }
.pf-p3 { width:6px; height:6px; bottom:24%; right:-14px; opacity:0.55; animation-delay:2.8s; background:var(--pink); }
.pf-p4 { width:4px; height:4px; top:30%; left:-16px; opacity:0.35; animation-delay:0.9s; }

@keyframes pf-float {
  0%, 100% { transform: translateY(0px);  }
  50%       { transform: translateY(-10px); }
}

/* navigation dots */
.pf-nav {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
}

.pf-nav-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 0;
  cursor: pointer;
  transition: all 380ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pf-nav-dot.active {
  width: 22px;
  border-radius: 4px;
  background: var(--purple-lt);
  border-color: var(--purple);
  box-shadow: 0 0 8px rgba(168,85,247,0.5);
}

/* ── Content column ── */
.pres-content-col {
  display: flex;
  flex-direction: column;
}

.pres-hl-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.pres-hl-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  background: rgba(124,58,237,0.07);
  border: 1px solid rgba(124,58,237,0.2);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--t2);
  transition: var(--tr);
}

.pres-hl-badge:hover {
  background: rgba(124,58,237,0.15);
  border-color: rgba(124,58,237,0.42);
  color: var(--t1);
  transform: translateY(-2px);
}

/* presentation detail card */
.pres-detail {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 36px;
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.28s ease, transform 0.28s ease, border-color 0.35s ease;
}

.pres-detail:hover { border-color: var(--border-hi); }
.pres-detail.switching { opacity: 0; transform: translateX(10px); }

.pres-title {
  font-size: clamp(1.1rem, 2.4vw, 1.55rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.3;
  margin-bottom: 12px;
  color: var(--t1);
}

.pres-event {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 0.9rem;
  color: var(--purple-lt);
  font-weight: 500;
  line-height: 1.5;
}

.pres-event svg { flex-shrink: 0; margin-top: 2px; }

.pres-meta-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}

.pres-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--t3);
}

.pres-meta-item svg { flex-shrink: 0; }

.pres-desc {
  font-size: 0.93rem;
  color: var(--t2);
  line-height: 1.75;
  margin-bottom: 22px;
}

.pres-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pres-tag {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--t3);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 100px;
  transition: var(--tr);
}

.pres-tag:hover {
  color: var(--purple-lt);
  border-color: rgba(124,58,237,0.4);
  background: rgba(124,58,237,0.08);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width:1024px) {
  .hero-inner { gap:40px; }
  .hero-code-block { width:310px; }
  .about-grid { gap:50px; }
  /* Compact nav so 7 items fit on tablets */
  .nav-link { padding:5px 9px; font-size:.83rem; }
  .btn-hire  { padding:7px 15px; font-size:.82rem; margin-left:10px; }
}

@media (max-width:900px) {
  .projects-grid { grid-template-columns:1fr 1fr; }
  .proj-card-wide { grid-column:span 2; flex-direction:column; }
  .proj-card-wide .proj-preview { width:100%; border-radius:var(--r-lg) var(--r-lg) 0 0; }
  .skills-grid { grid-template-columns:1fr; }
  .pres-layout { grid-template-columns:1fr; gap:40px; }
  .pres-img-col { position:static; max-width:320px; margin:0 auto; width:100%; }
  .pres-img-frame { max-width:280px; }
}

@media (max-width:768px) {
  :root { --nav-h:60px; }
  .section { padding:80px 0; }
  .section-header { margin-bottom:44px; }

  /* Nav mobile — slide-down dropdown */
  .btn-hire  { display:none; }
  .hamburger { display:flex; }
  .nav-links {
    position:fixed;
    top: var(--nav-h); left:0; right:0;
    flex-direction:column; align-items:stretch;
    gap:0;
    padding:6px 0 14px;
    background:rgba(7,7,15,.96);
    backdrop-filter:blur(24px); -webkit-backdrop-filter:blur(24px);
    border-bottom:1px solid var(--border);
    box-shadow:0 14px 40px rgba(0,0,0,.55);
    opacity:0; transform:translateY(-8px);
    pointer-events:none;
    transition:opacity .28s var(--ease), transform .28s var(--ease);
    z-index:899;
  }
  .nav-links.open { opacity:1; transform:translateY(0); pointer-events:all; }
  .nav-links li { width:100%; }
  .nav-link {
    display:block; width:100%;
    font-size:.95rem; padding:13px 24px;
    border-radius:0;
    border-bottom:1px solid rgba(255,255,255,.04);
  }
  .nav-links li:last-child .nav-link { border-bottom:none; }
  .nav-link.active {
    color:var(--purple-lt);
    background:rgba(124,58,237,.08);
    border-left:3px solid var(--purple);
    padding-left:21px;
  }
  .nav-link.active::after { display:none; }

  /* Hero */
  .hero { padding-bottom:80px; }
  .hero-inner { flex-direction:column; gap:40px; text-align:center; }
  .hero-cta, .hero-socials { justify-content:center; }
  .hero-code-block { width:100%; max-width:380px; }
  .hero-desc { margin-left:auto; margin-right:auto; }

  /* About */
  .about-grid { grid-template-columns:1fr; gap:40px; }
  .about-img-col { order:-1; }
  .about-img-wrapper { margin:0 auto; }

  /* Timeline */
  .timeline { padding-left:24px; }

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

  /* Projects */
  .projects-grid { grid-template-columns:1fr; }
  .proj-card-wide { grid-column:span 1; flex-direction:column; }
  .proj-card-wide .proj-preview { width:100%; border-radius:var(--r-lg) var(--r-lg) 0 0; }

  /* Contact */
  .contact-grid { grid-template-columns:1fr; }
  .form-row { grid-template-columns:1fr; }
  .contact-form-wrap { padding:24px 20px; }
}

@media (max-width:480px) {
  .pres-img-frame { max-width:240px; }
  .pres-detail { padding:22px 18px; }
  .pres-hl-badge { font-size:0.74rem; padding:6px 12px; }
  .about-stats { flex-direction:column; gap:16px; padding:20px; }
  .stat-div { width:80px; height:1px; }
  .about-img-wrapper { width:240px; height:240px; }
  .avatar-circle { width:150px; height:150px; }
  .avatar-initials { font-size:2.4rem; }
  .r1 { width:185px; height:185px; }
  .r2 { width:210px; height:210px; }
  .r3 { width:235px; height:235px; }
  .badge-exp { top:0; right:-10px; }
  .badge-proj { bottom:10px; left:-10px; }
}

/* ── Mobile menu backdrop ─────────────────────────────────── */
#menu-backdrop {
  position:fixed; inset:0;
  background:rgba(0,0,0,.45);
  z-index:897;
  opacity:0; pointer-events:none;
  transition:opacity .28s ease;
}
#menu-backdrop.show { opacity:1; pointer-events:all; }

/* ── Toast notifications ──────────────────────────────────── */
.portfolio-toast {
  position:fixed; bottom:28px; right:28px; z-index:1100;
  display:flex; align-items:center; gap:10px;
  padding:14px 20px;
  background:rgba(10,10,22,.95);
  border:1px solid var(--border); border-radius:var(--r-md);
  backdrop-filter:blur(20px); -webkit-backdrop-filter:blur(20px);
  box-shadow:0 8px 32px rgba(0,0,0,.5);
  font-size:.88rem; font-weight:500; color:var(--t1);
  max-width:360px;
  opacity:0; transform:translateY(16px);
  transition:opacity .35s var(--ease), transform .35s var(--ease);
  pointer-events:none;
}
.portfolio-toast.show { opacity:1; transform:translateY(0); pointer-events:all; }
.portfolio-toast svg { flex-shrink:0; }
.portfolio-toast.toast-success { border-color:rgba(34,197,94,.35); }
.portfolio-toast.toast-success svg { color:#4ade80; }
.portfolio-toast.toast-error { border-color:rgba(239,68,68,.35); }
.portfolio-toast.toast-error svg { color:#f87171; }

/* ── Cursor glow ──────────────────────────────────────────── */
#cursor-glow {
  position:fixed;
  top:0; left:0;
  width:420px; height:420px;
  border-radius:50%;
  background:radial-gradient(circle at center,
    rgba(139,92,246,.18)  0%,
    rgba(124,58,237,.07) 38%,
    rgba(109,40,217,.02) 60%,
    transparent          70%
  );
  pointer-events:none;
  z-index:9998;
  mix-blend-mode:screen;
  will-change:transform;
  opacity:0;
  filter:blur(2px);
  transition:opacity .6s ease;
}
#cursor-glow.idle {
  animation:cursor-glow-pulse 2.8s ease-in-out infinite;
}
@keyframes cursor-glow-pulse {
  0%,100% { opacity:1; }
  50%      { opacity:.42; }
}
/* Disable on touch / small screens */
@media (hover:none),(pointer:coarse),(max-width:1023px) {
  #cursor-glow { display:none !important; }
}
