
:root {
  
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-script: 'Pinyon Script', cursive;

  
  --bg-primary: #0b0c10;
  --bg-secondary: #13151c;
  --text-primary: #f5f6f8;
  --text-secondary: #a0a5b5;
  --accent-gold: #dfba73;
  --accent-gold-rgb: 223, 186, 115;
  --accent-rose: #c57e85;
  --accent-soft: rgba(223, 186, 115, 0.08);
  --glow-color: rgba(223, 186, 115, 0.15);

  
  --postcard-bg: #ecd398; 
  --postcard-text: #45321f;
  --postcard-border: #ccaa62;

  
  --transition-color: background-color 0.6s cubic-bezier(0.25, 1, 0.5, 1), 
                       color 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  --transition-fast: all 0.2s ease;
  --transition-medium: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  --transition-slow: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100vh;
  overflow: hidden; 
}

body {
  background: radial-gradient(circle at 50% 50%, rgba(19, 22, 31, 0.5) 0%, var(--bg-primary) 100%);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  overflow-x: hidden;
  line-height: 1.6;
  transition: var(--transition-color);
}

canvas#ambient-canvas {
  display: none; 
}

#route-map-bg, 
#route-map-bg svg,
#route-map-bg svg * {
  pointer-events: none !important;
}

#route-map-bg {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%); 
  width: 100%;
  max-width: 1100px; 
  height: 100vh;
  z-index: -2; 
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.9; 
  transition: opacity 0.5s ease;
}

#route-map-bg svg {
  width: 100%;
  height: 100%;
  padding: 2rem 4rem; 
}

@media (max-width: 900px) {
  #route-map-bg {
    max-width: 100%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.75;
    overflow: hidden;
    align-items: flex-start;
    height: 125vw;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 88%, rgba(0, 0, 0, 0) 100%);
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 88%, rgba(0, 0, 0, 0) 100%);
  }
  #route-map-bg svg {
    width: 100%;
    height: auto;
    padding: 0 1rem;
    margin-top: 1rem;
    transform: none;
  }
}

::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--accent-gold);
  border-radius: 4px;
}

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: 0.02em;
}

.audio-control {
  position: fixed;
  top: 2rem;
  left: 2rem;
  z-index: 1000;
}

.audio-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0.6rem 1.2rem;
  border-radius: 30px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  transition: var(--transition-medium);
}

.audio-btn:hover {
  transform: scale(1.05);
  border-color: var(--accent-gold);
}

.audio-text {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-primary);
}

.audio-icon-playing {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  width: 14px;
  height: 12px;
}

.audio-icon-playing span {
  display: block;
  width: 2px;
  height: 2px;
  background-color: var(--accent-gold);
  animation: audioBarBounce 1.2s ease infinite alternate;
  transform-origin: bottom;
  animation-play-state: paused;
}

.audio-icon-playing.active span {
  animation-play-state: running;
}

.audio-icon-playing span:nth-child(1) { height: 10px; animation-delay: 0.1s; }
.audio-icon-playing span:nth-child(2) { height: 4px; animation-delay: 0.4s; }
.audio-icon-playing span:nth-child(3) { height: 8px; animation-delay: 0.2s; }
.audio-icon-playing span:nth-child(4) { height: 6px; animation-delay: 0.6s; }

.page-viewport {
  height: 100vh;
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
  z-index: 10;
}

.split-layout-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1100px;
  gap: 4rem;
  margin: 0 auto;
}

.deck-column {
  flex: 1;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.envelope-column {
  flex: 1.1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-content {
  width: 100%;
}

.hero-sup {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--accent-gold);
  margin-bottom: 1rem;
  font-weight: 500;
  display: block;
  opacity: 0;
  animation: fadeInUp 1s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.hero-title {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  line-height: 1.15;
  margin-bottom: 0.8rem;
  font-weight: 300;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.partner-name {
  display: inline-block;
  opacity: 0;
  animation: fadeInUp 1.2s cubic-bezier(0.25, 1, 0.5, 1) 0.2s forwards;
}

.ampersand {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  color: var(--accent-gold);
  opacity: 0;
  animation: fadeInUp 1.2s cubic-bezier(0.25, 1, 0.5, 1) 0.4s forwards;
}

.hero-date-text {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-style: italic;
  color: var(--accent-rose);
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeInUp 1.2s cubic-bezier(0.25, 1, 0.5, 1) 0.6s forwards;
}

.live-counter-deck {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1.8rem;
  opacity: 0;
  animation: fadeInUp 1.2s cubic-bezier(0.25, 1, 0.5, 1) 0.8s forwards;
}

.counter-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 68px;
}

.counter-num {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  font-weight: 300;
  color: var(--text-primary);
  line-height: 1;
}

.counter-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
  margin-top: 0.4rem;
}

.counter-divider {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 300;
  color: var(--accent-gold);
  line-height: 1;
  padding-bottom: 1rem;
}

.counter-caption {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-style: italic;
  max-width: 440px;
  margin-top: 0.5rem;
  opacity: 0;
  animation: fadeInUp 1.2s cubic-bezier(0.25, 1, 0.5, 1) 1s forwards;
}

.postcard-wrapper {
  container-type: inline-size; 
  width: 100%;
  max-width: 580px;
  aspect-ratio: 1.58 / 1; 
  position: relative;
  perspective: 2000px; 
}

.postcard {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transform: translate3d(0, 0, 0); 
  transition: transform 0.65s cubic-bezier(0.25, 1, 0.5, 1); 
  cursor: pointer;
  border-radius: 6px;
}

.postcard.flipped {
  transform: rotateY(180deg) translate3d(0, 0, 0);
}

.postcard:hover {
  transform: scale(1.02) translate3d(0, 0, 0);
}

.postcard.flipped:hover {
  transform: rotateY(180deg) scale(1.02) translate3d(0, 0, 0);
}

.postcard-front, .postcard-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden; 
  transform-style: preserve-3d;
  background-color: var(--postcard-bg);
  
  background-image: radial-gradient(rgba(0, 0, 0, 0.02) 0.5px, transparent 0);
  background-size: 1.2cqw 1.2cqw;
  border: 0.4cqw solid var(--postcard-border);
  border-radius: 1cqw;
  box-shadow: inset 0 0 35px rgba(100, 70, 40, 0.22), 0 3cqw 7cqw rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  color: var(--postcard-text);
}

.postcard-front {
  padding: 3.5cqw 4.5cqw;
}

.postcard-back {
  transform: rotateY(180deg);
  padding: 1.5cqw; 
  display: flex;
  justify-content: center;
  align-items: center;
}

.postcard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 0.3cqw solid rgba(69, 50, 31, 0.2);
  padding-bottom: 0.8cqw;
  margin-bottom: 1.5cqw;
  width: 100%;
}

.postcard-title-hindi {
  font-family: var(--font-serif);
  font-size: 2.8cqw;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: rgba(69, 50, 31, 0.7);
  line-height: 1;
}

.postcard-title {
  font-family: var(--font-sans);
  font-size: 2.6cqw;
  font-weight: 600;
  letter-spacing: 0.15em;
  line-height: 1;
}

.postcard-front-body {
  display: flex;
  flex: 1;
  width: 100%;
  gap: 4cqw;
}

.postcard-left-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-right: 0.3cqw solid rgba(69, 50, 31, 0.15);
  padding-right: 2.5cqw;
  position: relative;
}

.watermark-emblem {
  position: absolute;
  top: 40%;
  left: 45%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0.6;
}

.watermark-emblem svg {
  width: 16cqw;
  height: 16cqw;
}

.address-block .label {
  font-size: 2.1cqw;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(69, 50, 31, 0.65);
  display: block;
  margin-bottom: 0.2cqw;
}

.handwritten-sig {
  font-family: var(--font-script);
  font-size: 6.8cqw;
  color: #1a2d42;
  line-height: 1;
}

.handwritten-note {
  font-family: var(--font-script);
  font-size: 4cqw;
  color: #1a2d42;
  margin-top: 0.3cqw;
  line-height: 1;
  opacity: 0.85;
}

.postcard-right-section {
  flex: 1.25;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.postage-stamp-box {
  display: flex;
  justify-content: flex-end;
  position: relative;
}

.postage-stamp {
  width: 14cqw;
  height: 17.5cqw;
  background: #fffdf5;
  border: 0.5cqw dashed #b25852;
  border-radius: 0.4cqw;
  padding: 1cqw;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  transform: rotate(4deg);
  box-shadow: 0.2cqw 0.5cqw 1cqw rgba(0, 0, 0, 0.15);
}

.stamp-top, .stamp-bottom {
  font-size: 1.5cqw;
  font-weight: bold;
  color: #b25852;
  font-family: var(--font-sans);
  letter-spacing: 0.02em;
}

.stamp-heart {
  width: 4cqw;
  height: 4cqw;
  filter: drop-shadow(0 0.3cqw 0.5cqw rgba(178, 88, 82, 0.2));
}

.postmark-overlay {
  position: absolute;
  right: 5cqw;
  top: 2.5cqw;
  transform: rotate(-12deg);
  z-index: 2;
  opacity: 0.8;
  pointer-events: none;
  width: 15cqw;
  height: 15cqw;
}

.postmark-overlay svg {
  width: 100%;
  height: 100%;
}

.to-block {
  margin-top: 0.5cqw;
}

.address-line {
  border-bottom: 0.3cqw solid rgba(69, 50, 31, 0.3);
  min-height: 5.8cqw;
  padding-bottom: 0.2cqw;
  font-family: var(--font-script);
  font-size: 5.6cqw;
  color: #1a2d42;
  line-height: 1.1;
}

.pincode-block {
  display: flex;
  align-items: center;
  gap: 1.5cqw;
  margin-top: 1.5cqw;
}

.pincode-label {
  font-size: 2cqw;
  font-weight: bold;
  letter-spacing: 0.05em;
  color: rgba(69, 50, 31, 0.65);
}

.pincode-boxes {
  display: flex;
  gap: 0.6cqw;
}

.pincode-boxes span {
  width: 3.5cqw;
  height: 4.5cqw;
  border: 0.3cqw solid rgba(69, 50, 31, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.6cqw;
  font-weight: bold;
  font-family: monospace;
  color: #1a2d42;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 0.2cqw;
}

.flip-hint {
  text-align: center;
  font-size: 2.1cqw;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(69, 50, 31, 0.55);
  padding-top: 1.2cqw;
  margin-top: 1cqw;
  border-top: 0.2cqw dashed rgba(69, 50, 31, 0.15);
  width: 100%;
}

.postcard-photo-frame {
  background: #fdfaf3;
  padding: 1.5cqw;
  box-shadow: 0 0.8cqw 2.5cqw rgba(0, 0, 0, 0.15);
  border: 0.15cqw solid rgba(69, 50, 31, 0.1);
  border-radius: 0.5cqw;
  width: 100%;
  height: 100%; 
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.photo-corner {
  position: absolute;
  width: 8%; 
  height: 8%;
  background: #251c14; 
  z-index: 4;
  box-shadow: 0 0.2cqw 0.5cqw rgba(0,0,0,0.15);
}

.corner-top-left {
  top: 0;
  left: 0;
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

.corner-top-right {
  top: 0;
  right: 0;
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}

.corner-bottom-left {
  bottom: 0;
  left: 0;
  clip-path: polygon(0 100%, 100% 100%, 0 0);
}

.corner-bottom-right {
  bottom: 0;
  right: 0;
  clip-path: polygon(100% 100%, 0 100%, 100% 0);
}

.postcard-photo-frame::after {
  content: '';
  position: absolute;
  top: 1.5cqw;
  left: 1.5cqw;
  width: calc(100% - 3cqw);
  height: calc(100% - 3cqw);
  pointer-events: none;
  background: radial-gradient(circle, transparent 45%, rgba(40, 15, 5, 0.6) 100%);
  z-index: 2;
  mix-blend-mode: multiply;
}

.postcard-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover; 
  display: block;
  filter: sepia(0.68) contrast(1.1) brightness(0.9) saturate(0.65) hue-rotate(-6deg);
  z-index: 1;
  border-radius: 0.2cqw;
}

.photo-overlay-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 8cqw 4cqw 4cqw 4cqw;
  background: linear-gradient(to top, rgba(15, 12, 10, 0.9) 0%, rgba(15, 12, 10, 0.45) 65%, transparent 100%);
  color: #fff;
  text-align: center;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 0.2cqw;
  pointer-events: none; 
}

.photo-overlay-title {
  font-family: var(--font-script);
  font-size: 8.5cqw; 
  color: var(--accent-gold);
  line-height: 1;
  text-shadow: 0 0.3cqw 0.6cqw rgba(0, 0, 0, 0.6);
}

.photo-overlay-sub {
  font-family: var(--font-serif);
  font-size: 3cqw;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #f5f6f8;
  margin-top: 0.4cqw;
  text-shadow: 0 0.2cqw 0.4cqw rgba(0, 0, 0, 0.5);
}

@media (max-width: 900px) {
  html, body {
    height: auto;
    overflow-y: auto; 
  }

  .page-viewport {
    height: auto;
    min-height: 100vh;
    padding: 4rem 1.2rem 3rem;
  }

  .split-layout-container {
    flex-direction: column;
    justify-content: center;
    gap: 2.5rem;
    text-align: center;
  }

  .deck-column {
    align-items: center;
    text-align: center;
  }

  .hero-title {
    justify-content: center;
  }

  .hero-sup {
    margin-bottom: 0.5rem;
  }

  .hero-date-text {
    margin-bottom: 2rem;
  }

  .live-counter-deck {
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
  }

  .counter-box {
    min-width: 55px;
  }

  .counter-num {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
  }

  .counter-divider {
    font-size: 1.8rem;
    padding-bottom: 0.6rem;
  }

  .counter-label {
    font-size: 0.6rem;
    letter-spacing: 0.1em;
  }

  .envelope-column {
    margin-top: 0;
    width: 100%;
    max-width: 520px;
  }
}

@media (max-width: 480px) {
  .live-counter-deck {
    gap: 0.4rem;
  }

  .counter-box {
    min-width: 45px;
  }

  .counter-num {
    font-size: 1.6rem;
  }

  .counter-divider {
    font-size: 1.6rem;
    padding-bottom: 0.4rem;
  }

  .counter-label {
    font-size: 0.55rem;
    letter-spacing: 0.05em;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes audioBarBounce {
  from { transform: scaleY(0.2); }
  to { transform: scaleY(1); }
}

.motorcycle-img {
  
  filter: contrast(1.05) brightness(1.05);
}

.smoke-puff {
  filter: blur(2px);
}

