html, body {
    overflow-x: hidden;
    width: 100%;
    scroll-behavior: smooth;

}

body{
    background: #4A494C;
    color: white;
    margin: 0 !important;
    font-family: 'Consolas', sans-serif;
}

main{
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0));
}

section{
  scroll-margin-top: 80px; /* wysokość Twojego navbara */
}

#top-bar{
    position: fixed;
    top: 0;
    z-index: 1000;
    width: 100%;
}

#aside-tel{
    display: flex;
    align-items: center;
    background-color: #F8C649;
    color:black;
    padding: 20px;
}
#aside-realizacje h2{
    color:black;
    font-size: 2em;
    margin: 0px 15px;
    padding: 0;
}

#nav-top{
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #F8C649;
    color:black;
    padding: 20px;
    font-size: 1.25em;
}
#nav-top h3{
    color: black !important;
    margin: 0 20px;
}
.nav-item{
    padding: 5px 0;
    transition: transform .2s; /* Animation */
}
.nav-item:hover{
    cursor: pointer;
    transform: scale(1.1);
}
#b-l{
    border-left: 2px solid black;
    padding-left: 30px;
}
.nav-active{
    color: black;
    font-weight: bold;
    text-decoration: underline;
}
#hamburger-btn{
    display: none;
    background: none;
    border: none;
    color: black;
    font-size: 2em;
    cursor: pointer;
}


.double{
    display:grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    grid-auto-columns:minmax(0, 1fr);
}

h1, h2, h3{
    color: #F8C649;
    text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);

}

h1{
    font-size: 4em;
    margin-left: 0.55em;
    padding: 0;
    margin-top: 0px;
    margin-bottom: 0px;
}
h2{
    font-size: 3em;
}

header{
    position: relative;
    overflow: hidden;
    padding: 20px;
    padding-top: 140px;
    padding-bottom: 50px;
    background-color: #282727;
}
header > *{
    position: relative;
    z-index: 1;
}
header:before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('img/banner-bw.png');
    background-size: cover;
    background-position: center;
    filter: blur(3px);
    z-index: 0;
    opacity: 0.1;
}
header li{
    list-style-type: none;
    list-style: none;
    padding-bottom: 10px;
    padding-top: 20px;
    font-size: 3.5vw;
}
header li:hover{
    color: #F8C649;
    cursor: pointer;
    transform: scale(1.15);
    margin-left: 2.5vw;
}
#header-logo{
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}
header img{
    width: 36vw;
    max-width: 360px;
}
#systemy{
    text-align: center;
    padding: 20px;
    background-color: #282727;
    
    .flex{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding: 20px;
    }
    
    img{
        width: 20vw;
        max-width: 200px;
        margin: 20px;
        transition: transform .1s; /* Animation */
    }
    img:hover{
    transform: scale(1.1);
}

}




#uslugi{
    min-height: 15vh;
    padding: 40px;
}

.usluga{
    min-height: 30vh;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto;
}

.uslugi-text{
    grid-column: span 2;
    text-align: justify;
    margin: 20px;
    font-size: 1.6em;
}
#uslugi h3{
    color: #F8C649;
    font-size: 1.6em;
    margin-bottom: 0;
}

#uslugi img{
    display: flex;
    justify-self: center;
    align-self: center;
    width: 90%;
    margin: 20px;
    min-width: 300px;
    min-height: 200px;
    border-radius: 25px;
    transition: transform .1s; /* Animation */
}
#uslugi img:hover{
    transform: scale(1.05);
}



/* ALTERNATYWNY LAYOUT DLA USLUG */

/* #fotowoltaika .uslugi-text, #oswietlenie .uslugi-text, #pomiary .uslugi-text{
    grid-column: 1 / span 2;
    grid-row: 1;
} */



#contact{
    background-color: #39383B;
    padding: 25px;
}

footer{
    display: flex;
    align-items: center;
    justify-content: center;
    height: 70px;
    background-color: #282727;
    border-top: 2px solid black;
}

#btn-scroll{
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #F8C649;
    color: black;
    border: none;
    border-radius: 50%;
    width: 70px;
    height: 70px;
    font-size: 2.5em;
    cursor: pointer;
    transition: transform .2s; /* Animation */
}
#btn-scroll:hover{
    background-color: #F8C649;
    cursor:pointer;
    transform: scale(1.5) rotate(10deg);;
}

#contact-info i{
    color:#F8C649;
    font-size: 3vw;
    margin-right: 20px;
    height: 1em;
    width: 2em;
}
#contact-info p{
    display: flex;
    align-items: center;
    font-size: 1.5em;
}

input, textarea{
background: #D9D9D9;
box-shadow: inset 0px 4px 4px rgba(0, 0, 0, 0.25);
}
input{
    min-height: 25px;
    width: 500px;
}
label{
    font-size: 1.5em;
}
input[type="submit"]{
    background-color: #F8C649;
    color: black;
    border: none;
    border-radius: 25px;
    padding: 10px;
    margin-top: 25px;
    font-size: 1.5em;
    transition: transform .2s; /* Animation */
    font-weight: normal;
}
input[type="submit"]:hover{
    background-color: #F8C649;
    cursor:pointer;
    transform: scale(1.1);
    font-weight: bold;
}


#contact-info p{
    padding: 10px;
}
a{
    color: white;
    text-decoration: none;
}
a:hover{
    cursor:pointer;
    color:#F8C649;
}

textarea{
    font-size: 25px;
}







aside{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #F8C649;
    color:black;
    h2{
        color:black;
        font-size: 2em;
        margin: 0;
        padding: 0;
    }
    h2:nth-child(1){
        font-size: 2.5em;
    }
    h2:nth-child(1):hover{
        cursor:pointer;
        transform: scale(1.1);
        transition: transform .2s;
    }
    #aside-realizacje{
        #icons{
            display: flex;
            justify-content: space-evenly;
            align-items: center;
            flex-wrap: wrap;
            i{
                color:black;
                font-size: 2em;
                padding: 10px 10px;
                transition: transform .2s;
            }
            i:hover{
                cursor:pointer;
                transform: scale(1.5);
            }
        }
        h2{
            display: flex;
            justify-content: center;
            flex-basis: 100%;
        }
    }
}





@media screen and (max-width: 960px) {
    aside{
        flex-direction: row;
        align-items: center;
        padding: 20px;
    }
    #aside-realizacje{
        #icons{
            .fa-brands{
                display: none;
            }
        }
    }
    #aside-tel h2{
        font-size: 4.5vw;
        padding: 25px 0;
    }
    #hamburger-btn{
        display: block;
        margin-left: auto;
        margin-right: 1rem;
        padding: 20px 40px;
        transition: transform .2s; /* Animation */
    }
    #hamburger-btn:hover{
        transform: scale(1.25) rotate(15deg);
        font-weight: bold;
    }
    #nav-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #F8C649;
    border-top: 0px dashed black;
    z-index: 999;
    overflow: hidden;
    height: 0;               /* startowa wysokość */
    margin: 0;
    padding: 0;
    transition: height 0.3s ease;
}

#nav-top.active {
    height: 250px;           /* wysokość po aktywacji */
    border-top: 2px dashed black;
}

#nav-top .nav-item{
    padding: 10px;
    width: 100%;
    text-align: center;
}

#b-l{
    border-top: 2px solid black;
    border-left: 0px;
    padding: 0;
    padding: 10px 0;
}

    .usluga{
        display: block;
        margin-bottom: 100px;
    }
    .usluga img{
        width: 100%;
        margin: 0;
    }
    .uslugi-text{
        font-size: 1.2em;
    }
    
    #systemy{
        img{
            width: 30vw;
        }
    }

    #contact{
        display:block;
        text-align: center;
        width: 100%;
    }
    #contact-info {
        max-width: 100%;
        overflow-wrap: break-word;
        padding: 0px;
    }

    #contact-info p {
        display: block;
        width: 100%;
        font-size: 5vw;
        text-align: center;
        justify-content: center;
        padding: 0;
    }
    #contact-info i {
        display: block;
        width: 100%;
        font-size: 2em;
        min-width: 1.5em;
        text-align: center;
        margin-bottom: 12px;
    }
    #contact-info a{
        padding: 20px 0;
    }
    #contact-info h2{
        margin: 0;
        padding: 0;
        font-size: 8vw;
    }
    .double{
        display: block;
        width: 100%;
    }
    header{
        max-height: 2137px;
        padding: 25px 0;
        padding-top: 140px;
    }
    h1{
        font-size: 8vw;
        justify-self: center;
        margin-top: 25px;
        margin-left: 5vw;
    }
    nav ul li{
        font-size: 4.25vw;
        margin: 0;
        padding: 15px 0;
        text-align: center;
    }
    nav ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0;
        margin: 0;
        list-style: none;
    }
    
    nav ul li {
        width: 100%;
        text-align: center;
        padding: 10px 0;
    }
    /* form styling for mobile */
    #contact{
        width: 100%;
        margin: 0;
        padding: 0;
    }
    #contact-form{
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
        padding: 0px;
        text-align: center;
    }
    #contact-form h2{
        margin: 0;
        padding: 0;
        font-size: 8vw;
    }
    input{
        width: 80%;
    }
    textarea{
        width: 80%;
        height: 15vh;
        font-size: 1.25em;
    }
    #disclaimer{
        text-align: center;
        align-self: center;
        max-width: 80%;
        margin-left: auto;
        margin-right: auto;
        font-weight: 100;
        font-style: italic;
        font-size: 0.8em;
    }
}

@media screen and (min-width: 961px) and (max-width: 1399px){
    /* form styling for small PCs */
    header{
        height: 550px;
    }
    #header-logo{
        max-height: 550px;
        margin: 0;
        padding: 0;
    }
    #header-text{
        h1{
            font-size: 3vw;
            padding: 0 30px;
        }
        li{
            font-size: 2vw;
            padding: 15px;
        }
    }

    input{
        min-width:250px;
    }
    textarea{
        min-width: 500px;
        width: 70%;
        height: 15vh;
    }
    #disclaimer{
        max-width: 70%;
        font-weight: 100;
        font-style: italic;
        font-size: 0.8em;
    }
}

@media screen and (min-width: 1400px) {
    header li {
        font-size: 42px; /* Set a maximum font size */
    }
    header img{
        width: 360px;
    }

    /* form styling for PC */
    input{
        min-width:250px;
    }
    textarea{
        min-width: 500px;
        width: 70%;
        min-height: 15vh;
        height: 15vw;
    }
    #disclaimer{
        max-width: 70%;
        font-weight: 100;
        font-style: italic;
        font-size: 0.8em;
    }
}