/* ======================================================
   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;

}

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;

    /* Gradasi ungu dan kilauan cahaya sesuai dengan gambar referensi */
    background:
        radial-gradient(circle at 15% 15%, rgba(255, 255, 255, 0.45) 0%, transparent 40%),
        radial-gradient(circle at 90% 10%, rgba(255, 255, 255, 0.3) 0%, transparent 25%),
        linear-gradient(135deg, #dfc4ff 0%, #c49eff 30%, #a26eff 70%, #874de3 100%);
    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: 28px;
    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: #fff;

}

.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: #FFF5F9;
}

.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
========================== */
.gift-card {
    border: none;
    border-radius: 25px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.gift-card::after {
    content: '🌸';
    position: absolute;
    right: -10px;
    bottom: -10px;
    font-size: 80px;
    opacity: 0.05;
    pointer-events: none;
}

.gift-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(181, 126, 220, 0.15);
}

.account-number {
    font-size: 26px;
    color: var(--purple);
    letter-spacing: 1px;
}

.account-name {
    font-size: 15px;
    font-weight: 500;
}

/* ==========================
        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;
}