/* --- THEME & VARIABLES --- */
:root {
    --bg-color: #f4f4f4; 
    --dusty-blue: #5B7C99; 
    --text-dark: #444444;
    --accent: #A2B5C1;
    --white: #ffffff;
    --shadow: rgba(0, 0, 0, 0.4);
    --gray-palette: #95A5A6;
    --app-width: 450px; 
    --gold: #D4AF37;
}

html {
    scroll-behavior: smooth;
    box-sizing: border-box;
    background-color: #e2e8f0; 
}

*, *:before, *:after {
    box-sizing: inherit;
}

body {
    margin: 0 auto;
    padding-top: 70px;
    /* Pinalitan natin ang solid color ng background image */
    background-image: url('images/wedding-bg.png'); /* Siguraduhin na tama ang pangalan ng picture */
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Para hindi gumalaw ang picture pag nag-scroll */
    background-repeat: no-repeat;
    
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    overflow-x: hidden;
    width: 100%;
    max-width: var(--app-width);
    min-height: 100dvh;
    box-shadow: 0 0 40px rgba(0,0,0,0.15);
    position: relative;
}
main {
    background-color: rgba(255, 255, 255, 0.85); /* 85% solid white para kitang-kita ang text pero bakas pa rin ang drawing */
    backdrop-filter: blur(8px); /* Pampalabo ng background image sa likod ng text */
    border-radius: 20px;
    margin: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
}

body.no-scroll {
    overflow: hidden;
    height: 100vh;
}

/* --- SPLASH SCREEN --- */
#splash-screen {
    position: fixed;
    top: 0; 
    left: 50%;
    transform: translateX(-50%);
    width: 100%; 
    max-width: var(--app-width);
    height: 100vh;
    
    /* DITO NATIN ILALAGAY YUNG BLUE LOGO NIYO */
    /* Palitan ang 'images/blue-logo.png' kung iba ang pangalan ng picture mo */
    background-image: url('images/wedding-bg.png'); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
    z-index: 9999; 
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
    padding: 20px;
}

.splash-content {
    width: 100%;
    max-width: 380px;
    animation: textFadeInUp 1.5s forwards 0.5s;
    opacity: 0;
    text-align: center;
    
    /* Puting background para lumutang ang greeting text */
    background: rgba(255, 255, 255, 0.9);
    padding: 40px 20px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.splash-title {
    font-family: 'Loveleigh Loops', cursive; 
    font-size: 3.5rem;
    color: var(--dusty-blue);
    margin-bottom: 20px;
    line-height: 1.2;
}

.splash-message {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 40px;
    font-weight: 300;
}

.splash-btn {
    background-color: var(--dusty-blue);
    color: var(--white);
    border: none;
    padding: 15px 35px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 50px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.splash-btn:hover {
    background-color: var(--accent);
    transform: scale(1.05);
}

@keyframes textFadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- NAVIGATION FIXED --- */
nav {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--app-width);
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(15px);
    z-index: 99999;
    padding: 12px 10px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    border-bottom: 1px solid rgba(212,175,55,.2);
}

nav a {
    text-decoration: none;
    color: var(--dusty-blue);
    font-size: .8rem;
    font-weight: 500;
    white-space: nowrap;
}

nav a:hover {
    color: #2c3e50;
}

/* --- HERO SECTION --- */
.hero-moving-scene {
    position: relative;
    width: 100%;
    min-height: 100dvh;
    overflow: hidden;
    background-image: url('images/simbahan.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* 🌿 MOVING FLORAL OVERLAY 🌿 */
.floral-overlay {
    position: absolute;
    top: 0; left: 0; 
    width: 100%; height: 200%;
    background-image: url('https://www.transparenttextures.com/patterns/white-floral-motif.png');
    opacity: 0.4;
    z-index: 2;
    pointer-events: none;
    animation: driftFlorals 40s linear infinite;
}

@keyframes driftFlorals {
    from { transform: translateY(0); }
    to { transform: translateY(-50%); }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            rgba(91,124,153,.35),
            rgba(91,124,153,.55)
        );
    z-index: 2;
}
.couple-outline {
    position: absolute;
    inset: 0;
    background: url('images/couple-outline.png') center center no-repeat;
    background-size: contain;
    opacity: .18;
    z-index: 1;
}

.hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 80px;
    text-align: center;
    z-index: 5;
}

/* 💍 GOLD ELEGANT FRAME */
.name-frame {
    position: relative;
    max-width: 100%;
    width: 100%;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
    text-align: center;
}

.floating-names {
    font-family: 'Loveleigh Loops', cursive;
    font-size: clamp(5.5rem, 14vw, 9rem);
    color: #ffffff;
    letter-spacing: 2px;

    text-shadow:
        0 2px 5px rgba(0,0,0,.3),
        0 5px 15px rgba(0,0,0,.25),
        0 0 35px rgba(212,175,55,.15);
}
.floating-names span {
    display: inline-block;
    transform: translateY(0);
}


@media (max-width: 480px) {
    .floating-names {
        font-size: 4.5rem;
        line-height: .95;
    }
}
.hero-subtitle {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,.6);
}

.hero-countdown {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 50px;
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.2);
    color: #fff;
    margin-top: 20px;
    font-weight: 600;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* --- GENERAL SECTIONS --- */
.details-section {
    padding: 40px 20px;
}

.details-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: #5B7C99;
    text-align: center;
    margin-bottom: 5px;
}

.details-section h2::after {
    content: "";
    display: block;
    width: 80px;
    height: 2px;
    background: #D4AF37;
    margin: 15px auto 0;
}

.section-divider {
    width: 80px;
    height: 2px;
    background-color: var(--accent);
    margin: 0 auto 40px auto;
}

.story-text {
    font-size: 0.95rem;
    line-height: 1.9;
    width: 100%;
    margin: 0 auto 20px auto;
    text-align: left;
    font-weight: 300;
}

.details-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
    justify-content: center;
}

.detail-box {
    background: rgba(255,255,255,.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(212,175,55,.15);
    border-radius: 25px;
    padding: 25px 20px;
    transition: .4s;
}

.detail-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,.1);
}

.detail-box h3 {
    font-family: 'Playfair Display', serif;
    color: var(--dusty-blue);
    font-size: 1.3rem;
    margin-top: 0;
    border-bottom: 2px solid #eef2f5;
    padding-bottom: 15px;
}

.map-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 22px;
    background-color: var(--dusty-blue);
    color: var(--white);
    text-decoration: none;
    border-radius: 25px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.2s;
}

.map-btn:hover {
    background-color: var(--accent);
    transform: translateY(-2px);
}

/* --- ATTIRE GUIDE --- */
.attire-container {
    background-color: var(--white);
    padding: 35px 20px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    width: 100%;
    margin: 0 auto;
}

.color-palette {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.color-circle {
    width: 55px; height: 55px;
    border-radius: 50%;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1), 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.color-circle:hover { transform: scale(1.15); }
.c-dusty-blue { background-color: var(--dusty-blue); }
.c-gray { background-color: var(--gray-palette); }
.c-light-gray { background-color: #D6DBDF; }
.c-white { background-color: #FFFFFF; border: 1px solid #E5E7E9; }

.attire-text {
    font-size: 0.95rem;
    line-height: 1.8;
    margin: 0 auto;
    text-align: left;
}

/* --- ENTOURAGE --- */

.entourage-elegant {
    /* Ginawang rgba para may transparency (0.9) */
    background: linear-gradient(180deg, rgba(91,124,153, 0.9) 0%, rgba(111,141,167, 0.9) 100%);
    padding: 40px 20px;
    border-radius: 24px;
    color: #fff;
    box-shadow: 0 10px 30px rgba(91,124,153,0.18);
    position: relative;
    overflow: hidden;
    text-align: center;
    backdrop-filter: blur(5px); /* Dagdag blur */
}

.entourage-main-title {
    letter-spacing: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #dbe7f1;
    margin-bottom: 8px;
    position: relative;
    z-index: 2;
}

.entourage-script {
    font-family: 'Loveleigh Loops', cursive;
    font-size: 2.5rem;
    line-height: 1;
    color: #fff;
    margin-bottom: 12px;
    position: relative;
    z-index: 2;
}

.entourage-sub {
    font-size: 0.9rem;
    color: #edf3f8;
    margin-bottom: 40px;
    font-style: italic;
    position: relative;
    z-index: 2;
}

.entourage-block {
    margin-bottom: 30px;
    padding: 25px 20px;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 18px;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(3px);
    position: relative;
    z-index: 2;
}

.entourage-block h3 {
    text-align: center;
    font-size: 0.8rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #dce9f3;
    margin-bottom: 28px;
    font-weight: 600;
}

.entourage-block h3::after {
    content: '';
    display: block;
    width: 55px;
    height: 1px;
    margin: 12px auto 0;
    background: rgba(255,255,255,0.25);
}

.entourage-grid, .special-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
}

.entourage-grid > div, .special-row > div {
    border: 1px solid rgba(255,255,255,0.15);
    padding: 18px;
    border-radius: 14px;
    background: rgba(255,255,255,0.04);
    text-align: left;
}

.entourage-side-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #f3d9ba;
    margin-bottom: 12px;
    font-weight: 600;
    letter-spacing: 2px;
}

.entourage-name {
    font-size: 1rem;
    line-height: 1.9;
    color: #fff;
    font-weight: 300;
}

.entourage-role {
    margin-top: 12px;
    font-size: 0.82rem;
    color: #f8eeee;
    font-style: italic;
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 10px;
    opacity: .9;
}

/* --- GALLERY --- */
.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    background-color: var(--white);
    height: 250px; 
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s cubic-bezier(0.215, 0.610, 0.355, 1), transform 1s cubic-bezier(0.215, 0.610, 0.355, 1);
}

.gallery-item.reveal { opacity: 1; transform: translateY(0); }

.gallery-item img {
    width: 100%; height: 100%;
    object-fit: cover; 
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    display: block;
}

.gallery-item:hover img { transform: scale(1.08); }

/* --- GIFT SECTION --- */
.gift-container {
    background: var(--white);
    padding: 35px 20px;
    border-radius: 18px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

.gift-title {
    font-family: 'Playfair Display', serif;
    color: var(--dusty-blue);
    font-size: 1.6rem;
    margin-bottom: 15px;
}

.gift-message {
    font-size: 0.95rem;
    line-height: 1.9;
    color: #666;
    margin-bottom: 35px;
    font-weight: 300;
    text-align: left;
}

.qr-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.qr-card {
    background: #fafafa;
    border-radius: 18px;
    padding: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
}

.qr-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(91,124,153,0.12);
}

.qr-card img {
    width: 100%;
    border-radius: 12px;
    height: auto;
}

.qr-label {
    margin-top: 12px;
    font-size: 0.85rem;
    letter-spacing: 1px;
    font-weight: 600;
    color: var(--dusty-blue);
}

.gift-footer {
    margin-top: 25px;
    font-size: 0.9rem;
    color: #888;
    font-style: italic;
}

/* --- RSVP FORM --- */
.rsvp-container {
    background-color: var(--white);
    padding: 35px 20px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    width: 100%;
    margin: 0 auto;
    text-align: left;
}

/* --- MUSIC & LIGHTBOX --- */
.music-control {
    position: fixed;
    bottom: 20px; 
    right: 20px;
    background-color: var(--accent);
    color: var(--white);
    border: none; border-radius: 50px;
    padding: 10px 20px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem; font-weight: 500;
    cursor: pointer;
    box-shadow: 0 4px 15px var(--shadow);
    transition: all 0.3s ease;
    z-index: 1000;
}

.music-control:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 8px 25px rgba(91, 124, 153, 0.4);
}

.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: opacity, transform;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

#lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
}

/* =====================================
     CLEAN RESPONSIVE MEDIA QUERIES
===================================== */

/* Small Viewports (Phablets and Mobile Frames) */
@media screen and (max-width: 480px) {
    html { 
        background-color: var(--bg-color); 
    }
    body { 
        max-width: 100%; 
        box-shadow: none; 
        padding-top: 90px;
    }
    #splash-screen, nav { 
        left: 0; 
        transform: none; 
        max-width: 100%; 
    }
    nav {
        padding: 10px 5px;
        gap: 6px;
    }
    nav a {
        font-size: .7rem;
    }
    .name-frame {
        width: 100%;
        max-width: 95%;
        padding: 20px 15px;
    }
    .floating-names {
        font-size: 2.2rem;
    }
    .hero-subtitle {
        font-size: .75rem;
        letter-spacing: 1px;
    }
    .hero-countdown {
        font-size: .75rem;
        padding: 10px 18px;
        letter-spacing: 1px;
    }
    .details-section h2 {
        font-size: 1.7rem;
    }
    .entourage-script {
        font-size: 2rem;
    }
    .gift-title {
        font-size: 1.5rem;
    }
    .gallery-item {
        height: 220px;
    }
    .story-text, .attire-text, .gift-message {
        font-size: .9rem;
    }
}
/* --- GALLERY UPGRADED GRID & ANIMATION --- */
.gallery-section {
    padding: 40px 15px;
    text-align: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Swak na 2 columns sa loob ng 450px frame */
    gap: 12px; /* Mas compact at eleganteng espasyo para sa mobile */
    padding: 5px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px; /* Mas bilugan para sa modernong look */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    background-color: var(--white);
    height: 180px; /* Uniform height para pantay-pantay ang grid */
    
    /* Base state para sa animation */
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), 
                transform 0.8s cubic-bezier(0.25, 1, 0.5, 1),
                box-shadow 0.3s ease;
}

/* Pag pumasok na sa screen (tatawagin ng JavaScript o kaya pwede ring i-load agad) */
.gallery-item.reveal {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Hindi mayuyupi ang picture */
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

/* ✨ Interactive Hover Effects */
.gallery-item:hover {
    box-shadow: 0 10px 20px rgba(91, 124, 153, 0.3);
}

.gallery-item:hover img {
    transform: scale(1.08); /* Swabeng zoom pag pinindot o tinap */
}

/* Overlay Effect (Optional: Magpapakita ng translucent filter pag kinuha ang hover) */
.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(0,0,0,0.2));
    opacity: 1;
    pointer-events: none;
    transition: opacity 0.3s;
}

.gallery-item:hover::after {
    opacity: 0.5;
}

/* --- MEDIA QUERIES ADJUSTMENT --- */
@media screen and (max-width: 480px) {
    .gallery-grid {
        gap: 8px; /* Mas manipis na gap sa maliliit na screen */
    }
    .gallery-item {
        height: 150px; /* Medyo liliit ang height para sakto sa paningin */
        border-radius: 10px;
    }
}
.sparkles{
    position:absolute;
    inset:0;
    overflow:hidden;
    z-index:3;
}

.sparkles::before,
.sparkles::after{
    content:'';
    position:absolute;
    width:100%;
    height:100%;
    background-image:
        radial-gradient(circle,#D4AF37 1px,transparent 1px);
    background-size:80px 80px;
    opacity:.4;
    animation: sparkleMove 25s linear infinite;
}

.sparkles::after{
    animation-direction:reverse;
}
@keyframes sparkleMove{
    from{transform:translateY(0);}
    to{transform:translateY(-200px);}
}
.details-section h2::before,
.details-section h2::after{
    content:"";
    display:inline-block;
    width:50px;
    height:1px;
    background:#D4AF37;
    vertical-align:middle;
    margin:0 10px;
}