/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lora', serif;
    color: #1a1a1a;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 767px) {
    body {
        line-height: 1.5;
    }
}

/* Split Screen Layout */
.split-container {
    display: flex;
    min-height: 100vh;
}

.photo-section {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.carousel {
    position: relative;
    width: 100%;
    height: 100%;
    touch-action: pan-y;
    cursor: grab;
}

.carousel:active {
    cursor: grabbing;
}

.carousel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    will-change: opacity;
    background-color: #f5f5f5;
}

.carousel-image.active {
    opacity: 1;
}

.content-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background-color: #ffffff;
    transition: padding 0.3s ease;
}

.content-wrapper {
    max-width: 500px;
    text-align: center;
}

.names {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: 400;
    margin-bottom: 1rem;
    line-height: 1.2;
    transition: font-size 0.3s ease, margin 0.3s ease;
}

.tagline {
    font-style: italic;
    font-size: 1.25rem;
    margin-bottom: 3rem;
    color: #4a4a4a;
    transition: font-size 0.3s ease, margin 0.3s ease;
}

.wedding-details {
    margin-bottom: 2rem;
    transition: margin 0.3s ease, padding 0.3s ease;
}

.date {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    transition: font-size 0.3s ease, margin 0.3s ease;
}

.location {
    font-size: 1.25rem;
    color: #4a4a4a;
    margin-bottom: 2rem;
    transition: font-size 0.3s ease, margin 0.3s ease;
}

.coming-soon {
    font-size: 1rem;
    color: #6a6a6a;
    font-style: italic;
}

/* Footer Section */
.footer-section {
    position: relative;
    background-color: #faf9f7;
    padding-top: 1rem;
    text-align: center;
    overflow: hidden;
}

.footer-text {
    font-size: 1.75rem;
    font-style: italic;
    margin-bottom: 0.5rem;
    padding: 0 2rem;
}

.hazel-sketch {
    display: block;
    width: 300px;
    max-width: 90%;
    margin: 0 auto;
    position: relative;
    bottom: 0;
}

/* Mobile-First Responsive Design */

/* Base Mobile Styles (320px - 374px) */
@media (max-width: 767px) {
    .split-container {
        flex-direction: column;
    }

    .photo-section {
        height: 300px;
    }

    .content-section {
        padding: 2rem 1.5rem;
    }

    .names {
        font-size: 2.25rem;
        margin-bottom: 1.5rem;
    }

    .tagline {
        font-size: 1rem;
        margin-bottom: 2.5rem;
    }

    .wedding-details {
        margin-bottom: 2.5rem;
        padding: 1rem 0;
    }

    .date {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }

    .location {
        font-size: 1rem;
        margin-bottom: 2.5rem;
    }

    .footer-section {
        padding-top: 0.75rem;
    }

    .footer-text {
        font-size: 1.25rem;
        padding: 0 1.5rem;
        margin-bottom: 0.5rem;
    }

    .hazel-sketch {
        width: 180px;
        min-width: 180px;
    }
}

/* Small Phones (375px - 389px) */
@media (min-width: 375px) and (max-width: 767px) {
    .photo-section {
        height: 350px;
    }

    .content-section {
        padding: 2.5rem 1.75rem;
    }

    .names {
        font-size: 2.5rem;
    }

    .date {
        font-size: 1.5rem;
    }

    .location {
        font-size: 1.1rem;
    }

    .hazel-sketch {
        width: 200px;
    }
}

/* Standard Phones (390px - 429px) */
@media (min-width: 390px) and (max-width: 767px) {
    .photo-section {
        height: 350px;
    }

    .names {
        font-size: 2.75rem;
    }

    .tagline {
        font-size: 1.1rem;
    }

    .date {
        font-size: 1.75rem;
    }

    .location {
        font-size: 1.25rem;
    }

    .footer-text {
        font-size: 1.5rem;
    }
}

/* Large Phones (430px - 767px) */
@media (min-width: 430px) and (max-width: 767px) {
    .photo-section {
        height: 400px;
    }

    .content-section {
        padding: 3rem 2rem;
    }

    .names {
        font-size: 3rem;
    }

    .date {
        font-size: 1.75rem;
    }

    .hazel-sketch {
        width: 250px;
    }
}

/* Tablet and Desktop (768px+) */
@media (min-width: 768px) {
    .photo-section {
        height: 100vh;
    }

    .names {
        font-size: 4rem;
    }

    .tagline {
        font-size: 1.25rem;
    }

    .date {
        font-size: 1.5rem;
    }

    .location {
        font-size: 1.25rem;
    }

    .hazel-sketch {
        width: 300px;
    }
}
