/* ============================================================
   VALENTINE — Modern Redesign
   Nikhil ♡ Santoshi
   ============================================================ */

:root {
  --bg:            #fff8f5;
  --bg-alt:        #fef0f5;
  --text:          #3a2a1f;
  --text-muted:    #7a5f55;
  --accent:        #e68aa1;
  --accent-deep:   #c95c78;
  --love-red:      #e16268;
  --light-accent:  #f9e4ec;
  --white:         #ffffff;

  --radius-sm:     8px;
  --radius-md:     16px;
  --radius-lg:     24px;
  --radius-full:   9999px;

  --shadow-sm:     0 2px 12px rgba(180,80,100,0.08);
  --shadow-md:     0 8px 32px rgba(180,80,100,0.14);
  --shadow-lg:     0 20px 60px rgba(180,80,100,0.18);

  --nav-h:         64px;
  --transition:    0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a  { text-decoration: none; color: inherit; }

/* ── NAVBAR ── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background var(--transition), box-shadow var(--transition), backdrop-filter var(--transition);
}

.navbar.scrolled {
  background: rgba(255, 248, 245, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(180,80,100,0.12), var(--shadow-sm);
}

.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  height: 100%;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-family: 'Great Vibes', cursive;
  font-size: 1.6rem;
  color: var(--accent-deep);
  letter-spacing: 1px;
  transition: color var(--transition);
}
.nav-brand:hover { color: var(--love-red); }

.nav-links {
  list-style: none;
  display: flex;
  gap: 2.5rem;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  position: relative;
  transition: color var(--transition);
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -3px;
  width: 0; height: 2px;
  background: var(--accent);
  border-radius: var(--radius-full);
  transition: width var(--transition);
}

.nav-link:hover,
.nav-link.active { color: var(--accent-deep); }
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--accent-deep);
  border-radius: var(--radius-full);
  transition: transform var(--transition), opacity var(--transition);
}

/* ── TICKER ── */
.ticker-wrap {
  overflow: hidden;
  background: var(--accent);
  margin-top: var(--nav-h);
}
.ticker-wrap--bottom { margin-top: 0; }

.ticker-track {
  display: flex;
  width: max-content;
  animation: tickerScroll 30s linear infinite;
}

.ticker-item {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--white);
  padding: 0.55rem 1.5rem;
  white-space: nowrap;
  letter-spacing: 0.5px;
}

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

/* ── SCROLL REVEAL ── */
.reveal,
.reveal-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--transition), transform 0.7s var(--transition);
}
.reveal.visible,
.reveal-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-card {
  opacity: 0;
  transform: translateY(24px) scale(0.97);
  transition: opacity 0.6s var(--transition), transform 0.6s var(--transition);
}
.reveal-card.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background-image: url(images/hero-image.gif);
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(30,10,15,0.35) 0%,
    rgba(30,10,15,0.55) 60%,
    rgba(30,10,15,0.7)  100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem 1.5rem;
}

.hero-eyebrow {
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-bottom: 1rem;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  font-weight: 400;
  font-style: italic;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1.25rem;
  text-shadow: 0 4px 24px rgba(0,0,0,0.5);
}

.heart-pulse {
  display: inline-block;
  color: var(--accent);
  animation: heartBeat 1.8s ease-in-out infinite;
}
@keyframes heartBeat {
  0%,100% { transform: scale(1); }
  14%      { transform: scale(1.25); }
  28%      { transform: scale(1); }
  42%      { transform: scale(1.18); }
  70%      { transform: scale(1); }
}

.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 2.5rem;
  font-weight: 300;
}

.hero-cta {
  display: inline-block;
  padding: 0.75rem 2rem;
  border: 1.5px solid rgba(255,255,255,0.7);
  border-radius: var(--radius-full);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
  backdrop-filter: blur(4px);
}
.hero-cta:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

.floating-hearts {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.fh {
  position: absolute;
  font-size: 1.2rem;
  color: rgba(255,180,200,0.55);
  animation: floatHeart 8s ease-in-out infinite;
}
.fh:nth-child(1)  { left: 8%;  bottom: 20%; animation-delay: 0s;   animation-duration: 7s; }
.fh:nth-child(2)  { left: 20%; bottom: 40%; animation-delay: 1.2s; animation-duration: 9s; }
.fh:nth-child(3)  { left: 75%; bottom: 30%; animation-delay: 0.5s; animation-duration: 8s; }
.fh:nth-child(4)  { left: 88%; bottom: 60%; animation-delay: 2s;   animation-duration: 6s; }
.fh:nth-child(5)  { left: 45%; bottom: 15%; animation-delay: 3s;   animation-duration: 10s;}
.fh:nth-child(6)  { left: 60%; bottom: 50%; animation-delay: 1.8s; animation-duration: 7.5s;}
@keyframes floatHeart {
  0%,100% { transform: translateY(0) scale(1); opacity: 0.5; }
  50%      { transform: translateY(-40px) scale(1.3); opacity: 1; }
}

/* ── LETTER ── */
.letter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  max-width: 900px;
  margin: 6rem auto;
  padding: 0 1.5rem;
}

.letter-img {
  width: 280px;
  flex-shrink: 0;
  filter: drop-shadow(0 8px 24px rgba(180,80,100,0.18));
  transition: transform var(--transition);
}
.letter-img:hover { transform: rotate(-2deg) scale(1.03); }

.letter-text { max-width: 420px; }

.letter-main {
  font-family: 'Great Vibes', cursive;
  font-size: 2.8rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.letter-subtext {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.letter-hint {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ── MOMENTS GALLERY ── */
.moments {
  max-width: 1080px;
  margin: 0 auto 6rem;
  padding: 0 1.5rem;
}

.section-label {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 400;
  color: var(--text);
  text-align: center;
  margin-bottom: 3rem;
  line-height: 1.3;
}

.image-gallery {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.column {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  gap: 16px;
}

.photo {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.photo:hover {
  transform: scale(1.03) translateY(-4px);
  box-shadow: var(--shadow-md);
}

.photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
  transition: transform var(--transition);
}
.photo:hover img { transform: scale(1.06); }

/* ── JOURNEY CARDS ── */
#journey {
  max-width: 960px;
  margin: 0 auto 6rem;
  padding: 0 1.5rem;
}

.moment-card {
  display: flex;
  align-items: center;
  gap: 4rem;
  margin-bottom: 6rem;
}

.moment-card--flip { flex-direction: row-reverse; }

.moment-img-wrap { position: relative; flex-shrink: 0; }

.moment-img-wrap > img:first-child {
  width: 300px;
  height: 360px;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition);
}
.moment-card:hover .moment-img-wrap > img:first-child {
  transform: scale(1.03) rotate(-1deg);
  box-shadow: var(--shadow-lg);
}

.moment-deco {
  position: absolute;
  width: 72px;
  bottom: -16px; right: -20px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15));
  animation: decoFloat 4s ease-in-out infinite;
}
.moment-deco--leaf {
  transform: rotate(-60deg);
  animation: decoSpin 6s ease-in-out infinite;
}
@keyframes decoFloat {
  0%,100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-8px) rotate(10deg); }
}
@keyframes decoSpin {
  0%,100% { transform: rotate(-60deg) translateY(0); }
  50%      { transform: rotate(-50deg) translateY(-6px); }
}

.moment-copy { flex: 1; }

.moment-tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.moment-heading {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 400;
  color: var(--text);
  line-height: 1.25;
  margin-bottom: 1rem;
}

.moment-body {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
}

/* ── MUSIC ── */
.music-section {
  position: relative;
  padding: 6rem 1.5rem 7rem;
  background: linear-gradient(to bottom,
    #020309 0%,
    #040818 20%,
    #060c22 50%,
    #04091a 75%,
    #020409 100%);
  overflow: hidden;
}

/* Moonlight glow */
.music-section::before {
  content: '';
  position: absolute;
  top: -60px;
  right: 9%;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,250,200,0.08) 0%, transparent 70%);
  pointer-events: none;
}

/* Moon */
.music-section::after {
  content: '';
  position: absolute;
  top: 28px;
  right: 10.5%;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fffde7 0%, #fff3b0 55%, #ffe57a 100%);
  box-shadow:
    0 0 14px rgba(255,250,180,0.55),
    0 0 40px rgba(255,240,100,0.2),
    0 0 80px rgba(255,230,60,0.08);
  pointer-events: none;
  z-index: 1;
}

.music-inner {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.music-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.music-label-tag {
  color: var(--accent) !important;
  text-align: center;
  margin-bottom: 0.6rem;
}

.music-title {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  font-weight: 400;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 0.6rem;
}

.music-subtitle {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.38);
  font-style: italic;
  letter-spacing: 0.5px;
}

/* playlist grid */
.playlist-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.track-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.25rem 1rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.track-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(230,138,161,0.28);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.track-num {
  display: block;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.track-caption {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  font-style: italic;
  margin-bottom: 0.8rem;
  letter-spacing: 0.3px;
  line-height: 1.5;
}

/* ── STARS ── */
.stars-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.star {
  position: absolute;
  border-radius: 50%;
  background: #fff;
  animation: starTwinkle ease-in-out infinite;
}

@keyframes starTwinkle {
  0%, 100% { opacity: 0.15; transform: scale(0.8); }
  50%       { opacity: 1;    transform: scale(1.3); }
}

/* ── VINYL RECORD ── */
.vinyl-stage {
  text-align: center;
  margin-bottom: 3.5rem;
}

.vinyl-now-playing {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.8rem;
}
.vinyl-now-playing span { margin: 0 0.4rem; }

.vinyl-wrap {
  position: relative;
  width: 260px;
  height: 260px;
  margin: 0 auto;
}

.vinyl-record {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  position: relative;
  background:
    radial-gradient(circle at 50% 50%, #080808 0%, #080808 5.5%, transparent 6%),
    radial-gradient(circle at 50% 50%, #8b1a1a 6%, #6b1212 26%, transparent 26.5%),
    repeating-radial-gradient(circle at 50% 50%, #111 0px, #1e1e1e 1.5px, #0d0d0d 3px);
  box-shadow:
    0 8px 60px rgba(0,0,0,0.8),
    0 0 0 1px rgba(255,255,255,0.04),
    inset 0 0 40px rgba(0,0,0,0.5);
  animation: vinylSpin 5s linear infinite;
}

/* Shine highlight */
.vinyl-record::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(ellipse at 35% 30%, rgba(255,255,255,0.08) 0%, transparent 60%);
  pointer-events: none;
}

@keyframes vinylSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Tonearm */
.tonearm {
  position: absolute;
  top: 18px;
  right: -28px;
  width: 128px;
  height: 3px;
  background: linear-gradient(to left, #888 0%, #ddd 55%, #aaa 100%);
  border-radius: 3px;
  transform-origin: right center;
  transform: rotate(-34deg);
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

/* Pivot circle */
.tonearm::before {
  content: '';
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle, #ddd 0%, #888 100%);
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

/* Needle head */
.tonearm-head {
  position: absolute;
  left: -3px;
  top: 50%;
  transform: translateY(-50%);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, #aaa 100%);
  box-shadow: 0 0 6px rgba(255,255,255,0.3);
}

@media (max-width: 768px) {
  .vinyl-wrap { width: 200px; height: 200px; }
  .tonearm { width: 100px; right: -22px; }
}

/* ── CLOSING ── */
.closing {
  background: var(--light-accent);
  text-align: center;
  padding: 5rem 2rem;
}

.closing-inner {
  max-width: 600px;
  margin: 0 auto;
}

.closing-heading {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 400;
  color: var(--accent-deep);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.closing-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.signature {
  font-family: 'Great Vibes', cursive;
  font-size: 1.2rem;
  color: var(--accent-deep);
  letter-spacing: 0.5px;
}

/* ── FOOTER ── */
footer {
  text-align: center;
  padding: 2rem 1rem 1rem;
  background: var(--bg);
}

.footer-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {

  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: rgba(255,248,245,0.97);
    backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: center;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition), padding var(--transition);
    padding: 0;
    box-shadow: var(--shadow-md);
  }
  .nav-links.open {
    max-height: 320px;
    padding: 1.5rem 0;
  }
  .nav-links li { width: 100%; text-align: center; }
  .nav-link { display: block; padding: 0.85rem 1rem; font-size: 1rem; }
  .nav-link::after { display: none; }

  .letter {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }
  .letter-img { width: 200px; }

  .image-gallery {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 1rem;
    justify-content: flex-start;
    gap: 10px;
  }
  .column { flex: 0 0 130px; gap: 10px; }

  .moment-card,
  .moment-card--flip {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }
  .moment-img-wrap > img:first-child {
    width: 100%;
    height: 300px;
    border-radius: var(--radius-md);
  }
  .moment-deco { right: 0; bottom: -12px; }

  .music-section { padding: 4rem 1.25rem 5rem; }
  .playlist-grid { grid-template-columns: 1fr; }
  .music-section::after { width: 34px; height: 34px; right: 6%; top: 20px; }
}

/* ============================================================
   BABYLON WEEKENDS
   ============================================================ */
.babylon-section {
  max-width: 1100px;
  margin: 0 auto 7rem;
  padding: 0 1.5rem;
}

.babylon-header {
  text-align: center;
  margin-bottom: 3rem;
}

.babylon-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: -1.5rem;
  margin-bottom: 0;
}

/* tilt helpers */
.tilt-right { --tilt: 1.4deg; }
.tilt-left  { --tilt: -1.6deg; }

.b-photo {
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transform: rotate(var(--tilt, 0deg));
  transition: transform var(--transition), box-shadow var(--transition);
  will-change: transform;
}
.b-photo:hover {
  transform: rotate(0deg) scale(1.03) translateY(-4px);
  box-shadow: var(--shadow-lg);
  z-index: 2;
}
.b-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform var(--transition);
}
.b-photo:hover img { transform: scale(1.06); }

/* ── Asymmetric bento grid ── */
.babylon-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 80px;
  gap: 14px;
}

/* Row 1–2 */
.b1  { grid-column: 1 / 6;  grid-row: 1 / 5; }   /* big hero portrait */
.b2  { grid-column: 6 / 10; grid-row: 1 / 3; }   /* wide landscape */
.b3  { grid-column: 10 / 13;grid-row: 1 / 4; }   /* tall portrait */

/* Row 2–3 */
.b4  { grid-column: 6 / 8;  grid-row: 3 / 5; }   /* small square */
.b5  { grid-column: 8 / 10; grid-row: 3 / 5; }   /* small square */

/* Row 5–6 */
.b6  { grid-column: 1 / 4;  grid-row: 5 / 8; }   /* portrait */
.b7  { grid-column: 4 / 8;  grid-row: 5 / 7; }   /* wide */
.b8  { grid-column: 8 / 13; grid-row: 5 / 8; }   /* big portrait */

/* Row 7–8 */
.b9  { grid-column: 4 / 6;  grid-row: 7 / 9; }   /* small */
.b10 { grid-column: 6 / 8;  grid-row: 7 / 9; }   /* small */

/* Row 9–10 */
.b11 { grid-column: 1 / 5;  grid-row: 9 / 12; }  /* big */
.b12 { grid-column: 5 / 8;  grid-row: 9 / 11; }  /* medium */
.b13 { grid-column: 8 / 11; grid-row: 9 / 12; }  /* tall */
.b14 { grid-column: 11 / 13;grid-row: 9 / 11; }  /* small */

/* ── Mobile: single scroll strip ── */
@media (max-width: 768px) {
  .babylon-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .b-photo {
    transform: none;
    border-radius: var(--radius-md);
  }
  .b-photo:hover { transform: scale(1.01); }

  .b-photo img {
    height: 260px;
    width: 100%;
  }

  .tilt-right,
  .tilt-left { --tilt: 0deg; }
}
