@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300..700&display=swap');

body {
    margin: auto;
    padding: auto;
    width: 100%;
    font-family: "Space Grotesk", sans-serif;
}

:root {
    --padding: 20px;
    --green: #0C2205;
    --yellow: #CAE501;
    --white: white;
    --black: black;
}
::selection {
    background-color: var(--yellow);
    color: var(--black);
}

header {
    width: 100%;
}

header nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    z-index: 1000;
    height: 15px;
    display: flex;
    justify-content: space-between;
    background-color: black;
    margin: auto;
    padding: var(--padding);
    align-items: center;
    backdrop-filter: blur(10px);
}

header nav img {
    height: 120px;
}

header nav .button {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    color: var(--white);
}

header nav .button a {
    text-decoration: none;
    color: white;
    font-size: 15px;
    padding: 10px 0;
}

header nav .button .about-button {
    background: linear-gradient(0deg, #cae501b2, #cae50100);
    padding: 10px 5px;
}

header nav .button .slider {
    height: 4px;
    width: 55px;
    position: absolute;
    background-color: var(--yellow);
    top: 37px;
    right: 170px;
    border-radius: 20px;
    transition: ease-in-out 0.3s;

}

header nav .button .services-button:hover~.slider {
    transform: translateX(-79px);
    width: 73px;

}

header nav .button .home-button:hover~.slider {
    transform: translateX(-170px);
    width: 53px;

}

header nav .button .project-button:hover~.slider {
    transform: translateX(86px);
    width: 60px;

}

header nav .button .contact-button:hover~.slider {
    transform: translateX(175px);
    width: 68px;

}

header nav .ctr {
    background-color: var(--yellow);
    border-radius: 20px;
    color: var(black);
    padding: 5px 10px;
    cursor: pointer;
    font-weight: 600;
}

main {
    .hero {
        position: relative;
        height: 100vh;
        padding: 20px 60px;

        h1 {
            font-size: 60px;
        }

        img {
            height: 430px;
            position: absolute;
            top: 160px;
            left: 50vw;
            border-radius: 20px;

            transform: translateX(-50%);

        }

        h2 {
            position: absolute;
            bottom: 50px;
            right: 60px;
            font-size: 30px;
        }
    }

    .line {
        width: 100%;
        height: 2px;
        background-color: var(--black);

    }

    .section2 {
        background-color: var(--white);
        width: 100%;
        height: 200px;
        color: black;
        display: flex;
        flex-direction: row;
        gap: 20;
        justify-content: space-between;
        align-items: center;
        padding: 40px 0;

        /* padding: 30px 0; */
        .clint {
            border-right: 2px solid gray;
            border-left: 2px solid gray;
        }

        .test {
            height: 100%;
            width: 25%;
            padding: 0 60px;
            align-items: center;
            display: flex;
            flex-direction: row;

            img {
                height: 60px;
            }


            /* text-align: center; */
            span {
                font-size: 40px;
                font-weight: 400px;

                div {
                    text-align: justify;
                    font-size: 20px;
                }
            }
        }
    }

    .our-self {
        padding: 70px 60px;
        display: flex;
        flex-direction: row;
        gap: 20px;
        position: relative;

        .headline {
            position: absolute;
            top: -10px;
            font-size: 50px;
        }

        img {
            margin: 40px 0;
            height: 550px;
            border-radius: 20px;
        }

        .self {
            text-align: center;

            h1 {
                font-size: 35px;
                margin: 40px 0;
            }

            p {
                font-size: 20px;
                text-align: justify;
            }
        }
    }

    .team {
        height: 80vh;
        padding: 20px 60px;

        .head {
            font-size: 64px;
        }

        .persons {
            display: flex;
            flex-direction: row;
            gap: 20px;
            justify-contect: space-between;

            .person {
                background-color: rgba(128, 128, 128, 0.236);
                height: 70vh;
                width: 333px;
                border-radius: 20px;
                transition: .2s;

                .img {
                    height: 350px;
                    overflow: hidden;
                    padding: 10px;
                    width: 320px;
                    box-sizing: border-box;
                    border-radius: 10px;

                    img {
                        object-fit: cover;
                        height: 100%;
                        width: 100%;
                        display: block;
                        border-radius: 10px;
                    }
                }

                h1,h3 {
                    padding: 0 10px;
                }


            }
        }
    }

}

.persons .person:hover{
    scale: 1.08;
}
.person .person:hover img{
    scale: 1.02;
}
footer {
    background-color: var(--black);
    height: 250px;
    width: 100%;
    color: var(--white);
    .foot-line{
        height: 2px;
        width: 100%;
        background: linear-gradient(90deg, rgba(128, 128, 128, 0.074), rgb(78, 78, 78), rgba(128, 128, 128, 0.074));
    }
    .ter{
        display: flex;
        justify-content: space-between;
        padding: 20px 60px;
        font-size: 15px;
        text-align: center;
        height: 60px;
        .developer {
            text-align: center;
            display: flex;
            align-items: center;
        
           img{
            height: 80px;
            width: 80px;
        }
        }
    }
}

footer .foot {
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    padding: 20px 60px;
    align-items: center;

    .shortcut {
        a {
            text-decoration: none;

            img {
                height: 40px;
            }

            p {
                color: white;
                font-size: 15px;
            }
        }
    }

    .nav-shortcut {
        display: flex;
        gap: 20px;

        a {
            text-decoration: none;
            color: rgba(255, 255, 255, 0.74);
            cursor: pointer;
        }

    }

    .social {
        display: flex;
        flex-direction: row;
        gap: 20px;

        a{
            img{
                height: 40px;
            }
        }
    }

}
footer .foot .social a:hover{
    scale: 1.1;
}
/* ===== Hamburger (desktop e hidden) ===== */
.menu-toggle {
    display: none;
    color: var(--white);
    font-size: 30px;
    cursor: pointer;
    user-select: none;
}

/* =====================================================
   LARGE DESKTOP: 1600px and up (1920x1080)
   ===================================================== */
@media (min-width: 1600px) {
    header nav { padding: 20px 160px; }

    main .hero { padding: 20px 160px; }
    main .hero h1 { font-size: 80px; }
    main .hero img { height: 560px; top: 200px; }
    main .hero h2 { right: 160px; font-size: 40px; }

    main .section2 .test { padding: 0 100px; }
    main .section2 .test span { font-size: 48px; }

    main .our-self { padding: 70px 160px; gap: 40px; }
    main .our-self .headline { font-size: 64px; }
    main .our-self img { height: 650px; }
    main .our-self .self h1 { font-size: 42px; }
    main .our-self .self p { font-size: 22px; }

    main .team { padding: 20px 160px; }
    main .team .head { font-size: 80px; }
    main .team .persons { gap: 30px; }
    main .team .persons .person { width: calc(25% - 23px); }
    main .team .persons .person .img { width: 100%; height: 400px; }

    footer .foot, footer .ter { padding-left: 160px; padding-right: 160px; }
}

/* =====================================================
   LAPTOP: up to 1450px (team card overflow fix)
   ===================================================== */
@media (max-width: 1450px) {
    main .team { height: auto; padding-bottom: 50px; }
    main .team .persons { gap: 15px; }
    main .team .persons .person { width: calc(25% - 12px); height: auto; padding-bottom: 15px; }
    main .team .persons .person .img { width: 100%; }
    main .team .persons .person h1 { font-size: 24px; }
    main .team .persons .person h3 { font-size: 15px; }
}

/* =====================================================
   TABLET: up to 1024px
   ===================================================== */
@media (max-width: 1024px) {
    /* NAV (baki page er moto same) */
    header nav { height: auto; padding: 10px 20px; }
    header nav img { height: 50px; }
    header nav .button .slider { display: none; }
    .menu-toggle { display: block; }
    header nav .ctr { margin-left: auto; margin-right: 20px; }

    header nav .button {
        display: none;
        position: absolute !important;   /* inline style override */
        top: 100%;
        left: 0;
        width: 100%;
        box-sizing: border-box;
        flex-direction: column;
        gap: 0;
        padding: 10px 20px 20px;
        background: var(--black);
    }
    header nav .button.open { display: flex; }
    header nav .button a { padding: 14px 0; font-size: 17px; }
    header nav .button .about-button { padding: 14px 5px; }

    /* HERO */
    main .hero {
        height: auto;
        padding: 110px 30px 40px;
        display: flex;
        flex-direction: column;
        gap: 25px;
        text-align: center;
    }
    main .hero h1 { font-size: 48px; margin: 0; }
    main .hero img {
        position: static;
        transform: none;
        width: 100%;
        height: auto;
        max-height: 420px;
        object-fit: cover;
    }
    main .hero h2 { position: static; font-size: 24px; margin: 0; }

    /* STATS */
    main .section2 { height: auto; padding: 30px 0; }
    main .section2 .test { width: 33.33%; padding: 0 20px; box-sizing: border-box; }
    main .section2 .test img { height: 45px; }
    main .section2 .test span { font-size: 28px; }
    main .section2 .test span div { font-size: 15px; }

    /* WHO ARE WE */
    main .our-self { padding: 80px 30px 40px; }
    main .our-self .headline { font-size: 40px; }
    main .our-self img { width: 40%; height: 380px; object-fit: cover; }
    main .our-self .self { flex: 1; }
    main .our-self .self h1 { font-size: 26px; margin: 20px 0 0; }
    main .our-self .self br { display: none; }
    main .our-self .self p { font-size: 16px; }

    /* TEAM (2 column) */
    main .team { padding: 20px 30px 40px; }
    main .team .head { font-size: 44px; }
    main .team .persons { flex-wrap: wrap; }
    main .team .persons .person { width: calc(50% - 10px); }
    main .team .persons .person .img { height: 300px; }

    /* FOOTER */
    footer { height: auto; }
    footer .foot { flex-wrap: wrap; gap: 20px; padding: 20px 30px; }
    footer .ter { padding: 20px 30px; height: auto; }
}

/* =====================================================
   MOBILE: up to 600px
   ===================================================== */
@media (max-width: 600px) {
    header nav .ctr { display: none; }

    /* HERO */
    main .hero { padding: 90px 20px 30px; }
    main .hero h1 { font-size: 34px; }
    main .hero h2 { font-size: 20px; }

    /* STATS (stack) */
    main .section2 { flex-direction: column; padding: 10px 0; }
    main .section2 .test { width: 100%; padding: 25px 20px; }
    main .section2 .clint {
        border: 0;
        border-top: 2px solid gray;
        border-bottom: 2px solid gray;
    }

    /* WHO ARE WE */
    main .our-self { flex-direction: column; padding: 70px 20px 30px; gap: 0; }
    main .our-self .headline { font-size: 32px; }
    main .our-self img { width: 100%; height: 250px; margin: 20px 0; }
    main .our-self .self h1 { font-size: 24px; }

    /* TEAM (1 column) */
    main .team { padding: 20px 20px 40px; }
    main .team .head { font-size: 34px; }
    main .team .persons { flex-direction: column; gap: 20px; }
    main .team .persons .person { width: 100%; }
    main .team .persons .person .img { height: 320px; }
    main .team .persons .person:hover { scale: 1; }

    /* FOOTER */
    footer .foot { flex-direction: column; align-items: flex-start; padding: 20px; }
    footer .foot .nav-shortcut { flex-wrap: wrap; }
    footer .ter { flex-direction: column; align-items: center; gap: 10px; padding: 20px; }
}
