:root{
    --primary-color: #41C9E2;
    --primary-color-dark: #008DDA;
    --secondary-color: var(--primary-color-dark);
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --extra-light: #faf5ff;
    --max-width: 1200px;
}

*{
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

body{
    font-family: 'Poppins', sans-serif;
}

header{
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background-color: #fff;
    z-index: 99;
}

header .nav-content{
    max-width: var(--max-width);
    margin: auto;
    padding: 1.5rem 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
header .fa-solid{
    float: right;
    display: none;
}

nav .logo{
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    animation: slideRight 1s ease forwards;
}

nav .logo:hover{
    color: var(--primary-color-dark);
    cursor: pointer;
}

nav .checkbox{
    display: none;
}
nav input{
    display: none;
}

nav ul{
    display: flex;
    align-items: center;
    gap: 1rem;
    list-style: none;
    animation: slideLeft 1s ease forwards;
}

nav ul li a{
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 2px solid transparent;
    font-weight: 600;
    color: var(--text-dark);
}

nav ul li a:hover{
    border-top-color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    color: var(--primary-color);
}

.section{
    background-color: var(--extra-light);
}

.home{
    min-height: 100vh;
    width: 100%;
    max-width: var(--max-width);
    margin: auto;
    padding: 1rem 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.content{
    display: flex;
    max-width: 500px;
}
.subtitle{
    letter-spacing: 2px;
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: .5rem;
    opacity: 0;
    animation: slideRight 0.7s ease forwards;
    animation-delay: 0.7s;
}

.title{
    font-size: 2.5rem;
    font-weight: 400;
    line-height: 3rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    opacity: 0;
    animation: slideLeft 0.7s ease forwards;
    animation-delay: 0.7s
}
.content h3{
    font-size: 2rem;
    font-weight: 300;
    line-height: 2rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    opacity: 0;
    animation: slideLeft 0.7s ease forwards;
    animation-delay: 0.7s
}
.description{
    line-height: 1.5rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    opacity: 0;
    animation: slideRight 0.7s ease forwards;
    animation-delay: 0.7s
}

.home a{
    text-decoration: none;
}
.see-more, .works-btn{
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 160px;
    height: 50px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
    border: 2px solid var(--primary-color);
    border-radius: 17px;
    cursor: pointer;
    background-color: var(--primary-color);
    color: #fff;
    opacity: 0;
    animation: slideTop 0.7s ease forwards;
    animation-delay: 0.7s
}

.works-btn{
    background-color: var(--primary-color-dark);
}

.see-more:hover, .works-btn:hover{
    background-color: var(--primary-color-dark);
    border: 2px solid var(--primary-color-dark);
 }

.image img{
    max-width: 320px;
    border-radius: 100%;
    border: 10px solid var(--primary-color);
    animation: zoomIn 2s ease forwards, floatImage 4s ease-in-out infinite;
}

.home .content{
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hidden{
    display: none;
}
.light{
    display: none;
}

.services{
    width: 100%;
    min-height: 100vh;
    margin: auto;
    text-align: center;
    padding-top: 80px;
}
.services h1, .works h1, .about h1, .contact h1{
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 3rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}
.row{
    display: flex;
    flex-wrap: wrap;
    padding: 0 5%;
    align-items: center;
    justify-content: space-around;
    margin-top: 25px;
    margin-bottom: 30px;
}
.service-item{
    width: 20%;
    height: 400px;
    background: var(--primary-color);
    border-radius: 10px;
    padding: 14px 16px;
    box-sizing: border-box;
    color: var(--extra-light);
}
.service-item:hover{
    box-shadow: 0 0 5px var(--primary-color-dark);
    cursor: pointer;
}
.service-item i{
    font-size: 60px;
    padding: 6%;
}
.service-item h4{
    margin-bottom: 4%;
}
.service-item p{
    font-size: small;
    text-align: center;
    padding: 4% 5%;
    margin: auto;
}
.service-right{
    opacity: 0;
    animation: slideRight 0.7s ease forwards;
    animation-delay: 0.8s;
}
.service-top{
    opacity: 0;
    animation: slideTop 0.7s ease forwards;
    animation-delay: 0.8s;
}
.service-left{
    opacity: 0;
    animation: slideLeft 0.7s ease forwards;
    animation-delay: 0.8s;
}

.works, .about, .contact{
    width: 100%;
    min-height: 100vh;
    margin: auto;
    text-align: center;
    padding-top: 80px;
}

.works-row{
    display: flex;
    align-items: center;
    margin-top: 3%;
}

.works-row .box{
    margin: auto;
    width: 60%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 5%;
    background: var(--primary-color);
}
.works-row .trans{
    display: none;
}

.works-row .img img{
    max-width: 320px;
    border-radius: 100%;
}

.works-row .works-content{
    max-width: 500px;
}
.works-content h3{
    font-size: 1.6rem;
    font-weight: 300;
    line-height: 2rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}
.works-content p{
    line-height: 1.5rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}
.works-content a{
    text-decoration: none;
}
.prev, .next{
    position: absolute;
    cursor: pointer;
    width: auto;
    display: flex;
    font-size: 35px;
    font-weight: bold;
    border-radius: 0 3px 3px 0;
    padding: 0.5rem 4%;
    color: var(--primary-color-dark);
    margin-left: 10%;
}

.next{
    right: 0;
    margin-right: 10%;
}

.prev:hover, .next:hover{
    background-color: rgba(0, 0, 0, 0.8);
}

.fade{
  -webkit-animation-name: fade;
  -webkit-animation-duration: 1.5s;
  animation-name: fade;
  animation-duration: 1.5s;
}
@-webkit-keyframes fade {
    from {opacity: .4}
    to {opacity: 1}
  }
  
  @keyframes fade {
    from {opacity: .4}
    to {opacity: 1}
  }
.about .rows{
    display: flex;
    width: 100%;
    justify-content: center;
}
.about-item{
    width: 25%;
    border-radius: 10px;
    height: 460px;
    background: var(--primary-color);
    box-sizing: border-box;
    color: var(--primary-color);
    position: relative;
    box-sizing: border-box;
    overflow: hidden;
    margin: 0 5%;
    padding: 1.2%;
}

.about-item .image-about img{
    max-width: 150px;
    border-radius: 100%;
    border: 4px solid var(--primary-color-dark);
}
.about-item .about-content{
    color: white;
    padding: 13px 10px;
    font-size: small;
}
.about-item h4{
    margin-bottom: 0.6rem;
}
.about-item p{
    margin-bottom: 0.6rem;
    font-size: 0.7rem;
}
.contact-container{
    width: 40%;
    padding: 20px;
}

.contact-container input[type=text], input[type=email], textarea {
  width: 100%;
  padding: 13px;
  border: 1 px solid var(--primary-color);
  border-radius: 14px;
  box-sizing: border-box;
  margin-top: 6px;
  margin-bottom: 16px;
  resize: none;
  background: var(--primary-color);
  outline: none;
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
  opacity: 0;
  animation: slideRight 0.7s ease forwards;
  animation-delay: 0.7s;
}

input[type=submit] {
  background-color: var(--primary-color);
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  opacity: 0;
  animation: slideTop 0.7s ease forwards;
  animation-delay: 0.7s
}

input[type=submit]:hover {
  background-color: var(--primary-color-dark);
}

.contact-box{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.contact-container input[type=text]:focus, textarea:hover{
    box-shadow: 0 0 2px var(--primary-color-dark);
}

.contact-container ::placeholder{
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
}
.icon{
    font-size: 20px;
    margin-top: 2%;
    opacity: 0;
    animation: slideRight 0.7s ease forwards;
    animation-delay: 0.7s;
}
.icon i{
    padding: 0 1rem;
    color: var(--primary-color);
}
.icon i:hover{
    color: var(--primary-color-dark);
}
@keyframes slideRight{
    0%{
        opacity: 0;
        transform: translateX(-100px);
    }
    100%{
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideLeft{
    0%{
        opacity: 0;
        transform: translateX(100px);
    }
    100%{
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideTop{
    0%{
        opacity: 0;
        transform: translateY(100px);
    }
    100%{
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zoomIn{
    0%{
        opacity: 0;
        transform: scale(0);
    }
    100%{
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes floatImage{
    0%{
        transform: translateY(0);
    }
    50%{
        transform: translateY(-14px);
    }
    100%{
        transform: translateY(0);
    }
}
footer{
    font-size: small;
    padding: 1%;
    top: 5px;
    opacity: 0;
  animation: slideTop 0.7s ease forwards;
  animation-delay: 0.7s
}

@media(max-width: 750px) {
    nav .logo{
        font-size: 1.2rem;
        padding: 0 2%;
    } 
    .section{
        width: 100%;
    }
    .services h1, .works h1, .about h1, .contact h1{
        font-size: 1.3rem;
        font-weight: 600;
        line-height: 0.9rem;
        margin-top: 1.5%;
    }
    nav .checkbox{
        display: block;
    }
    .nav-content .fa-solid{
        display: block;
        color: var(--text-dark);
        font-size: 20px;
        cursor: pointer;
        padding: 0 2%;
        z-index: 99;
    }
    #myMenu{
        display: none;
        position: absolute;
        width: 100%;
        max-width: var(--max-width);
        height: calc(100vh - 70px);
        right: -100%;
        top: 70px;
        transform: translateX(2%);
        background: var(--extra-light);
        flex-direction: column;
        gap: 3rem;
        justify-content: center;
        text-align: center;
        transition: 1s;
        z-index: 0;
        opacity: 1;
    }

    .nav-content ul li a {
        color: var(--text-dark);
        font-size: medium;
    }
    .home{
        width: 100%;
        display: flex;
        text-align: center;
        flex-direction: column-reverse;
        align-items: center;
        justify-content: center;
        transform: translateY(30px);
        z-index: 99;
    }
    .home .content{
        padding-top: 5%;
    }
    .subtitle{
        letter-spacing: 1px;
        font-weight: 300;
        margin-bottom: 0.3rem;
    }
    .title{
        font-size: 1.3rem;
        font-weight: 400;
        line-height: 1.3rem;
        margin-bottom: 0.3rem;
    }
    .content h3, .works-content h3{
        font-size: 1.3rem;
        font-weight: 600;
        line-height: 0.9rem;
    }
    .description{
        line-height: 1.2rem;
        font-size: 0.9rem;
        font-weight: 600;
    }
    .description{
        margin-bottom: 0.9rem;
    }
    .works-content p{
        margin-bottom: 0.4rem;
    }
    .home .image img{
        max-width: 240px;
    } 
    .row{
        display: flex;
        flex-wrap: wrap;
        position: relative;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    .service-item{
        width: 50%;
        height: 280px;
        margin-bottom: 5%;
    }
    .service-item i{
        font-size: 25px;
    } 
    
    .service-item h4{
        font-size: 0.7rem;
        font-weight: 600;
        padding: 4% 0;
    }
    .service-item p{
        line-height: 0.9rem;
        font-size: 0.7rem; 
    }
    .works-row .box{
        flex-direction: column;
        width: 70%;
        padding: 1.5rem;
    }
    .works-row .box .img img{
        max-width: 250px;
        margin-bottom: 0.8rem;
    }
    .works-row h3{
        margin-bottom: 0.5rem;
        font-size: 1rem;
        font-weight: 600;
    }
    .works-content p{
        line-height: 0.9rem;
        font-size: 0.9rem;
    }
    .works-btn, .see-more{
        width: 105px;
        height: 44px;
        border-radius: 10px; 
        font-size: 0.9rem;
        letter-spacing: 0.8px;
    }
    .works-btn{
        margin-top: 1rem;
    }
    .prev, .next{
        padding: 0rem;
        font-size: 23px;
    }
    .contact-container{
        width: 70%;
    }
    .contact-container input[type=text], textarea{
        border-radius: 10px;
        font-size: 0.9rem;
    }
    .services, .about{
        display: flex;
        flex-direction: column;
    }
    .icon{
        margin-top: 8%;
    }
    .icon i{
        padding: 0 0.6rem;
    }
    .rows{
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .about-item{
        width: 60%;
        margin-bottom: 5%;
    }
    .about-item p{
        font-size: 0.6rem;
        line-height: 0.9rem;
    }
    .about-item h4{
        font-size: 0.8rem;
        font-weight: 600;
        margin-bottom: 0.6rem;
    }
    .about-item .image-about img{
        margin-top: 0.8rem;
    }
    footer{
        top: -0.2rem;
        font-size: 0.6rem;
    }
}