@import url('https://fonts.googleapis.com/css2?family=Style+Script&family=Great+Vibes&family=Alex+Brush&family=Allura&family=Dancing+Script:wght@400;500;600;700&display=swap');

.font-greatvibes {
    font-family: 'Style Script', sans-serif;
}

#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: #1e2f44;
    background-image: url('/images/wedding-3/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;
    width: 100%;
    max-width: 100vw;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    overscroll-behavior: none;
    touch-action: none;
    -webkit-overflow-scrolling: none;
}

/* 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: #1e2f44;
    background-image: url('/images/wedding-3/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: #E6D5A3;
}

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

.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) {
    html {
        display: flex;
        justify-content: center;
    }

    body {
        width: 480px !important;
        margin: 0 !important;
        position: relative;
    }

    /* Container styles */
    .min-h-screen {
        width: 480px !important;
    }

    .content-wrapper {
        width: 480px !important;
    }

    .bg-image {
        width: 480px !important;
        left: auto !important;
    }

    .arch-background {
        width: 480px !important;
        left: 50% !important;
    }

    /* Atur posisi relatif untuk wrapper floral */
    .main-content {
        position: relative;
    }

    /* Atur floral agar sejajar dengan container 480px */
    .floral-ornament {
        position: fixed;
        width: 480px !important;
    }

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

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

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

    .floral-bottom-right {
        bottom: 0;
        right: calc(50% - 360px);
    }
}

/* Button animation styles */
.btn-undangan {
    max-width: 300px;
    background: linear-gradient(135deg, #C9A962 0%, #E6D5A3 50%, #C9A962 100%);
    background-size: 200% 100%;
    border: 2px solid rgba(230, 213, 163, 0.3);
    margin-top: 3.5rem;
    margin-bottom: 2rem;
    padding: 14px 36px;
    color: #1e2f44;
    border-radius: 50px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(201, 169, 98, 0.4);
    animation: subtle-pulse 2s infinite;
}

.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 */
}

/* 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 */
.btn-undangan {
    max-width: 300px;
    background: linear-gradient(135deg, #C9A962 0%, #E6D5A3 50%, #C9A962 100%);
    background-size: 200% 100%;
    border: 2px solid rgba(230, 213, 163, 0.3);
    margin-top: 3.5rem;
    margin-bottom: 2rem;
    padding: 14px 36px;
    color: #1e2f44;
    border-radius: 50px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(201, 169, 98, 0.4);
    animation: subtle-pulse 2s infinite;
    font-weight: 600;
    letter-spacing: 0.1em;
}

.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: #E6D5A3;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.opening-text .welcome-text {
    font-size: 12px;
    color: #E6D5A3;
    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, #C9A962 0%, #E6D5A3 50%, #C9A962 100%);
    background-size: 200% 100%;
    border: 2px solid rgba(230, 213, 163, 0.3);
    color: #1e2f44;
    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: #E6D5A3;
    margin-bottom: 3rem;
    letter-spacing: 0.1em;
}

.couple-section .couple-name {
    font-size: 2.8rem;
    color: #E6D5A3;
    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: #E6D5A3;
}

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

.couple-section .couple-parents {
    font-size: 0.875rem;
    color: #E6D5A3;
    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 #6B7F5E;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #E6D5A3;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 2px 8px rgba(107, 127, 94, 0.1);
}

.social-link:hover {
    background-color: #C9A962;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(107, 127, 94, 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: #E6D5A3;
}

#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: 14px;
    color: #ffffff;
    line-height: 2;
    margin-bottom: 2rem;
    font-style: italic;
    letter-spacing: 0.02em;
    text-shadow: none;
}

.quotes-section .quotes-source {
    font-size: 1.1rem;
    color: #E6D5A3;
    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 #6B7F5E;
    color: #E6D5A3;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(107, 127, 94, 0.15);
    transition: all 0.3s ease;
}

.music-control:hover {
    background: #6B7F5E;
    color: white;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(107, 127, 94, 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;
}

/* Snowflakes animation styles */
.snowflakes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    overflow: hidden;
}

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

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

/* Individual snowflake variations */
.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; }

/* Custom Scrollbar */
::-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 sage theme */
.text-sage-dark {
    color: #E6D5A3;
}

.text-sage {
    color: #E6D5A3;
}

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

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

.border-sage-light {
    border-color: rgba(201, 169, 98, 0.3);
}

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

.bg-sage-light {
    background-color: rgba(201, 169, 98, 0.1);
}

/* Enhanced card styling for sage theme */
.card-sage {
    background: white;
    border: 1px solid rgba(107, 127, 94, 0.2);
    box-shadow: 0 4px 15px rgba(107, 127, 94, 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%,
        #E6D5A3 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: 0;
    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;
}

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

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

@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;
    }
}

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

/* Default body text color */
body {
    color: #E6D5A3;
    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: #E6D5A3;
    text-decoration: none;
    transition: color 0.3s ease;
}

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