/* ===========================
   CSS Reset & Base Styles
   =========================== */

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

:root {
    /* Color Palette - Elegant & Minimalist */
    --primary-color: #2c3e50;
    --secondary-color: #8b7355;
    --accent-color: #c9a882;
    --text-dark: #2c3e50;
    --text-medium: #5a6c7d;
    --text-light: #7f8c8d;
    --bg-light: #faf8f5;
    --bg-white: #ffffff;
    --bg-cream: #f8f6f2;
    --border-color: #e8e6e0;

    /* Typography */
    --font-primary: 'Playfair Display', serif;
    --font-secondary: 'Montserrat', sans-serif;
    --font-accent: 'Cormorant Garamond', serif;

    /* Spacing */
    --section-padding: 100px;
    --container-width: 1200px;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-secondary);
    color: var(--text-medium);
    line-height: 1.7;
    background-color: var(--bg-cream);
    overflow-x: hidden;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 30px;
}

/* ===========================
   Navigation
   =========================== */

#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand a {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-dark);
    text-decoration: none;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    font-family: var(--font-secondary);
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-medium);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

.nav-links a:hover::after {
    width: 100%;
}

/* ===========================
   Hero Section
   =========================== */

.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(135deg, #f8f6f2 0%, #e8e6e0 100%);
}

.hero-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 35px,
            rgba(139, 115, 85, 0.03) 35px,
            rgba(139, 115, 85, 0.03) 70px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 35px,
            rgba(139, 115, 85, 0.03) 35px,
            rgba(139, 115, 85, 0.03) 70px
        ),
        radial-gradient(
            circle at 20% 50%,
            rgba(201, 168, 130, 0.08) 0%,
            transparent 50%
        ),
        radial-gradient(
            circle at 80% 50%,
            rgba(201, 168, 130, 0.08) 0%,
            transparent 50%
        );
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(44, 62, 80, 0.05), rgba(44, 62, 80, 0.1));
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: var(--text-dark);
    padding: 30px;
}

.hero-subtitle {
    font-family: var(--font-secondary);
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: var(--text-medium);
    opacity: 0.95;
}

.hero-title {
    font-family: var(--font-primary);
    font-size: 6rem;
    font-weight: 400;
    font-style: italic;
    letter-spacing: 2px;
    margin-bottom: 30px;
    line-height: 1.2;
    color: var(--text-dark);
}

.hero-divider {
    width: 80px;
    height: 1px;
    background-color: var(--secondary-color);
    margin: 30px auto;
    opacity: 0.8;
}

.hero-date {
    font-family: var(--font-accent);
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.hero-location {
    font-family: var(--font-secondary);
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-medium);
    opacity: 0.9;
}

/* Scroll Down Animation */
.scroll-down {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 50px;
    border: 2px solid rgba(139, 115, 85, 0.5);
    border-radius: 25px;
    display: flex;
    justify-content: center;
    padding-top: 10px;
}

.scroll-down span {
    width: 4px;
    height: 10px;
    background-color: rgba(139, 115, 85, 0.6);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        opacity: 0;
        transform: translateY(0);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateY(15px);
    }
}

/* ===========================
   Section Styles
   =========================== */

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

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

.section-title {
    font-family: var(--font-primary);
    font-size: 3rem;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.title-underline {
    width: 60px;
    height: 2px;
    background-color: var(--secondary-color);
    margin: 0 auto;
}

.section-subtitle {
    font-family: var(--font-secondary);
    font-size: 1rem;
    color: var(--text-light);
    margin-top: 20px;
    font-weight: 300;
}

/* ===========================
   Story Section
   =========================== */

.story-section {
    background-color: var(--bg-white);
}

.story-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-top: 60px;
}

.story-image .image-frame {
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}

.story-image .image-frame::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: 20px;
    bottom: 20px;
    border: 1px solid var(--border-color);
    z-index: -1;
}

.story-image img {
    width: 100%;
    height: auto;
    display: block;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.story-text {
    padding: 20px 0;
}

.story-paragraph {
    font-family: var(--font-accent);
    font-size: 1.25rem;
    line-height: 1.9;
    color: var(--text-medium);
    margin-bottom: 25px;
}

/* ===========================
   Details Section
   =========================== */

.details-section {
    background-color: var(--bg-cream);
}

.details-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
    margin-top: 60px;
}

.detail-card {
    text-align: center;
    padding: 40px 30px;
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.detail-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.detail-icon {
    color: var(--secondary-color);
    margin-bottom: 25px;
}

.detail-title {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.detail-text {
    font-family: var(--font-secondary);
    font-size: 1rem;
    color: var(--text-medium);
    line-height: 1.8;
    margin-bottom: 5px;
}

.event-description {
    text-align: center;
    margin-top: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.event-description p {
    font-family: var(--font-accent);
    font-size: 1.25rem;
    font-style: italic;
    color: var(--text-medium);
    line-height: 1.9;
}

/* ===========================
   RSVP Section
   =========================== */

.rsvp-section {
    background-color: var(--bg-white);
}

.rsvp-form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 50px;
    background-color: var(--bg-cream);
    border: 1px solid var(--border-color);
}

.rsvp-form {
    width: 100%;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-family: var(--font-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    font-family: var(--font-secondary);
    font-size: 1rem;
    color: var(--text-dark);
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    outline: none;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--secondary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.submit-btn {
    width: 100%;
    padding: 18px 40px;
    font-family: var(--font-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--bg-white);
    background-color: var(--secondary-color);
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.submit-btn:hover {
    background-color: var(--text-dark);
    transform: translateY(-2px);
}

.submit-btn:active {
    transform: translateY(0);
}

.form-message {
    margin-top: 20px;
    padding: 15px;
    text-align: center;
    font-family: var(--font-secondary);
    font-size: 0.95rem;
    border-radius: 2px;
    display: none;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* ===========================
   Gallery Section
   =========================== */

.gallery-section {
    background-color: var(--bg-cream);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background-color: var(--bg-light);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* ===========================
   Footer
   =========================== */

.footer {
    background-color: var(--text-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 80px 0 40px;
    text-align: center;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-title {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    font-weight: 400;
    font-style: italic;
    color: #ffffff;
    margin-bottom: 20px;
}

.footer-text {
    font-family: var(--font-secondary);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 15px;
}

.footer-divider {
    width: 60px;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.3);
    margin: 40px auto;
}

.footer-copyright {
    font-family: var(--font-secondary);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 1px;
}

/* ===========================
   Responsive Design
   =========================== */

@media (max-width: 968px) {
    :root {
        --section-padding: 70px;
    }

    .nav-links {
        gap: 25px;
    }

    .nav-links a {
        font-size: 0.8rem;
    }

    .hero-title {
        font-size: 4rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .story-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .details-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .rsvp-form-container {
        padding: 40px 30px;
    }
}

@media (max-width: 640px) {
    :root {
        --section-padding: 50px;
    }

    .container {
        padding: 0 20px;
    }

    .nav-container {
        padding: 15px 20px;
        flex-direction: column;
        gap: 15px;
    }

    .nav-links {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-links a {
        font-size: 0.75rem;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle,
    .hero-location {
        font-size: 0.9rem;
    }

    .hero-date {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .story-paragraph {
        font-size: 1.1rem;
    }

    .detail-card {
        padding: 30px 20px;
    }

    .event-description p {
        font-size: 1.1rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .rsvp-form-container {
        padding: 30px 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-title {
        font-size: 2rem;
    }
}
