:root {
    --sage-green: #9FAF8E;
    --dark-sage: #738468;
    --light-sage: #C8D5BB;
    --cream: #F5F3ED;
    --gold: #C9A961;
    --dark-text: #3D4436;
    --shadow: rgba(61, 68, 54, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(135deg, #E8EBE4 0%, #D4D9CD 100%);
    color: var(--dark-text);
    overflow-x: hidden;
    min-height: 100vh;
}

/* Hide scrollbar */
::-webkit-scrollbar {
    display: none;
}

body {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Envelope Container - Full Screen Mobile */
.envelope-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    background: linear-gradient(135deg, #E8EBE4 0%, #D4D9CD 100%);
    transition: opacity 0.8s ease, visibility 0.8s ease;
    padding: 0;
}

.envelope-wrapper.opened {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.envelope {
    position: relative;
    width: 100%;
    height: 100vh;
    cursor: pointer;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Paper texture background */
.envelope-back {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    overflow: hidden;
}

/* Paper texture effect */
/* Texture effects removed */
.envelope-back::before,
.envelope-back::after {
    display: none;
}

/* Top floral border decoration */
.floral-decoration-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 180px;
    pointer-events: none;
    z-index: 5;
}

.floral-decoration-top svg {
    width: 100%;
    height: 100%;
    opacity: 0.15;
}

/* Bottom floral border decoration */
.floral-decoration-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 180px;
    pointer-events: none;
    z-index: 5;
}

.floral-decoration-bottom svg {
    width: 100%;
    height: 100%;
    opacity: 0.15;
    transform: rotate(180deg);
}

/* --- ENVELOPE PARTS --- */

/* 1. Side Flaps (Left & Right) */
.envelope-flap-left,
.envelope-flap-right {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    background-color: #ffffff;
    z-index: 6;
    clip-path: polygon(0 0, 100% 50%, 0 100%);
    box-shadow: inset -5px 0 15px rgba(0, 0, 0, 0.05);
}

.envelope-flap-left {
    left: 0;
    background-position: left center;
}

.envelope-flap-right {
    right: 0;
    background-position: right center;
    transform: scaleX(-1);
    /* Mirror the image/clip-path for the right side */
}


/* 2. Bottom Flap (The "Pocket") */
.envelope-flap-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 48%;
    /* Covers slightly less than half to leave room for top flap overlap */
    background-color: #ffffff;
    z-index: 7;
    /* Rectangular shape with a slight trapezoid top or shallow triangle to look like a pocket */
    clip-path: polygon(0 100%, 100% 100%, 100% 0, 50% 15%, 0 0);
    box-shadow:
        0 -5px 15px rgba(0, 0, 0, 0.1),
        inset 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: bottom center;
}

/* 3. Top Flap */
.envelope-flap-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 55%;
    /* Long enough to overlap the bottom flap and seal */
    background-color: #ffffff;
    transform-origin: top center;
    transition: transform 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 8;
    /* On top of everything */
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    /* Classic sharp triangle for top flap */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

/* Fold line effect logic (simplified for new structure) */
.envelope-flap-top::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.08));
    pointer-events: none;
}


/* Opening Animations */
.envelope.opening .envelope-flap-top {
    transform: rotateX(180deg);
    z-index: 1;
    /* Moves behind when open */
    opacity: 0.8;
}

.envelope.opening .envelope-flap-bottom {
    transform: translateY(100%);
    opacity: 0;
}

.envelope.opening .envelope-flap-left,
.envelope.opening .envelope-flap-right {
    opacity: 0;
    transition: opacity 0.5s ease 0.5s;
}

.envelope.opening .tap-instruction {
    opacity: 0;
}

/* Wax seal position update */
.envelope-seal {
    position: absolute;
    top: 55%;
    /* Tip of the triangle */
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    background: radial-gradient(circle at 30% 30%, #F8F6F0, var(--cream));
    border-radius: 50%;
    z-index: 11;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.25),
        inset 0 2px 8px rgba(255, 255, 255, 0.5),
        inset 0 -2px 8px rgba(0, 0, 0, 0.1);
    transition: opacity 0.5s ease;
    border: 3px solid rgba(159, 175, 142, 0.3);
}

/* Wax drip effect */
.envelope-seal::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, transparent 40%, rgba(0, 0, 0, 0.05) 100%);
}

.envelope.opening .envelope-seal {
    opacity: 0;
    pointer-events: none;
}

/* Botanical seal design */
.seal-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.seal-initials {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 600;
    color: var(--dark-sage);
    font-style: italic;
    margin-bottom: 8px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.seal-botanical {
    width: 50px;
    height: 50px;
    opacity: 0.4;
}

.seal-botanical svg {
    width: 100%;
    height: 100%;
    fill: var(--dark-sage);
}

.tap-instruction {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--cream);
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0.9;
    animation: pulse 2s ease-in-out infinite;
    z-index: 20;
    background: rgba(115, 132, 104, 0.6);
    padding: 12px 24px;
    border-radius: 30px;
    backdrop-filter: blur(10px);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    pointer-events: none;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.7;
        transform: translateX(-50%) translateY(0);
    }

    50% {
        opacity: 1;
        transform: translateX(-50%) translateY(-8px);
    }
}

/* Main Content */
.main-content {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease 1.6s, visibility 0.8s ease 1.6s;
}

.main-content.visible {
    opacity: 1;
    visibility: visible;
}

/* Hero Section with Video */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cream);
    overflow: visible;
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg,
            rgba(159, 175, 142, 0.15) 0%,
            rgba(245, 243, 237, 0.4) 50%,
            rgba(159, 175, 142, 0.15) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 2rem;
    animation: fadeInUp 1.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.decorative-line {
    width: 80px;
    height: 1px;
    background: var(--gold);
    margin: 0 auto 1.5rem;
    opacity: 0.7;
}

.hero-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: white;
    margin-bottom: 1rem;
    font-weight: 300;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.hero-names {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 10vw, 7rem);
    font-weight: 400;
    color: white;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-style: italic;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.5);
}

.ampersand {
    font-size: clamp(2.5rem, 8vw, 5rem);
    color: var(--gold);
    margin: 0 0.5rem;
}

.hero-date {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: white;
    margin-top: 2rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.floral-ornament {
    margin: 2rem auto;
    font-size: 2rem;
    color: white;
    opacity: 0.8;
}

/* Sections */
.section {
    padding: clamp(3rem, 8vw, 6rem) 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--dark-text);
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 400;
    font-style: italic;
}

.section-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    text-align: center;
    color: var(--dark-sage);
    margin-bottom: 3rem;
    letter-spacing: 1px;
    font-weight: 300;
}

/* Countdown */
.countdown-container {
    background-image: url('imagenes/carta2.jpg');
    background-size: cover;
    background-position: center;
    padding: 4rem 2rem;
    position: relative;
}

.countdown-container .section-title {
    color: var(--cream);
    font-weight: 700;
}

.countdown-container .section-subtitle {
    color: var(--cream);
    font-weight: 600;
}

.countdown-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.countdown-item {
    text-align: center;
    padding: 2rem 1rem;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(61, 68, 54, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.countdown-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px var(--shadow);
}

.countdown-number {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    font-weight: 700;
    color: white;
    line-height: 1;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.countdown-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: white;
    font-weight: 500;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

/* Location Section */
.location-section {
    background: linear-gradient(135deg, #E8EBE4 0%, #F0F3ED 50%, #E8EBE4 100%);
    position: relative;
    overflow: visible;
    padding-top: 5rem;
}

.location-section .section-title {
    color: var(--dark-sage);
    font-weight: 700;
    margin-bottom: 1rem;
}

.location-section .section-subtitle {
    color: var(--sage-green);
    font-weight: 500;
    margin-bottom: 3rem;
}

.map-container {
    width: 100%;
    height: 450px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow:
        0 12px 48px rgba(115, 132, 104, 0.15),
        0 0 1px rgba(115, 132, 104, 0.1);
    margin-top: 2.5rem;
    border: 1px solid rgba(159, 175, 142, 0.2);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.location-info {
    background: linear-gradient(135deg, rgba(200, 213, 187, 0.25) 0%, rgba(159, 175, 142, 0.15) 100%);
    padding: 3rem 2.5rem;
    border-radius: 20px;
    margin-top: 3rem;
    text-align: center;
    box-shadow:
        0 8px 32px rgba(115, 132, 104, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(159, 175, 142, 0.3);
    backdrop-filter: blur(10px);
}

.location-name {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--dark-sage);
    margin-bottom: 1.5rem;
    font-weight: 700;
    font-style: italic;
}

.location-address {
    font-family: 'Montserrat', sans-serif;
    color: var(--dark-text);
    font-size: 16px;
    line-height: 2;
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* Dress Code Section */
.dress-code-section {
    background: var(--cream);
    position: relative;
    padding-top: 5rem;
}

.dress-code-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.dress-code-item {
    text-align: center;
    padding: 3rem 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(115, 132, 104, 0.08);
    border: 1px solid rgba(159, 175, 142, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.dress-code-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(115, 132, 104, 0.2);
    border-color: var(--gold);
}

.dress-code-icon-container {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-dress-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--light-sage) 0%, var(--sage-green) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.2rem;
    box-shadow: 0 8px 25px rgba(159, 175, 142, 0.4);
    transition: transform 0.3s ease;
    z-index: 2;
}

.dress-code-item:hover .main-dress-icon {
    transform: scale(1.1);
}

.symbol-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 35px;
    height: 35px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-sage);
    font-size: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--light-sage);
    z-index: 3;
}

.dress-code-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--dark-sage);
    margin-bottom: 1rem;
    font-weight: 700;
}

.dress-code-desc {
    font-family: 'Montserrat', sans-serif;
    color: var(--dark-text);
    font-size: 15px;
    line-height: 1.6;
    font-weight: 400;
}

.dress-code-desc strong {
    display: block;
    margin-top: 0.8rem;
    color: var(--gold);
    font-weight: 600;
    font-style: italic;
}

/* RSVP Section */
.rsvp-section {
    background: var(--cream);
    position: relative;
    padding-top: 5rem;
}

.rsvp-button {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: var(--dark-sage);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px var(--shadow);
    margin-top: 2rem;
}

.rsvp-button:hover {
    background: var(--sage-green);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px var(--shadow);
}

.rsvp-deadline {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    color: var(--dark-text);
    margin-top: 1.5rem;
    font-weight: 300;
    opacity: 0.8;
}

/* Footer */
footer {
    background: var(--dark-sage);
    color: white;
    text-align: center;
    padding: 3rem 2rem;
    position: relative;
    margin-top: 5rem;
}

footer::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    right: 0;
    height: 40px;
    background: var(--cream);
    clip-path: polygon(0 0%, 1% 15%, 2% 8%, 3% 20%, 4% 12%, 5% 18%, 6% 10%, 7% 15%, 8% 8%, 9% 22%, 10% 12%, 11% 20%, 12% 8%, 13% 18%, 14% 10%, 15% 15%, 16% 8%, 17% 20%, 18% 12%, 19% 18%, 20% 8%, 21% 15%, 22% 12%, 23% 20%, 24% 8%, 25% 18%, 26% 10%, 27% 15%, 28% 8%, 29% 22%, 30% 12%, 31% 20%, 32% 8%, 33% 18%, 34% 10%, 35% 15%, 36% 8%, 37% 20%, 38% 12%, 39% 18%, 40% 8%, 41% 15%, 42% 12%, 43% 20%, 44% 8%, 45% 18%, 46% 10%, 47% 15%, 48% 8%, 49% 22%, 50% 12%, 51% 20%, 52% 8%, 53% 18%, 54% 10%, 55% 15%, 56% 8%, 57% 20%, 58% 12%, 59% 18%, 60% 8%, 61% 15%, 62% 12%, 63% 20%, 64% 8%, 65% 18%, 66% 10%, 67% 15%, 68% 8%, 69% 20%, 70% 12%, 71% 18%, 72% 8%, 73% 15%, 74% 12%, 75% 20%, 76% 8%, 77% 18%, 78% 10%, 79% 15%, 80% 8%, 81% 20%, 82% 12%, 83% 18%, 84% 8%, 85% 15%, 86% 12%, 87% 20%, 88% 8%, 89% 18%, 90% 10%, 91% 15%, 92% 8%, 93% 20%, 94% 12%, 95% 18%, 96% 8%, 97% 15%, 98% 12%, 99% 20%, 100% 8%, 100% 0%, 0 0%);
    pointer-events: none;
    z-index: 10;
}

.footer-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 1rem;
}

.footer-hashtag {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    letter-spacing: 2px;
    opacity: 0.9;
}

/* Scroll Animation */
.fade-in {
    opacity: 1;
    transform: none;
    transition: none;
}

.fade-in.visible {
    opacity: 1;
    transform: none;
}

/* Staggered animation for child elements */
.fade-in>* {
    opacity: 1;
    transform: none;
    transition: none;
}

.fade-in.visible>* {
    opacity: 1;
    transform: none;
}

/* Responsive */
@media (max-width: 768px) {
    .countdown-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .map-container {
        height: 350px;
    }

    .envelope-seal {
        width: 120px;
        height: 120px;
    }

    .seal-initials {
        font-size: 30px;
    }
}

/* Gallery Section */
.gallery-section {
    background: #fdfdfb; /* Slightly off-white for contrast */
    position: relative;
    padding-top: 8rem;
    padding-bottom: 8rem;
    overflow: visible; /* To allow floral overlap */
}

.torn-paper-divider {
    position: absolute;
    left: 0;
    width: 100%;
    height: 120px;
    z-index: 10;
    pointer-events: none;
}

.torn-paper-divider.top {
    top: -60px; /* Overlap with previous section */
}

.torn-paper-divider.bottom {
    bottom: -60px;
    transform: rotate(180deg);
}

.torn-paper-divider svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 3px 5px rgba(0,0,0,0.08));
}

.decorative-roses {
    position: absolute;
    top: -50px;
    right: -40px;
    width: 320px;
    height: auto;
    z-index: 15;
    opacity: 0.98;
    transform: rotate(5deg);
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.05));
    mix-blend-mode: multiply; /* Fixes white background blending */
    pointer-events: none;
}

/* Specific adjustment for bottom rose if needed, but the image shows corner roses usually at top-right */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    padding: 0 1rem;
    position: relative;
    z-index: 5;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    aspect-ratio: 1/1;
    border: 8px solid white;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.5s ease;
}

.gallery-item.large {
    grid-column: span 2;
    grid-row: span 2;
    aspect-ratio: auto;
}

.gallery-item.vertical {
    grid-row: span 2;
    aspect-ratio: 2/3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.gallery-item:hover {
    transform: scale(1.02) translateY(-5px) rotate(1deg);
    box-shadow: 0 20px 40px rgba(115, 132, 104, 0.25);
    z-index: 10;
    border-color: var(--cream);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 60%, rgba(159, 175, 142, 0.2));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .gallery-item.large {
        grid-column: span 2;
    }
}
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--light-sage);
    border-top-color: var(--dark-sage);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Wavy Couple Section */
.couple-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 !important;
    width: 100%;
    margin: 0;
}

.wavy-frame {
    position: relative;
    width: 100%;
    max-width: none !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
}

.wavy-frame-content {
    position: relative;
    width: 100%;
    min-height: 400px;
    overflow: hidden;
}

.wavy-frame-content img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.wavy-top,
.wavy-bottom {
    width: 100%;
    height: 30px;
    display: block;
    background: white;
}

.wavy-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(2rem, 8vw, 3.5rem);
    color: white;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
    text-align: center;
    z-index: 10;
}