@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Khmer:wght@100;200;300;400;500;600;700&family=Raleway:wght@100;300;400;500;600;700;800;900&family=Roboto:wght@300;400;500;700&family=Rubik:wght@300;400;500;700&display=swap');

:root {
    --black: #171717;
    --blue: #114570;
    --blue-dark: #062e4e;
    --light-yellow: #EED4AD;
    --gold: #A2781A;
    --lighter-yellow: #FEEBC8;
    --white: #ffff;
    --border-bold: .5rem solid var(--blue);
    --border-bold: .5rem solid var(--gold);
    --border-light: .2rem solid var(--blue);
}

* {
    font-family: 'Noto Sans Khmer', sans-serif;
    font-family: 'Rubik', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
    border: none;
    text-decoration: none;
    color: var(--blue-dark);
}

*::selection {
    background-color: var(--blue);
    color: var(--gold);
}

*::-webkit-scrollbar {
    height: .5rem;
    width: 1rem;
}

*::-webkit-scrollbar-track {
    background-color: transparent;
}

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

html {
    font-size: 62.5%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    overflow: hidden;
    transition: .2s linear !important;
}

body.active {
    padding-left: 35rem;
}

.header {
    position: fixed;
    z-index: 6;
    top: 0;
    left: -35rem;
    height: 100vh;
    border-right: var(--border-bold);
    width: 35rem;
    padding: 3rem 2rem;
    padding-bottom: 9rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--white);
    flex-flow: column;
    transition: .2s linear !important;
    text-align: center;
}

.header .logo {
    text-transform: uppercase;
    border-bottom: var(--border-bold);
    font-weight: bolder;
    font-size: 4.5rem;
}

.header .navbar {
    width: 100%;
}

.header .navbar a {
    display: block;
    font-size: 2.5rem;
    padding: .8rem;
    margin: .5rem;
}

.header .navbar a.active,
.header .navbar a:hover {
    background-color: #dbac44;
}

.header .follow a {
    font-size: 3rem;
    margin: 0 1rem;
    cursor: pointer;
    transition: .6s linear !important;
}

.header .follow a:hover {
    transform: rotate(360deg);
}

#menu-btn {
    position: absolute;
    top: 0;
    right: -5.5rem;
    height: 4.5rem;
    line-height: 4.5rem;
    width: 5rem;
    font-size: 2.6rem;
    cursor: pointer;
    background-color: #A2781A;
    color: white;
}

.header.active {
    left: 0;
}

/* home section start */
section {
    padding: 3rem 2rem;
    margin: 0 auto;
    max-width: 1200px;
    /* max-width: 1024px; */
    text-align: center;
}

.home {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    min-height: 100vh;
}

.home .image {
    flex: 1 1 40rem;
}

.home .image img {
    height: 47rem;
    padding: 2rem;
    border: var(--border-bold);
}

.home .content {
    flex: 1 1 40rem;
}

.home .content h3 {
    text-transform: uppercase;
    font-size: 5rem;
    margin-bottom: .5rem;
}

.home .content span {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 5px;
    background-color: #e1b048;
    font-size: 1.9rem;
    margin: 1rem 0;
    
}

.home .content p {
    font-size: 1.7rem;
    line-height: 1.7;
    padding: 1rem 0;
    text-align: justify;
}

.btn {
    display: inline-block;
    margin-top: 1rem;
    cursor: pointer;
    padding: 1rem 3rem;
    border: var(--border-light);
    border-radius: 5px;
    color: var(--blue-dark);
    font-size: 2rem;
}

.btn:hover {
    border-radius: 5px;
    background-color: var(--blue-dark);
    color: rgb(255, 255, 255);
}

/* home section end */
/* about sectio start */
.heading {
    margin-bottom: 3rem;
    text-align: center;
}

.heading span {
    /* text-transform: uppercase; */
    font-size: 6.5rem;
    border-bottom: var(--border-bold);
}

.about .biography p {
    margin: 2rem auto;
    max-width: 100rem;
    line-height: 1.8;
    font-size: 1.9rem;
    text-align: justify;
}

.about .biography .bio {
    margin: 1rem 0;

}

.about .biography .bio h3 {
    padding: 1rem 2.5rem;
    display: inline-block;
    margin: 1rem;
    border: var(--border-light);
    word-break: break-all;
    font-size: 2.5rem;
    border-radius: 5px;
    font-weight: normal;
    text-transform: none;
}
/* skill start */
.skill-wrap{
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem; 
    max-width: 1160px;
    margin: 0 auto;
    justify-content: center;
}
.about .skills {
    margin: 3rem 0;
}
.about .skills .progress .bar {
    margin: 1.7rem auto;
    width: 490px;
    gap: 1.5rem;
    border: var(--border-light);
    padding: .5rem;
}
.about .skills .progress .bar h3 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 2rem;
    padding: 1rem;
    background-color: #dbac44;
}
.about .skills .progress .bar span {
    font-weight: normal;
}
.about .skills .progress .bar:nth-child(1) h3 {
    width: 85%;
}
.about .skills .progress .bar:nth-child(2) h3 {
    width: 70%;
}
.about .skills .progress .bar:nth-child(3) h3 {
    width: 60%;
}
.about .skills .progress .bar:nth-child(4) h3 {
    width: 75%;
}
.about .skills .progress .bar:nth-child(5) h3 {
    width: 85%;
}
.about .skills .progress .bar:nth-child(6) h3 {
    width: 60%;
}
.about .skills .progress .bar:nth-child(7) h3 {
    width: 40%;
}

.about .skills .progress-2 .bar {
    margin: 1.7rem auto;
    width: 490px;
    gap: 1.5rem;
    border: var(--border-light);
    padding: .5rem;
}
.about .skills .progress-2 .bar h3 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 2rem;
    padding: 1rem;
    background-color: #dbac44;
}
.about .skills .progress-2 .bar span {
    font-weight: normal;
}
.about .skills .progress-2 .bar:nth-child(1) h3 {
    width: 75%;
}
.about .skills .progress-2 .bar:nth-child(2) h3 {
    width: 60%;
}
.about .skills .progress-2 .bar:nth-child(3) h3 {
    width: 60%;
}
.about .skills .progress-2 .bar:nth-child(4) h3 {
    width: 65%;
}
.about .skills .progress-2 .bar:nth-child(5) h3 {
    width: 45%;
}
.about .skills .progress-2 .bar:nth-child(6) h3 {
    width: 45%;
}
.about .skills .progress-2 .bar:nth-child(7) h3 {
    width: 65%;
}
/* skill end */
.about .edu-exp .row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.about .edu-exp .row .box-container {
    flex: 1 1 40rem;
}

.about .edu-exp .row .box-container .title {
    padding: 1.5rem;
    font-size: 2.4rem;
    background-color: #dbac44;
}

.about .edu-exp .row .box-container .box {
    text-align: left;
    margin: 1.5rem 0;
    background-color: rgb(236, 236, 236);
    padding: 2rem;
}

.about .edu-exp .row .box-container .box span {
    font-size: 2rem;
}

.about .edu-exp .row .box-container .box h3 {
    font-size: 2.5rem;
    font-weight: normal;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.about .edu-exp .row .box-container .box p {
    line-height: 2;
    font-size: 1.7rem;
}

/* about section end */

/* section service start */
.services .box-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(40rem, 1fr));
    gap: 1.5rem;
    align-items: flex-start;
    justify-content: center;
}

.services .box-container .box {
    padding: 1rem 2rem;
    border: var(--border-light);
}

.services .box-container .box i {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.services .box-container .box h3 {
    margin: 1rem 0;
    font-size: 2rem;
    font-weight: normal;
    padding: 1rem;
    background-color: #dbac44;
}

.services .box-container .box p {
    line-height: 2;
    font-size: 1.7rem;
}

.services .box-container .box:hover {
    background-color: var(--blue-dark);

}

.services .box-container .box:hover i {
    color: var(--white);

}

.services .box-container .box:hover p {
    color: var(--white);
}

/* section service end */

/* section portfolio start */
.portfolio .box-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
    gap: 1.5rem;
    align-items: flex-start;
}

.portfolio .box-container img {
    height: 30rem;
    width: 100%;
    object-fit: cover;

}

.portfolio .box-container .box h3 {
    margin: 1rem 0;
    font-size: 2rem;
    font-weight: normal;
}

.portfolio .box-container .box span {
    font-size: 1.7rem;
}

/* .portfolio .box-container:hover .box {
    opacity: .2;
}

.portfolio .box-container .box:hover {
    opacity: 1;
} */

/* section portfolio end */
/* contact start */

.contact form {
    max-width: 70rem;
    margin: 0 auto;
}

.contact form .box {
    width: 100%;
    padding: 1.4rem;
    font-size: 2rem;
    text-transform: none;
    border: var(--border-light);
    margin: 1rem 0;
}

.contact form textarea {
    height: 20rem;
    resize: none;
}

.contact form .flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.contact form .flex .box {
    width: 49%;
}

/* contact end */
/* section copyright start */
.credit {
    text-align: center;
    background-color: var(--blue-dark);
    padding: 3rem;
    font-size: 2rem;
    color: var(--white);
}

.credit span {
    color: var(--gold);
}

/* section copyright end */
/* section start */
.contact .box-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
    gap: 1.5rem;
    align-items: flex-start;
    margin-top: 2rem;
}

.contact .box-container .box {
    padding: 2rem;
    border: var(--border-light);
    /* background-color: var(--lighter-yellow); */
}

.contact .box-container .box i {
    font-size: 2rem;
    height: 5rem;
    width: 5rem;
    line-height: 5rem;
    color: var(--white);
    background-color: var(--blue-dark);
}

.contact .box-container .box h3 {
    margin: 1rem 0;
    font-size: 2rem;
}

.contact .box-container .box p {
    font-size: 1.7rem;
    text-transform: none;
}

/* section end */
.message {
    position: sticky;
    top: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 4px;
    background-color: #dbac44;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    font-size: 1.rem;
}

.message i {
    cursor: pointer;

}

/* media queries */
@media (max-width:991px) {
    html {
        font-size: 55%;
    }

    body.active {
        padding-left: 0;
    }

    #menu-btn.fa-times {
        right: 0;
    }
}

@media (max-width:450px) {
    html {
        font-size: 50%;
    }

    .header {
        position: fixed;
        z-index: 1;
        top: 0;
    }

    .header.active {
        padding-top: 7rem;
    }


    #menu-btn.fa-times {
        right: 0;
    }

    .home .image img {
        height: auto;
        width: 100%;
    }

    .heading span {
        font-size: 4rem;
    }

    .contact form .flex .box {
        width: 100%;
    }
}

@media (max-width:375px) {
    html {
        font-size: 40%;
    }

    .header {
        position: fixed;
        z-index: 1;
        top: 0;
    }

    .header.active {
        padding-top: 7rem;
    }


    #menu-btn.fa-times {
        right: 0;
    }

    .home .image img {
        height: auto;
        width: 100%;
    }

    .heading span {
        font-size: 4rem;
    }

    .contact form .flex .box {
        width: 100%;
    }
    .about .skills .progress .bar {
        margin: 1.7rem auto;
        width: 383px;
        border: var(--border-light);
        padding: .5rem;
    }
    .about .skills .progress-2 .bar {
        margin: 1.7rem auto;
        width: 383px;
        border: var(--border-light);
        padding: 0.5rem;
    }
  
}