/* EVRENSEL KUTU MODELİ SIFIRLAMASI (Taşmaları Engeller) */
*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --bg-main: #fbfaf8;
    --text-dark: #2a2a2a;
    --border-light: rgba(197, 168, 128, 0.25);
    --glass-bg: rgba(255, 255, 255, 0.7);
    /* --theme-primary, --theme-secondary ve --theme-tertiary değişkenleri HTML içinden dinamik olarak gelir */
}

body {
    margin: 0;
    background-color: var(--bg-main);
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
    font-weight: 300;
    overflow-x: hidden;
}

h1, 
h2, 
h3, 
.serif {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    margin: 0;
}

/* 1. SCROLL PROGRESS BAR */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: var(--theme-primary);
    width: 0%;
    z-index: 9999;
    transition: width 0.1s ease;
}

.container {
    width: 100%;
    position: relative;
    background: var(--bg-main);
    overflow: hidden;
}

.module-inner {
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

/* --- CSS KEYFRAMES --- */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0px); }
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(189, 165, 136, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(189, 165, 136, 0); }
    100% { box-shadow: 0 0 0 0 rgba(189, 165, 136, 0); }
}

/* 2. HERO (KAPAK) & PARALLAX */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 20px;
}

.hero-bg {
    position: absolute;
    inset: -50px;
    background-size: cover;
    background-position: center;
    filter: brightness(0.65);
    z-index: 1;
    will-change: transform;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #ffffff;
    width: 100%;
    max-width: 450px;
    padding: 50px 20px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 200px 200px 0 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: float 6s ease-in-out infinite; 
}

.hero-subtitle {
    font-size: 0.7rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: var(--theme-primary);
}

.hero-names {
    font-size: clamp(2.5rem, 8vw, 4rem);
    line-height: 1.1;
    letter-spacing: 1px;
}

.hero-names .ampersand {
    display: block;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: clamp(2.2rem, 7vw, 3.5rem);
    color: var(--theme-primary);
    margin: -10px 0;
    opacity: 0.8;
}

.hero-date {
    font-size: 0.95rem;
    letter-spacing: 3px;
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    padding-top: 15px;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
}

/* 3. MODÜL STANDARTLARI (Mobil Optimize) */
.module {
    padding: 60px 5%;
    text-align: center;
    position: relative;
}

.section-title {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    color: var(--theme-primary);
    margin-bottom: 30px;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
}

.accent-line {
    width: 1px;
    height: 40px;
    background-color: var(--theme-primary);
    margin: 0 auto 20px;
}

/* 4. HİKAYE */
.story-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.story-img-wrap {
    position: relative;
    width: 220px;
    height: 300px;
    margin: 0 auto 30px;
    perspective: 1000px;
}

.story-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 110px 110px 0 0;
    position: relative;
    z-index: 2;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.story-img-bg {
    position: absolute;
    top: -12px;
    left: -12px;
    width: 100%;
    height: 100%;
    background-color: var(--theme-secondary);
    border-radius: 110px 110px 0 0;
    z-index: 1;
    will-change: transform;
}

.story-text {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #555;
    max-width: 100%;
    padding: 0 10px;
}

/* 5. GALERİ (MASONRY) */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    grid-auto-flow: dense;
}

.gallery-item {
    overflow: hidden;
    border-radius: 4px;
    position: relative;
    cursor: zoom-in;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.gallery-item:hover::after {
    opacity: 1;
}

.gallery-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(15%);
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.8s ease;
}

.gallery-item:hover img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.gallery-grid .wide {
    grid-column: span 2;
    height: 200px;
}

.gallery-grid .tall {
    grid-row: span 2;
    height: 300px;
}

.gallery-grid .square {
    height: 150px;
}

/* LIGHTBOX */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
}

.lightbox.show {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-width: 95%;
    max-height: 90%;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.4s ease;
    border-radius: 4px;
}

.lightbox.show .lightbox-content {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 25px;
    color: #fff;
    font-size: 2.5rem;
    font-weight: 300;
    cursor: pointer;
    transition: 0.3s;
}

.lightbox-close:hover {
    color: var(--theme-primary);
}

/* 6. PROGRAM AKIŞI */
.timeline-modern {
    border-left: 1px solid var(--border-light);
    padding-left: 25px;
    margin: 0 auto;
    max-width: 280px;
    text-align: left;
}

.tl-item {
    position: relative;
    margin-bottom: 35px;
}

.tl-item::before {
    content: '';
    position: absolute;
    left: -30px;
    top: 6px;
    width: 8px;
    height: 8px;
    background: var(--bg-main);
    border: 2px solid var(--theme-primary);
    border-radius: 50%;
    transition: 0.3s ease;
}

.tl-item:hover::before {
    background: var(--theme-primary);
    box-shadow: 0 0 10px var(--theme-primary);
}

.tl-time {
    font-size: 1.4rem;
    color: var(--theme-primary);
    margin-bottom: 5px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.tl-item:hover .tl-time {
    transform: translateX(5px);
}

.tl-text {
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #666;
}

/* 7. GERİ SAYIM (Mobil Optimize Kutular) */
.countdown-wrapper {
    padding: 50px 10px;
    background: var(--bg-main);
    display: flex;
    justify-content: center;
}

.countdown-box {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.cd-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 65px;
    height: 75px;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    background: #ffffff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
}

.cd-num {
    font-size: 1.5rem;
    font-family: 'Playfair Display', serif;
    color: var(--theme-primary);
    line-height: 1;
}

.cd-lbl {
    font-size: 0.55rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dark);
    margin-top: 6px;
}

/* 8. LOJİSTİK VE SSS */
.info-card {
    border: 1px solid var(--border-light);
    padding: 20px;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.02);
    transition: transform 0.3s ease;
    margin-bottom: 15px;
}

.info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.info-card h4 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--theme-primary);
}

.info-card p {
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
    color: #555;
}

.faq-card {
    text-align: left;
    background: #ffffff;
    border: 1px solid var(--border-light);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.faq-card h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--theme-primary);
}

.faq-card p {
    font-size: 0.85rem;
    line-height: 1.6;
    color: #666;
    margin: 0;
}

/* 9. DRESS CODE */
.dc-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
}

.dc-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
    color: #888;
}

.color-row {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.color-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.color-circle:hover {
    transform: scale(1.15);
}

/* 10. LCV FORMU */
.rsvp-form-container {
    background: #ffffff;
    padding: 40px 25px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-light);
    width: 100%;
    margin: 0 auto;
}

.input-group {
    position: relative;
    margin-bottom: 25px;
    width: 100%;
}

.form-input {
    width: 100%;
    padding: 12px 10px;
    background: transparent;
    border: none;
    border-bottom: 1px solid #ddd;
    color: var(--text-dark);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
    text-align: left;
    border-radius: 0;
    -webkit-appearance: none;
}

.form-input:focus {
    outline: none;
    border-bottom-color: var(--theme-primary);
}

.form-input::placeholder {
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
}

.btn-submit {
    background: var(--text-dark);
    color: #fff;
    border: none;
    padding: 20px;
    width: 100%;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: 0.4s;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    margin-top: 10px;
    display: block;
}

.btn-submit::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--theme-primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 1;
}

.btn-submit:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.btn-submit span {
    position: relative;
    z-index: 2;
}

/* 11. SCROLL REVEAL ANİMASYONLARI */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-stagger {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-stagger.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   MASAÜSTÜ İÇİN IZGARA DÜZENİ
   ========================================================================== */
@media (min-width: 992px) {
    .hero-content {
        padding: 70px 40px;
        max-width: 500px;
    }

    .module {
        padding: 100px 5%;
    }
    
    .story-wrapper {
        flex-direction: row;
        justify-content: center;
        gap: 80px;
        text-align: left;
    }
    
    .story-img-wrap {
        margin: 0;
        width: 350px;
        height: 480px;
    }
    
    .story-content {
        max-width: 500px;
    }
    
    .story-content .accent-line {
        margin: 0 0 30px 0;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }

    .gallery-grid .wide {
        height: 280px;
    }

    .gallery-grid .tall {
        height: 380px;
    }

    .gallery-grid .square {
        height: 220px;
    }

    .countdown-box {
        gap: 20px;
    }

    .cd-item {
        width: 80px;
        height: 90px;
    }

    .cd-num {
        font-size: 2rem;
    }
    
    .logistics-wrapper {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 80px;
        text-align: left;
        align-items: center;
    }
    
    .logistics-details {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    
    .dc-wrapper {
        flex-direction: row;
        gap: 100px;
    }

    .color-circle {
        width: 50px;
        height: 50px;
    }
    
    .faq-wrapper {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .rsvp-form-container {
        max-width: 650px;
        padding: 60px 80px;
    }
}
.premium-gallery-section {
                padding: 60px 20px;
                background-color: #f8fafc;
                text-align: center;
                border-top: 1px solid #e2e8f0;
                margin-top: 40px;
                font-family: 'Montserrat', sans-serif;
            }
            .premium-gallery-inner {
                max-width: 600px;
                margin: 0 auto;
            }
            .premium-gallery-title {
                color: var(--theme-primary, #0f172a);
                margin-bottom: 10px;
                font-size: 2.2rem;
            }
            .premium-gallery-subtitle {
                color: #64748b;
                margin-bottom: 30px;
                font-size: 0.95rem;
                line-height: 1.5;
            }
            .guest-upload-form {
                background: #ffffff;
                padding: 30px;
                border-radius: 12px;
                box-shadow: 0 10px 25px rgba(0,0,0,0.05);
                display: flex;
                flex-direction: column;
                gap: 15px;
                border: 1px solid #f1f5f9;
                margin-bottom: 40px;
            }
            .guest-upload-input {
                width: 100%;
                padding: 14px 15px;
                border: 1px solid #cbd5e1;
                border-radius: 8px;
                font-size: 0.95rem;
                font-family: inherit;
                outline: none;
                transition: border-color 0.3s;
                box-sizing: border-box;
            }
            .guest-upload-input:focus {
                border-color: var(--theme-primary, #4f46e5);
            }
            .guest-upload-dropzone {
                border: 2px dashed #cbd5e1;
                padding: 20px;
                border-radius: 8px;
                background: #f8fafc;
                transition: all 0.3s;
                cursor: pointer;
            }
            .guest-upload-dropzone:hover {
                border-color: var(--theme-primary, #4f46e5);
                background: #f1f5f9;
            }
            .guest-upload-dropzone input[type="file"] {
                width: 100%;
                cursor: pointer;
                font-family: inherit;
                color: #475569;
            }
            .guest-upload-btn {
                background-color: var(--theme-primary, #4f46e5);
                color: #ffffff;
                padding: 15px;
                border: none;
                border-radius: 8px;
                font-weight: 600;
                font-size: 1rem;
                cursor: pointer;
                font-family: inherit;
                transition: transform 0.2s, opacity 0.2s;
                margin-top: 10px;
            }
            .guest-upload-btn:hover {
                opacity: 0.9;
                transform: translateY(-2px);
            }
            .guest-gallery-grid {
                display: grid;
                grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
                gap: 15px;
                margin-top: 20px;
            }
            .guest-gallery-item {
                aspect-ratio: 1;
                overflow: hidden;
                border-radius: 12px;
                box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
                position: relative;
                background: #e2e8f0;
            }
            .guest-gallery-media {
                width: 100%;
                height: 100%;
                object-fit: cover;
            }
            .guest-media-label {
                position: absolute;
                bottom: 0; left: 0; right: 0;
                background: linear-gradient(transparent, rgba(0,0,0,0.8));
                color: white;
                padding: 20px 10px 10px 10px;
                text-align: left;
                font-size: 0.75rem;
                font-weight: 500;
            }