/*
  style.css — mithun's portfolio
*/

/* Fonts loaded via <link> in index.html — no duplicate @import needed */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:         #080b12;
  --bg2:        #0d1117;
  --surface:    #111827;
  --card:       rgba(255,255,255,0.03);
  --border:     rgba(255,255,255,0.07);
  --border-h:   rgba(99,102,241,0.4);
  --accent:     #6366f1;
  --accent-l:   #818cf8;
  --accent-dim: rgba(99,102,241,0.12);
  --cyan:       #22d3ee;
  --text:       #e2e8f0;
  --muted:      #64748b;
  --dim:        #334155;
  --green:      #4ade80;
  --amber:      #fbbf24;
  --white:      #f8fafc;
  --r:          12px;
  --r-sm:       8px;
}

html { scroll-behavior: smooth; scroll-padding-top: 74px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  /* smooth theme switch */
  transition: background-color 0.4s ease, color 0.4s ease;
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 5px; }

::selection { background: rgba(99,102,241,0.25); }

a { text-decoration: none; color: inherit; }

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px;
}

.section {
  padding: 100px 0;
}

.section-alt {
  background: var(--bg2);
}

.sec-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-l);
  margin-bottom: 20px;
}

.sec-heading {
  font-family: 'Syne', sans-serif;
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 40px;
}

/* reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(.22,1,.36,1), transform 0.6s cubic-bezier(.22,1,.36,1);
}
.reveal.visible { opacity: 1; transform: none; }

/* buttons */
.btn-solid {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.15s;
  font-family: 'Inter', sans-serif;
}
.btn-solid:hover { opacity: 0.88; transform: translateY(-2px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text);
  padding: 11px 23px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, transform 0.15s;
  font-family: 'Inter', sans-serif;
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent-l);
  transform: translateY(-2px);
}

.btn-download {
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}


/* ============================================================
   HEADER
   ============================================================ */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.3s, box-shadow 0.3s;
}
#header.scrolled {
  background: rgba(8,11,18,0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px;
  height: 66px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.logo {
  font-family: 'Syne', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
  flex-shrink: 0;
}
.logo-dot { color: var(--accent); }

.main-nav {
  display: flex;
  gap: 2px;
  flex: 1;
}

.nav-a {
  font-size: 13px;
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
  font-weight: 500;
}
.nav-a:hover, .nav-a.active { color: var(--white); background: rgba(255,255,255,0.06); }

.nav-resume {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--accent-l);
  border: 1px solid rgba(99,102,241,0.35);
  padding: 7px 15px;
  border-radius: 6px;
  transition: background 0.15s;
  flex-shrink: 0;
}
.nav-resume:hover { background: var(--accent-dim); }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.burger span {
  display: block; width: 22px; height: 1.5px;
  background: var(--text);
  transition: transform 0.25s, opacity 0.2s;
}
.burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }


/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 90px 28px 60px;
  overflow: hidden;
  max-width: 1100px;
  margin: 0 auto;
}

/* animated blobs — not particles, just nice CSS gradients */
.hero-bg-blob {
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,0.1) 0%, transparent 70%);
  top: -200px;
  left: -150px;
  pointer-events: none;
  animation: blobFloat 10s ease-in-out infinite;
}
.blob-2 {
  background: radial-gradient(circle, rgba(34,211,238,0.06) 0%, transparent 70%);
  top: auto;
  bottom: -200px;
  left: auto;
  right: -150px;
  animation-delay: -5s;
}
@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.97); }
}

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
}

.status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
  animation: dotPulse 2.5s infinite;
}
@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(74,222,128,0.4); }
  50% { box-shadow: 0 0 0 6px rgba(74,222,128,0); }
}

.hero-name {
  font-family: 'Syne', sans-serif;
  font-size: clamp(44px, 8vw, 84px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.05;
  letter-spacing: -2.5px;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}
.accent-word { color: var(--accent-l); }

.hero-tagline {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.hero-desc {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.8;
  max-width: 540px;
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}

.inline-link {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--accent);
  transition: color 0.15s;
}
.inline-link:hover { color: var(--accent-l); }

.hero-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
}

.hero-links {
  display: flex;
  gap: 12px;
  position: relative;
  z-index: 1;
}
.hero-links a {
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: var(--muted);
  transition: border-color 0.15s, color 0.15s, transform 0.15s;
}
.hero-links a:hover {
  border-color: var(--accent);
  color: var(--accent-l);
  transform: translateY(-3px);
}

/* hero stats */
.hero-numbers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  margin-top: 56px;
  position: relative;
  z-index: 1;
}

.h-num {
  background: var(--bg);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: background 0.2s;
}
.h-num:hover { background: var(--surface); }

.h-val {
  font-family: 'Syne', sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  display: inline;
}
.h-text { font-size: 22px; }
.h-plus {
  font-family: 'Syne', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--accent-l);
  vertical-align: top;
  margin-top: 4px;
}
.h-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
}


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

.about-img-wrap {
  position: relative;
  border-radius: var(--r);
  overflow: hidden;
  aspect-ratio: 4/5;
}
.about-img-wrap::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: calc(var(--r) + 1px);
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  z-index: -1;
}
.about-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: var(--r);
  display: block;
  filter: grayscale(8%);
}

.about-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
}
.about-chips span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  padding: 4px 10px;
  background: var(--accent-dim);
  border: 1px solid rgba(99,102,241,0.2);
  color: var(--accent-l);
  border-radius: 20px;
}

.about-socials {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}
.about-socials a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: var(--muted);
  transition: color 0.15s;
}
.about-socials a:hover { color: var(--accent-l); }
.about-socials a i { font-size: 15px; }

.about-heading {
  font-family: 'Syne', sans-serif;
  font-size: 30px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 18px;
}

.about-text-col p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 14px;
}
.about-text-col p strong { color: var(--text); }

.now-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 22px;
  margin: 24px 0;
}
.now-heading {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--accent-l);
  display: block;
  margin-bottom: 16px;
}
.now-rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.now-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--muted);
}
.now-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  background: var(--accent-dim);
  color: var(--accent-l);
  border: 1px solid rgba(99,102,241,0.2);
  padding: 2px 8px;
  border-radius: 3px;
  flex-shrink: 0;
  margin-top: 2px;
}

.info-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--muted);
}
.info-row i { color: var(--accent-l); margin-right: 6px; }


/* ============================================================
   SKILLS
   ============================================================ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.skill-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 24px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}
.skill-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--cyan));
  opacity: 0;
  transition: opacity 0.2s;
}
.skill-card:hover {
  border-color: var(--border-h);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(99,102,241,0.12);
}
.skill-card:hover::before { opacity: 1; }

.sk-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.sk-head i {
  font-size: 16px;
  color: var(--accent-l);
}
.sk-head h3 {
  font-family: 'Syne', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
}

.sk-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.sk-tags span {
  font-size: 12px;
  font-family: 'JetBrains Mono', monospace;
  padding: 4px 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 5px;
  transition: border-color 0.15s, color 0.15s;
  cursor: default;
}
.sk-tags span:hover {
  border-color: rgba(99,102,241,0.4);
  color: var(--accent-l);
}


/* ============================================================
   PROJECTS
   ============================================================ */
.proj-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.all-repos {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--muted);
  transition: color 0.15s;
}
.all-repos:hover { color: var(--accent-l); }

/* featured project */
.proj-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 36px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s;
}
.proj-featured::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--cyan));
}
.proj-featured:hover { border-color: var(--border-h); }

.proj-feat-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.proj-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--dim);
}
.proj-featured h3 {
  font-family: 'Syne', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 6px;
}
.proj-feat-sub {
  font-size: 13px;
  color: var(--accent-l);
  font-weight: 500;
  margin-bottom: 16px;
}
.proj-feat-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 20px;
}

/* shared project stack */
.proj-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 20px;
}
.proj-stack span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  padding: 3px 9px;
  background: var(--accent-dim);
  border: 1px solid rgba(99,102,241,0.15);
  color: var(--accent-l);
  border-radius: 4px;
}

.proj-actions {
  display: flex;
  gap: 10px;
}
.proj-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 7px 15px;
  border-radius: 6px;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
  font-weight: 500;
}
.proj-btn:hover {
  border-color: rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.04);
}

.proj-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 6px 13px;
  border-radius: 6px;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.proj-link:hover {
  color: var(--text);
  border-color: rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03);
}
.live-link {
  color: var(--cyan);
  border-color: rgba(34,211,238,0.2);
}
.live-link:hover {
  color: var(--white);
  border-color: rgba(34,211,238,0.35);
  background: rgba(34,211,238,0.06);
}

/* featured code visual */
.proj-feat-right {
  display: flex;
  align-items: center;
}
.feat-visual {
  width: 100%;
  background: #0d1117;
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 24px;
  overflow: hidden;
}
.feat-code-block {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.code-line {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.8;
  white-space: nowrap;
}
.c-keyword { color: #f472b6; }
.c-fn      { color: #60a5fa; }
.c-comment { color: #4b5563; font-style: italic; }
.c-num     { color: var(--green); }

/* project cards grid */
.proj-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.proj-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.proj-card:hover {
  border-color: var(--border-h);
  transform: translateY(-5px);
  box-shadow: 0 14px 36px rgba(0,0,0,0.3);
}

.proj-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.proj-card-badges { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

.proj-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--accent-dim);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  color: var(--accent-l);
}

.proj-card h3 {
  font-family: 'Syne', sans-serif;
  font-size: 19px;
  font-weight: 700;
  color: var(--white);
}
.proj-sub {
  font-size: 12px;
  color: var(--accent-l);
  font-family: 'JetBrains Mono', monospace;
}
.proj-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
  flex: 1;
}

/* badges */
.badge-wip {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  padding: 3px 9px;
  border-radius: 3px;
  background: rgba(251,191,36,0.1);
  color: var(--amber);
  border: 1px solid rgba(251,191,36,0.2);
}
.badge-done {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  padding: 3px 9px;
  border-radius: 3px;
  background: rgba(255,255,255,0.05);
  color: var(--muted);
  border: 1px solid var(--border);
}
.badge-live {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  padding: 3px 9px;
  border-radius: 3px;
  background: rgba(74,222,128,0.08);
  color: var(--green);
  border: 1px solid rgba(74,222,128,0.2);
}
.badge-feat {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  padding: 3px 9px;
  border-radius: 3px;
  background: var(--accent-dim);
  color: var(--accent-l);
  border: 1px solid rgba(99,102,241,0.3);
}
.badge-award {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  padding: 3px 9px;
  border-radius: 3px;
  background: rgba(251,191,36,0.1);
  color: var(--amber);
  border: 1px solid rgba(251,191,36,0.25);
}


/* ============================================================
   HACKATHONS
   ============================================================ */
.hack-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.hack-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.2s, transform 0.2s;
}
.hack-card:hover { border-color: var(--border-h); transform: translateY(-4px); }
.hack-card.gold {
  border-color: rgba(251,191,36,0.2);
  background: linear-gradient(135deg, rgba(251,191,36,0.04), var(--card));
}
.hack-card.gold:hover { border-color: rgba(251,191,36,0.4); }

.hack-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  flex-wrap: wrap;
}
.hack-title-block h3 {
  font-family: 'Syne', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}
.hack-title-block p { font-size: 12px; color: var(--muted); }

.hack-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  padding: 4px 11px;
  border-radius: 4px;
  color: var(--muted);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  white-space: nowrap;
  flex-shrink: 0;
}
.gold-badge {
  color: var(--amber);
  border-color: rgba(251,191,36,0.3);
  background: rgba(251,191,36,0.08);
}

.hack-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--dim);
}
.hack-meta i { color: var(--accent-l); margin-right: 4px; }

.hack-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.78;
  flex: 1;
}
.hack-desc strong { color: var(--text); }

.hack-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}


/* ============================================================
   CERTIFICATIONS
   ============================================================ */
.cert-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: start;
}

.ach-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ach-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.ach-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--accent-dim);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  color: var(--accent-l);
  flex-shrink: 0;
}
.ach-item > div strong {
  display: block;
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
  margin-bottom: 2px;
}
.ach-item > div span {
  font-size: 12px;
  color: var(--muted);
}

.cert-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.cert-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.cert-row:last-child { border-bottom: none; }

.cert-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}
.g-icon { background: rgba(66,133,244,0.15); color: #60a5fa; }
.s-icon { background: rgba(239,68,68,0.15);  color: #f87171; }
.d-icon { background: rgba(37,99,235,0.15);  color: #60a5fa; }
.c-icon { background: rgba(251,191,36,0.12); color: var(--amber); }

.cert-info { flex: 1; min-width: 0; }
.cert-info strong {
  display: block;
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cert-info span { font-size: 12px; color: var(--muted); }

.cert-yr {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--dim);
  white-space: nowrap;
  flex-shrink: 0;
}


/* ============================================================
   EDUCATION
   ============================================================ */
.edu-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.edu-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 24px 28px;
  transition: border-color 0.2s;
}
.edu-card:hover { border-color: var(--border-h); }

.edu-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--accent-dim);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  color: var(--accent-l);
  flex-shrink: 0;
}

.edu-body { flex: 1; }
.edu-body h3 {
  font-family: 'Syne', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}
.edu-body p { font-size: 13px; color: var(--muted); }

.edu-meta { text-align: right; flex-shrink: 0; }
.edu-yr {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}
.edu-grade {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--accent-l);
}


/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 64px;
  align-items: start;
}

.contact-heading {
  font-family: 'Syne', sans-serif;
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 16px;
}
.contact-intro {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 28px;
  max-width: 340px;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}
.c-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
  transition: color 0.15s;
}
.c-item:hover { color: var(--text); }
.c-item i { font-size: 14px; color: var(--accent-l); width: 16px; text-align: center; }

/* form */
.contact-right form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 7px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.field input, .field textarea {
  width: 100%;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 11px 15px;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: var(--dim); }
.field input:focus, .field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}

#submitBtn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 12px 22px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  align-self: flex-start;
  transition: opacity 0.15s, transform 0.15s;
}
#submitBtn:hover { opacity: 0.86; transform: translateY(-1px); }
#submitBtn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

#formMsg {
  font-size: 13px;
  font-family: 'JetBrains Mono', monospace;
  margin-top: -6px;
}


/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 28px 0;
}
.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}
.footer-brand {
  font-family: 'Syne', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--white);
}
.footer-row > p {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--dim);
}
.footer-socials { display: flex; gap: 14px; }
.footer-socials a {
  font-size: 17px;
  color: var(--dim);
  transition: color 0.15s;
}
.footer-socials a:hover { color: var(--accent-l); }

#scrollTop {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--accent);
  border: none;
  color: #fff;
  font-size: 15px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(99,102,241,0.35);
  transition: transform 0.15s, box-shadow 0.15s;
  z-index: 90;
}
#scrollTop:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(99,102,241,0.45); }
#scrollTop.show { display: flex; }


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 220px 1fr; gap: 40px; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .cert-layout { grid-template-columns: 1fr; gap: 40px; }
  .proj-featured { grid-template-columns: 1fr; }
  .proj-feat-right { display: none; }
}

@media (max-width: 768px) {
  .main-nav, .nav-resume { display: none; }
  .burger { display: flex; }

  .main-nav.mobile-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 66px; left: 0; right: 0;
    background: rgba(8,11,18,0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 20px 28px;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    z-index: 99;
  }
  .main-nav.mobile-open .nav-a {
    font-size: 16px;
    padding: 10px 14px;
    border-radius: 8px;
  }

  .hero { padding: 90px 24px 48px; }
  .hero-name { letter-spacing: -1.5px; }
  .hero-numbers { grid-template-columns: repeat(2, 1fr); }

  .about-grid { grid-template-columns: 1fr; }
  .about-img-wrap { max-width: 260px; }

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

  .proj-grid { grid-template-columns: 1fr; }
  .hack-grid { grid-template-columns: 1fr; }

  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-right form { padding: 22px; }
  .contact-heading { font-size: 36px; }

  .cert-layout { grid-template-columns: 1fr; gap: 40px; }
  .edu-card { flex-direction: column; align-items: flex-start; gap: 16px; }
  .edu-meta { text-align: left; }

  .footer-row { justify-content: center; text-align: center; }

  .section { padding: 72px 0; }
}

@media (max-width: 480px) {
  .hero-numbers { grid-template-columns: 1fr 1fr; }
  .hero-btns { flex-direction: column; }
  .btn-solid, .btn-ghost { width: 100%; justify-content: center; }
  .hack-header { flex-direction: column; }
  .proj-feat-meta { flex-wrap: wrap; }
}


/* ============================================================
   THEME TOGGLE BUTTON
   ============================================================ */

.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 6px 13px;
  border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s, transform 0.15s;
  flex-shrink: 0;
  letter-spacing: 0.04em;
}

.theme-toggle-btn:hover {
  border-color: var(--accent);
  color: var(--accent-l);
  transform: translateY(-1px);
}

.theme-icon { font-size: 13px; line-height: 1; }


/* ============================================================
   CLASSIC (LIGHT) THEME
   All overrides live under body.classic so the toggle works
   by simply adding/removing that class.
   ============================================================ */

body.classic {
  --bg:         #f0f4fb;
  --bg2:        #e4ecf7;
  --surface:    #ffffff;
  --card:       rgba(0,0,0,0.02);
  --border:     rgba(0,0,0,0.09);
  --border-h:   rgba(79,70,229,0.35);
  --accent:     #4f46e5;
  --accent-l:   #6366f1;
  --accent-dim: rgba(79,70,229,0.09);
  --cyan:       #0891b2;
  --text:       #1e293b;
  --muted:      #64748b;
  --dim:        #94a3b8;
  --green:      #16a34a;
  --amber:      #b45309;
  --white:      #0f172a;
}

/* scrollbar in classic mode */
body.classic ::-webkit-scrollbar-track { background: #e4ecf7; }
body.classic ::-webkit-scrollbar-thumb { background: var(--accent); }

/* nav */
body.classic #header.scrolled {
  background: rgba(240,244,251,0.94);
  box-shadow: 0 1px 0 rgba(0,0,0,0.08);
}

/* hero blobs — lighter colours on light bg */
body.classic .hero-bg-blob {
  background: radial-gradient(circle, rgba(79,70,229,0.07) 0%, transparent 70%);
}
body.classic .blob-2 {
  background: radial-gradient(circle, rgba(8,145,178,0.05) 0%, transparent 70%);
}

/* hero stats bar */
body.classic .hero-numbers {
  background: rgba(0,0,0,0.06);
}
body.classic .h-num {
  background: #ffffff;
}
body.classic .h-num:hover { background: #f8fafc; }

/* about image gradient border */
body.classic .about-img-wrap::before {
  background: linear-gradient(135deg, var(--accent), #0891b2);
}

/* now card */
body.classic .now-card {
  background: #ffffff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

/* skill / project cards — add shadow instead of glassy border */
body.classic .skill-card,
body.classic .proj-card,
body.classic .hack-card,
body.classic .edu-card {
  background: #ffffff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
body.classic .skill-card:hover,
body.classic .proj-card:hover,
body.classic .hack-card:hover,
body.classic .edu-card:hover {
  box-shadow: 0 8px 28px rgba(79,70,229,0.12);
}

/* featured project */
body.classic .proj-featured {
  background: #ffffff;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

/* code block in featured project */
body.classic .feat-visual {
  background: #1e1e2e;
  border-color: rgba(0,0,0,0.1);
}

/* hack gold card */
body.classic .hack-card.gold {
  background: linear-gradient(135deg, rgba(180,83,9,0.04), #ffffff);
  border-color: rgba(180,83,9,0.2);
}
body.classic .hack-card.gold:hover {
  border-color: rgba(180,83,9,0.4);
}

/* contact form */
body.classic .contact-right form {
  background: #ffffff;
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
}
body.classic .field input,
body.classic .field textarea {
  background: #f8fafc;
  border-color: rgba(0,0,0,0.1);
}
body.classic .field input:focus,
body.classic .field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(79,70,229,0.1);
}

/* footer */
body.classic .footer {
  background: #e4ecf7;
  border-top-color: rgba(0,0,0,0.08);
}

/* section alternating bg */
body.classic .section-alt { background: var(--bg2); }

/* achievement strip */
body.classic .ach-item {
  background: #ffffff;
  border-radius: 8px;
  padding: 12px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.05);
}

/* scroll-to-top on classic */
body.classic #scrollTop {
  box-shadow: 0 4px 20px rgba(79,70,229,0.25);
}

/* theme toggle button itself in classic mode */
body.classic .theme-toggle-btn {
  background: #ffffff;
  border-color: rgba(0,0,0,0.1);
  color: var(--muted);
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
body.classic .theme-toggle-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ============================================================
   CUSTOM CURSOR + 3D TILT
   ============================================================ */
@media (min-width: 768px) {
  body, a, button, .proj-card { cursor: none; }
}
.custom-cursor {
  position: fixed;
  width: 8px;
  height: 8px;
  background-color: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background-color 0.2s;
}
.custom-cursor-follower {
  position: fixed;
  width: 30px;
  height: 30px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background-color 0.2s, top 0.1s ease-out, left 0.1s ease-out;
}
@media (max-width: 768px) {
  .custom-cursor, .custom-cursor-follower { display: none !important; }
}
.cursor-hover .custom-cursor {
  width: 50px;
  height: 50px;
  background-color: rgba(99, 102, 241, 0.15);
  border: 1px solid var(--accent);
}
.cursor-hover .custom-cursor-follower {
  width: 0; height: 0; opacity: 0;
}

/* Mesh Gradient Background */
.mesh-bg {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  z-index: -1;
  overflow: hidden;
  background: var(--bg);
}
.blob {
  position: absolute;
  filter: blur(90px);
  opacity: 0.15;
  border-radius: 50%;
  animation: floatBlob 20s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}
body.classic .blob { opacity: 0.25; }
body.classic .mesh-bg { display: block; opacity: 0.7; background: transparent; }
body.classic .blob-1 { background: rgba(79, 70, 229, 0.45); }
body.classic .blob-2 { background: rgba(8, 145, 178, 0.45); }
body.classic .blob-3 { background: rgba(22, 163, 74, 0.45); }

.blob-1 { width: 400px; height: 400px; background: #ff004f; top: -10%; left: -10%; }
.blob-2 { width: 500px; height: 500px; background: #4864ff; bottom: -20%; right: -10%; animation-delay: -5s; }
.blob-3 { width: 300px; height: 300px; background: #8a2be2; top: 40%; left: 40%; animation-delay: -10s; }

@keyframes floatBlob {
  0% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -60px) scale(1.1); }
  66% { transform: translate(-30px, 30px) scale(0.9); }
  100% { transform: translate(0, 0) scale(1); }
}

/* staggered reveal delays for project cards */
.proj-grid .proj-card:nth-child(1) { transition-delay: 0.1s; }
.proj-grid .proj-card:nth-child(2) { transition-delay: 0.2s; }
.proj-grid .proj-card:nth-child(3) { transition-delay: 0.3s; }

/* 3d tilt — preserve-3d so JS perspective transform works */
.proj-card {
  transform-style: preserve-3d;
}
