/* ══════════════════════════════════════════════════════════════════════
   Ravi Ranjan Kumar — Premium Portfolio CSS
   Theme: Dark analytics / glassmorphism / data dashboard aesthetic
   Fonts: Poppins (headings) · Inter (body) · JetBrains Mono (code)
   ══════════════════════════════════════════════════════════════════════ */

/* ── Variables ─────────────────────────────────────────────────────── */
:root {
  --bg:         #070d1a;
  --bg2:        #0c1529;
  --bg3:        #111e35;
  --glass:      rgba(255,255,255,0.035);
  --glass-b:    rgba(255,255,255,0.07);
  --accent:     #3b82f6;
  --accent2:    #06b6d4;
  --gold:       #f59e0b;
  --green:      #10b981;
  --purple:     #8b5cf6;
  --red:        #f43f5e;
  --text:       #e2e8f0;
  --text2:      #94a3b8;
  --text3:      #64748b;
  --border:     rgba(255,255,255,0.08);
  --radius:     14px;
  --shadow:     0 8px 32px rgba(0,0,0,0.4);
  --trans:      0.3s ease;
}

/* ── Reset ─────────────────────────────────────────────────────────── */
*,*::before,*::after { box-sizing:border-box; margin:0; padding:0; }
html { scroll-behavior:smooth; }
body { font-family:'Inter',system-ui,sans-serif; background:var(--bg); color:var(--text); line-height:1.65; overflow-x:hidden; }
a { color:inherit; text-decoration:none; }
img { display:block; max-width:100%; }
ul { list-style:none; }

/* ── Canvas background ─────────────────────────────────────────────── */
.bg-canvas { position:fixed; inset:0; z-index:0; pointer-events:none; opacity:.45; }

/* ── Scrollbar ─────────────────────────────────────────────────────── */
::-webkit-scrollbar { width:6px; }
::-webkit-scrollbar-track { background:var(--bg); }
::-webkit-scrollbar-thumb { background:var(--accent); border-radius:3px; }

/* ══ NAVBAR ══════════════════════════════════════════════════════════ */
.navbar {
  position:fixed; top:0; left:0; right:0; z-index:900;
  background:rgba(7,13,26,0.85);
  backdrop-filter:blur(18px);
  border-bottom:1px solid var(--border);
  transition:var(--trans);
}
.navbar.scrolled { background:rgba(7,13,26,0.97); }

.nav-container {
  max-width:1100px; margin:0 auto; padding:0 24px;
  display:flex; align-items:center; justify-content:space-between;
  height:62px;
}

.nav-logo {
  font-family:'Poppins',sans-serif; font-size:20px; font-weight:900;
  color:var(--text); letter-spacing:1px;
}
.logo-b { color:var(--accent); }

.nav-links {
  display:flex; align-items:center; gap:4px;
}

.nav-links li a {
  font-size:13.5px; font-weight:500; color:var(--text2);
  padding:6px 12px; border-radius:8px;
  transition:color var(--trans), background var(--trans);
}
.nav-links li a:hover { color:var(--text); background:var(--glass); }
.nav-links li a.active { color:var(--accent); }

.nav-cta {
  background:var(--accent) !important;
  color:#fff !important;
  padding:8px 18px !important;
  border-radius:8px !important;
  font-weight:600 !important;
  transition:background var(--trans), transform var(--trans) !important;
}
.nav-cta:hover { background:#2563eb !important; transform:translateY(-1px) !important; }

.nav-toggle {
  display:none; background:none; border:none; cursor:pointer;
  flex-direction:column; gap:5px; padding:4px;
}
.nav-toggle span {
  display:block; width:22px; height:2px;
  background:var(--text); border-radius:2px; transition:var(--trans);
}

/* ══ HERO ════════════════════════════════════════════════════════════ */
.hero {
  position:relative; min-height:100vh;
  display:flex; flex-direction:column;
  align-items:center; justify-content:center;
  padding:80px 24px 60px;
  overflow:hidden;
  background:radial-gradient(ellipse 80% 60% at 50% 0%, rgba(59,130,246,.12) 0%, transparent 70%),
             radial-gradient(ellipse 60% 40% at 80% 80%, rgba(6,182,212,.08) 0%, transparent 60%),
             var(--bg);
  z-index:1;
}

/* Floating analytics deco cards */
.hero-deco { position:absolute; inset:0; pointer-events:none; z-index:0; }

.deco-card {
  position:absolute;
  background:rgba(255,255,255,0.04);
  border:1px solid var(--border);
  backdrop-filter:blur(12px);
  border-radius:12px;
  padding:14px 16px;
  font-size:12px;
  color:var(--text2);
  animation:float 6s ease-in-out infinite;
}

.dc1 { top:18%; left:4%; width:180px; animation-delay:0s; }
.dc2 { top:28%; right:5%; width:140px; animation-delay:1.5s; }
.dc3 { bottom:24%; left:5%; width:170px; animation-delay:0.8s; }
.dc4 { bottom:20%; right:4%; width:150px; animation-delay:2.2s; }

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

.dc-label { font-size:10px; text-transform:uppercase; letter-spacing:.7px; color:var(--text3); margin-bottom:8px; }

.dc-bars { display:flex; flex-direction:column; gap:5px; }
.dc-bar  { height:5px; border-radius:3px; }
.dc-metric { font-size:14px; font-weight:700; margin-top:8px; }

.dc-donut-wrap { position:relative; width:60px; height:60px; margin:4px auto; }
.dc-donut      { width:100%; height:100%; }
.dc-donut-num  { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; font-size:13px; font-weight:800; color:var(--accent); }

.dc-code { font-family:'JetBrains Mono',monospace; font-size:10.5px; line-height:1.8; }
.c-kw    { color:var(--accent); font-weight:600; }

.dc-big  { font-size:28px; font-weight:900; text-align:center; margin:6px 0; }
.dc-tag  { font-size:11px; text-align:center; }

/* Hero content */
.hero-content { position:relative; z-index:1; text-align:center; max-width:720px; }

.hero-badge {
  display:inline-flex; align-items:center; gap:8px;
  background:rgba(16,185,129,.12);
  border:1px solid rgba(16,185,129,.35);
  color:#6ee7b7; padding:6px 18px; border-radius:20px;
  font-size:12.5px; font-weight:600; letter-spacing:.4px;
  margin-bottom:22px;
}
.hb-dot {
  width:8px; height:8px; border-radius:50%;
  background:#10b981;
  box-shadow:0 0 8px #10b981;
  animation:pulse-dot 1.5s ease infinite;
}
@keyframes pulse-dot { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.6;transform:scale(.8)} }

.profile-ring-wrap {
  position:relative; display:inline-block;
  margin-bottom:22px;
}
.profile-pic {
  width:140px; height:140px; border-radius:50%;
  object-fit:cover;
  border:3px solid var(--accent);
  box-shadow:0 0 0 6px rgba(59,130,246,.15), var(--shadow);
  position:relative; z-index:1;
}
.profile-ring {
  position:absolute; border-radius:50%;
  border:1px solid rgba(59,130,246,.25);
  animation:spin-ring 12s linear infinite;
}
.r1 { inset:-12px; }
.r2 { inset:-24px; animation-direction:reverse; animation-duration:20s; border-color:rgba(6,182,212,.15); }
@keyframes spin-ring { from{transform:rotate(0deg)} to{transform:rotate(360deg)} }

.hero-name {
  font-family:'Poppins',sans-serif;
  font-size:clamp(30px,5vw,52px);
  font-weight:900; letter-spacing:-1px;
  line-height:1.1; margin-bottom:14px;
  background:linear-gradient(135deg,#fff 40%,var(--accent2));
  -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text;
}

.hero-typed-line {
  font-family:'Poppins',sans-serif;
  font-size:clamp(14px,2.5vw,20px);
  font-weight:600; color:var(--gold);
  min-height:30px; margin-bottom:16px;
}
.typed-cur { animation:blink .8s step-end infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

.hero-desc {
  font-size:15px; color:var(--text2); max-width:560px;
  margin:0 auto 20px; line-height:1.75;
}
.hero-desc em { color:var(--accent); font-style:normal; }

.hero-meta-row {
  display:flex; flex-wrap:wrap; justify-content:center;
  gap:16px; font-size:13px; color:var(--text3);
  margin-bottom:26px;
}
.hero-meta-row i { color:var(--accent); margin-right:5px; }

/* Buttons */
.btn {
  display:inline-flex; align-items:center; gap:8px;
  padding:12px 26px; border-radius:10px;
  font-size:14px; font-weight:700; cursor:pointer;
  font-family:'Inter',sans-serif; letter-spacing:.2px;
  transition:all var(--trans); border:2px solid transparent;
}
.btn-primary  { background:var(--accent); color:#fff; border-color:var(--accent); }
.btn-primary:hover  { background:#2563eb; border-color:#2563eb; transform:translateY(-3px); box-shadow:0 8px 24px rgba(59,130,246,.4); }
.btn-secondary{ background:var(--glass); color:var(--text); border-color:var(--border); backdrop-filter:blur(8px); }
.btn-secondary:hover{ border-color:var(--accent); color:var(--accent); transform:translateY(-3px); }
.btn-ghost    { background:transparent; color:var(--text2); border-color:rgba(255,255,255,.2); }
.btn-ghost:hover{ border-color:var(--gold); color:var(--gold); transform:translateY(-3px); }

.hero-btns  { display:flex; gap:12px; justify-content:center; flex-wrap:wrap; margin-bottom:24px; }

.hero-socials {
  display:flex; justify-content:center; gap:14px;
}
.hero-socials a {
  width:40px; height:40px; border-radius:50%;
  background:var(--glass); border:1px solid var(--border);
  display:flex; align-items:center; justify-content:center;
  font-size:16px; color:var(--text2);
  transition:all var(--trans);
}
.hero-socials a:hover { background:var(--accent); border-color:var(--accent); color:#fff; transform:translateY(-3px); }

.scroll-hint {
  position:absolute; bottom:28px; left:50%; transform:translateX(-50%);
  display:flex; flex-direction:column; align-items:center; gap:8px;
  color:var(--text3); font-size:11px; letter-spacing:.5px; z-index:1;
}
.scroll-mouse {
  width:22px; height:36px; border:2px solid var(--text3);
  border-radius:11px; display:flex; justify-content:center; padding-top:6px;
}
.scroll-wheel {
  width:4px; height:8px; background:var(--accent);
  border-radius:2px; animation:scroll-w 1.5s ease infinite;
}
@keyframes scroll-w { 0%,100%{transform:translateY(0);opacity:1} 60%{transform:translateY(10px);opacity:0} }

/* ══ STATS STRIP ═════════════════════════════════════════════════════ */
.stats-strip {
  position:relative; z-index:1;
  background:linear-gradient(90deg,rgba(59,130,246,.12),rgba(6,182,212,.1),rgba(59,130,246,.12));
  border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);
  display:flex; flex-wrap:wrap; justify-content:center;
}

.stat-item {
  padding:20px 36px; text-align:center;
  border-right:1px solid var(--border);
  display:flex; flex-direction:column; align-items:center; gap:3px;
}
.stat-item:last-child { border-right:none; }

.si-icon { font-size:18px; color:var(--accent); margin-bottom:2px; }
.si-num  { font-family:'Poppins',sans-serif; }

.stat-num { font-size:32px; font-weight:900; color:var(--gold); }
.si-sfx   { font-size:22px; font-weight:800; color:var(--gold); }
.si-lbl   { font-size:10.5px; color:var(--text3); letter-spacing:.6px; text-transform:uppercase; }

/* ══ SECTIONS ════════════════════════════════════════════════════════ */
.section { position:relative; z-index:1; padding:90px 24px; }
.section-dark { background:var(--bg2); }

.container { max-width:1060px; margin:0 auto; }

.sec-hdr { text-align:center; margin-bottom:48px; }
.sec-eye { font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:2px; color:var(--accent); display:block; margin-bottom:8px; }
.sec-title {
  font-family:'Poppins',sans-serif;
  font-size:clamp(22px,4vw,36px);
  font-weight:800; color:var(--text);
  position:relative; display:inline-block;
}
.sec-title::after {
  content:''; display:block; width:50px; height:3px;
  background:linear-gradient(90deg,var(--accent),var(--gold));
  border-radius:2px; margin:10px auto 0;
}
.sec-sub { color:var(--text2); font-size:15px; margin-top:10px; }

/* Reveal animation */
.reveal { opacity:0; transform:translateY(28px); transition:opacity .65s ease,transform .65s ease; }
.reveal.visible { opacity:1; transform:translateY(0); }

/* ══ ABOUT ═══════════════════════════════════════════════════════════ */
.about-grid { display:grid; grid-template-columns:1fr 280px; gap:48px; align-items:start; }

.about-text p { margin-bottom:15px; font-size:15px; color:var(--text2); line-height:1.8; }
.about-text strong { color:var(--text); }

.about-chips { display:flex; flex-wrap:wrap; gap:10px; margin-top:20px; }
.chip {
  display:inline-flex; align-items:center; gap:7px;
  background:var(--glass); border:1px solid var(--border);
  color:var(--text2); padding:6px 14px; border-radius:20px;
  font-size:12.5px; font-weight:500;
  transition:all var(--trans);
}
.chip:hover { border-color:var(--accent); color:var(--accent); }
.chip i { color:var(--accent); }

.about-info-col { display:flex; flex-direction:column; gap:12px; }

.info-card {
  display:flex; align-items:flex-start; gap:14px;
  background:var(--glass); border:1px solid var(--border);
  border-left:3px solid var(--accent);
  border-radius:var(--radius); padding:14px 16px;
  transition:border-color var(--trans), transform var(--trans);
}
.info-card:hover { border-left-color:var(--gold); transform:translateX(4px); }
.info-card > i { font-size:18px; color:var(--accent); margin-top:2px; flex-shrink:0; }
.info-card strong { font-size:12px; color:var(--text); display:block; margin-bottom:3px; font-weight:700; }
.info-card p { font-size:12.5px; color:var(--text2); }
.info-card a { color:var(--accent); }

/* ══ EXPERIENCE TIMELINE ══════════════════════════════════════════════ */
.timeline { position:relative; padding-left:32px; }
.timeline::before {
  content:''; position:absolute; left:11px; top:6px; bottom:6px;
  width:2px;
  background:linear-gradient(to bottom,var(--gold),var(--accent),var(--purple),var(--bg3));
  border-radius:2px;
}

.tl-item  { position:relative; margin-bottom:32px; }
.tl-dot   { position:absolute; left:-27px; top:20px; color:var(--accent); font-size:14px; }
.tl-dot-current { color:var(--gold); animation:pulse-dot 1.5s ease infinite; }

.tl-card {
  background:var(--glass); border:1px solid var(--border);
  border-radius:var(--radius); padding:26px 28px;
  backdrop-filter:blur(8px);
  transition:border-color var(--trans), transform var(--trans), box-shadow var(--trans);
}
.tl-card:hover { transform:translateY(-4px); border-color:rgba(59,130,246,.35); box-shadow:0 12px 40px rgba(0,0,0,.35); }

.tl-current { border-left:3px solid var(--gold); background:rgba(245,158,11,.04); }

.tl-head { display:flex; justify-content:space-between; align-items:flex-start; flex-wrap:wrap; gap:10px; margin-bottom:16px; }
.tl-left h3 { font-family:'Poppins',sans-serif; font-size:17px; font-weight:700; color:var(--text); margin-bottom:5px; }

.tl-now {
  display:inline-flex; align-items:center; gap:6px;
  background:rgba(16,185,129,.12); border:1px solid rgba(16,185,129,.3);
  color:#34d399; font-size:11px; font-weight:700;
  padding:2px 10px; border-radius:12px; margin-bottom:6px;
}
.tl-now i { font-size:8px; animation:pulse-dot 1.5s ease infinite; }

.tl-co, .tl-client {
  display:flex; align-items:center; gap:7px; flex-wrap:wrap;
  font-size:13px; color:var(--text2); margin-bottom:2px;
}
.tl-client { font-style:italic; color:var(--text3); }
.tl-logo { height:20px; width:auto; object-fit:contain; display:inline; vertical-align:middle; border-radius:3px; }

.tl-date {
  font-size:12px; font-weight:600; color:var(--accent);
  background:rgba(59,130,246,.1); border:1px solid rgba(59,130,246,.2);
  padding:5px 13px; border-radius:12px; white-space:nowrap;
  display:flex; align-items:center; gap:6px;
}

.tl-list { padding:0; }
.tl-list li {
  position:relative; padding-left:16px;
  margin-bottom:8px; font-size:13.5px; color:var(--text2); line-height:1.65;
}
.tl-list li::before { content:'▸'; position:absolute; left:0; top:1px; color:var(--accent); font-size:11px; }
.tl-list li strong { color:var(--text); }

.tl-tags { display:flex; flex-wrap:wrap; gap:8px; margin-top:14px; }
.tl-tags span {
  font-size:11px; font-weight:600; color:var(--accent2);
  background:rgba(6,182,212,.08); border:1px solid rgba(6,182,212,.2);
  padding:3px 10px; border-radius:12px;
}

/* ══ SKILLS ══════════════════════════════════════════════════════════ */
.skills-grid { display:grid; grid-template-columns:1fr 1fr; gap:24px; }

.skill-block {
  background:var(--glass); border:1px solid var(--border);
  border-radius:var(--radius); padding:26px;
  backdrop-filter:blur(8px);
  transition:border-color var(--trans), transform var(--trans);
}
.skill-block:hover { border-color:rgba(59,130,246,.3); transform:translateY(-3px); }

.sb-head { display:flex; align-items:center; gap:12px; margin-bottom:18px; padding-bottom:12px; border-bottom:1px solid var(--border); }
.sb-head i { font-size:18px; color:var(--accent); }
.sb-head h3 { font-family:'Poppins',sans-serif; font-size:15px; font-weight:700; color:var(--text); }

.sk-chips { display:flex; flex-wrap:wrap; gap:10px; }
.sk-chip {
  display:inline-flex; align-items:center; gap:7px;
  background:rgba(255,255,255,.04); border:1px solid var(--border);
  color:var(--text2); padding:7px 14px; border-radius:20px;
  font-size:12.5px; font-weight:500;
  transition:all var(--trans); cursor:default;
}
.sk-chip:hover { background:var(--accent); border-color:var(--accent); color:#fff; transform:translateY(-2px); box-shadow:0 5px 16px rgba(59,130,246,.25); }
.sk-chip img { width:18px; height:18px; object-fit:contain; }
.sk-chip > i { font-size:16px; }

/* ══ PROJECTS ════════════════════════════════════════════════════════ */
.sub-head {
  font-family:'Poppins',sans-serif; font-size:16px; font-weight:700; color:var(--text);
  margin-bottom:24px; display:flex; align-items:center; gap:10px;
}
.sub-head i { color:var(--accent); }

.proj-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }

.proj-card {
  background:var(--glass); border:1px solid var(--border);
  border-radius:var(--radius); overflow:hidden;
  backdrop-filter:blur(8px);
  transition:transform var(--trans), border-color var(--trans), box-shadow var(--trans);
  display:flex; flex-direction:column;
  position:relative;
}
.proj-card:hover { transform:translateY(-6px); border-color:rgba(59,130,246,.4); box-shadow:0 16px 48px rgba(0,0,0,.4); }

.proj-top { padding:20px 20px 0; display:flex; align-items:center; justify-content:space-between; }
.proj-icon-wrap { width:44px; height:44px; border-radius:10px; display:flex; align-items:center; justify-content:center; font-size:20px; color:#fff; flex-shrink:0; }
.proj-badge { font-size:10.5px; font-weight:700; color:var(--accent); background:rgba(59,130,246,.1); border:1px solid rgba(59,130,246,.2); padding:3px 10px; border-radius:10px; }

.proj-card > h3 { padding:12px 20px 6px; font-family:'Poppins',sans-serif; font-size:14.5px; font-weight:700; color:var(--text); }
.proj-card > p  { padding:0 20px; font-size:12.5px; color:var(--text2); line-height:1.6; flex:1; }

.proj-tags { display:flex; flex-wrap:wrap; gap:7px; padding:12px 20px 16px; }
.proj-tags span { font-size:10.5px; font-weight:600; color:var(--text3); background:rgba(255,255,255,.05); border:1px solid var(--border); padding:3px 8px; border-radius:8px; }

.plink { display:inline-flex; align-items:center; gap:7px; font-size:12.5px; font-weight:700; color:var(--accent); padding:0 20px 18px; transition:color var(--trans); }
.plink:hover { color:var(--accent2); text-decoration:underline; }

/* Image project cards */
.has-img { padding:0; }
.pimg { width:100%; height:165px; object-fit:cover; transition:transform .5s ease; }
.proj-card.has-img:hover .pimg { transform:scale(1.05); }
.pimg-overlay {
  padding:16px; flex:1; display:flex; flex-direction:column;
}
.pimg-overlay h3 { font-family:'Poppins',sans-serif; font-size:14px; font-weight:700; color:var(--text); margin:8px 0 6px; }
.pimg-overlay p  { font-size:12px; color:var(--text2); flex:1; line-height:1.55; }
.pimg-overlay .proj-badge { width:fit-content; }
.pimg-date { position:absolute; top:10px; right:10px; font-size:11px; background:rgba(0,0,0,.65); color:var(--gold); padding:3px 9px; border-radius:8px; font-weight:600; }
.pimg-overlay .plink { padding:10px 0 0; }

/* ══ ACHIEVEMENTS ════════════════════════════════════════════════════ */
.ach-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }

.ach-card {
  background:var(--glass); border:1px solid var(--border);
  border-radius:var(--radius); padding:28px 22px;
  text-align:center; backdrop-filter:blur(8px);
  position:relative; overflow:hidden;
  transition:transform var(--trans), box-shadow var(--trans);
}
.ach-card::before {
  content:''; position:absolute; top:0; left:0; right:0; height:3px;
  background:linear-gradient(90deg,var(--accent),var(--gold));
}
.ach-card:hover { transform:translateY(-7px); box-shadow:0 16px 48px rgba(0,0,0,.4); }

.ach-glow {
  position:absolute; top:-30px; left:50%; transform:translateX(-50%);
  width:80px; height:80px; border-radius:50%;
  background:var(--gc,var(--accent)); opacity:.08;
  filter:blur(20px);
}

.ach-ico {
  width:52px; height:52px; border-radius:14px;
  display:flex; align-items:center; justify-content:center;
  font-size:22px; margin:0 auto 14px; background:rgba(59,130,246,.15); color:var(--accent);
}
.ach-num  { font-family:'Poppins',sans-serif; font-size:36px; font-weight:900; line-height:1; margin-bottom:8px; color:var(--accent); }
.ach-ttl  { font-size:13.5px; font-weight:700; color:var(--text); margin-bottom:10px; }
.ach-card p { font-size:12.5px; color:var(--text2); line-height:1.55; }

/* ══ EDUCATION ═══════════════════════════════════════════════════════ */
.edu-card {
  display:flex; align-items:center; gap:28px;
  background:var(--glass); border:1px solid var(--border);
  border-left:4px solid var(--accent);
  border-radius:var(--radius); padding:32px 36px;
  max-width:580px; margin:0 auto; backdrop-filter:blur(8px);
}
.edu-ico    { font-size:46px; flex-shrink:0; }
.edu-detail h3   { font-family:'Poppins',sans-serif; font-size:18px; font-weight:700; color:var(--text); margin-bottom:6px; }
.edu-inst   { font-size:14px; color:var(--text2); margin-bottom:5px; }
.edu-yr     { font-size:13px; color:var(--accent); font-weight:700; }

/* ══ CONTACT ═════════════════════════════════════════════════════════ */
.contact-layout { display:grid; grid-template-columns:1fr 1fr; gap:40px; align-items:start; }

.contact-cards { display:flex; flex-direction:column; gap:12px; }

.cc {
  display:flex; align-items:center; gap:14px;
  background:var(--glass); border:1px solid var(--border);
  border-radius:var(--radius); padding:14px 18px;
  transition:all var(--trans); backdrop-filter:blur(8px);
}
.cc:hover { border-color:rgba(59,130,246,.4); transform:translateX(6px); background:rgba(59,130,246,.06); }
.cc-ico   { width:42px; height:42px; border-radius:10px; display:flex; align-items:center; justify-content:center; font-size:18px; color:#fff; flex-shrink:0; }
.cc-body  { flex:1; }
.cc-body strong { font-size:12.5px; color:var(--text); display:block; margin-bottom:2px; }
.cc-body p      { font-size:12.5px; color:var(--text2); }
.cc-arr   { color:var(--text3); font-size:12px; transition:transform var(--trans); }
.cc:hover .cc-arr { transform:translateX(4px); color:var(--accent); }

.cform {
  background:var(--glass); border:1px solid var(--border);
  border-radius:var(--radius); padding:32px;
  backdrop-filter:blur(8px);
}

.fg { margin-bottom:16px; }
.fg label { font-size:12.5px; font-weight:600; color:var(--text2); display:block; margin-bottom:7px; }
.fg input, .fg textarea {
  width:100%; background:rgba(255,255,255,.04);
  border:1.5px solid var(--border); border-radius:9px;
  color:var(--text); padding:12px 15px; font-family:'Inter',sans-serif;
  font-size:14px; transition:border-color var(--trans), box-shadow var(--trans);
}
.fg input:focus, .fg textarea:focus {
  outline:none; border-color:var(--accent); box-shadow:0 0 0 3px rgba(59,130,246,.12);
}
.fg textarea { resize:vertical; }
.frow { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.fsuccess {
  display:none; align-items:center; gap:8px;
  color:var(--green); font-size:13.5px; font-weight:600;
  margin-top:14px; justify-content:center;
}
.ferror {
  display:none; align-items:center; gap:8px; flex-wrap:wrap;
  color:#f87171; font-size:13px; font-weight:500;
  margin-top:14px; justify-content:center; text-align:center;
}
.ferror a { color:#f87171; text-decoration:underline; }

/* ══ FOOTER ══════════════════════════════════════════════════════════ */
.footer { background:var(--bg2); border-top:1px solid var(--border); position:relative; z-index:1; }
.footer-inner { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:24px; padding:36px 24px; max-width:1060px; margin:0 auto; }

.ft-brand p { font-size:12.5px; color:var(--text3); margin-top:6px; }
.ft-nav { display:flex; gap:20px; }
.ft-nav a { font-size:13px; color:var(--text2); transition:color var(--trans); }
.ft-nav a:hover { color:var(--accent); }
.ft-soc { display:flex; gap:12px; }
.ft-soc a { width:36px; height:36px; border-radius:50%; background:var(--glass); border:1px solid var(--border); display:flex; align-items:center; justify-content:center; font-size:15px; color:var(--text2); transition:all var(--trans); }
.ft-soc a:hover { background:var(--accent); border-color:var(--accent); color:#fff; transform:translateY(-3px); }

.footer-btm { text-align:center; padding:14px 24px; border-top:1px solid var(--border); }
.footer-btm p { font-size:12px; color:var(--text3); }

/* Back to top */
.btt {
  position:fixed; bottom:24px; right:24px; z-index:800;
  width:44px; height:44px; border-radius:12px;
  background:var(--accent); color:#fff; border:none;
  font-size:16px; cursor:pointer; display:none;
  align-items:center; justify-content:center;
  box-shadow:0 4px 16px rgba(59,130,246,.4);
  transition:all var(--trans);
}
.btt:hover { background:#2563eb; transform:translateY(-3px); }
.btt.show  { display:flex; }

/* ══ RESPONSIVE ══════════════════════════════════════════════════════ */
@media (max-width:960px) {
  .proj-grid { grid-template-columns:1fr 1fr; }
  .ach-grid  { grid-template-columns:1fr 1fr; }
}

@media (max-width:768px) {
  .nav-links { display:none; flex-direction:column; position:absolute; top:62px; left:0; right:0; background:rgba(7,13,26,.97); padding:16px 24px; gap:4px; border-bottom:1px solid var(--border); }
  .nav-links.open { display:flex; }
  .nav-toggle { display:flex; }

  .about-grid   { grid-template-columns:1fr; gap:28px; }
  .skills-grid  { grid-template-columns:1fr; }
  .contact-layout { grid-template-columns:1fr; }
  .footer-inner { flex-direction:column; text-align:center; }
  .ft-nav, .ft-soc { justify-content:center; }
  .frow { grid-template-columns:1fr; }
  .stat-item { padding:16px 22px; }
  .hero-deco { display:none; }
  .dc4, .dc3 { display:none; }
}

@media (max-width:600px) {
  .proj-grid { grid-template-columns:1fr; }
  .ach-grid  { grid-template-columns:1fr; }
  .hero-btns { flex-direction:column; align-items:center; }
  .edu-card  { flex-direction:column; text-align:center; padding:24px; }
  .tl-head   { flex-direction:column; gap:8px; }
}

/* ══ HOW I WORK — animated flow diagrams ══════════════════════════════ */
.section-glow {
  background:
    radial-gradient(ellipse 60% 50% at 15% 20%, rgba(59,130,246,.10), transparent 70%),
    radial-gradient(ellipse 50% 50% at 85% 80%, rgba(16,185,129,.08), transparent 70%),
    var(--bg);
}
.flow-block {
  background:var(--glass); border:1px solid var(--border); border-radius:18px;
  padding:26px 24px 22px; margin-bottom:26px; backdrop-filter:blur(8px);
}
.flow-title { font-family:'Poppins',sans-serif; font-weight:700; font-size:15px; color:var(--text); margin-bottom:22px; display:flex; gap:10px; align-items:center; }
.flow-title i { color:var(--accent); }
.flow { list-style:none; display:flex; align-items:stretch; gap:0; counter-reset:step; }
.flow-node {
  --c:var(--accent);
  flex:1 1 0; min-width:0; position:relative; text-align:center;
  padding:18px 12px 16px; border-radius:14px;
  background:rgba(255,255,255,.03); border:1px solid color-mix(in srgb, var(--c) 35%, transparent);
  opacity:0; transform:translateY(16px) scale(.96);
  transition:opacity .5s ease, transform .5s ease, box-shadow .3s ease;
}
.flow-node::before {
  counter-increment:step; content:counter(step,decimal-leading-zero);
  position:absolute; top:8px; left:10px; font:500 10px 'JetBrains Mono',monospace; color:var(--text3);
}
.flow-node:hover { box-shadow:0 0 0 1px var(--c), 0 10px 30px color-mix(in srgb, var(--c) 25%, transparent); }
.fn-ico {
  width:46px; height:46px; margin:0 auto 10px; border-radius:50%;
  display:grid; place-items:center; font-size:18px; color:#fff;
  background:radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--c) 85%, #fff), var(--c));
  box-shadow:0 0 0 6px color-mix(in srgb, var(--c) 15%, transparent);
}
.flow-node strong { display:block; font-family:'Poppins',sans-serif; font-size:13.5px; color:var(--text); margin-bottom:4px; }
.flow-node small  { display:block; font-size:11.5px; color:var(--text2); line-height:1.45; }
.flow-link { flex:0 0 46px; position:relative; align-self:center; height:2px; opacity:0; transition:opacity .4s ease; }
.flow-link::before { content:''; position:absolute; inset:0; background:repeating-linear-gradient(90deg, rgba(148,163,184,.45) 0 6px, transparent 6px 11px); background-size:22px 2px; }
.flow-link span { position:absolute; top:50%; left:0; width:8px; height:8px; margin-top:-4px; border-radius:50%; background:var(--accent2); box-shadow:0 0 10px var(--accent2), 0 0 2px #fff; opacity:0; }

/* playing state (added by JS when the diagram scrolls into view) */
.flow.play .flow-node { opacity:1; transform:none; }
.flow.play .flow-link { opacity:1; }
.flow.play .flow-link::before { animation:dash-move 1s linear infinite; }
.flow.play .flow-link span { animation:packet 2.2s ease-in-out infinite; }
.flow.play .fn-ico { animation:node-pulse 3.5s ease-in-out infinite; }
.flow.play > :nth-child(1) { transition-delay:.05s } .flow.play > :nth-child(2) { transition-delay:.2s }
.flow.play > :nth-child(3) { transition-delay:.35s } .flow.play > :nth-child(4) { transition-delay:.5s }
.flow.play > :nth-child(5) { transition-delay:.65s } .flow.play > :nth-child(6) { transition-delay:.8s }
.flow.play > :nth-child(7) { transition-delay:.95s } .flow.play > :nth-child(8) { transition-delay:1.1s }
.flow.play > :nth-child(9) { transition-delay:1.25s }
.flow.play > :nth-child(2) span { animation-delay:0s }   .flow.play > :nth-child(4) span { animation-delay:.55s }
.flow.play > :nth-child(6) span { animation-delay:1.1s } .flow.play > :nth-child(8) span { animation-delay:1.65s }
.flow.play > :nth-child(1) .fn-ico { animation-delay:0s }  .flow.play > :nth-child(3) .fn-ico { animation-delay:.6s }
.flow.play > :nth-child(5) .fn-ico { animation-delay:1.2s } .flow.play > :nth-child(7) .fn-ico { animation-delay:1.8s }
.flow.play > :nth-child(9) .fn-ico { animation-delay:2.4s }
.flow-alt .flow-link span { background:var(--green); box-shadow:0 0 10px var(--green), 0 0 2px #fff; }

@keyframes dash-move { to { background-position:22px 0; } }
@keyframes packet { 0% { left:0; opacity:0 } 15% { opacity:1 } 85% { opacity:1 } 100% { left:calc(100% - 8px); opacity:0 } }
@keyframes node-pulse { 0%,100% { box-shadow:0 0 0 6px color-mix(in srgb, var(--c) 15%, transparent) } 50% { box-shadow:0 0 0 11px color-mix(in srgb, var(--c) 6%, transparent) } }

.flow-impact { display:flex; flex-wrap:wrap; gap:10px; margin-top:20px; justify-content:center; }
.flow-impact span { font-size:12.5px; color:var(--text2); background:rgba(16,185,129,.08); border:1px solid rgba(16,185,129,.25); padding:6px 14px; border-radius:20px; }
.flow-impact b { color:var(--green); } .flow-impact i { color:var(--green); margin-right:4px; }

/* timeline progress line (height set by JS) */
.timeline::after {
  content:''; position:absolute; left:11px; top:6px; width:2px; height:var(--tl-progress,0%);
  background:linear-gradient(to bottom,#fff,var(--accent2)); border-radius:2px; box-shadow:0 0 12px var(--accent2);
  transition:height .15s linear;
}

/* staggered skill chips */
.skill-block .sk-chip { opacity:0; transform:translateY(10px); transition:opacity .4s ease, transform .4s ease, border-color var(--trans), color var(--trans); }
.skill-block.visible .sk-chip { opacity:1; transform:none; }
.skill-block.visible .sk-chip:nth-child(2) { transition-delay:.06s } .skill-block.visible .sk-chip:nth-child(3) { transition-delay:.12s }
.skill-block.visible .sk-chip:nth-child(4) { transition-delay:.18s } .skill-block.visible .sk-chip:nth-child(5) { transition-delay:.24s }
.skill-block.visible .sk-chip:nth-child(6) { transition-delay:.3s }

/* footer admin link + accessibility */
.ft-admin { color:var(--text3); } .ft-admin:hover { color:var(--accent); }
:focus-visible { outline:2px solid var(--accent2); outline-offset:3px; border-radius:6px; }
.skip-link { position:absolute; left:-999px; top:8px; z-index:1000; background:var(--accent); color:#fff; padding:8px 14px; border-radius:8px; }
.skip-link:focus { left:12px; }

@media (max-width:1100px) {
  .nav-links { display:none; flex-direction:column; position:absolute; top:62px; left:0; right:0; background:rgba(7,13,26,.97); padding:16px 24px; gap:4px; border-bottom:1px solid var(--border); }
  .nav-links.open { display:flex; }
  .nav-toggle { display:flex; }
}
@media (max-width:860px) {
  .flow { flex-direction:column; align-items:stretch; }
  .flow-node { display:grid; grid-template-columns:46px 1fr; column-gap:14px; text-align:left; align-items:center; padding:14px 16px 14px 14px; }
  .flow-node .fn-ico { margin:0; grid-row:span 2; }
  .flow-node::before { left:auto; right:12px; }
  .flow-link { flex:0 0 30px; width:2px; height:30px; align-self:flex-start; margin-left:36px; }
  .flow-link::before { background:repeating-linear-gradient(180deg, rgba(148,163,184,.45) 0 6px, transparent 6px 11px); background-size:2px 22px; }
  @keyframes dash-move { to { background-position:0 22px; } }
  .flow-link span { left:50% !important; margin-left:-4px; top:0; margin-top:0; }
  .flow.play .flow-link span { animation-name:packet-v; }
  @keyframes packet-v { 0% { top:0; opacity:0 } 15% { opacity:1 } 85% { opacity:1 } 100% { top:calc(100% - 8px); opacity:0 } }
}

/* Reduced-motion: animations stay on (site owner's choice) but run gentler */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior:auto; }
  .deco-card { animation-duration:12s; }
  .flow.play .fn-ico { animation-duration:7s, 16s; }
}

/* ══ 3D HERO SCENE + 3D TILT CARDS ════════════════════════════════════ */
.hero-3d { position:absolute; inset:0; width:100%; height:100%; z-index:0; pointer-events:none; opacity:0; transition:opacity 1.2s ease; }
.hero.has-3d .hero-3d { opacity:1; }
.hero.has-3d .hero-deco { display:none; }
.hero-content { position:relative; z-index:2; }
.hero.has-3d::after { /* soft vignette so the text stays readable over the scene */
  content:''; position:absolute; inset:0; z-index:1; pointer-events:none;
  background:radial-gradient(ellipse 46% 52% at 50% 48%, rgba(7,13,26,.78) 0%, rgba(7,13,26,.35) 60%, transparent 85%);
}
.scroll-hint { z-index:2; }

[data-tilt] { transform-style:preserve-3d; will-change:transform; transition:transform .25s ease, box-shadow .25s ease, border-color var(--trans); }
[data-tilt] .tilt-pop { transform:translateZ(28px); }
[data-tilt]::after {
  content:''; position:absolute; inset:0; border-radius:inherit; pointer-events:none;
  background:radial-gradient(circle at var(--gx,50%) var(--gy,50%), rgba(255,255,255,.12), transparent 55%);
  opacity:0; transition:opacity .25s ease;
}
[data-tilt]:hover::after { opacity:1; }
.proj-grid, .ach-grid, .skills-grid { perspective:1200px; }
.fn-ico { transform-style:preserve-3d; }
.flow.play .fn-ico { animation:node-pulse 3.5s ease-in-out infinite, spin3d 8s linear infinite; }
@keyframes spin3d { from { transform:rotateY(0) } to { transform:rotateY(360deg) } }

.tl-legal { color:var(--text3); font-size:12px; }

/* experience durations */
.tl-dur { color:var(--accent2); font-weight:700; }
.tl-summary { background:var(--glass); border:1px solid var(--border); border-radius:16px; padding:18px 20px; margin:0 0 34px; }
.tls-head { display:flex; justify-content:space-between; align-items:center; margin-bottom:12px; font-family:'Poppins',sans-serif; font-size:14px; color:var(--text2); }
.tls-head i { color:var(--accent); margin-right:6px; } .tls-head b { color:var(--gold); font-size:15px; }
.tls-row { display:grid; grid-template-columns:minmax(150px,240px) 1fr 90px; gap:14px; align-items:center; padding:8px 0; border-top:1px solid var(--border); }
.tls-name { display:flex; align-items:center; gap:10px; min-width:0; }
.tls-name img { width:28px; height:28px; border-radius:6px; object-fit:contain; background:#fff; flex-shrink:0; }
.tls-name b { display:block; font-size:13px; color:var(--text); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.tls-name small { font-size:11.5px; color:var(--text3); }
.tls-bar { height:10px; background:rgba(255,255,255,.05); border-radius:6px; overflow:hidden; }
.tls-bar span { display:block; height:100%; width:0; border-radius:6px; background:linear-gradient(90deg,var(--accent),var(--accent2)); transition:width 1.2s cubic-bezier(.2,.8,.2,1); }
.tls-bar span.cur { background:linear-gradient(90deg,var(--gold),#fb923c); }
.tl-summary.visible .tls-bar span { width:var(--w); }
.tls-dur { text-align:right; font-weight:700; font-size:13px; color:var(--text); }
@media (max-width:600px) { .tls-row { grid-template-columns:1fr 70px; } .tls-bar { grid-column:1/-1; grid-row:2; } }
