/* ------------------------------------
   CSS Variables & Resets
------------------------------------ */
:root {
    /* Colors - Elegant Beige & Sage Green theme */
    --primary-color: #A9B388;
    /* Sage Green */
    --secondary-color: #5F6F52;
    /* Darker Sage */
    --accent-color: #D3B997;
    /* Soft Gold / Beige */
    --text-color: #333333;
    --text-light: #666666;
    --bg-color: #FDFBF7;
    /* Warm off-white */
    --bg-light: #F5F2E8;
    /* Slightly darker beige for sections */
    --white: #FFFFFF;

    /* Fonts */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;

    /* Spacing */
    --section-padding: 80px 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.font-script {
    font-family: var(--font-heading);
    font-weight: 400;
}

.bg-light {
    background-color: var(--bg-light);
}

.section-padding {
    padding: var(--section-padding);
}

.container {
    max-width: 800px;
    /* Kept small for mobile focus, looks good on desktop too */
    margin: 0 auto;
    width: 100%;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.2rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.section-header p {
    color: var(--text-light);
    font-size: 0.95rem;
    max-width: 500px;
    margin: 0 auto;
}

.divider {
    height: 1px;
    width: 100px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    margin: 10px auto 30px;
}

.amp {
    font-family: var(--font-heading);
    font-style: italic;
    color: var(--accent-color);
}

.floral-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 5px;
    opacity: 0.8;
}

.section-title-elegant {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-top: 5px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(95, 111, 82, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
}

.btn-outline:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-block {
    display: block;
    width: 100%;
}

/* ------------------------------------
   Hero Section
------------------------------------ */

/* ------------------------------------
   Hero Section
------------------------------------ */
/* Hero Section - Temiz ve Garantili Versiyon */
.hero {
    position: relative;
    height: 100vh;
    height: 100svh;
    min-height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    background-image: url('hero.jpeg');
    background-position: center bottom;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    /* Masaüstünde Parallax */
}

/* Mobile Hero Fix (Özellikle iPhone için) */
@media (max-width: 768px) {
    .hero {
        background-attachment: scroll !important;
        /* iPhone'daki bölünme hatasını çözer */
        background-position: center top;
        height: 100svh;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 20px;
}

.hero .pre-title {
    font-family: var(--font-body);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.hero .names {
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.hero .date {
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 2px;
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    display: inline-block;
    padding: 10px 20px;
}



/* ------------------------------------
   Invitation & Countdown
------------------------------------ */
.invitation {
    text-align: center;
}

.countdown-wrapper {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.countdown-item {
    background: var(--white);
    width: 80px;
    height: 80px;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(211, 185, 151, 0.3);
}

.countdown-item .number {
    font-size: 1.8rem;
    font-family: var(--font-heading);
    color: var(--secondary-color);
    line-height: 1;
}

.countdown-item .label {
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    margin-top: 5px;
    letter-spacing: 1px;
}

.add-to-calendar {
    margin-top: 20px;
}

/* ------------------------------------
   Timeline Section
------------------------------------ */
/* ------------------------------------
   Elegant Timeline
------------------------------------ */
.elegant-timeline {
    position: relative;
    max-width: 800px;
    margin: 40px auto 0;
    padding: 20px 0;
}

.timeline-trail {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: linear-gradient(180deg, transparent, var(--accent-color), transparent);
    transform: translateX(-50%);
}

.timeline-step {
    position: relative;
    width: 50%;
    padding: 20px 40px;
    margin-bottom: 20px;
}

.timeline-step:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-step:nth-child(even) {
    left: 50%;
    text-align: left;
}

.step-icon {
    position: absolute;
    top: 20px;
    width: 45px;
    height: 45px;
    background: var(--white);
    border: 1px solid var(--accent-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--secondary-color);
    font-size: 1.2rem;
    z-index: 5;
    box-shadow: 0 4px 10px rgba(169, 179, 136, 0.15);
}

.timeline-step:nth-child(odd) .step-icon {
    right: -23px;
}

.timeline-step:nth-child(even) .step-icon {
    left: -23px;
}

.step-content {
    background: var(--white);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.04);
    border-bottom: 2px solid rgba(169, 179, 136, 0.1);
    transition: all 0.3s ease;
}

.timeline-step:hover .step-content {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
}

.step-time {
    display: block;
    font-family: var(--font-heading);
    color: var(--accent-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.step-content h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.step-content p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* Responsive Timeline */
@media (max-width: 767px) {
    .timeline-trail {
        left: 30px;
    }

    .timeline-step {
        width: 100%;
        left: 0 !important;
        padding-left: 70px;
        padding-right: 20px;
        text-align: left !important;
    }

    .step-icon {
        left: 8px !important;
        right: auto !important;
    }

    .step-content {
        padding: 20px;
    }
}

/* ------------------------------------
   Location Section
------------------------------------ */
.location-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
}

.location-info {
    padding: 40px 20px;
    text-align: center;
}

.location-icon {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.location-info h3 {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.location-info p {
    color: var(--text-light);
    margin-bottom: 25px;
}

.map-container {
    height: 300px;
    width: 100%;
}

/* ------------------------------------
   Photo Upload Section
------------------------------------ */
.upload-section {
    text-align: center;
    background-color: var(--bg-light);
}

.mt-4 {
    margin-top: 30px;
}

.mt-3 {
    margin-top: 20px;
}

/* ------------------------------------
   Photo Upload Area
------------------------------------ */
.upload-container {
    margin-top: 60px;
    perspective: 1000px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.upload-card {
    background: var(--white);
    padding: 45px 35px;
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(95, 111, 82, 0.1);
    border: 1px solid rgba(169, 179, 136, 0.2);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

.upload-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: var(--primary-color);
}

.upload-card h3 {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.upload-card p {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 35px;
    line-height: 1.6;
}

.upload-icon-wrapper {
    position: relative;
    width: 130px;
    height: 130px;
    background: rgba(169, 179, 136, 0.12);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 35px;
    transition: all 0.4s ease;
    border: 1px solid rgba(169, 179, 136, 0.2);
}

.drop-area {
    border: 2px dashed var(--accent-color);
    border-radius: 15px;
    padding: 40px 30px;
    background: rgba(211, 185, 151, 0.03);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 25px;
}

.drop-area:hover,
.drop-area.highlight {
    background: rgba(211, 185, 151, 0.08);
    border-color: var(--secondary-color);
    transform: scale(1.01);
}

.guest-note-wrapper {
    margin: 25px 0;
    text-align: left;
}

.guest-note-wrapper label {
    display: block;
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.guest-note-wrapper label i {
    color: var(--accent-color);
}

#guestNote {
    width: 100%;
    min-height: 120px;
    background: var(--white);
    border: 2px solid rgba(169, 179, 136, 0.3);
    border-radius: 12px;
    padding: 15px;
    font-family: var(--font-body);
    font-size: 1rem;
    resize: vertical;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

#guestNote:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 15px rgba(95, 111, 82, 0.1);
    background: #fff;
}

#guestNote::placeholder {
    color: #bbb;
    font-style: italic;
}

.upload-actions {
    margin-top: 20px;
}

.btn-upload-submit {
    background: var(--secondary-color);
    color: var(--white);
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    width: 100%;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 10px 20px rgba(95, 111, 82, 0.2);
}

.btn-upload-submit:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(95, 111, 82, 0.3);
    background: #4a5840;
}

.btn-upload-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
    box-shadow: none;
    opacity: 0.7;
}

.btn-upload-submit i {
    font-size: 1.2rem;
}

.mt-2 {
    margin-top: 10px;
}

.file-input {
    display: none;
}

.gallery-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 25px;
}

.preview-item {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    background: #eee;
}

.preview-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(95, 111, 82, 0.85);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    backdrop-filter: blur(2px);
}

/* Lightbox Premium Styles */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(5px);
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.lightbox-close:hover {
    opacity: 1;
}

.lightbox-nav {
    position: absolute;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    pointer-events: auto;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.lightbox-counter {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    letter-spacing: 2px;
}

.upload-status {
    display: none;
    margin-top: 20px;
}

.progress-bar-bg {
    width: 100%;
    height: 8px;
    background: #eee;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
}

#status-text {
    font-size: 0.8rem;
    color: var(--secondary-color);
    font-weight: 500;
}

.upload-success {
    display: none;
    margin-top: 25px;
    color: #166534;
    font-weight: 600;
    font-size: 1.1rem;
    animation: fadeIn 0.5s ease;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ------------------------------------
   Footer
------------------------------------ */
footer {
    background-color: var(--secondary-color);
    color: var(--bg-light);
    text-align: center;
    padding: 60px 20px;
}

footer h2 {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 10px;
}

footer .amp {
    color: var(--primary-color);
}

footer .copyright {
    margin-top: 30px;
    font-size: 0.8rem;
    opacity: 0.6;
}

/* ------------------------------------
   Responsive Adjustments
------------------------------------ */
@media (max-width: 480px) {
    .hero .names {
        font-size: 3rem;
    }

    .countdown-item {
        width: 70px;
        height: 70px;
    }

    .countdown-item .number {
        font-size: 1.5rem;
    }

    .section-padding {
        padding: 60px 15px;
    }
}

@media (min-width: 768px) {

    /* Optional: Make timeline alternating for larger screens */
    .timeline::after {
        left: 50%;
    }

    .timeline-item {
        width: 50%;
        padding: 0 40px 0 0;
        margin-bottom: 30px;
    }

    .timeline-item:nth-child(even) {
        left: 50%;
        padding: 0 0 0 40px;
    }

    .timeline-item::after {
        left: auto;
        right: -8px;
    }

    .timeline-item:nth-child(even)::after {
        left: -8px;
    }

    .timeline-item:nth-child(even) .timeline-content::before {
        right: auto;
        left: -15px;
        border-width: 8px 15px 8px 0;
        border-color: transparent var(--white) transparent transparent;
    }
}