@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap");

/* ===================================================================
   DESIGN SYSTEM — Bhavana Priya Portfolio
   
   Font pairing: Outfit (display + body) + JetBrains Mono (code/meta)
   Accent: single emerald (#059669) locked across all sections
   Radius: 12px (cards/containers), 999px (pills/buttons) — documented
   Grid: 8px base unit
   =================================================================== */

:root {
  --bg: #fafafa;
  --bg-elevated: #ffffff;
  --bg-tint: #f3f4f6;
  --bg-ink: #111827;
  --text: #18181b;
  --text-secondary: #52525b;
  --text-tertiary: #a1a1aa;
  --text-inverse: #fafafa;
  --accent: #059669;
  --accent-soft: rgba(5, 150, 105, 0.08);
  --accent-medium: rgba(5, 150, 105, 0.15);
  --border: rgba(24, 24, 27, 0.07);
  --border-strong: rgba(24, 24, 27, 0.12);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.02);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.08);
  --font: "Outfit", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --pad: clamp(20px, 5vw, 80px);
  --max-w: 1200px;
  --radius: 12px;
  --radius-pill: 999px;
}

body.dark {
  --bg: #09090b;
  --bg-elevated: #18181b;
  --bg-tint: #1c1c20;
  --bg-ink: #fafafa;
  --text: #fafafa;
  --text-secondary: #a1a1aa;
  --text-tertiary: #71717a;
  --text-inverse: #09090b;
  --accent: #34d399;
  --accent-soft: rgba(52, 211, 153, 0.1);
  --accent-medium: rgba(52, 211, 153, 0.18);
  --border: rgba(250, 250, 250, 0.08);
  --border-strong: rgba(250, 250, 250, 0.14);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.5);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
h1,h2,h3,h4 { font-family: var(--font); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; color: var(--text); }

/* ── NAV ──────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; padding: 0 var(--pad);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav__brand {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  font-family: var(--font); font-weight: 800; font-size: 14px;
  text-decoration: none;
  background: var(--accent); color: #fff;
  border-radius: 10px;
}
.nav__links {
  display: flex; gap: 32px; list-style: none; margin: 0; padding: 0;
}
.nav__links a {
  font-size: 13px; font-weight: 500; letter-spacing: 0.01em;
  text-decoration: none; color: var(--text-secondary);
  transition: color 0.15s ease;
}
.nav__links a:hover, .nav__links a:focus-visible { color: var(--text); }
.nav__right { display: flex; align-items: center; gap: 12px; }
.nav__toggle {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--border-strong); background: var(--bg-elevated);
  color: var(--text); cursor: pointer; font-size: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform 0.15s ease;
}
.nav__hamburger {
  display: none; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--border-strong); background: var(--bg-elevated);
  color: var(--text); cursor: pointer; font-size: 18px;
  align-items: center; justify-content: center;
}

@media (prefers-reduced-motion: no-preference) {
  .nav__toggle:hover { transform: scale(1.08); }
}

/* ── HERO ─────────────────────────────────────── */
.hero {
  display: grid; grid-template-columns: 1.2fr 0.8fr;
  gap: 48px; align-items: center;
  max-width: var(--max-w); margin: 0 auto;
  padding: clamp(48px, 6vw, 80px) var(--pad) clamp(40px, 5vw, 64px);
}
.hero__eyebrow {
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 16px;
}
.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(42px, 7vw, 72px);
  font-weight: 800; line-height: 1.05;
}
.hero h1 em {
  font-style: normal; font-weight: 300;
  color: var(--text-secondary);
}
.hero__sub {
  margin: 0 0 32px; max-width: 38ch;
  font-size: 17px; color: var(--text-secondary); line-height: 1.65;
}
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px;
  font-family: var(--font); font-size: 14px; font-weight: 600;
  text-decoration: none; border-radius: var(--radius-pill);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  cursor: pointer; border: none;
}
.btn--primary {
  background: var(--text); color: var(--text-inverse);
  box-shadow: var(--shadow-md);
}
.btn--ghost {
  background: transparent; color: var(--text);
  border: 1.5px solid var(--border-strong);
}
@media (prefers-reduced-motion: no-preference) {
  .btn:hover { transform: translateY(-1px); }
  .btn--primary:hover { box-shadow: var(--shadow-lg); }
  .btn--ghost:hover { background: var(--accent-soft); border-color: var(--accent); }
  .btn:active { transform: scale(0.98); }
}

/* Profile panel */
.hero__panel {
  display: flex; flex-direction: column; gap: 12px;
  padding: 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
}
.hero__portrait {
  overflow: hidden; border-radius: var(--radius);
}
.hero__portrait img {
  width: 100%; height: 280px;
  object-fit: cover; object-position: center top;
}
.hero__stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.stat {
  padding: 14px 16px;
  background: var(--bg-tint);
  border-radius: 10px;
}
.stat__label {
  display: block; font-family: var(--mono);
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 4px;
}
.stat__value {
  font-weight: 700; font-size: 18px; color: var(--text);
}
.stat--wide { grid-column: 1 / -1; }

/* ── SECTIONS ─────────────────────────────────── */
.section {
  padding: clamp(56px, 8vw, 96px) var(--pad);
}
.section--tint { background: var(--bg-tint); }
.section--ink { background: var(--bg-ink); color: var(--text-inverse); }
body.dark .section--ink { background: var(--bg-ink); color: var(--text-inverse); }

.section__inner {
  max-width: var(--max-w); margin: 0 auto;
}
.section__heading {
  font-size: clamp(28px, 4vw, 40px); font-weight: 800;
  margin: 0 0 40px;
}
.section__heading .accent-dot {
  color: var(--accent);
}

/* ── ABOUT (prose + facts split) ──────────────── */
.about-grid {
  display: grid; grid-template-columns: 1.4fr 1fr;
  gap: 64px;
}
.about-grid p {
  margin: 0 0 16px; max-width: 58ch;
  color: var(--text-secondary); font-size: 16px;
}
.facts { margin: 0; }
.facts dt {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--accent); margin-top: 16px;
}
.facts dt:first-child { margin-top: 0; }
.facts dd {
  margin: 4px 0 16px; padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}
.facts dd:last-child { border-bottom: none; padding-bottom: 0; }
.facts a {
  text-decoration: none;
  border-bottom: 1.5px solid var(--accent);
}

/* ── EDUCATION (timeline, not cards) ──────────── */
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline__item {
  display: grid; grid-template-columns: 120px 1fr;
  gap: 32px; padding: 32px 0;
  border-bottom: 1px solid var(--border);
}
.timeline__item:last-child { border-bottom: none; }
.timeline__year {
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.04em; color: var(--text-tertiary);
  padding-top: 4px;
}
.timeline__content h3 {
  margin: 0 0 6px; font-size: 20px; font-weight: 700;
}
.timeline__content p {
  margin: 0; color: var(--text-secondary); font-size: 15px;
}
.timeline__badge {
  display: inline-block; margin-top: 8px;
  padding: 4px 12px; font-family: var(--mono);
  font-size: 11px; font-weight: 500;
  background: var(--accent-soft); color: var(--accent);
  border-radius: var(--radius-pill);
}

/* ── PROJECTS (image-left full-width, then standard card) ── */
.project-feature {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: center;
  margin-bottom: 48px;
}
.project-feature__img {
  overflow: hidden; border-radius: var(--radius);
  border: 1px solid var(--border);
}
.project-feature__img img {
  width: 100%; height: 320px; object-fit: cover;
}
.project-feature__body h3 {
  margin: 0 0 8px; font-size: 26px;
}
.project-feature__body > p:first-of-type {
  margin: 0 0 16px; color: var(--text-secondary); font-size: 15px; line-height: 1.65;
}
.project-secondary {
  padding: 32px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: grid; grid-template-columns: 1fr 1.2fr;
  gap: 32px; align-items: center;
}
.project-secondary__img {
  overflow: hidden; border-radius: 8px;
}
.project-secondary__img img {
  width: 100%; height: 200px; object-fit: cover;
}
.project-secondary h3 { margin: 0 0 8px; font-size: 22px; }
.project-secondary p { margin: 0 0 12px; color: var(--text-secondary); font-size: 15px; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag {
  padding: 4px 12px; font-family: var(--mono);
  font-size: 11px; font-weight: 500;
  background: var(--accent-soft); color: var(--accent);
  border-radius: var(--radius-pill);
}

/* ── CERTIFICATIONS (compact 2-col list) ──────── */
.cert-list {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
}
.cert-item {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  display: grid; grid-template-columns: 1fr auto; gap: 16px;
  align-items: start;
}
.cert-item:nth-child(odd) { padding-right: 32px; border-right: 1px solid var(--border); }
.cert-item:nth-child(even) { padding-left: 32px; }
.cert-item h3 { margin: 0 0 4px; font-size: 16px; font-weight: 600; }
.cert-item p { margin: 0; font-size: 13px; color: var(--text-secondary); }
.cert-item .cert-score {
  font-family: var(--mono); font-size: 13px; font-weight: 600;
  color: var(--accent); white-space: nowrap;
}

/* ── INTERNSHIP (single wide block) ───────────── */
.internship-block {
  padding: 40px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
}
.internship-block__meta {
  font-family: var(--mono); font-size: 12px;
  color: var(--text-tertiary); text-transform: uppercase;
  letter-spacing: 0.04em; margin: 0 0 8px;
}
.internship-block h3 { margin: 0 0 12px; font-size: 24px; }
.internship-block p { margin: 0 0 12px; color: var(--text-secondary); font-size: 15px; max-width: 70ch; }
.score-badge {
  display: inline-block; padding: 6px 16px;
  background: var(--accent-soft); color: var(--accent);
  font-family: var(--mono); font-size: 12px; font-weight: 600;
  border-radius: var(--radius-pill); margin-bottom: 16px;
}

/* ── ACHIEVEMENTS (2-col bento with visual contrast) ── */
.achieve-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
.achieve-block {
  padding: 32px; border-radius: var(--radius);
}
.achieve-block--sport {
  background: var(--accent-medium);
  border: 1px solid var(--accent-soft);
}
.achieve-block--academic {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}
.achieve-block h3 { margin: 0 0 20px; font-size: 20px; }
.achieve-block ul {
  list-style: none; padding: 0; margin: 0;
}
.achieve-block li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px; color: var(--text-secondary);
}
.achieve-block--sport li {
  border-bottom-color: rgba(5,150,105,0.15);
}
.achieve-block li:last-child { border-bottom: none; }
.achieve-block li strong { color: var(--text); font-weight: 600; }

/* ── SKILLS (horizontal scroll-snap pills + grid) ─ */
.skills-split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
}
.skill-group h3 {
  font-size: 18px; font-weight: 700;
  margin: 0 0 20px;
}
.skill-pills {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.skill-pill {
  padding: 8px 16px;
  font-size: 14px; font-weight: 500;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  transition: background 0.15s ease, border-color 0.15s ease;
}
@media (prefers-reduced-motion: no-preference) {
  .skill-pill:hover {
    background: var(--accent-soft);
    border-color: var(--accent);
  }
}
.soft-skills-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  margin-top: 48px;
}
.soft-skill {
  padding: 28px;
  border-left: 3px solid var(--accent);
  background: var(--bg-elevated);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.soft-skill h4 {
  margin: 0 0 8px; font-size: 17px; font-weight: 700;
}
.soft-skill p {
  margin: 0; font-size: 14px; color: var(--text-secondary); line-height: 1.6;
}

/* ── CONTACT (ink band) ───────────────────────── */
.contact-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}
.contact-item {
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
body.dark .section--ink .contact-item {
  border-top-color: rgba(0,0,0,0.12);
}
.contact-item__label {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--accent); margin-bottom: 6px;
}
body.dark .section--ink .contact-item__label { color: var(--accent); }
.contact-item a {
  text-decoration: none; font-size: 15px;
  transition: opacity 0.15s ease;
}
.contact-item a:hover { opacity: 0.7; }
.contact__intro {
  margin: 0 0 32px; font-size: 18px;
  max-width: 40ch; opacity: 0.85;
}

/* ── FOOTER ───────────────────────────────────── */
.footer {
  display: flex; justify-content: space-between; flex-wrap: wrap;
  gap: 8px; padding: 24px var(--pad);
  font-size: 13px; color: var(--text-tertiary);
}
.footer p { margin: 0; }

/* ── FOCUS ─────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ── SCROLL REVEAL ─────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0; transform: translateY(20px);
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .reveal.visible { opacity: 1; transform: none; }
}

/* ── RESPONSIVE ────────────────────────────────── */
@media (max-width: 1024px) {
  .nav__links { gap: 20px; }
  .nav__links a { font-size: 12px; }
}

@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 64px; left: 0; right: 0;
    background: var(--bg-elevated);
    padding: 24px var(--pad); gap: 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg); z-index: 99;
  }
  .nav__hamburger { display: inline-flex; }

  .hero { grid-template-columns: 1fr; gap: 32px; }
  .hero__panel { max-width: 360px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .timeline__item { grid-template-columns: 1fr; gap: 4px; }
  .project-feature { grid-template-columns: 1fr; }
  .project-secondary { grid-template-columns: 1fr; }
  .cert-list { grid-template-columns: 1fr; }
  .cert-item:nth-child(odd) { padding-right: 0; border-right: none; }
  .cert-item:nth-child(even) { padding-left: 0; }
  .achieve-row { grid-template-columns: 1fr; }
  .skills-split { grid-template-columns: 1fr; gap: 32px; }
  .soft-skills-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 36px; }
  .hero__stats { grid-template-columns: 1fr; }
  .hero__portrait img { height: 200px; }
}
