/* ===============================
   OPENING SECTION WITH SLIDESHOW
================================= */

.opening {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Slideshow container */
.opening-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Swiper customization */
.openingSwiper {
    width: 100%;
    height: 100%;
}

.openingSwiper .swiper-slide {
    width: 100%;
    height: 100%;
}

.openingSwiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Dark overlay */
.opening-overlay {
    position: absolute;
    inset: 0;
    background: black;
    opacity: var(--primary-opacity, 0.75);
    z-index: 1;
    pointer-events: none;
}

/* Swiper pagination styling */
.openingSwiper .swiper-pagination {
    z-index: 2;
}

.openingSwiper .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
}

.openingSwiper .swiper-pagination-bullet-active {
    background: var(--secondary-color, #c9a87c);
    transform: scale(1.2);
}

/* Content wrapper */
.opening-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    color: #fff;
    padding: 20px;
}

/* Floral decorations */
.floral-top-left {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 120px;
    height: auto;
    opacity: 0.6;
    transform: rotate(0deg);
    z-index: 3;
}

.floral-bottom-right {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 120px;
    height: auto;
    opacity: 0.6;
    transform: rotate(180deg);
    z-index: 3;
}

/* Opening subtitle */
.opening-subtitle {
    font-size: 0.85rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Couple names */
.couple-names-opening {
    margin: 20px 0;
}

.nickname-opening {
    font-family: var(--couple-name, 'Playfair Display', serif);
    font-size: 4rem;
    font-weight: 500;
    line-height: 1.2;
    margin: 0;
    color: #fff;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    text-transform: uppercase;
}

.ampersand-opening {
    display: inline-block;
    font-size: 1.6rem;
    margin: 15px 0;
    color: var(--secondary-color, #c9a87c);
    position: relative;
}

.ampersand-opening i {
    font-size: 1rem;
    margin-left: 10px;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

/* Main date */
.main-date {
    font-family: var(--body-font);
    font-size: 1rem;
    letter-spacing: 2px;
    margin-top: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* ===============================
   GUEST SECTION
================================= */

.guest-section {
    padding: 80px 20px;
    background: var(--background-color, #f9f7f4);
    text-align: center;
    position: relative;
}

.guest-container {
    max-width: 600px;
    margin: 0 auto;
}

.guest-greeting {
    font-family: var(--heading-font, 'Playfair Display', serif);
    font-size: 2.2rem;
    color: var(--primary-color, #2c3e50);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.guest-greeting::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--secondary-color, #c9a87c);
}

.guest-text {
    font-family: var(--body-font, 'Poppins', sans-serif);
    font-size: var(--body-font-size);
    line-height: 1.8;
    color: var(--text-color, #666);
    margin-top: 30px;
}

/* ===============================
   QUOTE SECTION
================================= */

.quote-section {
    position: relative;
    padding: 100px 20px;
    background: var(--primary-color, #2c3e50);
    text-align: center;
    overflow: hidden;
}

.bunga-kiri,
.bunga-kanan {
    position: absolute;
    width: 150px;
    height: auto;
    opacity: 0.15;
    z-index: 0;
}

.bunga-kiri {
    top: 20px;
    left: 20px;
    transform: rotate(15deg);
}

.bunga-kanan {
    bottom: 20px;
    right: 20px;
    transform: rotate(-15deg);
}

.quote-card {
    position: relative;
    background: #fff;
    max-width: 700px;
    margin: 0 auto 50px;
    padding: 0px;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    z-index: 1;
    border: 3px solid var(--secondary-color);
}

.quote-image {
    margin-bottom: 25px;
}

.quote-image img {
    width: 100%;
    height: auto;
    border-radius: 15px 15px 0px 0px;
    object-fit: cover;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.quote-text {
    position: relative;
    padding: 0px 20px;
}

.quote-text i {
    color: var(--secondary-color, #c9a87c);
    font-size: 1.5rem;
    opacity: 0.5;
}

.quote-text p {
    font-family: var(--body-font, 'Poppins', sans-serif);
    font-size: var(--body-font-size);
    line-height: 1.8;
    margin: 20px 0;
    color: var(--text-color, #666);
    font-style: italic;
}

/* ===============================
   COUNTDOWN
================================= */

.countdown {
    position: relative;
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
    z-index: 1;
}

.time-box {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.time-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.time-box span {
    font-size: 1.6rem;
    font-weight: 600;
    line-height: 1.2;
}

.time-box small {
    font-size: 0.75rem;
    letter-spacing: 1px;
    opacity: 0.9;
}

/* ===============================
   RESPONSIVE
================================= */

@media (max-width: 768px) {
    .nickname-opening {
        font-size: 2.5rem;
    }

    .floral-top-left,
    .floral-bottom-right {
        width: 80px;
    }

    .guest-greeting {
        font-size: 1.8rem;
    }

    .quote-card {
        margin: 0 15px 40px;
    }

    .time-box {
        width: 70px;
        height: 70px;
    }

    .time-box span {
        font-size: 1.2rem;
    }

    .time-box small {
        font-size: 0.65rem;
    }

    .bunga-kiri,
    .bunga-kanan {
        width: 100px;
    }
}

@media (max-width: 480px) {
    .nickname-opening {
        font-size: 2rem;
    }

    .ampersand-opening {
        font-size: 1.4rem;
    }

    .opening-subtitle {
        font-size: 0.7rem;
        letter-spacing: 2px;
    }

    .time-box {
        width: 60px;
        height: 60px;
    }
}