/* ==========================================================================
   Base Styles & Variables
   ========================================================================== */
:root {
    /* Color Palette */
    --clr-purple: #800080;
    --clr-lavender: #E6E6FA;
    --clr-dusty-pink: #DCAE96;
    --clr-blush-pink: #FFB6C1;
    --clr-white: #FFFFFF;
    --clr-plum: #4A0E4E;
    --clr-text-main: #333333;
    --clr-text-light: #666666;
    --clr-bg-light: #FFF5F7;

    /* Fonts */
    --font-heading: 'Parisienne', cursive;
    --font-body: 'Lora', serif;
    --font-accent: 'Playfair Display', serif;

    /* Spacing & Utilities */
    --transition: all 0.3s ease;
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 8px 30px rgba(128, 0, 128, 0.15);
    --border-radius: 15px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--clr-text-main);
    background-color: var(--clr-white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ==========================================================================
   Typography & Shared Styles
   ========================================================================== */
h1,
h2,
h3,
.title,
.quote {
    font-weight: normal;
}

.section-padding {
    padding: 80px 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: var(--clr-plum);
    line-height: 1.1;
}

.section-header .small-text {
    font-family: var(--font-accent);
    font-size: 1rem;
    letter-spacing: 4px;
    color: var(--clr-text-light);
    text-transform: uppercase;
}

.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
}

.divider::before,
.divider::after {
    content: '';
    height: 1px;
    width: 50px;
    background-color: var(--clr-blush-pink);
    margin: 0 15px;
}

.divider i {
    color: var(--clr-blush-pink);
    font-size: 0.8rem;
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Navigation
   ========================================================================== */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 50px;
    background-color: transparent;
    transition: var(--transition);
    z-index: 1000;
}

#navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 50px;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--clr-white);
    transition: var(--transition);
}

#navbar.scrolled .logo {
    color: var(--clr-plum);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links li a {
    text-decoration: none;
    color: var(--clr-white);
    font-family: var(--font-accent);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
    transition: var(--transition);
}

#navbar.scrolled .nav-links li a {
    color: var(--clr-text-main);
}

.nav-links li a:hover {
    color: var(--clr-blush-pink);
}

.nav-rsvp {
    text-decoration: none;
    background-color: var(--clr-white);
    color: var(--clr-plum);
    padding: 10px 25px;
    border-radius: 25px;
    font-family: var(--font-accent);
    font-weight: 600;
    transition: var(--transition);
}

#navbar.scrolled .nav-rsvp {
    background-color: var(--clr-plum);
    color: var(--clr-white);
}

.nav-rsvp:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.hamburger {
    display: none;
    color: var(--clr-white);
    font-size: 1.5rem;
    cursor: pointer;
}

#navbar.scrolled .hamburger {
    color: var(--clr-plum);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background-color: var(--clr-white);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    transition: right 0.4s ease;
    padding: 50px 30px;
}

.mobile-menu.active {
    right: 0;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 1.5rem;
    color: var(--clr-text-main);
    cursor: pointer;
}

.mobile-menu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

.mobile-menu ul li a {
    text-decoration: none;
    color: var(--clr-text-main);
    font-family: var(--font-accent);
    font-size: 1.2rem;
    transition: var(--transition);
}

.mobile-menu ul li a:hover {
    color: var(--clr-purple);
}

.mobile-rsvp {
    display: inline-block;
    margin-top: 20px;
    background-color: var(--clr-plum);
    color: var(--clr-white) !important;
    padding: 12px 30px;
    border-radius: 25px;
    text-align: center;
}

/* =========================================================
   HERO SECTION
   ========================================================= */

.hero {
    position: relative;
    width: 100%;
    min-height: 820px;
    height: 100vh;
    overflow: hidden;

    display: flex;
    align-items: flex-end;

    background-image: url('bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Very light overlay so text remains readable */
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;

    background:
        linear-gradient(90deg,
            rgba(60, 15, 65, 0.04) 0%,
            rgba(255, 225, 235, 0.02) 45%,
            rgba(255, 238, 241, 0.18) 100%);
}

/* MAIN HERO LAYOUT */

.hero-content {
    position: relative;
    z-index: 3;

    width: 100%;
    max-width: 1500px;
    height: 100%;

    margin: 0 auto;

    display: grid;
    grid-template-columns: 48% 52%;
    align-items: center;

    padding: 80px 60px 0;
}


/* =========================================================
   GIRL / PORTRAIT
   ========================================================= */

.hero-person {
    position: relative;
    height: 100%;

    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.hero-girl {
    position: absolute;
    top: 0;
    /* Anchor to the top so her face is never cut off */
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    height: 135%;
    /* Zoom in by making her taller than the container */
    max-width: none;
    object-fit: contain;
    object-position: top center;
    border: none;
    border-radius: 0;
    box-shadow: none;
    filter: drop-shadow(0 15px 25px rgba(70, 20, 65, 0.18));
}


/* =========================================================
   RIGHT SIDE
   ========================================================= */

.hero-details {
    position: relative;
    z-index: 5;

    width: 100%;
    max-width: 680px;

    margin: 0 auto;

    text-align: center;

    padding: 20px 20px 40px;
}


/* YOU'RE INVITED */

.hero-invite {
    margin-bottom: 5px;

    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 500;

    letter-spacing: 8px;

    color: #67215f;
}


/* =========================================================
   NAME
   ========================================================= */

.hero-name-wrap {
    position: relative;

    display: inline-block;

    margin-top: 10px;
}

.hero-name {
    font-family: 'Parisienne', cursive;

    font-size: clamp(6rem, 9vw, 9.5rem);
    font-weight: 400;

    line-height: 0.9;

    margin: 10px 0 0;

    color: #78136d;

    text-shadow:
        0 2px 3px rgba(255, 255, 255, 0.5);
}

.hero-crown {
    position: absolute;

    top: -20px;
    left: 50%;

    transform: translateX(-50%);

    font-size: 2.2rem;
    color: #78136d;
}


/* TURNS EIGHTEEN */

.hero-eighteen {
    margin-top: 10px;

    font-family: 'Playfair Display', serif;

    font-size: 1.65rem;
    font-weight: 500;

    letter-spacing: 6px;

    color: #64205c;
}


/* =========================================================
   DIVIDER
   ========================================================= */

.hero-divider {
    width: 75%;

    margin: 20px auto;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 12px;
}

.hero-divider span {
    flex: 1;

    height: 1px;

    background: rgba(105, 25, 96, 0.45);
}

.hero-divider i {
    color: #851575;

    font-size: 0.8rem;
}


/* =========================================================
   MESSAGE
   ========================================================= */

.hero-message {
    max-width: 600px;

    margin: 0 auto;

    font-family: 'Lora', serif;

    font-size: 1rem;
    line-height: 1.7;

    color: #51234c;
}


/* DATE */

.hero-date {
    margin-top: 22px;

    font-family: 'Playfair Display', serif;

    font-size: 1.35rem;
    font-weight: 600;

    letter-spacing: 5px;

    color: #741969;
}


/* =========================================================
   COUNTDOWN
   ========================================================= */

.countdown {
    margin-top: 25px;

    display: grid;
    grid-template-columns: repeat(4, 1fr);

    gap: 15px;
}

.time-box {
    min-height: 105px;

    padding: 15px 10px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    background: rgba(255, 235, 242, 0.88);

    border: 1px solid rgba(160, 65, 130, 0.45);

    border-radius: 12px;

    box-shadow:
        0 8px 25px rgba(91, 23, 80, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);

    backdrop-filter: blur(5px);
}

.time-box .number {
    font-family: 'Playfair Display', serif;

    font-size: 2.2rem;
    font-weight: 500;

    line-height: 1;

    color: #711565;
}

.time-box .label {
    margin-top: 8px;

    font-family: 'Lora', serif;

    font-size: 0.85rem;

    text-transform: capitalize;
    letter-spacing: 0;

    color: #5f2a58;
}


/* =========================================================
   DECORATIVE SPARKLES
   ========================================================= */

.hero-sparkle {
    position: absolute;

    z-index: 4;

    color: rgba(255, 255, 255, 0.95);

    pointer-events: none;

    text-shadow:
        0 0 8px #fff,
        0 0 18px #ffb6df;

    animation: sparkleAnimation 2.5s ease-in-out infinite;
}

.sparkle-1 {
    left: 5%;
    top: 25%;

    font-size: 2rem;
}

.sparkle-2 {
    left: 42%;
    top: 18%;

    font-size: 1.3rem;

    animation-delay: .7s;
}

.sparkle-3 {
    right: 5%;
    top: 25%;

    font-size: 2.4rem;

    animation-delay: 1.2s;
}

.sparkle-4 {
    right: 12%;
    bottom: 15%;

    font-size: 1.4rem;

    animation-delay: 1.7s;
}

@keyframes sparkleAnimation {

    0%,
    100% {
        opacity: .35;
        transform: scale(.8);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1100px) {

    .hero {
        min-height: 760px;
    }

    .hero-content {
        grid-template-columns: 47% 53%;

        padding-left: 25px;
        padding-right: 25px;
    }

    .hero-girl {
        position: absolute;
        top: 0;
        /* Anchor to the top so her face is never cut off */
        left: 50%;
        transform: translateX(-50%);
        width: auto;
        height: 135%;
        /* Zoom in by making her taller than the container */
        max-width: none;
        object-fit: contain;
        object-position: top center;
        border: none;
        border-radius: 0;
        box-shadow: none;
        filter: drop-shadow(0 15px 25px rgba(70, 20, 65, 0.18));
    }

    .hero-name {
        font-size: 6.5rem;
    }

    .hero-eighteen {
        font-size: 1.3rem;
    }

    .hero-message {
        font-size: 0.9rem;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {

    .hero {
        height: auto;
        min-height: 900px;

        align-items: stretch;

        background-position: center;
    }

    .hero-overlay {
        background:
            linear-gradient(to bottom,
                rgba(255, 230, 238, 0.08),
                rgba(255, 230, 238, 0.18));
    }

    .hero-content {
        height: auto;

        display: flex;
        flex-direction: column;

        padding: 90px 15px 0;
    }

    /* TEXT FIRST ON MOBILE */

    .hero-details {
        order: 2;

        padding: 10px 10px 25px;
    }

    .hero-person {
        order: 1;

        width: 100%;
        height: 55vh;
        min-height: 420px;
        -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 60%, rgba(0,0,0,0) 100%);
        mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 60%, rgba(0,0,0,0) 100%);
        overflow: hidden;
    }

    .hero-girl {
        position: absolute;
        top: 0;
        /* Anchor to the top so her face is never cut off */
        left: 50%;
        transform: translateX(-50%);
        width: 150%;
        height: auto;
        /* Zoom in by making her taller than the container */
        max-width: none;
        object-fit: contain;
        object-position: top center;
        border: none;
        border-radius: 0;
        box-shadow: none;
        filter: drop-shadow(0 15px 25px rgba(70, 20, 65, 0.18));
    }

    .hero-invite {
        font-size: 0.85rem;
        letter-spacing: 5px;
    }

    .hero-name {
        font-size: clamp(4.5rem, 21vw, 6rem);
    }

    .hero-crown {
        top: -12px;
        font-size: 1.6rem;
    }

    .hero-eighteen {
        font-size: 1rem;

        letter-spacing: 4px;
    }

    .hero-divider {
        margin: 15px auto;

        width: 70%;
    }

    .hero-message {
        max-width: 420px;

        font-size: 0.85rem;
        line-height: 1.6;
    }

    .hero-date {
        margin-top: 16px;

        font-size: 1rem;

        letter-spacing: 3px;
    }

    .countdown {
        max-width: 420px;

        margin: 20px auto 0;

        gap: 8px;
    }

    .time-box {
        min-height: 80px;

        padding: 10px 5px;

        border-radius: 9px;
    }

    .time-box .number {
        font-size: 1.6rem;
    }

    .time-box .label {
        font-size: 0.65rem;
    }
}


/* VERY SMALL PHONES */

@media (max-width: 430px) {

    .hero {
        min-height: 820px;
    }

    .hero-content {
        padding-top: 80px;
    }

    .hero-person {
        height: 410px;
    }

    .hero-name {
        font-size: 4.5rem;
    }

    .hero-message {
        font-size: 0.78rem;
    }

    .countdown {
        gap: 5px;
    }

    .time-box {
        min-height: 72px;
    }

    .time-box .number {
        font-size: 1.35rem;
    }

    .time-box .label {
        font-size: 0.58rem;
    }
}

/* ==========================================================================
   Quick Navigation
   ========================================================================== */
.quick-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    background-color: var(--clr-white);
    padding: 30px 20px;
    gap: 30px;
    box-shadow: 0 -10px 20px rgba(0, 0, 0, 0.02);
    position: relative;
    z-index: 10;
}

.quick-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--clr-text-main);
    transition: var(--transition);
    width: 80px;
}

.quick-item i {
    font-size: 1.8rem;
    color: var(--clr-blush-pink);
    margin-bottom: 10px;
    transition: var(--transition);
}

.quick-item span {
    font-family: var(--font-accent);
    font-size: 0.85rem;
    text-align: center;
    font-weight: 500;
}

.quick-item:hover {
    transform: translateY(-5px);
}

.quick-item:hover i {
    color: var(--clr-plum);
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about {
    background-color: var(--clr-bg-light);
    position: relative;
}

/* Soft floral decorations (pseudo-elements) */
.about::before,
.about::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path fill="%23FFB6C1" opacity="0.3" d="M50,0 C60,30 90,40 100,50 C90,60 60,70 50,100 C40,70 10,60 0,50 C10,40 40,30 50,0 Z"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
}

.about::before {
    top: 20px;
    left: 20px;
}

.about::after {
    bottom: 20px;
    right: 20px;
    transform: rotate(180deg);
}


.about-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
    font-size: 1.1rem;
    color: var(--clr-text-light);
    line-height: 1.8;
}

.about-text p {
    margin-bottom: 20px;
}

.about-images {
    flex: 1;
    display: flex;
    gap: 15px;
}

.img-main {
    flex: 2;
}

.img-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
}

.img-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.img-side img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
}

/* ==========================================================================
   Event Details Section
   ========================================================================== */
.details {
    background-color: var(--clr-white);
}

.cards-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.detail-card {
    background-color: var(--clr-white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    text-align: center;
    flex: 1;
    min-width: 280px;
    border-top: 4px solid var(--clr-lavender);
    transition: var(--transition);
}

.detail-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-top-color: var(--clr-plum);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--clr-blush-pink);
    margin-bottom: 20px;
}

.detail-card h3 {
    font-family: var(--font-accent);
    letter-spacing: 2px;
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--clr-plum);
}

.detail-card .highlight {
    font-weight: 600;
    color: var(--clr-text-main);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.detail-card p {
    color: var(--clr-text-light);
    margin-bottom: 10px;
}

.btn-outline {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 20px;
    border: 1px solid var(--clr-purple);
    color: var(--clr-purple);
    text-decoration: none;
    border-radius: 20px;
    font-family: var(--font-accent);
    font-size: 0.9rem;
    transition: var(--transition);
}

.btn-outline:hover {
    background-color: var(--clr-purple);
    color: var(--clr-white);
}

.color-swatches {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.swatch {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* ==========================================================================
   Program Section
   ========================================================================== */
.program {
    background-color: var(--clr-bg-light);
}

.timeline {
    max-width: 1000px;
    margin: 40px auto 0;
    display: flex;
    justify-content: space-between;
    position: relative;
    padding: 0 20px;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 40px;
    right: 40px;
    height: 2px;
    background-color: var(--clr-blush-pink);
    z-index: 1;
}

.timeline-item {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100px;
    text-align: center;
}

.timeline-icon {
    width: 50px;
    height: 50px;
    background-color: var(--clr-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--clr-blush-pink);
    margin-bottom: 15px;
    color: var(--clr-plum);
    font-size: 1.2rem;
    transition: var(--transition);
}

.timeline-item:hover .timeline-icon {
    background-color: var(--clr-plum);
    color: var(--clr-white);
    transform: scale(1.1);
}

.timeline-time {
    font-family: var(--font-accent);
    font-weight: 600;
    color: var(--clr-text-main);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.timeline-title {
    font-size: 0.8rem;
    color: var(--clr-text-light);
    line-height: 1.2;
}

/* ==========================================================================
   18s Entourage Section
   ========================================================================== */
.entourage {
    background-color: var(--clr-white);
}

.entourage-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.entourage-card {
    background-color: var(--clr-bg-light);
    border-radius: var(--border-radius);
    padding: 30px 20px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255, 182, 193, 0.3);
}

.entourage-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--clr-blush-pink);
}

.entourage-header i {
    font-size: 2rem;
    color: var(--clr-plum);
    margin-bottom: 10px;
}

.entourage-header h3 {
    font-family: var(--font-accent);
    color: var(--clr-text-main);
    font-size: 1.2rem;
}

.entourage-card ol {
    list-style-position: inside;
    color: var(--clr-text-light);
    font-size: 0.9rem;
    line-height: 1.8;
    padding-left: 10px;
}

.entourage-card ol li {
    margin-bottom: 5px;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.05);
    padding-bottom: 2px;
}

/* ==========================================================================
   Gallery Section
   ========================================================================== */
.gallery {
    background-color: var(--clr-bg-light);
}

.carousel-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    padding: 20px 0;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 33.333%;
    /* Show 3 on desktop */
    padding: 0 10px;
    box-sizing: border-box;
}

.carousel-slide img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.carousel-slide img:hover {
    transform: scale(1.03);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--clr-white);
    color: var(--clr-plum);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    z-index: 10;
    font-size: 1.2rem;
    transition: var(--transition);
}

.carousel-btn:hover {
    background-color: var(--clr-plum);
    color: var(--clr-white);
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--clr-lavender);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background-color: var(--clr-plum);
    transform: scale(1.2);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* ==========================================================================
   Location Section
   ========================================================================== */
.location {
    background-color: var(--clr-white);
}

.location-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    gap: 40px;
    align-items: center;
}

.location-details {
    flex: 1;
}

.location-details h3 {
    font-family: var(--font-accent);
    font-size: 2rem;
    color: var(--clr-plum);
    margin-bottom: 15px;
}

.location-details p {
    color: var(--clr-text-light);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.location-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.btn-primary {
    display: inline-block;
    padding: 12px 25px;
    background-color: var(--clr-plum);
    color: var(--clr-white);
    text-decoration: none;
    border-radius: 25px;
    font-family: var(--font-accent);
    font-weight: 500;
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: var(--clr-purple);
    box-shadow: 0 5px 15px rgba(128, 0, 128, 0.3);
}

.placeholder-note {
    font-size: 0.8rem !important;
    color: var(--clr-blush-pink) !important;
    font-style: italic;
}

.map-container {
    flex: 1;
}

.map-placeholder {
    width: 100%;
    height: 350px;
    background-color: #f0f0f0;
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #999;
    border: 2px dashed #ccc;
}

.map-placeholder i {
    font-size: 3rem;
    margin-bottom: 10px;
}

/* ==========================================================================
   RSVP Section
   ========================================================================== */
.rsvp {
    background-color: var(--clr-plum);
    color: var(--clr-white);
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path fill="%23ffffff" opacity="0.05" d="M50 0c27.614 0 50 22.386 50 50s-22.386 50-50 50S0 77.614 0 50 22.386 0 50 0zm0 10C27.909 10 10 27.909 10 50s17.909 40 40 40 40-17.909 40-40S72.091 10 50 10z"/></svg>');
}

.rsvp .section-header h2 {
    color: var(--clr-white);
}

.rsvp-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.rsvp-text {
    margin-bottom: 40px;
    font-style: italic;
    font-size: 1.1rem;
    color: var(--clr-lavender);
}

.rsvp-form {
    background-color: var(--clr-white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    text-align: left;
    color: var(--clr-text-main);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--clr-blush-pink);
    box-shadow: 0 0 0 3px rgba(255, 182, 193, 0.3);
}

.radio-group p {
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--clr-plum);
}

.radio-group label {
    display: block;
    margin-bottom: 8px;
    cursor: pointer;
}

.radio-group input[type="radio"] {
    margin-right: 10px;
    accent-color: var(--clr-plum);
}

.btn-rsvp {
    width: 100%;
    padding: 15px;
    background-color: var(--clr-plum);
    color: var(--clr-white);
    border: none;
    border-radius: 8px;
    font-family: var(--font-accent);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-rsvp:hover {
    background-color: var(--clr-purple);
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
    background-color: var(--clr-text-main);
    color: var(--clr-white);
    text-align: center;
    padding: 60px 20px;
}

.footer-content h2 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    margin-bottom: 5px;
    color: var(--clr-lavender);
}

.footer-subtitle {
    font-family: var(--font-accent);
    letter-spacing: 3px;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-bottom: 20px;
    color: var(--clr-blush-pink);
}

.footer-date {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.footer-quote {
    font-style: italic;
    color: #ccc;
    margin-bottom: 30px;
}

.footer-icon i {
    color: var(--clr-blush-pink);
    font-size: 1.2rem;
    margin: 0 10px;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media screen and (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        padding-top: 50px;
    }

    .hero-image-container,
    .hero-text {
        width: 100%;
    }

    .title {
        font-size: 4rem;
    }

    .about-content,
    .location-content {
        flex-direction: column;
    }

    .timeline::before {
        display: none;
    }

    .timeline {
        flex-direction: column;
        align-items: flex-start;
        position: relative;
        padding-left: 40px;
        margin-left: 20px;
    }

    .timeline::after {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        left: 10px;
        width: 2px;
        background-color: var(--clr-blush-pink);
    }

    .timeline-item {
        flex-direction: row;
        width: 100%;
        text-align: left;
        margin-bottom: 30px;
    }

    .timeline-icon {
        margin-bottom: 0;
        margin-right: 20px;
        min-width: 50px;
        position: absolute;
        left: -55px;
    }

    .timeline-title {
        font-size: 1rem;
    }

    .carousel-slide {
        min-width: 50%;
    }
}

@media screen and (max-width: 768px) {

    .nav-links,
    .nav-rsvp {
        display: none;
    }

    .hamburger {
        display: block;
    }

    #navbar {
        padding: 15px 20px;
    }

    #navbar.scrolled {
        padding: 10px 20px;
    }

    .hero {
        padding: 100px 20px 40px;
    }

    .title {
        font-size: 3.5rem;
    }

    .countdown {
        flex-wrap: wrap;
    }

    .time-box {
        min-width: 70px;
        padding: 10px;
    }

    .quick-nav {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .section-padding {
        padding: 60px 15px;
    }

    .section-header h2 {
        font-size: 2.8rem;
    }

    .cards-container {
        flex-direction: column;
    }

    .carousel-slide {
        min-width: 100%;
    }

    .location-buttons {
        flex-direction: column;
    }

    .btn-primary,
    .btn-outline {
        text-align: center;
    }

    .rsvp-form {
        padding: 25px 15px;
    }
}

/* ===== 2026 invitation redesign overrides ===== */
:root {
    --wine: #67215f;
    --berry: #8f3f78;
    --rose: #d990b1;
    --powder: #fff3f8;
    --ink: #3c2237;
    --line: #edd3df
}

body {
    background: #fffafc;
    color: var(--ink)
}

#navbar {
    padding: 12px 4vw;
    background: linear-gradient(90deg, rgba(71, 20, 65, .94), rgba(132, 54, 111, .92));
    backdrop-filter: blur(14px)
}

#navbar.scrolled {
    padding: 9px 4vw;
    background: rgba(83, 28, 75, .96)
}

#navbar.scrolled .logo,
#navbar.scrolled .nav-links li a {
    color: #fff
}

.logo {
    font-size: 2.45rem
}

.nav-links {
    gap: 24px
}

.nav-links li a {
    font-size: .78rem;
    letter-spacing: .4px
}

.nav-rsvp,
#navbar.scrolled .nav-rsvp {
    background: #fff1f7;
    color: var(--wine);
    border: 1px solid rgba(255, 255, 255, .65)
}

.hero {
    min-height: 720px;
    padding: 74px 0 0;
    background: #e9cad8;
    align-items: stretch
}

.hero-bg {
    opacity: .32;
    filter: blur(1px);
    background-position: center 35%
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(42, 17, 38, .05), rgba(255, 235, 242, .25) 50%, rgba(255, 236, 242, .82));
    z-index: 0
}

.hero-content {
    max-width: none;
    gap: 0;
    align-items: stretch
}

.hero-image-container {
    flex: 1.08;
    align-items: flex-end;
    overflow: hidden
}

.hero-image {
    width: 100%;
    height: 646px;
    object-fit: cover;
    object-position: center top;
    border: 0;
    border-radius: 0;
    box-shadow: none
}

.hero-text {
    flex: .92;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 7vw 60px 5vw;
    background: rgba(255, 244, 248, .55);
    backdrop-filter: blur(3px);
    border-radius: 0;
    box-shadow: none
}

.subtitle {
    color: var(--wine);
    font-size: 1.15rem;
    letter-spacing: 7px
}

.title {
    font-size: 6.8rem;
    color: #76266e;
    line-height: .92;
    margin: 8px 0 0
}

.sub-title-2 {
    color: #713267;
    letter-spacing: 5px;
    font-size: 1.15rem
}

.hero-text .quote {
    max-width: 580px;
    margin: 12px auto;
    font-size: 1rem;
    color: #5c4354
}

.date {
    font-size: 1.05rem;
    letter-spacing: 2px;
    margin: 12px 0 18px;
    color: #713267;
    text-transform: uppercase
}

.countdown {
    gap: 10px
}

.time-box {
    min-width: 86px;
    padding: 13px 12px;
    background: rgba(255, 247, 250, .9);
    border: 1px solid #e9bdd1;
    border-radius: 8px
}

.time-box .number {
    font-size: 1.8rem;
    color: #722a69
}

.time-box .label {
    text-transform: none;
    letter-spacing: 0;
    color: #6f5869
}

.quick-nav {
    padding: 20px max(20px, 4vw);
    gap: 0;
    box-shadow: 0 10px 28px rgba(95, 36, 82, .08);
    border-bottom: 1px solid #f0d9e4
}

.quick-item {
    width: auto;
    min-width: 125px;
    padding: 5px 24px;
    border-right: 1px solid #edd8e2
}

.quick-item:last-child {
    border-right: 0
}

.quick-item i {
    color: #8a3477;
    font-size: 1.5rem
}

.quick-item span {
    font-size: .76rem;
    color: #553348
}

.section-padding {
    padding: 82px 5vw
}

.section-header {
    margin-bottom: 38px
}

.section-header h2 {
    font-size: 4rem;
    color: #7b2b70
}

.section-header .small-text {
    color: #6b315f
}

.divider i,
.card-icon {
    color: #a84f89
}

.about {
    background: linear-gradient(180deg, #fff8fb, #fdebf3)
}

.about-content {
    max-width: 1180px
}

.about-text {
    font-family: var(--font-accent);
    color: #5a4051;
    font-size: 1.03rem
}

.about-images {
    min-height: 410px
}

.img-main img,
.img-side img {
    border-radius: 14px;
    border: 4px solid rgba(255, 255, 255, .8)
}

.img-side img {
    height: 198px
}

.details {
    background: linear-gradient(rgba(69, 20, 61, .75), rgba(69, 20, 61, .82)), url('jam.png') center/cover fixed
}

.details .section-header h2,
.details .small-text {
    color: #fff
}

.detail-card {
    background: rgba(255, 249, 251, .96);
    border: 1px solid #efd4e0;
    border-top: 0;
    border-radius: 12px;
    padding: 30px 26px
}

.detail-card:hover {
    transform: translateY(-5px);
    border-top: 0
}

.program {
    background: #fff7fa
}

.timeline-icon {
    border-color: #e4b2ca;
    color: #81306f
}

.timeline::before {
    background: #dca0bc
}

.entourage {
    background: linear-gradient(180deg, #fff, #fff3f8)
}

.entourage-container {
    max-width: 1300px;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px
}

.entourage-card {
    padding: 0 0 18px;
    background: #fff;
    border: 1px solid #edd6e1;
    border-radius: 10px;
    overflow: hidden
}

.entourage-header {
    background: linear-gradient(90deg, #5f2058, #84366f);
    padding: 15px;
    margin: 0 0 12px;
    color: #fff;
    border: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px
}

.entourage-header i,
.entourage-header h3 {
    color: #fff;
    margin: 0
}

.entourage-card ol {
    padding: 0 20px 0 30px;
    list-style-position: outside;
    color: #573e50;
    line-height: 1.55
}

.entourage-card ol li {
    padding: 3px 0;
    border: 0
}

.gallery {
    background: #fff2f7
}

.carousel-slide img {
    height: 360px;
    border: 4px solid #fff;
    border-radius: 10px
}

.carousel-btn {
    background: #742968;
    color: #fff
}

.location {
    background: #fff
}

.map-placeholder {
    background: #fff6fa;
    border: 1px solid #e9cbd9;
    color: #9b6686
}

.rsvp {
    background: linear-gradient(135deg, #4d1648, #7b2c6c)
}

.rsvp-form {
    border-radius: 16px
}

.btn-rsvp,
.btn-primary {
    background: #762969
}

.footer-content h2 {
    font-size: 4.2rem
}

footer {
    background: #35112f
}

@media(max-width:992px) {
    .hero {
        padding-top: 65px
    }

    .hero-content {
        flex-direction: column
    }

    .hero-image {
        height: 620px
    }

    .hero-text {
        padding: 45px 7vw
    }

    .entourage-container {
        grid-template-columns: repeat(2, 1fr)
    }
}

@media(max-width:768px) {
    #navbar {
        background: rgba(83, 28, 75, .96)
    }

    .logo {
        font-size: 2rem
    }

    .hero {
        padding: 62px 0 0;
        min-height: auto
    }

    .hero-image {
        height: 480px
    }

    .hero-text {
        padding: 34px 20px 38px
    }

    .title {
        font-size: 4.7rem
    }

    .subtitle {
        font-size: .82rem;
        letter-spacing: 4px
    }

    .sub-title-2 {
        font-size: .9rem
    }

    .hero-text .quote {
        font-size: .9rem
    }

    .countdown {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        width: 100%;
        gap: 6px
    }

    .time-box {
        min-width: 0;
        padding: 10px 4px
    }

    .time-box .number {
        font-size: 1.4rem
    }

    .quick-nav {
        grid-template-columns: repeat(4, 1fr);
        padding: 14px 8px
    }

    .quick-item {
        min-width: 0;
        width: auto;
        padding: 8px 3px;
        border-right: 0
    }

    .quick-item i {
        font-size: 1.25rem
    }

    .quick-item span {
        font-size: .62rem
    }

    .section-padding {
        padding: 58px 18px
    }

    .section-header h2 {
        font-size: 3.25rem
    }

    .about-images {
        min-height: 300px
    }

    .img-side img {
        height: 143px
    }

    .entourage-container {
        grid-template-columns: 1fr
    }

    .timeline {
        margin-left: 10px
    }

    .carousel-slide img {
        height: 430px
    }

    .rsvp-form {
        padding: 24px 18px
    }
}







/* =========================================================
   FAMILY & SPECIALS SECTION
   ========================================================= */
.family-section {
    background-color: #FFF5F7;
    padding: 80px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.family-section .badge {
    background-color: #FFCBE0;
    color: #922B57;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.family-container {
    width: 100%;
    max-width: 1100px;
    margin: 40px auto 0;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.pillar-card {
    background: #FFF;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.pillar-header {
    background-color: #4A152C;
    color: #E2B357;
    text-align: center;
    padding: 15px 0;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    letter-spacing: 12px;
    font-size: 1.1rem;
}

.pillar-body {
    position: relative;
    min-height: 350px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 40px;
}

.parents-bg {
    background-image: url('parent.png?v=1'), url('bg.png');
    background-size: contain, cover;
    background-position: center bottom, center center;
    background-repeat: no-repeat, no-repeat;
}

.roses-bg {
    background-image: url('bg.png');
}

.pillar-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(30, 5, 15, 0.85) 0%, rgba(30, 5, 15, 0.5) 100%);
    z-index: 1;
    pointer-events: none;
}

.pillar-content {
    position: relative;
    z-index: 2;
    width: 100%;
    color: #FFF;
}

.two-col {
    display: flex;
    justify-content: space-around;
    width: 100%;
    gap: 20px;
}

.pillar-col {
    flex: 1;
    text-align: center;
}

.role-title {
    font-family: 'Parisienne', cursive;
    color: #E2B357;
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    line-height: 1.1;
    margin-bottom: 10px;
    font-weight: 400;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.person-name {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    font-weight: 700;
    margin: 0;
    letter-spacing: 1px;
}

/* Specials Layout (18 Roses) */
.specials-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.specials-list-container {
    flex: 1.5;
}

.specials-title {
    font-family: 'Playfair Display', serif;
    color: #E2B357;
    font-size: clamp(2rem, 3.5vw, 3rem);
    margin: 0 0 5px 0;
    line-height: 1;
    letter-spacing: 2px;
}

.specials-subtitle {
    font-family: 'Lora', serif;
    font-size: 0.8rem;
    letter-spacing: 3px;
    margin-bottom: 20px;
    color: #FFF;
}

.two-col-list {
    display: flex;
    gap: 40px;
    border-top: 1px solid rgba(226, 179, 87, 0.4);
    padding-top: 20px;
}

.two-col-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
}

.two-col-list li {
    font-family: 'Lora', serif;
    font-size: 0.9rem;
    margin-bottom: 8px;
    font-weight: 500;
}

.specials-quote-box {
    flex: 1;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    backdrop-filter: blur(5px);
}

.specials-quote-box h4 {
    color: #E2B357;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin: 0 0 15px 0;
}

.specials-quote-box p {
    font-family: 'Lora', serif;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    /* Keep Parents Side-by-Side */
    .two-col {
        flex-direction: row;
        gap: 5px;
    }

    .role-title {
        font-size: clamp(1.4rem, 6vw, 2rem);
    }
    
    .person-name {
        font-size: clamp(0.7rem, 2.5vw, 1rem);
    }

    /* Specials Content stacks Quote below List */
    .specials-layout {
        flex-direction: column;
    }

    /* Keep Specials Lists Side-by-Side */
    .two-col-list {
        flex-direction: row;
        gap: 15px;
        padding-top: 15px;
    }
    
    .two-col-list li {
        font-size: 0.65rem;
    }
    
    .specials-title {
        font-size: clamp(1.6rem, 6vw, 2.2rem);
    }

    .specials-subtitle {
        font-size: 0.6rem;
    }

    .pillar-body {
        padding: 25px 15px;
    }

    .pillar-header {
        font-size: 0.75rem;
        letter-spacing: 5px;
    }
}

/* NEW MOBILE STACKED HERO LAYOUT (Girl top, Text bottom) */
@media (max-width: 768px) {
    .hero {
        height: auto;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        padding: 60px 0 0 0;
    }
    
    .hero-content {
        display: flex;
        flex-direction: column;
        height: auto;
        padding: 0;
        margin: 0;
        width: 100%;
        max-width: 100%;
    }
    
    .hero-person {
        order: 1;
        width: 100%;
        height: 53vh;
        position: relative;
        display: flex;
        justify-content: center;
        align-items: flex-end;
        z-index: 10;
    }
    
    .hero-girl {
        height: 110%;
        width: auto;
        object-fit: contain;
        object-position: bottom center;
        /* Smooth fade at the bottom of her image into the text */
        -webkit-mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
        mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
    }
    
    .hero-details {
        order: 2;
        width: 100%;
        margin-top: -50px;
        padding: 50px 20px 60px;
        background: linear-gradient(to bottom, rgba(255, 230, 238, 0) 0%, rgba(255, 240, 245, 0.95) 15%, #fff0f5 100%);
        text-align: center;
        z-index: 5;
    }
    
    .hero-invite { font-size: 0.8rem; letter-spacing: 5px; margin-bottom: 5px; }
    .hero-name-wrap { margin-top: 5px; }
    .hero-name { font-size: clamp(4.5rem, 18vw, 6.5rem); }
    .hero-crown { top: -15px; font-size: 1.5rem; }
    .hero-eighteen { font-size: 1.1rem; letter-spacing: 4px; margin-top: 5px; }
    .hero-divider { margin: 15px auto; width: 80%; }
    .hero-message { font-size: 0.85rem; line-height: 1.5; margin: 15px auto; max-width: 90%; }
    .hero-date { font-size: 1.1rem; letter-spacing: 3px; margin-top: 15px; margin-bottom: 20px; }
    
    .countdown {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
        margin-top: 10px;
        max-width: 100%;
    }
    .time-box {
        padding: 10px 5px;
        min-height: 70px;
        background: rgba(255, 255, 255, 0.6);
        border: 1px solid rgba(160, 65, 130, 0.2);
        box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    }
    .time-box .number { font-size: 1.6rem; }
    .time-box .label { font-size: 0.65rem; }
}

@media (max-width: 430px) {
    .hero-person { height: 48vh; }
    .hero-name { font-size: 4.8rem; }
    .time-box { min-height: 65px; padding: 8px 4px; }
    .time-box .number { font-size: 1.4rem; }
    .time-box .label { font-size: 0.55rem; }
}

/* Music Button */
.music-btn { position: fixed; bottom: 20px; right: 20px; background: linear-gradient(135deg, #741969, #e9cad8); color: white; border: none; border-radius: 50%; width: 50px; height: 50px; font-size: 1.2rem; cursor: pointer; box-shadow: 0 4px 15px rgba(0,0,0,0.2); z-index: 1000; display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; }
.music-btn:hover { transform: scale(1.1); }
.music-btn.playing i { animation: rotateMusic 4s linear infinite; }
.music-btn i.fa-play { padding-left: 4px; }
@keyframes rotateMusic { 100% { transform: rotate(360deg); } }

/* Falling Sparkles */
#sparkles-container { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 9999; overflow: hidden; }
.falling-sparkle { position: absolute; top: -20px; color: rgba(255, 255, 255, 0.9); animation: fall linear infinite; text-shadow: 0 0 10px rgba(255,255,255,0.8), 0 0 20px #ffb6df; }
@keyframes fall { 0% { transform: translateY(-20px) rotate(0deg); opacity: 1; } 100% { transform: translateY(110vh) rotate(360deg); opacity: 0; } }

/* =========================================================
   MULTI-STEP INVITATION OVERLAY
   ========================================================= */
body.no-scroll { overflow: hidden; }

.invitation-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url('bg.png?v=5') center/cover no-repeat;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease, visibility 0.8s;
}

.invitation-overlay::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(46, 13, 36, 0.4);
}

.invitation-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* COVER STATE */
.invitation-cover {
    position: absolute;
    width: 100%; height: 100%;
    display: flex; justify-content: center; align-items: center;
    transition: transform 0.8s ease, opacity 0.8s ease;
}

.invitation-cover.opened {
    transform: scale(1.5) translateY(20%);
    opacity: 0;
    pointer-events: none;
}

.cover-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 15px;
}

.cover-top-text {
    margin-bottom: 20px;
    animation: fadeInDown 1s ease;
}

@keyframes fadeInDown {
    0% { opacity: 0; transform: translateY(-20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.cover-subtitle {
    font-family: 'Playfair Display', serif;
    font-size: 0.85rem;
    letter-spacing: 4px;
    color: #ffd1e8;
    margin: 5px 0;
}

.cover-title {
    font-family: 'Parisienne', cursive;
    font-size: 5rem;
    color: #fff;
    text-shadow: 0 4px 15px rgba(0,0,0,0.5);
    margin: 0;
    line-height: 1;
}

.cover-divider { margin: 15px auto; color: #ffb6df; font-size: 0.8rem; }
.cover-date { font-family: 'Playfair Display', serif; font-size: 1.1rem; letter-spacing: 5px; color: #ffd1e8; margin-top: 5px;}

/* CSS ENVELOPE */
.cover-envelope-wrapper {
    margin: 30px 0;
    display: flex;
    justify-content: center;
    animation: pulseCover 2s infinite;
}

.css-envelope {
    position: relative;
    width: 320px;
    height: 220px;
    background: #e3a8b9;
    border-radius: 5px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.6);
    overflow: hidden;
}

.envelope-body {
    position: absolute;
    bottom: 0; left: 0; right: 0; top: 0;
    background: transparent;
}
.envelope-body::before {
    content: ''; position: absolute; top: 0; left: 0; width: 0; height: 0;
    border-style: solid; border-width: 110px 160px;
    border-color: transparent transparent #f5c3d2 transparent;
    z-index: 2;
}
.envelope-body::after {
    content: ''; position: absolute; top: 0; left: 0; width: 0; height: 0;
    border-style: solid; border-width: 110px 160px;
    border-color: transparent #edb8c8 transparent #edb8c8;
    z-index: 1;
}

.envelope-flap {
    position: absolute; top: 0; left: 0; width: 0; height: 0;
    border-style: solid; border-width: 120px 160px 0 160px;
    border-color: #fce1e8 transparent transparent transparent;
    z-index: 3;
    filter: drop-shadow(0 5px 5px rgba(0,0,0,0.15));
}

.wax-seal {
    position: absolute; top: 110px; left: 50%;
    transform: translate(-50%, -50%);
    width: 60px; height: 60px;
    background: radial-gradient(circle at 30% 30%, #741969, #3a0631);
    border-radius: 50%;
    z-index: 4;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.5), 0 5px 10px rgba(0,0,0,0.4);
    display: flex; justify-content: center; align-items: center;
    color: #ffd1e8;
    font-family: 'Parisienne', cursive;
    font-size: 2rem;
    border: 2px solid #511c47;
}

@media (max-width: 400px) {
    .css-envelope { width: 280px; height: 190px; }
    .envelope-body::before, .envelope-body::after { border-width: 95px 140px; }
    .envelope-flap { border-width: 105px 140px 0 140px; }
    .wax-seal { top: 95px; width: 50px; height: 50px; font-size: 1.5rem; }
}

@keyframes pulseCover {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.btn-tap-open {
    background: transparent;
    border: 1px solid #ffd1e8;
    color: #ffd1e8;
    font-family: 'Playfair Display', serif;
    font-size: 0.85rem;
    letter-spacing: 3px;
    padding: 10px 30px;
    border-radius: 30px;
    margin-top: 20px;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s ease;
}
.btn-tap-open:hover {
    background: rgba(255, 209, 232, 0.2);
}
.tap-icon {
    font-size: 1.2rem;
    margin-top: 5px;
    animation: pointUp 1s infinite alternate;
}
@keyframes pointUp {
    0% { transform: translateY(0); }
    100% { transform: translateY(-5px); }
}


/* CARD STATE */
.invitation-card {
    position: absolute;
    width: 100%; height: 100%;
    display: flex; justify-content: center; align-items: center;
    opacity: 0; visibility: hidden;
    transform: translateY(50px) scale(0.95);
    transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    transition-delay: 0.4s;
    z-index: 5;
}

.invitation-card.visible {
    opacity: 1; visibility: visible;
    transform: translateY(0) scale(1);
}

.card-content {
    text-align: center;
    width: 90%;
    max-width: 400px;
}

.invitation-img {
    max-width: 100%;
    height: auto;
    max-height: 65vh;
    border-radius: 15px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
    margin-bottom: 20px;
}

.invitation-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-save {
    background: linear-gradient(135deg, #511c47, #741969);
    color: white;
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    letter-spacing: 2px;
    padding: 15px;
    border-radius: 30px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    transition: transform 0.2s;
    display: block;
}
.btn-save:hover { transform: translateY(-2px); color: white;}

.btn-continue {
    background: linear-gradient(135deg, #fff0f5, #ffe6ee);
    color: #741969;
    font-family: 'Playfair Display', serif;
    font-size: 0.9rem;
    letter-spacing: 1px;
    padding: 15px;
    border-radius: 30px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    font-weight: 600;
}
