/* Font Imports */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;500;600&family=Open+Sans:wght@300;400;500;600&family=Crimson+Pro:wght@300;400;500;600&display=swap');

/* Font Face Declarations */
@font-face {
    font-family: 'TAN Mon Cheri';
    src: url('tan-mon-cheri-font/tan-mon-cheri.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', 'Open Sans', 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: #000;
    overflow-x: hidden;
}

/* Sections */
.section {
    min-height: auto;
    /* padding: 4rem 2rem; */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.container {
    width: 100%;
    margin: 0 auto;
}

.story .container {
    width: 100%;
    height: 100vh;
    padding: 0;
    margin: 0;
}

/* Hero Section */
.hero {
    background-image: url('header-photov4.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100vh;
    padding: 3rem 2rem;
}

.row {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
}

.couple-names-gap {
    gap: 3rem;
}

.couple-names {
    font-family: 'TAN Mon Cheri', cursive;
    font-size: clamp(2rem, 10vw, 5rem);
    color: white;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
    font-weight: normal;
    letter-spacing: 0.02em;
    padding-top: 30rem;
}

.heart-svg {
    width: 1em;
    height: 1em;
    fill: white;
    animation: pulse 1s infinite;
    justify-self: center;
}

/* Story Section */
.story {
    background: #fff;
    padding: 0;
}

.story-images-content {
    display: flex;
    width: 100%;
    height: 100vh;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.monogram-banner {
    display: flex;
    width: 100%;
    height: auto;
    align-items: center;
    justify-content: center;
    gap: 0;
    max-height: 100vh;
}

.monogram-img {
    height: 100%;
    width: 100%;
    max-width: 100vw;
    max-height: 100vh;
}

.story-text h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 400;
    color: #000;
    margin-bottom: 2rem;
}

.story-text p {
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #333;
}

.story-image {
    display: flex;
    width: 100%;
    height: 100vh;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.story-images-content img {
    width: 50%;
    height: 100vh;
    object-fit: cover;
    border-radius: 0;
    box-shadow: none;
}

.scale-down-img {
    object-fit: scale-down !important;
    width: 100%;
    height: 100%;
}

/* Details Section */
.details {
    background: #f5f5f5;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.detail-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.detail-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.detail-card h3 {
    font-size: 1.5rem;
    font-weight: 500;
    color: #000;
    margin-bottom: 1rem;
}

.detail-card p {
    color: #333;
    font-weight: 400;
    line-height: 1.6;
}

/* Gallery Section */
.gallery {
    background: #fff;
}

.gallery h2 {
    text-align: center;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 400;
    color: #000;
    margin-bottom: 3rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.gallery-item {
    aspect-ratio: 1;
    background: #f5f5f5;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

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

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

/* RSVP Section */
.rsvp {
    background: #000;
    color: white;
    text-align: center;
}

.rsvp h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 400;
    margin-bottom: 2rem;
}

.rsvp-form {
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 400;
}

.btn {
    background: white;
    color: #000;
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background: #000;
    color: white;
    text-align: center;
    padding: 2rem;
}

/* Scroll animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.info-section {
    font-family: 'TAN Mon Cheri', cursive;
    text-align: left;
    margin-bottom: 4rem;
    font-style: italic;
}

/* Information Section */
.info-content {
    padding: 2rem 2rem;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
}


.info-section:last-child {
    margin-bottom: 0;
}

.info-section h3 {
    font-family: 'TAN Mon Cheri', cursive;
    font-size: clamp(1.5rem, 5vw, 2rem);
    color: #000;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.info-section p {
    font-family: 'Crimson Pro', serif;
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    line-height: 1.8;
    color: #333;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.info-title {
    font-size: clamp(2rem, 5vw, 3rem);
    color: #000;
    margin-bottom: 3rem;
}

.audio-player{
    margin-top: 1rem;
}


@media (max-width:1200px) {

    .couple-names {
        font-size: clamp(2rem, 10vw, 3.5rem);
        padding-top: 25rem;
    }

    .info-section h3 {
        font-size: clamp(0.9rem, 2.2vw, 2rem);
        color: #000;
        margin-bottom: 1rem;
    }

    .info-section p {
        font-size: clamp(0.8rem, 2vw, 1rem);
        line-height: 1.8;
        color: #333;
        margin-bottom: 1rem;
    }
    .info-section {
        margin-bottom: 2rem;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .couple-names {
        font-size: clamp(1.4rem, 8vw, 3rem);
        padding-top: 20rem;
    }

    .hero {
        background-attachment: scroll;
    }

    .info-content {
        padding: clamp(1.4rem, 4vw, 3rem) clamp(1.4rem, 4vw, 3rem);
    }

    .hero-content {
        padding: 2rem 1rem;
    }

    .story-content {
        flex-direction: column;
        height: 100vh;
    }

    /* .story-image {
        flex-direction: column;
        height: 100vh;
    } */

    /* .story-image img {
        width: 100%;
        object-fit: contain;
    } */

    .details-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero-content {
        padding: 1.5rem 1rem;
    }

    .story .container {
        width: 100%;
        height: fit-content;
        padding: 0;
        margin: 0;
    }


    .row {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        margin-top: 2rem;
    }

    .couple-names-gap {
        gap: 0.5rem;
        padding-top: 25rem;
    }

    .couple-names {
        padding-bottom: 0;
        padding-top: 0rem;
        font-size: clamp(0.5rem, 10vw, 3rem);
    }


    .info-content {
        padding: 2rem 2rem;
    }

     .info-section h3 {
        font-size: clamp(1.5rem, 5vw, 2rem);
        color: #000;
        margin-bottom: 1rem;
    }

    .info-section p {
        font-size: clamp(1rem, 2vw, 1.6rem);
        line-height: 1.8;
        color: #333;
        margin-bottom: 1rem;
    }

    .section {
        min-height: auto;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
    }

    .story-images-content {
        display: flex;
        flex-direction: column;
        width: 100%;
        height: auto;
        align-items: center;
        justify-content: center;
        gap: 0;
    }

    .story-images-content img {
        width: 100%;
        height: 100vh;
        object-fit: cover;
        border-radius: 0;
        box-shadow: none;
    }
}
