/* Scroll-Triggered Image Sections */

/* Full-width Lifestyle Image Section */
.lifestyle-banner {
    position: relative;
    height: 60vh;
    min-height: 400px;
    overflow: hidden;
    margin: 80px 0;
}

.lifestyle-banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.7);
    transition: transform 1.5s cubic-bezier(0.215, 0.610, 0.355, 1.000);
}

.lifestyle-banner.in-view .lifestyle-banner-image {
    transform: scale(1.05);
}

.lifestyle-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(5, 5, 5, 0.8) 0%, transparent 50%, rgba(5, 5, 5, 0.8) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.lifestyle-banner-content {
    text-align: center;
    max-width: 800px;
    padding: 0 30px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease 0.3s, transform 1s ease 0.3s;
}

.lifestyle-banner.in-view .lifestyle-banner-content {
    opacity: 1;
    transform: translateY(0);
}

.lifestyle-banner-content h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.lifestyle-banner-content p {
    font-size: 1.2rem;
    color: var(--text-light-gray);
    line-height: 1.6;
}

/* Parallax Split Section */
.split-image-section {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}

.split-image-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/hero-bg-luxury.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    filter: brightness(0.4);
    z-index: -1;
}

.split-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

.split-text-content {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 1s ease, transform 1s ease;
}

.split-image-section.in-view .split-text-content {
    opacity: 1;
    transform: translateX(0);
}

.split-image-content {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 1s ease 0.2s, transform 1s ease 0.2s;
}

.split-image-section.in-view .split-image-content {
    opacity: 1;
    transform: translateX(0);
}

.split-image-content img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

/* Feature Grid with Images */
.image-feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin: 80px 0;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.image-feature-row.in-view {
    opacity: 1;
    transform: translateY(0);
}

.image-feature-row.reverse {
    direction: rtl;
}

.image-feature-row.reverse>* {
    direction: ltr;
}

.feature-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.feature-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease;
}

.feature-image-wrapper:hover img {
    transform: scale(1.08);
}

/* Testimonial Background Section */
.testimonial-bg-section {
    position: relative;
    padding: 120px 0;
    background-image: linear-gradient(rgba(5, 5, 5, 0.85), rgba(5, 5, 5, 0.85)), url('../images/living_room_bright.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .lifestyle-banner {
        height: 50vh;
        min-height: 300px;
        margin: 40px 0;
    }

    .lifestyle-banner-content h2 {
        font-size: 1.8rem;
    }

    .lifestyle-banner-content p {
        font-size: 1rem;
    }

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

    .split-text-content,
    .split-image-content {
        transform: translateY(30px);
    }

    .split-image-section.in-view .split-text-content,
    .split-image-section.in-view .split-image-content {
        transform: translateY(0);
    }

    .image-feature-row {
        grid-template-columns: 1fr;
        gap: 30px;
        margin: 50px 0;
    }

    .image-feature-row.reverse {
        direction: ltr;
    }
}