@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&family=Work+Sans:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    --color-body: #ffffff;
    --color-heading: #eef3db;
    --color-base: #49270D;
    --color-base2: #261308;
    --color-brand: #8C5B30;
    --color-brand2: #a37c59;
    --sidbar-width: 300px;
    --font-base: "Kanit";
}

.custom-audio {
    background-color: #261308;
    width: 100%;
    border-radius: 4px;
}

body {
    background-color: var(--color-base2);
    padding-top: 50px;
    color: var(--color-body);
    font-family: var(--font-base), sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--color-heading);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: var(--color-body);
    transition: all 0.4s ease;
}

a:hover {
    color: var(--color-brand);
}

img {
    width: 100%;
}

.text-brand {
    color: var(--color-brand);
}

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

.full-height {
    min-height: 100vh;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 80px;
    padding-bottom: 80px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.display-4 {
    padding-top: 40px;
    padding-bottom: 40px;
}

@media (max-width: 991px) {
    .full-height {
        height: auto;
        justify-content: flex-start;
        padding-top: 30px;
        padding-bottom: 30px;
    }
}

.mobile-image {
    display: none;
}

@media (max-width: 991px) {
    .mobile-image {
        display: block;
        width: 50%;
        margin: 0 auto;
        border: 8px solid var(--color-brand);
    }
}

.skills h5 {
    font-size: 1em;
    word-wrap: break-word;
}

.shadow-effect {
    transition: all 0.3s;
}

.shadow-effect:hover {
    box-shadow: -6px 6px 0 0 var(--color-brand);
}

.icon-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 15px;
}

@media (max-width: 991px) {
    .service h5 {
        font-size: 0.9em;
    }

    .iconbox i {
        font-size: 35px;
    }
}

@media (max-width: 991px) {
    .iconbox {
        width: 50px;
        height: 50px;
    }
}

.iconbox {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-brand);
    color: var(--color-base);
}

.iconbox i {
    font-size: 40px;
}

/* NAVBAR */
.navbar {
    background: linear-gradient(rgb(19, 8, 4), rgb(30, 15, 4));
}

.navbar .nav-link {
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
}

.navbar .nav-link:hover {
    color: var(--color-brand);
}

.navbar .nav-link.active {
    color: var(--color-brand);
}

@media (min-width: 992px) {
    body {
        padding-top: 0;
    }

    .navbar {
        min-height: 100vh;
        width: var(--sidbar-width);
        background: linear-gradient(rgb(19, 8, 4), rgb(30, 15, 4)), url(../images/sidebar-img.jpg);
        background-size: cover;
        background-position: center;
    }

    .navbar-brand img {
        border: 8px solid var(--color-brand);
    }

    /* CONTENT WRAPPER */
    #content-wrapper {
        padding-left: var(--sidbar-width);
    }
}

/* BTN */
.btn {
    padding: 12px 28px;
    font-weight: 700;
}

.btn-brand {
    background-color: var(--color-brand);
    border-color: var(--color-brand);
    color: var(--color-base);
}

.btn-brand:hover,
.btn-brand:focus {
    background-color: var(--color-brand2);
    color: var(--color-base);
    border-color: var(--color-brand2);
}

.link-custom {
    font-weight: 700;
    position: relative;
}

.link-custom::after {
    content: "";
    width: 0%;
    height: 2px;
    background-color: var(--color-brand);
    position: absolute;
    left: 0;
    top: 110%;
    transition: all 0.4s;
}

.link-custom:hover::after {
    width: 100%;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

@keyframes popUp {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

#modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
}

.modal-content {
    background-color: #49270D;
    margin: 10% auto;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1), 0 6px 20px rgba(0, 0, 0, 0.19);
    transform-origin: center;
    width: 80%;
    max-width: 600px;
    animation: popUp 0.2s ease-out forwards;
    z-index: 1001;
}

@media (max-width: 991px) {
    .modal-content {
        padding: 15px;
        width: 80%;
        max-width: 500px;
    }

    #modal-overlay {
        padding-top: 30px;
    }
}

.d-none {
    display: none;
}

@media (min-width: 992px) {
    #modal-overlay {
        padding-top: 10px;
    }

    .modal-content {
        margin-top: 1%;
    }
}

.close {
    color: #aaaaaa;
    float: right;
    font-size: 1.5rem;
    font-weight: bold;
    line-height: 1rem;
    cursor: pointer;
    padding-bottom: 10px;
}

.skill {
    padding-bottom: 10px;
}

.close:hover,
.close:focus {
    color: #ddd;
    text-decoration: none;
    cursor: pointer;
}


.skill-meter {
    background-color: #ddd;
    border-radius: 4px;
    height: 20px;
    width: 100%;
    margin-top: 10px;
}

@keyframes loadSkill {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

.skill-level {
    transform-origin: left;
    height: 20px;
    background-color: #4CAF50;
    border-radius: 4px;
    width: 0%;
    animation: loadSkill 2s ease forwards;
}



.card-custom .card-custom-image {
    overflow: hidden;
}

.card-custom .card-custom-image img {
    transition: all 0.4s ease;
}

.card-custom:hover .card-custom-image img {
    transform: scale(0.9);
}


#contact .form-control {
    background-color: var(--color-base);
    border-color: var(--color-base);
    color: var(--color-body);
}

#contact .form-control:focus {
    border-color: var(--color-brand);
    box-shadow: none;
}

#contact .form-control::placeholder {
    color: var(--color-body);
}

#contact input.form-control {
    height: 44px;
}


.social-icons {

}

.social-icons a {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-base);
    border-radius: 100px;
    font-size: 24px;
}