/* ======================================================
   Wedding Invitation
   Author : Rahmatul Fahmi
   Theme  : Soft Pink & Lavender
====================================================== */

:root {

    --primary: #F8D7E8;
    --secondary: #EADCF8;
    --purple: #B57EDC;
    --white: #ffffff;
    --light: #FFF9FC;
    --text: #5A4A5A;
    --gray: #777;
    --gold: #D4AF37;

    --shadow: 0 15px 40px rgba(0, 0, 0, .08);

    --radius: 25px;

    --transition: .4s;

}

/* ======================================================
                GLOBAL
====================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {

    font-family: 'Poppins', sans-serif;
    background: linear-gradient(180deg, #FFF9FC, #FFF5F9, #FDF4FF);
    color: var(--text);
    overflow-x: hidden;

}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background: url('../images/bg1.jpeg') no-repeat center center;
    background-size: cover;
    pointer-events: none;
}

section {

    padding: 110px 0;
    position: relative;

}

a {
    text-decoration: none;
}

img {

    max-width: 100%;
    display: block;

}

h1,
h2,
h3,
h4 {

    font-family: 'Great Vibes', cursive;

}

.section-title {

    text-align: center;
    margin-bottom: 70px;

}

.section-title h2 {

    font-size: 55px;
    color: var(--purple);

}

.section-title p {

    margin-top: 10px;
    color: var(--gray);

}

/* ======================================================
                OPENING
====================================================== */

#opening {

    position: fixed;
    inset: 0;

    /* Menggunakan gambar latar belakang bg1.jpeg */
    background: url('../images/bg1.jpeg') no-repeat center center;
    background-size: cover;

    display: flex;
    justify-content: center;
    align-items: center;

    z-index: 99999;
    overflow: hidden;

}

/* Dekorasi kelopak bunga sakura transparan di latar belakang */
#opening::before {
    content: "🌸";
    position: absolute;
    bottom: -8%;
    right: -2%;
    font-size: 280px;
    opacity: 0.12;
    transform: rotate(-15deg);
    pointer-events: none;
    line-height: 1;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.3));
}

#opening::after {
    content: "🌸";
    position: absolute;
    top: 5%;
    left: -5%;
    font-size: 150px;
    opacity: 0.08;
    transform: rotate(25deg);
    pointer-events: none;
    line-height: 1;
}

.arch-wrapper {

    width: 90%;
    max-width: 420px;
    height: 92vh;
    max-height: 820px;

    padding: 35px 25px;

    border-radius: 200px 200px 0 0;

    border: 3px solid #d775c757;

    /* Tampilan glassmorphism bernuansa lavender-putih lembut */
    background: rgba(255, 255, 255, 0.88);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    text-align: center;

    box-shadow: 0 20px 50px rgba(90, 45, 130, 0.2);

    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;

}

.opening-subtitle {

    font-family: 'Great Vibes', cursive;
    font-size: 50px;
    color: #532d75;
    margin-bottom: 0;

}

.opening-photo-frame {

    width: 160px;
    height: 190px;
    /* border-radius: 100px 100px 0 0; */
    /* Bingkai berbentuk dome/arch yang senada */
    /* overflow: hidden; */
    /* box-shadow: 0 10px 25px rgba(90, 45, 130, 0.15); */
    margin: 10px auto;

}

.opening-photo {

    width: 100%;
    height: 100%;
    object-fit: cover;

}

.opening-title {

    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 26px;
    letter-spacing: 2px;
    color: #532d75;
    margin: 10px 0;

}

.guest-card {

    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(181, 126, 220, 0.25);
    padding: 15px;
    border-radius: 20px;
    width: 100%;
    box-shadow: 0 5px 15px rgba(90, 45, 130, 0.05);

}

.guest-to {
    font-size: 13px;
    margin-bottom: 0;
    color: #6a5a78;
}

.guest-label {
    font-size: 14px;
    margin-bottom: 6px;
    color: #532d75;
}

#guest-name {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: #532d75;
    margin: 0;
}

.guest-disclaimer {
    font-size: 11px;
    font-style: italic;
    color: #8c7f99;
    margin: 8px 0;
    line-height: 1.4;
}

.btn-open {

    border: none;

    background: #733b9e;

    color: #fff;

    padding: 12px 35px;

    border-radius: 30px;

    transition: .3s;

    font-weight: 600;

    font-size: 15px;

    box-shadow: 0 5px 15px rgba(115, 59, 158, 0.3);

}

.btn-open:hover {

    transform: translateY(-3px);

    background: #5b2d80;

    box-shadow: 0 10px 20px rgba(115, 59, 158, 0.45);

}

/* ======================================================
                NAVBAR
====================================================== */

.navbar {

    padding: 18px 0;

    transition: .4s;

}

.navbar.scrolled {

    background: rgba(255, 255, 255, .82);

    backdrop-filter: blur(18px);

    box-shadow: 0 5px 25px rgba(0, 0, 0, .05);

}

.navbar-brand {

    font-family: 'Great Vibes';

    font-size: 42px;

    color: var(--purple) !important;

}

.nav-link {

    margin-left: 20px;

    color: var(--text) !important;

    font-weight: 500;

    position: relative;

}

.nav-link::after {

    content: '';

    position: absolute;

    left: 0;

    bottom: -5px;

    width: 0;

    height: 2px;

    background: var(--purple);

    transition: .3s;

}

.nav-link:hover::after {

    width: 100%;

}

/* ======================================================
                    HERO
====================================================== */

#hero {

    min-height: 100vh;

    display: flex;

    align-items: center;

    overflow: hidden;

}

.hero-overlay {

    position: absolute;

    inset: 0;

    background:

        radial-gradient(circle at top left,
            rgba(248, 215, 232, .45),
            transparent),

        radial-gradient(circle at bottom right,
            rgba(181, 126, 220, .20),
            transparent);

}

.hero-image {

    animation: float 4s ease-in-out infinite;

}

.hero-image img {

    width: 500px;

    margin: auto;

}

#hero h5 {

    color: var(--purple);

    letter-spacing: 3px;

}

#hero h1 {

    font-size: 72px;

    margin: 20px 0;

    line-height: 1.2;

}

#hero h1 span {

    color: hotpink;

}

#hero p {

    color: #666;

    line-height: 1.9;

    margin-bottom: 35px;

}

.btn-main {

    display: inline-block;

    padding: 15px 40px;

    border-radius: 50px;

    color: #fff;

    background: linear-gradient(45deg, var(--primary), var(--purple));

    transition: .4s;

}

.btn-main:hover {

    transform: translateY(-5px);

    color: #fff;

}

/* ======================================================
                COUNTDOWN
====================================================== */

#countdown {

    background: transparent;

}

.count-wrapper {

    display: flex;

    justify-content: center;

    gap: 30px;

    flex-wrap: wrap;

}

.count-box {

    width: 170px;

    height: 170px;

    border-radius: 30px;

    background: rgba(255, 255, 255, .6);

    backdrop-filter: blur(20px);

    box-shadow: var(--shadow);

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    transition: .4s;

}

.count-box:hover {

    transform: translateY(-10px);

}

.count-box h1 {

    font-size: 60px;

    color: var(--purple);

}

.count-box span {

    font-weight: 600;

}

/* ======================================================
                    QUOTE
====================================================== */

.quote-card {

    max-width: 850px;

    margin: auto;

    background: rgba(255, 255, 255, .6);

    backdrop-filter: blur(20px);

    padding: 60px;

    border-radius: 35px;

    text-align: center;

    box-shadow: var(--shadow);

}

.quote-card h2 {

    color: var(--purple);

    margin-bottom: 20px;

}

.quote-card p {

    line-height: 2;

    font-style: italic;

}

/* ======================================================
                COUPLE
====================================================== */

.person-card {

    background: #fff;

    border-radius: 35px;

    padding: 40px;

    text-align: center;

    box-shadow: var(--shadow);

    transition: .4s;

}

.person-card:hover {

    transform: translateY(-12px);

}

.person-card img {

    width: 230px;

    margin: auto;

    border-radius: 50%;

    border: 10px solid #FCEEF6;

    margin-bottom: 25px;

}

.person-card h2 {

    color: var(--purple);

    margin-bottom: 15px;

}

.person-card p {

    margin-bottom: 8px;

}

.love-icon {

    width: 90px;

    height: 90px;

    border-radius: 50%;

    background: linear-gradient(45deg, var(--primary), var(--purple));

    display: flex;

    justify-content: center;

    align-items: center;

    margin: auto;

    color: #fff;

    font-size: 35px;

    animation: pulse 2s infinite;

}

/* ======================================================
                LOVE STORY
====================================================== */

.timeline {

    position: relative;

    max-width: 900px;

    margin: auto;

}

.timeline::before {

    content: '';

    position: absolute;

    left: 50%;

    top: 0;

    width: 4px;

    height: 100%;

    background: var(--secondary);

    transform: translateX(-50%);

}

.timeline-item {

    position: relative;

    width: 50%;

    padding: 25px 40px;

}

.timeline-item:nth-child(odd) {

    left: 0;

    text-align: right;

}

.timeline-item:nth-child(even) {

    left: 50%;

}

.timeline-dot {

    position: absolute;

    top: 35px;

    right: -10px;

    width: 22px;

    height: 22px;

    background: var(--purple);

    border-radius: 50%;

}

.timeline-item:nth-child(even) .timeline-dot {

    left: -12px;

}

.timeline-content {

    background: #fff;

    padding: 30px;

    border-radius: 25px;

    box-shadow: var(--shadow);

}

.timeline-content h3 {

    color: hotpink;

    margin-bottom: 10px;

}

.timeline-content h4 {

    font-family: 'Poppins';

    font-size: 22px;

    margin-bottom: 10px;

}

/* ======================================================
                ANIMATION
====================================================== */

@keyframes float {

    0% {

        transform: translateY(0px);

    }

    50% {

        transform: translateY(-15px);

    }

    100% {

        transform: translateY(0px);

    }

}

@keyframes pulse {

    0% {

        transform: scale(1);

    }

    50% {

        transform: scale(1.08);

    }

    100% {

        transform: scale(1);

    }

}

/* ======================================================
                COMPLETED SECTIONS STYLING
====================================================== */

.bg-light-pink {
    background-color: rgba(255, 245, 249, 0.7);
    backdrop-filter: blur(10px);
}

.bg-light-purple {
    background-color: #FAF5FF;
}

.bg-dark-purple {
    background-color: #3D2B3D;
}

.text-purple {
    color: var(--purple) !important;
}

/* ==========================
        GALLERY
========================== */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: var(--shadow);
    cursor: pointer;
}

.gallery-item img {
    transition: transform 0.6s ease;
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(248, 215, 232, 0.8), rgba(181, 126, 220, 0.8));
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    color: #fff;
    font-size: 32px;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* ==========================
        VIDEO
========================== */
.video-container {
    max-width: 800px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    border: 8px solid rgba(255, 255, 255, 0.7);
    background-color: #fff;
}

/* ==========================
        EVENT
========================== */
.event-card {
    border: none;
    border-radius: 25px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    overflow: hidden;
    position: relative;
}

.event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--primary), var(--purple));
}

.event-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(181, 126, 220, 0.15);
}

.event-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, var(--primary), var(--purple));
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    color: #fff;
    font-size: 30px;
    box-shadow: 0 10px 20px rgba(181, 126, 220, 0.2);
    transition: var(--transition);
}

.event-card:hover .event-icon {
    transform: rotate(15deg) scale(1.1);
}

.event-card h3 {
    font-size: 34px;
    color: var(--purple);
}

.event-card p {
    font-size: 15px;
    margin-bottom: 12px;
    color: var(--text);
}

.event-card .date-text,
.event-card .time-text {
    font-weight: 600;
}

.event-card .location-text {
    font-size: 14px;
    line-height: 1.6;
}

/* ==========================
        RSVP & WISHES
========================== */
.rsvp-card,
.wishes-card {
    border: none;
    border-radius: 25px;
    box-shadow: var(--shadow);
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(15px);
}

.rsvp-card h3,
.wishes-card h3 {
    font-size: 32px;
    color: var(--purple);
    margin-bottom: 15px;
}

.form-control,
.form-select {
    padding: 12px 20px;
    border: 1px solid #ebdcf8;
    background-color: #fffafc;
    color: var(--text);
    transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
    background-color: #fff;
    border-color: var(--purple);
    box-shadow: 0 0 0 0.25rem rgba(181, 126, 220, 0.2);
}

.form-check-input:checked {
    background-color: var(--purple);
    border-color: var(--purple);
}

/* Wishes Board */
.wishes-board {
    padding-right: 10px;
}

.wishes-board::-webkit-scrollbar {
    width: 6px;
}

.wishes-board::-webkit-scrollbar-track {
    background: rgba(181, 126, 220, 0.05);
    border-radius: 10px;
}

.wishes-board::-webkit-scrollbar-thumb {
    background: rgba(181, 126, 220, 0.3);
    border-radius: 10px;
}

.wish-item {
    transition: var(--transition);
    border: 1px solid rgba(181, 126, 220, 0.1);
}

.wish-item:hover {
    transform: translateX(5px);
    background-color: #f7effd !important;
}

.wish-item h5 {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 2px;
    color: var(--text);
}

.wish-item p {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text);
}

/* ==========================
        GIFT
========================= */
.premium-card {
    position: relative;
    background: linear-gradient(135deg, #7b3294 0%, #4a155c 100%);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(74, 21, 92, 0.25);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255, 255, 255, 0.12);
    min-height: 220px;
    cursor: default;
    z-index: 1;
}

.premium-card-pink {
    background: linear-gradient(135deg, #b55d9d 0%, #68225a 100%);
    box-shadow: 0 15px 35px rgba(104, 34, 90, 0.25);
}

.premium-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 45px rgba(74, 21, 92, 0.35);
}

.premium-card-pink:hover {
    box-shadow: 0 25px 45px rgba(104, 34, 90, 0.35);
}

.premium-card .card-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.05) 50%, transparent 50%),
        radial-gradient(circle at 0% 100%, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.05) 50%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.premium-card .card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
    pointer-events: none;
    z-index: -1;
    transform: rotate(30deg);
}

.premium-card .bank-name {
    font-family: 'Poppins', sans-serif;
}

.premium-card .bank-name h4 {
    font-family: 'Poppins', sans-serif;
    letter-spacing: 2px;
}

.premium-card .card-chip i {
    color: #ffd700 !important;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.premium-card .card-number {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 3px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
    color: #ffffff;
    display: inline-block;
}

.premium-card .card-label {
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 500;
}

.premium-card .card-name {
    color: #ffd700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.btn-copy-premium {
    background: rgba(255, 255, 255, 0.12) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: #ffffff !important;
    border-radius: 30px !important;
    padding: 6px 18px !important;
    font-weight: 500 !important;
    font-size: 13px !important;
    transition: all 0.3s ease !important;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.btn-copy-premium:hover {
    background: #ffffff !important;
    color: #4a155c !important;
    border-color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.premium-card-pink .btn-copy-premium:hover {
    color: #68225a !important;
}

.btn-copy-premium.bg-success {
    background: #28a745 !important;
    border-color: #28a745 !important;
    color: #ffffff !important;
}

@media (max-width: 480px) {
    .premium-card {
        min-height: 200px;
        padding: 20px !important;
    }

    .premium-card .card-number {
        font-size: 20px;
        letter-spacing: 2px;
    }

    .premium-card .bank-name h4 {
        font-size: 20px;
    }
}

/* ==========================
        FOOTER
========================== */
.footer {
    background: linear-gradient(135deg, #3d2b3d 0%, #201321 100%);
}

.footer-flower {
    font-size: 36px;
    animation: floating 3s ease-in-out infinite;
}

.footer-title {
    font-size: 42px;
    color: var(--primary);
}

.copyright {
    font-size: 13px;
}

/* Hide mobile bottom navigation on desktop */
.mobile-nav {
    display: none;
}

/* ==========================
        LIGHTBOX MODAL
========================== */
.lightbox {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(20, 10, 25, 0.88);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.lightbox.show {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 80%;
    max-height: 80vh;
    z-index: 10001;
}

.lightbox-content {
    display: block;
    max-width: 100%;
    max-height: 75vh;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 4px solid rgba(255, 255, 255, 0.95);
    object-fit: contain;
}

.lightbox.show .lightbox-content {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #fff;
    font-size: 32px;
    font-weight: 300;
    transition: all 0.3s ease;
    cursor: pointer;
    z-index: 10003;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.lightbox-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg);
}

.lightbox-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.8);
    border: none;
    font-size: 24px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 10002;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    outline: none;
}

.lightbox-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: translateY(-50%) scale(1.1);
}

.lightbox-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.lightbox-prev {
    left: 40px;
}

.lightbox-next {
    right: 40px;
}

#lightbox-caption {
    margin-top: 15px;
    text-align: center;
    color: #fff;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

/* Adjustments for smaller screens */
@media (max-width: 768px) {
    .lightbox-wrapper {
        max-width: 85%;
        max-height: 75vh;
    }

    .lightbox-content {
        max-height: 65vh;
        border-width: 3px;
    }

    .lightbox-close {
        top: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
        font-size: 24px;
    }

    .lightbox-btn {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }

    .lightbox-prev {
        left: 15px;
    }

    .lightbox-next {
        right: 15px;
    }

    #lightbox-caption {
        font-size: 14px;
        margin-top: 10px;
    }
}