@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 .contact-button {
    background: linear-gradient(0deg, #cae501b2, #cae50100);
    padding: 10px 5px;
}

header nav .button .slider {
    height: 4px;
    width: 70px;
    position: absolute;
    background-color: var(--yellow);
    top: 37px;
    right: -1px;
    border-radius: 20px;
    transition: ease-in-out 0.3s;

}

header nav .button .services-button:hover~.slider {
    transform: translateX(-250px);
    width: 73px;

}

header nav .button .about-button:hover~.slider {
    transform: translateX(-175px);
    width: 55px;

}

header nav .button .project-button:hover~.slider {
    transform: translateX(-94px);
    width: 60px;

}

header nav .button .home-button:hover~.slider {
    transform: translateX(-340px);
    width: 53px;

}

header nav .ctr {
    background-color: var(--yellow);
    border-radius: 20px;
    color: var(black);
    padding: 5px 10px;
    cursor: pointer;
    font-weight: 600;
}

main {
    background-image: url(Eco\ Tech\ p2.jpg.jpeg);
    background-position: center;
    background-size: cover;

    .flexbox {
        display: flex;
        flex-direction: row;
        gap: 20px;
        justify-content: center;
        padding: 20px 60px;
        height: 100vh;

        .left {
            display: flex;
            flex-direction: column;
            gap: 10px;
            text-align: center;
            justify-content: center;
            align-items: center;
            width: 40vw;

            .items {
                display: flex;
                flex-direction: column;
                gap: 10px;
                text-align: center;
                justify-content: center;
                align-items: center;
                background-color:#ecece855;
                padding: 10px;
                border-radius: 20px;
                backdrop-filter: blur(10px);

                .item {
                    text-align: center;
                    display: flex;
                    flex-direction: row;
                    align-items: center;
                    justify-content: center;
                    gap: 10px;
                    padding: 10px;
                    color: rgb(0, 0, 0);

                    p {
                        stroke: 1px black;
                    }

                    img {
                        height: 50px;
                    }
                }
            }



        }

        .right {
            width: 40vw;
            /* background-color:white; */
            display: flex;
            /* backdrop-filter: blur(20px); */
            /* justify-content: center; */
            align-items: center;

            form {
                display: flex;
                flex-direction: column;
                background-color: #e6f28a55;
                padding: 30px;
                border-radius: 20px;
                backdrop-filter: blur(10px);
                gap: 10px;

                input,select,button {
                    background-color: black;
                    color: var(--yellow);
                    height: 40px;
                    width: 480px;
                    border-radius: 10px;
                }
            }
        }
    }
}
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 .flexbox { padding: 20px 160px; gap: 60px; }
    main .flexbox .left .items { padding: 20px 30px; }
    main .flexbox .left .items .item img { height: 60px; }
    main .flexbox .left .items .item p { font-size: 22px; }
    main .flexbox .right form { padding: 40px; gap: 14px; }
    main .flexbox .right form input,
    main .flexbox .right form select,
    main .flexbox .right form button { width: 600px; height: 48px; font-size: 18px; }

    footer .foot, footer .ter { padding-left: 160px; padding-right: 160px; }
}

/* =====================================================
   LAPTOP: up to 1200px (form width fix)
   ===================================================== */
@media (max-width: 1200px) {
    main .flexbox .right form { box-sizing: border-box; width: 100%; }
    main .flexbox .right form input,
    main .flexbox .right form select,
    main .flexbox .right form button { width: 100%; box-sizing: border-box; }
}

/* =====================================================
   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 .contact-button { padding: 14px 5px; }

    /* CONTACT (stack) */
    main .flexbox {
        flex-direction: column;
        height: auto;
        align-items: center;
        gap: 30px;
        padding: 110px 30px 40px;
    }
    main .flexbox .left { width: 100%; }
    main .flexbox .left .items { width: 100%; max-width: 520px; box-sizing: border-box; }
    main .flexbox .right { width: 100%; max-width: 560px; }

    /* 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; }

    main .flexbox { padding: 90px 20px 30px; gap: 20px; }
    main .flexbox .left .items .item { gap: 10px; padding: 6px; }
    main .flexbox .left .items .item img { height: 40px; }
    main .flexbox .right form { padding: 20px; }

    /* 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; }
}