/* Design System */
:root {
    --primary-bg: #FDFBF7;
    --secondary-gold: #D4AF37;
    --text-dark: #2C2C2C;
    --text-light: #555555;
    --accent-warm: #8B4513;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
    --spacing-section: 1.5rem;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--primary-bg);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

h2 {
    font-size: 2rem;
    color: var(--secondary-gold);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--text-light);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.container {
    width: 90%;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 2rem 0;
}

/* Header Section */
header {
    height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('assets/main_photo.jpeg') no-repeat center center;
    background-size: cover;
    position: relative;
}

.main-title {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    color: var(--primary-bg);
}

.date {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-style: italic;
    color: var(--secondary-gold);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    font-size: 2rem;
    color: var(--secondary-gold);
    cursor: pointer;
    opacity: 0.8;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Sections General */
section {
    padding: var(--spacing-section) 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

section:last-of-type {
    border-bottom: none;
}

/* Location Section */
.venue {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.note {
    font-size: 0.9rem;
    font-style: italic;
}

/* Program Section */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.timeline-item {
    display: flex;
    justify-content: center;
    gap: 1rem;
    width: 100%;
    max-width: 400px;
    border-bottom: 1px dashed rgba(212, 175, 55, 0.3);
    padding-bottom: 0.5rem;
}

.timeline-item:last-child {
    border-bottom: none;
}

.time {
    font-weight: 700;
    color: var(--secondary-gold);
    min-width: 100px;
    text-align: left;
}

.event {
    text-align: left;
    flex: 1;
}

/* Dresscode Section */
.style {
    font-size: 1.3rem;
    font-weight: 700;
}

.sub-style {
    font-style: italic;
}

.warning {
    color: var(--accent-warm);
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* RSVP Section */
.btn {
    display: inline-block;
    margin-top: 1rem;
    padding: 1rem 2rem;
    background-color: var(--secondary-gold);
    color: white;
    font-family: var(--font-heading);
    font-weight: 700;
    border-radius: 2px;
    letter-spacing: 1px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn:hover {
    background-color: #bfa030;
    transform: translateY(-2px);
}

/* Gift Section */
.envelope-container {
    margin-top: 2rem;
}

.envelope-img {
    max-width: 300px;
    width: 100%;
    height: auto;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

/* Contact Section */
.names {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-top: 0.5rem;
}

/* Footer */
footer {
    padding: 2rem 0;
    text-align: center;
    font-size: 0.8rem;
    color: #999;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
    transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1), transform 1s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Photo Gallery */
.photo-gallery {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.gallery-img {
    max-width: 45%;
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.gallery-img:not(:first-child) {
    object-fit: cover;
    object-position: 40% 50%;
}

.gallery-img:hover {
    transform: scale(1.02);
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .main-title {
        font-size: 2rem;
    }

    .timeline-item {
        flex-direction: column;
        text-align: center;
        gap: 0.2rem;
    }

    .time {
        text-align: center;
    }

    .event {
        text-align: center;
    }

    .gallery-img {
        max-width: 100%;
        margin-bottom: 1rem;
    }
}