/* FIRST SECTION */
.home-sec1 {
    display: flex;
    flex-direction: column;
    justify-content: end;
    width: auto;
    height: 100vh;
    position: relative;
    background-color: black;
}

.home-text {
    display: flex;
    flex-direction: column;
    justify-content: end;
    text-align: center;
    padding: 0 2rem;
    filter: drop-shadow(0 0 4px black);
    gap: 0.5rem;
    z-index: 5;
    h1 {
        span {
            color: var(--orange);
        }
    }
    h4 {
        span {
            font-style: italic;
            font-weight: 400;
            color: var(--orange);
        }
    }
}

.home-bottom {
    display: flex;
    flex-direction: row;
    justify-content: center;
    position: relative;
    margin: 2rem 1rem 4rem;
    gap: 0.5rem;
    z-index: 5;
}

.bottom-btn {
    display: flex;
    flex-direction: row;
    border-radius: 100px;
    overflow: hidden;
    background-color: var(--orange);
    position: relative; 
}

.bottom-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: 48%;              
    width: 52%;
    height: 100%;
    background-color: white;
    border-radius: 100px;
    transition: left 0.35s ease;
    z-index: 0;
}

.bottom-btn[data-active="left"]::before { left: -5%; }
.bottom-btn[data-active="right"]::before { left: 48%; }

.bottom-btn[data-active="left"] .btn2 { color: white; }
.bottom-btn[data-active="left"] .btn1 { color: var(--orange); }

.bottom-btn[data-active="right"] .btn2 { color: var(--orange); }
.bottom-btn[data-active="right"] .btn1 { color: white; }

.btn1 {
    font-size: 25px;
    font-weight: bold;
    text-decoration: none;
    padding: 1rem 2rem;
}

.btn2 {
    font-size: 25px;
    font-weight: bold;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 100px;
}

.bottom-btn a {
    text-align: center;
    position: relative;
    color: white;
    z-index: 1;
    transition: color 0.35s ease;
}

.home-bg {
    position: absolute;
    width: 100%;
    height: 100vh;
    outline: 2px dotted white;
    mask-image: linear-gradient(to bottom,
        rgba(0,0,0,1) 35%,
        rgba(0,0,0,0));
    z-index: 1;
    overflow: hidden;
}

.home-bg video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100vh;
    object-fit: cover;
    transition: opacity 1s ease-in-out;
}

.home-bg img#videoFallback {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100vh;
    object-fit: cover;
    z-index: 0;
    transition: opacity 0.5s ease-in-out;
}


/* SECOND SECTION */
.home-sec2 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 4rem 1rem;
    gap: 2rem;
    h3 {
        color: black;
        margin-bottom: 2rem;
    }
    p {
        color: black;
    }
}

.sec2-row {
    display: flex;
    flex-wrap: nowrap;        
    justify-content: center;
    gap: 1.5rem;       
}

.sec2-row::-webkit-scrollbar {
    display: none;
}
.sec2-row {
    scrollbar-width: none;
}

.box {
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    flex: 0 0 calc(18% - 1.5rem);
    max-width: calc(20% - 1.5rem);
    min-width: 180px; 
    /* height: 450px; */
    padding: 2rem;
    outline: 1px solid var(--gray);
    border-radius: 20px;
    gap: 1rem;
    p {
        margin: 0;
    }
    img {
        height: 100px;
        width: 100px;
    }
}

/* THIRD SECTION */
.home-sec3 {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4rem 1rem;
    background-color: var(--gray);
    gap: 2rem;
}

.sec3-text {
    text-align: center;
    h3 {
        color: black;
        margin-bottom: 2rem;
    }
    p {
        color: black;
    }
}

.sec3-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 1rem;
    width: clamp(90px, 95vw, 1016px);
}

.grid-box {
    display: flex;
    align-items: end;
    position: relative;
    /* width: clamp(90px, 80vw, 500px); */
    background-color: black;
    border-radius: 20px;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    img, video {
        object-fit: cover;
        width: clamp(90px, 80vw, 500px);
        height: 100%;
        mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 35%, rgba(0, 0, 0, 0));
        z-index: 1;
    }
}

.box-text {
    position: absolute;
    padding: 2rem;
    z-index: 2;
    p {
        color: white;
        margin-bottom: 4rem;
    }
    a {
        font-size: 20px;
        color: var(--orange);
    }
    :hover {
        color: white;
    }
}

.sec3-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    h3 {
        margin: 1rem 0;
        color: black;
    }
}

.bottom-row {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 1rem;
}

.bottom-box {
    display: flex;
    flex-direction: column;
    justify-content: start;
    text-align: center;
    width: clamp(90px, 80vw, 310px);
    padding: 0 1rem;
    gap: 1rem;
    flex: 1;
    p {
        margin: 0;
    }
}

.line {
    width: 2px;
    background-color: white;
}

/* FOURTH SECTION */
.home-sec4 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 1rem;
    gap: 2rem;
}

.sec4-text {
    text-align: center;
    h3 {
        color: black;
    }
}

.slider {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 2rem;
}

.testimony {
    display: flex;
    flex-direction: column;
    justify-content: start;
    text-align: center;
    width: clamp(90px, 80vw, 350px);
    padding: 1rem 2rem;
    outline: 1px solid var(--gray);
    border-radius: 20px;
}

/* @media (max-width: 1100px) {
    .sec3-grid {
        grid-template-columns: repeat(auto-fit, minmax(clamp(250px, 50%, 500px), 1fr));
    }
} */

@media (max-width: 1200px) {
    .box {
        padding: 1rem;
    }
}

@media (max-width: 940px) {
    .home-text {
        padding: 1rem;
    }
    .home-bottom {
        margin: 1rem 1rem 6rem;
    }
    .sec2-row {
        gap: 0.5rem;
    }
    .box {
        flex: 0 0 calc(23% - 1.5rem);
        min-width: auto;
        max-width: calc(23% - 1.5rem);
        border-radius: 10px;
        gap: 0.5rem;
    }
    .bottom-btn .btn1, .bottom-btn .btn2 {
        font-size: 20px;
    }
    .grid-box {
        border-radius: 10px;
    }
    .box-text {
        padding: 1rem;
        p {
            margin: 0 0 0.5rem;
        }
        a {
            font-size: 18px;
        }
    }
    .sec3-grid {
        gap: 0.5rem;
    }
    .bottom-row {
        flex-direction: column;
    }
    .slider {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    .testimony {
        padding: 1rem;
        border-radius: 10px;
    }
}

@media (max-width: 768px) {
    .box {
        img {
            height: 60px;
            width: 60px;
        }
        p {
            font-size: 16px;
        }
    }
}

@media (max-width: 546px) {
    .home-text {
        br {
            display: none;
        }
    }
    .bottom-btn .btn1, .bottom-btn .btn2 {
        text-align: center;
        font-size: 16px;
        padding: 0.5rem 1rem;
    }
    .sec2-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
        width: auto
    }
    .box {
        width: auto;
        max-width: none;
        min-width: none;
        p {
            font-size: 14px;
        }
    }
    .box-text {
        padding: 0.5rem;
        p {
            font-size: 14px;
        }
        a {
            font-size: 14px;
        }
    }
}