@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;500&display=swap');

/* Global */

*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    
}
html {
    font-size: 10px;
    font-family: 'Montserrat', sans-serif;
    scroll-behavior: smooth;
}
a{
    text-decoration: none;
}
.container {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}
p {
    text-align: left;
    font-size: 1.4rem;
    line-height: 1.9rem;
}

.section-title {
    font-size: 4rem;
    font-weight: 300;
    color: black;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.2rem;
    text-align: center;
}


/*Header section */

#header {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100vw;
    height: auto;
}
#header .header {
    min-height: 8vh;
    background-color: rgba(31,30,30,0.24);
    transition: 1.3s ease background-color;
}
.brand a{
    font-size: 1.8rem;
    color: whitesmoke;
}
#header .brand span{

    color: crimson;
}
#header .header .nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    max-width: 1300px;
    padding: 0 10px;
}
#header .nav-list ul{
    list-style: none;
    position: absolute;
    background-color: rgba(31,30,30); 
    width: 100vw;
    height: 100vh;
    left: 100%;
    top: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1;
    overflow-x: hidden;
    transition: 0.5s ease left;
}
#header .nav-list ul.active{
    left: 0%;

}
#header .nav-list ul a {
    font-size: 1.5rem;
    letter-spacing: 0.5rem;
    text-decoration: none;
    color: whitesmoke;
    text-transform: uppercase;
    padding: 20px;
    display: block;
    font-weight: 700;
}
#header .nav-list ul a::after {
    content: attr(data-after);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    color: rgba(240, 248, 255, 0.021);
    font-size: 13rem;
    letter-spacing: 50px;
    z-index: -1;
    transition: 0.3s ease letter-spacing;
}
#header .nav-list ul li:hover a::after{
    transform: translate(-50%, -50%) scale(1);
    letter-spacing: initial;
}
#header .nav-list ul li:hover a{
    color: crimson;
}
#header .hamburger {
    height: 60px;
    width: 60px;
    display: inline-block;
    border: 3px solid whitesmoke;
    border-radius: 50%;
    z-index: 100;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transform: scale(0.8);
    margin-right: 20px;
}
#header .hamburger::after {
    position: absolute;
    content: "";
    height: 100%;
    width: 100%;
    border-radius: 50%;
    border: 2px solid whitesmoke;
    animation: hamburger_puls 1s ease infinite;
}
#header .hamburger .bar {
    height: 2px;
    width: 30px;
    position: relative;
    background-color:  whitesmoke;
    z-index: -1;
}
#header .hamburger .bar::after,
#header .hamburger .bar::before {
    content: "";
    position: absolute;
    height: 100%;
    width: 100%;
    left: 0;
    background-color:  whitesmoke;
    transition: 0.3s ease;
    transition-property: top, bottom;
}
#header .hamburger .bar::after {
    top: 8px;
}
#header .hamburger .bar::before {
    bottom: 8px;
}
#header .hamburger.active .bar::after {
    top: 0px;
}
#header .hamburger.active .bar::before{
    bottom: 0px;
}

/*Hero section */

#hero {
    background-image: url(../images/hero_picture.webp);
    background-size: cover;
    background-position: top center;
    position: relative;
    z-index: 1;
}
#hero:after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background-color: black;
    opacity: 0.7;
    z-index: -1;
}

#hero .hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 50px;
    justify-content: flex-start;
}

#hero h1 {
    display: block;
    width: fit-content;
    font-size: 2rem;
    position: relative;
    color: transparent;
    animation: text_reveal 0.5s ease forwards;
    animation-delay: 1s;
}
#hero h1:nth-child(1) {
    animation-delay: 1s;
}
#hero h1:nth-child(2) {
    animation-delay: 2s;
}
#hero h1:nth-child(3) {
    /*animation: text_reveal_name 0.5s ease forwards;*/
    animation-delay: 3s;
}
#hero h1 span {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background-color: aliceblue;
    animation: text_reveal_box 1s ease;
    animation-delay: 0.5s;   
}
#hero h1:nth-child(1) span {
    animation-delay: 0.5s;
}
#hero h1:nth-child(2) span {
    animation-delay: 1.5s;
}
#hero h1:nth-child(3) span {
    animation-delay: 2.5s;
}

#hero .cta {
    display: inline-block;
    padding: 10px 30px;
    color: aliceblue;

    border: 2px solid red;
    text-transform: uppercase;
    letter-spacing: 0.2rem;
    margin-top: 20px;
    transition: 0.5s ease;
    transition-property: background-color, color;
}

#hero .cta:hover {
    color: crimson;
    font-size: 2.5rem;
    background-color: black;

}
/*End of Hero section */


/*Services section */ 

#services .services {
    flex-direction: column;
    text-align: center;
    max-width: 1500px;
    margin: 0 auto;
    padding: 100px 0;
}

#services .section-title span {
    color: crimson;
}

#services .service-top p {
    font-size: 1.5rem;
    margin-top: 5px;
    line-height: 2.0rem;
    font-weight: 500;
    letter-spacing: 0.1rem;
    text-align: justify;
    padding: 20px;
    font-family: 'Roboto', sans-serif;
}
#services .service-top li {
    font-size: 1.5rem;
    margin-top: 2px;
    line-height: 2rem;
    font-weight: 500;
    margin-left: 35px;
    text-align: left;
    padding: 5px;
    font-family: 'Roboto', sans-serif;
}
#services .service-top {
    max-width: 70%;
    margin: 0 auto;
}


#services .service-bottom {
    display: flex;
    align-content: center;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 50px;

}
#services .service-item {
    flex-basis: 80%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    padding: 30px;
    border-radius: 10px;
    background-image: url(/images/document.webp);
    background-size: cover;
    margin: 10px 5%;
    position: relative;
    z-index: 1;
    overflow: hidden;

}
#services .service-item::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background-image: linear-gradient(60deg, #29323c 0%, #485563 100%);
    opacity: 0.8;
    z-index: -1;
}
#services .service-bottom .icon {
    height: 60px;
    width: 60px;

    margin-bottom: 50px;
}

#services .service-bottom h2 {
    font-size: 2rem;
    color: crimson;
    margin-bottom: 10px;
    text-transform: uppercase;
    text-align: left;
}
#services .service-bottom p {
    color: white;
    text-align: justify;
}


.section-title span {
    color: crimson;
}
/*End of Services section */ 

/*About section */ 



.about-background {
    background-image: linear-gradient(60deg, #29323c 0%, #485563 100%);
    color: whitesmoke;
    position: relative;
    z-index: -1;
    }

#about .about {
    flex-direction: column-reverse;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;

}
#about .col-left {
    width: 250px;
    height: 360px;
}
#about .col-right {
    width: 100%;
}
#about .col-right h2 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.3rem;
    margin-bottom: 10px;
    color: crimson;
}

#about .col-right p {
    margin-top: 20px;   
    margin-bottom: 20px;
    font-size: 1.5rem;
    line-height: 2rem;
    letter-spacing: 0.1rem;
    text-align: justify;
    padding: 20px;
}

#about .col-left .about-img {
    position: relative;
    border: 10px solid white;
    height: 100%;
    width: 100%;
}

#about .col-left .about-img::after {
    content: '';
    position: absolute;
    left: -33px;
    top: 19px;
    height: 98%;
    width: 98%;
    z-index: -1;
    border: 5px solid crimson;
}
/*End of About section */ 


/*Projects section */ 

#projects .projects {
    flex-direction: column;
    max-width: 80%;
    margin: 0 auto;
    padding: 80px 0;
}
#projects .projects-header h1 {
    margin-bottom: 50px;
}
#projects .portfolio {
    display: grid;
    width: 90%;
    grid-template-columns: repeat( auto-fit, minmax(100px, 1fr) );
}
#projects .portfolio-item {
    padding: 10px 10px;
    width: 100%;
    height: auto;
    display: block;
    position: relative;
}
#projects .portfolio-item:hover .text {
    opacity: 01;
    transition: transform 2s, opacity 2s;
}
#projects .portfolio-item:hover img {
    opacity: 0.5;
    transform: scale(0.9);
}

#projects .portfolio img {
    max-width: 70%;
    height: auto;
    transition: transform 2s, opacity 2s;
}

#projects .portfolio .img-center {
    margin: auto;
    display: block;
    opacity: 1;
}

#projects .portfolio-middle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 1;
}
#projects .portfolio-text {
    color: rgb(15, 13, 26);
    padding: 10px;
    text-align: center;
    font-size: 2rem;
    font-weight: 900;
    opacity: 0;
    transition: transform 2s, opacity 2s;
    text-transform: uppercase;
    text-shadow: 0px 2px 5px #000000;
}
#projects .portfolio-item:hover .portfolio-text {
    opacity: 01;
    transition: transform 2s, opacity 2s;
}
/*End of Projects section */ 

/* References section */ 
#references{
    background-image: linear-gradient(60deg, #29323c 0%, #485563 100%);
    padding: 40px;
}
#references .scrolls{
    width: 98%;
    height: 60px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 20px;
    justify-content:center;
    align-items: center;
}
#references .scrolls .button-hover{
    cursor: pointer;
    position: relative;
    margin: 1rem;
    padding: 0.3rem;
    border: 0;
    border-radius: 20px;
    min-width: 100px;
    font-size: 1rem;
}
#references .scrolls .button-left {
    background: linear-gradient(to right, crimson, whitesmoke);  
}
#references .scrolls .button-right {
    background: linear-gradient(to left, crimson, whitesmoke);  
}

#references .button-hover span{
    position: relative;
    z-index: 3;
    display: block;
    padding: 1.1rem;
    font-size: 2.5rem;
    font-weight: bold;
    color: whitesmoke;
    background-image: linear-gradient(60deg, #29323c 0%, #485563 100%);
    border-radius: 20px;

}
#references .scrolls .button-hover:hover{
    filter: blur(2px);
}
#references .products{
    width: 98%;
    height: 600px;
    margin: auto;
    display: flex;
    align-items: center;
    overflow-x: auto;
}
#references .products::-webkit-scrollbar{
    display: none;
}
#references .products .product{
    min-width: 300px;
    height: 350px;
    width: auto;
    background: white;
    margin:  0 20px  0 0;
    border-radius: 20px;
    position: relative;
    left: 0;
    transition: 0.5s;
    margin-left: 30px;
}
#references .products .product:hover{
    transform: scale(1.15);
}

#references picture{
    width: 100%;
    height: auto;
    padding: 20px;
    display: flex;
    overflow: hidden;
    margin-bottom: 20px;
}
#references picture img{
    width: 100%;
}
/* End of References section */ 

/* Contact section */ 

#contact .contact {
    flex-direction: column;
    max-width: 1200px;
    margin: 0 auto;  
    min-height: 50vh;
}
#contact .contact-items {
    width: 400px;
    padding: 20px;
}
#contact .contact-item {

    width: 80%;
    padding: 20px;
    margin: 30px;
    text-align: center;
    justify-content: center;
    display: flex;
    border-radius: 20px;
    box-shadow: 0px 0px 20px #000010;
    flex-direction: column;
    transition: 0.3s ease box-shadow;
}
#contact .contact-item:hover {
    box-shadow: 0px 0px 5px 0 #0000002c;

}
#contact .icon {
    width: 20%;
    margin: 0 auto;
    margin-bottom: 20px;
}
#contact .contact-info h1 {
    font-size: 2rem;
    margin-bottom: 5px;
}
#contact .contact-info h2 {
    font-size: 1.3rem;
    line-height: 2rem;
}

#contact .contact-form {
    /* height: 65vh; */
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
#contact .contact-container {
    width: 90%;
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
    box-shadow: 0px 0px 20px #000010;
    border-radius: 8px;
    background-color: white;
    margin-bottom: 20px;

}
#contact .form-group {
    width: 100%;
    margin-top: 20px;
    font-family: 'Roboto', sans-serif;
    font-size: 1.5rem;
    color: black;
}
#contact .form-group input, 
#contact .form-group textarea {
    width: 100%;
    padding: 5px;
    font-size: 1.2rem;
    border: 1px solid black;
    border-radius: 8px;
}
#contact .form-group textarea{
    resize: vertical;
}
#contact button[type="submit"] {
    width: 100%;
    border: none;
    outline: none;
    padding: 20px;
    font-size: 2rem;
    border-radius: 8px;
    color: crimson;
    background-image: linear-gradient(60deg, #29323c 0%, #485563 100%);
    text-align: center;
    cursor: pointer;
    margin-top: 10px;
    transition: 1s ease;
    transition-property: background-color, color;
}
#contact button[type="submit"]:hover{
    background-color: red;
    color: white;
}
#contact #status {
    width: 30%;
    text-align: center;
    font-size: 2rem;
    border-radius: 8px;
    color: red;
    padding: 10px;
    margin: 0 auto;
    border-radius: 8px;
}
#contact #status.success {
    background-color: greenyellow;
    color: black;
    animation: status 4s ease forwards;
}
#contact #status.error {
    background-color: rgb(114, 14, 14);
    color: black;
    animation: status 4s ease forwards;
}
@keyframes status {
    0% {
        opacity: 1;
        pointer-events: all;
    }
    90% {
        opacity: 1;
        pointer-events: all; 
    }
    100% {
        opacity: 0;
        pointer-events: none; 
    }

}


/* End of Contact section */ 

/* Footer section */ 

#footer {
    background-image: linear-gradient(60deg, #29323c 0%, #485563 100%);
    display: flex;
    flex-direction: row;
    justify-content:space-between;
    align-items: center;
    padding: 20px;
}
#footer .footer {
    min-height: 150px;
    flex-direction: row;
    padding: 40px;
}
#footer h1 {
    color: white;
    font-size: 2rem;
    letter-spacing: 0.1rem;
    margin-top: 10px;
    margin-bottom: 10px;
}
#footer h1 span {
    color: crimson;
}
#footer .footer-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}
#footer .footer-icons a{
    width: 50px;
    height: 50px;
    transition: transform 2s;
    display: block;
}
#footer .footer-icons a:hover {
    transform: translateY(-15px);
}

/* End of Footer section */ 


/*Keyframes */ 

@keyframes hamburger_puls {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(1.5);
    }
}


@keyframes text_reveal_box {
    50% {
        width: 100%;
        left: 0;
    }
    100% {
        width: 0;
        left: 100%;
    }
}

@keyframes text_reveal {
    100% {
        color: aliceblue;
    }  
}
/*
@keyframes text_reveal_name {
    100% {
        color: black;
    }  
}
*/

/* End of Keyframes */

/* Media Query for Tablet */ 

@media only screen and (min-width:768px){
    #hero .cta{
        font-size: 2.5rem;
        padding: 20px 60px;
    }
    h1.section-title{
        font-size: 6rem;
    }

    /*Hero*/
    #hero h1 {
        font-size: 3rem;
    }
    /*Services */
    #services .service-bottom .service-item {
        flex-basis:45%;
        margin: 2.5%;
    }


    /*About */ 
    #about .about {
        flex-direction: row;
    }
    #about .col-left {
        width: 600px;
        height: 400px;
        padding-left: 60px;
    }
    #about .about .col-left .about-img::after {
        left: -45px;
        top: 34px;
        height: 98%;
        width: 98%;
        border: 10px solid crimson;
        z-index: -1;
    }
    #about .col-right {
        text-align: left;
        padding: 30px
    }
    #about .col-right h1{
        text-align: justify;
    }
    #about .col-right p{
        text-align: justify;
    }



    /* Projects */ 

    #projects .portfolio {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    /* References */ 
    #references .products .product{
        min-width: 400px;
        height: 500px;
    }
    #references .scrolls .button-hover{
        min-width: 200px;
        font-size: 2rem;
    }


    /* Contact */
    #contact .contact {
        flex-direction: column;
        padding: 10px 0;
        align-items: center;
        justify-content: center;
        min-width: 20vh;
    }

    #contact .contact-items {
        width: 100%;
        display: flex;
        flex-direction: row;
        justify-content: space-evenly;
        margin: 0;

    }
    #contact .contact-item {
        width: 30%;
        margin: 0;
        flex-direction: row;
    }
    #contact .contact-item .icon{
        width: 100px;
        height: 100px;
    }
    #contact .contact-item .icon img{
        object-fit: contain;
    }
    #contact .contact-item .contact-info{
        width: 100%;
        text-align: left;
        padding-left: 20px;
    }
}
/* End of Media Query for Tablet */ 

/* Media Query for Desktop */ 

@media only screen and (min-width:1200px){

    #header .hamburger {
        display: none;
    }
    #header .nav-list ul {
        position: initial;
        display: block;
        height: auto;
        width: fit-content;
        background-color: transparent;
    }
    #header .nav-list ul li{
        display: inline-block;
    } 
    #header .nav-list ul li a{
        font-size: 1.2rem;
    } 
    #header .nav-list ul a::after {
        display: none;
    }
    
    #projects .portfolio {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }



}

