/* ============================================================
   RESET & BASE STYLES
   Fashion Designer Portfolio — Udita Kapoor
   Light/White Theme
   ============================================================ */

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

/* GPU compositing for key animated elements */
.hero__image-frame,
.hero__bg-text {
  will-change: transform;
}

/* --- Custom Properties --- */
:root {
  --font-display: 'Bodoni Moda', 'Didot', 'Georgia', serif;
  --font-body: 'Inter', 'Helvetica Neue', 'Helvetica', sans-serif;
  --color-bg: #ffffff;
  --color-text: #1a1a1a;
  --color-text-muted: #7a7a7a;
  --color-accent-gold: #b8956a;
  --nav-height: 80px;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Text Rendering --- */
html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Lenis Smooth Scroll --- */
html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

/* --- Body --- */
body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  font-weight: 300;
  overflow-x: hidden;
}

/* --- Headings --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

/* --- Link / Image / Button Resets --- */
a {
  color: inherit;
  text-decoration: none;
}

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

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


/* ============================================================
   CUSTOM CURSOR
   ============================================================ */

.cursor-follower {
  position: fixed;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(184, 149, 106, 0.5);
  pointer-events: none;
  z-index: 10000;
  mix-blend-mode: difference;
  transform: translate(-50%, -50%);
  will-change: transform;
  transition: width 0.4s var(--ease-out-expo),
              height 0.4s var(--ease-out-expo),
              border-color 0.3s ease;
}

.cursor-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-body);
  font-size: 0.5rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--color-text);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cursor-follower.has-label {
  width: 80px;
  height: 80px;
}

.cursor-follower.has-label .cursor-label {
  opacity: 1;
}

.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent-gold);
  pointer-events: none;
  z-index: 10001;
  transform: translate(-50%, -50%);
  will-change: transform;
}

/* Hide custom cursors on touch devices */
@media (hover: none), (pointer: coarse) {
  .cursor-follower,
  .cursor-dot {
    display: none !important;
  }
}


/* ============================================================
   LOADING SCREEN
   ============================================================ */

.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 10002;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s var(--ease-out-expo),
              transform 0.8s var(--ease-out-expo);
}

.loading-screen.hidden {
  opacity: 0;
  transform: translateY(-100%);
  pointer-events: none;
}

.loading-screen__counter {
  font-family: var(--font-display);
  font-size: clamp(5rem, 15vw, 12rem);
  font-weight: 400;
  color: var(--color-text);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 1rem;
}

.loading-screen__text {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

.loading-screen__progress-track {
  width: 200px;
  height: 1px;
  background: rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.loading-screen__progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: var(--color-accent-gold);
  transition: width 0.1s ease;
}


/* ============================================================
   NAVIGATION
   ============================================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  padding: 1.5rem 3rem;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: transform 0.5s var(--ease-out-expo),
              opacity 0.5s ease,
              background 0.4s ease,
              border-color 0.4s ease;
}

.nav--solid {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: rgba(0, 0, 0, 0.06);
}

.nav__logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.nav__logo-line {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 400;
  color: #1a1a1a;
}

.nav__links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav__link {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #1a1a1a;
  position: relative;
  padding: 0.25rem 0;
  font-weight: 300;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: #1a1a1a;
  transition: width 0.3s ease;
}

.nav__link:hover::after,
.nav__link.active::after {
  width: 100%;
}

/* Hamburger — hidden on desktop */
.nav__hamburger {
  display: none;
  width: 32px;
  height: 32px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}

.nav__hamburger-line {
  display: block;
  width: 20px;
  height: 1px;
  background: #1a1a1a;
  transition: all 0.3s ease;
  transform-origin: center;
}

.nav__hamburger.open .nav__hamburger-line:first-child {
  transform: rotate(45deg) translate(3px, 3px);
}

.nav__hamburger.open .nav__hamburger-line:nth-child(2) {
  opacity: 0;
}

.nav__hamburger.open .nav__hamburger-line:last-child {
  transform: rotate(-45deg) translate(3px, -3px);
}


/* ============================================================
   HERO SECTION — Editorial Magazine Cover
   Image in front, massive name text behind, creating depth.
   ============================================================ */

#hero {
  position: relative;
  width: 100%;
  height: 300vh;
  overflow: visible;
}

.hero__pinned {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: #fff;
}

/* ---- Background text — behind the image ---- */
.hero__bg-text {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.hero__bg-text-line {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(5rem, 14vw, 15rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 0.85;
  color: rgba(0, 0, 0, 0.04);
  user-select: none;
  will-change: transform, opacity;
}

/* ---- Image — in front of background text ---- */
.hero__image-frame {
  position: absolute;
  z-index: 2;
  top: var(--nav-height);
  left: 50%;
  transform: translateX(-50%);
  height: calc(100% - var(--nav-height));
  width: auto;
  max-width: 55vw;
  will-change: transform;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  will-change: transform;
  transform-origin: center 35%;
}

/* ---- Content — above everything ---- */
.hero__content {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 3vh 2rem 4.5vh;
  pointer-events: none;
  will-change: opacity;
}

.hero__eyebrow {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--color-text);
  opacity: 0;
  pointer-events: auto;
  white-space: nowrap;
}

.hero__bottom {
  padding-bottom: 4vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  pointer-events: auto;
}

.hero__subtitle {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
  opacity: 0;
}

.hero__dive-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.8rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
  opacity: 0;
  transition: all 0.4s ease;
}

.hero__dive-btn:hover {
  border-color: rgba(0, 0, 0, 0.3);
}

.hero__dive-btn-arrow {
  display: flex;
  animation: diveArrowPulse 2.5s ease-in-out infinite;
}

@keyframes diveArrowPulse {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}

/* ---- White overlay for zoom transition ---- */
.hero__blackout {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: #fff;
  opacity: 0;
  pointer-events: none;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.8rem 2.5rem;
  border: 1px solid rgba(0, 0, 0, 0.2);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 300;
  background: transparent;
  cursor: pointer;
  transition: all 0.4s ease;
}

.btn:hover {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.5);
}

.btn--primary {
  background: rgba(0, 0, 0, 0.03);
}

/* --- Scroll Indicator --- */
.hero__scroll-indicator {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.hero__scroll-text {
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--color-text-muted), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% {
    opacity: 0.3;
    transform: scaleY(0.5);
    transform-origin: top;
  }
  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}


/* ============================================================
   FILM GRAIN OVERLAY
   ============================================================ */

.film-grain {
  display: none;
}


/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  padding: 4rem 3rem 2rem;
  text-align: center;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.footer__logo {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.footer__socials {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.footer__social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.footer__social-link:hover {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.footer__copyright {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  letter-spacing: 0.1em;
}


/* ============================================================
   UTILITY
   ============================================================ */

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 3rem;
}
