/*
Theme Name: Janvi Saxena Portfolio
Theme URI: https://janvie.agyatvyakti.com
Author: Studio Build
Description: One-page editorial portfolio for Janvi Saxena — dancer, model, and content creator. Glass panels floating over a fixed backdrop photo, a black and blood-red palette, and an editorial serif/sans type pairing.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: janvi-portfolio
*/

/* ============================================================
   1. RESET / BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

:root {
  /* Color tokens */
  --black:        #0b0708;
  --black-soft:   #150f10;
  --panel:        rgba(21, 14, 15, 0.55);
  --panel-strong: rgba(14, 9, 10, 0.72);
  --border:       rgba(243, 236, 231, 0.10);
  --blood:        #7a0f22;
  --blood-bright: #c41230;
  --blood-deep:   #3a0a14;
  --bone:         #f3ece7;
  --bone-dim:     #cdbfbd;
  --muted:        #9c8a89;

  /* Type */
  --font-display: "Bodoni Moda", "Iowan Old Style", "Palatino Linotype", serif;
  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Layout */
  --max-width: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 2px;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--black);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; margin: 0; color: var(--bone); }
p { margin: 0; }

:focus-visible {
  outline: 2px solid var(--blood-bright);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* ============================================================
   2. FIXED BACKDROP
   ============================================================ */
.bg-fixed {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(180deg, rgba(11,7,8,0.72) 0%, rgba(11,7,8,0.55) 30%, rgba(58,10,20,0.55) 65%, rgba(11,7,8,0.88) 100%),
    url("https://janvie.agyatvyakti.com/wp-content/uploads/2026/09/WhatsApp-Image-2026-09-25-at-15.08.01-1.jpeg");
  background-size: cover;
  background-position: center 20%;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
/* iOS Safari ignores background-attachment: fixed reliably, so we pin a real fixed element instead of relying on it — this rule is a harmless progressive enhancement for browsers that do support it. */

/* ============================================================
   3. HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(11, 7, 8, 0.55);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.9rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.site-header__logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.site-nav {
  display: flex;
  gap: 1.75rem;
  font-size: 0.92rem;
  color: var(--bone-dim);
}
.site-nav a { transition: color 0.2s ease; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--bone); }
.site-header__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--blood-bright);
  border-radius: 999px;
  font-size: 0.88rem;
  color: var(--bone);
  background: rgba(122, 15, 34, 0.18);
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.2s ease;
}
.site-header__cta:hover { background: rgba(196, 18, 48, 0.32); transform: translateY(-1px); }
.site-header__cta svg { width: 16px; height: 16px; fill: currentColor; }

@media (max-width: 720px) {
  .site-nav { display: none; }
  .site-header__cta span { display: none; }
  .site-header__cta { padding: 0.6rem; }
}

/* ============================================================
   4. HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(11,7,8,0.25) 0%, rgba(11,7,8,0.35) 45%, rgba(11,7,8,0.92) 100%);
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  padding: 0 var(--gutter) 5rem;
  animation: hero-rise 1.1s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero__name {
  font-size: clamp(2.75rem, 8vw, 5.5rem);
  line-height: 0.98;
  max-width: 14ch;
}
.hero__tagline {
  margin-top: 1.1rem;
  max-width: 34ch;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: var(--bone-dim);
}
.hero__meta { margin-top: 1.6rem; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--bone-dim);
  background: rgba(255,255,255,0.03);
}
.hero__scroll {
  position: absolute;
  bottom: 1.8rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 1px;
  height: 42px;
  background: linear-gradient(180deg, transparent, var(--bone-dim) 40%, transparent);
  overflow: hidden;
}
.hero__scroll span {
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--blood-bright);
  animation: scroll-drip 2.2s ease-in-out infinite;
}
@keyframes scroll-drip {
  0% { top: -100%; }
  60% { top: 100%; }
  100% { top: 100%; }
}

/* ============================================================
   5. GLASS PANEL (shared)
   ============================================================ */
.glass {
  background: var(--panel);
  border: 1px solid var(--border);
  backdrop-filter: blur(20px) saturate(130%);
  -webkit-backdrop-filter: blur(20px) saturate(130%);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.04);
}

/* ============================================================
   6. SECTION SHELLS
   ============================================================ */
section { padding: clamp(4rem, 9vw, 7rem) var(--gutter); }
.section-head { max-width: var(--max-width); margin: 0 auto 2.75rem; }
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.section-head p { margin-top: 0.6rem; color: var(--bone-dim); max-width: 46ch; }

/* ============================================================
   7. ABOUT
   ============================================================ */
.about__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.about__inner h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: 1.6rem; }
.about__text {
  padding: clamp(1.75rem, 4vw, 2.75rem);
  border-radius: var(--radius);
}
.about__text p { color: var(--bone-dim); margin-bottom: 1.1rem; max-width: 62ch; }
.about__text p:last-child { margin-bottom: 0; }
.about__side { display: flex; flex-direction: column; gap: 1rem; padding-top: 0.5rem; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.92rem;
  color: var(--bone-dim);
  background: rgba(255,255,255,0.025);
}
.chip--link { transition: border-color 0.2s ease, color 0.2s ease; }
.chip--link:hover { border-color: var(--blood-bright); color: var(--bone); }

@media (max-width: 860px) {
  .about__inner { grid-template-columns: 1fr; }
}

/* ============================================================
   8. PORTRAITS — masonry via CSS multi-column
   ============================================================ */
.masonry {
  max-width: var(--max-width);
  margin: 0 auto;
  columns: 3 320px;
  column-gap: 1.1rem;
}
.portrait {
  margin: 0 0 1.1rem;
  break-inside: avoid;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  position: relative;
}
.portrait img {
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: zoom-in;
}
.portrait:hover img { transform: scale(1.035); }
.portrait--wide { column-span: all; margin-bottom: 1.1rem; }
.portrait--wide img { aspect-ratio: 16 / 9; }

@media (max-width: 900px) { .masonry { columns: 2 260px; } }
@media (max-width: 560px) { .masonry { columns: 1; } }

/* ============================================================
   9. GALLERY
   ============================================================ */
.gallery__grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
}
.gallery__grid figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.gallery__grid img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.gallery__grid figure:hover img { transform: scale(1.035); }

@media (max-width: 640px) {
  .gallery__grid { grid-template-columns: 1fr 1fr; gap: 0.7rem; }
}

/* ============================================================
   10. CONNECT
   ============================================================ */
.connect__panel {
  max-width: 780px;
  margin: 0 auto;
  padding: clamp(2.25rem, 5vw, 3.5rem);
  border-radius: var(--radius);
  text-align: left;
}
.connect__panel h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.connect__panel > p { margin-top: 0.8rem; color: var(--bone-dim); max-width: 48ch; }
.connect__actions {
  margin-top: 2.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 500;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn--primary {
  background: linear-gradient(135deg, var(--blood-bright), var(--blood));
  color: var(--bone);
  box-shadow: 0 12px 30px -10px rgba(196, 18, 48, 0.55);
}
.btn--primary:hover { transform: translateY(-2px); }
.btn--ghost {
  border: 1px solid var(--border);
  color: var(--bone-dim);
}
.btn--ghost:hover { border-color: var(--blood-bright); color: var(--bone); }
.btn svg { width: 18px; height: 18px; fill: currentColor; }

/* ============================================================
   11. FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(11,7,8,0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.site-footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.25rem var(--gutter);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 0.85rem;
}
.site-footer__inner a { transition: color 0.2s ease; }
.site-footer__inner a:hover { color: var(--bone); }
.site-footer__credit { font-size: 0.8rem; color: var(--muted); }

/* ============================================================
   12. FLOATING WHATSAPP CTA
   ============================================================ */
.floating-whatsapp {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 50;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--blood-bright), var(--blood));
  box-shadow: 0 10px 30px -8px rgba(196, 18, 48, 0.7);
  animation: whatsapp-pulse 2.6s ease-in-out infinite;
}
.floating-whatsapp svg { width: 26px; height: 26px; fill: var(--bone); }
@keyframes whatsapp-pulse {
  0%, 100% { box-shadow: 0 10px 30px -8px rgba(196, 18, 48, 0.7); }
  50% { box-shadow: 0 10px 34px -6px rgba(196, 18, 48, 0.95), 0 0 0 8px rgba(196, 18, 48, 0.12); }
}

/* ============================================================
   13. LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(8, 4, 5, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.lightbox[hidden] { display: none; }
.lightbox__img {
  max-width: min(90vw, 900px);
  max-height: 86vh;
  width: auto;
  object-fit: contain;
  border: 1px solid var(--border);
}
.lightbox__close, .lightbox__prev, .lightbox__next {
  position: absolute;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  color: var(--bone);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.4rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.lightbox__close:hover, .lightbox__prev:hover, .lightbox__next:hover { background: rgba(196,18,48,0.35); }
.lightbox__close { top: 1.4rem; right: 1.4rem; }
.lightbox__prev { left: 1.4rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 1.4rem; top: 50%; transform: translateY(-50%); }

@media (max-width: 640px) {
  .lightbox__prev, .lightbox__next { width: 38px; height: 38px; }
}
