/* ═══════════════════════════════════════════
   NIKHIL MEHTA — BILLYKID
═══════════════════════════════════════════ */

/* ── VARIABLES ── */
:root {
  --black:      #000000;
  --dark:       #141414;
  --mid:        #2a2a2a;
  --dim:        #505050;
  --muted:      #808080;
  --light:      #c0c0c0;
  --white:      #ffffff;

  /* Film palette */
  --film-cream:   #f5f3e4;
  --film-crimson: #6e0f17;
  --film-gold:    #f8bc1e;
  --film-blue:    #6b92aa;
  --film-green:   #152212;
  --film-sage:    #84a896;

  --accent: var(--film-gold);

  --font-display: 'Neue Montreal', sans-serif;
  --font-mono:    'Neue Montreal Mono', 'Neue Montreal', monospace;

  --nav-h:       80px;
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);

  /* Gallery */
  --slide-w:     68vw;     /* width of the active centre slide */
  --slide-peek:  11vw;     /* how much of prev/next is visible */
  --slide-gap:   24px;
  --slide-aspect: 16/9;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { display: block; object-fit: cover; }
a { text-decoration: none; color: inherit; }
button { background: none; border: none; cursor: pointer; font-family: inherit; }

main { flex: 1; margin-top: var(--nav-h); }

/* ── Film Grain ── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
  opacity: 0.035;
  z-index: 9999;
}

/* ═══════════════════════════════════════════
   NAVIGATION
═══════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  height: var(--nav-h);
  background: var(--black);
  border-bottom: 1px solid var(--mid);
  transition: border-color 0.4s;
}
.nav.scrolled { border-bottom: 1px solid rgba(255,255,255,0.12); }

.nav-logo {
  position: absolute;
  left: 32px;
  top: 50%;
  transform: translateY(-50%);
}
.nav-logo-img {
  height: 56px;
  width: 56px;
  object-fit: contain;
  mix-blend-mode: lighten;
  transition: opacity 0.2s;
}
.nav-logo:hover .nav-logo-img { opacity: 0.75; }

.nav-links {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  gap: 36px;
}
.nav-link {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  color: var(--muted);
  transition: color 0.2s;
  position: relative;
}
.nav-link.active {
  color: var(--white);
}
.nav-link.active::after {
  width: 100%;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.3s var(--ease-out);
}
.nav-link:hover { color: var(--white); }
.nav-link:hover::after { width: 100%; }

.nav-menu-btn {
  position: absolute;
  right: 32px;
  top: 50%;
  transform: translateY(-50%);
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.nav-menu-btn span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--white);
  transition: transform 0.3s, opacity 0.3s;
}

/* ── Mobile Menu ── */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 600;
  background: var(--black);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 48px;
  transform: translateX(100%);
  transition: transform 0.5s var(--ease-in-out);
}
.mobile-menu.open { transform: translateX(0); }

.mobile-close {
  position: absolute;
  top: 20px; right: 24px;
  font-size: 1.2rem;
  color: var(--muted);
  transition: color 0.2s;
}
.mobile-close:hover { color: var(--white); }

.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}
.mobile-nav-link {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 10vw, 4rem);
  letter-spacing: 0.05em;
  color: var(--dim);
  transition: color 0.2s;
}
.mobile-nav-link:hover { color: var(--white); }

.mobile-footer {
  position: absolute;
  bottom: 32px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--dim);
}

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
.footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 40px 48px 48px;
  border-top: 1px solid var(--mid);
  margin-top: auto;
}
.footer-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.2em;
  color: var(--white);
}
.footer-sub {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.footer-info {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  transition: color 0.2s;
  align-self: flex-start;
  text-transform: uppercase;
}
.footer-info:hover { color: var(--white); }


/* ═══════════════════════════════════════════
  ABOUT PAGE
═══════════════════════════════════════════ */
.about-hero-page {
  padding: 80px 48px 0;
  max-width: 1200px;
  margin: 0 auto;
}

.about-page-top {
  display: grid;
  grid-template-columns:1fr 340px ;
  gap: 64px;
  align-items: start;
  margin-bottom: 72px;
}

.headshot-wrap {
  position: relative;
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.9s var(--ease-out) 0.1s forwards;
  display: flex;
  grid-column: 2;
  justify-content: flex-end;
  width:100% ;
}
.headshot {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  display: block;
}

.full-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 600px;
  grid-column: 1;
  grid-row: 1;
  transform: translateY(24px);
  align-items: end;
  animation: fadeUp 0.9s var(--ease-out) 0.25s forwards;
  margin-top: 60px
}

.about-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 0.92;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 32px;
}

.about-first-paragraph, 
.about-second-paragraph, 
.about-third-paragraph {
  margin-bottom: 20px;
  color: var(--light);
  text-align: right;
  font-size: larger;
}

/* ═══════════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════════ */
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  to { opacity: 1; }
}

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 900px) {
  :root {
    --slide-w:    80vw;
    --slide-peek: 8vw;
  }

  .nav-links { display: none; }
  .nav-menu-btn { display: flex; }

  .about-hero-page { padding: 48px 24px 0; }
  .gallery-header { padding: 0 24px; }
  .gallery-controls { padding: 0 24px; gap: 24px; }

  .about-page-top {
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 48px;
  }
  .headshot-wrap {
    max-width: 260px;
    grid-column: 1;
    margin: 0 auto;
  }
  .headshot-wrap::before { display: none; }
  .film-title { font-size: clamp(2.5rem, 12vw, 4rem); }

  .credit-role { min-width: 110px; }

  .footer { padding: 32px 24px 40px; }
}

@media (max-width: 560px) {
  :root {
    --slide-w:    88vw;
    --slide-peek: 5vw;
    --slide-gap:  16px;
  }

  .credit-item { flex-direction: column; gap: 2px; padding: 11px 0; }
  .credit-role { min-width: unset; }

  .gallery-dots { display: none; }

  .footer { flex-direction: column; gap: 24px; }
}