
/*
  Sanjana Venkatesh — Portfolio
  Static HTML/CSS/JS (no build step)
*/

:root {
  --bg: #0b1220;
  --panel: #0f1930;
  --panel-2: #111f3a;
  --text: #e8eefc;
  --muted: #b7c4e3;
  --subtle: #7e8bb0;
  --brand: #7c5cff;
  --brand-2: #2dd4bf;
  --warn: #fbbf24;

  --shadow: 0 16px 48px rgba(0, 0, 0, .38);
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, .22);
  --radius: 18px;
  --radius-sm: 14px;

  --max: 1100px;
  --pad: clamp(16px, 3.2vw, 28px);
  --pad-y: clamp(56px, 7vw, 86px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial,
    "Apple Color Emoji", "Segoe UI Emoji";
  background: radial-gradient(1100px 520px at 12% 12%, rgba(124, 92, 255, .26), transparent 60%),
              radial-gradient(900px 500px at 85% 18%, rgba(45, 212, 191, .18), transparent 55%),
              var(--bg);
  color: var(--text);
  line-height: 1.55;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: min(var(--max), calc(100% - (var(--pad) * 2)));
  margin: 0 auto;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(11, 18, 32, .68);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand__mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(124, 92, 255, 1), rgba(45, 212, 191, 1));
  box-shadow: var(--shadow-soft);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-weight: 700; letter-spacing: .2px; }
.brand__tag { font-size: 12px; color: var(--muted); }

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
}
.nav a {
  padding: 9px 10px;
  color: var(--muted);
  border-radius: 10px;
  font-size: 14px;
}
.nav a:hover { background: rgba(255, 255, 255, .06); color: var(--text); }
.nav a.active { background: rgba(124, 92, 255, .18); color: var(--text); }

.nav__toggle {
  display: none;
  border: 1px solid rgba(255, 255, 255, .10);
  background: rgba(255, 255, 255, .04);
  color: var(--text);
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .10);
  background: rgba(255, 255, 255, .04);
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  box-shadow: none;
  cursor: pointer;
}
.btn:hover { background: rgba(255, 255, 255, .07); }
.btn--primary {
  background: linear-gradient(135deg, rgba(124, 92, 255, 1), rgba(45, 212, 191, 1));
  border: none;
  box-shadow: var(--shadow-soft);
}
.btn--primary:hover { filter: brightness(1.05); }
.btn--ghost { background: transparent; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .10);
  background: rgba(255, 255, 255, .04);
  color: var(--muted);
  font-size: 12px;
}
.badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--brand-2);
}

/* Sections */
.section {
  padding: var(--pad-y) 0;
}
.section--tight { padding: 44px 0; }
.section__title {
  font-size: clamp(22px, 3vw, 30px);
  margin: 0 0 14px;
}
.section__lead {
  color: var(--muted);
  margin: 0 0 22px;
  max-width: 75ch;
}

.hero {
  padding: 54px 0 44px;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  gap: clamp(18px, 3vw, 28px);
  align-items: center;
}
.hero__kicker { margin-bottom: 14px; }
.hero__title {
  font-size: clamp(30px, 4.2vw, 48px);
  line-height: 1.07;
  margin: 0 0 14px;
  letter-spacing: -0.4px;
}
.hero__title span {
  background: linear-gradient(135deg, rgba(124, 92, 255, 1), rgba(45, 212, 191, 1));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__subtitle {
  color: var(--muted);
  margin: 0 0 18px;
  max-width: 70ch;
}
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 22px;
}
.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.panel {
  background: linear-gradient(180deg, rgba(17, 31, 58, .94), rgba(15, 25, 48, .94));
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.profile {
  padding: 18px;
}
.profile__img {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .10);
}
.profile__img img { width: 100%; }
.profile__card {
  margin-top: 14px;
  padding: 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
}
.profile__name { font-weight: 700; margin: 0 0 2px; }
.profile__role { color: var(--muted); font-size: 13px; margin: 0 0 10px; }
.profile__links { display: grid; gap: 8px; }
.profile__links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  color: var(--muted);
  font-size: 14px;
}
.profile__links a:hover { color: var(--text); background: rgba(255, 255, 255, .06); }

.grid {
  display: grid;
  gap: 16px;
}
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
  padding: 18px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
}
.card__title { margin: 0 0 8px; font-weight: 700; }
.card__text { margin: 0; color: var(--muted); }

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.metric {
  padding: 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
}
.metric__value {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.3px;
}
.metric__label { color: var(--muted); font-size: 12px; margin-top: 3px; }

/* Timeline */
.timeline {
  position: relative;
  padding-left: 26px;
}
.timeline:before {
  content: "";
  position: absolute;
  left: 9px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: rgba(255, 255, 255, .10);
}
.tl-item {
  position: relative;
  padding: 18px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  margin: 0 0 14px;
}
.tl-item:before {
  content: "";
  position: absolute;
  left: -26px;
  top: 22px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(124, 92, 255, 1), rgba(45, 212, 191, 1));
  box-shadow: 0 0 0 4px rgba(124, 92, 255, .12);
}
.tl-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.tl-title { font-weight: 800; }
.tl-meta { color: var(--muted); font-size: 13px; }
.tl-bullets { margin: 0; padding-left: 18px; color: var(--muted); }
.tl-bullets li { margin: 8px 0; }

/* Project cards */
.project {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 16px;
  align-items: start;
}
.project__img {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .10);
  background: rgba(255, 255, 255, .03);
}
.project__img img { width: 100%; height: 100%; object-fit: cover; }
.project__title { margin: 0 0 6px; font-weight: 800; }
.project__sub { margin: 0 0 10px; color: var(--muted); }
.project__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .10);
  background: rgba(255, 255, 255, .04);
  color: var(--muted);
  font-size: 12px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 18px;
}
.filter {
  border: 1px solid rgba(255, 255, 255, .10);
  background: rgba(255, 255, 255, .04);
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  cursor: pointer;
}
.filter[aria-pressed="true"] {
  background: rgba(124, 92, 255, .18);
  color: var(--text);
}

/* Footer */
.footer {
  border-top: 1px solid rgba(255, 255, 255, .06);
  padding: 28px 0;
  color: var(--muted);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
}
.footer a { color: var(--text); }
.footer a:hover { text-decoration: underline; }

/* Utilities */
.m0 { margin: 0; }
.mt8 { margin-top: 8px; }
.mt12 { margin-top: 12px; }
.mt16 { margin-top: 16px; }
.mt24 { margin-top: 24px; }

/* Responsive */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .nav__toggle { display: inline-flex; }
  .nav {
    position: fixed;
    inset: 62px 16px auto 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 14px;
    border-radius: var(--radius);
    background: rgba(11, 18, 32, .92);
    border: 1px solid rgba(255, 255, 255, .10);
    box-shadow: var(--shadow);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 12px; }
  .footer__grid { grid-template-columns: 1fr; }
  .grid--2 { grid-template-columns: 1fr; }
  .grid--3 { grid-template-columns: 1fr; }
  .project { grid-template-columns: 1fr; }
}
.profile__img {
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.profile__img:hover {
  transform: translateY(-2px) scale(1.01);
  border-color: rgba(45, 212, 191, 0.7);
  box-shadow:
    0 0 0 3px rgba(45, 212, 191, 0.22),
    0 14px 34px rgba(0, 0, 0, 0.55);
}


