/* ------------------------------------------------------
   Root Variables & Base Styles
------------------------------------------------------ */
:root {
    --gold: #c9a961;
    --gold-gradient: linear-gradient(135deg, #e6c88a, #b89650);
    --dark-gold: #a08550;
    --burgundy: #7b5e68;
    --burgundy-deep: #5a434d;
    --cream: #f4f1ed;
    --cream-edge: #ebe6df;
    --soft-blue: #e8ecf1;
    --pale-blue: #dfe5ec;
    --dark-text: #2e2e2e;
    --light-text: #7a7a7a;
    --envelope-bg: #f0ebe5;
    /* Light cream for envelope */
    --envelope-shadow: rgba(0, 0, 0, 0.06);
    --envelope-border: rgba(201, 169, 97, 0.3);
    --envelope-highlight: rgba(255, 255, 255, 0.9);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Crimson Text", serif;
    background: linear-gradient(135deg, var(--soft-blue) 0%, var(--pale-blue) 25%, var(--cream-edge) 60%, var(--cream) 100%);
    color: var(--dark-text);
    overflow-x: hidden;
    position: relative;
    margin: 0;
    text-align: left;
    min-height: 100vh;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(201, 169, 97, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(232, 236, 241, 0.4) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Font Utilities */
.font-primary {
    font-family: "Crimson Text", serif;
}

.font-accent {
    font-family: "Bodoni Moda", serif;
}

.gold-text {
    color: var(--gold);
}

.gold-bg {
    background-color: var(--gold);
}

.burgundy-text {
    color: var(--burgundy);
}

/* Base Animations */
.animation-fade-in {
    animation: fadeIn 1.2s ease-out forwards;
}

.animation-fade-up {
    animation: fadeUp 1s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Heartbeat (if you need it somewhere) */
@keyframes heartBeat {

    0%,
    100% {
        transform: scale(1);
    }

    15%,
    45% {
        transform: scale(1.2);
    }

    30%,
    60% {
        transform: scale(1);
    }
}

.heart-beat {
    animation: heartBeat 1.8s infinite ease-in-out;
}


/* Envelope Styles */
/* Header section directly above envelope */
.envelope-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background: linear-gradient(180deg, var(--soft-blue) 0%, var(--cream) 100%);
    position: relative;
}


.invitation-header {
    text-align: center;
    margin-bottom: 20px;
    animation: fadeIn 1s ease-out;
    position: absolute;
    top: calc(50% - 300px);
    z-index: 20;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.invitation-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--dark-text);
    margin: 0 0 15px;
    font-weight: 500;
}

.couple-names {
    font-family: 'Bodoni Moda', serif;
    font-size: 3.2rem;
    font-weight: 800;
    color: var(--burgundy);
    margin: 0;
    line-height: 1.1;
    position: relative;
    letter-spacing: 1px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Decorative line under names */
.couple-names::after {
    content: "";
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: var(--gold);
}

.couple-ampersand {
    display: inline-block;
    font-family: 'Libre Baskerville', serif;
    color: var(--gold);
    font-style: italic;
    font-size: 3rem;
    margin: 0 0.5rem;
    vertical-align: middle;
}

/* Envelope Container */
#envelope-intro {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 10;
    perspective: 1200px;
}

.envelope {
    position: relative;
    width: 500px;
    height: 300px;
    transform-style: preserve-3d;
    transform: rotateX(0deg);
    /* Flat front view */
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background-color: white;
    /* Clean white envelope */
}

#envelope-intro:hover .envelope {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* Envelope Parts - Simplified for classic look */
.envelope-back {
    position: absolute;
    inset: 0;
    background-color: white;
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    overflow: hidden;
    z-index: 1;
}

/* Classic triangular flap */
.envelope-flap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background-color: white;
    transform-origin: top center;
    transition: transform 0.8s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    z-index: 4;
    clip-path: polygon(0 0, 50% 100%, 100% 0);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    border-left: 1px solid rgba(0, 0, 0, 0.08);
    border-right: 1px solid rgba(0, 0, 0, 0.08);
}

/* Add subtle shadow to flap for depth */
.envelope-flap::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.05));
    clip-path: polygon(0 0, 50% 100%, 100% 0);
}

/* Opening animation (when you click) */
#envelope-intro.envelope-open .envelope-flap {
    transform: rotateX(180deg);
}

/* Clean, simplified wax seal */
.wax-seal {
    position: absolute;
    top: 148px;
    /* Position to align with the vertex of the triangle */
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: var(--burgundy-deep);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    transition: all 0.5s ease;
}

/* Simple heart icon */
.wax-seal::before {
    content: "";
    position: absolute;
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff' stroke='none'%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

#envelope-intro.envelope-open .wax-seal {
    transform: translateX(-50%) scale(0.8);
    opacity: 0;
}

/* Envelope Content */
.envelope-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 6;
    padding: 2rem;
    box-sizing: border-box;
    transition: opacity 0.4s ease;
}

#envelope-intro.envelope-open .envelope-content {
    opacity: 0;
    pointer-events: none;
}

/* Recipient name styling */
.env-recipient {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    color: var(--dark-text);
    margin: 1rem 0 2rem;
    min-height: 1.3em;
    text-align: center;
    font-weight: 600;
    position: absolute;
    width: 100%;
    top: 30px;
    /* Position much higher above the wax seal */
    left: 0;
}

/* Enhanced click prompt */
.env-open-prompt {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--dark-text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.8rem;
    border: 1px solid rgba(138, 48, 61, 0.3);
    border-radius: 25px;
    background-color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    margin: 0 auto;
    position: absolute;
    top: 210px;
    /* Position under the wax seal */
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
    overflow: hidden;
}

.env-open-prompt::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: 0.6s;
}

.env-open-prompt:hover {
    background-color: rgba(255, 255, 255, 1);
    transform: translateX(-50%) translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: var(--burgundy);
    color: var(--burgundy-deep);
}

.env-open-prompt:hover::before {
    left: 100%;
}

.env-open-prompt svg {
    transition: transform 0.3s ease;
}

.env-open-prompt:hover svg {
    transform: scale(1.2);
}

.env-open-prompt:hover {
    background-color: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    border-color: var(--burgundy);
}

/* Sparkle animation for envelope opening */
@keyframes sparkle {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    50% {
        transform: scale(1.2);
        opacity: 1;
    }

    100% {
        transform: scale(0);
        opacity: 0;
    }
}

.sparkle {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--gold);
    box-shadow: 0 0 10px 2px rgba(212, 183, 117, 0.8);
    pointer-events: none;
    z-index: 10;
    animation: sparkle 1.5s ease-in-out forwards;
}

/* Envelope animation enhancement */
#envelope-intro.envelope-open .envelope {
    animation: openBounce 0.6s ease-out forwards;
}

@keyframes openBounce {
    0% {
        transform: rotateX(10deg) translateY(0);
    }

    50% {
        transform: rotateX(5deg) translateY(-15px);
    }

    100% {
        transform: rotateX(0deg) translateY(-10px);
    }
}

/* ------------------------------------------------------
     Page Structure
  ------------------------------------------------------ */
.page-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    visibility: hidden;
    /* hidden until intro is done */
    opacity: 0;
    transition: visibility 0s 0s, opacity 0.6s 0s ease-in-out;
    background: linear-gradient(135deg, var(--soft-blue) 0%, var(--pale-blue) 20%, var(--cream-edge) 60%, var(--cream) 100%);
}

.page-container.visible {
    visibility: visible;
    opacity: 1;
}

.page {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-height: 100vh;
    padding: 5rem 1rem 8rem;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    background: transparent;
}

.page-active {
    display: flex;
    opacity: 1;
}

/* ------------------------------------------------------
     Shared Invitation Card
  ------------------------------------------------------ */
.invitation-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 247, 245, 0.9) 100%);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(201, 169, 97, 0.2);
    width: 100%;
    max-width: 550px;
    margin: 0 auto 2rem;
    padding: 2rem 1.5rem;
    text-align: center;
}


/* Example masked image container, if you have it */
.heart-container {
    position: relative;
    width: 100%;
    max-width: 260px;
    height: 250px;
    margin: 1rem auto;
}

.heart-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Crect x='20' y='20' width='472' height='472' rx='40' ry='40'/%3E%3C/svg%3E");
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;

    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Crect x='20' y='20' width='472' height='472' rx='40' ry='40'/%3E%3C/svg%3E");
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
}

.heart-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.heart-container:hover .heart-image {
    transform: scale(1.05);
}

/* Elegant separator line */
.elegant-separator {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
}

.elegant-separator::before,
.elegant-separator::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid var(--gold);
    opacity: 0.5;
}

.elegant-separator .separator-icon {
    margin: 0 1rem;
    color: var(--gold);
    line-height: 0;
}

.separator-icon svg {
    width: 1.2rem;
    height: 1.2rem;
}

/* ------------------------------------------------------
     Navigation (Sound, Language, Next/Prev Buttons)
  ------------------------------------------------------ */
.nav-button,
.page-indicator {
    transition: opacity 0.5s ease, visibility 0s 0.5s;
    pointer-events: none;
    /* disabled until intro done */
}

/* Sound & Language Toggles (top-right corner) */
#sound-toggle,
#language-toggle {
    position: fixed;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    backdrop-filter: blur(5px);
    color: var(--dark-text);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.1);
    background-color: rgba(255, 255, 255, 0.8);
    top: 1rem;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    z-index: 9999;
    transition: transform 0.3s ease;
}

#sound-toggle {
    right: 1rem;
}

#language-toggle {
    right: 5rem;
    /* shift left from the sound toggle */
}

.nav-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;
}

/* Next/Prev Buttons */
.nav-button {
    position: fixed;
    bottom: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgba(141, 48, 61, 0.85);
    backdrop-filter: blur(5px);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 50;
    transition: all 0.3s ease, opacity 0.5s ease, visibility 0s 0.5s;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-button:hover {
    transform: scale(1.1);
    background-color: var(--burgundy);
}

.nav-button-next {
    bottom: 2rem;
    right: 1.5rem;
}

.nav-button-prev {
    left: 1.5rem;
}

.nav-button svg {
    width: 1.5rem;
    height: 1.5rem;
}

/* Page Indicator Dots */
.page-indicator {
    position: fixed;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 50;
}

.page-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease;
    cursor: pointer;
}

.page-dot.active {
    background-color: var(--gold);
    transform: scale(1.3);
    box-shadow: 0 0 8px rgba(207, 174, 112, 0.7);
}

/* Hover effects for toggles */
#sound-toggle:hover,
#language-toggle:hover {
    transform: scale(1.1);
    background-color: white;
}

#sound-toggle svg,
#language-toggle svg {
    width: 1.5rem;
    height: 1.5rem;
}

/* ------------------------------------------------------
     Page 1 Specific (Calendar, Countdown, etc.)
  ------------------------------------------------------ */
.calendar-grid {
    margin-top: 1rem;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 0.5rem;
    direction: ltr;
    /* Force LTR for calendar layout */
}

.calendar-weekday {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--light-text);
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 0.5rem;
}

.calendar-day {
    font-size: 0.9rem;
    font-family: system-ui, sans-serif;
    color: var(--dark-text);
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Mark wedding day with a heart or highlight */
.wedding-day-heart-marker {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.wedding-day-heart-marker .heart-icon {
    position: absolute;
    color: var(--burgundy);
    opacity: 0.9;
    width: 100%;
    height: 100%;
}

.wedding-day-heart-marker span {
    position: relative;
    z-index: 2;
    color: white;
    font-weight: bold;
    font-size: 0.9rem;
    margin-top: -2px;
    font-family: system-ui, sans-serif;
}

/* Countdown items */
.countdown-item {
    min-width: 60px;
    text-align: center;
}

.countdown-number {
    font-family: 'Bodoni Moda', serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--burgundy);
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.countdown-label {
    font-size: 0.75rem;
    color: var(--light-text);
    margin-top: 0.2rem;
}

/* ------------------------------------------------------
   PAGE 2: Main Invitation Styles
   (Replaced with your new snippet styling)
------------------------------------------------------ */
/* Main container structure */
.invitation-card-container {
    max-width: 750px;
    margin: 0 auto;
    position: relative;
    overflow: visible;
    animation: fadeIn 1.5s ease-out forwards;
  }
  /* Top decorative header */
.card-decorative-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 10px;
  }
  .decorative-line {
    height: 1px;
    width: 100px;
    background: linear-gradient(90deg, 
      rgba(212, 183, 117, 0) 0%, 
      rgba(212, 183, 117, 0.8) 50%, 
      rgba(212, 183, 117, 0) 100%);
  }
  .decorative-ornament {
    color: var(--gold);
    width: 30px;
    height: 30px;
    opacity: 0.8;
  }
  
  /* Main card styling */
.invitation-main-card {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.98), rgba(248, 247, 245, 0.95));
    border-radius: 16px;
    box-shadow: 
      0 25px 60px rgba(0, 0, 0, 0.1),
      0 0 0 1px rgba(201, 169, 97, 0.15),
      0 0 0 4px rgba(255, 255, 255, 0.8),
      0 0 50px rgba(201, 169, 97, 0.1);
    padding: 40px 30px;
    position: relative;
    overflow: hidden;
    z-index: 1;
  }
  /* Background decorative pattern */
.invitation-main-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 50% 50%, rgba(212, 183, 117, 0.05) 0%, transparent 60%);
    background-size: 40px 40px;
    background-position: 0 0;
    z-index: -1;
    opacity: 0.6;
  }
  /* Basmala (Islamic opening) styling */
.basmala-container {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
  }
  
  
/* Overriding the .animation-fade-up for a gentler reveal */
.animation-fade-up {
    animation: fadeUp 1.2s ease-out forwards;
}

.basmala {
    font-family: "Cinzel", serif;
    font-size: 1.8rem;
    line-height: 1.4;
    margin-bottom: 5px;
    font-style: normal;
    color: var(--burgundy);
    position: relative;
    display: inline-block;
  }
  .basmala-translation {
    font-family: "Cormorant Garamond", serif;
    font-size: 0.9rem;
    color: var(--light-text);
    font-style: italic;
  }
  .verse-container {
    position: relative;
    margin: 40px auto;
    max-width: 550px;
    display: flex;
    align-items: center;
  }
  
  .verse-decoration {
    height: 80px;
    width: 1px;
    background: linear-gradient(to bottom, 
      rgba(212, 183, 117, 0) 0%, 
      rgba(212, 183, 117, 0.8) 50%, 
      rgba(212, 183, 117, 0) 100%);
    margin: 0 20px;
  }
  .quran-verse {
    position: relative;
    padding: 25px 0;
    font-style: italic;
    line-height: 1.8;
    color: var(--dark-text);
    text-align: center;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 0.5rem;
    position: relative;
  }

  .quran-verse::before,
  .quran-verse::after {
    content: "\"";
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    position: absolute;
    color: var(--gold);
    opacity: 0.2;
    line-height: 0;
  }
  
  .quran-verse::before {
    top: 15px;
    left: 5px;
  }
  
  .quran-verse::after {
    content: "\"";
    bottom: 0;
    right: 5px;
  }

  .verse-reference {
    display: block;
    text-align: right;
    font-size: 0.8rem;
    color: var(--light-text);
    margin-top: 12px;
    font-style: normal;
    opacity: 0.8;
  }
/* Invitation announcement */
.invitation-announcement {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin: 40px 0;
  }
  
  .invitation-announcement h3 {
    font-family: 'Libre Baskerville', serif;
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--burgundy);
    text-align: center;
    margin: 0;
    font-style: italic;
  }

  .announcement-border {
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, 
      rgba(212, 183, 117, 0) 0%, 
      rgba(212, 183, 117, 0.8) 50%, 
      rgba(212, 183, 117, 0) 100%);
  }
  


/* Couple names display */
.couple-display {
    margin: 45px 0;
    position: relative;
  }
  
  .bride-groom-container {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    max-width: 100%;
    position: relative;
  }
  
  .groom-details, .bride-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 20px;
    position: relative;
    flex: 1;
  }
  
  .couple-name {
    font-family: 'Dancing Script', cursive;
    font-size: 3.2rem;
    font-weight: 600;
    color: var(--burgundy);
    line-height: 1;
    position: relative;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
  }
  
  .groom-details {
    text-align: center;
  }
  
  .bride-details {
    text-align: center;
  }
  
  .family-name {
    font-family: "Montserrat", sans-serif;
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--light-text);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: block;
  }
  
  .groom-details:hover .couple-name,
  .bride-details:hover .couple-name {
    color: var(--gold);
    transform: translateY(-3px);
  }
  
  /* Heart divider */
  .heart-divider {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 120px;
    padding: 0 20px;
  }
  
  .heart-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
  }
  
  .heart-container svg {
    width: 45px;
    height: 45px;
    color: var(--coral);
    filter: drop-shadow(0 3px 8px rgba(255, 107, 107, 0.5));
    z-index: 1;
    transition: all 0.3s ease;
  }
  
  .heart-container:hover svg {
    color: var(--burgundy);
    transform: scale(1.2);
    filter: drop-shadow(0 4px 12px rgba(231, 76, 60, 0.6));
  }
  
  /* Heart glow effect */
  .heart-container::before {
    content: "";
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: radial-gradient(circle, 
      rgba(138, 48, 61, 0.1) 0%, 
      rgba(138, 48, 61, 0.05) 40%, 
      transparent 70%);
    animation: pulseGlow 3s infinite alternate ease-in-out;
  }
  
  @keyframes pulseGlow {
    0% {
      transform: scale(0.8);
      opacity: 0.6;
    }
    100% {
      transform: scale(1.1);
      opacity: 0.9;
    }
  }
  
  /* Enhanced heart beat animation */
  .heart-beat {
    animation: enhancedHeartBeat 2s infinite ease-in-out;
  }
  
  @keyframes enhancedHeartBeat {
    0%, 100% {
      transform: scale(1);
    }
    15% {
      transform: scale(1.15);
    }
    25% {
      transform: scale(1);
    }
    35% {
      transform: scale(1.2);
    }
    50% {
      transform: scale(1);
    }
  }
  
  /* Decorative flourish under couple names */
  .couple-ornament {
    margin-top: 30px;
    display: flex;
    justify-content: center;
  }
  
  .ornament-flourish {
    width: 150px;
    height: 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='14' viewBox='0 0 150 14' fill='none'%3E%3Cpath d='M75 0C50 0 50 14 25 14H0M75 0C100 0 100 14 125 14H150' stroke='rgba(212, 183, 117, 0.5)' stroke-width='1'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.8;
  }
  
  /* Event details styling */
  .event-details-container {
    background: linear-gradient(to right, 
      rgba(255, 255, 255, 0.3), 
      rgba(255, 255, 255, 0.8), 
      rgba(255, 255, 255, 0.3));
    border-radius: 15px;
    padding: 25px 30px;
    margin: 40px 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(212, 183, 117, 0.15);
  }
  
  .event-details-container::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, 
      rgba(255, 255, 255, 0.3) 0%, 
      transparent 70%);
    opacity: 0.7;
    z-index: 0;
  }
  
  .details-row {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 1;
  }
  
  .details-icon {
    flex-shrink: 0;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(212, 183, 117, 0.2);
  }
  
  .details-icon svg {
    width: 18px;
    height: 18px;
    stroke-width: 1.5;
  }
  
  .details-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
  }
  
  .details-label {
    font-size: 0.75rem;
    color: var(--light-text);
    text-transform: uppercase;
    letter-spacing: 1px;
  }
  
  .details-value {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: var(--dark-text);
    font-weight: 500;
  }
  
  /* Guest information styling */
  .guest-information {
    text-align: center;
    margin: 40px 0 30px;
    padding-top: 15px;
    position: relative;
  }
  
  .guest-greeting {
    font-size: 1.2rem;
    margin-bottom: 15px;
  }
  
  .greeting-message {
    font-family: 'Crimson Text', serif;
    font-style: italic;
    margin-right: 8px;
  }
  
  .guest-name {
    font-family: 'Bodoni Moda', serif;
    font-weight: 600;
    color: var(--burgundy);
    font-size: 1.4rem;
  }
  
  .guest-message {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
    color: var(--light-text);
  }
  
  .guest-count {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border: 1px solid rgba(212, 183, 117, 0.4);
    border-radius: 30px;
    background-color: rgba(255, 255, 255, 0.6);
  }
  
  .count-label {
    font-size: 0.9rem;
    color: var(--light-text);
  }
  
  .count-value {
    font-weight: 700;
    color: var(--burgundy);
  }
  
  /* Invitation footer styling */
  .invitation-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 40px;
  }
  
  .footer-decoration {
    width: 60px;
    height: 1px;
    background-color: var(--gold);
    opacity: 0.5;
  }
  
  .invitation-note {
    font-style: italic;
    font-size: 0.85rem;
    color: var(--light-text);
    text-align: center;
    letter-spacing: 0.5px;
  }
  
  /* Bottom decorative footer */
  .card-decorative-footer {
    display: flex;
    justify-content: center;
    margin-top: 15px;
  }
  
  .footer-flourish {
    width: 120px;
    height: 10px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='10' viewBox='0 0 120 10' fill='none'%3E%3Cpath d='M60 10C40 10 35 0 0 0M60 10C80 10 85 0 120 0' stroke='rgba(212, 183, 117, 0.4)' stroke-width='1'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
  }
  
  /* Responsive adjustments */
  @media (max-width: 768px) {
    .invitation-main-card {
      padding: 30px 20px;
    }
    
    .couple-name {
      font-size: 2.6rem;
    }
    
    .heart-container svg {
      width: 36px;
      height: 36px;
    }
    
    .verse-decoration {
      height: 60px;
      margin: 0 10px;
    }
    
    .details-value {
      font-size: 1rem;
    }
    
    .guest-message {
      max-width: 95%;
    }
  }
  
  @media (max-width: 480px) {
    .invitation-main-card {
      padding: 25px 15px;
    }
    
    .basmala {
      font-size: 1.5rem;
    }
    
    .couple-name {
      font-size: 2.2rem;
    }
    
    .heart-container svg {
      width: 32px;
      height: 32px;
    }
    
    .heart-divider {
      width: 60px;
      padding: 0 10px;
    }
    
    .verse-container {
      flex-direction: column;
      gap: 10px;
    }
    
    .verse-decoration {
      width: 80px;
      height: 1px;
      margin: 10px 0;
    }
    
    .event-details-container {
      padding: 20px 15px;
    }
    
    .details-icon {
      width: 30px;
      height: 30px;
    }
    
    .details-icon svg {
      width: 16px;
      height: 16px;
    }
    
    .details-value {
      font-size: 0.95rem;
    }
    
    .guest-name {
      font-size: 1.2rem;
    }
    
    .guest-greeting {
      font-size: 1.1rem;
    }
    
    .invitation-announcement h3 {
      font-size: 1.2rem;
    }
  }


/* ------------------------------------------------------
     Page 3 Specific (Details, Schedules, etc.)
  ------------------------------------------------------ */
.details-section {
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-top: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: left;
}

.details-section h3 {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    text-align: left;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(207, 174, 112, 0.3);
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--burgundy);
    margin-bottom: 1rem;
}

.details-section h3 i {
    margin-right: 0.5rem;
    width: 1.1rem;
    height: 1.1rem;
    flex-shrink: 0;
}

.details-section h3 span {
    flex-grow: 1;
}

.details-list li {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    margin-bottom: 0.75rem;
    text-align: left;
}

.details-list li i {
    margin-right: 0.75rem;
    color: var(--gold);
    width: 1.1rem;
    height: 1.1rem;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.details-list li div {
    flex-grow: 1;
    text-align: left;
}

/* Map container */
.map-container {
    border-radius: 0.5rem;
    overflow: hidden;
    height: 200px;
    background-color: #eee;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Schedule items */
.schedule-item {
    display: flex;
    padding: 0.5rem 0;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
    justify-content: space-between;
    text-align: left;
}

.schedule-item:last-child {
    border-bottom: none;
}

.schedule-time {
    font-weight: 700;
    color: var(--dark-text);
    flex-shrink: 0;
    margin-left: 1rem;
}

.schedule-desc {
    color: var(--light-text);
    flex-grow: 1;
}

/* Gifts section (icon, IBAN box, etc.) */
.gift-icon-wrapper {
    width: 80px;
    height: 80px;
    background-color: rgba(207, 174, 112, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem auto;
    border: 1px solid rgba(207, 174, 112, 0.3);
}

.gift-icon-wrapper i svg {
    width: 2.5rem;
    height: 2.5rem;
    color: var(--gold);
}

.iban-box {
    background-color: #fff;
    border: 1px solid var(--gold);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    margin-top: 1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.iban-box p {
    direction: ltr;
    text-align: center;
    /* IBAN is typically LTR */
}

/* Redesigned Page 1 Styles - Save The Date */

/* Main container */
.savedate-container {
    max-width: 750px;
    margin: 0 auto;
    position: relative;
    animation: fadeIn 1.5s ease-out forwards;
  }
  
  /* Decorative elements */
  .savedate-decorative-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
  }
  
  .decorative-swirl {
    height: 1px;
    width: 120px;
    position: relative;
  }
  
  .decorative-swirl.left {
    background: linear-gradient(90deg, 
      rgba(212, 183, 117, 0) 0%, 
      rgba(212, 183, 117, 0.8) 100%);
    margin-right: 15px;
  }
  
  .decorative-swirl.right {
    background: linear-gradient(90deg, 
      rgba(212, 183, 117, 0.8) 0%, 
      rgba(212, 183, 117, 0) 100%);
    margin-left: 15px;
  }
  
  .decorative-ornament {
    color: var(--gold);
    width: 30px;
    height: 30px;
    opacity: 0.8;
  }
  
  /* Main card styling */
  .savedate-main-card {
    background: linear-gradient(to bottom, 
      rgba(255, 255, 255, 0.98),
      rgba(248, 247, 245, 0.95));
    border-radius: 16px;
    box-shadow: 
      0 25px 60px rgba(0, 0, 0, 0.1),
      0 0 0 1px rgba(201, 169, 97, 0.15),
      0 0 0 4px rgba(255, 255, 255, 0.8),
      0 0 50px rgba(201, 169, 97, 0.1);
    padding: 40px 30px;
    position: relative;
    overflow: hidden;
    z-index: 1;
  }
  
  /* Background pattern */
  .savedate-main-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 50% 50%, 
      rgba(212, 183, 117, 0.05) 0%, 
      transparent 60%);
    background-size: 40px 40px;
    background-position: 0 0;
    z-index: -1;
    opacity: 0.6;
  }
  
  /* Save the Date heading */
  .savedate-heading {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
  }
  
  .savedate-heading h1 {
    font-family: 'Cinzel', serif;
    font-size: 3.5rem;
    font-weight: 600;
    color: var(--gold);
    margin: 0;
    line-height: 1.1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: 2px;
  }
  
  .heading-underline {
    width: 120px;
    height: 2px;
    background: linear-gradient(90deg, 
      rgba(212, 183, 117, 0) 0%, 
      rgba(212, 183, 117, 0.8) 50%, 
      rgba(212, 183, 117, 0) 100%);
    margin: 15px auto 0;
  }
  
  /* Photo frame styling */
  .photo-frame-container {
    position: relative;
    width: 100%;
    max-width: 320px;
    margin: 20px auto 35px;
  }
  
  .photo-frame {
    position: relative;
    padding: 10px;
    background-color: white;
    border: 1px solid rgba(212, 183, 117, 0.3);
    box-shadow: 
      0 1px 3px rgba(0, 0, 0, 0.1),
      0 0 0 1px rgba(255, 255, 255, 0.7);
    transform: rotate(-2deg);
    z-index: 2;
    transition: all 0.5s ease;
  }
  
  .photo-frame:hover {
    transform: rotate(0deg) scale(1.03);
  }
  
  .photo-inner {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4; /* Adjust based on your image proportion */
  }
  
  .photo-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.7s ease;
  }
  
  .photo-frame:hover .photo-inner img {
    transform: scale(1.05);
  }
  
  .photo-shadow {
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    background-color: rgba(0, 0, 0, 0.15);
    transform: rotate(2deg);
    z-index: 1;
    filter: blur(8px);
  }
  
  /* Couple names styling */
  .savedate-couple {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 30px 0;
    font-family: 'Playfair Display', serif;
  }
  
  .couple-name-left, .couple-name-right {
    font-family: 'Dancing Script', cursive;
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--burgundy);
    line-height: 1;
    position: relative;
    transition: all 0.3s ease;
  }
  
  .couple-name-left:hover, .couple-name-right:hover {
    color: var(--gold);
    transform: translateY(-2px);
  }
  
  .couple-ampersand {
    font-family: 'Libre Baskerville', serif;
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--gold);
    margin: 0 15px;
    font-style: italic;
  }
  
  /* Wedding date display */
  .wedding-date {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 35px 0;
  }
  
  .date-divider {
    height: 1px;
    width: 80px;
    background: linear-gradient(90deg, 
      rgba(212, 183, 117, 0) 0%, 
      rgba(212, 183, 117, 0.8) 100%);
  }
  
  .date-divider.right {
    background: linear-gradient(90deg, 
      rgba(212, 183, 117, 0.8) 0%, 
      rgba(212, 183, 117, 0) 100%);
  }
  
  .date-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 20px;
  }
  
  .date-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    color: var(--light-text);
    line-height: 1.6;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 400;
  }
  
  .date-number {
    font-family: 'Bodoni Moda', serif;
    font-size: 3.2rem;
    font-weight: 800;
    color: var(--burgundy);
    line-height: 1;
    margin: 5px 0;
  }
  
  /* Calendar styling */
  .calendar-container {
    max-width: 400px;
    margin: 30px auto;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(212, 183, 117, 0.15);
  }
  
  .calendar-header {
    text-align: center;
    margin-bottom: 15px;
  }
  
  .calendar-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--dark-text);
    margin: 0;
  }
  
  .weekday-row {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-bottom: 10px;
    text-align: center;
  }
  
  .weekday {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--light-text);
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }
  
  .days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    text-align: center;
  }
  
  .calendar-day {
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--dark-text);
    border-radius: 50%;
    position: relative;
    transition: all 0.3s ease;
  }
  
  .calendar-day:hover {
    background-color: rgba(212, 183, 117, 0.1);
  }
  
  .calendar-empty {
    aspect-ratio: 1/1;
  }
  
  /* Special day (wedding day) styling */
  .special-day {
    position: relative;
    font-weight: 700;
    z-index: 1;
  }
  
  .heart-marker {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--coral), var(--burgundy));
    border-radius: 50%;
    z-index: -1;
  }
  
  .heart-marker svg {
    width: 40px;
    height: 40px;
    color: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
  }
  
  .special-day span {
    position: relative;
    color: var(--dark-text);
    font-weight: 700;
    z-index: 1;
  }
  
  /* Countdown styling */
  .countdown-container {
    margin-top: 35px;
    text-align: center;
  }
  
  .countdown-title {
    font-family: 'Merriweather', serif;
    font-size: 0.95rem;
    font-style: italic;
    color: var(--light-text);
    margin-bottom: 15px;
  }
  
  .countdown-timer {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .countdown-box {
    flex: 1;
    max-width: 90px;
    padding: 10px;
    background: linear-gradient(to bottom,
      rgba(255, 255, 255, 0.8),
      rgba(255, 255, 255, 0.5));
    border-radius: 8px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(212, 183, 117, 0.2);
  }
  
  .countdown-number {
    font-family: 'Bodoni Moda', serif;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--burgundy);
    line-height: 1;
    font-variant-numeric: tabular-nums;
  }
  
  .countdown-label {
    font-size: 0.75rem;
    color: var(--light-text);
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
  }
  
  .countdown-divider {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: var(--gold);
    margin: 0 10px;
    opacity: 0.6;
  }
  
  /* Bottom decorative element */
  .savedate-decorative-footer {
    display: flex;
    justify-content: center;
    margin-top: 15px;
  }
  
  .decorative-flourish {
    width: 120px;
    height: 10px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='10' viewBox='0 0 120 10' fill='none'%3E%3Cpath d='M60 10C40 10 35 0 0 0M60 10C80 10 85 0 120 0' stroke='rgba(212, 183, 117, 0.4)' stroke-width='1'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
  }
  
  /* Responsive adjustments */
  @media (max-width: 768px) {
    .savedate-main-card {
      padding: 30px 20px;
    }
    
    .savedate-heading h1 {
      font-size: 3rem;
    }
    
    .couple-name-left, .couple-name-right {
      font-size: 2.4rem;
    }
    
    .couple-ampersand {
      font-size: 2.2rem;
      margin: 0 10px;
    }
    
    .date-number {
      font-size: 2.8rem;
    }
    
    .countdown-box {
      padding: 8px;
    }
    
    .countdown-number {
      font-size: 1.8rem;
    }
  }
  
  @media (max-width: 480px) {
    .savedate-main-card {
      padding: 25px 15px;
    }
    
    .savedate-heading h1 {
      font-size: 2.5rem;
    }
    
    .photo-frame-container {
      max-width: 280px;
    }
    
    .couple-name-left, .couple-name-right {
      font-size: 2rem;
    }
    
    .couple-ampersand {
      font-size: 1.8rem;
      margin: 0 8px;
    }
    
    .date-divider {
      width: 60px;
    }
    
    .date-number {
      font-size: 2.4rem;
    }
    
    .calendar-container {
      padding: 15px;
    }
    
    .weekday-row, .days-grid {
      gap: 4px;
    }
    
    .countdown-box {
      max-width: 70px;
      padding: 6px;
    }
    
    .countdown-number {
      font-size: 1.6rem;
    }
    
    .countdown-divider {
      margin: 0 5px;
    }
  }
  /* Redesigned Page 3 Styles - Wedding Details */

/* Main container */
.details-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    animation: fadeIn 1.5s ease-out forwards;
  }
  
  /* Decorative elements */
  .details-decorative-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 10px;
  }
  
  .decorative-line {
    height: 1px;
    width: 100px;
  }
  
  .decorative-line.left {
    background: linear-gradient(90deg, 
      rgba(212, 183, 117, 0) 0%, 
      rgba(212, 183, 117, 0.8) 100%);
  }
  
  .decorative-line.right {
    background: linear-gradient(90deg, 
      rgba(212, 183, 117, 0.8) 0%, 
      rgba(212, 183, 117, 0) 100%);
  }
  
  .decorative-ornament {
    color: var(--gold);
    width: 30px;
    height: 30px;
    opacity: 0.8;
  }
  
  /* Main card styling */
  .details-main-card {
    background: linear-gradient(to bottom, 
      rgba(255, 255, 255, 0.98), 
      rgba(248, 247, 245, 0.95));
    border-radius: 16px;
    box-shadow: 
      0 25px 60px rgba(0, 0, 0, 0.1),
      0 0 0 1px rgba(201, 169, 97, 0.15),
      0 0 0 4px rgba(255, 255, 255, 0.8),
      0 0 50px rgba(201, 169, 97, 0.1);
    padding: 40px 30px;
    position: relative;
    overflow: hidden;
    z-index: 1;
  }
  
  /* Background pattern */
  .details-main-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 50% 50%, 
      rgba(212, 183, 117, 0.05) 0%, 
      transparent 60%);
    background-size: 40px 40px;
    background-position: 0 0;
    z-index: -1;
    opacity: 0.6;
  }
  
  /* Page heading */
  .details-heading {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
  }
  
  .details-heading h2 {
    font-family: 'Cinzel', serif;
    font-size: 2.8rem;
    font-weight: 600;
    color: var(--burgundy);
    margin: 0 0 10px;
    line-height: 1.1;
  }
  
  .heading-couple {
    font-family: 'Dancing Script', cursive;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.2;
  }
  
  .heading-couple span {
    display: inline-block;
  }
  
  .couple-separator {
    color: var(--gold);
    margin: 0 10px;
    font-style: italic;
  }
  
  .heading-underline {
    width: 120px;
    height: 2px;
    background: linear-gradient(90deg, 
      rgba(212, 183, 117, 0) 0%, 
      rgba(212, 183, 117, 0.8) 50%, 
      rgba(212, 183, 117, 0) 100%);
    margin: 5px auto 0;
  }
  
  /* Quick info section */
  .quick-info-container {
    margin: 0 auto 40px;
    max-width: 600px;
  }
  
  .quick-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px 40px;
  }
  
  .info-item {
    display: flex;
    align-items: center;
    gap: 15px;
  }
  
  .info-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    border: 1px solid rgba(212, 183, 117, 0.2);
    flex-shrink: 0;
  }
  
  .info-icon svg {
    width: 20px;
    height: 20px;
    stroke-width: 1.5;
  }
  
  .info-content {
    display: flex;
    flex-direction: column;
    gap: 3px;
  }
  
  .info-label {
    font-size: 0.75rem;
    color: var(--light-text);
    text-transform: uppercase;
    letter-spacing: 1px;
  }
  
  .info-value {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    color: var(--dark-text);
    font-weight: 600;
  }
  
  /* Common section styling */
  .details-section {
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 35px;
    overflow: hidden;
    border: 1px solid rgba(212, 183, 117, 0.15);
    padding: 0;
  }
  
  .section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 25px;
    background: linear-gradient(to right, 
      rgba(212, 183, 117, 0.1), 
      rgba(212, 183, 117, 0.05) 80%, 
      rgba(255, 255, 255, 0));
    border-bottom: 1px solid rgba(212, 183, 117, 0.15);
  }
  
  .section-header.centered {
    justify-content: center;
  }
  
  .section-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(212, 183, 117, 0.2);
    color: var(--burgundy);
    flex-shrink: 0;
  }
  
  .section-icon svg {
    width: 18px;
    height: 18px;
    stroke-width: 1.5;
  }
  
  .section-header h3 {
    font-family: 'Libre Baskerville', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--burgundy);
    margin: 0;
  }
  
  /* Location section */
  .location-section .map-container {
    height: 220px;
    width: 100%;
    overflow: hidden;
    position: relative;
  }
  
  .location-details {
    padding: 20px 25px 25px;
  }
  
  .location-description {
    font-size: 0.95rem;
    color: var(--light-text);
    margin: 0 0 12px;
    line-height: 1.5;
  }
  
  .location-address {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: var(--dark-text);
    font-weight: 500;
    margin-bottom: 15px;
  }
  
  .location-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-size: 0.9rem;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 25px;
    background: linear-gradient(135deg, var(--burgundy), var(--gold));
    box-shadow: 0 3px 10px rgba(123, 94, 104, 0.3);
    transition: all 0.3s ease;
  }
  
  .location-link:hover {
    background: linear-gradient(135deg, var(--gold), var(--burgundy));
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(201, 169, 97, 0.4);
  }
  
  .location-link svg {
    width: 14px;
    height: 14px;
  }
  
  /* Schedule section */
  .schedule-timeline {
    padding: 20px 25px 25px;
  }
  
  .timeline-item {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
  }
  
  .timeline-item:last-child {
    margin-bottom: 0;
  }
  
  .timeline-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 10px;
    height: 100%;
    width: 1px;
    background: linear-gradient(to bottom, 
      var(--gold) 0%, 
      rgba(212, 183, 117, 0.3) 100%);
  }
  
  .timeline-item:last-child::before {
    background: linear-gradient(to bottom, 
      var(--gold) 0%, 
      rgba(212, 183, 117, 0) 80%);
  }
  
  .timeline-item::after {
    content: "";
    position: absolute;
    top: 6px;
    left: 6px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(212, 183, 117, 0.15);
  }
  
  .timeline-content {
    padding-bottom: 15px;
  }
  
  .timeline-time {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--burgundy);
    margin-bottom: 5px;
  }
  
  .timeline-event {
    font-size: 0.95rem;
    color: var(--light-text);
  }
  
  /* Notes section */
  .notes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    padding: 25px;
  }
  
  .note-item {
    display: flex;
    gap: 15px;
  }
  
  .note-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(212, 183, 117, 0.2);
    color: var(--gold);
    flex-shrink: 0;
  }
  
  .note-icon svg {
    width: 16px;
    height: 16px;
    stroke-width: 1.5;
  }
  
  .note-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
  }
  
  .note-title {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-text);
  }
  
  .note-text {
    font-size: 0.9rem;
    color: var(--light-text);
    line-height: 1.5;
  }
  
  .hashtag {
    font-family: 'Courier New', monospace;
    font-weight: 700;
    color: var(--burgundy);
    font-size: 0.9rem;
  }
  
  /* RSVP section */
  .rsvp-content {
    padding: 20px 25px 25px;
  }
  
  .rsvp-intro {
    font-size: 0.95rem;
    color: var(--light-text);
    margin: 0 0 20px;
    line-height: 1.5;
  }
  
  .contact-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
  }
  
  .contact-card {
    flex: 1;
    min-width: 220px;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 234, 167, 0.2));
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
    background-clip: padding-box;
    transition: all 0.3s ease;
  }
  
  .contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(231, 76, 60, 0.2);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 107, 107, 0.15));
    border: 2px solid var(--coral);
  }
  
  .contact-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--burgundy));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(201, 169, 97, 0.3);
  }
  
  .contact-icon svg {
    width: 20px;
    height: 20px;
    stroke-width: 1.5;
    color: white;
  }
  
  .contact-details {
    display: flex;
    flex-direction: column;
    gap: 3px;
  }
  
  .contact-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-text);
  }
  
  .contact-number {
    font-size: 0.9rem;
    color: var(--burgundy);
    text-decoration: none;
    transition: color 0.3s ease;
    direction: ltr;
    display: inline-block;
  }
  
  .contact-number:hover {
    color: var(--gold);
    text-decoration: underline;
  }
  
  /* Gifts section */
  .gifts-content {
    padding: 20px 25px 25px;
    text-align: center;
  }
  
  .gifts-message, .gifts-info {
    font-size: 0.95rem;
    color: var(--light-text);
    margin: 0 0 20px;
    line-height: 1.5;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .gift-icon-container {
    margin: 25px auto;
    display: flex;
    justify-content: center;
  }
  
  .gift-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: rgba(212, 183, 117, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(212, 183, 117, 0.3);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    color: var(--gold);
    transition: all 0.5s ease;
  }
  
  .gift-icon:hover {
    transform: rotate(10deg) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  }
  
  .gift-icon svg {
    width: 40px;
    height: 40px;
    stroke-width: 1.5;
  }
  
  .iban-container {
    background-color: white;
    border: 1px solid rgba(212, 183, 117, 0.3);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    max-width: 400px;
    margin: 0 auto;
  }
  
  .iban-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 12px;
  }
  
  .iban-number {
    font-family: monospace;
    font-size: 1rem;
    color: var(--dark-text);
    letter-spacing: 1px;
    background-color: rgba(212, 183, 117, 0.05);
    padding: 8px 12px;
    border-radius: 5px;
    margin-bottom: 8px;
    direction: ltr;
  }
  
  .iban-note {
    font-size: 0.8rem;
    color: var(--light-text);
    font-style: italic;
  }
  
  /* Bottom decorative element */
  .details-decorative-footer {
    display: flex;
    justify-content: center;
    margin-top: 15px;
  }
  
  .footer-flourish {
    width: 120px;
    height: 10px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='10' viewBox='0 0 120 10' fill='none'%3E%3Cpath d='M60 10C40 10 35 0 0 0M60 10C80 10 85 0 120 0' stroke='rgba(212, 183, 117, 0.4)' stroke-width='1'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
  }
  
  /* Responsive adjustments */
  @media (max-width: 768px) {
    .details-main-card {
      padding: 30px 20px;
    }
    
    .details-heading h2 {
      font-size: 2.4rem;
    }
    
    .heading-couple {
      font-size: 1.4rem;
    }
    
    .quick-info-grid {
      gap: 20px;
    }
    
    .info-icon {
      width: 36px;
      height: 36px;
    }
    
    .notes-grid {
      grid-template-columns: 1fr;
      gap: 20px;
    }
    
    .contact-cards {
      flex-direction: column;
    }
    
    .gift-icon {
      width: 70px;
      height: 70px;
    }
    
    .gift-icon svg {
      width: 35px;
      height: 35px;
    }
  }
  
  @media (max-width: 480px) {
    .details-main-card {
      padding: 25px 15px;
    }
    
    .details-heading h2 {
      font-size: 2rem;
    }
    
    .heading-couple {
      font-size: 1.2rem;
    }
    
    .quick-info-grid {
      grid-template-columns: 1fr;
      gap: 15px;
    }
    
    .section-header {
      padding: 15px 20px;
    }
    
    .section-icon {
      width: 32px;
      height: 32px;
    }
    
    .section-icon svg {
      width: 16px;
      height: 16px;
    }
    
    .section-header h3 {
      font-size: 1.2rem;
    }
    
    .location-details, 
    .schedule-timeline, 
    .notes-grid, 
    .rsvp-content, 
    .gifts-content {
      padding: 15px 20px 20px;
    }
    
    .iban-container {
      padding: 15px;
    }
  }

  .iban-container {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin: 1rem 0;
}

.iban-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.iban-accounts {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

.iban-account {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: monospace;
    font-size: 0.9rem;
    word-break: keep-all;
    white-space: nowrap;
    overflow-x: auto;
    padding: 0.25rem;
}

.iban-currency {
    font-weight: bold;
    min-width: 3.5rem;
}

.iban-number {
    letter-spacing: 0.5px;
}

.iban-name {
    font-size: 0.9rem;
    margin-top: 0.5rem;
    font-style: italic;
}

@media (max-width: 480px) {
    .iban-account {
        font-size: 0.85rem;
    }
    
    .iban-currency {
        min-width: 3rem;
    }
}

.iban-container {
    background: rgba(255, 255, 255, 0.9);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    margin: 1.5rem auto;
    max-width: 600px;
    width: 90%;
    overflow: hidden;
}

.iban-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--burgundy-text);
}

.iban-accounts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    overflow: hidden;
}

.iban-account {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    justify-content: center;
    overflow: hidden;
}

.iban-currency {
    font-weight: bold;
    color: var(--burgundy-text);
    white-space: nowrap;
}

.iban-number {
    font-family: monospace;
    letter-spacing: 1px;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.iban-number:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.iban-name {
    margin-top: 1rem;
    font-style: italic;
    color: var(--burgundy-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 480px) {
    .iban-container {
        padding: 1rem;
        width: 95%;
    }
    
    .iban-title {
        font-size: 1.2rem;
    }
    
    .iban-account {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .iban-number {
        font-size: 0.9rem;
        padding: 0.25rem;
    }
    
    .iban-name {
        font-size: 0.9rem;
    }
}