/* Modern Content Section Styles */
.content-section {
    padding: 8rem 6%;
    background-color: #fff;
    color: #111;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    position: relative;
    overflow: hidden;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    /* Text 45%, Images 55% */
    gap: 4rem;
    align-items: start;
    max-width: 1400px;
    margin: 0 auto;
}

/* Reverse Layout for alternating sections */
.content-wrapper.reverse {
    direction: rtl;
    /* Simple way to swap columns */
}

.content-wrapper.reverse>* {
    direction: ltr;
    /* Reset text direction inside */
}

/* Adjust text padding for reverse */
.content-wrapper.reverse .content-text {
    padding-right: 0;
    padding-left: 2rem;
}

/* Stacked Layout (Text Top, Images Bottom) */
.content-wrapper.stacked {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Center align text */
    text-align: center;
    grid-template-columns: none;
    /* Remove grid */
}

.content-wrapper.stacked .content-text {
    position: static;
    /* Remove sticky */
    max-width: 800px;
    margin-bottom: 4rem;
    padding: 0;
}

.content-wrapper.stacked .main-headline {
    font-size: 6rem;
    /* Even larger for impact */
    margin-bottom: 3rem;
    font-weight: 300;
    letter-spacing: -3px;
    text-transform: lowercase;
    /* As seen in image 'ecoinnovation' */
}

.content-wrapper.stacked .description-text {
    margin: 0 auto 2rem;
    /* Center block */
    font-size: 1.1rem;
}

.content-wrapper.stacked .content-gallery {
    width: 100%;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.content-wrapper.stacked .gallery-item.item-2 {
    margin-top: 5rem;
    /* Keep the stagger effect or remove? Image shows side-by-side but stagger is nice. Let's keep a slight one or remove for symmetry. Image looks symmetrical. */
    margin-top: 0;
    /* Removing stagger for symmetry per image */
}

/* Left Column: Text */
.content-text {
    position: sticky;
    top: 8rem;
    /* Stays fixed slightly from top while scrolling */
    padding-right: 2rem;
    animation: fadeInSlideLeft 1s ease-out;
}

.main-headline {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-size: 2.8rem;
    line-height: 1.1;
    background: linear-gradient(135deg, #1a1a1a 0%, #000 50%, #333 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.main-headline .highlight {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-size: 0.9em;
    background: linear-gradient(135deg, #1a1a1a 0%, #000 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.divider-line {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #000 0%, #333 50%, transparent 100%);
    margin-bottom: 2rem;
    border-radius: 2px;
}

.sub-headline {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    color: #000;
}

.description-text {
    font-size: 0.9rem;
    line-height: 1.8;
    color: #5a5a5a;
    margin-bottom: 2.5rem;
    max-width: 90%;
    font-weight: 300;
}

.btn-explore {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    font-weight: 400;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(135deg, #000 0%, #333 100%);
    padding: 12px 28px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    letter-spacing: 1px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-explore i {
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.btn-explore:hover {
    background: linear-gradient(135deg, #333 0%, #000 100%);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.btn-explore:hover i {
    transform: translateX(8px);
}

/* Right Column: Gallery */
.content-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    height: 350px;
    aspect-ratio: 1 / 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s cubic-bezier(0.2, 1, 0.3, 1);
}

.gallery-item img.img-contain {
    object-fit: contain;
    padding: 3rem;
    background-color: #f9f9f9;
}

.gallery-item.item-2 {
    margin-top: 5rem;
}

.gallery-item:hover {
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.18);
    transform: translateY(-8px);
}

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

.overlay-info {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    padding: 12px 24px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    border-radius: 8px;
    letter-spacing: 1px;
}

.gallery-item:hover .overlay-info {
    opacity: 1;
    transform: translateY(0);
}

/* Animations */
@keyframes fadeInSlideLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes expandWidth {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 60px;
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 3rem 2rem;
    }

    .content-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .gallery-item {
        height: 300px;
    }

    .content-text {
        position: static;
        margin-bottom: 3rem;
    }

    .main-headline {
        font-size: 3.5rem;
        line-height: 1.1;
    }

    .sub-headline {
        font-size: 1.5rem;
    }

    .description-text {
        font-size: 1rem;
    }

    .btn-explore {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }

    .gallery-item.item-2 {
        margin-top: 0;
    }
}

@media (max-width: 768px) {
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 2.5rem 1.5rem;
    }

    .content-gallery {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .gallery-item {
        height: 200px;
    }

    .gallery-item.item-2 {
        margin-top: 0;
    }

    .main-headline {
        font-size: 2rem;
        line-height: 1.1;
    }

    .sub-headline {
        font-size: 1.2rem;
    }

    .description-text {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .btn-explore {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }

    .divider-line {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .content-wrapper {
        gap: 1rem;
        padding: 2rem 1rem;
    }

    .content-gallery {
        grid-template-columns: 1fr;
    }

    .gallery-item {
        height: 150px;
    }

    .main-headline {
        font-size: 1.5rem;
        line-height: 1.2;
    }

    .sub-headline {
        font-size: 1rem;
    }

    .description-text {
        font-size: 0.9rem;
    }

    .btn-explore {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
}

/* Scroll Animation Classes */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
    will-change: opacity, transform;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

/* Image Parallax Effect Container */
/* .gallery-item rules are already defined above globally, we just needed them for structure. 
   If we want to re-enforce overflow hidden, we can, but it was already there. 
   Removing the redundant nested rule.*/