@import url(global.css);

.hero-section{
    height: 100vh;
    width: 100%;
    padding: 90px 60px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: 
        radial-gradient(circle at bottom right, var(--color-white), transparent 50%),
        radial-gradient(circle at top right, var(--color-main), transparent 50%);
    background-size: cover;
    background-repeat: no-repeat;

    & .hero-container{
        height: 100%;
        width: 100%;
        padding: 0 0 0 100px;
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 0;
        
        & .hero-content{
            min-width: 50%;
            max-width: 50%;
            display: flex;
            flex-direction: column;
            gap: var(--gap-36);

            & .hero-actions{
                display: flex;
                flex-direction: row;
                gap: var(--gap-26);
            }
        }

        & .hero-image{
            width: calc(50% + 100px);
            margin-left: -100px;
        }
    }
}

.clients-section{
    width: 100%;
    height: 100%;
    padding: 90px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--gap-16);

    & .clients-header{
        width: 50%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: var(--gap-26);
    }

    & .clients-content{
        height: 100%;
        width: auto;
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        gap: var(--gap-70);
        padding: 30px 20px;

        & img.logo{
            height: 60px;
        }

    }
}

.services-section{
    position: relative;
    width: 100%;
    height: 100%;
    padding: 90px 60px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: var(--gap-70);
    background: var(--bg-sec);

    & .service-image-container{
        height: 400px;
        width: 400px;
        display: flex;
        justify-content: center;
        align-items: center;
        overflow: hidden;
        background: var(--bg-main);
        border-radius: var(--border-radius-large);

        & img{
            height: 100%;
            object-fit: cover;

            &:hover{
                scale: 1.1;
            }
        }
    }

    & .service-content{
        width: 40%;
        display: flex;
        flex-direction: column;
        gap: var(--gap-26);
    }

    & .services-slider {
        width: 100%;
        display: flex;
        flex-direction: column;
        position: relative;

        & .service-slide {
            display: none;
            flex-direction: row;
            justify-content: center;
            align-items: center;
            gap: var(--gap-70);
            animation: fadeIn 0.5s ease;

            &.active {
            display: flex;
            }
        }
    }

    & .services-controls {
        position: absolute;
        top: 50%;
        left: 0;
        right: 0;
        pointer-events: none;

        & button {
            pointer-events: auto;
            background-color: var(--bg-main);
            color: var(--text-main, #fff);
            border: none;
            border-radius: var(--border-radius-large);
            padding: 15px 30px;
            font-size: 1.2rem;
            cursor: pointer;
            transition: background 0.3s ease;
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            display: flex;
            justify-content: center;
            align-items: center;

            &:hover {
                background-color: #444;
            }
        }

        & #previous-service-button {
            left: 4rem;
        }

        & #next-service-button {
            right: 4rem;
        }
    }

}

.services{
    position: relative;
    width: 100%;
    max-width: 100%;
    padding: 90px 160px;
    padding-bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    gap: var(--gap-70);

    & img.wave{
        position: absolute;
        width: 100%;
        bottom: 0;
        z-index: -10;
    }

    & .services-title{
        width: 50%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: var(--gap-26);
    }

    & .services-content{
        height: 50vh;
        width: auto;
        display: flex;
        flex-direction: row;
        gap: var(--gap-70);
        padding: 30px 20px;

        & .service{
            width: 450px;
            height: 400px;
            display: flex;
            padding: 30px 1rem;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            gap: var(--gap-26);
            background: rgba(0, 0, 0, 0.75);
            border-radius: var(--border-radius-large);
            border-top: 3px solid var(--color-main);
            border-left: 3px solid var(--color-main);

            & p,
            & h2{
                width: 80%;
            }

            & i{
                font-size: var(--font-heading);
            }
        }
    }
}

.contact-section{
    position: relative;
    height: 300px;
    width: 100%;
    padding: 90px 160px;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    background: var(--bg-main);
    overflow: hidden;

    & .contact-wave{
        position: absolute;
        width: 200%;
        bottom: -190px;
        right: 0;
        left: -900px;

        & path{
            fill: var(--color-main-wave);
        }
    }

    & .contact-content{
        z-index: 10;
        width: 60%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        gap: var(--gap-26);

        & a{
            display: flex;
            flex-direction: row;
            justify-content: center;
            align-items: flex-end;
            gap: var(--gap-16);

            &:hover span{
                text-decoration: underline;
            }
        }
    }
}

.info{
    height: 300px;
    width: 100%;
    padding: 90px 160px;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;

    & .info-content{
        width: 60%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-end;
        gap: var(--gap-26);
    }
}

/* Responsive */

@media (max-width: 1000px) {

    .hero-section{
        & .hero-container{
            flex-direction: column;
            padding: 0;

            & .hero-content{
                max-width: 100%;
            }

            & .hero-image{
                margin: 0;
                width: 100%;
            }
        }
    }

    .services-section{
        flex-direction: column;

        & .services-slider {
            & .service-slide {
                flex-direction: column;
                gap: var(--gap-36);
            }
        }

        & .services-controls {
            position: static;
            margin-top: 40px;
            display: flex;
            justify-content: center;
            gap: var(--gap-26);

            & button {
                position: static;
                transform: none;
                pointer-events: auto;
                padding: 30px 50px;
            }
        }


        & .service-image-container{
            width: 100%;
        }

        & .service-content{
            width: 100%;
        }
    }

    .services{

        & img.wave{
            width: unset;
            height: 80%;
        }

        & .services-title{
            width: 100%;
        }

        & .services-content{
            gap: var(--gap-36);
            height: fit-content;
            width: 100vw;

            & .service{
                width: 50%;
            }
        }
    }

    .contact-section,
    .info{
        padding: 90px 60px;
    }

    .contact-section .contact-content,
    .info .info-content{
        width: 100%;
    }
}

@media (max-width: 600px){
    .hero-section{
        height: 100%;
        padding: 90px 30px;
    }

    .services-section{
        padding: 90px 30px;

        & .services-controls {
            gap: var(--gap-16);

            & button {
                padding: 8px 16px;
                font-size: 1rem;
            }
        }

        & .service-image-container{
            width: 100%;
            height: 200px;
            
            & img{
                height: unset;
                width: 100%;
                scale: 1.1;

                &:hover{
                    scale: 1.2;
                }
            }
        }
    }

    .services{
        padding: 90px 30px;

        & .services-content{
            flex-direction: column;

            & .service{
                width: 100%;
            }
        }
    }

    .contact-section,
    .info{
        height: 100%;
        padding: 90px 30px;
    }
}


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