@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

:root{
    --navHoverColor: #FFA666;
}
::selection{
    background-color: var(--navHoverColor);
}
*{
    margin:0;
    padding:0;
    box-sizing: border-box;
}
body,html{
    overflow-x: hidden;
    scroll-behavior: smooth;
}
body{
    font-family:'Montserrat';
}
header{
    color:white;
    min-height:100vh;
    background:radial-gradient(rgb(54, 54, 54),rgb(14, 14, 14));
    display:flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}


nav{
    position:absolute;
    top:0;
    left:0;
    padding:20px;
    width:100%;
    display:flex;
    justify-content: flex-end;
    align-items:center;
    min-height:80px;
    z-index: 10;
}

#nav-options{
    display:flex;
    justify-content: space-evenly;
    align-items:center;
    gap:35px;
    font-size:24px;
    font-family:'Montserrat', sans-serif;
    text-transform:capitalize;
    color:white;
    z-index: 2;
}

ul{
    list-style:none;
}

#hamburger{
    display:none;
}

li{
    list-style:none;
}

li a{
    text-decoration:none;
    transition: all 0.4s;
    -webkit-transition: all 0.4s;
    position:relative;
    color:rgb(241, 241, 241);
    font-weight:300;
    font-size:30px;
}

li a:hover{
    text-shadow:0 0 2px white;
    color:white;
}

li a:before{
    content:"";
    position:absolute;
    left:0;
    bottom:0;
    height:1px;
    width:0;
    background-color:var(--navHoverColor);
    transition:all 0.4s ease-in-out;
    -webkit-transition: all 0.4s ease-in-out;
}

li a:hover:before{
    width:100%;
}
.bar{
    display:block;
    width:25px;
    height:3px;
    margin: 5px auto;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    background-color:white; 
}

header img{
    width:800px;
}
header button{
    display:none;
}

header > p{
    position: absolute;
    bottom:10px;
    left:50%;
    text-align: center;
    font-weight:200;
    transform:translateX(-50%);
    text-transform: capitalize;
    z-index: 0;
}

section{
    width:100%;
    min-height:100vh;
}

#about{
    background:linear-gradient(rgba(0,0,0,0.8),rgba(0,0,0,0.8)), url(img/aboutimg.jpg) ;
    background-size:cover;
    background-position: center;
    background-attachment: fixed;
    color:rgb(240, 240, 240);
    display:flex;
    flex-direction: column;
    align-items: center;
    padding:60px 0;
}

.sectionTitle{
    text-align:center;
    font-weight:200;
    font-size:clamp(55px, 4vw, 75px);
    text-transform: uppercase;
    position:relative;
}

.sectionTitle:before{
    content:"";
    height:1px;
    width:100%;
    position:absolute;
    left:0;
    bottom:0;
    background-color:white;
}

#about > p{
    width:70%;
    text-align: center;
    font-size:clamp(18px, 1.5vw, 25px);
    margin:50px 0;
    font-weight:200;
}

#about > button{
    padding:20px 25px;
    font-size:30px;
    text-transform: uppercase;
    font-weight:900;
    font-family:'Montserrat';
    cursor:pointer;
    background:none;
    color:rgb(233, 233, 233);
    border: 4px solid rgb(233, 233, 233);
    transition: all 0.4s;
}
#about > button:hover{
    letter-spacing:2px;
    color:white;
    border: 4px solid white;
}

#works{
    padding:60px 0;
    background-color:rgb(20, 20, 20);
    color:white;
}
#works > h1{
    margin-bottom: 60px;
    position:relative;
    left:50%;
    transform: translateX(-50%);
    display:inline-block;
}
#works > div{
    background-color: rgb(49, 49, 49);
    white-space: nowrap;
    box-shadow:0 0 10px rgb(20, 20, 20) inset;
}

.carousel{
    height:300px;
    animation: 35s slide infinite linear;
    display:inline-block;

}
.carousel img{
    max-height:100%;
    max-width: 300px;
    margin:0 35px;
    filter:brightness(100000);
    transition:filter 0.2s;
    vertical-align: middle;
}
.carousel img:hover{
    filter:brightness(100000) drop-shadow(0 0 5px var(--navHoverColor));
}
#works > div:hover .carousel {
    animation-play-state:paused;
}

#works > p{
    text-align: center;
    font-size:24px;
    margin:30px 0;
    padding:0 15px;
}

#works > h2{
    font-family: serif;
    font-weight:200;
    font-style: italic;
    text-align: center;
    font-size:35px;
    letter-spacing: 1px;
    padding:0 15px;
    margin-top:100px;
    position:relative;
    text-shadow: 0 0 2px white;
}

#works > h2 span{
    font-family: 'Montserrat';
    font-size:20px;
}

#services{
    background-color: rgb(20, 20, 20);
    color:white;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding:70px 0;
}

.servicesdiv{
    margin:50px 0;
    width:90%;
    display:flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.servicesdiv div{
    height:400px;
    width:300px;
    background-color: rgb(224, 224, 224);
    margin:30px;
    text-align: center;
    color:rgb(20, 20, 20);
    padding:15px 20px;
    position:relative;
}
.servicesdiv div h1{
    min-height:80px;
}

footer{
    width:100%;
    min-height:200px;
    background-color: rgb(20, 20, 20);
    padding:70px 0 10px 0;
}

footer > div{
    width:80%;
    min-height:500px;
    background-color: rgb(240, 240, 240);
    margin: 0 auto;
    padding:30px;
    overflow: hidden;
    display:flex;
}
footer > div > div{
    width:50%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.footerLogo{
    width:80%;
    align-self: center;
}

.ISOCertificate{
    width:100px;
}

footer h1{
    font-size:60px;
    margin-bottom:10px;
}

footer h2{
    font-size:30px;
    font-weight:400;
    margin-bottom:40px;
}
footer span{
    color:rgb(230, 0, 0);
}

footer div a{
    color:black;
    font-size:25px;
    margin:7px 0;
    transition:color 0.2s;
}

footer div a:hover{
    color:var(--navHoverColor);
}

footer > p{
    color:rgb(131, 131, 131);
    text-align: center;
    margin-top:50px;
}

footer > a{
    color:rgb(131, 131, 131);
    padding:0 15px;
    font-size:15px;
    transition:color 0.4s;
}
footer > a:hover{
    color:var(--navHoverColor);
}
.hidden, 
.hiddenFromLeft,
.hiddenFromRight,
.hiddenFromTop,
.hiddenFromBottom{
    opacity:0;
    transition:all 0s;
    transition-delay:0s;
}
.hiddenFromTop{
    transform:translateY(-30%);
}
.hiddenFromBottom{
    transform:translateY(30%);
}
.hiddenFromLeft{
    transform:translateX(-10%);
}

.hiddenFromRight{
    transform:translateX(10%);
}
.show{
    transition:transform 1s, opacity 1s;
    opacity:1;
    transform:translateX(0) translateY(0);
}

@keyframes slide{
    0%{
        transform: translateX(0);
    }
    100%{
        transform: translateX(-100%);
    }
}


@media(max-width:1500px){
    footer > div{
        flex-direction: column;
        align-items: center;
    }
    footer > div > div{
        text-align: center;
        width:80%;
    }
    footer h1{
        font-size:clamp(40px, 4vw, 60px);
    }
    .ISOCertificate{
        align-self:center;
        width:80px;
    }
}
@media(max-width:1100px){
    header button{
        display:block;
        padding:20px 35px;
        font-size:25px;
        font-family:'Montserrat';
        font-weight:800;
        text-transform: uppercase;
        border-radius:20px;
        background:linear-gradient(65deg, #ff730f, #ffe91f, #00d0ff);
        position:relative;
        z-index: 1;
    }
    header button:before{
        content:"Contactați-ne";
        position:absolute;
        left:50%;
        top:50%;
        transform:translate(-50%, -50%);
        background-color:rgb(36, 36, 36);
        width:98.5%;
        height:95%;
        color:white;
        display:flex;
        justify-content: center;
        align-items: center;
        border-radius:inherit;
    }
    header img{
        width:80%;
        margin-bottom:15vh;
    }
}
@media(max-width:768px){
    #hamburger{
        display:block;
        z-index: 10;
    }

    #hamburger.active .bar:nth-child(2){
        opacity:0;
    }

    #hamburger.active .bar:nth-child(1){
        transform:translateY(8px) rotate(45deg);
    }
    #hamburger.active .bar:nth-child(3){
        transform:translateY(-8px) rotate(-45deg);
    }

    #nav-options{
        position:fixed;
        left:0;
        top:0;
        flex-direction:column;
        width:100vw;
        height: calc(100vh - 260px);
        transition:0.4s;
        padding:130px 0 0 0;
        background-color:rgba(0,0,0,0.97);
        opacity:0;
        padding-bottom:100vh;
        z-index: 10;
        pointer-events:none;
    }
    #nav-options.active{
        opacity:1;
        pointer-events:all;
    }

    li a{
        color:white;
        padding-bottom:5px;
        font-size:29px;
    }

    li a:after{
        content:"";
        position:absolute;
        left:0;
        bottom:0;
        width:100%;
        height:1px;
        background-color:white;
    }
    
    nav li{
        margin:16px 0;
    }
    .carousel{
        animation-duration: 15s;
    }
    #works > h2{
        font-size:20px;
    }
    #works > h2 span{
        font-size:15px;
    }
    footer div a{
        font-size:18px;
    }   
    footer > a{
        font-size:12px;
    }
}