@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;
    --gray-gradiant: linear-gradient(90deg, 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 .home-button {
    background: linear-gradient(0deg, #cae501b2, #cae50100);
    padding: 10px 5px;
    transition: ease-in-out 0.3s;
}

header nav .button .slider {
    height: 4px;
    width: 53px;
    position: absolute;
    background-color: var(--yellow);
    top: 37px;
    right: 335px;
    border-radius: 20px;
    transition: ease-in-out 0.3s;
}

header nav .button .services-button:hover~.slider {
    transform: translateX(97px);
    width: 73px;
}

header nav .button .about-button:hover~.slider {
    transform: translateX(170px);
    width: 55px;
}

header nav .button .project-button:hover~.slider {
    transform: translatex(251px);
    width: 60px;
}

header nav .button .contact-button:hover~.slider {
    transform: translatex(341px);
    width: 68px;
}

header nav .ctr {
    background-color: var(--yellow);
    border-radius: 20px;
    color: var(black);
    padding: 5px 10px;
    cursor: pointer;
    font-weight: 600;
}

.hero {
    position: relative;
    cursor: url('cursor.png'), auto;
}

.hero .video video {
    width: 100%;
    height: 100vh;
    object-fit: cover;
    z-index: -99;

    display: block;
}

.hero .video video {
    width: 100%;
    height: 100vh;
    object-fit: cover;
    display: block;
}

.hero h1 {
    height: auto;
    width: 800px;
    position: absolute;
    top: 159px;
    left: 60px;
    font-size: 80px;
    color: var(--yellow);
    z-index: 2;
    /* text-wrap: wrap;*/
}

.hero .black {
    background: radial-gradient(circle at 0% 0%, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 80%);
    height: 100vh;
    width: 100%;
    z-index: 1;
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
}

.ctr-btn {
    background-color: var(--yellow);
    color: var(--black);
    position: absolute;
    border-radius: 20px;
    left: 60px;
    top: 540px;
    z-index: 3;
    font-size: 20px;
    font-weight: 600;
    padding: 20px 50px;
    box-shadow: none;
}

.ctr-btn:hover {
    box-shadow: 0px 0px 5px var(--yellow);
}

.section2 {
    background-color: var(--white);
    width: 100%;
    height: 300px;
    color: black;
    display: flex;
    flex-direction: row;
    gap: 20;
    justify-content: space-between;
    align-items: center;

    /* padding: 30px 0; */
    .home {
        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;
            }
        }
    }
}

.solve {
    background-color: var(--green);
    width: 100%;
    height: 500px;
    color: rgb(255, 255, 255);

    gap: 20;
    justify-content: space-between;

    .head {
        padding: 20px 60px;

        h1 {
            font-size: 35px;
        }
    }

    .flex-box {
        display: flex;
        justify-content: space-between;
        padding: 0px 60px;

        .box {
            height: 300px;
            width: 25%;
            background-color: rgba(2, 99, 2, 0.059);
            border-radius: 30px;
            text-align: center;
            align-items: center;
            padding: 20px;
            cursor: pointer;

            img {
                height: 60px;
            }
        }

        span {
            font-size: 40px;
            font-weight: 400px;
            align-items: center;
            text-align: center;
            justify-content: center;
            display: flex;
        }

        div {
            font-size: 20px;
            text-align: justify;
        }
    }

}

.solve .flex-box .box:hover {
    box-shadow: 0 0 20px 20px rgba(0, 0, 0, 0.371);
}

.explain {
    background-color: var(--white);
    width: 100%;
    height: auto;
    color: rgb(4, 4, 4);

    .head {
        padding: 20px 60px;

        h1 {
            font-size: 35px;
        }
    }

    .explain-box {
        padding: 20px 60px;

        .box {
            display: flex;
            flex-direction: row;
            gap: 20px;

            .text {
                h1 {
                    font-size: 40px;
                }

                p {
                    font-size: 20px;
                    text-align: justify;
                }
            }

            .explain-box-img {
                height: 350px;
                border-radius: 20px;
            }
        }
    }
}

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 (hidden on desktop) ===== */
.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; }

    .hero h1 { left: 160px; font-size: 100px; width: 1100px; top: 180px; }
    .ctr-btn { left: 160px; top: 620px; font-size: 22px; }

    .section2 .test { padding: 0 100px; }
    .section2 .test span { font-size: 48px; }

    .solve { height: auto; padding-bottom: 60px; }
    .solve .head,
    .explain .head { padding: 30px 160px; }
    .solve .head h1,
    .explain .head h1 { font-size: 45px; }
    .solve .flex-box { padding: 0 160px; }
    .solve .flex-box .box { height: 340px; }

    .explain .explain-box { padding: 20px 160px 60px; }
    .explain .explain-box .box { gap: 40px; margin-bottom: 40px; }
    .explain .explain-box .box .explain-box-img { height: 450px; }
    .explain .explain-box .box .text h1 { font-size: 50px; }
    .explain .explain-box .box .text p { font-size: 22px; }

    footer .foot, footer .ter { padding-left: 160px; padding-right: 160px; }
}

/* =====================================================
   TABLET: up to 1024px
   ===================================================== */
@media (max-width: 1024px) {
    /* NAV */
    header nav { height: auto; padding: 10px 20px; }
    header nav img { height: 50px; }
    header nav .button .slider { display: none; }
    .menu-toggle { display: block; }

    header nav .button {
        display: none;
        position: absolute !important;   /* overrides inline style */
        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 .home-button { padding: 14px 5px; }

    /* HERO */
     .hero .video video { height: 56.25vw; min-height: 380px; }
    .hero .black { height: 56.25vw; min-height: 380px; }
    .hero h1 { font-size: 48px; width: 80%; left: 40px; top: 90px; }
    .ctr-btn { left: 40px; top: auto; bottom: 40px; padding: 16px 40px; }

    /* STATS */
    .section2 { height: auto; padding: 30px 0; }
    .section2 .test { width: 33.33%; padding: 0 20px; box-sizing: border-box; }
    .section2 .test img { height: 45px; }
    .section2 .test span { font-size: 28px; }
    .section2 .test span div { font-size: 15px; }

    /* WE CAN RESOLVE */
    .solve { height: auto; padding-bottom: 40px; }
    .solve .head { padding: 20px 30px; }
    .solve .flex-box { padding: 0 30px; gap: 15px; }
    .solve .flex-box .box { width: 32%; height: auto; min-height: 260px; box-sizing: border-box; }
    .solve .flex-box span { font-size: 28px; }
    .solve .flex-box div { font-size: 16px; }

    /* LET'S LEARN */
    .explain .head { padding: 20px 30px; }
    .explain .explain-box { padding: 20px 30px; }
    .explain .explain-box .box { margin-bottom: 30px; }
    .explain .explain-box .box .explain-box-img {
        width: 45%; height: 280px; object-fit: cover;
    }
    .explain .explain-box .box .text h1 { font-size: 30px; }
    .explain .explain-box .box .text p { font-size: 17px; }

    /* 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; }
    header nav { justify-content: space-between; }

    /* HERO */
     .hero .video video { height: 380px; }
    .hero .black { height: 380px; }
    .hero h1 { font-size: 30px; left: 20px; width: calc(100% - 40px); top: 90px; }
    .ctr-btn { left: 20px; top: auto; bottom: 25px; padding: 12px 28px; font-size: 16px; }

    /* STATS (stack vertically) */
    .section2 { flex-direction: column; padding: 10px 0; }
    .section2 .test { width: 100%; padding: 25px 20px; }
    .section2 .home {
        border: 0;
        border-top: 2px solid gray;
        border-bottom: 2px solid gray;
    }

    /* WE CAN RESOLVE */
    .solve .head { padding: 20px; }
    .solve .head h1 { font-size: 28px; }
    .solve .flex-box { flex-direction: column; padding: 0 20px; gap: 20px; }
    .solve .flex-box .box { width: 100%; min-height: 0; }

    /* LET'S LEARN */
    .explain .head { padding: 20px; }
    .explain .head h1 { font-size: 28px; }
    .explain .explain-box { padding: 10px 20px; }
    .explain .explain-box .box { flex-direction: column; }
    .explain .explain-box .box .explain-box-img { width: 100%; height: 220px; }
    .explain .explain-box .box .text h1 { font-size: 26px; }
    .explain .explain-box .box .text p { font-size: 16px; }

    /* 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; }
}
