@import url('https://fonts.googleapis.com/css?family=Poppins:400,500,600,700&display=swap');

*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    font-family: 'Roboto', sans-serif;
    font-family: 'Roboto Condensed', sans-serif;
    list-style: none;
    text-decoration: none;
    scroll-behavior: smooth;
    scroll-padding: 3.5rem;
}
:root{
    --Color-P1:#09152B;
    --Color-P2:#F99C1C;
    --bg-color:#101010;
    --secound-bg-color:#191919;
    --text-color:#fff;
    --secound-color:#c6c9d8bf;
    --main-color:#f9004d;
    --big-font:4.2rem;
    --h2-font:4rem;
    --p-font:1.1rem;
}
body{
    background: var(--Color-P1);
    color: var(--text-color);

}
header{
    position: fixed;
    width: 100%;
    top: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent;
    padding: 25px 15%;
    transition-duration: .3s;
}

.logo{
    color: var(--text-color);
    font-size: 30px;
    font-weight: bold;
    letter-spacing: 1px;

}

.logo span{
    font-size: 30px;
    color: var(--Color-P2);
}

.navber{
    display: flex;
    animation: transition 1s;
    
}
.navber li{
    position: relative;
}
.navber a{
    color: var(--text-color);
    font-weight: bold;
    font-size: 1rem;
    padding: 10px 20px;
}
.navber a::after{
    content: '';
    position:absolute;
    width: 0%;
    height: 2px;
    background:var(--Color-P2);
    left: 0;
    bottom: -4px;
    transition: ease .40s;
}
.navber a:hover::after{
    width: 100%;
    
}
#menu-icon{
    font-size: 32px;
    columns: var(--text-color);
    z-index:1001;
    cursor: pointer;
    display: none;
}
.h-btn{
    padding: 0 20px;
    height: 40px;
    display: inline-block;
    line-height: 42px;
    background: var(--Color-P2);
    color: var(--text-color);
    border: none;
    border-radius: 15px;
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 1px;
    transition: all .30s;
}
.h-btn:hover{
    transform:translateY(-5px) ;
}

section{
    padding: 60px 120px 60px 120px;
}
.home{
    height: 100vh;
    width: 100%;
    background:linear-gradient(rgba(0,0,0,0.3),rgba(0,0,0,0.3)) , url("img/BG2.jpg");
    background-size: cover;
    background-position: center;
    position: relative;
    display: grid;
    grid-template-columns: repeat(1,1fr);
    align-items: center;
    animation: transition 3s;
}
.home-text h1{
    margin: 0px 0px 0px;
    font-size: 45px;
}
span{
    color: var(--Color-P2);
}
.home-text h3{
    font-size: 18px;
    margin-bottom: 30px;
}
.home-text h4{
    color: #b8b6b6;
    font-size: 25px;
    letter-spacing: 2px;
}
header.sticky{
    padding: 12px 15%;
    background: var(--Color-P1);
}
.sticky .navber a:hover::after{
    background: var(--Color-P2);
}
.sticky .h-btn{
    background: var(--Color-P2);
}

.about{
    background:var(--bg-color);
    display: grid;
    grid-template-columns: repeat(2,2fr);
    align-items: center;
    grid-gap: 2rem;
}
.about-img img{
    max-width: 100%;
    width: 500px;
    height: auto;
    border-radius: 10px;
}
.about-text h2{
    font-size: var(--h2-font);
    margin-bottom: 20px;
}
.about-text h5{
    font-size: 28px;
    margin-bottom: 25px;
    letter-spacing: 2px;
}
.about-text p{
    color: var(--text-color);
    letter-spacing: 1px;
    line-height: 28px;
    max-width: 590px;
    font-size: var(--p-font);
    margin-bottom: 45px;
}
.btn{
    display: inline-block;
    background: var(--Color-P2);
    color: var(--text-color);
    border: 2px solid transparent;
    font-weight: 600;
    padding: 13px 30px;
    border-radius: 15px;
    transition: ease .35s;
}
.btn:hover{
    transform: translateY(-8px);
    border: 2px solid var(--Color-P2);
    background: transparent;
}

.service{
    background: var(--bg-color);
}
.center{
    text-align: center;
}
.center h2{
    font-size: var(--h2-font);
}
.center p{
    color: var(--text-color);
    letter-spacing: 1px;
    line-height: 28px;
    font-size: var(--p-font);
}
.service-content{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, auto));
    grid-gap: 2rem;
    align-items: center;
    margin-top: 4.5rem;
}
.row{
    background: var(--secound-bg-color);
    padding: 55px 20px;
    border-radius: 10px;
    cursor: pointer;
    transition: all .35s;
    text-align: center;
}
.row i {
    color: var(--Color-P2);
    margin: bottom 20px; ;
    font-size: 2.7rem;
}
.row h3{
    color: var(--text-color);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
}
.row p{
    color: var(--text-color);
    line-height: 30px;
    font-size: var(--p-font);
}
.row:hover{
    transform: translateY(-8px);
    border: 2px solid var(--Color-P2);
    background: var(--secound-bg-color);
}

.education{
    background: var(--secound-bg-color);
    background:linear-gradient(#191919ea,#191919ea) , url("img/BG3.jpg");
    background-size: cover;
    background-position: center;
}

.portfolio{
    background: var(--secound-bg-color);
}

.porfolio-content{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, auto));
    grid-gap: 2rem;
    align-items: center;
    margin-top: 4.5rem;
    cursor: pointer;
    text-align: center;
}
.box{
    background: linear-gradient(rgba(0,0,0,0.6),rgba(0,0,0,0.6));
    border-radius: 10px;
}
.box img{
    max-width: 100%;
    width: 500px;
    height: auto;
    border-radius: 10px;
    margin-bottom: 20px;
    transition: all .30s;
}
.box p{
    color: var(--text-colorช);
    font-size: var(--p-font);
    font-weight: 700;
    margin-bottom: 5px;
}
.box h5{
    color: var(--secound-color);
    font-size: 14px;
    margin-bottom: 15px;
}
.box img:hover{
    transform: scale(1.05);
    transition: .5s;
}

.box:hover{
    transform: scale(1.03);
    transition: .5s;
}

@media (max-width: 1270px) {
    header{
        padding: 18px 4%;
        transition: .2s;
    }
    header.sticky{
        padding: 10px 4%;
        transition: .2s;
    }
    section{
        padding: 80px 4%;
        transition: .2s;
    }
    :root{
        --big-font: 4.8rem;
        --h2-font: 3.8rem;
        --p-font: 1rem;
        transition: .2s;
    }
}
@media (max-width: 990px){
    .home{
        height: 100vh;
    }
    #menu-icon{
        display:  initial;
    }
    .navber{
        position: absolute;
        top: -4000%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--bg-color);
        text-align: left;
        transition: all .30s;
    }
    .navber a{
        display: block;
        padding: 1.1rem;
        margin: 1.3rem;
        border-left: 2px solid var(--text-color);
    }
    .navber a:hover{
        background: var(--Color-P2);
    }
    .navber a::after{
        display: none;
    }
    .navber.active{
        top: 100%;
    }
    .about{
        grid-template-columns: 1fr;
    }
    .about-img{
        text-align: center;
        margin-bottom: 30px;
    }
    .about-img img{
        max-width: 100%;
        width: 700px;
        height: auto;
    }
    .box img{
        max-width: 100%;
        width: 760;
        height: auto;
    }
    .center h2{
        font-size: 2em;
    }
}



.container {
  min-height: 60vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 20px;
}

.timeline {
  width: 80%;
  height: auto;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  display: grid;
}

.timeline-content:hover{
    transform: scale(1.03);
    transition: .5s;
}

.timeline ul {
  list-style: none;
}
.timeline ul li {
  padding: 20px;
  background-color: var(--bg-color);
  border-radius: 10px;
  margin-bottom: 20px;
}

.timeline ul li:last-child {
  margin-bottom: 0;
}

.timeline-content h1 {
  margin-top: 5px;
  font-weight: 500;
  font-size: 25px;
  line-height: 30px;
  margin-bottom: 10px;
  color: var(--Color-P2);
}
.timeline-content p {
  font-size: 16px;
  line-height: 30px;
  font-weight: 300;
  color: var(--secound-color);
}
.timeline-content .date {
  font-size: 12px;
  font-weight: 300;
  margin-bottom: 10px;
  letter-spacing: 2px;
}

@media only screen and (min-width: 768px) {
  .timeline:before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background-color: gray;
  }
  .timeline ul li {
    width: 50%;
    position: relative;
    margin-bottom: 50px;
  }
  .timeline ul li:nth-child(odd) {
    float: left;
    clear: right;
    transform: translateX(-30px);
    border-radius: 20px 0px 20px 20px;
  }
  .timeline ul li:nth-child(even) {
    float: right;
    clear: left;
    transform: translateX(30px);
    border-radius: 0px 20px 20px 20px;
  }
  .timeline ul li::before {
    content: "";
    position: absolute;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background-color: gray;
    top: 0px;
  }
  .timeline ul li:nth-child(odd)::before {
    transform: translate(50%, -50%);
    right: -30px;
  }
  .timeline ul li:nth-child(even)::before {
    transform: translate(-50%, -50%);
    left: -30px;
  }
  .timeline-content .date {
    position: absolute;
    top: -30px;
  }
  .timeline ul li:hover::before {
    background-color: var(--Color-P2);
  }
}


@keyframes transition{
    from{
        opacity: 0;
        transform: scale(98%);
    }
    to{
        opacity: 1;
        transform: scale(100%);
    }
}



