@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ── TOKENS ─────────────────────────────────────────── */
:root {
  --white:       #FFFFFF;
  --off:         #F7F8FC;
  --ink:         #08080F;
  --mid:         #3A3A5C;
  --muted:       #6B6B8A;
  --rule:        #E4E4EF;

  --neon-blue:   #4F6EF7;
  --neon-purple: #9B59FF;
  --neon-cyan:   #00D4FF;
  --accent:      #4F6EF7;
  --accent-lt:   #EEF1FF;

  --dark:        #07070F;
  --dark-2:      #0D0D1C;
  --dark-card:   #10101F;
  --dark-border: rgba(255,255,255,0.07);
  --dark-muted:  rgba(255,255,255,0.48);

  --grad-main:   linear-gradient(135deg, #4F6EF7 0%, #9B59FF 50%, #00D4FF 100%);
  --grad-text:   linear-gradient(135deg, #ffffff 0%, #c4b5fd 40%, #67e8f9 100%);
  --grad-btn:    linear-gradient(135deg, #4F6EF7, #9B59FF);

  --radius:      12px;
  --max:         1200px;
  --nav-h:       68px;
}

/* ── RESET ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--white);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ── NAV ─────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(7,7,15,0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--dark-border);
  display: flex; align-items: center;
}
.nav-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 32px;
  width: 100%; display: flex; justify-content: space-between; align-items: center;
}
.nav-logo {
  font-family: 'Instrument Serif', serif;
  font-size: 1.4rem; letter-spacing: -0.02em; color: var(--white);
}
.nav-logo span {
  background: var(--grad-main);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.nav-links { display: flex; gap: 36px; align-items: center; }
.nav-links a {
  font-size: 0.875rem; font-weight: 500; color: rgba(255,255,255,0.55);
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-cta {
  background: var(--grad-btn) !important;
  color: var(--white) !important;
  padding: 9px 20px; border-radius: 8px;
  font-weight: 600 !important;
  box-shadow: 0 0 20px rgba(79,110,247,0.35);
  transition: box-shadow 0.2s, transform 0.15s !important;
}
.nav-cta:hover {
  box-shadow: 0 0 36px rgba(155,89,255,0.55) !important;
  transform: translateY(-1px);
  color: var(--white) !important;
}

/* hamburger */
.nav-burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.nav-burger span { display: block; width: 24px; height: 2px; background: var(--white); transition: 0.3s; border-radius: 2px; }

/* ── HERO ────────────────────────────────────────────── */
section:first-of-type {
  background: var(--dark);
  position: relative;
  overflow: hidden;
}
/* Ambient glow blobs behind hero */
section:first-of-type::before {
  content: '';
  position: absolute; top: -180px; left: -180px;
  width: 720px; height: 720px;
  background: radial-gradient(circle, rgba(79,110,247,0.14) 0%, transparent 68%);
  pointer-events: none;
}
section:first-of-type::after {
  content: '';
  position: absolute; bottom: -120px; right: -80px;
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(155,89,255,0.11) 0%, transparent 68%);
  pointer-events: none;
}

.hero {
  padding-top: calc(var(--nav-h) + 80px);
  padding-bottom: 100px;
  padding-left: 32px; padding-right: 32px;
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
  position: relative; z-index: 1;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(79,110,247,0.12);
  border: 1px solid rgba(79,110,247,0.28);
  color: var(--neon-cyan);
  padding: 6px 14px; border-radius: 100px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.07em;
  text-transform: uppercase; margin-bottom: 24px;
}
.hero-eyebrow::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--neon-cyan); animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.25} }

.hero h1 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  line-height: 1.08; letter-spacing: -0.03em;
  color: var(--white); margin-bottom: 24px;
}
.hero h1 em {
  font-style: italic;
  background: var(--grad-text);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-sub {
  font-size: 1.05rem; color: var(--dark-muted);
  max-width: 460px; margin-bottom: 40px; line-height: 1.7;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn-primary {
  background: var(--grad-btn);
  color: var(--white);
  padding: 14px 28px; border-radius: 10px;
  font-weight: 600; font-size: 0.95rem;
  box-shadow: 0 0 28px rgba(79,110,247,0.4);
  transition: box-shadow 0.25s, transform 0.18s;
  display: inline-block;
}
.btn-primary:hover { box-shadow: 0 0 48px rgba(155,89,255,0.55); transform: translateY(-2px); }

.btn-outline {
  border: 1.5px solid rgba(255,255,255,0.14); color: rgba(255,255,255,0.85);
  padding: 14px 28px; border-radius: 10px;
  font-weight: 500; font-size: 0.95rem;
  backdrop-filter: blur(8px);
  transition: border-color 0.2s, background 0.2s, transform 0.18s;
  display: inline-block;
}
.btn-outline:hover {
  border-color: var(--neon-blue);
  background: rgba(79,110,247,0.1);
  color: var(--white);
  transform: translateY(-2px);
}

.hero-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 56px;
}
.stat {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius); padding: 24px;
  position: relative; overflow: hidden;
}
.stat::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--grad-main);
}
.stat-num {
  font-family: 'Instrument Serif', serif;
  font-size: 2.4rem; line-height: 1;
  background: var(--grad-main);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.stat-label { font-size: 0.8rem; color: var(--dark-muted); margin-top: 4px; font-weight: 500; }

/* Hero right visual */
.hero-visual {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 20px;
  height: 440px; display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  box-shadow: 0 0 80px rgba(79,110,247,0.08), inset 0 1px 0 rgba(255,255,255,0.04);
}
.hero-visual-inner { text-align: center; z-index: 1; }
.hero-logo-big {
  font-family: 'Instrument Serif', serif;
  font-size: 4rem; color: var(--white); letter-spacing: -0.04em;
}
.hero-logo-big span {
  background: var(--grad-main);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-tag {
  font-size: 0.8rem; color: var(--dark-muted);
  margin-top: 8px; letter-spacing: 0.1em; text-transform: uppercase;
}
.hero-logo-img {
  width: 210px; height: 210px; border-radius: 22px;
  object-fit: cover; margin: 0 auto 16px;
  display: block;
  box-shadow: 0 0 48px rgba(79,110,247,0.25), 0 0 0 1px rgba(255,255,255,0.06);
}
.hero-wordmark {
  font-family: 'Instrument Serif', serif;
  font-size: 2rem; letter-spacing: -0.03em;
  color: var(--white); margin-bottom: 4px;
}
.hero-wordmark span {
  background: var(--grad-main);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-visual-pills {
  margin-top: 18px;
  display: flex; gap: 8px; justify-content: center; flex-wrap: wrap;
}
.hero-pill {
  font-size: 0.72rem; font-weight: 500;
  background: rgba(255,255,255,0.07);
  padding: 5px 14px; border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6);
}
.hero-blob { position: absolute; border-radius: 50%; opacity: 0.45; }
.blob1 {
  width: 300px; height: 300px; top: -80px; right: -80px;
  background: radial-gradient(circle, rgba(155,89,255,0.5), transparent);
}
.blob2 {
  width: 220px; height: 220px; bottom: -60px; left: -60px;
  background: radial-gradient(circle, rgba(0,212,255,0.45), transparent);
}

/* ── SECTION CHROME ──────────────────────────────────── */
section { padding: 96px 32px; }
.section-inner { max-width: var(--max); margin: 0 auto; }
.section-label {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--grad-main);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 14px; display: inline-block;
}
.section-title {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--ink); line-height: 1.15; letter-spacing: -0.02em;
  max-width: 600px; margin-bottom: 16px;
}
.section-sub { color: var(--muted); font-size: 1rem; max-width: 520px; line-height: 1.7; }
.section-header { margin-bottom: 64px; }

/* ── SERVICES ────────────────────────────────────────── */
#services { background: var(--off); }
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px;
}
.service-card {
  background: var(--white); border-radius: var(--radius);
  padding: 36px 32px;
  border: 1px solid var(--rule);
  position: relative; overflow: hidden;
  transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad-main); opacity: 0; transition: opacity 0.3s;
}
.service-card:hover {
  box-shadow: 0 12px 40px rgba(79,110,247,0.1);
  transform: translateY(-4px);
  border-color: rgba(79,110,247,0.2);
}
.service-card:hover::before { opacity: 1; }
.service-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(79,110,247,0.08), rgba(155,89,255,0.08));
  border: 1px solid rgba(79,110,247,0.14);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; font-size: 1.4rem;
}
.service-card h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 10px; }
.service-card p { font-size: 0.875rem; color: var(--muted); line-height: 1.7; }

/* ── PROJECTS (home preview — dark section) ──────────── */
#projects {
  background: var(--dark);
  position: relative; overflow: hidden;
}
#projects::before {
  content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 800px; height: 400px;
  background: radial-gradient(ellipse, rgba(79,110,247,0.07) 0%, transparent 70%);
  pointer-events: none;
}
#projects .section-title { color: var(--white); }
#projects .section-sub   { color: var(--dark-muted); }

.projects-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 28px;
}
.project-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 16px; overflow: hidden;
  transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
}
.project-card:hover {
  box-shadow: 0 0 48px rgba(79,110,247,0.14);
  transform: translateY(-4px);
  border-color: rgba(79,110,247,0.28);
}
.project-thumb {
  height: 200px; display: flex; align-items: center; justify-content: center;
  font-size: 3rem; font-weight: 700; letter-spacing: -0.04em;
  font-family: 'Instrument Serif', serif;
}
.project-body { padding: 28px; }
.project-tag {
  display: inline-block; font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  background: rgba(79,110,247,0.14);
  color: var(--neon-cyan);
  border: 1px solid rgba(79,110,247,0.2);
  padding: 4px 10px; border-radius: 6px; margin-bottom: 12px;
}
.project-body h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; color: var(--white); }
.project-body p  { font-size: 0.875rem; color: var(--dark-muted); margin-bottom: 20px; line-height: 1.65; }
.project-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.875rem; font-weight: 600;
  background: var(--grad-main);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  transition: gap 0.2s;
}
.project-link:hover { gap: 10px; }
.view-all-wrap { text-align: center; margin-top: 56px; }

/* Product showcase card (two-column layout inside a project card) */
.product-showcase {
  display: grid; grid-template-columns: 1fr 1fr;
  border: 1px solid var(--dark-border);
  border-radius: 16px; overflow: hidden;
  background: var(--dark-card);
}
.product-showcase .project-thumb {
  height: auto; min-height: 280px;
  flex-direction: column; gap: 16px;
}
.product-showcase .project-body h3 { color: var(--white); }
.product-showcase .project-body p  { color: var(--dark-muted); }
html.light-mode .product-showcase {
  background: var(--white);
  border-color: var(--rule);
}
html.light-mode .product-showcase .project-body h3 { color: var(--ink); }
html.light-mode .product-showcase .project-body p  { color: var(--muted); }
@media (max-width: 768px) {
  .product-showcase { grid-template-columns: 1fr; }
}

/* ── TEAM ────────────────────────────────────────────── */
#team { background: var(--white); }
.team-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px;
}
.member-card {
  background: var(--white); border-radius: 16px;
  border: 1px solid var(--rule); overflow: hidden;
  transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
  cursor: pointer;
}
.member-card:hover {
  box-shadow: 0 16px 48px rgba(79,110,247,0.1);
  transform: translateY(-5px);
  border-color: rgba(79,110,247,0.25);
}
.member-avatar {
  height: 260px; display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem; position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--dark), var(--dark-2));
}
.member-avatar img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 18%; display: block;
}
.member-avatar::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(7,7,15,0.32) 100%);
}
.member-info { padding: 24px; }
.member-info h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 4px; }
.member-role {
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em; margin-bottom: 10px;
  background: var(--grad-main);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.member-bio { font-size: 0.82rem; color: var(--muted); line-height: 1.6; margin-bottom: 18px; }
.member-links { display: flex; gap: 10px; }
.member-links a {
  width: 34px; height: 34px; border-radius: 8px;
  border: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; color: var(--mid); transition: all 0.2s;
}
.member-links a:hover {
  background: var(--grad-btn);
  color: var(--white); border-color: transparent;
  box-shadow: 0 0 14px rgba(79,110,247,0.4);
}
.view-profile-btn {
  display: block; text-align: center;
  background: var(--off); color: var(--ink);
  padding: 10px; font-size: 0.8rem; font-weight: 600;
  border-top: 1px solid var(--rule); transition: all 0.25s;
}
.view-profile-btn:hover {
  background: var(--grad-btn);
  color: var(--white);
  box-shadow: 0 -4px 20px rgba(79,110,247,0.18);
}

/* ── CTA STRIP ───────────────────────────────────────── */
.cta-strip {
  background: var(--dark);
  color: var(--white);
  text-align: center; padding: 88px 32px;
  position: relative; overflow: hidden;
}
.cta-strip::before {
  content: ''; position: absolute;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 700px; height: 320px;
  background: radial-gradient(ellipse, rgba(155,89,255,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.cta-strip h2 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px; letter-spacing: -0.02em;
  background: var(--grad-text);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  position: relative;
}
.cta-strip p {
  color: var(--dark-muted); margin-bottom: 40px;
  font-size: 1rem; position: relative;
}
.cta-strip p a { color: var(--neon-cyan); font-weight: 600; }
.btn-white {
  background: var(--grad-btn);
  color: var(--white);
  padding: 15px 32px; border-radius: 10px;
  font-weight: 700; font-size: 1rem;
  box-shadow: 0 0 36px rgba(79,110,247,0.4);
  transition: box-shadow 0.25s, transform 0.2s;
  display: inline-block; position: relative;
}
.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 56px rgba(155,89,255,0.55);
}

/* ── FOOTER ──────────────────────────────────────────── */
footer {
  background: var(--dark);
  border-top: 1px solid var(--dark-border);
  padding: 64px 32px 40px;
}
.footer-inner { max-width: var(--max); margin: 0 auto; }
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 56px;
}
.footer-brand h3 {
  font-family: 'Instrument Serif', serif;
  font-size: 1.4rem; margin-bottom: 12px; color: var(--white);
}
.footer-brand h3 span {
  background: var(--grad-main);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.footer-brand p { font-size: 0.875rem; color: var(--dark-muted); line-height: 1.7; max-width: 280px; }
.footer-col h4 {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; margin-bottom: 20px; color: var(--white);
}
.footer-col a {
  display: block; font-size: 0.875rem;
  color: var(--dark-muted); margin-bottom: 10px; transition: color 0.2s;
}
.footer-col a:hover { color: var(--neon-cyan); }
.footer-bottom {
  border-top: 1px solid var(--dark-border); padding-top: 28px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: 0.8rem; color: var(--dark-muted); }

/* ── PROJECTS PAGE ───────────────────────────────────── */
.page-hero {
  padding: calc(var(--nav-h) + 72px) 32px 72px;
  max-width: var(--max); margin: 0 auto;
  border-bottom: 1px solid var(--rule);
}
.page-hero .section-label { margin-bottom: 12px; }
.page-hero h1 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 16px;
}
.page-hero p { font-size: 1.05rem; color: var(--muted); max-width: 540px; line-height: 1.7; }

.filter-bar {
  display: flex; gap: 10px; flex-wrap: wrap;
  max-width: var(--max); margin: 0 auto;
  padding: 32px 32px 0;
}
.filter-btn {
  padding: 8px 18px; border-radius: 100px;
  font-size: 0.8rem; font-weight: 600;
  border: 1.5px solid var(--rule); color: var(--mid);
  cursor: pointer; transition: all 0.2s; background: var(--white);
}
.filter-btn.active, .filter-btn:hover {
  background: var(--grad-btn);
  color: var(--white); border-color: transparent;
  box-shadow: 0 0 18px rgba(79,110,247,0.3);
}

.projects-full { padding: 48px 32px 96px; max-width: var(--max); margin: 0 auto; }

/* Project cards on the projects page are light */
.project-card-full {
  border-radius: 16px; background: var(--white);
  border: 1px solid var(--rule); overflow: hidden;
  transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
}
.project-card-full:hover {
  box-shadow: 0 16px 48px rgba(79,110,247,0.1);
  transform: translateY(-4px);
  border-color: rgba(79,110,247,0.2);
}
.project-card-full .project-thumb { height: 220px; }
.project-card-full .project-body { padding: 28px; }
.project-card-full .project-body h3 { color: var(--ink); }
.project-card-full .project-body p  { color: var(--muted); }
.project-card-full .project-tag {
  background: var(--accent-lt); color: var(--neon-blue); border: none;
}
.project-card-full .project-link {
  background: var(--grad-btn);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.projects-full .projects-grid { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }

.tech-stack { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.tech-pill {
  font-size: 0.7rem; font-weight: 600; padding: 3px 9px; border-radius: 6px;
  background: var(--off); color: var(--mid);
}

/* ── PROFILE PAGE ────────────────────────────────────── */
.profile-hero {
  padding: calc(var(--nav-h) + 80px) 32px 80px;
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: auto 1fr; gap: 64px; align-items: start;
}
.profile-avatar-wrap { position: relative; }
.profile-avatar {
  width: 200px; height: 200px; border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 5rem;
  background: var(--off);
  border: 2px solid transparent;
  outline: 2px solid transparent;
  box-shadow: 0 0 0 2px transparent;
  position: relative; overflow: hidden;
  background-image: linear-gradient(var(--white), var(--white));
  background-origin: padding-box;
  border-image: var(--grad-main) 1;
}

/* gradient border via box-shadow trick */
.profile-avatar-wrap::before {
  content: ''; position: absolute;
  inset: -2px; border-radius: 22px; z-index: -1;
  background: var(--grad-main);
}
.profile-avatar-wrap::after { display: none; }

.profile-avatar {
  width: 200px; height: 200px; border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 5rem; background: var(--off);
  border: 2px solid transparent; overflow: hidden; position: relative;
}
.profile-avatar img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 15%; display: block;
}
.profile-role-badge {
  position: absolute; bottom: -14px; left: 50%; transform: translateX(-50%);
  background: var(--grad-btn); color: var(--white);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 6px 16px; border-radius: 100px; white-space: nowrap;
  box-shadow: 0 4px 18px rgba(79,110,247,0.4);
}
.profile-info { padding-top: 8px; }
.profile-info h1 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(2.2rem, 4vw, 3.2rem); letter-spacing: -0.02em; margin-bottom: 8px;
}
.profile-tagline {
  font-size: 1.05rem; color: var(--muted);
  margin-bottom: 28px; line-height: 1.65; max-width: 520px;
}
.profile-links { display: flex; gap: 12px; flex-wrap: wrap; }
.profile-link-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 10px;
  font-size: 0.875rem; font-weight: 600;
  border: 1.5px solid var(--rule); color: var(--ink);
  transition: all 0.2s;
}
.profile-link-btn:hover {
  background: var(--grad-btn); color: var(--white); border-color: transparent;
  box-shadow: 0 0 22px rgba(79,110,247,0.3);
}
.profile-link-btn.primary {
  background: var(--grad-btn); color: var(--white); border-color: transparent;
  box-shadow: 0 0 22px rgba(79,110,247,0.3);
}
.profile-link-btn.primary:hover { box-shadow: 0 0 36px rgba(155,89,255,0.5); }

.profile-sections { max-width: var(--max); margin: 0 auto; padding: 0 32px 96px; }
.profile-section { border-top: 1px solid var(--rule); padding: 56px 0; }
.profile-section-label {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  background: var(--grad-main);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 10px; display: inline-block;
}
.profile-section h2 {
  font-family: 'Instrument Serif', serif;
  font-size: 1.8rem; margin-bottom: 28px; letter-spacing: -0.01em;
}
.skills-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.skill-pill {
  font-size: 0.82rem; font-weight: 500; padding: 7px 16px; border-radius: 8px;
  background: linear-gradient(135deg, rgba(79,110,247,0.04), rgba(155,89,255,0.04));
  color: var(--mid); border: 1px solid rgba(79,110,247,0.12);
  transition: all 0.2s;
}
.skill-pill:hover {
  background: linear-gradient(135deg, rgba(79,110,247,0.1), rgba(155,89,255,0.1));
  border-color: rgba(79,110,247,0.28); color: var(--neon-blue);
}
.exp-item { margin-bottom: 32px; }
.exp-item h4 { font-size: 1rem; font-weight: 600; margin-bottom: 4px; }
.exp-item .exp-meta {
  font-size: 0.82rem; font-weight: 600; margin-bottom: 8px;
  background: var(--grad-main);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.exp-item p { font-size: 0.9rem; color: var(--muted); line-height: 1.7; }
.profile-projects-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px;
}

/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute;
    top: var(--nav-h); left: 0; right: 0;
    background: rgba(7,7,15,0.97);
    padding: 24px 32px; border-bottom: 1px solid var(--dark-border); gap: 20px;
  }
  .nav-links.open a { color: rgba(255,255,255,0.7); }
  .hero { grid-template-columns: 1fr; gap: 48px; padding-top: calc(var(--nav-h) + 48px); }
  .hero-visual { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .profile-hero { grid-template-columns: 1fr; }
  .profile-avatar { width: 140px; height: 140px; font-size: 3.5rem; }
}
@media (max-width: 480px) {
  section { padding: 64px 20px; }
  .footer-top { grid-template-columns: 1fr; }
}

/* ── THEME TOGGLE BUTTON ─────────────────────────────── */
.theme-toggle {
  width: 38px; height: 38px; border-radius: 10px;
  border: 1px solid var(--dark-border);
  background: rgba(255,255,255,0.07);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.8); transition: all 0.2s;
  flex-shrink: 0;
}
.theme-toggle:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.2);
  color: var(--white);
}
.theme-toggle svg { display: block; }

/* ── LIGHT MODE OVERRIDES ────────────────────────────── */
html.light-mode nav {
  background: rgba(255,255,255,0.92);
  border-bottom-color: var(--rule);
}
html.light-mode .nav-logo { color: var(--ink); }
html.light-mode .nav-links a { color: var(--mid); }
html.light-mode .nav-links a:hover,
html.light-mode .nav-links a.active { color: var(--accent); }
html.light-mode .nav-burger span { background: var(--ink); }
html.light-mode .nav-links.open {
  background: var(--white);
  border-bottom-color: var(--rule);
}
html.light-mode .nav-links.open a { color: var(--mid); }
html.light-mode .theme-toggle {
  border-color: var(--rule);
  background: var(--off);
  color: var(--mid);
}
html.light-mode .theme-toggle:hover {
  background: var(--accent-lt);
  border-color: rgba(79,110,247,0.2);
  color: var(--accent);
}

/* Hero — light */
html.light-mode section:first-of-type {
  background: linear-gradient(145deg, #F0F2FF 0%, #FAFBFF 55%, #EEF3FF 100%);
}
html.light-mode section:first-of-type::before {
  background: radial-gradient(circle, rgba(79,110,247,0.08) 0%, transparent 68%);
}
html.light-mode section:first-of-type::after {
  background: radial-gradient(circle, rgba(155,89,255,0.06) 0%, transparent 68%);
}
html.light-mode .hero h1 { color: var(--ink); }
html.light-mode .hero-sub { color: var(--muted); }
html.light-mode .hero-eyebrow {
  background: rgba(79,110,247,0.07);
  border-color: rgba(79,110,247,0.18);
}
html.light-mode .btn-outline {
  border-color: var(--rule);
  color: var(--mid);
  backdrop-filter: none;
}
html.light-mode .btn-outline:hover {
  border-color: var(--accent);
  background: rgba(79,110,247,0.05);
  color: var(--accent);
}
html.light-mode .stat {
  background: var(--white);
  border-color: var(--rule);
}
html.light-mode .hero-visual {
  background: var(--white);
  border-color: var(--rule);
  box-shadow: 0 4px 40px rgba(79,110,247,0.06);
}
html.light-mode .hero-tag { color: var(--muted); }
html.light-mode .hero-wordmark { color: var(--ink); }
html.light-mode .hero-pill {
  background: rgba(79,110,247,0.06);
  border-color: rgba(79,110,247,0.15);
  color: var(--mid);
}
html.light-mode .blob1 {
  background: radial-gradient(circle, rgba(79,110,247,0.12), transparent);
}
html.light-mode .blob2 {
  background: radial-gradient(circle, rgba(155,89,255,0.1), transparent);
}

/* Projects section — light */
html.light-mode #projects { background: var(--off); }
html.light-mode #projects::before {
  background: radial-gradient(ellipse, rgba(79,110,247,0.04) 0%, transparent 70%);
}
html.light-mode #projects .section-title { color: var(--ink); }
html.light-mode #projects .section-sub   { color: var(--muted); }
html.light-mode .project-card {
  background: var(--white);
  border-color: var(--rule);
}
html.light-mode .project-card:hover {
  box-shadow: 0 16px 48px rgba(79,110,247,0.09);
  border-color: rgba(79,110,247,0.2);
}
html.light-mode .project-card .project-body h3 { color: var(--ink); }
html.light-mode .project-card .project-body p  { color: var(--muted); }
html.light-mode .project-card .project-tag {
  background: var(--accent-lt);
  color: var(--neon-blue);
  border-color: rgba(79,110,247,0.1);
}

/* CTA — gradient instead of dark */
html.light-mode .cta-strip {
  background: linear-gradient(135deg, #3B5BF5 0%, #7C3AED 60%, #0EA5E9 100%);
}
html.light-mode .cta-strip::before {
  background: radial-gradient(ellipse, rgba(255,255,255,0.12) 0%, transparent 70%);
}
html.light-mode .cta-strip p { color: rgba(255,255,255,0.72); }
html.light-mode .cta-strip p a { color: rgba(255,255,255,0.95); }

/* Footer — light */
html.light-mode footer {
  background: var(--off);
  border-top-color: var(--rule);
}
html.light-mode .footer-brand h3 { color: var(--ink); }
html.light-mode .footer-brand p  { color: var(--muted); }
html.light-mode .footer-col h4   { color: var(--ink); }
html.light-mode .footer-col a    { color: var(--muted); }
html.light-mode .footer-col a:hover { color: var(--accent); }
html.light-mode .footer-bottom { border-top-color: var(--rule); }
html.light-mode .footer-bottom p { color: var(--muted); }
