:root {
    --white: #FFFFFF;
    --ivory: #FCFBF8;
    --emerald: #0F5A46;
    --gold: #C6A15B;
    --charcoal: #2E2E2E;
    --border-soft: rgba(46, 46, 46, 0.1);
}

/* =========================
   BASE
========================= */
html,
body {
    height: 100%;
    margin: 0;
    overflow: hidden; /* fully disables browser scroll */
}


body {
    background-color: var(--ivory);
    color: var(--charcoal);
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;

    /* soft emerald + gold atmosphere */
    background-image:
        radial-gradient(circle at 15% 20%, rgba(15, 90, 70, 0.10), transparent 45%),
        radial-gradient(circle at 85% 80%, rgba(198, 161, 91, 0.06), transparent 50%);
    animation: ambientShift 12s ease-in-out infinite alternate;
}

@keyframes ambientShift {
    from { transform: scale(1); }
    to { transform: scale(1.03); }
}

/* floating gold dust */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(rgba(198, 161, 91, 0.18) 1px, transparent 1px);
    background-size: 80px 80px;
    animation: dustFloat 25s linear infinite;
    opacity: 0.35;
}

@keyframes dustFloat {
    0% { transform: translateY(0); }
    100% { transform: translateY(-120px); }
}

/* =========================
   TYPOGRAPHY
========================= */

h1, h2, h3, .section-title {
    font-family: 'Playfair Display', serif;
    font-weight: bolder;
}

/* =========================
   LAYOUT
========================= */

.invitation-container {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--white);
    min-height: 100vh;
    position: relative;
}

.left-panel,
.right-panel {
    padding: 20px 40px;
}

.content-wrapper {
    max-width: 480px;
    width: 100%;
}

.vertical-divider {
    width: 1px;
    background: var(--border-soft);
    position: relative;
    margin: 40px 0;
}

/* =========================
   IMAGE FRAME
========================= */

.image-frame {
    position: relative;
    padding: 10px;
    border: 1px solid var(--gold);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    background: var(--white);
    overflow: hidden;
}

.image-frame::after {
    content: "";
    position: absolute;
    inset: -40px;
    background: radial-gradient(circle, rgba(15, 90, 70, 0.08), transparent 60%);
    z-index: 0;
}

.bridal-portrait {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 4 / 4;
    object-fit: cover;
}

@media (max-width: 768px) {
    .bridal-portrait {
        aspect-ratio: 3 / 4;
    }
}

/* =========================
   HERO
========================= */

.personalized-greeting {
    font-size: 1.5rem;
    color: var(--gold);
}

.hero-intro {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.8;
}

.hero-headline {
    font-size: 3rem;
    line-height: 1.1;
    color: var(--emerald);
    animation: gentleFloat 6s ease-in-out infinite;
}

@keyframes gentleFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

.hero-copy {
    font-size: 1.1rem;
    font-weight: 300;
}

/* =========================
   DIVIDER
========================= */

.elegant-divider {
    width: 60px;
    height: 1px;
    background: var(--gold);
}

/* =========================
   DETAILS
========================= */

.section-title {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--emerald);
    position: relative;
    font-weight: bolder;
}

.section-title::after {
    content: "";
    display: block;
    width: 40px;
    height: 2px;
    margin-top: 8px;
    background: linear-gradient(to right, var(--emerald), transparent);
}

.detail-item {
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.detail-item:hover {
    transform: translateX(5px);
}

.detail-item p {
    margin: 0;
    font-size: 1rem;
}

.detail-item .icon {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

/* =========================
   RSVP
========================= */

.rsvp-buttons {
    display: flex;
    gap: 15px;
}

.btn-rsvp {
    flex: 1;
    padding: 18px;
    border: 1px solid var(--gold);
    background: transparent;
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    border-radius: 0;
    transition: all 0.3s ease;
}

.btn-rsvp:hover {
    border-color: var(--emerald);
    color: var(--emerald);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(15, 90, 70, 0.15);
}

.btn-rsvp.active-yes {
    background: var(--emerald);
    color: var(--white);
}

.btn-rsvp.active-no {
    background: var(--charcoal);
    color: var(--white);
}

/* =========================
   INPUTS
========================= */

.custom-input {
    border: none;
    border-bottom: 1px solid var(--border-soft);
    border-radius: 0;
    padding: 12px 0;
    background: transparent !important;
}

.custom-input:focus {
    box-shadow: none;
    border-color: var(--gold);
}

.form-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gold);
}

/* =========================
   BUTTON
========================= */

.btn-submit {
    background: var(--emerald);
    color: var(--white);
    border-radius: 0;
    padding: 15px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-top: 20px;
    border: none;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(15, 90, 70, 0.15);
}

/* =========================
   STATUS + FOOTER
========================= */

.status-badge {
    display: inline-block;
    padding: 8px 20px;
    background: var(--ivory);
    border: 1px solid var(--gold);
    color: var(--emerald);
    font-weight: 600;
}

.footer-text {
    font-size: 0.85rem;
    color: var(--gold);
    font-style: italic;
    opacity: 0.8;
}

/* =========================
   ANIMATION
========================= */

.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================
   DESKTOP
========================= */

@media (min-width: 992px) {
    .main-row {
        height: 100vh;
        overflow: hidden;
    }

    .left-panel,
    .right-panel {
        height: 100vh;
        overflow-y: auto;
    }
}

/* =========================
   MOBILE FULL SCREEN SECTIONS
========================= */
@media (max-width: 768px) {

    .btn-rsvp {
    padding: 10px;
    border: 1px solid var(--gold);
    font-size: 14px;

}
}
@media (max-width: 991px) {

    .main-row {
        flex-direction: column;
    }

    .invitation-container {
        height: 100vh;
        overflow-y: scroll;
        scroll-snap-type: y mandatory;
    }

    .left-panel,
    .right-panel {
        min-height: 100vh;
        height: auto;
        display: flex;
        align-items: center;
        justify-content: center;
        scroll-snap-align: start;
        top: -15px;
    }

    .hero-headline {
        font-size: 2.2rem;
    }
}

@media (min-width: 992px) {

    .main-row {
        height: 100vh;
        display: flex;
        overflow-y: auto;
        overflow-x: hidden;

        /* Firefox */
        scrollbar-width: thin;
        scrollbar-color: #C6A15B transparent;
    }

    
}

html,
body {
    height: 100%;
    margin: 0;
    overflow: hidden; /* removes browser scroll */
}

@media (min-width: 992px) {

    .main-row {
        height: 100vh;
        display: flex;
        overflow: hidden; /* no scrolling here */
    }

    .left-panel {
        /* height: 100vh; */
        overflow: hidden; /* static left side */
    }

    /* ONLY THIS SECTION SCROLLS */
    section.right-panel {
        height: 100vh;
        overflow-y: auto;
        overflow-x: hidden;

        /* IMPORTANT: override flex centering for scroll to work properly */
        justify-content: flex-start !important;
        align-items: center;

        /* spacing so content doesn't stick to top */
        padding-top: 40px;
        padding-bottom: 40px;

        /* Firefox */
        scrollbar-width: thin;
        scrollbar-color: #C6A15B transparent;
    }

    /* Chrome / Edge / Safari */
    section.right-panel::-webkit-scrollbar {
        width: 5px;
    }

    section.right-panel::-webkit-scrollbar-track {
        background: transparent;
    }

    section.right-panel::-webkit-scrollbar-thumb {
        background: #C6A15B;
        border-radius: 999px;
    }

    section.right-panel::-webkit-scrollbar-thumb:hover {
        background: #b38d45;
    }
}

/* scroll button  */

.scroll-hint {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;

    background: transparent;
    border: none;
    cursor: pointer;

    color: #d4af37;
    font-size: 30px;

    display: none;

    animation: floatPulse 1.8s ease-in-out infinite;
}

/* only mobile */
@media (max-width: 768px) {
    .scroll-hint {
        display: block;
    }
}

/* throb animation */
@keyframes floatPulse {
    0% { transform: translateY(0); opacity: 0.5; }
    50% {
        transform: translateY(10px);
        opacity: 1;
        filter: drop-shadow(0 0 8px rgba(212,175,55,0.7));
    }
    100% { transform: translateY(0); opacity: 0.5; }
}