/* ============================================================
   Aayush Baral — Portfolio
   Professional design system · dark / light
   ============================================================ */

:root {
  /* Palette — dark (default) */
  --bg: #0a0f1a;
  --bg-soft: #0d1424;
  --surface: #111a2e;
  --surface-2: #16213a;
  --surface-3: #1d2a47;
  --border: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(148, 163, 184, 0.32);
  --text: #e8edf7;
  --text-soft: #b6c0d4;
  --muted: #7c8aa5;
  --accent: #3b82f6;
  --accent-2: #38bdf8;
  --accent-soft: rgba(59, 130, 246, 0.12);
  --grad: linear-gradient(120deg, #3b82f6, #38bdf8);
  --grad-text: linear-gradient(120deg, #60a5fa, #38bdf8);
  --btn-text: #ffffff;
  --success: #34d399;
  --danger: #fb7185;

  /* Type */
  --font-head: 'Space Grotesk', 'Inter', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Shape */
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 26px;
  --shadow-sm: 0 4px 16px rgba(2, 6, 23, 0.35);
  --shadow: 0 18px 44px rgba(2, 6, 23, 0.35);
  --shadow-lg: 0 30px 70px rgba(2, 6, 23, 0.5);
  --ring: 0 0 0 1px var(--border), 0 18px 45px rgba(2, 6, 23, 0.3);

  --max-w: 1140px;
  --header-h: 72px;

  /* Theme-dependent extras */
  --header-bg: rgba(10, 15, 26, 0.6);
  --header-bg-scrolled: rgba(10, 15, 26, 0.92);
  --overlay: rgba(8, 12, 22, 0.55);
  --scrollbar-thumb: #24334f;
  --hero-glow-1: rgba(59, 130, 246, 0.22);
  --hero-glow-2: rgba(56, 189, 248, 0.14);
  --card-glow: linear-gradient(140deg, rgba(59, 130, 246, 0.14), rgba(56, 189, 248, 0.05) 55%, transparent);
  --code-bg: rgba(148, 163, 184, 0.08);
}

/* ============================================================
   Light theme
   ============================================================ */
[data-theme="light"] {
  --bg: #f6f8fc;
  --bg-soft: #ffffff;
  --surface: #ffffff;
  --surface-2: #eef2f8;
  --surface-3: #dde5f0;
  --border: rgba(15, 23, 42, 0.1);
  --border-strong: rgba(15, 23, 42, 0.24);
  --text: #0f172a;
  --text-soft: #42506b;
  --muted: #64748b;
  --accent: #2563eb;
  --accent-2: #0ea5e9;
  --accent-soft: rgba(37, 99, 235, 0.1);
  --grad: linear-gradient(120deg, #2563eb, #0ea5e9);
  --grad-text: linear-gradient(120deg, #1d4ed8, #0284c7);
  --btn-text: #ffffff;
  --success: #059669;

  --shadow-sm: 0 4px 14px rgba(15, 23, 42, 0.06);
  --shadow: 0 16px 40px rgba(15, 23, 42, 0.09);
  --shadow-lg: 0 28px 70px rgba(15, 23, 42, 0.14);
  --ring: 0 0 0 1px var(--border), 0 18px 45px rgba(15, 23, 42, 0.08);

  --header-bg: rgba(255, 255, 255, 0.7);
  --header-bg-scrolled: rgba(255, 255, 255, 0.94);
  --overlay: rgba(255, 255, 255, 0.7);
  --scrollbar-thumb: #c3cfdf;
  --hero-glow-1: rgba(59, 130, 246, 0.18);
  --hero-glow-2: rgba(56, 189, 248, 0.12);
  --card-glow: linear-gradient(140deg, rgba(59, 130, 246, 0.08), rgba(56, 189, 248, 0.04) 55%, transparent);
  --code-bg: rgba(15, 23, 42, 0.05);
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--accent); color: #fff; }

::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border-radius: 8px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img, svg { display: block; }
button { font-family: inherit; cursor: pointer; }
input, textarea, button { font-family: inherit; }

.container { width: min(var(--max-w), 92%); margin-inline: auto; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.82rem 1.6rem;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn svg { width: 1.05em; height: 1.05em; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--grad);
  color: var(--btn-text);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.3);
}
.btn-primary:hover { box-shadow: 0 14px 32px rgba(37, 99, 235, 0.42); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

.btn-white { background: var(--btn-invert-bg, var(--text)); color: var(--btn-invert-text, #0a0f1a); box-shadow: var(--shadow-sm); }
.btn-white:hover { box-shadow: var(--shadow); }

.btn-ghost.btn-white { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost.btn-white:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

.btn-sm { padding: 0.62rem 1.2rem; font-size: 0.92rem; border-radius: 9px; }

/* ============================================================
   Preloader
   ============================================================ */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: var(--bg);
  display: grid;
  place-items: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.preloader.hidden { opacity: 0; visibility: hidden; }
.preloader-inner { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.preloader-logo {
  width: 64px; height: 64px;
  display: grid; place-items: center;
  font-family: var(--font-head);
  font-weight: 700; font-size: 1.4rem;
  color: #fff;
  background: var(--grad);
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.4);
}
.preloader-name { font-family: var(--font-head); font-weight: 600; letter-spacing: 0.02em; }
.preloader-bar { width: 150px; height: 3px; background: var(--surface-3); border-radius: 3px; overflow: hidden; }
.preloader-bar i { display: block; height: 100%; width: 0; background: var(--grad); border-radius: 3px; animation: loadbar 1.5s ease forwards; }
@keyframes loadbar { to { width: 100%; } }

/* ============================================================
   Header / Nav
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.site-header.scrolled {
  background: var(--header-bg-scrolled);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.logo { display: inline-flex; align-items: center; gap: 0.65rem; font-family: var(--font-head); }
.logo-text { font-size: 1.1rem; font-weight: 700; letter-spacing: 0.01em; }

.nav-menu { display: flex; align-items: center; gap: 0.3rem; }
.nav-menu a {
  position: relative;
  padding: 0.45rem 0.85rem;
  border-radius: 9px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-soft);
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-menu a:hover { color: var(--text); background: var(--surface-2); }
.nav-menu a.active { color: var(--accent); background: var(--accent-soft); }

.nav-actions { display: flex; align-items: center; gap: 0.7rem; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.3s ease, opacity 0.3s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Scroll progress */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--grad); z-index: 1100; }

/* ============================================================
   Hero (home)
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: calc(var(--header-h) + 4rem) 0 5rem;
  overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
}
.hero-glow-1 { width: 520px; height: 520px; top: -160px; right: -120px; background: var(--hero-glow-1); }
.hero-glow-2 { width: 460px; height: 460px; bottom: -180px; left: -140px; background: var(--hero-glow-2); }

.hero-grid { display: none; }

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 2rem;
}

.hero-copy { max-width: 640px; }

.pulse-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 5.4vw, 4.1rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.hero-roles {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: clamp(1.05rem, 2.3vw, 1.4rem);
  color: var(--accent);
  margin-bottom: 1.2rem;
}
.roles-static { color: var(--muted); }
.typewriter-caret { width: 2px; height: 1.2em; background: var(--accent); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.hero-text { font-size: 1.12rem; color: var(--text-soft); max-width: 540px; margin-bottom: 2rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 2.4rem; }

.hero-card-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.9rem; margin-bottom: 1.4rem; }
.hero-card-stat {
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-soft);
}
.hero-card-stat strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.1;
}
.hero-card-stat span { font-size: 0.82rem; color: var(--muted); }

.hero-card-socials { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.hero-card-socials a {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-soft);
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.hero-card-socials a:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-3px); background: var(--accent-soft); }
.hero-card-socials svg { width: 19px; height: 19px; }

.scroll-hint {
  position: absolute;
  bottom: 1.4rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.scroll-hint svg { width: 20px; height: 20px; animation: bob 1.6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(6px); } }

/* ============================================================
   Marquee
   ============================================================ */
.marquee {
  border-block: 1px solid var(--border);
  background: var(--surface);
  padding: 1rem 0;
  overflow: hidden;
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  width: max-content;
  animation: marquee 32s linear infinite;
}
.marquee-track span { font-family: var(--font-mono); font-size: 0.96rem; color: var(--text-soft); white-space: nowrap; }
.marquee-track i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); opacity: 0.8; flex-shrink: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================
   Sections
   ============================================================ */
.section { padding: 5.5rem 0; }
.section-sm { padding: 3.5rem 0; }
.section-alt { background: var(--bg-soft); border-block: 1px solid var(--border); }

.section-head { margin-bottom: 3rem; }
.section-head.center { text-align: center; }
.section-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: 0.8rem;
}
.section-sub { color: var(--text-soft); max-width: 640px; font-size: 1.05rem; }
.section-head.center .section-sub { margin-inline: auto; }

/* ============================================================
   Page hero (inner pages)
   ============================================================ */
.page-hero { position: relative; padding: calc(var(--header-h) + 5rem) 0 4rem; overflow: hidden; }
.page-hero-inner { position: relative; z-index: 2; max-width: 780px; }

.breadcrumb { font-size: 0.92rem; color: var(--muted); margin-bottom: 1rem; }
.breadcrumb a { color: var(--text-soft); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { margin: 0 0.35rem; color: var(--muted); }

.page-title {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.page-sub { font-size: 1.1rem; color: var(--text-soft); max-width: 640px; }

/* ============================================================
   About
   ============================================================ */
.about-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 3rem; align-items: start; }
.about-text p { color: var(--text-soft); margin-bottom: 1rem; }
.about-text strong { color: var(--text); }
.about-text .btn { margin-top: 0.4rem; }

.about-profile {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.about-profile::before { content: ''; position: absolute; inset: 0; background: var(--card-glow); pointer-events: none; }
.avatar-lg {
  width: 92px; height: 92px;
  margin: 0 auto 1.1rem;
  display: grid; place-items: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 2rem;
  color: #fff;
  background: var(--grad);
  border-radius: 24px;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.4);
}
.about-profile h3 { font-family: var(--font-head); font-size: 1.35rem; margin-bottom: 0.2rem; }
.about-profile .role { color: var(--accent); font-size: 0.95rem; margin-bottom: 0.6rem; }
.about-profile p { color: var(--text-soft); font-size: 0.95rem; }
.about-profile .about-profile-desc { margin: 0.4rem 0 1.4rem; }
.about-profile .hero-card-stats { margin-bottom: 1.4rem; text-align: left; }
.about-profile .hero-card-socials { justify-content: center; }

/* Quick facts */
.about-card { border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; }
.about-info { display: grid; grid-template-columns: repeat(2, 1fr); }
.info-item { padding: 1.1rem 1.5rem; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.info-item:nth-child(2n) { border-right: 0; }
.info-item:nth-last-child(-n+2) { border-bottom: 0; }
.info-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.25rem;
}
.info-value { color: var(--text); font-weight: 500; }

/* ============================================================
   Stats band
   ============================================================ */
.stats-band { background: var(--surface); border-block: 1px solid var(--border); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; padding: 3rem 0; }
.stat { text-align: center; }
.stat strong { display: block; font-family: var(--font-head); font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; color: var(--accent); line-height: 1.1; margin-bottom: 0.3rem; }
.stat span { color: var(--text-soft); font-size: 0.95rem; }

/* ============================================================
   Cards (services / values / process)
   ============================================================ */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.cards-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  position: relative;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 1.9rem;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.card::before { content: ''; position: absolute; inset: 0; background: var(--card-glow); opacity: 0; transition: opacity 0.3s ease; pointer-events: none; }
.card:hover { transform: translateY(-5px); border-color: var(--accent); box-shadow: var(--shadow); }
.card:hover::before { opacity: 1; }

.card-num { position: absolute; top: 1.3rem; right: 1.5rem; font-family: var(--font-mono); font-size: 0.9rem; color: var(--muted); }

.card-icon {
  width: 54px; height: 54px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 1.2rem;
  position: relative;
}
.card-icon svg { width: 26px; height: 26px; }

.card h3 { font-family: var(--font-head); font-size: 1.25rem; margin-bottom: 0.6rem; position: relative; }
.card p { color: var(--text-soft); font-size: 0.98rem; margin-bottom: 0.4rem; position: relative; }

.card-list { margin-top: 0.9rem; position: relative; }
.card-list li { position: relative; padding-left: 1.4rem; color: var(--text-soft); font-size: 0.95rem; margin-bottom: 0.4rem; }
.card-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.6em;
  width: 7px; height: 7px;
  border-radius: 2px;
  background: var(--grad);
}

/* Values */
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; }
.value-card {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.value-card:hover { transform: translateY(-5px); border-color: var(--accent); box-shadow: var(--shadow-sm); }
.value-card h3 { font-family: var(--font-head); font-size: 1.15rem; margin-bottom: 0.5rem; }
.value-card p { color: var(--text-soft); font-size: 0.95rem; }

/* ============================================================
   Projects
   ============================================================ */
.projects-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }

.project-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.project-card:hover { transform: translateY(-5px); border-color: var(--accent); box-shadow: var(--shadow); }

.project-banner {
  position: relative;
  height: 176px;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.95);
}
.project-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.35;
}
.project-banner svg { width: 64px; height: 64px; opacity: 0.95; position: relative; z-index: 1; }
.project-banner img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; z-index: 0; }
.project-banner.galaxy { background: linear-gradient(135deg, #1d4ed8, #0ea5e9); }
.project-banner.patro { background: linear-gradient(135deg, #0e7490, #059669); }
.project-banner.coming { background: linear-gradient(135deg, #334155, #1e293b); }

.banner-badge {
  position: absolute;
  top: 1rem; left: 1rem;
  z-index: 2;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  background: var(--overlay);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
}

.project-body { padding: 1.5rem 1.6rem 1.7rem; display: flex; flex-direction: column; flex: 1; }

.project-num { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.5rem; }

.project-body h3 { font-family: var(--font-head); font-size: 1.35rem; margin-bottom: 0.55rem; }
.project-body p { color: var(--text-soft); font-size: 0.98rem; flex: 1; }

.project-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.1rem 0; }
.project-tag {
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text-soft);
  font-size: 0.82rem;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.98rem;
}
.project-link svg { width: 18px; height: 18px; transition: transform 0.2s ease; }
.project-link:hover svg { transform: translateX(4px); }

.section-actions { text-align: center; margin-top: 2.6rem; }

/* ============================================================
   Mission
   ============================================================ */
.mission { text-align: center; }
.mission-quote {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
  font-family: var(--font-head);
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 600;
  line-height: 1.5;
  color: var(--text);
  padding: 0 2rem;
}
.quote-mark {
  position: absolute;
  top: -1.4rem; left: 0;
  font-size: 5rem;
  line-height: 1;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.9;
}
.quote-mark.end { left: auto; right: 0; top: auto; bottom: -3.2rem; }
.mission-sign { margin-top: 2.2rem; font-family: var(--font-mono); color: var(--accent); font-size: 0.95rem; }

/* ============================================================
   CTA band
   ============================================================ */
.cta-band { padding: 0; }
.cta-inner {
  text-align: center;
  padding: 4.5rem 2rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(700px 300px at 50% 0%, var(--hero-glow-1), transparent 70%),
    var(--bg-soft);
}
.cta-title { font-family: var(--font-head); font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; margin-bottom: 0.7rem; }
.cta-text { color: var(--text-soft); margin-bottom: 1.8rem; font-size: 1.05rem; }
.cta-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.9rem; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--border); padding-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2.5rem; padding-bottom: 2.5rem; }
.footer-brand .logo { margin-bottom: 1rem; }
.footer-brand p { color: var(--text-soft); font-size: 0.95rem; max-width: 340px; margin-bottom: 1.2rem; }

.footer-socials { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.footer-socials a {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-soft);
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.footer-socials a:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-3px); }
.footer-socials svg { width: 18px; height: 18px; }

.footer-col h4 { font-family: var(--font-head); font-size: 1rem; margin-bottom: 1rem; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul a { color: var(--text-soft); font-size: 0.95rem; transition: color 0.2s ease; }
.footer-col ul a:hover { color: var(--accent); }

.footer-mail, .footer-loc { color: var(--text-soft); font-size: 0.95rem; margin-bottom: 0.4rem; }
.footer-col .btn { margin-top: 0.8rem; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  padding: 1.4rem 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}
.footer-links { display: flex; gap: 0.6rem; align-items: center; }
.footer-links a { color: var(--text-soft); }
.footer-links a:hover { color: var(--accent); }
.footer-links span { color: var(--muted); }

/* ============================================================
   Back to top
   ============================================================ */
.back-to-top {
  position: fixed;
  right: 1.4rem; bottom: 1.4rem;
  z-index: 900;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-soft);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease, color 0.2s ease, border-color 0.2s ease;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { color: var(--accent); border-color: var(--accent); }
.back-to-top svg { width: 22px; height: 22px; }

/* ============================================================
   Education — timeline
   ============================================================ */
.timeline { position: relative; max-width: 780px; margin: 0 auto; padding-left: 1.4rem; }
.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  opacity: 0.5;
  border-radius: 2px;
}
.timeline-item { position: relative; padding-bottom: 2rem; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: calc(-1.4rem - 5px);
  top: 6px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--accent);
}
.timeline-card {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.7rem;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.timeline-card:hover { transform: translateX(6px); border-color: var(--accent); }
.timeline-phase { display: inline-block; font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.5rem; }
.timeline-card h3 { font-family: var(--font-head); font-size: 1.3rem; margin-bottom: 0.3rem; }
.timeline-org { color: var(--text); font-weight: 600; font-size: 0.98rem; }
.timeline-meta { color: var(--muted); font-size: 0.9rem; }

/* Study chips */
.study-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem; }
.study-chip {
  padding: 0.6rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-soft);
  font-size: 0.95rem;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.study-chip:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-2px); }

/* ============================================================
   Skills
   ============================================================ */
.skills-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.skills-block { padding: 2rem; border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.skills-title { font-family: var(--font-head); font-size: 1.3rem; margin-bottom: 1.4rem; }

.skill-chips { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
.skill-chips li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  font-weight: 500;
  font-size: 0.95rem;
}
.chip-icon {
  min-width: 40px; height: 34px;
  display: grid; place-items: center;
  padding: 0 0.35rem;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
}

.skill-bars { display: flex; flex-direction: column; gap: 1.3rem; }
.bar-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.5rem; font-size: 0.95rem; }
.bar-label { font-family: var(--font-mono); color: var(--accent); font-size: 0.88rem; }
.bar-track { height: 8px; border-radius: 8px; background: var(--surface-3); overflow: hidden; }
.bar-track i { display: block; height: 100%; width: 0; border-radius: 8px; background: var(--grad); transition: width 1.1s ease; }
.bar-track i.animate { width: var(--w); }

/* Tool pills */
.tool-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.9rem; }
.tool-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-soft);
  font-size: 0.95rem;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.tool-pill:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
.tool-pill svg { width: 18px; height: 18px; }

/* ============================================================
   Contact
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 3rem; align-items: start; }

.contact-intro { color: var(--text-soft); margin-bottom: 1.8rem; font-size: 1.05rem; }

.contact-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  margin-bottom: 0.9rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
a.contact-row:hover { border-color: var(--accent); transform: translateX(4px); }
.contact-icon {
  flex-shrink: 0;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
}
.contact-icon svg { width: 22px; height: 22px; }
.contact-label { display: block; font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.contact-value { display: block; color: var(--text); font-weight: 500; }
.contact-copy {
  margin-left: auto;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text-soft);
  font-size: 0.82rem;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.contact-copy:hover, .contact-copy.copied { color: var(--success); border-color: var(--success); }

.contact-status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 1rem;
  margin-top: 0.6rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-soft);
  font-size: 0.9rem;
}

.contact-form {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-field { margin-bottom: 1.1rem; }
.form-field label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 0.45rem; }
.form-field input, .form-field textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  color: var(--text);
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-field input:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--muted); }
.form-field input.invalid, .form-field textarea.invalid { border-color: var(--danger); }

.form-submit { width: 100%; justify-content: center; margin-top: 0.4rem; }
.form-status { margin-top: 1rem; font-size: 0.95rem; text-align: center; }
.form-status.error { color: var(--danger); }
.form-status.success { color: var(--success); }

/* Social cards */
.social-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.2rem; }
.social-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 1.6rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  text-align: center;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.social-card:hover { transform: translateY(-5px); border-color: var(--accent); box-shadow: var(--shadow); }
.social-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; color: #fff; }
.social-icon svg { width: 26px; height: 26px; }
.social-icon.yt { background: linear-gradient(135deg, #ef4444, #dc2626); }
.social-icon.fb { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.social-icon.ig { background: linear-gradient(135deg, #ec4899, #8b5cf6); }
.social-icon.in { background: linear-gradient(135deg, #38bdf8, #0284c7); }
.social-icon.gh { background: linear-gradient(135deg, #334155, #0f172a); }
.social-name { font-weight: 700; font-family: var(--font-head); }
.social-handle { font-size: 0.82rem; color: var(--muted); }

/* Map */
.map-wrap { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.map-wrap iframe { width: 100%; height: 380px; border: 0; display: block; }

/* ============================================================
   Gallery
   ============================================================ */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.gallery-item {
  position: relative;
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  aspect-ratio: 4 / 3;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2.2rem 1rem 0.8rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gallery-item:hover .gallery-caption { opacity: 1; }

/* ============================================================
   Reveal animation
   ============================================================ */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.visible { opacity: 1; transform: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 992px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .value-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .social-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  body { font-size: 16px; }

  .nav-toggle { display: flex; }
  .nav-actions .btn { display: none; }

  .nav-menu {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: var(--bg-soft);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    z-index: 999;
  }
  .nav-menu.open { opacity: 1; visibility: visible; transform: none; }
  .nav-menu a { font-size: 1.15rem; padding: 0.6rem 1.4rem; }

  .cards-grid, .cards-grid.cols-2 { grid-template-columns: 1fr; }
  .projects-list { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .social-grid { grid-template-columns: repeat(2, 1fr); }
  .about-info { grid-template-columns: 1fr; }
  .info-item, .info-item:nth-child(2n) { border-right: 0; border-bottom: 1px solid var(--border); }
  .info-item:last-child { border-bottom: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .section { padding: 4rem 0; }
  .stat strong { font-size: 2rem; }
}

@media (max-width: 480px) {
  .social-grid { grid-template-columns: 1fr; }
  .value-grid { grid-template-columns: 1fr; }
  .skill-chips { grid-template-columns: 1fr; }
  .hero-card-stats { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
