@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Playfair+Display:wght@400;600;700&family=Montserrat:wght@400;500;600;700&display=swap');

.font-greatvibes {
    font-family: 'Great Vibes', cursive;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: #4a1532;
    background-color: #ffe5f0;
}

#cover-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height for mobile */
    z-index: 9999;
    background-color: #ffe5f0;
    background-image: url('/images/romantic-rose/bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    will-change: opacity, transform;
    overflow: hidden;
    overscroll-behavior: none;
    touch-action: none;
    -webkit-overflow-scrolling: none;
}

.main-content {
    position: relative;
    z-index: 1;
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    pointer-events: none;
}

.main-content.active {
    opacity: 1;
    pointer-events: auto;
}

/* Prevent body scroll when cover is active */
body.cover-active {
    position: fixed;
    inset: 0;
    width: 100%;
    max-width: 100vw;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    overscroll-behavior: none;
    touch-action: none;
    -webkit-overflow-scrolling: none;
}

/* Hide root scrollbar accurately while cover is active */
html.cover-active-root {
    overflow: hidden;
    scrollbar-width: none;
}

html.cover-active-root::-webkit-scrollbar {
    width: 0;
    height: 0;
}

/* Prevent horizontal scroll on all containers */
* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.section,
.content-wrapper,
.content-container,
.main-content {
    overflow-x: hidden;
    max-width: 100%;
}

.fade-out {
    opacity: 0 !important;
    visibility: hidden;
    transition: opacity 0.8s ease-out, visibility 0.8s;
    pointer-events: none;
}

/* Removed malformed selector and fixed CSS error */

#opening-section .arch-background {
    display: none;
}

.bg-soft {
    background-color: #ffe5f0;
    background-image: url('/images/romantic-rose/bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Fixed background for desktop only (mobile has issues with fixed) */
@media (min-width: 768px) {
    .bg-soft {
        background-attachment: fixed;
    }
    #cover-section {
        background-attachment: fixed;
    }
}

.text-greendark {
    color: #d6336c;
}

.bg-gold {
    background-color: #ff8fb1;
}

.content-wrapper {
    width: 100%;
    max-width: none;
    margin: 0;
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex: 1;
}

.arch-background {
    position: fixed;
    top: 38%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 90%;
    z-index: 0;
    object-fit: fill;
    max-width: none;
}

@media (min-width: 640px) {
    .arch-background {
        width: 95%;
        height: 90vh;
        max-width: 2000px;
    }
}

.content-container {
    position: relative;
    z-index: 1;
    text-align: center;
    width: 100%;
    max-width: 40rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
}

@media (min-width: 768px) {
    #cover-section .content-wrapper {
        max-width: 480px;
        margin: 0 auto;
    }

    #cover-section .arch-background {
        max-width: 480px;
        left: 50%;
        transform: translateX(-50%);
    }

    #cover-section .floral-ornament {
        max-width: 480px;
        left: 50%;
        transform: translateX(-50%);
    }
}

/* Button animation styles */
.btn-undangan {
    max-width: 300px;
    background: linear-gradient(135deg, #b3195b 0%, #ff6fcb 50%, #b3195b 100%);
    background-size: 200% 100%;
    border: 2px solid rgba(255, 182, 230, 0.8);
    margin-top: 3.5rem;
    margin-bottom: 2rem;
    padding: 14px 36px;
    color: #ffffff;
    border-radius: 999px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 18px 45px rgba(179, 25, 91, 0.35),
        0 10px 22px rgba(230, 213, 163, 0.24),
        inset 0 0 0 1px rgba(255, 255, 255, 0.22);
    animation: subtle-pulse 2s infinite;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-shadow: 0 10px 20px rgba(74, 21, 50, 0.22);
}

.btn-undangan:hover {
    background-position: 100% 0;
    transform: translateY(-3px);
    box-shadow:
        0 22px 55px rgba(179, 25, 91, 0.42),
        0 14px 26px rgba(230, 213, 163, 0.34),
        inset 0 0 0 1px rgba(255, 255, 255, 0.28);
    border-color: rgba(230, 213, 163, 0.6);
}

.btn-undangan:active {
    transform: translateY(-1px) scale(0.98);
}

.btn-undangan::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent,
            rgba(255, 255, 255, 0.3),
            transparent);
    transform: translateX(-100%);
    transition: none;
}

.btn-undangan:hover::before {
    animation: shine 1.5s ease-out;
}

@keyframes shine {
    to {
        transform: translateX(100%);
    }
}

@keyframes subtle-pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }

    100% {
        transform: scale(1);
    }
}

.name-separator {
    font-size: 2rem;
    line-height: 1;
    margin: 0.75rem 0;
}

.names {
    font-size: 3rem;
    line-height: 1.1;
}

.guest-name {
    font-size: 1.15rem;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.subtitle-1 {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 2rem;
    font-weight: 400;
}

.subtitle-2 {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    font-weight: 400;
}

.location {
    font-size: 0.775rem;
    color: rgba(145, 35, 82, 0.8);
}

/* Add background image styles */
.bg-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transform: none !important;
    animation: none !important;
}

/* Adjust the content wrapper to be above the background */
.content-wrapper {
    position: relative;
    z-index: 1;
    background: transparent;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Ensure the arch is above the background but below content */
.arch-background {
    z-index: 2;
    /* filter: hue-rotate(330deg) saturate(1.1); */
}

/* Adjust content container to be above both background and arch */
.content-container {
    z-index: 3;
    position: relative;
    text-align: center;
    width: 100%;
    max-width: 40rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: auto;
    padding: 0;
}

/* Floral ornament styles */
.floral-ornament {
    position: fixed;
    z-index: 999;
    pointer-events: none;
    width: 200px;
    height: auto;
    /* filter: hue-rotate(330deg) saturate(1.1); */
}

/* Smooth floating animation for large floral bands on cover */
.floral-band-top {
    transform-origin: center top;
}

.floral-band-bottom-left,
.floral-band-bottom-right {
    transform-origin: center bottom;
}

@media (min-width: 768px) {
    .floral-ornament {
        width: 340px !important;
        position: fixed;
    }

    .floral-top-left {
        top: 140px;
        left: calc(50% - 360px);
    }

    .floral-top-right {
        top: 140px;
        right: calc(50% - 240px) !important;
    }

    .floral-bottom-left {
        bottom: 140px;
        left: calc(50% - 240px) !important;
        transform: translateY(0) !important;
        animation: slide-left 8s ease-in-out infinite !important;
    }

    .floral-bottom-right {
        bottom: 140px;
        right: calc(50% - 240px) !important;
        width: 300px !important;
        height: auto !important;
        transform: translateX(0) !important;
    }
}

@media (min-width: 1024px) {
    .floral-ornament {
        width: 340px !important;
        position: fixed;
    }

    .floral-top-left {
        top: 140px;
        left: calc(50% - 360px);
    }

    .floral-top-right {
        top: 140px;
        right: calc(50% - 240px) !important;
    }

    .floral-bottom-left {
        bottom: 140px;
        left: calc(50% - 240px) !important;
        transform: translateY(0) !important;
        animation: slide-left 8s ease-in-out infinite !important;
    }

    .floral-bottom-right {
        bottom: 140px;
        right: calc(50% - 240px) !important;
        width: 300px !important;
        height: auto !important;
        transform: translateX(0) !important;
    }
}

/* Floral ornament animations */
.floral-bottom-left {
    bottom: 140px;
    left: 0px;
    animation: slide-left 8s ease-in-out infinite;
    transform-origin: bottom left;
}

.floral-bottom-right {
    bottom: 140px;
    right: 0px;
    animation: slide-right 8s ease-in-out infinite;
    transform-origin: bottom right;
}

.floral-top-left {
    top: 0px;
    left: 0px;
    animation: slide-left 8s ease-in-out infinite;
    transform-origin: top left;
    /* opacity: 0.3; */
    width: 100px;
    height: auto;
}

.floral-top-right {
    top: 140px;
    right: 0px;
    animation: float-top-right 8s ease-in-out infinite;
    transform-origin: top right;
    /* opacity: 0.2; */
    width: 300px;
    height: auto;
}

@keyframes float-top-right {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.2;
    }

    50% {
        transform: translateY(-15px) rotate(2deg);
        opacity: 0.15;
    }

    100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.2;
    }
}

@keyframes slide-left {
    0% {
        transform: translateX(0) translateY(0);
    }

    25% {
        transform: translateX(-30px) translateY(-20px);
    }

    50% {
        transform: translateX(-50px) translateY(-10px);
    }

    75% {
        transform: translateX(-30px) translateY(-20px);
    }

    100% {
        transform: translateX(0) translateY(0);
    }
}

@keyframes slide-right {
    0% {
        transform: translateX(0) translateY(0);
    }

    25% {
        transform: translateX(30px) translateY(-20px);
    }

    50% {
        transform: translateX(50px) translateY(-10px);
    }

    75% {
        transform: translateX(30px) translateY(-20px);
    }

    100% {
        transform: translateX(0) translateY(0);
    }
}

@keyframes floral-float-top {
    0% {
        transform: translate3d(0, 0, 0);
    }

    50% {
        transform: translate3d(0, 12px, 0);
    }

    100% {
        transform: translate3d(0, 0, 0);
    }
}

@keyframes floral-float-bottom {
    0% {
        transform: translate3d(0, 0, 0);
    }

    50% {
        transform: translate3d(0, -12px, 0);
    }

    100% {
        transform: translate3d(0, 0, 0);
    }
}

@keyframes slide-top-right {
    0% {
        transform: translateX(0) translateY(0);
    }

    25% {
        transform: translateX(30px) translateY(20px);
    }

    50% {
        transform: translateX(50px) translateY(10px);
    }

    75% {
        transform: translateX(30px) translateY(20px);
    }

    100% {
        transform: translateX(0) translateY(0);
    }
}

@media (max-width: 640px) {
    .floral-ornament {
        width: 350px;
    }

    .floral-bottom-left {
        bottom: -10px;
        left: 0px;
    }

    .floral-bottom-right {
        bottom: -10px;
        right: 0px;
    }

    .floral-top-right {
        top: -10px;
        right: 0px;
    }

    @keyframes slide-top-right {
        0% {
            transform: translateX(0) translateY(0);
        }

        25% {
            transform: translateX(15px) translateY(10px);
        }

        50% {
            transform: translateX(25px) translateY(5px);
        }

        75% {
            transform: translateX(15px) translateY(10px);
        }

        100% {
            transform: translateX(0) translateY(0);
        }
    }

    @keyframes slide-left {
        0% {
            transform: translateX(0) translateY(0);
        }

        25% {
            transform: translateX(-15px) translateY(-10px);
        }

        50% {
            transform: translateX(-25px) translateY(-5px);
        }

        75% {
            transform: translateX(-15px) translateY(-10px);
        }

        100% {
            transform: translateX(0) translateY(0);
        }
    }

    @keyframes slide-right {
        0% {
            transform: translateX(0) translateY(0);
        }

        25% {
            transform: translateX(15px) translateY(-10px);
        }

        50% {
            transform: translateX(25px) translateY(-5px);
        }

        75% {
            transform: translateX(15px) translateY(-10px);
        }

        100% {
            transform: translateX(0) translateY(0);
        }
    }
}

/* Ensure the content container doesn't overlap with ornaments */
.content-container {
    padding-bottom: 100px;
    /* Add padding to prevent overlap */
}

/* Global section styles */
.section {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.content-wrapper {
    width: 100%;
    height: 100vh;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.content-container {
    width: 100%;
    max-width: 40rem;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: auto;
}

/* Section specific adjustments */
#opening-section .content-container,
#welcome-section .content-container,
#couple-section .content-container,
#akad-section .content-container,
#quotes-section .content-container,
#rsvp-section .content-container {
    padding: 2rem;
    height: auto;
    min-height: 0;
    margin: 0 auto;
}

.couple-section,
.quotes-section,
.rsvp-section,
.opening-text {
    margin: 0;
    height: auto;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease-out;
}

.couple-section.show,
.quotes-section.show,
.rsvp-section.show,
.opening-text.show {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

@media (min-width: 768px) {
    .content-container {
        padding: 4rem 2rem;
    }
}

/* Button animation styles (secondary definition, keep in sync with main) */
.btn-undangan {
    max-width: 300px;
    background: linear-gradient(135deg, #b3195b 0%, #ff6fcb 50%, #b3195b 100%);
    background-size: 200% 100%;
    border: 2px solid rgba(255, 182, 230, 0.8);
    margin-top: 3.5rem;
    margin-bottom: 2rem;
    padding: 14px 36px;
    color: #ffffff;
    border-radius: 999px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(220, 38, 120, 0.35);
    animation: subtle-pulse 2s infinite;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.btn-undangan:hover {
    background-position: 100% 0;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(201, 169, 98, 0.6);
    border-color: rgba(230, 213, 163, 0.6);
}

.btn-undangan:active {
    transform: translateY(-1px) scale(0.98);
}

.btn-undangan::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent,
            rgba(255, 255, 255, 0.3),
            transparent);
    transform: translateX(-100%);
    transition: none;
}

.btn-undangan:hover::before {
    animation: shine 1.5s ease-out;
}

@keyframes shine {
    to {
        transform: translateX(100%);
    }
}

@keyframes subtle-pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }

    100% {
        transform: scale(1);
    }
}

.name-separator {
    font-size: 2rem;
    line-height: 1;
    margin: 0.75rem 0;
}

.names {
    font-size: 3rem;
    line-height: 1.1;
}

.guest-name {
    font-size: 1.15rem;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.subtitle-1 {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 2rem;
    font-weight: 400;
}

.subtitle-2 {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    font-weight: 400;
}

.location {
    font-size: 0.775rem;
    color: rgba(230, 213, 163, 0.8);
}

/* Add background image styles */
.bg-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transform: none !important;
    animation: none !important;
}

/* Adjust the content wrapper to be above the background */
.content-wrapper {
    position: relative;
    z-index: 1;
    background: transparent;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Ensure the arch is above the background but below content */
.arch-background {
    z-index: 2;
}

/* Adjust content container to be above both background and arch */
.content-container {
    z-index: 3;
    position: relative;
    text-align: center;
    width: 100%;
    max-width: 40rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: auto;
    padding: 0;
}

/* Floral ornament styles */
.floral-ornament {
    position: fixed;
    z-index: 999;
    pointer-events: none;
    width: 200px;
    height: auto;
}

@media (min-width: 768px) {
    .floral-ornament {
        width: 340px !important;
        position: fixed;
    }

    .floral-top-left {
        top: 0;
        left: calc(50% - 360px);
    }

    .floral-top-right {
        top: 0;
        right: calc(50% - 240px) !important;
    }

    .floral-bottom-left {
        bottom: 0;
        left: calc(50% - 240px) !important;
        transform: translateY(0) !important;
        animation: slide-left 8s ease-in-out infinite !important;
    }

    .floral-bottom-right {
        bottom: 0;
        right: calc(50% - 240px) !important;
        width: 300px !important;
        height: auto !important;
        transform: translateX(0) !important;
    }
}

@media (min-width: 1024px) {
    .floral-ornament {
        width: 340px !important;
        position: fixed;
    }

    .floral-top-left {
        top: 0;
        left: calc(50% - 360px);
    }

    .floral-top-right {
        top: 0;
        right: calc(50% - 240px) !important;
    }

    .floral-bottom-left {
        bottom: 0;
        left: calc(50% - 240px) !important;
        transform: translateY(0) !important;
        animation: slide-left 8s ease-in-out infinite !important;
    }

    .floral-bottom-right {
        bottom: 0;
        right: calc(50% - 240px) !important;
        width: 300px !important;
        height: auto !important;
        transform: translateX(0) !important;
    }
}

/* Floral ornament animations */
.floral-bottom-left {
    bottom: 0px;
    left: 0px;
    animation: slide-left 8s ease-in-out infinite;
    transform-origin: bottom left;
}

.floral-bottom-right {
    bottom: 0px;
    right: 0px;
    animation: slide-right 8s ease-in-out infinite;
    transform-origin: bottom right;
}

.floral-top-left {
    top: 0px;
    left: 0px;
    animation: slide-left 8s ease-in-out infinite;
    transform-origin: top left;
    opacity: 0.3;
    width: 300px;
    height: auto;
}

.floral-top-right {
    top: 0px;
    right: 0px;
    animation: float-top-right 8s ease-in-out infinite;
    transform-origin: top right;
    opacity: 0.2;
    width: 300px;
    height: auto;
}

@keyframes float-top-right {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.2;
    }

    50% {
        transform: translateY(-15px) rotate(2deg);
        opacity: 0.15;
    }

    100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.2;
    }
}

@keyframes slide-left {
    0% {
        transform: translateX(0) translateY(0);
    }

    25% {
        transform: translateX(-30px) translateY(-20px);
    }

    50% {
        transform: translateX(-50px) translateY(-10px);
    }

    75% {
        transform: translateX(-30px) translateY(-20px);
    }

    100% {
        transform: translateX(0) translateY(0);
    }
}

@keyframes slide-right {
    0% {
        transform: translateX(0) translateY(0);
    }

    25% {
        transform: translateX(30px) translateY(-20px);
    }

    50% {
        transform: translateX(50px) translateY(-10px);
    }

    75% {
        transform: translateX(30px) translateY(-20px);
    }

    100% {
        transform: translateX(0) translateY(0);
    }
}

@keyframes slide-top-right {
    0% {
        transform: translateX(0) translateY(0);
    }

    25% {
        transform: translateX(30px) translateY(20px);
    }

    50% {
        transform: translateX(50px) translateY(10px);
    }

    75% {
        transform: translateX(30px) translateY(20px);
    }

    100% {
        transform: translateX(0) translateY(0);
    }
}

@media (max-width: 640px) {
    .floral-ornament {
        width: 350px;
    }

    .floral-bottom-left {
        bottom: -10px;
        left: 0px;
    }

    .floral-bottom-right {
        bottom: -10px;
        right: 0px;
    }

    .floral-top-right {
        top: -10px;
        right: 0px;
    }

    @keyframes slide-top-right {
        0% {
            transform: translateX(0) translateY(0);
        }

        25% {
            transform: translateX(15px) translateY(10px);
        }

        50% {
            transform: translateX(25px) translateY(5px);
        }

        75% {
            transform: translateX(15px) translateY(10px);
        }

        100% {
            transform: translateX(0) translateY(0);
        }
    }

    @keyframes slide-left {
        0% {
            transform: translateX(0) translateY(0);
        }

        25% {
            transform: translateX(-15px) translateY(-10px);
        }

        50% {
            transform: translateX(-25px) translateY(-5px);
        }

        75% {
            transform: translateX(-15px) translateY(-10px);
        }

        100% {
            transform: translateX(0) translateY(0);
        }
    }

    @keyframes slide-right {
        0% {
            transform: translateX(0) translateY(0);
        }

        25% {
            transform: translateX(15px) translateY(-10px);
        }

        50% {
            transform: translateX(25px) translateY(-5px);
        }

        75% {
            transform: translateX(15px) translateY(-10px);
        }

        100% {
            transform: translateX(0) translateY(0);
        }
    }
}

/* Ensure the content container doesn't overlap with ornaments */
.content-container {
    padding-bottom: 100px;
    /* Add padding to prevent overlap */
}

/* Section styles */
.section {
    min-height: 100vh;
    width: 100%;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.8s ease-in-out;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section.active {
    opacity: 1;
    visibility: visible;
}

#cover-section {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
}

.main-content {
    position: relative;
    z-index: 5;
    opacity: 0;
    visibility: visible;
    transition: opacity 0.8s ease-in-out;
}

.main-content.active {
    opacity: 1;
    visibility: visible;
    display: block;
}

#opening-section,
#akad-section,
#quotes-section {
    position: relative;
    /* background: #fff; */
}

/* Content styles */
.opening-text {
    text-align: center;
    max-width: 600px;
    line-height: 1.8;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
    position: relative;
    z-index: 2;
    margin: auto;
    padding: 20px;
}

.opening-text.show {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.opening-text .arabic {
    font-size: 14px;
    color: #b3195b;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.opening-text .welcome-text {
    font-size: 12px;
    color: #4a1532;
    line-height: 2;
    margin-bottom: 2rem;
    letter-spacing: 0.02em;
}

/* Arch background styles */
#cover-section .arch-background {
    display: block;
    position: fixed;
    top: 38%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 90%;
    max-width: none;
    object-fit: fill;
}

#opening-section {
    padding: 0;
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

#opening-section .arch-background {
    display: none;
}

#opening-section .content-container {
    position: relative;
    z-index: 10;
    margin: 0;
    padding: 0;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#akad-section .arch-background,
#quotes-section .arch-background {
    display: none;
}

#opening-section .names {
    font-size: 4rem;
    line-height: 1.1;
    margin: 0.5rem 0;
}

#opening-section .btn-undangan {
    max-width: 300px;
    background: linear-gradient(135deg, #b3195b 0%, #ff6fcb 50%, #b3195b 100%);
    background-size: 200% 100%;
    border: 2px solid rgba(255, 182, 230, 0.8);
    color: #ffffff;
    margin-top: 3.5rem;
    margin-bottom: 2rem;
}

#opening-section .name-wrapper {
    margin-bottom: 2rem;
}

#opening-section .name-separator {
    margin: 1.5rem 0;
    font-size: 2.5rem;
}

/* Couple section styles */
.couple-section {
    text-align: center;
    max-width: 600px;
    margin: 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.couple-section.show {
    opacity: 1;
    transform: translateY(0);
}

.couple-section .title {
    font-size: 1.5rem;
    font-weight: 500;
    color: #b3195b;
    margin-bottom: 3rem;
    letter-spacing: 0.1em;
}

.couple-section .couple-name {
    font-size: 2.8rem;
    color: #b3195b;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: none;
    font-weight: 400;
    font-family: 'Alex Brush', cursive;
}

.couple-section .couple-name .name-text {
    font-family: 'Dancing Script', cursive;
    font-size: 2.2rem;
    font-weight: 600;
}

.couple-section .couple-name .degree-text {
    font-family: 'Great Vibes', cursive;
    font-size: 2rem;
    font-weight: 400;
    color: #ff6fcb;
}

.couple-section .couple-title {
    font-size: 0.875rem;
    color: #b3195b;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

.couple-section .couple-parents {
    font-size: 0.875rem;
    color: #4a1532;
    margin-bottom: 2rem;
    line-height: 1.8;
    letter-spacing: 0.02em;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    margin-bottom: 3rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border: 2px solid #b3195b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b3195b;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 2px 8px rgba(179, 25, 91, 0.1);
}

.social-link:hover {
    background-color: #b3195b;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(179, 25, 91, 0.2);
}

.couple-separator {
    width: 100px;
    margin: 3rem auto;
    opacity: 0.5;
}

/* Akad & Resepsi styles */
#akad-section .max-w-xl {
    position: relative;
    padding: 2rem;
}

#akad-section .font-greatvibes {
    text-shadow: none;
    color: #b3195b;
}

#akad-section img.w-8 {
    filter: invert(48%) sepia(12%) saturate(891%) hue-rotate(64deg) brightness(96%) contrast(88%);
}

/* Quotes section styles */
.quotes-section {
    text-align: center;
    max-width: 600px;
    margin: 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.quotes-section.show {
    opacity: 1;
    transform: translateY(0);
}

.quotes-section .quotes-text {
    font-size: 16px;
    color: #4a1532;
    line-height: 2;
    margin-bottom: 2rem;
    font-style: italic;
    letter-spacing: 0.02em;
    text-shadow: none;
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
    animation: none;
}

.quotes-section .quotes-source {
    font-size: 1.1rem;
    color: #b3195b;
    font-weight: 500;
    letter-spacing: 0.1em;
}

/* RSVP section styles */
.rsvp-section {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding-top: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.rsvp-section.show {
    opacity: 1;
    transform: translateY(0);
}

.countdown-item {
    text-align: center;
}

.countdown-item .countdown-bg {
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(107, 127, 94, 0.15);
    border: 2px solid rgba(107, 127, 94, 0.1);
}

.countdown-item .countdown-bg:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(107, 127, 94, 0.25);
}

/* Main content styles */
.main-content {
    display: none;
    width: 100%;
}

.main-content.active {
    display: block;
}

/* RSVP section styles */
.rsvp-section {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding-top: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.rsvp-section.show {
    opacity: 1;
    transform: translateY(0);
}

.countdown-item {
    text-align: center;
}

.countdown-item span {
    font-family: sans-serif;
}

.countdown-item .text-2xl {
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.countdown-item .text-sm {
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    font-weight: 500;
}

/* Music control styles */
.music-control {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: white;
    border: 2px solid #b3195b;
    color: #b3195b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(179, 25, 91, 0.15);
    transition: all 0.3s ease;
}

.music-control:hover {
    background: #b3195b;
    color: white;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(179, 25, 91, 0.25);
}

.music-control.playing {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

#cover-section.fade-out {
    opacity: 0;
    transform: scale(1.1);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out, visibility 0s 0.8s;
}

.main-content.fade-in {
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.8s ease-out 0.3s, transform 0.8s ease-out 0.3s;
}

/* Update floral ornament styles in main content */
.main-content.active .floral-ornament {
    position: fixed !important;
    z-index: 999;
    pointer-events: none;
}

.main-content.active .floral-top-left {
    position: fixed;
    top: 0;
    left: 0;
    opacity: 0.3;
    width: 300px;
    height: auto;
    animation: slide-left 8s ease-in-out infinite;
}

.main-content .floral-bottom-left {
    bottom: 0;
    left: 0;
}

.main-content .floral-bottom-right {
    bottom: 0;
    right: 0;
}

#welcome-section {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    min-height: 100vh;
    width: 100%;
    position: relative;
    z-index: 1;
}

.main-content.active #welcome-section {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

.opening-text {
    opacity: 1;
    visibility: visible;
    transform: none !important;
}

.opening-text.show {
    opacity: 1;
    visibility: visible;
    transform: none !important;
}


::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #F5F3EE;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #6B7F5E 0%, #8B9F7E 100%);
    border-radius: 10px;
    border: 2px solid #F5F3EE;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #5A6F4E 0%, #6B7F5E 100%);
}

/* Hide scrollbar for messages section */
.hide-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.hide-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.hide-scrollbar::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #6B7F5E 0%, #8B9F7E 100%);
    border-radius: 10px;
}

/* Additional decorative elements */
.decorative-leaves {
    opacity: 0.15;
    pointer-events: none;
}

/* Text accent for romantic rose theme */
.text-sage-dark {
    color: #b3195b;
}

.text-sage {
    color: #b3195b;
}

.text-sage-light {
    color: #ff6fcb;
}

/* Border colors for romantic rose theme */
.border-sage {
    border-color: #b3195b;
}

.snowflakes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.snowflakes.active {
    opacity: 1;
}

.snowflake {
    position: absolute;
    top: -10px;
    color: #ff6fcb;
    font-size: 1.4em;
    font-family: Arial, sans-serif;
    text-shadow: 0 0 4px rgba(255, 255, 255, 0.6);
    animation-name: snowfall;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

@keyframes snowfall {
    0% {
        transform: translateY(0px) translateX(0px) rotate(0deg);
    }
    100% {
        transform: translateY(100vh) translateX(var(--snowflake-drift)) rotate(360deg);
    }
}

.snowflake:nth-child(1) { left: 5%; animation-duration: 10s; animation-delay: 0s; --snowflake-drift: -30px; }
.snowflake:nth-child(2) { left: 12%; animation-duration: 12s; animation-delay: 1s; --snowflake-drift: 20px; font-size: 0.8em; }
.snowflake:nth-child(3) { left: 20%; animation-duration: 8s; animation-delay: 2s; --snowflake-drift: -10px; font-size: 1.2em; }
.snowflake:nth-child(4) { left: 28%; animation-duration: 14s; animation-delay: 3s; --snowflake-drift: 40px; }
.snowflake:nth-child(5) { left: 35%; animation-duration: 11s; animation-delay: 4s; --snowflake-drift: -50px; font-size: 0.9em; }
.snowflake:nth-child(6) { left: 43%; animation-duration: 9s; animation-delay: 5s; --snowflake-drift: 25px; font-size: 1.1em; }
.snowflake:nth-child(7) { left: 50%; animation-duration: 13s; animation-delay: 0s; --snowflake-drift: -15px; }
.snowflake:nth-child(8) { left: 58%; animation-duration: 10s; animation-delay: 1s; --snowflake-drift: 35px; font-size: 0.85em; }
.snowflake:nth-child(9) { left: 65%; animation-duration: 12s; animation-delay: 2s; --snowflake-drift: -25px; font-size: 1.15em; }
.snowflake:nth-child(10) { left: 72%; animation-duration: 11s; animation-delay: 3s; --snowflake-drift: 15px; }
.snowflake:nth-child(11) { left: 80%; animation-duration: 9s; animation-delay: 4s; --snowflake-drift: -45px; font-size: 0.95em; }
.snowflake:nth-child(12) { left: 88%; animation-duration: 13s; animation-delay: 5s; --snowflake-drift: 30px; }
.snowflake:nth-child(13) { left: 95%; animation-duration: 10s; animation-delay: 0s; --snowflake-drift: -20px; font-size: 1.05em; }
.snowflake:nth-child(14) { left: 15%; animation-duration: 14s; animation-delay: 2s; --snowflake-drift: 25px; font-size: 0.75em; }
.snowflake:nth-child(15) { left: 40%; animation-duration: 8s; animation-delay: 4s; --snowflake-drift: -35px; font-size: 1.25em; }
.snowflake:nth-child(16) { left: 60%; animation-duration: 12s; animation-delay: 1s; --snowflake-drift: 40px; }
.snowflake:nth-child(17) { left: 75%; animation-duration: 11s; animation-delay: 3s; --snowflake-drift: -10px; font-size: 0.9em; }
.snowflake:nth-child(18) { left: 85%; animation-duration: 9s; animation-delay: 5s; --snowflake-drift: 20px; font-size: 1.1em; }
.snowflake:nth-child(19) { left: 25%; animation-duration: 13s; animation-delay: 0s; --snowflake-drift: -30px; }
.snowflake:nth-child(20) { left: 55%; animation-duration: 10s; animation-delay: 2s; --snowflake-drift: 35px; font-size: 0.85em; }

.border-sage-light {
    border-color: rgba(179, 25, 91, 0.3);
}

/* Background colors for romantic rose theme */
.bg-sage {
    background-color: #b3195b;
}

.bg-sage-light {
    background-color: rgba(179, 25, 91, 0.08);
}

/* Enhanced card styling for romantic rose theme */
.card-sage {
    background: white;
    border: 1px solid rgba(179, 25, 91, 0.2);
    box-shadow: 0 4px 15px rgba(179, 25, 91, 0.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.card-sage::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(107, 127, 94, 0.03) 0%, rgba(139, 159, 126, 0.06) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    border-radius: inherit;
    pointer-events: none;
}

.card-sage:hover {
    box-shadow: 0 12px 35px rgba(107, 127, 94, 0.2);
    transform: translateY(-8px) scale(1.01);
}

.card-sage:hover::before {
    opacity: 1;
}

/* Event cards with enhanced animations */
.event-card {
    position: relative;
    overflow: hidden;
}

.event-card .corner-decoration {
    transition: all 0.3s ease;
}

.event-card:hover .corner-decoration {
    width: 2rem !important;
    height: 2rem !important;
}

.event-card .icon-container {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.event-card:hover .icon-container {
    transform: scale(1.1) rotate(5deg);
}

/* Enhanced Countdown Timer */
.countdown-item .countdown-bg {
    position: relative;
    overflow: hidden;
}

.countdown-item .countdown-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 70%
    );
    animation: countdown-shimmer 3s infinite;
}

@keyframes countdown-shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.countdown-item .countdown-bg:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 8px 20px rgba(107, 127, 94, 0.3);
}

/* Pulse animation for countdown numbers */
@keyframes pulse-number {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.countdown-item span:first-child {
    display: inline-block;
    animation: pulse-number 2s ease-in-out infinite;
}

/* Enhanced Quote Section */
.quotes-section .bg-white\/80 {
    backdrop-filter: blur(10px);
}

.quotes-section .absolute.border-2 {
    animation: rotate-border 20s linear infinite;
}

@keyframes rotate-border {
    0% {
        transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(0deg);
    }
    100% {
        transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(360deg);
    }
}

/* Quote icon pulse */
.quotes-section .fa-quote-right {
    animation: quote-pulse 3s ease-in-out infinite;
}

@keyframes quote-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

/* Text reveal animation on scroll */
.quotes-text {
    background: linear-gradient(
        90deg,
        #ffffff 0%,
        #ffffff 40%,
        #ff6fcb 50%,
        #ffffff 60%,
        #ffffff 100%
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    animation: text-shimmer 5s ease-in-out infinite;
}

@keyframes text-shimmer {
    0%, 100% {
        background-position: 200% center;
    }
    50% {
        background-position: 0% center;
    }
}

/* Cover Background Florals - Very Subtle */
.cover-background-florals {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 4;
    overflow: hidden;
    will-change: opacity;
}

.cover-background-florals img {
    will-change: transform, opacity;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.cover-background-florals .floral-band-top {
    left: 50%;
    top: 0;
    width: 116% !important;
    max-width: none;
    height: auto !important;
    transform: translate3d(-50%, 0, 0) !important;
    transform-origin: top center;
    translate: 0 0;
    rotate: 0deg;
    animation: floral-top-float 15s ease-in-out infinite;
}

.cover-background-florals .floral-band-bottom-left,
.cover-background-florals .floral-band-bottom-right {
    bottom: max(0px, env(safe-area-inset-bottom, 0px));
    width: clamp(360px, 94vw, 700px) !important;
    max-width: none;
    height: auto !important;
}

.cover-background-florals .floral-band-bottom-left {
    left: 0;
    transform: translate3d(0, 0, 0) !important;
    transform-origin: bottom left;
    translate: 0 0;
    rotate: 0deg;
    animation: floral-bottom-left-float 16s ease-in-out infinite;
}

.cover-background-florals .floral-band-bottom-right {
    right: 0;
    left: auto;
    transform: translate3d(0, 0, 0) !important;
    transform-origin: bottom right;
    translate: 0 0;
    rotate: 0deg;
    animation: floral-bottom-right-float 16s ease-in-out infinite;
}

@media (min-width: 768px) {
    .cover-background-florals .floral-band-top,
    .cover-background-florals .floral-band-bottom-left,
    .cover-background-florals .floral-band-bottom-right {
        width: 104% !important;
    }
    .cover-background-florals .floral-band-bottom-left,
    .cover-background-florals .floral-band-bottom-right {
        width: clamp(500px, 52vw, 900px) !important;
    }
    .cover-background-florals .floral-band-bottom-left {
        transform: translate3d(0, 0, 0) !important;
    }
    .cover-background-florals .floral-band-bottom-right {
        transform: translate3d(0, 0, 0) !important;
    }
}

@media (min-width: 1024px) {
    .cover-background-florals .floral-band-bottom-left,
    .cover-background-florals .floral-band-bottom-right {
        width: clamp(380px, 34vw, 560px) !important;
        bottom: -12px;
    }
    .cover-background-florals .floral-band-bottom-left {
        left: -24px;
    }
    .cover-background-florals .floral-band-bottom-right {
        right: -24px;
    }
}

@media (max-width: 420px) {
    .cover-background-florals .floral-band-bottom-left,
    .cover-background-florals .floral-band-bottom-right {
        width: clamp(300px, 90vw, 520px) !important;
    }
    .cover-background-florals .floral-band-bottom-left {
        transform: translate3d(0, 0, 0) !important;
    }
    .cover-background-florals .floral-band-bottom-right {
        transform: translate3d(0, 0, 0) !important;
    }
}

.cover-foreground-florals {
    display: none;
}

@keyframes floral-top-float {
    0%, 100% {
        translate: 0 0;
        rotate: 0deg;
        opacity: 1;
    }
    50% {
        translate: 0 -8px;
        rotate: 0.8deg;
        opacity: 0.97;
    }
}

@keyframes floral-bottom-left-float {
    0%, 100% {
        translate: 0 0;
        rotate: 0deg;
        opacity: 1;
    }
    50% {
        translate: 0 -10px;
        rotate: -1deg;
        opacity: 0.97;
    }
}

@keyframes floral-bottom-right-float {
    0%, 100% {
        translate: 0 0;
        rotate: 0deg;
        opacity: 1;
    }
    50% {
        translate: 0 -10px;
        rotate: 1deg;
        opacity: 0.97;
    }
}

.cover-side-ornaments {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 6;
    overflow: hidden;
}

.cover-side-ornament {
    position: absolute;
    top: 58%;
    width: 220px;
    height: auto;
    opacity: 0.9;
    transform: translate3d(0, 0, 0);
    will-change: transform, opacity;
    filter: drop-shadow(0 14px 24px rgba(74, 21, 50, 0.18));
    mix-blend-mode: normal;
}

.cover-side-ornament.left {
    left: -140px;
    transform: translate3d(0, -50%, 0) rotate(-4deg);
}

.cover-side-ornament.right {
    right: -140px;
    transform: translate3d(0, -50%, 0) rotate(4deg);
}

@media (min-width: 768px) {
    .cover-side-ornament {
        width: 300px;
        top: 60%;
    }
    .cover-side-ornament.left {
        left: calc(50% - 430px);
    }
    .cover-side-ornament.right {
        right: calc(50% - 430px);
    }
}

@media (max-height: 740px) {
    .cover-side-ornament {
        top: 62%;
    }
}

#cover-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(900px 520px at 50% 35%, rgba(255, 255, 255, 0.68), rgba(255, 229, 240, 0.12) 60%, rgba(74, 21, 50, 0.16) 100%),
        linear-gradient(180deg, rgba(255, 229, 240, 0.12) 0%, rgba(74, 21, 50, 0.12) 100%);
    z-index: 0;
    pointer-events: none;
}

#cover-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.55) 0 1px, transparent 2px),
        radial-gradient(circle at 80% 16%, rgba(255, 255, 255, 0.35) 0 1px, transparent 2px),
        radial-gradient(circle at 62% 72%, rgba(255, 111, 203, 0.25) 0 1px, transparent 2px),
        radial-gradient(circle at 22% 78%, rgba(255, 111, 203, 0.18) 0 1px, transparent 2px);
    background-size: 220px 220px, 260px 260px, 240px 240px, 280px 280px;
    background-position: 0 0, 40px 20px, 10px 60px, 70px 90px;
    opacity: 0.7;
    mix-blend-mode: screen;
    z-index: 2;
    pointer-events: none;
    animation: cover-twinkle 9s ease-in-out infinite;
}

@keyframes cover-twinkle {
    0%, 100% {
        opacity: 0.55;
        transform: translate3d(0, 0, 0);
    }
    50% {
        opacity: 0.9;
        transform: translate3d(0, -6px, 0);
    }
}

.cover-sparkle-layer {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    opacity: 0.65;
    background-image:
        radial-gradient(circle at 25% 30%, rgba(255, 255, 255, 0.7) 0 1px, transparent 2px),
        radial-gradient(circle at 70% 26%, rgba(255, 255, 255, 0.35) 0 1px, transparent 2px),
        radial-gradient(circle at 50% 58%, rgba(255, 111, 203, 0.18) 0 1px, transparent 2px),
        radial-gradient(circle at 18% 64%, rgba(255, 111, 203, 0.16) 0 1px, transparent 2px);
    background-size: 180px 180px, 240px 240px, 220px 220px, 260px 260px;
    animation: cover-sparkle-drift 11s linear infinite;
}

@keyframes cover-sparkle-drift {
    0% { background-position: 0 0, 60px 20px, 20px 60px, 80px 90px; }
    100% { background-position: 160px 120px, 0px 140px, 180px 0px, 20px 220px; }
}

.cover-luxe-card {
    position: relative;
    background: radial-gradient(circle at top, rgba(255, 255, 255, 0.98) 0%, rgba(255, 250, 253, 0.97) 54%, rgba(255, 242, 248, 0.95) 100%);
    border: 1px solid rgba(179, 25, 91, 0.28);
    box-shadow:
        0 20px 56px rgba(74, 21, 50, 0.12),
        0 8px 20px rgba(179, 25, 91, 0.08),
        inset 0 0 0 1px rgba(255, 255, 255, 0.85),
        inset 0 0 0 10px rgba(255, 111, 203, 0.03);
    overflow: hidden;
}

.cover-luxe-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(140deg, rgba(230, 213, 163, 0.35), rgba(255, 111, 203, 0.18), rgba(179, 25, 91, 0.24));
    opacity: 0.5;
    filter: blur(11px);
    z-index: 0;
    pointer-events: none;
}

.cover-luxe-card::after {
    content: '';
    position: absolute;
    inset: 10px;
    border-radius: inherit;
    border: 1px solid rgba(179, 25, 91, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
    z-index: 0;
    pointer-events: none;
}

.cover-luxe-card-content {
    position: relative;
    z-index: 1;
}

.cover-luxe-ornament {
    position: absolute;
    width: 54px;
    height: 54px;
    opacity: 0.55;
    z-index: 1;
    pointer-events: none;
    filter: drop-shadow(0 10px 18px rgba(179, 25, 91, 0.22));
}

.cover-luxe-ornament.tl { top: 14px; left: 14px; transform: rotate(-8deg); }
.cover-luxe-ornament.tr { top: 14px; right: 14px; transform: rotate(8deg) scaleX(-1); }
.cover-luxe-ornament.bl { bottom: 14px; left: 14px; transform: rotate(188deg); }
.cover-luxe-ornament.br { bottom: 14px; right: 14px; transform: rotate(172deg) scaleX(-1); }

.cover-guest-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 247, 251, 0.9));
    border: 1px solid rgba(179, 25, 91, 0.18);
    box-shadow:
        0 16px 42px rgba(74, 21, 50, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.cover-guest-name {
    background: linear-gradient(120deg, #b3195b, #ff6fcb, #b3195b);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.cover-divider {
    height: 1px;
    width: 140px;
    margin: 0 auto;
    background: linear-gradient(90deg, transparent, rgba(255, 111, 203, 0.55), rgba(230, 213, 163, 0.75), rgba(255, 111, 203, 0.55), transparent);
    filter: drop-shadow(0 8px 12px rgba(179, 25, 91, 0.16));
}

.cover-mini-emblem {
    width: 54px;
    height: 54px;
    border-radius: 999px;
    background: radial-gradient(circle at top, rgba(255, 255, 255, 0.95), rgba(255, 229, 240, 0.92));
    border: 1px solid rgba(179, 25, 91, 0.25);
    box-shadow: 0 16px 44px rgba(74, 21, 50, 0.14), inset 0 0 0 1px rgba(255, 255, 255, 0.65);
}

/* Floating Decorations on Cover - Clean & Minimal */
.floating-decorations {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 3;
}

.floating-icon {
    position: absolute;
    animation: gentle-float 8s ease-in-out infinite;
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.cover-ambient-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
}

.ambient-shape {
    position: absolute;
    border-radius: 999px;
    opacity: 0.34;
    transform: translate3d(0, 0, 0);
    animation: ambient-drift var(--duration, 14s) ease-in-out infinite;
    animation-delay: var(--delay, 0s);
    will-change: transform, opacity;
    box-shadow: 0 8px 24px rgba(179, 25, 91, 0.12);
}

.ambient-shape.blossom {
    width: var(--size, 18px);
    height: var(--size, 18px);
    background:
        radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.95) 0 18%, transparent 19%),
        radial-gradient(circle at 18% 50%, rgba(255, 111, 203, 0.58) 0 22%, transparent 23%),
        radial-gradient(circle at 82% 50%, rgba(255, 111, 203, 0.58) 0 22%, transparent 23%),
        radial-gradient(circle at 50% 82%, rgba(255, 182, 221, 0.56) 0 22%, transparent 23%),
        radial-gradient(circle at 50% 50%, rgba(230, 213, 163, 0.78) 0 18%, transparent 19%);
}

.ambient-shape.pearl {
    width: var(--size, 14px);
    height: var(--size, 14px);
    background: radial-gradient(circle at 28% 25%, rgba(255, 255, 255, 0.95), rgba(255, 229, 240, 0.82) 55%, rgba(255, 111, 203, 0.42) 100%);
}

.ambient-shape.leaf {
    width: calc(var(--size, 16px) * 1.4);
    height: var(--size, 16px);
    border-radius: 80% 20% 75% 25% / 70% 30% 70% 30%;
    background: linear-gradient(135deg, rgba(180, 213, 191, 0.82), rgba(120, 171, 137, 0.5));
    transform: rotate(-14deg);
}

@keyframes ambient-drift {
    0%, 100% {
        transform: translate3d(0, 0, 0) rotate(0deg);
        opacity: 0.22;
    }
    50% {
        transform: translate3d(var(--drift-x, 7px), var(--drift-y, -14px), 0) rotate(var(--tilt, 9deg));
        opacity: 0.48;
    }
}

@media (max-width: 480px) {
    .ambient-shape {
        opacity: 0.26;
    }
}

#cover-section .content-container {
    position: relative;
    z-index: 3;
}

@keyframes gentle-float {
    0%, 100% {
        transform: translate3d(0px, 0px, 0) rotate(0deg);
        opacity: 0.3;
    }
    50% {
        transform: translate3d(3px, -10px, 0) rotate(2deg);
        opacity: 0.5;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cover-background-florals .floral-band-top,
    .cover-background-florals .floral-band-bottom-left,
    .cover-background-florals .floral-band-bottom-right,
    .floating-icon,
    .ambient-shape,
    .card-celebration-icon,
    .cover-sparkle-layer {
        animation: none !important;
    }
}

.main-content .section {
    position: relative;
    overflow: hidden;
}

.main-content .section > .content-wrapper {
    position: relative;
    z-index: 2;
}

.section-shape-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
    --shape-opacity: 0.22;
}

.section-shape-layer::before,
.section-shape-layer::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.16;
    background-image:
        radial-gradient(circle at 12% 22%, rgba(255, 111, 203, 0.22) 0 6px, transparent 7px),
        radial-gradient(circle at 86% 28%, rgba(255, 182, 221, 0.24) 0 5px, transparent 6px),
        radial-gradient(circle at 16% 76%, rgba(255, 111, 203, 0.2) 0 6px, transparent 7px),
        radial-gradient(circle at 84% 82%, rgba(255, 182, 221, 0.24) 0 5px, transparent 6px);
    animation: section-shape-layer-drift 20s linear infinite;
}

.section-shape-layer::after {
    opacity: 0.12;
    filter: blur(0.4px);
    animation-duration: 24s;
    animation-direction: reverse;
}

.section-shape {
    position: absolute;
    width: var(--size, 18px);
    height: var(--size, 18px);
    border-radius: 999px;
    opacity: var(--shape-opacity);
    background:
        radial-gradient(circle at 50% 16%, rgba(255, 255, 255, 0.95) 0 18%, transparent 19%),
        radial-gradient(circle at 18% 52%, rgba(255, 111, 203, 0.54) 0 23%, transparent 24%),
        radial-gradient(circle at 82% 50%, rgba(255, 111, 203, 0.54) 0 23%, transparent 24%),
        radial-gradient(circle at 50% 82%, rgba(255, 192, 226, 0.52) 0 23%, transparent 24%),
        radial-gradient(circle at 50% 50%, rgba(230, 213, 163, 0.72) 0 18%, transparent 19%);
    animation: section-shape-float var(--dur, 15s) ease-in-out infinite;
    animation-delay: var(--delay, 0s);
    will-change: transform, opacity;
    filter: drop-shadow(0 8px 16px rgba(179, 25, 91, 0.1));
}

#opening-section .section-shape-layer,
#welcome-section .section-shape-layer,
#couple-section .section-shape-layer,
#quotes-section .section-shape-layer {
    --shape-opacity: 0.16;
}

.section-shape.orb {
    background: radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.95), rgba(255, 236, 245, 0.84) 58%, rgba(255, 111, 203, 0.35) 100%);
}

.section-shape.leaf {
    width: calc(var(--size, 16px) * 1.45);
    border-radius: 78% 22% 74% 26% / 68% 32% 68% 32%;
    background: linear-gradient(135deg, rgba(180, 213, 191, 0.82), rgba(120, 171, 137, 0.5));
}

.section-card-elegant {
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at top, rgba(255, 255, 255, 0.96), rgba(255, 248, 252, 0.94) 50%, rgba(255, 238, 247, 0.92) 100%) !important;
    border-color: rgba(179, 25, 91, 0.32) !important;
    box-shadow:
        0 20px 54px rgba(74, 21, 50, 0.1),
        0 10px 24px rgba(179, 25, 91, 0.08),
        inset 0 0 0 1px rgba(255, 255, 255, 0.72) !important;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.section-card-elegant::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background:
        radial-gradient(220px 120px at 14% 10%, rgba(255, 255, 255, 0.45), transparent 70%),
        radial-gradient(260px 130px at 86% 88%, rgba(255, 111, 203, 0.08), transparent 72%);
    z-index: 0;
}

.section-card-elegant::after {
    content: '';
    position: absolute;
    inset: 12px;
    border-radius: calc(inherit - 10px);
    border: 1px solid rgba(179, 25, 91, 0.16);
    background:
        radial-gradient(18px 18px at 18px 18px, rgba(255, 111, 203, 0.16), transparent 70%),
        radial-gradient(18px 18px at calc(100% - 18px) 18px, rgba(255, 111, 203, 0.16), transparent 70%),
        radial-gradient(18px 18px at 18px calc(100% - 18px), rgba(255, 111, 203, 0.16), transparent 70%),
        radial-gradient(18px 18px at calc(100% - 18px) calc(100% - 18px), rgba(255, 111, 203, 0.16), transparent 70%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.62);
    pointer-events: none;
    z-index: 0;
}

.card-celebration-strip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid rgba(179, 25, 91, 0.2);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 238, 247, 0.9));
    box-shadow: 0 10px 26px rgba(179, 25, 91, 0.12);
}

.card-celebration-strip.centered {
    margin-inline: auto;
}

.section-kicker {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: #b3195b;
    line-height: 1.5;
}

.section-heading-script {
    font-family: 'Great Vibes', cursive;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: 0.01em;
    color: #b3195b;
}

.section-body {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.96rem;
    line-height: 1.75;
    color: #4a1532;
}

.couple-name-gradient {
    background: linear-gradient(120deg, #7e1c4a 0%, #b3195b 38%, #ff5db8 68%, #9e2458 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

.card-celebration-icon {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    border: 1px solid rgba(179, 25, 91, 0.24);
    background: rgba(255, 255, 255, 0.9);
    color: #b3195b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    animation: card-icon-glow 6.8s ease-in-out infinite;
}

@keyframes card-icon-glow {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1);
        box-shadow: 0 0 0 rgba(255, 111, 203, 0);
    }
    50% {
        transform: translate3d(0, -2px, 0) scale(1.04);
        box-shadow: 0 0 14px rgba(255, 111, 203, 0.2);
    }
}

.section-card-elegant > :not(.absolute) {
    position: relative;
    z-index: 1;
}

.section-card-elegant > .absolute {
    z-index: 1;
}

@keyframes section-shape-float {
    0%, 100% {
        transform: translate3d(0, 0, 0) rotate(0deg);
        opacity: 0.22;
    }
    50% {
        transform: translate3d(var(--dx, 8px), var(--dy, -14px), 0) rotate(var(--rot, 10deg));
        opacity: 0.42;
    }
}

@keyframes section-shape-layer-drift {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(12px, -14px, 0);
    }
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    max-width: 100%;
}

/* Default body text color */
body {
    color: #4a1532;
    overflow-x: hidden;
    max-width: 100vw;
    position: relative;
}

/* Ensure all text elements use sage colors by default */
h1, h2, h3, h4, h5, h6, p, span, div, a {
    color: inherit;
}

/* Link colors */
a:not([class*="social-link"]):not([class*="btn"]) {
    color: #b3195b;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:not([class*="social-link"]):not([class*="btn"]):hover {
    color: #ff6fcb;
}
