@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 .project-button {
    background: linear-gradient(0deg, #cae501b2, #cae50100);
    padding: 10px 5px;
}

header nav .button .slider {
    height: 4px;
    width: 64px;
    position: absolute;
    background-color: var(--yellow);
    top: 37px;
    right: 88px;
    border-radius: 20px;
    transition: ease-in-out 0.3s;

}

header nav .button .services-button:hover~.slider {
    transform: translateX(-160px);
    width: 73px;

}

header nav .button .about-button:hover~.slider {

    transform: translatex(-87px);
    width: 55px;

}

header nav .button .home-button:hover~.slider {
    transform: translateX(-251px);
    width: 53px;

}

header nav .button .contact-button:hover~.slider {
    transform: translateX(93px);
    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;
        padding: 20px 60px;
        height: 100vh;

        h1 {
            position: absolute;
            font-size: 70px;
            top: 50px;
            left: 50px;
        }

        .wind {
            position: absolute;
            top: 239px;
            right: 337px;
            height: 271px;
            z-index: 99;
            box-shadow: 0 0 10px 5px rgb(74 73 73 / 63%);
        }

        .turbine {
            position: absolute;
            top: 54px;
            right: 30px;
            height: 292px;
            z-index: 90;
        }

        .eco1 {
            position: absolute;
            top: 425px;
            right: 56px;
            height: 292px;
            z-index: 85;
        }

        .eco2 {
            position: absolute;
            top: 321px;
            right: 580px;
            height: 365px;
            z-index: 80;
        }
    }

    .line {
        width: 100%;
        height: 2px;
        background-color: var(--black);

    }

    .projects {
        height: auto;
        padding: 20px 60px;
        display: grid;
        width: 80vw;
        gap: 20px;
        grid-template-columns: 30vw 30vw 30vw;

        .project {
            background-color: rgba(213, 212, 212, 0.54);
            border-radius: 20px;
            width: 400px;
            overflow: hidden;

            .img {
                margin: 10px;
                overflow: hidden;
                border-radius: 20px;
                height: 300px;

                img {
                    height: 100%;
                    width: 100%;
                    object-fit: cover;
                    transition: 0.2s;

                }
            }

            h1,
            h3 {
                padding: 0 10px;
            }

            button {
                padding: 10px;
                background-color: var(--yellow);
                color: var(--black);
                border-radius: 10px;
                border: 1px solid var(--green);
                font-size: 20px;
                cursor: pointer;
                margin: 0 10px;
                margin-bottom: 10px;
                transition: .2s;
            }
        }
    }

    .review {
        display: flex;
        position: relative;
        justify-content: center;
        padding: 20px 60px;
        padding-bottom: 0;

        img {
            height: auto;
        }

        .comment {
            height: 163px;
            width: 377px;
            background-color: rgb(255, 255, 255);
            border: 2px solid black;
            padding: 10px;
            border-radius: 20px 20px 0px 20px;
            position: absolute;
            
            text-align: justify;
        }
        .homeowner{
            top: 80px;
            left: 80px;
        }
        .artex{
            top: 80px;
            right: 25px;
            border-radius: 20px 20px 20px 0;
        }
        .resident{
            top: 460px;
            right: 25px;
            border-radius: 20px 20px 20px 0;
        }

    }

}

.project .img img:hover {
    scale: 1.2;
}

.project button:hover {
    box-shadow: 0 0 10px 5px #122f092c;
}
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: 90px; top: 60px; left: 160px; }
    main .hero .wind { top: 300px; right: 520px; height: 350px; }
    main .hero .turbine { top: 60px; right: 150px; height: 380px; }
    main .hero .eco1 { top: 540px; right: 170px; height: 380px; }
    main .hero .eco2 { top: 410px; right: 760px; height: 470px; }

    main .projects {
        width: 100%;
        box-sizing: border-box;
        padding: 20px 160px;
        gap: 30px;
        grid-template-columns: repeat(3, 1fr);
    }
    main .projects .project { width: 100%; }
    main .projects .project .img { height: 380px; }
    main .projects .project h1 { font-size: 32px; }
    main .projects .project button { font-size: 22px; }

    main .review { padding-left: 160px; padding-right: 160px; }

    footer .foot, footer .ter { padding-left: 160px; padding-right: 160px; }
}

/* =====================================================
   LAPTOP: up to 1450px (project grid fix)
   ===================================================== */
@media (max-width: 1450px) {
    main .projects {
        width: 100%;
        box-sizing: border-box;
        grid-template-columns: repeat(3, 1fr);
    }
    main .projects .project { width: 100%; }
}

/* =====================================================
   SMALL LAPTOP: up to 1200px (review stack)
   ===================================================== */
@media (max-width: 1200px) {
    main .review {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
        padding: 20px 30px;
    }
    main .review img { width: 100%; }
    main .review .comment {
        position: static;
        width: auto;
        height: auto;
        box-sizing: border-box;
        border-radius: 20px;
    }
}

/* =====================================================
   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 .project-button { padding: 14px 5px; }

    /* HERO (collage -> 2 column grid) */
    main .hero {
        height: auto;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
        padding: 110px 30px 30px;
    }
    main .hero h1 {
        position: static;
        grid-column: 1 / -1;
        font-size: 48px;
        margin: 0 0 10px;
    }
    main .hero img {
        position: static;
        width: 100%;
        height: 220px;
        object-fit: cover;
        border-radius: 15px;
        box-shadow: none;
    }

    /* PROJECTS (2 column) */
    main .projects {
        grid-template-columns: repeat(2, 1fr);
        padding: 20px 30px;
    }
    main .projects .project h1 { font-size: 26px; }

    /* 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 (1 column) */
    main .hero { grid-template-columns: 1fr; padding: 90px 20px 20px; }
    main .hero h1 { font-size: 34px; }
    main .hero img { height: 200px; }

    /* PROJECTS (1 column) */
    main .projects { grid-template-columns: 1fr; padding: 20px; }
    main .projects .project .img { height: 220px; }
    main .projects .project h1 { font-size: 24px; }
    main .projects .project button { font-size: 16px; }

    /* REVIEW */
    main .review { padding: 20px; }
    main .review .comment { font-size: 15px; }

    /* 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; }
}