* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
}

html{
    scroll-behavior: smooth;
    font-family: 'Bai Jamjuree', sans-serif;
}

.max-width{
    max-width: 1300px;
    margin: auto;
    padding: 0 80px;
}

.btn{
    display: inline-block;
    background: orange;
    color: #fff;
    padding: 12px 34px;
    font-size: 20px;
    border-radius: 6px;
    height: 51px;
}

@media screen and (max-width: 400px){
    .max-width{
        padding: 0 30px;
    }
}

/* Nav Bar Section*/

.navbar{
    background-color: white;
    position: fixed;
    width: 100%;
    z-index: 100;
    padding: 30px 0;
    font-family: 'Bai Jamjuree', sans-serif;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.navbar .max-width{
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar .menu li {
    list-style: none;
    display: inline-block;
}

.navbar .logo a {
    color: rgb(0, 0, 0);
    font-size: 35px;
    font-weight: 600;
}

.navbar .logo a span{
    color: orange;
    font-size: 35px;
    font-weight: 600;
}

.navbar .menu li a {
    color: rgb(0, 0, 0);
    font-size: 18px;
    font-weight: 500;
    margin-left: 25px;
    transition: all 0.5s;
}

.navbar .menu li:not(:last-child) a:hover {
    font-size: 24px;
    color: orange;
}

.navbar .menu li:last-child a:hover {
    transform: scale(1.2);
    background-color: white;
    color: orange;
    border: 1px solid orange;
}

.navbar .menu li a span {
    color: rgb(255, 255, 255);
}

.navbar .menu li a:hover span {
    color: rgb(255, 255, 255);
    color: orange;
}


.menu-burger{
    font-size: 0px;
    cursor: pointer;
}

.menu-mobile{
    width: 100%;
    height: 100%;
    position: fixed;
    background-color: orange;
    z-index: 2000;
    display: none;
}

.menu-mobile.active{
    display: block;
    z-index: 2000;
}

.menu-mobile ul{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    gap: 2em;
    padding: 0 0 20px 0;
    list-style-type: none;
}

.menu-mobile ul li a{
    margin: 0;
    padding: 0;
    cursor: pointer;
    color: white;
    font-size: 45px;
    font-weight: 600;
}

.right-header{
    float: right;
    margin: 30px;
    font-size: 32px;
    color: #fff;
    cursor: pointer;
}

@media screen and (max-width: 750px){
    .menu{
        display: none;
    }

    .menu-burger{
        font-size: 32px;
        display: block;
        z-index: 999;
    }
}

/* Header Section*/

.header{
    display: flex;
    max-width: 100%;
    height: 100vh;
    min-height: 500px;
    font-family: 'Bai Jamjuree', cursive;
}



.header .max-width{
    margin: auto 0 auto 10%;
    position: absolute;
    top: 50vh;
}

.header-portrait{
    background: linear-gradient(45deg, rgba(208,41,39,0.75) 0%, rgba(236,132,13,0.75) 50%, rgba(255,209,0,0.75) 100%);
    border-radius: 74% 26% 55% 44% / 43% 25% 75% 56%;
    position: absolute;
    width: 400px;
    height: 400px;
    top: 35vh;
    right: 20%;
    z-index: 80;
    overflow: hidden;
}

.portrait-me{
    width: 400px;
    height: 400px;
}



.header .header-content .text-1{
    font-size: 27px;
    font-weight: 400;
}

.header .header-content .text-2{
    font-size: 75px;
    font-weight: 600;
    font-style: italic;
}

.header .header-content .text-3{
    font-size: 40px;
    font-weight: 400;
    font-style: italic;
}

.header .header-content span{
    color: orange;
    font-weight: 500;
    font-style: italic;
}

.header .header-content .btn{
    margin-top: 20px;
}

.header .header-content .btn:hover{
    background-color: white;
    color: orange;
    border: 1px solid orange;
}

.header .header-content .btn:hover span {
    color: rgb(255, 255, 255);
    color: orange;
}

.area{
    background: #ffffff;  
    background: -webkit-linear-gradient(to left, #ffffff, #505050);  
    width: 100%;
    height:100vh;
}

.circles{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.circles li{
    position: absolute;
    display: block;
    list-style: none;
    width: 20px;
    height: 20px;
    background: rgba(255, 166, 0, 0.308);
    animation: animate 25s linear infinite;
    bottom: -150px;
    
}

.circles li:nth-child(1){
    left: 25%;
    width: 80px;
    height: 80px;
    animation-delay: 0s;
}


.circles li:nth-child(2){
    left: 10%;
    width: 20px;
    height: 20px;
    animation-delay: 2s;
    animation-duration: 12s;
}

.circles li:nth-child(3){
    left: 70%;
    width: 20px;
    height: 20px;
    animation-delay: 4s;
}

.circles li:nth-child(4){
    left: 40%;
    width: 60px;
    height: 60px;
    animation-delay: 0s;
    animation-duration: 18s;
}

.circles li:nth-child(5){
    left: 65%;
    width: 20px;
    height: 20px;
    animation-delay: 0s;
}

.circles li:nth-child(6){
    left: 75%;
    width: 110px;
    height: 110px;
    animation-delay: 3s;
}

.circles li:nth-child(7){
    left: 35%;
    width: 150px;
    height: 150px;
    animation-delay: 7s;
}

.circles li:nth-child(8){
    left: 50%;
    width: 25px;
    height: 25px;
    animation-delay: 15s;
    animation-duration: 45s;
}

.circles li:nth-child(9){
    left: 20%;
    width: 15px;
    height: 15px;
    animation-delay: 2s;
    animation-duration: 35s;
}

.circles li:nth-child(10){
    left: 85%;
    width: 150px;
    height: 150px;
    animation-delay: 0s;
    animation-duration: 11s;
}

@media screen and (max-width: 1600px){
    .header-portrait{
        right: 10%;
    }

    .header .max-width{
        margin: auto 0 auto 5%;
    }
}

@media screen and (max-width: 1400px){
    .header-portrait{
        right: 5%;
    }

    .header .max-width{
        margin: auto 0 auto 0%;
    }
}

@media screen and (max-width: 1150px){
    .header-portrait{
        display: none;
    }

    .header .max-width{
        margin: auto 0 auto 0%;
    }
}

@media screen and (max-width: 400px){

    .header .max-width{
        top: 20vh;
    }

    .header .max-width{
        margin: auto 0 auto 10%;
        position: absolute;
        top: 30vh;
    }

    .header .header-content .text-1{
        font-size: 13px;
        font-weight: 400;
    }
    
    .header .header-content .text-2{
        font-size: 37px;
        font-weight: 600;
        font-style: italic;
    }
    
    .header .header-content .text-3{
        font-size: 20px;
        font-weight: 400;
        font-style: italic;
        padding: 0;
    }
}


@keyframes animate {

    0%{
        transform: translateY(0) rotate(0deg);
        opacity: 1;
        border-radius: 0;
    }

    100%{
        transform: translateY(-1000px) rotate(720deg);
        opacity: 0;
        border-radius: 50%;
    }

}

/* About me Section*/

.about{
    padding: 60px 0;
    box-shadow: 10px 1px 10px rgba(0, 0, 0, 0.1);
}

.about .about-content{
    display: flex;
    flex-wrap: wrap;   
    align-items: center;
    justify-content: space-between;
}

.about .about-content .left{
    width: 45%;
}

.about .about-content .left img{
    height: 400px;
    width: 400px;
    object-fit: cover;
    border-radius: 50%;
    border: 1px solid orange;
}

.about .about-content .right{
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 20px;
}

.about .about-content .right .text{
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 10px;
}

.about .about-content h2, h3{
    text-align: center;
    margin: 10px 0;
}

.about .about-content h2{
    margin: 40px 0;
    font-size: 35px;
    text-decoration: underline;
    text-underline-offset: 0.5em;
    text-decoration-color: orange;
}

.about .about-content h4{
    margin-bottom: 8px;
}

/*Project Section*/

.project{
    padding: 60px 0;
}

.project h2{
    text-align: center;
    margin: 40px 0;
    font-size: 35px;
    text-decoration: underline;
    text-underline-offset: 0.5em;
    text-decoration-color: orange;
}

.galery{
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    align-items: center;
    justify-content: center;

    width:100%;
    height: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content:center;
}

.galery .card{
    position: relative;
    width: 350px;
    height: 23rem;
    margin: 5px;
}

.galery .card img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s;
}

.galery .card:hover img{
    opacity: 0.7;
}

.card .overlay{
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    opacity: 0;
    transition: opacity 0.5s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.card .overlay h3{
    color: white;
    text-decoration: underline;
    text-underline-offset: 0.5em;
    text-decoration-color: orange;
}

.card .overlay p{
    text-align: center;
    color: orange;
}

.card:hover .overlay{
    opacity: 1;
    cursor: pointer;
}

.modal{
    display:none;
    position:fixed;
    left:0;
    top:0;
    width:100%;
    height:100%;
    z-index:101;
    background:rgba(0,0,0,0.7);
    overflow:auto;
  }
  .slide-show{
    position: relative;
    background-color: #fefefe;
    top:50%;
    transform-origin: 50% 50%;
    transform: translateY(-50%);
    margin: auto;
    padding: 0;
    max-width: 600px;
  }
  .close{
    position:absolute;
    top:0;
    right:1rem;
    color:white;
    font-size:4rem;
    dont-weight:bold;
  }
  .close:hover{
    color:grey;
    cursor:pointer;
  }

  .slide-show div{
    background-color: white;
  }

  .slide-show div img{
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .slide-show div{
    display:none;
  }

  .slide{
    min-height: 100%;
  }
  
  .infobox{
    padding: 20px;
  }

  .infobox h1{
    font-size: 30px;
  }

  .infobox h2{
    font-size: 15px;
    text-decoration: none;
    text-align: left;
    margin: 0;
    padding: 0 0 15px 0;
    border-bottom: 1px solid #afafaf;
    color: #afafaf;
  }

  .infobox p{
    margin-top: 15px;
  }

  /*Tools Section*/
  .tools{
    width: 100%;
    display: flex;
    flex-direction: column;
    background-color: orange;
    margin: 40px 0;
    padding-bottom: 40px;
  }

  .tools h2{
    text-align: center;
    margin: 40px 0;
    font-size: 35px;
    color: white;
    text-decoration: underline;
    text-underline-offset: 0.5em;
    text-decoration-color: black;
}



.dev-icon{
    color:#505050;
    display: block;
    font-size: clamp(2rem, 5vw, 3rem);
}

.skill-content{
    width:100%;
    height: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content:center;
    gap: 1em;
}

.skill-box{
    width: 100%;
    height: 100%;
    max-width: 100px;
    margin: 10px 0;
    padding: 0.8em 0.4em;
    background-color: #F9F7F0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 15px;
    gap: 0.5em;
}

.skill-box p {
    font-weight: 700;
    font-size: clamp(0.5rem, 2vw, 0.8em);
}

/*Contact Section*/

.contact{
    padding-bottom: 40px;
}

.contact h2{
    text-align: center;
    margin: 40px 0;
    font-size: 35px;
    text-decoration: underline;
    text-underline-offset: 0.5em;
    text-decoration-color: orange;
}

.form-content{
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    height: auto;
    padding: 2.5rem;
    background-color:#F9F7F0;
    color: #222620;
    border-radius: 0.75rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-content: center;
    z-index: 20;
}

form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1em;
}

input, textarea {
    background-color:#F8EFD3;
    border: 1px solid #f8eed3;
    margin-bottom: 0.5rem;
    padding: 0.5rem 1.5rem;
    font-size: 1rem;
    line-height: 1.7em;
    transition: border-color .2s;
    display: block;
    font-family: 'Poppins', sans-serif;
    width: 100%;
    border-radius: 6px;
}

input:focus, textarea:focus{
    outline: none !important;
    border-bottom: 1px solid orange;
}

textarea{
    resize: none;
}

button {
    width: 100%;
    height: 100%;
    background-color: white;
    color: orange;
    border: 1px solid orange;
    font-weight: 900;
}

button:hover {
    cursor: pointer;
    background-color: white;
    color: orange;
    border: 1px solid orange;
}

@media screen and (max-width: 470px){

    .btn{
        font-size: 15px;
        padding: 24px 34px;
        height: 100%;
    }
}

/*Footer Section*/
.footer{
    background-color: #222620;
    position: relative;
    width: 100%;
}

.footer-content{
    text-align: center;
}

.footer-content i{
    
    font-size: clamp(2rem, 5vw, 2rem);
    margin: 20px;
    margin-top: 60px;
}

.arrow {
    font-size: clamp(2rem, 5vw, 2rem);
    cursor: pointer;
    background-color: orange;
    padding: 10px;
    position: absolute;
    top : -25px;
    left: 0;
    right: 0;
    margin: 0 auto;
    height: 50px;
    width: 47px;
}

.foot-note{
    text-align: center;
    color: white;
    font-weight: 400;
    padding-bottom: 20px;
    font-size: 12px;
}

.hightlight{
    color: orange;
    font-weight: 600;
}