/* ─────────────────────────────────────────────
   Divya Vasudevan — Portfolio
   ───────────────────────────────────────────── */

/* Reset & base */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

:root {
  --bg: #0E0F12;
  --bg-alt: #0a0b0d;
  --surface: #141518;
  --surface-hover: #181a1f;
  --text: #F4F2ED;
  --text-soft: #E7E5E0;
  --text-muted: #C9C7C2;
  --text-dim: #B7B6B2;
  --text-meta: #9B9CA0;
  --text-faint: #6f7075;
  --text-fainter: #5d5e62;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.22);
  --accent: #B49DF0;
  --accent-hover: #C9B8F7;
  --lab: #F0E6A8;
  --easing: cubic-bezier(.2, .7, .2, 1);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: var(--bg); }

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}

/* ─── NAV ─── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 15, 18, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 26px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav__logo {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.18em;
  white-space: nowrap;
  color: var(--text);
  text-decoration: none;
  transition: opacity .25s;
}
.nav__logo:hover { opacity: 0.66; }

.tabs {
  display: flex;
  gap: 6px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 40px;
  padding: 5px;
}
.tab {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 38px;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  background: transparent;
  color: var(--text-meta);
  transition: background .28s var(--easing), color .28s;
}
.tab:hover { color: var(--text); }
.tab--active { background: var(--accent); color: var(--bg); }
.tab--active:hover { color: var(--bg); }
#tab-experiments.tab--active { background: var(--lab); }

/* ─── HERO ─── */
.hero {
  max-width: 1240px;
  margin: 0 auto;
  padding: 110px 48px 90px;
  position: relative;
}
.eyebrow {
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-bottom: 26px;
  animation: fadeUp .7s var(--easing) both;
}
.eyebrow--accent { color: var(--accent); }
.eyebrow--lab    { color: var(--lab); }

.hero__title {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: clamp(52px, 7.6vw, 104px);
  line-height: 0.96;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  animation: fadeUp .7s var(--easing) both;
}
.hero__lede {
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.6;
  color: var(--text-dim);
  max-width: 640px;
  margin-top: 48px;
  animation: fadeUp .7s var(--easing) both;
}
.hero__cta {
  display: flex;
  gap: 14px;
  margin-top: 40px;
  animation: fadeUp .7s var(--easing) both;
}

/* Buttons */
.btn {
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 500;
  transition: transform .25s var(--easing), background .25s, border-color .25s, box-shadow .25s;
  display: inline-block;
}
.btn--primary {
  background: var(--accent);
  color: var(--bg);
}
.btn--primary:hover {
  transform: translateY(-2px);
  background: var(--accent-hover);
  box-shadow: 0 12px 28px rgba(180, 157, 240, 0.3);
}
.btn--ghost {
  border: 1px solid var(--border-strong);
  color: var(--text-soft);
}
.btn--ghost:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.05);
}

/* ─── WORK ─── */
.work {
  max-width: 1240px;
  margin: 0 auto;
  padding: 60px 48px 100px;
}
.section-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-meta);
  margin-bottom: 26px;
}
.section-label--plain { display: block; margin-bottom: 20px; }
.section-label--bordered {
  margin: 64px 0 8px;
  border-top: 1px solid var(--border);
  padding-top: 26px;
}

.projects {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.project {
  display: flex;
  align-items: stretch;
  min-height: 400px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .35s var(--easing), box-shadow .35s ease, background .3s ease;
}
.project:hover {
  transform: translateY(-8px);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.5);
  background: var(--surface-hover);
}
.project__media {
  flex: none;
  width: 46%;
  background: var(--bg);
}
.project__media img {
  width: 100%;
  height: 100%;
  min-height: 400px;
  object-fit: cover;
  display: block;
}
.project__body {
  flex: 1;
  padding: 52px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.project__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}
.project__num {
  font-family: 'Oswald', sans-serif;
  font-weight: 300;
  font-size: 18px;
  color: var(--text-fainter);
}
.project__cat {
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.project__title {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: clamp(30px, 3vw, 44px);
  text-transform: uppercase;
  line-height: 1.0;
  letter-spacing: 0.01em;
}
.project__desc {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-meta);
  margin-top: 20px;
  max-width: 440px;
}
.project__link {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.project__arrow { font-size: 18px; }

/* ─── ABOUT ─── */
.about {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}
.about__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 96px 48px;
}
.about .section-label { margin-bottom: 40px; }

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}
.about__statement {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: clamp(34px, 3.6vw, 52px);
  line-height: 1.02;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.about__capabilities {
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
}
.about__capabilities-label {
  font-family: 'Oswald', sans-serif;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.about__capabilities ul {
  list-style: none;
  font-size: 17px;
  line-height: 2.1;
  color: var(--text-muted);
}
.about__grid > div:last-child p {
  font-size: 19px;
  line-height: 1.7;
  color: #D2D0CB;
  margin-bottom: 22px;
}
.about__grid > div:last-child p:last-child { margin-bottom: 0; }

/* ─── CONTACT ─── */
.contact {
  max-width: 1240px;
  margin: 0 auto;
  padding: 96px 48px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 48px;
}
.contact__left { max-width: 560px; }
.contact__title {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: clamp(48px, 6vw, 84px);
  text-transform: uppercase;
  line-height: 0.92;
}
.contact__links {
  font-family: 'Oswald', sans-serif;
  font-size: 17px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 2.2;
  text-align: right;
}
.contact__email,
.contact__social {
  text-decoration: none;
  display: block;
  transition: transform .25s var(--easing), color .25s;
}
.contact__email { color: var(--accent); }
.contact__email:hover {
  color: var(--accent-hover);
  transform: translateX(-6px);
}
.contact__social { color: var(--text-muted); }
.contact__social:hover {
  color: var(--text);
  transform: translateX(-6px);
}

/* ─── EXPERIMENTS ─── */
.experiments {
  max-width: 1240px;
  margin: 0 auto;
  padding: 110px 48px 100px;
  min-height: 70vh;
}
.experiments .eyebrow { animation: fadeUp .6s var(--easing) both; }
.experiments__title {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: clamp(46px, 6.6vw, 92px);
  line-height: 0.96;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  animation: fadeUp .6s var(--easing) both;
}
.experiments__lede {
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.6;
  color: var(--text-dim);
  max-width: 620px;
  margin-top: 40px;
  animation: fadeUp .6s var(--easing) both;
}
.experiments__list {
  display: flex;
  flex-direction: column;
}
.experiment {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 32px;
  align-items: center;
  padding: 30px 8px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: padding .3s var(--easing), background .3s;
}
.experiment:hover {
  padding-left: 20px;
  background: rgba(240, 230, 168, 0.06);
}
.experiment__num {
  font-family: 'Oswald', sans-serif;
  font-weight: 300;
  font-size: 24px;
  color: var(--text-fainter);
}
.experiment__title {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: clamp(24px, 2.5vw, 34px);
  text-transform: uppercase;
  line-height: 1.05;
}
.experiment__desc {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-meta);
  margin-top: 10px;
  max-width: 560px;
}

/* ─── FOOTER ─── */
.footer { border-top: 1px solid var(--border); }
.footer__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px 48px;
  display: flex;
  justify-content: space-between;
  color: var(--text-faint);
  font-size: 13px;
  letter-spacing: 0.04em;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .nav__inner,
  .hero,
  .work,
  .about__inner,
  .contact,
  .experiments,
  .footer__inner { padding-left: 24px; padding-right: 24px; }

  .hero { padding-top: 80px; padding-bottom: 60px; }

  .project { flex-direction: column; }
  .project__media { width: 100%; }
  .project__media img { min-height: 260px; max-height: 320px; }
  .project__body { padding: 36px 28px; }

  .about__grid { grid-template-columns: 1fr; gap: 40px; }

  .contact { flex-direction: column; align-items: flex-start; }
  .contact__links { text-align: left; }
  .contact__email:hover,
  .contact__social:hover { transform: translateX(6px); }
}

@media (max-width: 520px) {
  .nav__logo { font-size: 14px; letter-spacing: 0.14em; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .btn { text-align: center; }
}

/* ─── REDUCED MOTION ─── */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: .001ms !important;
    animation-delay: 0 !important;
    transition: none !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}
