/* ═══════════════════════════════════════════════════════════
   CHHAVI MEHTA — PORTFOLIO
   A high-end, minimal, architecturally considered design
   ═══════════════════════════════════════════════════════════ */

/* ── Design Tokens ── */
:root {
  --bg:          #F5F4F0;
  --bg-white:    #FAFAF8;
  --text:        #1A1A1A;
  --text-light:  #6B6B6B;
  --accent:      #B8A88A;          /* muted brass / gold */
  --accent-cool: #9A9A9A;          /* cool grey fallback */
  --rule:        rgba(26,26,26,.12);
  --rule-dark:   rgba(26,26,26,.25);

  --serif:       'Cormorant Garamond', 'Georgia', serif;
  --sans:        'DM Sans', 'Helvetica Neue', Arial, sans-serif;

  --nav-height:  72px;
  --ease:        cubic-bezier(.25,.1,.25,1);
  --ease-out:    cubic-bezier(0,0,.2,1);
}

/* ── Reset ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
}

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


/* ═══════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: background .5s var(--ease), box-shadow .5s var(--ease);
}

.nav--scrolled {
  background: rgba(245,244,240,.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--rule);
}

.nav--solid {
  background: var(--bg);
  box-shadow: 0 1px 0 var(--rule);
}

.nav__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(24px, 4vw, 64px);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 500;
  letter-spacing: .01em;
  transition: opacity .3s var(--ease);
}
.nav__logo:hover { opacity: .6; }

.nav__links {
  display: flex;
  gap: 40px;
}

.nav__link {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  position: relative;
  transition: color .3s var(--ease);
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width .4s var(--ease);
}
.nav__link:hover { color: var(--accent); }
.nav__link:hover::after { width: 100%; }
.nav__link--active { color: var(--accent); }
.nav__link--active::after { width: 100%; }

/* Hero-state: white text */
.nav:not(.nav--scrolled):not(.nav--solid) .nav__logo,
.nav:not(.nav--scrolled):not(.nav--solid) .nav__link {
  color: #fff;
}
.nav:not(.nav--scrolled):not(.nav--solid) .nav__link:hover {
  color: var(--accent);
}
.nav:not(.nav--scrolled):not(.nav--solid) .nav__hamburger span {
  background: #fff;
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  z-index: 1001;
}
.nav__hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--text);
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.nav__hamburger.open span:first-child {
  transform: translateY(3.75px) rotate(45deg);
}
.nav__hamburger.open span:last-child {
  transform: translateY(-3.75px) rotate(-45deg);
}

/* Mobile menu overlay */
.nav__mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s var(--ease);
  z-index: 999;
}
.nav__mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.nav__mobile-link {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 400;
  letter-spacing: .02em;
  transition: color .3s var(--ease);
}
.nav__mobile-link:hover { color: var(--accent); }



/* ═══════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════ */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.hero__image-container {
  position: absolute;
  inset: 0;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,.18) 0%,
    rgba(0,0,0,.06) 40%,
    rgba(0,0,0,.35) 100%
  );
}

.hero__content {
  position: absolute;
  bottom: 15%;
  left: 0;
  width: 100%;
  text-align: center;
  color: #fff;
  z-index: 2;
  padding: 0 24px;
}

.hero__title {
  font-family: var(--serif);
  font-size: clamp(42px, 7vw, 96px);
  font-weight: 300;
  letter-spacing: .02em;
  line-height: 1.1;
  margin-bottom: 16px;
  opacity: 0;
  transform: translateY(30px);
  animation: heroReveal 1.2s var(--ease-out) .3s forwards;
}

.hero__subtitle {
  font-family: var(--sans);
  font-size: clamp(11px, 1.2vw, 14px);
  font-weight: 500;
  letter-spacing: .25em;
  text-transform: uppercase;
  margin-bottom: 10px;
  opacity: 0;
  transform: translateY(20px);
  animation: heroReveal 1s var(--ease-out) .7s forwards;
}

.hero__descriptor {
  font-family: var(--sans);
  font-size: clamp(12px, 1.1vw, 15px);
  font-weight: 300;
  letter-spacing: .12em;
  opacity: 0;
  transform: translateY(20px);
  animation: heroReveal 1s var(--ease-out) 1s forwards;
}

@keyframes heroReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll indicator */
.hero__scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  opacity: 0;
  animation: heroReveal 1s var(--ease-out) 1.5s forwards;
}

.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: rgba(255,255,255,.3);
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: '';
  position: absolute;
  top: -48px;
  left: 0;
  width: 1px;
  height: 48px;
  background: #fff;
  animation: scrollPulse 2s var(--ease) infinite;
}

@keyframes scrollPulse {
  0%   { transform: translateY(0); }
  100% { transform: translateY(96px); }
}


/* ═══════════════════════════════════════════
   ANNOUNCEMENT BANNER
   ═══════════════════════════════════════════ */
.announcement {
  padding: 0;
  overflow: hidden;
}

.announcement__rule {
  height: 1px;
  background: var(--rule);
}

.announcement__marquee {
  overflow: hidden;
  padding: 20px 0;
  cursor: default;
}

.announcement__track {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  animation: marqueeScroll 28s linear infinite;
  width: max-content;
}

.announcement__text {
  font-family: var(--sans);
  font-size: clamp(12px, 1.1vw, 14px);
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--text-light);
}

.announcement__separator {
  font-size: 8px;
  color: var(--accent);
  display: flex;
  align-items: center;
}

@keyframes marqueeScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}


/* ═══════════════════════════════════════════
   GALLERY
   ═══════════════════════════════════════════ */
.gallery {
  padding: clamp(40px, 6vw, 100px) clamp(16px, 4vw, 64px);
  max-width: 1440px;
  margin: 0 auto;
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(12px, 2vw, 28px);
}

/* Wide — full row */
.gallery__item--wide {
  grid-column: 1 / -1;
}

/* Portrait — narrower, taller */
.gallery__item--portrait {
  grid-column: span 5;
}

/* Landscape — wider */
.gallery__item--landscape {
  grid-column: span 7;
}

/* Third — 4 cols each */
.gallery__item--third {
  grid-column: span 4;
}

.gallery__item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-radius: 2px;
}

.gallery__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .8s var(--ease);
}

.gallery__hover {
  position: absolute;
  inset: 0;
  background: rgba(26,26,26,0);
  transition: background .5s var(--ease);
}

.gallery__item:hover .gallery__img {
  transform: scale(1.03);
}
.gallery__item:hover .gallery__hover {
  background: rgba(26,26,26,.08);
}

/* Aspect ratios for placeholders */
.gallery__item--wide {
  aspect-ratio: 16 / 7;
}
.gallery__item--portrait {
  aspect-ratio: 3 / 4;
}
.gallery__item--landscape {
  aspect-ratio: 16 / 10;
}
.gallery__item--third {
  aspect-ratio: 4 / 5;
}


/* ═══════════════════════════════════════════
   FADE-IN ANIMATION  (scroll reveal)
   ═══════════════════════════════════════════ */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.footer {
  padding: 0 clamp(24px, 4vw, 64px);
  margin-top: clamp(60px, 8vw, 120px);
}

.footer__rule {
  height: 1px;
  background: var(--rule);
}

.footer__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 48px 0 40px;
  text-align: center;
}

.footer__name {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: .02em;
  margin-bottom: 8px;
}

.footer__tagline {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 20px;
}

.footer__links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}

.footer__link {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  color: var(--text-light);
  transition: color .3s var(--ease);
}
.footer__link:hover { color: var(--accent); }

.footer__dot {
  color: var(--rule-dark);
  font-size: 10px;
}

.footer__year {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--accent-cool);
  letter-spacing: .05em;
}


/* ═══════════════════════════════════════════
   ABOUT PAGE
   ═══════════════════════════════════════════ */
.about {
  padding-top: calc(var(--nav-height) + clamp(40px, 6vw, 80px));
  padding-bottom: 0;
}

.about__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 100px);
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(24px, 4vw, 64px);
  align-items: start;
}

.about__image-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}

.about__image {
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 3 / 4;
}

.about__text-col {
  padding-top: clamp(0px, 3vw, 40px);
}

.about__heading {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 300;
  letter-spacing: .02em;
  line-height: 1.1;
  margin-bottom: clamp(28px, 3vw, 48px);
}

.about__bio p {
  font-family: var(--sans);
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 20px;
}
.about__bio p:last-child {
  margin-bottom: 0;
}

.about__details {
  margin-top: clamp(40px, 4vw, 64px);
}

.about__detail-rule {
  height: 1px;
  background: var(--rule);
}

.about__detail-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 18px 0;
  gap: 24px;
}

.about__detail-label {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-light);
  flex-shrink: 0;
}

.about__detail-value {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  color: var(--text);
  text-align: right;
}


/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }

  /* Gallery: simplify grid */
  .gallery__grid {
    grid-template-columns: 1fr 1fr;
  }
  .gallery__item--wide { grid-column: 1 / -1; }
  .gallery__item--portrait { grid-column: span 1; }
  .gallery__item--landscape { grid-column: span 1; }
  .gallery__item--third { grid-column: span 1; }

  /* About: stack */
  .about__layout {
    grid-template-columns: 1fr;
  }
  .about__image {
    aspect-ratio: 3 / 4;
  }
}

@media (max-width: 600px) {
  :root {
    --nav-height: 60px;
  }

  .gallery__grid {
    grid-template-columns: 1fr;
  }
  .gallery__item--wide,
  .gallery__item--portrait,
  .gallery__item--landscape,
  .gallery__item--third {
    grid-column: 1 / -1;
  }

  .gallery__item--portrait {
    aspect-ratio: 3 / 4;
  }
  .gallery__item--landscape {
    aspect-ratio: 16 / 10;
  }
  .gallery__item--third {
    aspect-ratio: 1 / 1;
  }

  .about__detail-row {
    flex-direction: column;
    gap: 4px;
  }
  .about__detail-value {
    text-align: left;
  }

  .hero__content {
    bottom: 20%;
  }

  .footer__links {
    flex-direction: column;
    gap: 8px;
  }
  .footer__dot { display: none; }
}


/* ═══════════════════════════════════════════
   CURSOR
   ═══════════════════════════════════════════ */
body {
  cursor: default;
}
a, button, .gallery__item {
  cursor: pointer;
}


/* ═══════════════════════════════════════════
   PLACEHOLDER IMAGE STYLING
   (grey boxes until real images are loaded)
   ═══════════════════════════════════════════ */
.hero__image,
.gallery__img,
.about__image {
  background: #E0DFDB;
}
