/* =================================================================
   FOR BRISTI GHOSH - 3D PROPOSAL WEBSITE
   Blinking Stars (Jolbe Nivbe), Bigger Floating Love Emojis Inside BG (Not on Top)
   Seamless Royal Blue Atmosphere - Zero Awkward Gaps
   ================================================================= */

:root {
  /* Rich Garo / Deep Midnight Ocean Blue Atmosphere */
  --bg-ocean-top: #061533;
  --bg-ocean-mid: #030c22;
  --bg-ocean-deep: #020612;

  /* Card Protective Dark Navy Glass Backdrop (Crystal Clear Text Readability) */
  --bg-card: rgba(3, 11, 30, 0.82);
  --bg-card-hover: rgba(5, 18, 48, 0.92);
  --border-cyan: rgba(56, 189, 248, 0.45);
  --border-glow: rgba(0, 245, 212, 0.7);

  /* Accents */
  --cyan-neon: #00f5d4;
  --cyan-bright: #67e8f9;
  --blue-sky: #38bdf8;
  
  /* High-Contrast Crystal-Clear Text */
  --text-pure: #ffffff;
  --text-bright: #f8fafc;
  --text-cyan: #bae6fd;
  --text-sub: #e2e8f0;

  /* Dimensions */
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

/* ================= RESET & UNIFIED BACKGROUND ================= */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

html, body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  background: radial-gradient(circle at 50% 15%, var(--bg-ocean-top) 0%, var(--bg-ocean-mid) 45%, var(--bg-ocean-deep) 100%);
  background-color: var(--bg-ocean-deep);
  color: var(--text-pure);
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
  scroll-behavior: smooth;
}

/* Three.js Canvas */
#webgl-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

/* ================= 1. STARFIELD: JOLBE NIVBE (ON & OFF BLINKING) ================= */
.starfield-bg {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.star-point {
  position: absolute;
  border-radius: 50%;
  background: #ffffff;
  /* Smooth hardware-accelerated blinking (transforms & opacity only) */
  animation: star-blink-cycle var(--twinkle-dur, 2.5s) infinite ease-in-out;
  animation-delay: var(--twinkle-delay, 0s);
  will-change: opacity, transform;
}

.star-point.bright {
  box-shadow: 0 0 8px #ffffff, 0 0 16px #00f5d4;
}

/* Clear On-and-Off Blinking Animation ("Jolbe Nivbe" - zero repaint GPU composition) */
@keyframes star-blink-cycle {
  0%, 100% {
    opacity: 0; /* Fully Off (Nivbe) */
    transform: scale(0.2);
  }
  20% {
    opacity: 0.2;
  }
  50% {
    opacity: 1; /* Fully On & Bright (Jolbe) */
    transform: scale(1.5);
  }
  80% {
    opacity: 0.2;
  }
}

/* ================= 2. BIGGER FLOATING LOVE EMOJIS (PROPERLY VISIBLE & SPREAD) ================= */
.floating-hearts-bg {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 2; /* Clearly visible layer across the entire screen */
  pointer-events: none;
  overflow: hidden;
}

.love-emoji-float {
  position: absolute;
  bottom: -60px; /* Start naturally below viewport */
  pointer-events: none;
  user-select: none;
  animation-name: float-love-emoji;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  will-change: transform, opacity;
  filter: drop-shadow(0 0 12px rgba(56, 189, 248, 0.75));
  opacity: 0;
}

@keyframes float-love-emoji {
  0% {
    transform: translate3d(0, 0, 0) scale(0.7) rotate(0deg);
    opacity: 0;
  }
  12% {
    opacity: 0.9;
  }
  85% {
    opacity: 0.9;
  }
  100% {
    transform: translate3d(var(--drift-x, 40px), -120vh, 0) scale(1.15) rotate(var(--rot-deg, 25deg));
    opacity: 0;
  }
}

/* Page Wrapper (Content sits at z-index: 3, so photos and text stay crisp and unobstructed) */
.page-wrapper {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

.section-container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 38px 18px;
}

@media (max-width: 768px) {
  .section-container {
    padding: 28px 14px;
  }
}

/* ================= TYPOGRAPHY & HEADERS ================= */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--text-pure);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.95);
  line-height: 1.25;
}

.blue-gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, #7dd3fc 45%, #00f5d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  font-weight: 800;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.9));
}

.section-header {
  text-align: center;
  margin-bottom: 22px;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(2, 132, 199, 0.35);
  border: 1px solid var(--border-cyan);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 10px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(8px);
}

.badge-icon {
  width: 14px;
  height: 14px;
  color: var(--cyan-neon);
}

.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  color: #ffffff;
  margin-bottom: 8px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.95);
}

.section-subtitle {
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  color: var(--text-cyan);
  font-weight: 500;
  max-width: 580px;
  margin: 0 auto;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95);
}

/* ================= NAVBAR ================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  z-index: 100;
  background: rgba(2, 7, 22, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(56, 189, 248, 0.35);
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
}

.brand-heart-icon {
  display: flex;
  align-items: center;
  color: var(--cyan-neon);
  animation: heart-pulse 2s infinite ease-in-out;
}

.brand-heart-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--cyan-neon);
  fill: rgba(0, 245, 212, 0.25);
}

@keyframes heart-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

.nav-proposal-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0284c7, #00f5d4);
  color: #051430;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 245, 212, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}

.nav-proposal-btn svg {
  width: 14px;
  height: 14px;
  stroke: #051430;
  fill: #051430;
}

.nav-proposal-btn:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 20px rgba(0, 245, 212, 0.5);
}

.btn-tiny-icon {
  width: 13px;
  height: 13px;
}

/* ================= AUDIO CONTROLLER ================= */
.audio-widget {
  position: fixed;
  bottom: 18px;
  right: 18px;
  z-index: 99;
}

.audio-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(14, 48, 108, 0.7);
  border: 1px solid var(--border-cyan);
  color: #fff;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(4, 18, 43, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.25s ease;
}

.audio-btn:hover {
  border-color: var(--cyan-neon);
  transform: translateY(-2px);
}

.audio-btn.playing {
  border-color: var(--cyan-neon);
  background: rgba(14, 165, 233, 0.4);
}

.sound-wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 12px;
}

.sound-wave span {
  width: 3px;
  height: 100%;
  background: var(--cyan-neon);
  border-radius: 2px;
  transform-origin: bottom;
  animation: wave-bar 1.2s infinite ease-in-out;
  animation-play-state: paused;
}

.audio-btn.playing .sound-wave span {
  animation-play-state: running;
}

.sound-wave span:nth-child(1) { animation-delay: 0.1s; }
.sound-wave span:nth-child(2) { animation-delay: 0.3s; }
.sound-wave span:nth-child(3) { animation-delay: 0.2s; }
.sound-wave span:nth-child(4) { animation-delay: 0.4s; }

@keyframes wave-bar {
  0%, 100% { transform: scaleY(0.25); }
  50% { transform: scaleY(1); }
}

/* ================= 1. HERO SECTION ================= */
.hero-section {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 76px 18px 20px;
  text-align: center;
}

.hero-inner {
  max-width: 760px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(2, 132, 199, 0.35);
  border: 1px solid var(--border-cyan);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 12px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(8px);
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan-neon);
  box-shadow: 0 0 10px var(--cyan-neon);
}

.hero-heading {
  font-size: clamp(2rem, 5vw, 3.6rem);
  color: #ffffff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.95);
  margin-bottom: 8px;
}

.hero-short-quote {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 500;
  color: var(--text-cyan);
  margin-bottom: 18px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.95);
}

.hero-photo-showcase {
  position: relative;
  width: 100%;
  max-width: 290px;
  margin: 4px auto 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-main-photo-card {
  width: 100%;
  height: 380px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1.5px solid rgba(56, 189, 248, 0.5);
  background: rgba(3, 11, 30, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.8), 0 0 22px rgba(56, 189, 248, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
}

@media (max-width: 480px) {
  .hero-main-photo-card {
    height: 330px;
  }
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  display: block;
  border-radius: calc(var(--radius-lg) - 6px);
}

.hero-photo-subtext {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-photo-subtext span {
  font-weight: 700;
  font-size: 1.1rem;
  color: #ffffff;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.95);
}

/* ================= 2. 3D CAROUSEL SECTION ================= */
.carousel-section {
  position: relative;
  overflow: hidden;
}

.carousel-3d-stage {
  position: relative;
  width: 100%;
  max-width: 700px;
  height: 390px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
}

@media (max-width: 600px) {
  .carousel-3d-stage {
    height: 340px;
  }
}

.carousel-3d-track {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
}

.stage-card {
  position: absolute;
  width: 270px;
  height: 350px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1.5px solid rgba(56, 189, 248, 0.45);
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.8);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

@media (max-width: 480px) {
  .stage-card {
    width: 230px;
    height: 310px;
  }
}

.stage-card-inner {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
}

.stage-img-wrap {
  width: 100%;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  background: transparent;
  overflow: hidden;
}

.stage-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  display: block;
}

.stage-card.active {
  transform: translate3d(0, 0, 30px) scale(1) !important;
  opacity: 1 !important;
  z-index: 5;
  border-color: var(--cyan-neon);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.9), 0 0 25px rgba(0, 245, 212, 0.35);
  filter: none !important;
  -webkit-filter: none !important;
}

.stage-card.active img {
  filter: none !important;
  -webkit-filter: none !important;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: auto;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.stage-card.prev-1 {
  transform: translate3d(-140px, 0, -45px) rotateY(25deg) scale(0.85);
  opacity: 0.7;
  z-index: 3;
}

.stage-card.next-1 {
  transform: translate3d(140px, 0, -45px) rotateY(-25deg) scale(0.85);
  opacity: 0.7;
  z-index: 3;
}

.stage-card.prev-2, .stage-card.next-2, .stage-card.hidden {
  transform: translate3d(0, 0, -140px) scale(0.6);
  opacity: 0;
  pointer-events: none;
  z-index: 1;
}

.stage-info {
  width: 100%;
  padding: 9px 14px;
  background: rgba(2, 7, 22, 0.92);
  border-top: 1px solid rgba(56, 189, 248, 0.35);
  color: #fff;
}

.stage-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--cyan-bright);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stage-info h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-top: 2px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9);
}

.stage-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(14, 48, 108, 0.75);
  border: 1px solid var(--border-cyan);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 6px 16px rgba(4, 18, 43, 0.5);
  transition: all 0.25s ease;
}

.stage-nav-btn:hover {
  background: var(--cyan-neon);
  color: #051430;
  border-color: var(--cyan-neon);
  transform: translateY(-50%) scale(1.1);
}

.prev-stage { left: 8px; }
.next-stage { right: 8px; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  width: 20px;
  border-radius: 999px;
  background: var(--cyan-neon);
  box-shadow: 0 0 10px var(--cyan-neon);
}

/* ================= 3. FAVORITES & PHOTOS COMBO ================= */
.fav-cards-layout {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.fav-combo-card {
  display: flex;
  align-items: center;
  gap: 22px;
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid var(--border-cyan);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.75);
  transition: transform 0.3s, border-color 0.3s;
}

.fav-combo-card:hover {
  border-color: var(--cyan-neon);
  transform: translateY(-2px);
}

.fav-combo-card.reverse {
  flex-direction: row-reverse;
}

@media (max-width: 768px) {
  .fav-combo-card, .fav-combo-card.reverse {
    flex-direction: column;
    padding: 16px;
    gap: 16px;
  }
}

.combo-image-side {
  width: 290px;
  height: 220px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(2, 6, 18, 0.6);
}

@media (max-width: 768px) {
  .combo-image-side {
    width: 100%;
    height: 210px;
  }
}

.uncut-image-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(56, 189, 248, 0.3);
  background: transparent;
}

.combo-img.uncut-fit {
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  display: block;
}

.full-view-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(2, 7, 22, 0.88);
  border: 1px solid var(--cyan-neon);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

.combo-text-side {
  flex-grow: 1;
}

.combo-text-side h3 {
  font-size: 1.4rem;
  margin-bottom: 6px;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95);
}

.combo-punchline {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-cyan);
  margin-bottom: 12px;
  line-height: 1.5;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.95);
}

.combo-promise {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  color: #ffffff;
  font-weight: 600;
  background: rgba(2, 132, 199, 0.28);
  border: 1px solid rgba(56, 189, 248, 0.5);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9);
}

.combo-promise svg {
  width: 15px;
  height: 15px;
  color: var(--cyan-neon);
  flex-shrink: 0;
}

.laddu-click-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.35), rgba(0, 245, 212, 0.45));
  border: 1px solid var(--cyan-neon);
  color: #fff;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 15px rgba(0, 245, 212, 0.25);
}

.laddu-click-btn svg {
  width: 14px;
  height: 14px;
  stroke: var(--cyan-neon);
  fill: rgba(0, 245, 212, 0.3);
}

.laddu-click-btn:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 20px rgba(0, 245, 212, 0.45);
}

/* ================= 4. POLAROID BOARD ================= */
.polaroid-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  margin-top: 14px;
}

.polaroid-item {
  position: relative;
  transition: transform 0.3s ease;
}

.polaroid-item:hover {
  transform: scale(1.03) rotate(0deg) !important;
}

.polaroid-frame {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid var(--border-cyan);
  padding: 12px 12px 16px;
  border-radius: var(--radius-md);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.75);
}

.polaroid-img-box {
  width: 100%;
  height: 220px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  background: rgba(2, 6, 18, 0.6);
}

.polaroid-img-box img {
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  display: block;
}

.polaroid-caption {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  margin-top: 10px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.95);
}

.pol-1 { transform: rotate(-2deg); }
.pol-2 { transform: rotate(1.5deg); }
.pol-3 { transform: rotate(-1.5deg); }
.pol-4 { transform: rotate(2deg); }

/* ================= 5. COMPLETE UNCUT GALLERY ================= */
.uncut-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.uncut-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid var(--border-cyan);
  border-radius: var(--radius-md);
  padding: 12px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.75);
  transition: transform 0.3s, border-color 0.3s;
  display: flex;
  flex-direction: column;
}

.uncut-card:hover {
  border-color: var(--cyan-neon);
  transform: translateY(-2px);
}

.portrait-card { grid-column: span 4; }
.square-card { grid-column: span 4; }
.landscape-card { grid-column: span 6; }
.panoramic-card { grid-column: span 6; }
.tall-card { grid-column: span 4; }

@media (max-width: 900px) {
  .portrait-card, .square-card, .tall-card { grid-column: span 6; }
  .landscape-card, .panoramic-card { grid-column: span 12; }
}

@media (max-width: 600px) {
  .portrait-card, .square-card, .tall-card, .landscape-card, .panoramic-card {
    grid-column: span 12;
  }
}

.uncut-img-wrapper {
  width: 100%;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: rgba(2, 6, 18, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 190px;
  padding: 6px;
}

.uncut-img-wrapper img {
  width: 100%;
  height: auto;
  max-height: 380px;
  object-fit: contain !important;
  display: block;
}

.uncut-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
  margin-top: 10px;
  text-align: center;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.95);
}

/* ================= 6. THE GRAND PROPOSAL ================= */
.proposal-section {
  padding-bottom: 24px;
}

.proposal-card-box {
  max-width: 680px;
  margin: 0 auto;
  background: rgba(2, 7, 24, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 2px solid var(--cyan-neon);
  border-radius: var(--radius-lg);
  padding: 34px 24px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.95), 0 0 35px rgba(0, 245, 212, 0.3);
  position: relative;
  overflow: hidden;
}

@media (max-width: 600px) {
  .proposal-card-box {
    padding: 24px 16px;
  }
}

.proposal-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(2, 132, 199, 0.35);
  border: 1px solid var(--cyan-neon);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 12px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

.proposal-badge svg {
  width: 15px;
  height: 15px;
  stroke: var(--cyan-neon);
  fill: rgba(0, 245, 212, 0.3);
}

.proposal-big-title {
  font-size: clamp(1.6rem, 3.8vw, 2.3rem);
  color: #ffffff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.95);
  margin-bottom: 16px;
}

.proposal-photo-center {
  width: 110px;
  height: 110px;
  margin: 0 auto 16px;
  position: relative;
}

.proposal-avatar-holder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--cyan-neon);
  box-shadow: 0 0 20px rgba(0, 245, 212, 0.45);
  background: rgba(2, 6, 18, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
}

.proposal-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.proposal-letter {
  margin-bottom: 16px;
}

.letter-lead {
  font-size: 1.05rem;
  color: #f8fafc;
  margin-bottom: 12px;
  line-height: 1.65;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.95);
}

.letter-bold {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--cyan-bright);
  margin-bottom: 12px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.95);
}

.letter-question {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4.5vw, 2.8rem);
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 0 24px rgba(0, 245, 212, 0.85), 0 2px 10px rgba(0, 0, 0, 0.95);
  margin-bottom: 10px;
}

.letter-subquestion {
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--text-cyan);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.95);
}

/* RESPONSIVE PROPOSAL BUTTON ROW */
.proposal-btn-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin: 18px auto 0;
  width: 100%;
  max-width: 560px;
  position: relative;
  min-height: 55px;
}

.btn-yes {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: 999px;
  background: linear-gradient(135deg, #00f5d4 0%, #0284c7 100%);
  color: #051430;
  font-family: inherit;
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  font-weight: 800;
  cursor: pointer;
  border: none;
  box-shadow: 0 8px 22px rgba(0, 245, 212, 0.4);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
  min-height: 46px;
  white-space: nowrap;
  transform-origin: center;
}

.btn-yes svg {
  width: 18px;
  height: 18px;
  stroke: #051430;
  fill: #051430;
}

.btn-yes:hover {
  box-shadow: 0 12px 30px rgba(0, 245, 212, 0.6);
}

.btn-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s, border-color 0.2s;
  min-height: 46px;
  max-width: 250px;
  text-align: center;
  white-space: normal;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95);
}

.btn-no:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: var(--cyan-neon);
}

@media (max-width: 600px) {
  .proposal-btn-row {
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin-top: 16px;
  }

  .btn-yes {
    width: 100%;
    max-width: 320px;
    padding: 13px 18px;
    font-size: 1rem;
    white-space: normal;
  }

  .btn-no {
    width: 100%;
    max-width: 320px;
    padding: 11px 18px;
    font-size: 0.88rem;
  }
}

/* ================= CELEBRATION MODAL ================= */
.celebration-screen {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.celebration-screen.active {
  display: flex;
}

.celebration-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 18, 0.92);
  backdrop-filter: blur(18px);
}

.celebration-card {
  position: relative;
  z-index: 2;
  max-width: 480px;
  width: 100%;
  background: rgba(2, 8, 26, 0.96);
  border: 2px solid var(--cyan-neon);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.95), 0 0 35px rgba(0, 245, 212, 0.4);
  backdrop-filter: blur(14px);
  animation: pop-modal 0.4s ease;
}

@keyframes pop-modal {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.celebration-icon-cluster {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  color: var(--cyan-neon);
}

.cel-icon-main {
  width: 38px;
  height: 38px;
  stroke: var(--cyan-neon);
  fill: rgba(0, 245, 212, 0.3);
}

.celebration-card h2 {
  font-size: 1.9rem;
  color: #ffffff;
  text-shadow: 0 0 18px rgba(0, 245, 212, 0.8), 0 2px 10px #000;
  margin-bottom: 4px;
}

.celebration-subtitle {
  color: #e0f2fe;
  font-weight: 600;
  font-size: 1.05rem;
  text-shadow: 0 1px 6px #000;
  margin-bottom: 14px;
}

.celebration-pic-frame {
  width: 120px;
  height: 120px;
  margin: 0 auto 12px;
  border-radius: 50%;
  overflow: hidden;
  border: 2.5px solid var(--cyan-neon);
  box-shadow: 0 0 20px rgba(0, 245, 212, 0.4);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
}

.celebration-pic-frame img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.celebration-quote {
  font-family: 'Playfair Display', serif;
  font-size: 1.08rem;
  color: var(--text-cyan);
  font-style: italic;
  font-weight: 500;
  margin-bottom: 18px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.95);
}

.celebration-cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.whatsapp-celebrate-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border-radius: 999px;
  background: #25D366;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

.close-celebrate-btn {
  padding: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

/* ================= FOOTER ================= */
.site-footer {
  text-align: center;
  padding: 26px 18px 22px;
  background: rgba(2, 6, 18, 0.92);
  border-top: 1px solid rgba(56, 189, 248, 0.3);
  color: var(--text-sub);
  font-size: 0.88rem;
}

.site-footer p {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

/* ================= 10. HIGH-PERFORMANCE RENDERING ================= */
/* Defer rendering of offscreen sections until scrolled */
.carousel-section,
.favorites-section,
.polaroid-section,
.uncut-gallery-section,
.proposal-section {
  content-visibility: auto;
  contain-intrinsic-size: 1px 700px;
}

/* Optimize Mobile GPU: Replace heavy backdrop blur with crisp solid dark navy glass */
@media (max-width: 768px) {
  .fav-combo-card,
  .polaroid-board,
  .gallery-card-uncut,
  .proposal-box,
  .stage-card-inner,
  .hero-main-photo-card {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(3, 12, 34, 0.94) !important;
  }
}
