/* ============================================================
   Harsh Parmar Music — Portfolio
   Black & white. Bold Franklin Gothic titles, Ovo serif body.
   Matches harshparmarmusic.com.
   ============================================================ */

:root {
  /* Palette — pure black & white, no color accent */
  --bg:        #000000;
  --bg-soft:   #0a0a0a;
  --bg-card:   #0d0d0d;
  --line:      rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.22);
  --text:      #ffffff;          /* titles: pure white */
  --text-dim:  #d4d5d5;          /* body: light gray (matches reference) */
  --text-faint:#8a8a8a;
  --accent:    #ffffff;          /* accent = white (mono theme) */
  --accent-soft: rgba(255, 255, 255, 0.16);

  /* Type — display = bold Franklin Gothic (Libre Franklin), body = Ovo serif */
  --serif: "Ovo", Georgia, "Times New Roman", serif;
  --sans:  "Libre Franklin", "Franklin Gothic Medium", system-ui, -apple-system, sans-serif;
  --display: "Libre Franklin", "Franklin Gothic Medium", system-ui, sans-serif;

  /* Rhythm */
  --maxw: 1120px;
  --pad:  clamp(1.25rem, 5vw, 3rem);
  --section-gap: clamp(3rem, 7vw, 5.5rem);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }

body {
  background: var(--bg);
  color: var(--text-dim);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
}

/* --- Layout helpers -------------------------------------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }
main, footer, nav { position: relative; z-index: 3; }

section { padding-block: var(--section-gap); }

.eyebrow {
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 1.5rem;
  display: inline-block;
}

h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.05; letter-spacing: -0.015em; color: var(--text); }

.section-title {
  font-size: clamp(2.25rem, 5.5vw, 3.6rem);
  margin-bottom: 3rem;
  color: var(--text);
}

a { color: inherit; text-decoration: none; transition: color 0.3s var(--ease); }

/* --- Navigation ------------------------------------------ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
}
.nav--scrolled {
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.1rem var(--pad);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(2.5rem, 6vw, 4.5rem);
  list-style: none;
}
.nav__links a {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  position: relative;
  transition: color 0.3s var(--ease);
}
.nav__links a:hover { color: var(--text-faint); }
.nav__links a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.nav__toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--text);
  cursor: pointer;
  padding: 0.4rem;
  position: absolute;
  right: var(--pad);
  top: 0.7rem;
}
.nav__toggle svg { width: 26px; height: 26px; }
.nav__toggle .nav__icon-close { display: none; }
.nav__toggle[aria-expanded="true"] .nav__icon-menu { display: none; }
.nav__toggle[aria-expanded="true"] .nav__icon-close { display: inline; }

.nav__brand {
  display: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.06em;
  color: var(--text);
}

/* --- Hero ------------------------------------------------ */
.hero { padding-block: 0; }
.hero__media {
  position: relative;
  width: 100%;
  height: clamp(70vh, 80vh, 88vh);
  overflow: hidden;
  background: var(--bg-card);
}
.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  top: -5vh;
  filter: grayscale(100%) contrast(1.05) brightness(0.78);
}
.hero__media-overlay {
  position: absolute;
  inset: 0;
  background:
linear-gradient(
          180deg,
          rgba(0, 0, 0, 0.45) 0%,
          rgba(0, 0, 0, 0.15) 28%,
          rgba(0, 0, 0, 0.3) 45%,
          rgba(0, 0, 0, 0.5) 58%,
          rgba(0, 0, 0, 0.7) 68%,
          rgba(0, 0, 0, 0.85) 76%,
          rgba(0, 0, 0, 0.95) 84%,
          var(--bg) 100%
        )
}
.hero__media-text {
  position: absolute;
  left: 0; right: 0; bottom: clamp(1.25rem, 4vw, 2.75rem);
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--pad);
}
.hero__hi {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  letter-spacing: 0.02em;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
}
.hero__name {
  font-family: "Open Sans", system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(2.6rem, 9vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--text);
}
.hero__name em { font-style: normal; color: var(--text); }
.hero__intro {
  padding-top: clamp(0.5rem, 1.2vw, 0.85rem);
  padding-bottom: clamp(1rem, 3vw, 2rem);
}
.hero__tagline {
  max-width: 52ch;
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  color: var(--text-dim);
  font-weight: 400;
}

/* --- About ----------------------------------------------- */
.about__grid {
  display: grid;
  grid-template-columns: minmax(240px, 340px) 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.about__photo {
  margin: 0;
  align-self: start;
}
.about__photo img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%);
  transition: filter 0.6s var(--ease);
}
.about__photo:hover img { filter: grayscale(0%); }
.about__text { display: flex; flex-direction: column; }
.about__body { max-width: 60ch; }
.about__body p { color: var(--text-dim); margin-bottom: 1.6rem; font-size: 1.12rem; line-height: 1.85; }
.about__body p:last-child { margin-bottom: 0; }
.about__body strong, .about__body em { color: var(--text); font-style: normal; }

/* --- Work (song list) ------------------------------------ */
.songs { list-style: none; max-width: 760px; }
.song {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--line);
}
.song:first-child { border-top: 1px solid var(--line); }
.song__num {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-faint);
  flex: none;
  width: 2ch;
}
.song__body { flex: 1; min-width: 0; }
.song__title {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.15rem, 2.6vw, 1.45rem);
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.song__meta {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.85rem;
  color: var(--text-faint);
  letter-spacing: 0.02em;
}
.song__links { display: inline-flex; gap: 1rem; flex: none; align-items: center; }
.song__links a {
  display: inline-flex;
  color: var(--text-faint);
  transition: color 0.3s var(--ease), transform 0.3s var(--ease);
}
.song__links a:hover { color: var(--accent); transform: translateY(-2px); }
.song__link--inert {
  display: inline-flex;
  color: var(--text-faint);
  transition: color 0.3s var(--ease), transform 0.3s var(--ease);
}
.song__link--inert:hover { color: var(--accent); transform: translateY(-2px); }
.song__links svg { width: 24px; height: 24px; }


/* --- Gear ------------------------------------------------ */
.gear__list {
  list-style: none;
  display: block;
  max-width: 720px;
}
.gear__list li {
  padding: 0.5rem 0;
  color: var(--text-dim);
  font-size: 1.12rem;
  line-height: 1.5;
}
.gear__list li a {
  color: var(--text-dim);
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  transition: color 0.3s var(--ease);
}
.gear__list li a:hover { color: var(--accent); }
.gear__arrow { color: var(--text-faint); transition: color 0.3s var(--ease); }
.gear__list li a:hover .gear__arrow { color: var(--accent); }

/* --- Button ---------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.95rem 2rem;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  transition: all 0.35s var(--ease);
}
.btn:hover { border-color: var(--accent); color: var(--accent); gap: 1.1rem; }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.btn--beats {
  font-family: var(--display);
  font-weight: 700;
  border-radius: 999px;
  padding: 0.6rem 1.5rem;
  font-size: 0.78rem;
  gap: 0.55rem;
}
.btn--beats:hover {
  border-color: var(--accent);
  color: var(--text);
  gap: 0.55rem;
}
.btn--beats svg { width: 18px; height: 18px; flex: none; }

/* --- Footer ---------------------------------------------- */
.footer {
  padding-block: clamp(3rem, 8vw, 5rem);
  background: var(--bg);
}
.footer__grid { display: flex; flex-direction: column; align-items: flex-start; gap: 1.6rem; }
.footer__mail { font-family: var(--display); font-weight: 800; font-size: clamp(1.5rem, 4vw, 2.5rem); color: var(--text-dim); letter-spacing: -0.015em; line-height: 1.1; max-width: 16ch; }
.footer__mail a { color: var(--text-dim); transition: color 0.3s var(--ease); }
.footer__mail a:hover { color: var(--text); }
.footer__buttons { display: flex; flex-wrap: wrap; gap: 1.6rem; align-items: center; }
.contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-faint);
  transition: color 0.3s var(--ease), transform 0.3s var(--ease);
}
.contact-btn svg { width: 26px; height: 26px; flex: none; }
.contact-btn:hover { color: var(--accent); transform: translateY(-3px); }
.contact-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 2px; }
.footer__legal { width: 100%; margin-top: 2rem; color: var(--text-faint); font-size: 0.8rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }

/* --- Scroll reveal --------------------------------------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  body::after { animation: none; }
}

/* --- Responsive ------------------------------------------ */
@media (max-width: 1024px) {
  .hero__media img { object-position: 30%; top: -10vh;}

}
@media (max-width: 760px) {
  .nav__brand { display: inline-flex; }
  .about__grid { grid-template-columns: 1fr; }
  .about__photo { max-width: 300px; }
  .song__meta { font-size: 0.78rem; }
  .nav__inner { justify-content: flex-start; }
  .nav__links {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: min(78vw, 320px);
    height: 100dvh;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.75rem;
    padding: 6rem 2rem 2rem;
    background: var(--bg-soft);
    border-left: 1px solid var(--line);
    transform: translateX(100%);
    transition: transform 0.45s var(--ease);
    will-change: transform;
  }
  .nav__links.is-open { transform: translateX(0); }
  .nav__toggle { display: inline-flex; }
}
