@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@400;700;900&family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Montserrat:wght@300;400;500;600&family=Noto+Serif+Bengali:wght@400;500;600;700&display=swap');

:root {
  --bg-parchment: #fcf8f2;
  --bg-card: rgba(255, 255, 255, 0.78);
  --bg-card-hover: rgba(255, 255, 255, 0.92);
  --maroon-deep: #430c14;
  --maroon-primary: #691426;
  --maroon-light: #8e1f36;
  --gold-primary: #c59b27;
  --gold-light: #f1dfa8;
  --gold-dark: #966f13;
  --gold-shimmer: linear-gradient(135deg, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
  --gold-border: rgba(197, 155, 39, 0.35);
  --pink-accent: #c4325a;
  --text-primary: #381216;
  --text-secondary: #6e4e52;
  --text-muted: #8d7074;
  --shadow-soft: 0 10px 30px -10px rgba(67, 12, 20, 0.15);
  --shadow-deep: 0 20px 45px -12px rgba(67, 12, 20, 0.28);
  --shadow-gold: 0 8px 25px rgba(197, 155, 39, 0.25);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Cormorant Garamond', Georgia, serif;
  background-color: var(--bg-parchment);
  background-image: url('assets/bg.jpg');
  background-repeat: repeat-y;
  background-position: top center;
  background-size: 1000px auto;
  color: var(--text-primary);
  font-size: 20px;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Background overlay for soft reading readability */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 10%, rgba(253, 248, 240, 0.72) 0%, rgba(250, 242, 229, 0.88) 100%);
  pointer-events: none;
  z-index: 0;
}

/* Petal Canvas */
#petalCanvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

/* Container */
.page-container {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
  padding: 20px 16px 80px;
}

/* Fixed Floating Controls (Audio & Petals) */
.floating-controls {
  position: fixed;
  top: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 99;
}

.icon-btn-round {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1.5px solid var(--gold-primary);
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--maroon-primary);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.icon-btn-round:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-gold);
  background: var(--gold-shimmer);
  color: var(--maroon-deep);
}

.icon-btn-round.playing {
  animation: pulse-glow 2s infinite ease-in-out;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 10px rgba(197, 155, 39, 0.5); }
  50% { box-shadow: 0 0 22px rgba(197, 155, 39, 0.9); }
}

/* Bells Animation at Top Corner */
.bells-wrapper {
  position: absolute;
  top: 0;
  left: 20px;
  display: flex;
  gap: 14px;
  pointer-events: none;
  z-index: 3;
}

.bell-chain {
  display: flex;
  flex-direction: column;
  align-items: center;
  transform-origin: top center;
}

.bell-chain-1 {
  animation: swing-bell 3.5s ease-in-out infinite;
}

.bell-chain-2 {
  animation: swing-bell 4.2s ease-in-out infinite 0.6s;
}

.chain-line {
  width: 2px;
  background: linear-gradient(to bottom, #d4af37, #aa771c);
}

.bell-chain-1 .chain-line { height: 50px; }
.bell-chain-2 .chain-line { height: 75px; }

.brass-bell-svg {
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
}

@keyframes swing-bell {
  0%, 100% { transform: rotate(5deg); }
  50% { transform: rotate(-5deg); }
}

/* Shubh Ganesha Header */
.ganesha-header {
  text-align: center;
  padding-top: 30px;
  padding-bottom: 12px;
}

.ganesha-icon-svg {
  width: 58px;
  height: 58px;
  margin: 0 auto;
  display: block;
  filter: drop-shadow(0 3px 5px rgba(197, 155, 39, 0.35));
}

.ganesha-shloka {
  font-family: 'Cinzel Decorative', 'Noto Serif Bengali', serif;
  font-size: 15px;
  letter-spacing: 0.2em;
  color: var(--gold-dark);
  font-weight: 700;
  margin-top: 8px;
  text-transform: uppercase;
}

.bengali-blessing {
  font-family: 'Noto Serif Bengali', serif;
  font-size: 19px;
  color: var(--maroon-primary);
  margin-top: 4px;
  font-weight: 600;
}

/* Royal Arch Section & Hero Card */
.hero-card-section {
  margin: 20px 0 35px;
  text-align: center;
}

.royal-arch-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 12px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(253, 245, 235, 0.8));
  border: 1.5px solid var(--gold-border);
  box-shadow: var(--shadow-deep);
  overflow: hidden;
}

.royal-arch-wrapper::before {
  content: '';
  position: absolute;
  inset: 5px;
  border: 1px dashed rgba(197, 155, 39, 0.4);
  border-radius: calc(var(--radius-lg) - 4px);
  pointer-events: none;
}

.invitation-card-display {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 15px 35px -10px rgba(67, 12, 20, 0.35);
  border: 2.5px solid var(--gold-primary);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;
}

.invitation-card-display:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: var(--shadow-gold), 0 20px 40px -10px rgba(67, 12, 20, 0.45);
}

.invitation-img {
  width: 100%;
  height: auto;
  display: block;
  transition: filter 0.3s ease;
}

.card-hover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(67, 12, 20, 0.75) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 24px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.invitation-card-display:hover .card-hover-overlay {
  opacity: 1;
}

.tap-zoom-badge {
  background: var(--gold-shimmer);
  color: var(--maroon-deep);
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 999px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-action-bar {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

/* Hero Title Details */
.hero-text-block {
  text-align: center;
  padding: 24px 10px 10px;
}

.hero-subtitle {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 600;
  margin-bottom: 8px;
}

.couple-names-main {
  font-family: 'Cinzel Decorative', 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(38px, 10vw, 64px);
  line-height: 1.05;
  font-weight: 700;
  color: var(--maroon-deep);
  letter-spacing: 0.02em;
  margin: 10px 0;
  text-shadow: 0 2px 4px rgba(197, 155, 39, 0.15);
}

.names-amp {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 0.7em;
  color: var(--gold-primary);
  display: block;
  margin: -4px 0;
}

.love-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(20px, 4.5vw, 26px);
  font-style: italic;
  color: var(--maroon-light);
  margin-top: 8px;
  letter-spacing: 0.02em;
}

.ornamental-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 22px auto;
  max-width: 320px;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-primary), transparent);
}

.divider-icon {
  color: var(--gold-primary);
  font-size: 18px;
}

/* Sections Styling */
section {
  position: relative;
  padding: 40px 20px;
  text-align: center;
  margin-bottom: 28px;
}

.section-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  padding: 36px 24px;
  box-shadow: var(--shadow-soft);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section-card:hover {
  box-shadow: var(--shadow-deep);
}

.section-kicker {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 6px;
}

.section-heading {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(30px, 7vw, 42px);
  font-weight: 600;
  color: var(--maroon-deep);
  line-height: 1.15;
  margin-bottom: 16px;
}

/* Countdown Timer */
.countdown-box {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  max-width: 480px;
  margin: 24px auto 8px;
}

.time-unit-card {
  background: linear-gradient(145deg, #ffffff, #faf1e4);
  border: 1.5px solid var(--gold-border);
  border-radius: var(--radius-md);
  padding: 16px 8px;
  box-shadow: 0 4px 12px rgba(67, 12, 20, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.time-unit-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold-shimmer);
}

.time-number {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(26px, 6vw, 36px);
  font-weight: 700;
  color: var(--maroon-deep);
  line-height: 1;
}

.time-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 6px;
}

/* Date & Time Highlights */
.event-date-badge {
  display: inline-block;
  background: var(--maroon-deep);
  color: var(--gold-light);
  padding: 6px 20px;
  border-radius: 999px;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 16px;
  border: 1px solid var(--gold-primary);
}

.event-main-time {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(28px, 6vw, 40px);
  font-weight: 700;
  color: var(--maroon-primary);
  margin: 8px 0;
}

.event-sub-time {
  font-size: 21px;
  color: var(--text-secondary);
  font-style: italic;
}

/* Schedule Flow Timeline */
.timeline-flow {
  max-width: 500px;
  margin: 28px auto 10px;
  text-align: left;
  position: relative;
  padding-left: 28px;
}

.timeline-flow::before {
  content: '';
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--gold-light), var(--gold-primary), var(--gold-light));
}

.timeline-item {
  position: relative;
  margin-bottom: 22px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -28px;
  top: 5px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--maroon-primary);
  border: 3px solid var(--gold-light);
  box-shadow: 0 0 0 2px var(--gold-primary);
}

.timeline-time {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--maroon-primary);
  letter-spacing: 0.05em;
}

.timeline-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 2px;
}

.timeline-desc {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Venue Section */
.venue-box {
  margin: 20px 0;
}

.venue-name {
  font-size: clamp(24px, 5.5vw, 32px);
  font-weight: 700;
  color: var(--maroon-deep);
  line-height: 1.2;
}

.venue-address {
  font-size: 20px;
  color: var(--text-secondary);
  margin-top: 8px;
  line-height: 1.4;
}

/* Contact Cards Grid */
.contacts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.contact-card {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-md);
  padding: 18px 16px;
  box-shadow: 0 4px 14px rgba(67, 12, 20, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.contact-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold-dark);
}

.contact-phone {
  font-family: 'Cinzel Decorative', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--maroon-deep);
  letter-spacing: 0.05em;
}

.contact-actions {
  display: flex;
  gap: 8px;
  width: 100%;
  margin-top: 4px;
}

.btn-contact-action {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-call {
  background: #f4eae0;
  color: var(--maroon-deep);
  border: 1px solid var(--gold-border);
}

.btn-call:hover {
  background: var(--gold-shimmer);
}

.btn-wa-direct {
  background: #25d366;
  color: #ffffff;
  border: 1px solid #20ba5a;
}

.btn-wa-direct:hover {
  background: #1eb956;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

/* Primary & Action Buttons */
.actions-group {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 12px 28px;
  border-radius: 999px;
  text-decoration: none;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  border: none;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--maroon-primary), var(--maroon-deep));
  color: var(--bg-parchment);
  border: 1.5px solid var(--gold-primary);
  box-shadow: 0 8px 20px -4px rgba(67, 12, 20, 0.4);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--maroon-light), var(--maroon-primary));
  box-shadow: 0 12px 28px -4px rgba(67, 12, 20, 0.55);
}

.btn-gold {
  background: var(--gold-shimmer);
  color: var(--maroon-deep);
  border: 1.5px solid var(--gold-dark);
  box-shadow: var(--shadow-gold);
  font-weight: 700;
}

.btn-gold:hover {
  box-shadow: 0 10px 28px rgba(197, 155, 39, 0.45);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.85);
  color: var(--maroon-deep);
  border: 1.5px solid var(--gold-primary);
}

.btn-outline:hover {
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.btn-sm {
  min-height: 40px;
  padding: 8px 18px;
  font-size: 16px;
}

/* Interactive RSVP Form */
.rsvp-form-card {
  text-align: left;
  max-width: 520px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--maroon-deep);
  margin-bottom: 6px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--gold-border);
  background: #ffffff;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 18px;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px rgba(197, 155, 39, 0.2);
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
}

/* Wishes Wall */
.wishes-display {
  max-height: 320px;
  overflow-y: auto;
  padding-right: 8px;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wish-bubble {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--gold-border);
  border-left: 4px solid var(--gold-primary);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  text-align: left;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.wish-bubble-author {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--maroon-primary);
  display: flex;
  justify-content: space-between;
}

.wish-bubble-text {
  font-size: 17px;
  font-style: italic;
  color: var(--text-primary);
  margin-top: 4px;
  line-height: 1.35;
}

/* Lightbox Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(40, 6, 11, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.modal-img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--radius-md);
  border: 2px solid var(--gold-primary);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  object-fit: contain;
}

.modal-close-btn {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--maroon-deep);
  color: var(--gold-light);
  border: 2px solid var(--gold-primary);
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.modal-footer {
  margin-top: 14px;
  display: flex;
  gap: 12px;
}

/* Animations on Scroll */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Footer Section */
.site-footer {
  text-align: center;
  padding: 40px 16px 20px;
  font-size: 17px;
  color: var(--text-muted);
}

.footer-couple-name {
  font-family: 'Cinzel Decorative', serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--maroon-deep);
  margin-bottom: 6px;
}

.footer-date {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

/* Mobile Responsiveness */
@media (max-width: 580px) {
  .page-container {
    padding: 12px 10px 60px;
  }
  .section-card {
    padding: 28px 16px;
  }
  .countdown-box {
    gap: 6px;
  }
  .time-unit-card {
    padding: 12px 4px;
  }
  .time-number {
    font-size: 24px;
  }
  .time-label {
    font-size: 10px;
  }
  .contacts-grid {
    grid-template-columns: 1fr;
  }
}
