/* ============================================================
   Akash Singh — Portfolio
   Theme variables (dark default, light via [data-theme="light"])
   ============================================================ */
:root {
  --bg: #0b0f14;
  --bg-elev: #121821;
  --bg-elev-2: #1a2230;
  --text: #e6edf3;
  --text-muted: #8b98a9;
  --accent: #4fd1c5;
  --accent-2: #63b3ed;
  --border: #22303f;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --radius: 14px;
  --max: 1040px;
}

[data-theme="light"] {
  --bg: #f7f9fc;
  --bg-elev: #ffffff;
  --bg-elev-2: #eef2f8;
  --text: #131b24;
  --text-muted: #55647a;
  --accent: #0d9488;
  --accent-2: #2563eb;
  --border: #dbe3ee;
  --shadow: 0 10px 30px rgba(20, 40, 70, 0.08);
}

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

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

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s ease, color 0.3s ease;
}

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

strong { color: var(--text); font-weight: 600; }

.hl {
  color: var(--accent);
  font-weight: 600;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.9rem clamp(1rem, 5vw, 3rem);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav__brand {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.5px;
}
.nav__brand .dot { color: var(--accent); }

.nav__links {
  display: flex;
  gap: 1.4rem;
  margin-left: auto;
  font-size: 0.92rem;
  font-weight: 500;
}
.nav__links a {
  color: var(--text-muted);
  transition: color 0.2s ease;
}
.nav__links a:hover { color: var(--accent); }

.nav__theme {
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  color: var(--text);
  width: 38px; height: 38px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  transition: transform 0.2s ease, background 0.2s ease;
}
.nav__theme:hover { transform: rotate(20deg); }

.nav__resume {
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
}

.nav__burger {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ============================================================
   LAYOUT / SECTIONS
   ============================================================ */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6rem) clamp(1rem, 5vw, 2rem);
}

.section__title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  margin-bottom: 2rem;
}
.section__num {
  font-family: "JetBrains Mono", monospace;
  font-size: 1rem;
  color: var(--accent);
}
.section__title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.section__lead {
  max-width: 720px;
  margin: -1rem 0 2.25rem;
  color: var(--text-muted);
  font-size: 1.02rem;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(4rem, 12vw, 8rem) clamp(1rem, 5vw, 2rem);
}
.hero::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  max-width: 700px; max-height: 700px;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 22%, transparent), transparent 65%);
  filter: blur(30px);
  z-index: 0;
}
.hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
}
.hero__eyebrow {
  font-family: "JetBrains Mono", monospace;
  color: var(--accent);
  letter-spacing: 1px;
  margin-bottom: 0.75rem;
}
.hero__title {
  font-size: clamp(2.8rem, 9vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -1px;
}
.hero__lead {
  max-width: 620px;
  margin-top: 1.25rem;
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  color: var(--text-muted);
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}
.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  margin-top: 3rem;
}
.stat { display: flex; flex-direction: column; }
.stat__num {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  color: var(--accent);
}
.stat__label { font-size: 0.85rem; color: var(--text-muted); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn--primary {
  background: var(--accent);
  color: #04121a;
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px color-mix(in srgb, var(--accent) 40%, transparent); }
.btn--ghost {
  border: 1px solid var(--border);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* ============================================================
   ABOUT
   ============================================================ */
.about { max-width: 760px; display: flex; flex-direction: column; gap: 1.1rem; }
.about p { color: var(--text-muted); font-size: 1.05rem; }

/* ============================================================
   EXPERIENCE
   ============================================================ */
.job {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.job:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }
.job__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1rem;
  margin-bottom: 1rem;
}
.job__head h3 { font-size: 1.25rem; font-weight: 700; }
.job__sub { color: var(--text-muted); font-weight: 500; font-size: 0.95rem; }
.job__co { color: var(--accent); font-weight: 600; }
.job__date {
  margin-left: auto;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.job__points { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
.job__points li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--text-muted);
  font-size: 0.98rem;
}
.job__points li::before {
  content: "▹";
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* ============================================================
   SKILLS
   ============================================================ */
.skills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}
.skills__group {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.skills__group:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }
.skills__group h3 {
  font-size: 1rem;
  margin-bottom: 0.9rem;
  color: var(--accent);
}
.skills__group ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.skills__group li {
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  padding: 0.3rem 0.7rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-family: "JetBrains Mono", monospace;
  color: var(--text-muted);
}

/* ============================================================
   ACHIEVEMENTS
   ============================================================ */
.awards { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.awards li {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.1rem 1.4rem;
  color: var(--text-muted);
}
.awards__tag {
  display: inline-block;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  margin-right: 0.6rem;
}

/* ============================================================
   HOBBIES
   ============================================================ */
.hobbies {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
}
.hobby {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.hobby:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }
.hobby__icon { font-size: 2.2rem; display: block; margin-bottom: 0.6rem; }
.hobby h3 { font-size: 1.05rem; margin-bottom: 0.3rem; }
.hobby p { font-size: 0.88rem; color: var(--text-muted); }

/* ============================================================
   CONTACT
   ============================================================ */
.section--contact { text-align: center; }
.section--contact .section__title { justify-content: center; }
.section--contact .section__title::after { display: none; }
.contact__lead {
  max-width: 520px;
  margin: 0 auto 2rem;
  color: var(--text-muted);
  font-size: 1.1rem;
}
.contact__links { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; }

/* ============================================================
   FEATURED PROJECTS
   ============================================================ */
.projects { display: flex; flex-direction: column; gap: 1.5rem; }
.project {
  display: grid;
  grid-template-columns: minmax(0, 340px) 1fr;
  gap: 1.5rem;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.project:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }
.project__media {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-elev-2);
  aspect-ratio: 16 / 10;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
}
.project__media img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  display: block;
}
.project__media--empty {
  min-height: 180px;
  color: var(--text-muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8rem;
  padding: 1rem;
  text-align: center;
}
.project__media--diagram { padding: 0.75rem; align-items: stretch; aspect-ratio: auto; }
.ascii-arch {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--accent);
  margin: 0;
  white-space: pre;
  overflow-x: auto;
}
.project__body { display: flex; flex-direction: column; gap: 0.75rem; min-width: 0; }
.project__head { display: flex; align-items: center; gap: 0.75rem; }
.project__head h3 { font-size: 1.3rem; font-weight: 700; }
.project__status {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.15rem 0.55rem;
  border-radius: 20px;
  border: 1px solid var(--border);
}
.project__status--live { color: #34d399; border-color: color-mix(in srgb, #34d399 45%, transparent); }
.project__status--build { color: var(--accent-2); border-color: color-mix(in srgb, var(--accent-2) 45%, transparent); }
.project__tagline { color: var(--text-muted); font-size: 1rem; }
.project__detail summary {
  cursor: pointer;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  list-style: none;
}
.project__detail summary::-webkit-details-marker { display: none; }
.project__detail summary::before { content: "▸ "; }
.project__detail[open] summary::before { content: "▾ "; }
.project__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem 1.5rem;
  margin-top: 1rem;
}
.project__grid h4, .case__grid h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 0.3rem;
}
.project__grid p, .case__grid p { color: var(--text-muted); font-size: 0.92rem; }
.project__tech { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: auto; }
.project__tech span {
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  padding: 0.25rem 0.6rem;
  border-radius: 8px;
  font-size: 0.78rem;
  font-family: "JetBrains Mono", monospace;
  color: var(--text-muted);
}
.project__links { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.link { color: var(--accent); font-weight: 600; font-size: 0.9rem; }
.link:hover { text-decoration: underline; }
.link--muted { color: var(--text-muted); font-weight: 500; }

/* ============================================================
   IMPACT METRICS (Experience)
   ============================================================ */
.job__theme {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 0.4rem;
}
.job__summary { color: var(--text-muted); margin-bottom: 1.1rem; }
.metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  padding: 1rem 0 1.25rem;
  margin-bottom: 0.5rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.metric { display: flex; flex-direction: column; }
.metric__num { font-size: 1.6rem; font-weight: 800; color: var(--accent); }
.metric__label { font-size: 0.82rem; color: var(--text-muted); }

/* ============================================================
   CASE STUDIES
   ============================================================ */
.case {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.case:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }
.case__head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.case__head h3 { font-size: 1.3rem; font-weight: 700; }
.case__badge {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
}
.case__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem 1.75rem;
}

/* ============================================================
   S7 LABS
   ============================================================ */
.labs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}
.lab {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.3rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.lab:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }
.lab__head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.5rem; }
.lab__head h3 { font-size: 1.05rem; }
.lab p { color: var(--text-muted); font-size: 0.9rem; }
.lab__status {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.12rem 0.5rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  white-space: nowrap;
}
.lab__status--run { color: #34d399; border-color: color-mix(in srgb, #34d399 45%, transparent); }
.lab__status--exp { color: var(--accent-2); border-color: color-mix(in srgb, var(--accent-2) 45%, transparent); }

/* ============================================================
   TECH STACK
   ============================================================ */
.stack {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}
.stack__group {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
}
.stack__group h3 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.9rem; color: var(--accent); }
.stack__group ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.stack__group li {
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  padding: 0.3rem 0.7rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-family: "JetBrains Mono", monospace;
  color: var(--text-muted);
}

.contact__note {
  margin-top: 1.25rem;
  color: var(--accent);
  font-size: 0.9rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  text-align: center;
  padding: 2rem 1rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-family: "JetBrains Mono", monospace;
}

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.section, .job, .project, .case, .lab, .stack__group {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal { opacity: 1 !important; transform: none !important; }

@media (prefers-reduced-motion: reduce) {
  .section, .job, .project, .case, .lab, .stack__group { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 720px) {
  .nav__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg-elev);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 0;
  }
  .nav__links.open { display: flex; }
  .nav__links a { padding: 0.8rem clamp(1rem, 5vw, 3rem); }
  .nav__burger { display: block; }
  .nav__resume { display: none; }
  .job__date { margin-left: 0; width: 100%; }
  .project { grid-template-columns: 1fr; }
}
