


*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: "Trirong", serif;
}

:root {
    --bg-color: #100D08;
    --second-bg-color: #131313;
    --text-color: #FFE8ED;
    --main-color: #ed9fb4;
    --date-color: #e97091;
    --h4-color: #efc1cebf;
    --h5-color: #f5a4b9cb;
    --h4ex-color: #c04264;
    --h5ex-color: #862b44c6;;
    --h5ex-hover: #ed9fb4;
    
}

html{
    font-size: 60%;
    overflow-x: hidden;
}

body{
    background-color: var(--bg-color);
    color: var(--text-color);
}

/*Custom tab*/
.tab {
    display: inline-block;
    margin-left: 75px;
}

.second-tab{
    display: inline-block;
    margin-left: 25px;
}

/*=========================================*/
/*===============HEADER PART===============*/
/*=========================================*/

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 4rem 12% 4rem;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 5;
}

.logo{
    width: 90px;
    height: 90px;
    box-shadow: 0 0 25px var(--main-color);
    border-radius: 50%;
    
}


.logo img{
    width: 90%;
    height: 90%;
    margin-left: 5.5px;
    margin-top: 5.5px;
}


.navbar a{
    text-transform: uppercase;
    font-size: 1.6rem;
    color: var(--text-color);
    margin-left: 4rem;
    font-weight: 500;
    transition: 0.3s ease;
    text-shadow: 0 0 25px;
}

.navbar a:hover,
.navbar a.active{
    color: var(--main-color);
    border-bottom: 1.5px dotted var(--main-color);
    text-shadow: 0 0 25px var(--main-color);
}

#menu-icon{
    font-size: 3.6rem;
    color: var(--main-color);
    display: none;
}
/*===========================================*/
/*===============HOMEPAGE PART===============*/
/*===========================================*/
section{
    min-height: 80vh;
    padding: 10rem 12% 10rem;
    
}

.home{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.home-content{
    display: flex;
    flex-direction: column;
    align-items: baseline;
    text-align: left;
    justify-content: center;
    margin-top: 7rem;
}

.home span{
    color: var(--main-color);
}



.home-content h3{
    margin-bottom: 2rem;
    margin-top: 1rem;
    font-size: 3.5rem;
}

.home-content h1{
    font-size: 7rem;
    font-weight: 700;
    margin-top: 1.5rem;
    line-height: 1;
}


.home-img img{
    position: relative;
    width: 34vw;
    border-radius: 20%;
    cursor: pointer;
    transition: 0.4s ease-in-out;
    /*box-shadow: 0 0 25px var(--main-color);*/ 
}

/*.home-img img:hover{
    box-shadow: 0 0 25px var(--main-color),
                0 0 50px var(--main-color);
                
*/           

.home-content p {
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.8;
    max-width: 1000px;
}

.social-icons a{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4.5rem;
    height: 4.5rem;
    background: transparent;
    border: 2px solid var(--main-color);
    font-size: 2.5rem;
    border-radius: 50%;
    color: var(--main-color);
    margin: 3rem 1.5rem 3rem 0;
    transition: 0.3s ease-in-out;
}

.social-icons a:hover{
    color: var(--main-color);
    transform: scale(1.3)translateY(-5px);
    box-shadow: 0 0 25px var(--main-color);
}

.btn{
    display: inline-block;
    padding: 1rem 2.8rem;
    background-color: var(--main-color);
    border-radius: 18px;
    font-size: 1.6rem;
    color: black;
    border: 2px solid transparent;
    letter-spacing: 0.1rem;
    font-weight: 600;
    transition: 0.3s ease-in-out;
    cursor: pointer;
}

.btn:hover{
    transform: scale(1.05);
    box-shadow: 0 0 15px var(--main-color);
}

.btn-group{
    display:flex;
    align-items: center;
    gap: 1.5rem;
}

.text-animation{
    font-size: 34px;
    font-weight: 600;
    min-width: 280px;
}

.text-animation span{
    position: relative;
}

.text-animation span::before{
    content: "Software Engineer";
    color: var(--main-color);
    animation: words 30s infinite;
}

.text-animation span::after{
    content: "";
    background-color: var(--bg-color);
    position:absolute;
    width: calc(100% + 8px);
    height: 100%;
    border-left: 3px solid var(--bg-color);
    right: -8px;
    animation: cursor 0.6s infinite, typing 30s steps(14) infinite;
}

@keyframes cursor{
    to{
        border-left: 2px solid var(--main-color);
    }
}
@keyframes words{
    0%,
    20%{
        content: "Frontend Designer";
    }
    21%,
    40%{
        content: "Web Designer";
    }
    41%,
    60%{
        content: "Web Developer";
    }
    61%,
    80%{
        content: "Software Developer";
    }
    81%,
    100%{
        content: "Fullstack Developer";
    }
    
}

@keyframes typing{
    10%,
    15%,
    30%,
    35%,
    50%,
    55%,
    70%,
    75%,
    90%,
    95%{
        width:0;
    }

    5%,
    20%,
    25%,
    40%,
    45%,
    60%,
    65%,
    80%,
    85%{
        width: calc(100% + 8px);
    }
}

/*========================================*/
/*=============EDUCATION PART=============*/
/*========================================*/
.heading{
    font-size: 6rem;
    text-align: center;
    margin: 6rem 0;
    
}

.education{
    padding: 100px 15px;
    background-color: var(--second-bg-color);
}

.education h2{
    color: var(--text-color);
    margin-bottom: 5rem;
}

.timeline-items{
    max-width: 1100px;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    position: relative;
}

.timeline-items::before{
    content: "";
    position: absolute;
    width: 6px;
    height: 100%;
    background-color: var(--main-color);
    left: calc(50% - 1px);
}

.timeline-item{
    margin-bottom: 30px;
    width: 100%;
    position: relative;
}

.timeline-item i{
    font-size: 25px;
    color: var(--main-color);
}
.timeline-item h6{
    color: var(--main-color);
    font-weight: lighter;
}
.timeline-item h6 i{
    font-size: 9px;
    color: var(--main-color);
}
.timeline-item:last-child{
    margin-bottom: 10px;
}

.timeline-item:nth-child(odd){
    padding-right: calc(50% + 30px);
    text-align: right;
}

.timeline-item:nth-child(even){
    padding-left: calc(50% + 30px);
}

.timeline-dot{
    height: 21px;
    width: 21px;
    background-color: var(--date-color);
    box-shadow: 0 0 25px var(--main-color),
                0 0 50px var(--main-color);
    position: absolute;
    left: calc(50% - 8px);
    border-radius: 50%;
    top: 10px;
}

.timeline-date{
    font-size: 20px;
    font-weight: 800;
    color: var(--date-color);
    margin: 6px 0 15px;
}

.timeline-content{
    background-color: var(--bg-color);
    border: 2px solid var(--main-color);
    border-radius: 25px;
    padding: 30px 50px;
    box-shadow: 0 0 10px var(--main-color);
    cursor: pointer;
    transition: 0.3s ease-in-out;
    line-height: 1.75;
    text-align: center;
}

.timeline-content:hover{
    transform: scale(1.05);
    box-shadow: 0 0 25px var(--main-color);
}
.timeline-content p{
    text-align: left;
    margin-left: 40px;
}

.timeline-content h3{
    font-size: 25px;
    color: var(--main-color)
}

.timeline-content h4{
    font-size: 15px;
    font-weight: lighter;
    font-style: italic;
    color: var(--h4-color);
}

.timeline-content h5{
    font-size: 14px;
    background-color: #e0a0d747;
    margin-top: 15px;
    line-height: 2;
    margin-bottom: 15px;
}

.timeline-content p{
    color: var(--text-color);
    font-size: 14px;
    font-weight: 300;
    line-height: 2;
    margin-left: 0px;
}

.timeline-content strong{
    color: #ed9fb4;
}

/*Scrollbar Part (Optional)*/
::-webkit-scrollbar{
    width: 10px;
}

::-webkit-scrollbar-thumb{
    background-color: var(--main-color);
}

::-webkit-scrollbar-track{
    background-color: var(--bg-color);
    width: 10px;
}
/*========================================*/
/*===============SKILL PART===============*/
/*========================================*/
.skills {
    background-color: var(--bg-color);
    color: var(--main-color);
}

.skills h2 {
    margin-bottom: 5rem;
    color: var(--text-color);
}

.skill-container {
    display: grid;
    grid-template-columns: repeat(5, 2fr);
    gap: 2.5rem;
    font-size: 2.0rem;
}

.skill-card {
    background-color: transparent;
    width: 120px;
    height: 120px;
    perspective: 1000px;
    text-align: center;
    margin-bottom: 50px;    
}

.skill-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: 0.7s ease-in-out;
    transform-style: preserve-3d;
    box-shadow: 0 0 15px var(--main-color);  
    border: 4px double var(--main-color);
    border-radius: 22px;
}

.skill-card:hover .skill-card-inner {
    transform: scale(1.15)rotateY(180deg);
    box-shadow: 0 0 15px var(--main-color),
    0 0 45px var(--main-color);  
    
}

.skill-card-front, .skill-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.skill-card-front {
    background-color: var(--bg-color);
    color: var(--main-color);
    font-size: 5rem;
    border-radius: 22px;
}

.skill-card-back {
    background-color: var(--main-color); 
    color: var(--bg-color);
    transform: rotateY(180deg);
    border-radius: 22px;
    font-size: 1.7rem;
}

/*==========================================================*/
/*===============EXPERIENCES AND PROJECT PART===============*/
/*==========================================================*/

/*Experiences*/
.experiences{
    background-color: var(--second-bg-color);
    color: var(--bg-color);
}

.experiences h2, .project h2{
    margin-bottom: 5rem;
    color: white;
}

.experiences-container{
    display: grid;
    grid-template-columns: repeat(1,1fr);
    align-items: center;
    gap: 2.5rem;
}

.experiences-box, .project-box {
    background-color: #f0aabdd7;
    height: fit-content;
    border-radius: 3rem;
    border: 2px solid var(--bg-color);
    cursor: pointer;
    transition: 0.4s ease-in-out;
}

.experiences-box:hover, .project-box:hover{
    background: var(--bg-color);
    max-height: fit-content;
    color: var(--text-color);
    border: 4px double var(--main-color);
    transform: scale(1.02);
    box-shadow: 0 0 25px var(--main-color);
}

.experiences-box .experiences-info, .project-box .project-info {
    display: flex;
    flex-direction: column;
    text-align: left;
    justify-content: left;
    align-items: baseline;
    padding: 5rem 5rem;
}

.experiences-info h4, .project-info h4{
    font-size: 3rem;
    font-weight: 800;
    color: var(--h4ex-color);
}

.experiences-info h4+h5, .project-info h4+h5{
    font-size: 1.5rem;
    margin-top: 5px;
    margin-bottom: 10px;
    color: var(--h5ex-color);
    font-weight: lighter;
}

.experiences-box:hover h4+h5{
    color: var(--h5ex-hover);
}

.experiences-box:hover h4{
    color: var(--date-color);
}

.experiences h5 i{
    font-size: 12px;
}

.experiences-info p, .project-info p{
    font-size: 1.6rem;
    font-weight: 600;
    line-height: 1.75;
}

/*Projects*/
.project{
    background-color: var(--bg-color);
}

.project-container{
    display: grid;
    grid-template-columns: repeat(2,2fr);
    align-items: center;
    gap: 1.5rem;
}

.project-box{
    background-color: var(--second-bg-color);
    color: var(--text-color);
    height: 500px;
    border: 2px dotted #f0aabdd7;
    box-shadow: 0 0 5px var(--main-color);
}

.project-box:hover{
    background-color: #f0aabdd7;
    border: 4px double var(--bg-color);
    color: var(--bg-color);
}

.project-box .project-info {
    max-height: 450px;
}

.project-info h4{
    font-size: 2.75rem;
}

.project-info h4+h5{
    font-size: small;
    color: var(--h5ex-hover);
}

.project-info:hover h4+h5{
    font-size: small;   
    color: var(--h5ex-color)
}

.project-box:hover h4{
    color: var(--h4ex-color);
}


.project h5 i{
    font-size: 11px;
}


.project-info p{
    font-size: 1.55rem;
    
}

/*========================================*/
/*================FORM PART===============*/
/*========================================*/

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

.contact h2{
    color: var(--text-color);
}

.contact form{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    margin: 10rem auto;
    text-align: center;
    border: 2px dotted var(--main-color);
    box-shadow: 0 0 5px var(--main-color);   
}

.input-group{
    margin-top: 20px;
    margin-bottom: 20px;
    margin-right: 20px;
}
.contact form .input-box{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.contact form .input-box input, .contact form textarea{
    width: 100%;
    padding: 2.0rem;
    font-size: 1.5rem;
    color: var(--text-color);
    background-color: var(--bg-color);
    border-radius: 22px;
    border: 2px solid var(--main-color);
    margin: 1.5rem 0;
    resize: none;
    box-shadow: 0 0 5px var(--main-color);
}

::placeholder {
    color: var(--main-color);
  }

.contact form .btn{
    margin-top: 2rem;
    box-shadow: 0 0 5px var(--main-color);
}

.footer{
    position: relative;
    bottom: 0;
    width: 100%;
    padding: 40px 0;
    background-color: var(--second-bg-color);
}
.footer .social{
    text-align: center;
    padding-bottom: 25px;
    color: var(--main-color);
}

.footer .social a{
    font-size: 25px;
    color: var(--main-color);
    border: 2px solid var(--main-color);
    width: 42px;
    height: 42px;
    line-height: 42px;
    display: inline-block;
    border-radius: 50%;
    margin: 0 10px;
    transition: 0.3s ease-in-out;
    text-align: center;
}

.footer .social a:hover{
    transform: scale(1.2)translateY(-10px);
    background-color: var(--main-color);
    color: black;
    box-shadow: 0 0 25px var(--main-color);
}

.footer ul{
    margin-top: 0;
    padding: 0;
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 0;
    text-align: center;
}

.footer ul li a{
    color: var(--text-color);
    border-bottom: 3px solid transparent;
    transition: 0.3s ease-in-out;
}

.footer ul li a:hover{
    border-bottom: 3px solid var(--main-color);
}

.footer ul li{
    display: inline-block;
    padding: 0 15px;
}

.footer .copyright{
    margin-top: 50px;
    text-align: center;
    font-size: 16px;
    color: var(--text-color);
}
/*==========================================================*/
/*==========================================================*/
/*==========================================================*/
/*======================RESPONSIVE PART=====================*/
/*==========================================================*/
/*==========================================================*/
/*==========================================================*/
@media(max-width: 1285px){
    html{
        font-size: 55%;
    }

    .logo{
        width: 53px;
        height: 53px;
        box-shadow: 0 0 18px var(--main-color);
        border-radius: 50%;
        
    }
    
    
    .logo img{
        width: 86%;
        height: 86%;
        margin-left: 4px;
        margin-top: 4px;
    }


    .skill-container{
        padding-bottom: 7rem;
        grid-template-columns: repeat(5,1fr);
        margin: 0 5rem;
    }

    .experiences-box{
        max-height: fit-content;
    }
}

@media(max-width: 991px){
    html{
        font-size: 45%;
    }
    header{
        padding: 2rem 3%;
    }

    section{
        padding: 10rem 3% 2rem;
    }

    .education span{
        margin-left: 30px;
    }

    .timeline-item:nth-child(even){
        margin-right: 15px;
    }

    .timeline-item:nth-child(odd){
        margin-left: 15px;
    }

    .timeline-dot{
        display: none;
    }

    .logo{
        width: 50px;
        height: 50px;
        box-shadow: 0 0 18px var(--main-color);
        border-radius: 50%;
        
    }
    
    
    .logo img{
        width: 85%;
        height: 85%;
        margin-left: 4.5px;
        margin-top: 4.5px;
    }

    .project-box{
        height: 330px;
    }

    .project span{
        margin-left: 15px;
    }


}