@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 .services-button {
    background: linear-gradient(0deg, #cae501b2, #cae50100);
    padding: 10px 5px;
}

header nav .button .slider {
    height: 4px;
    width: 73px;
    position: absolute;
    background-color: var(--yellow);
    top: 37px;
    right: 244px;
    border-radius: 20px;
    transition: ease-in-out 0.3s;

}

header nav .button .home-button:hover~.slider {
    transform: translateX(-96px);
    width: 53px;

}

header nav .button .about-button:hover~.slider {
    transform: translatex(80px);
    width: 55px;

}

header nav .button .project-button:hover~.slider {
    transform: translateX(160px);
    width: 60px;

}

header nav .button .contact-button:hover~.slider {
    transform: translateX(249px);
    width: 68px;

}

header nav .ctr {
    background-color: var(--yellow);
    border-radius: 20px;
    color: var(black);
    padding: 5px 10px;
    cursor: pointer;
    font-weight: 600;
}

main {
    width: 100%;
    align-items: center;
    display: flex;
    flex-direction: column;

    .hero {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 40px 60px;
        gap: 50px;
        cursor: url('cursor.png') , auto;
        height: 100vh;
        .text{
            
        }

        h1 {
            font-size: 75px;
        }

        .image {
            position: relative;

            img {
                height: 450px;
                border-radius: 10px;
                box-shadow: 0px 0px 10px 4px rgba(53, 53, 53, 0.767);
            }

            .solar-turbine {
                position: absolute;
                top: 145px;
                right: 361px;
                height: 170px;
                border-radius: 20px;
            }
        }

    }
}
.line{
    width: 100%;
    height: 2px;
    background-color: var(--black);

}
.services{

    padding: 20px 60px;
    gap: 20px;
    .service-line{
        height: 2px;
        width: 100%;
        background-color: rgba(128, 128, 128, 0.7);
    }
    .service{
    display: flex;
    flex-direction: row;
    gap: 20px;
    justify-content: space-between;
    padding: 20px 0;
    .img{
        width: 45%;
        overflow: hidden;
        height: 330px;
        border-radius: 20px;
        img{
            height: 100%;
            width: 100%;
            object-fit: cover;
            transition: .2s;
        }
        
    }
    .text{
        width: 45%;
        h2{
            font-size: 35px;
            font-weight: 800;
        }
        button{
        padding: 10px;
        background-color: var(--yellow);
        color: var(--black);
        border-radius: 10px;
        border: 1px solid var(--green) ;
        font-size: 20px;
        cursor: pointer;
        transition: 0.2s;
        
    }
    }
    }
    
}
.services .service .img img:hover{
    scale: 1.2;
}
.services .service .text 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: var(--white);
                font-size: 15px;
            }
        }
    }

    .nav-shortcut {
        display: flex;
        gap: 20px;

        a {
            text-decoration: none;
            color: var(--white);
            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: 40px 160px; gap: 80px; }
    main .hero h1 { font-size: 100px; }
    main .hero .image img { height: 600px; }
    main .hero .image .solar-turbine { top: 193px; right: 481px; height: 227px; }

    .services { padding: 20px 160px; }
    .services .service .img { height: 400px; }
    .services .service .text h2 { font-size: 45px; }
    .services .service .text p { font-size: 22px; }
    .services .service .text button { font-size: 22px; padding: 14px 20px; }

    footer .foot, footer .ter { padding-left: 160px; padding-right: 160px; }
}

/* =====================================================
   TABLET: up to 1024px
   ===================================================== */
@media (max-width: 1024px) {
    /* NAV (index 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 .services-button { padding: 14px 5px; }

    /* HERO */
    main .hero {
        flex-direction: column;
        height: auto;
        width: 100%;
        box-sizing: border-box;
        padding: 110px 30px 40px;
        gap: 30px;
        text-align: center;
    }
    main .hero h1 { font-size: 52px; }
    main .hero .image img { height: 320px; max-width: 100%; }
    main .hero .image .solar-turbine { top: 103px; right: 257px; height: 121px; }

    /* SERVICES */
    .services { padding: 20px 30px; }
    .services .service .img { height: 250px; }
    .services .service .text h2 { font-size: 26px; }
    .services .service .text p { font-size: 16px; }
    .services .service .text button { font-size: 16px; }

    /* 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: 36px; }
    main .hero .image { width: 100%; }
    main .hero .image img { width: 100%; height: auto; }
    main .hero .image .solar-turbine {
        width: 45%;
        height: auto;
        top: auto;
        bottom: -15px;
        right: 10px;
    }

    /* SERVICES (stack) */
    .services { padding: 10px 20px; }
    .services .service { flex-direction: column; }
    .services .service .img { width: 100%; height: 220px; }
    .services .service .text { width: 100%; }
    .services .service .text h2 { font-size: 24px; }

    /* 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; }
}