/* ====================================================
   GLOBAL STYLES + BACKGROUND
==================================================== */
body {
    margin: 0;
    font-family: 'Lora', serif;
    background: url('images/island-bg.jpg') no-repeat center center fixed;
    background-size: cover;
    color: #333;
    position: relative;
    min-height: 100vh;
}

body::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(255,255,255,0.85),
        rgba(255,255,255,0.45),
        rgba(255,255,255,0.18)
    );
    z-index: 0;
}

/* ====================================================
   SPARKLES
==================================================== */
.sparkles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, rgba(255,255,255,0.8) 2px, transparent 2px);
    background-size: 3px 3px;
    opacity: 0.32;
    animation: sparkleFlow 18s linear infinite;
    z-index: 1;
}

@keyframes sparkleFlow {
    0% { transform: translateY(0); opacity: 0.25; }
    50% { opacity: 0.45; }
    100% { transform: translateY(-180px); opacity: 0.25; }
}

/* ====================================================
   NAVIGATION BAR — PINNED & SAFE
==================================================== */
nav {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(6px);
    padding: 22px 50px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 40px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.12);
}

.left-nav {
    position: absolute;
    left: 50px;
}

.right-nav {
    display: flex;
    gap: 28px;
    margin-left: auto;
}

nav a {
    font-size: 23px;
    color: #333;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

nav a:hover {
    background: rgba(212,176,122,0.22);
}

.nav-rsvp {
    color: #b23a3a;
    font-weight: 600;
}

.nav-rsvp:hover {
    background: rgba(178,58,58,0.18);
}

/* ====================================================
   HOMEPAGE — FLOATING INVITATION CARD
==================================================== */
.floating-card {
    position: relative;
    z-index: 3;
    max-width: 700px;
    margin: 70px auto 90px;
    padding: 60px 45px;
    background: rgba(255,255,255,0.28);
    backdrop-filter: blur(12px);
    border-radius: 24px;
    box-shadow:
        0 0 50px rgba(255,230,190,0.55),
        0 0 90px rgba(255,240,215,0.35);
    animation: cardFloat 8s ease-in-out infinite;
}

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

.decor-top {
    width: 260px;
    height: 360px;
    object-fit: cover;
    object-position: center 25%;
    border-radius: 18px;
    display: block;
    margin: 0 auto 30px;
    box-shadow: 0 8px 22px rgba(0,0,0,0.18);
}

.card-content { text-align: center; }

.couple-name {
    font-family: 'Gwendolyn', cursive;
    font-size: 82px;
    margin-bottom: 15px;
}

.invite-subtitle {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    margin-bottom: 35px;
}

.invite-date {
    font-size: 30px;
    font-weight: 600;
}

.invite-location {
    font-size: 19px;
    margin-bottom: 25px;
}

.invite-description {
    font-size: 17px;
    line-height: 1.75;
}

/* ====================================================
   MAP LINK — HOVER ONLY
==================================================== */
.map-link {
    margin-top: 20px;
    text-align: center;
}

.map-link a {
    display: inline-block;
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 600;
    color: #3b4b50;
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 20px;
    transition: all 0.35s ease;
}

.map-link a:hover {
    background: rgba(212,176,122,0.18);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212,176,122,0.35);
}

/* ====================================================
   PAGE CONTENT (ALL OTHER PAGES)
==================================================== */
.page-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    margin: 120px auto 80px;
    padding: 50px;
    background: rgba(255,255,255,0.65);
    backdrop-filter: blur(5px);
    border-radius: 18px;
}

/* ====================================================
   TITLES & STORY
==================================================== */
.story-main-title {
    font-family: 'Gwendolyn', cursive;
    font-size: 78px;
    text-align: center;
}

.story-icon {
    font-size: 32px;
    color: #d4b07a;
    animation: heartbeat 2.5s infinite;
}

@keyframes heartbeat {
    0%,40%,100% { transform: scale(1); }
    20% { transform: scale(1.15); }
}

.gold-line {
    width: 130px;
    height: 3px;
    background: linear-gradient(to right,#d4b07a,#f7e8c8,#d4b07a);
    margin: 30px auto;
}

.section-title {
    font-size: 26px;
    text-align: center;
    margin: 45px 0 15px;
}

.story-text {
    font-size: 17px;
    line-height: 1.9;
    text-align: justify;
    text-indent: 15px;
}

/* ====================================================
   RSVP — FULLY RESTORED
==================================================== */
.rsvp-intro { line-height: 1.8; }

.rsvp-notice {
    background: rgba(255,255,255,0.75);
    border-left: 4px solid #d4b07a;
    padding: 20px 25px;
    border-radius: 10px;
    margin: 30px auto;
}

.rsvp-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.rsvp-form label {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

.rsvp-form input,
.rsvp-form select,
.rsvp-form textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid #ccc;
    background: rgba(255,255,255,0.9);
}

#guest-count-section,
#not-attending-name-section {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid rgba(212,176,122,0.4);
}

#guest-names-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rsvp-form button {
    margin-top: 15px;
    align-self: center;
    min-width: 220px;
    background: #3b4b50;
    color: white;
    padding: 14px;
    border-radius: 8px;
    border: none;
}

/* ====================================================
   FLYING DOVE
==================================================== */
.flying-dove {
    position: absolute;
    top: 230px;
    right: -80px;
    animation: doveFlightRTL 32s linear infinite;
    pointer-events: none;
}

.flying-dove img {
    width: 72px;
    height: 72px;
    animation: doveFloat 0.6s ease-in-out infinite;
}

@keyframes doveFlightRTL {
    0% { transform: translateX(0); opacity: 0; }
    10% { opacity: 0.85; }
    100% { transform: translateX(-115vw); opacity: 0; }
}

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

/* ====================================================
   FOOTER
==================================================== */
footer {
    background: rgba(255,255,255,0.78);
    padding: 25px;
    text-align: center;
    margin-top: 60px;
}

/* ====================================================
   MOBILE — CLEAN & ISOLATED
==================================================== */
/* ====================================================
   MOBILE NAV — FIXED ALIGNMENT
==================================================== */
@media (max-width: 768px) {

    nav {
        flex-direction: column;
        align-items: center;
        padding: 14px 12px;
        gap: 10px;
    }

    /* Merge left + right nav visually */
    .left-nav,
    .right-nav {
        position: static;
        width: 100%;
        display: contents; /* IMPORTANT */
    }

    /* Unified grid for all nav links */
    nav {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    nav a {
        text-align: center;
        padding: 10px 6px;
        font-size: 14px;
        border-radius: 10px;
        background: rgba(255,255,255,0.75);
        white-space: nowrap;
        transition: background 0.3s ease;
    }

    nav a:hover {
        background: rgba(212,176,122,0.25);
        opacity: 1;
    }

    /* RSVP full width on its own row */
    nav a[href="rsvp.html"] {
        grid-column: 1 / -1;
        background: rgba(180,40,40,0.85);
        color: white;
        font-weight: 600;
    }


    .floating-card {
        margin: 40px 16px;
        padding: 35px 22px;
        animation: none;
    }

    .decor-top {
        width: 200px;
        height: 280px;
    }

    .couple-name { font-size: 56px; }

    .page-content {
        margin: 40px 16px;
        padding: 28px 22px;
    }

    .story-main-title { font-size: 48px; }

    .story-text {
        font-size: 15px;
        text-indent: 0;
    }

    .flying-dove {
        top: 160px;
        animation-duration: 45s;
    }

    .flying-dove img {
        width: 56px;
        height: 56px;
    }
     /* Fix Mauritius map on mobile */
    .map-container {
        margin: 20px auto 25px;
        padding: 0;
    }

    .mauritius-map {
        width: 100%;
        max-width: 100%;
        height: auto;

        /* HARD LIMIT so it never dominates */
        max-height: 220px;

        object-fit: contain;
        border-radius: 14px;
    }
}




