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

body {
    background-color: black;
}

.about-section {    
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100%;
    padding: 120px 80px;
    margin: 0 auto;
    background: white;
    overflow: hidden;
}

.about-viewport {
    position: relative;
    max-width: 1768px;
    width: 100%;
    height: 100%;
}

.about-section-info-container {
    position: absolute;
    display: flex;
    justify-content: flex-end;
    flex-direction: column;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: clamp(640px, 100%, 920px);
    width: 43%;
    transition: opacity 0.5s ease;
    transition-delay: 0.7s;
    z-index: 1;
}

/* When the content is hidden (class 'hidden' is added) */
.about-section-info-container.hidden {
    opacity: 0;
    pointer-events: none; /* Optional: Prevent interactions when hidden */
    transition-delay: 0s;
    transition: 0.2s ease;
}

.about-description-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    max-width: 536px;
    gap: 40px;
}

.about-read-more {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 8px;
    gap: 16px;
    opacity: 50%;
}

.about-read-more > h6 {
    color: black;
    leading-trim: both;
    text-edge: cap;
    font-family: Montserrat, sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 100%; /* 14px */
}

.about-read-more > svg {
    height: 12px;
    stroke-width: 1.4px !important;
    overflow: visible;
}

.about-section-info-container > h2 {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-family: "Montserrat Alternates", sans-serif;
    font-size: 104px;
    font-weight: 500;
    line-height: 90%;
    letter-spacing: -4.8px;
    color: black;
    max-width: 424px;
}

.about-section-info-container > h2 > span {
    font-style: italic;
}

.about-description-container > p {
    width: 312px;
    font-family: Montserrat, sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    color: rgba(0, 0, 0, 0.5);
    line-height: 180%; /* 38.4px */
}

.about-description-container > p > span {
    color: rgba(0, 0, 0, 1);
}

.service-accordions-container {
    position: absolute;
    top: 50%;
    left: 0px;
    transform: translateY(-50%);
    display: flex;
    z-index: 0;
    gap: 8px;
    height: clamp(640px, 100%, 920px);
    width: 100%;
}

.service-accordion {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px 40px;
    list-style: none;
    height: 100%;
    width: 12%;
    overflow: hidden;
    background-position: center;
    background-size: cover;
    transition: 1s ease; 
    transition: ease 0.8s;
    cursor: pointer;
    /*border-radius: 100px;*/
}

.service-accordion > video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the video covers the entire area */
    object-position: center; /* Centers the video content */
    z-index: -1; /* Places the video behind other content */
}

.service-accordion:not(.is-open):hover {
    max-width: none;
    width: 12.5%;
    transition: ease 0.5s;
}

.service-accordion::before {
    content: "";
    position: absolute;
    inset: 0; /* shorthand for top, right, bottom, left: 0 */
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.75) 100%);
    z-index: 1; /* Places the overlay above the image but behind the text */
    transition: ease 0.5s;
}

.service-accordion::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100% ;
    background: linear-gradient(-90deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.80) 100%);
    opacity: 0%;
    pointer-events: none;
    transition: 1s ease; 
}

.service-accordion > h5 {
    font-family: Montserrat, sans-serif;
    color: white;
    font-size: 12px;
    letter-spacing: 1.6px;
    font-weight: 500;
    line-height: 100%;
    text-transform: uppercase;
    z-index: 1;
}

.service-description {
    display: flex;
    flex-direction: column;
    gap: 64px;
    width: 400px;
    z-index: 1;
}

.service-description > p {
    font-family: Montserrat, sans-serif;
    font-size: 32px;
    line-height: 160%;
    letter-spacing: -0.36px;
    font-weight: 400;
    color: white;
    transition: 0.2s ease; 
    transform: translateY(40px);
    transition-delay: 0s;
    opacity: 0;
}

.service-list-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.service-list-container > h6 {
    color: white;
    font-family: Montserrat, sans-serif;
    font-size: 12px;
    font-weight: 600;
    line-height: 120%;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    opacity: 50%;
    transition: 0.2s ease; 
    transform: translateY(40px);
    transition-delay: 0s;
    opacity: 0;
}


.service-list-container > ul {
    display: flex;
    flex-direction: column;
    gap: 16px;
    list-style-position: inside;
    font-family: Montserrat, sans-serif;
    color: white;
}

.service-list-container > ul > li {
    transition: 0.2s ease; 
    transform: translateY(40px);
    transition-delay: 0s;
    opacity: 0;
}

.service-arrow {
    z-index: 2;
    transform: rotate(0deg);
    transition: 1s ease; 
    width: 20px;
    height: 20px;
    stroke-width: 3px;
    stroke: white;
}

/* Accordion Open */
.is-open {
    width: 50%;
    max-width: none; 
    transition: ease 0.8s;
    padding: 40px 64px;
}

.is-open::after {
    opacity: 90%;
    transition: 1s ease; 
}

.is-open .service-arrow {
    transform: rotate(180deg);
    transition: 1s ease; 
    transition-delay: 0.0s !important;
}

.is-open > .service-description > p {
    opacity: 100;
    transition: 0.8s ease;
    transform: translateY(0px);
    transition-delay: 0.6s;
}

.is-open > .service-description > .service-list-container > ul > li {
    opacity: 100;
    transition: 0.8s ease;
    transform: translateY(0px);
    transition-delay: 1s;
}

.is-open > .service-description > .service-list-container > h6 {
    opacity: 50%;
    transition: 0.8s ease;
    transform: translateY(0px);
    transition-delay: 0.8s;
}


/* Extra large devices (large laptops and desktops, 1200px and down) */
@media only screen and (min-width: 1080px) and (max-width: 1200px) {

    .about-section-info-container {
        width: unset;
    }

    .service-accordion:not(.is-open){
        width: 15%;
    }

    .service-accordion:not(.is-open):hover {
        width: 16%;
    }

    .about-section-info-container > h2 {
        font-size: 96px;
        line-height: 90%; /* 86.4px */
        letter-spacing: -3.84px;
        max-width: 320px;
    }

    .about-read-more {
        display: none;
    }

}

@media screen and (max-width: 1080px) {

    .about-section {
        padding: 80px 64px;
        flex-direction: column;
        height: 100%;
        width: 100%;
    }

    .about-viewport {
        display: flex;
        flex-direction: column;
        gap: 80px;
    }

    .about-section-info-container {
        position: unset; 
        width: 100%;
        gap: 48px;
        padding: 0;
        height: 100%;
        overflow: hidden;
        transform: unset;
        flex-direction: row;
        justify-content: space-between;
    }

    .about-section-info-container > h2 {
        position: static !important;
        transform: unset;
        max-width: 320px;
        font-size: 96px;
        font-weight: 500;
        line-height: 90%; /* 72px */
        letter-spacing: -3.84px;
    }
    
    .about-description-container > p {
        font-family: Montserrat;
        font-size: 16px;
        font-style: normal;
        font-weight: 400;
        line-height: 180%; /* 38.4px */
    }

    .about-description-container {
        flex-direction: column-reverse;
        align-items: flex-start;
        max-width: 400px;
    }

    .service-accordions-container {
        position: static;
        flex-direction: column;
        overflow: hidden;
        height: 100%;
        transform: unset;
        padding: 0 ;
    }

    .service-accordion {
        height: 160px;
        width: 100%;
        padding: 24px 0;
        /*border-radius: 56px;*/
    }

    .service-accordion::before {
        background: linear-gradient(-90deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.75) 100%);
    }

    .service-accordion > h5 {
        position: absolute;
        left: 40px;
        top: 72px;
        font-size: 16px;
    }
    
    .service-accordion:not(.is-open):hover {
        height: 160px;
        width: 100%;
    }

    .service-arrow {
        position: absolute;
        right: 40px;
        top: 70px;
        width: 24px;
        height: 24px;
        stroke-width: 3px;
        transform: rotate(90deg);
    }

        /* Accordion Open */
    .is-open {
        height: 480px !important;
        overflow: hidden;
    }

    .is-open .service-arrow {
        transform: rotate(270deg);
    }
    .is-open .service-accordion-text > p {
        opacity: 100;
    }

    .about-section-info-container.hidden {
        opacity: 100;
    }


    .service-description {
        position: absolute;
        bottom: 80px;
        width: 100%;
        padding: 0 40px;
        gap: 40px;
    }

    .service-description > p {
        font-size: 24px;
        max-width: 560px;
    }

    .service-list-container > ul {
        gap: 16px;
    }

    .about-read-more {
        display: none;
    }

}


@media screen and (max-width: 800px) {

    .about-section {
        padding: 80px 24px;
        flex-direction: column;
        height: 100%;
        width: 100%;
    }

    .about-viewport {
        display: flex;
        flex-direction: column;
        gap: 64px;
    }

    .about-section-info-container {
        flex-direction: column;
    }

    .about-section-info-container > h2 {
        width: 100%;
        font-size: 72px;
        letter-spacing: -3.2px;
    }
    
    .about-description-container > p {
        max-width: 320px;
    }

    .service-accordion {
        height: 96px;
        padding: 24px 0;
    }

    .service-accordion > h5 {
        left: 24px;
        top: 42px;
        font-size: 12px;
    }
    
    .service-accordion:not(.is-open):hover {
        height: 96px;
        width: 100%;
    }

    .service-arrow {
        right: 24px;
        top: 38px;
        height: 16px;
        width: 16px;
        stroke-width: 4px;
    }

    .service-description > p {
        font-size: 20px;
        max-width: 480px;
    }

    .service-list-container > ul {
        gap: 16px;
    }

    .about-read-more {
        display: none;
    }

}