/* ==========================================================================
   Anika Ahluwalia â€” portfolio
   ========================================================================== */

:root {
  --bg: #fdf4f6;
  --surface: #ffffff;
  --ink: #2c2029;
  --muted: #786470;

  --pink: oklch(0.63 0.15 5);
  --pink-soft: oklch(0.945 0.035 5);
  --pink-strong: oklch(0.55 0.16 5);

  --matcha: oklch(0.62 0.09 145);
  --matcha-soft: oklch(0.945 0.035 145);
  --matcha-ink: oklch(0.48 0.09 145);

  --on-accent: #ffffff;
  --line: #2c2029;
  --hard: 3px 3px 0 var(--line);

  --font-display: 'Baloo 2', cursive;
  --font-body: Nunito, system-ui, sans-serif;
  --font-hand: Caveat, cursive;
}

[data-theme='dark'] {
  --bg: #1c1620;
  --surface: #272029;
  --ink: #f6eaf0;
  --muted: #b3a2ad;

  --pink: oklch(0.8 0.11 5);
  --pink-soft: oklch(0.34 0.055 5);
  --pink-strong: oklch(0.74 0.14 5);

  --matcha: oklch(0.8 0.09 145);
  --matcha-soft: oklch(0.33 0.045 145);
  --matcha-ink: oklch(0.84 0.1 145);

  --on-accent: #221a20;
  --line: #584b5e;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  transition: background 0.35s ease, color 0.35s ease;
}

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--pink); }

h1, h2, h3, p { margin: 0; }

.muted { color: var(--muted); }

.bullet {
  flex: none;
  width: 14px;
  height: 14px;
  border: 2px solid var(--line);
  border-radius: 50%;
}
.bullet--pink { background: var(--pink); }
.bullet--matcha { background: var(--matcha); }

/* Layout ------------------------------------------------------------------ */

.container {
  max-width: 940px;
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 24px);
}

.section { padding: 8px 0 64px; }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 6vw, 30px);
}

.section-head .section-title { margin-bottom: 0; }

.stack { display: grid; gap: 14px; }

/* Nav -------------------------------------------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
}

.nav__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 940px;
  margin: 0 auto;
  padding: 14px 20px;
}

/* wordmark: display only, not a link */
.nav__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--ink);
}

.nav__blob {
  width: 16px;
  height: 16px;
  background: var(--pink);
  border: 2px solid var(--line);
  border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%;
}

.nav__links { display: flex; align-items: center; gap: 18px; }

.nav__link { font-size: 15px; font-weight: 600; color: var(--muted); cursor: pointer; }

/* Buttons ---------------------------------------------------------------- */

.btn,
.btn-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn {
  gap: 9px;
  min-width: 158px;
  padding: 12px 20px;
  font-size: 17px;
  border: 3px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--hard);
}

.btn:hover {
  transform: translate(3px, 3px);
  box-shadow: 0 0 0 var(--line);
}

.btn--primary { background: var(--pink-strong); color: var(--on-accent); }
.btn--primary:hover { color: var(--on-accent); }

.btn--outline { background: var(--surface); color: var(--ink); }
.btn--outline:hover { color: var(--ink); }

.btn-sm {
  flex: none;
  gap: 7px;
  padding: 7px 14px;
  font-size: 14px;
  white-space: nowrap;
  border: 2px solid var(--line);
  border-radius: 12px;
  box-shadow: 2px 2px 0 var(--line);
  background: var(--surface);
  color: var(--ink);
}

.btn-sm:hover {
  transform: translate(2px, 2px);
  box-shadow: 0 0 0 var(--line);
  color: var(--ink);
}

.btn-sm--matcha { background: var(--matcha-soft); }

.icon-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  font-size: 16px;
  color: var(--ink);
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--hard);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.icon-btn:hover {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--line);
}

.btn svg,
.btn-sm svg { flex: none; }

/* Hero ------------------------------------------------------------------- */

.hero { padding: clamp(44px, 8vw, 72px) 0 clamp(52px, 8vw, 84px); }

.hero__inner { max-width: 640px; }

.hero__greeting {
  margin-bottom: 8px;
  font-family: var(--font-hand);
  font-size: 26px;
  color: var(--pink-strong);
  transform: rotate(-2deg);
}

.hero__name {
  margin-bottom: 26px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 8.5vw, 74px);
  line-height: 1.05;
  letter-spacing: -1px;
  text-wrap: balance;
}

.hero__edu {
  display: grid;
  gap: 10px;
  margin-bottom: 30px;
}

.hero__degree {
  font-size: clamp(17px, 4.2vw, 19px);
  line-height: 1.5;
}

.hero__status {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 9px;
  margin-top: 6px;
  padding: 7px 16px;
  font-size: 16px;
  font-weight: 700;
  background: var(--matcha-soft);
  border: 2px solid var(--line);
  border-radius: 999px;
}

.hero__status-dot {
  flex: none;
  width: 9px;
  height: 9px;
  background: var(--matcha-ink);
  border-radius: 50%;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

/* Experience ------------------------------------------------------------- */

.card {
  background: var(--surface);
  border: 3px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--hard);
  transition: transform 0.18s ease;
}

.exp {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px 24px;
  padding: clamp(18px, 4vw, 24px);
}

/* every card lifts the same way â€” no alternating tilt */
.exp:hover { transform: translateY(-3px); }

.exp__main {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex: 1 1 300px;
  min-width: 0;
}

.logo-tile {
  display: grid;
  place-items: center;
  flex: none;
  width: 64px;
  height: 64px;
  overflow: hidden;
  background: #fff;
  border: 3px solid var(--line);
  border-radius: 18px;
  box-shadow: 2px 2px 0 var(--line);
}

.logo-tile--inset { padding: 7px; }

.logo-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.exp__title {
  margin-bottom: 4px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(18px, 4.6vw, 21px);
}

.exp__desc {
  max-width: 62ch;
  font-size: 16px;
  line-height: 1.55;
  color: var(--muted);
}

.exp__desc strong { font-weight: 700; color: var(--ink); }

/* all three dates share one format and one colour */
.exp__date {
  flex: none;
  font-family: var(--font-hand);
  font-size: 19px;
  color: var(--pink-strong);
  text-align: right;
  white-space: nowrap;
}

/* Projects --------------------------------------------------------------- */

.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 18px;
}

.project {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.project:hover { transform: translateY(-5px); }

.project__shot {
  height: 150px;
  overflow: hidden;
  border-bottom: 3px solid var(--line);
}

.project__shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.project__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 9px;
  padding: 20px;
}

.project__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
}

.project__desc {
  flex: 1;
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
}

.project__stack {
  font-size: 13px;
  font-weight: 700;
  color: var(--matcha-ink);
}

.project__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

/* Marquee ---------------------------------------------------------------- */

.marquee {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 6px 0;
  overflow: hidden;
}

.marquee__track {
  display: flex;
  align-items: center;
  gap: 20px;
  width: max-content;
  padding: 6px 10px 6px 0;
  animation: marquee 26s linear infinite;
}

.marquee__item {
  display: inline-flex;
  align-items: center;
  flex: none;
  gap: 14px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 9px 24px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(19px, 5vw, 26px);
  white-space: nowrap;
  border: 3px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--hard);
}

.pill--pink { background: var(--pink-soft); }
.pill--matcha { background: var(--matcha-soft); }
.pill--plain { background: var(--surface); }

.pill__sep {
  flex: none;
  width: 12px;
  height: 12px;
  background: var(--matcha);
  border: 2px solid var(--line);
  border-radius: 50%;
}

/* Footer ----------------------------------------------------------------- */

.footer {
  padding: 8px 0 72px;
  text-align: center;
}

.footer__name {
  margin-bottom: 4px;
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: 28px;
}

.footer__mail {
  font-family: var(--font-hand);
  font-weight: 600;
  font-size: 23px;
  color: var(--muted);
}

.footer__mail a {
  padding-bottom: 1px;
  color: var(--pink-strong);
  border-bottom: 2px dashed var(--pink-strong);
}

.footer__mail a:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

/* Modal ------------------------------------------------------------------ */

.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  place-items: center;
  padding: 20px;
  background: rgba(30, 15, 25, 0.55);
  backdrop-filter: blur(4px);
}

.modal-backdrop.is-open { display: grid; }

.modal {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 86vh;
  overflow: auto;
  padding: clamp(24px, 5vw, 34px);
  background: var(--surface);
  border: 3px solid var(--line);
  border-radius: 26px;
  box-shadow: 6px 6px 0 var(--line);
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  font-size: 17px;
  line-height: 1;
  color: var(--ink);
  background: var(--bg);
  border: 2px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}

.modal__title {
  margin-bottom: 6px;
  padding-right: 44px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 5.5vw, 30px);
}

.modal__stack {
  margin-bottom: 22px;
  font-size: 13px;
  font-weight: 700;
  color: var(--matcha-ink);
}

.modal__body { display: grid; gap: 18px; }

.modal__label {
  margin-bottom: 3px;
  font-family: var(--font-hand);
  font-size: 21px;
  color: var(--pink-strong);
}

.modal__text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}

/* Animations ------------------------------------------------------------- */

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes pop {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}