@import url('https://fonts.googleapis.com/css2?family=Kanit:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Kanit", sans-serif;
}
nav{
    width: 100%;
    position: sticky !important;
    left: 0;
    top: 0;
    box-shadow: 0px 5px 8px rgba(0,0,90,.59);
    z-index: 10;
}
.navbar-brand{
    font-weight: 600;

}
.nav-link{
    color: black !important;
    border: 2px solid black;
}
.nav-link:hover{
    border-bottom: 2px solid black;
}

/* Home */

section{
    width: 100%;
    min-height: 100vh;
}

#home{
    width: 100%;
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,.4),rgba(0,0,0,.6)),url(img\ 1.png);
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    color: red;
    flex-direction: column;
}
#home p{
    position: absolute;
    top: 50%;
    font-size: 100px;
    opacity: 0;
    animation: text 3s ease-in-out;
}
#home p:nth-child(1){
    animation-delay: 0s;
}
#home p:nth-child(2){
    animation-delay: 3s;
}
#home p:nth-child(3){
    animation-delay: 6s;
}
#home p:nth-child(4){
    animation-delay: 9s;
}
#home p:nth-child(5){
    animation-delay: 12s;
}
@keyframes text {
    50%{
        opacity: 1;
    }
    100%{
        opacity: 0;
    }
    
}

@media screen and (max-width:576px) {
    #home p{
        font-size: 80px;
    }
}

#home span{
    color: yellow;
}

/* About Us */

#about{
    display: flex;
    justify-content: center; 
    align-items: center;
    background: lightgrey;
}
.circle{
    width: 400px;
    height: 400px;
    background: rgb(128, 210, 221);
    border-radius: 50%;
    position: relative;
    box-shadow: 0px 5px 12px rgba(0,0,0,.9);
    margin-top: 3%;
    transition: 1s ;
}
.circle img{
    position: absolute;
    height: 350px;
    top: 5%;
    bottom: 10%;
    left: 15%;
    margin-top: 5%;
    transition: 2s;
    filter: drop-shadow(0px 30px 15px rgba(0,0,0,.7));
}

.circle:hover{
    width: 700px;
    height: 400px;
    border-radius: 10px;
    transition: 1s ;
}

.circle:hover img{
    position: absolute;
    top: 0;
    left: 0;
    transition: 1s;
}
.circle:hover .content{
    position: absolute;
    top: 25%;
    right: 5%;
    color: whitesmoke;
    width: 50%;
    opacity: 1;
    transition: 1s;
}
.circle .content{
    opacity: 0;
}
@media screen and (max-width:576px){
    .circle{
        width: 400px;
        height: 400px;
        background: rgb(6, 6, 6);
        border-radius: 50%;
        position: relative;
        box-shadow: 0px 5px 12px rgba(0,0,0,.9);
        margin-top: 3%;
        transition: 1s ;
    }
    .circle:hover img{
        position: absolute;
        top: 0;
        left: -5%;
        
        transition: 1s;
    }
    .circle:hover{
        width: 400px;
        height: 400px;
        border-radius: 10px;
        transition: 1s ;
    }
    .circle:hover .content{
        position: absolute;
        top: 25%;
        right: 0;
        color: whitesmoke;
        width: 50%;
        padding: 20px;
        opacity: 1;
        transition: 1s;
    }
    .circle .content{
        opacity: 0;
    }
}

/* skills */
#skills{
    padding-top: 5%;
    background: rgba(141, 150, 153, 0.171);
}
.skills .container{
    margin-top: 6%;
    margin-bottom: 6%;
}
label{
    font-size: 20px;
}
.progress{
       height: 30px !important;
       box-shadow: 2px 4px 5px gray, -2px -2px 5px whitesmoke;
}
.progress:hover{
    box-shadow: 2px 4px 5px rgb(134, 223, 234), -2px -2px 5px whitesmoke;

}

/* project section */

#project{
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 3%;
    background: linear-gradient(75deg, lightblue, lightgrey);
}

.carousel{
    width: 80%;
    height: 50vh;
    box-shadow: 10px 20px 10px rgba(0,0,0,.4);
}
.project,.carousel-inner img{
    width: 100%;
    height: 50vh;
}
@media screen and (max-width:576px) {
    .carousel{
        width: 90%;
        height: 50vh;
        box-shadow: 10px 20px 10px rgba(0,0,0,.4);
}
.project,.carousel-inner img{
    width: 100%;
    height: 50vh;
}
}

/* Pricing */

#pricing{
    padding-top: 5%;
    background-color: lightsteelblue;
}

.card{
    margin-top: 15%;
}
.card:hover{
    box-shadow: 8px 8px 15px rgba(0,0,0,.4);
    transition: .2s;
}

/* Contact Us */

#contact{
    padding-top: 2.4%;
    background-color: lightgrey;
}
#contact iframe{
    box-shadow: 15px 20px 10px rgba(0,0,0,.5);
}

@media screen and (max-width:576px) {
    #contact iframe{
        width: 95%;
        height: 50vh;
        padding-left: 3.5%;
        box-shadow: 10px 20px 10px rgba(0,0,0,.4);
    }
}

footer{
    position: relative;
    left: 0;
    bottom: 0;
    width: 100%;
    background-color: lightgrey;
    color: rgb(3, 3, 3);
    text-align: center;
}