﻿@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&display=swap");

::selection {
    background-color: rgb(14, 45, 87);
    color: white;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    font-family: "Kanit", sans-serif !important;
    position: relative;
    overflow-x: hidden;
    background-color: white;
}

.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

.spinner {
    width: 7rem;
    height: 7rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: spin 1s linear infinite;
}

.spinner-image {
    width: 2rem;
    height: 2rem;
    animation: ping 1s infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes ping {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    75%, 100% {
        transform: scale(2);
        opacity: 0;
    }
}


/* #region Navbar */

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    /* background: #ffffff1a; */
    background-color: #ffffff;
    backdrop-filter: blur(5px);
}

    nav .logo img {
        width: 100px;
    }

    nav .select-nav-link h4 {
        display: flex;
        align-items: center;
        font-size: 1em;
    }

    nav .mobile-menu .select-nav-link span {
        font-size: 1em;
    }

    nav .desktop-menu {
        display: flex;
        gap: 1em;
        align-items: center;
    }

    nav .mobile-menu {
        display: none;
        position: fixed;
        top: 0;
        left: -100vw;
        width: 100vw;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.95);
        z-index: 9998;
        padding: 20px;
        opacity: 0;
        transition: left 0.4s ease, opacity 0.4s ease;
        visibility: hidden;
    }

        nav .mobile-menu.active {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            left: 0;
            opacity: 1;
            visibility: visible;
        }

        nav .mobile-menu h4 {
            font-size: 2em;
            font-weight: 500;
            color: #000000;
        }

    nav .dropdown-menu {
        display: none;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: absolute;
        top: 0;
        left: 0;
        background-color: #ffffff;
        width: 100vw;
        height: 100vh;
        z-index: 99999;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

        nav .dropdown-menu.active {
            display: flex;
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        nav .dropdown-menu a {
            font-size: 2em;
            display: block;
            padding: 0 !important;
        }

    nav .desktop-menu a {
        position: relative;
        text-decoration: none;
        color: #000000;
        font-weight: 500;
        transition: all 0.3s ease;
        padding: 0.6em 0;
    }

    nav .desktop-menu .select-nav-link a {
        margin: 0.6em 0;
    }

    nav .desktop-menu {
        display: flex;
        align-items: center;
        gap: 20px;
    }

        nav .desktop-menu a,
        nav .desktop-menu .select-nav-link {
            text-decoration: none;
        }

            nav .desktop-menu a::before,
            nav .desktop-menu .select-nav-link h4::before {
                content: "";
                position: absolute;
                width: 0%;
                height: 3px;
                border-radius: 20px;
                background-color: rgb(10, 42, 63);
                bottom: 0;
                left: 0;
                transition: width 0.5s ease;
            }

            nav .desktop-menu a:hover::before,
            nav .desktop-menu .select-nav-link:hover h4::before {
                width: 100%;
            }

        nav .desktop-menu .select-nav-link {
            display: flex;
            align-items: center;
            cursor: pointer;
            padding: 0.6em 0;
        }

            nav .desktop-menu .select-nav-link h4 {
                position: relative;
                display: flex;
                padding: 0.6em 0;
                font-weight: 400;
            }


        nav .desktop-menu a:hover {
            color: rgb(10, 42, 63);
        }

            nav .desktop-menu a:hover::before {
                width: 100%;
            }

        nav .desktop-menu a h4 {
            font-size: 1em;
            font-weight: 400;
            display: flex;
        }

    nav .toggle-button {
        display: none;
        z-index: 9999;
        position: relative;
    }

    nav .back-button {
        display: none;
    }

        nav .back-button.active:hover {
            background-color: #ffffff;
            color: #07173d;
            transition: all 0.3s ease;
            cursor: pointer;
        }

        nav .back-button.active {
            display: block;
            position: absolute;
            top: 5rem;
            background-color: #07173d;
            color: white;
            padding: 1em 1.2em;
            border-radius: 50%;
            right: 5rem;
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 999999;
            border: 1px solid #07173d;
        }

    nav .close-button {
        display: none;
    }



@media (max-width: 768px) {
    nav .toggle-button {
        display: block;
    }

    nav a {
        text-decoration: none;
        color: #000000;
    }

    nav .toggle-button {
        display: none;
        transition: all 0.3s ease;
    }

    nav .close-button.active {
        display: block;
        z-index: 9999;
    }

    nav .toggle-button.active {
        display: block;
    }

    nav .mobile-menu.active {
        display: block;
    }

    nav .desktop-menu {
        display: none;
    }
}

/* #endregion */

/* #region Footer  */

footer {
    padding: 4rem 7rem 1rem 7rem;
    background-color: #07173d;
    color: white;
}

    footer a {
        color: #FFFFFF;
        text-decoration: none;
    }

    footer .footer_top {
        display: flex;
        justify-content: space-between;
        border-bottom: 0.4px solid white;
        padding-bottom: 2rem;
    }

        footer .footer_top h4 {
            font-size: 1.5rem;
            margin-bottom: 1rem;
        }

    footer .footer_bottom {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-top: 1rem;
    }

    footer .footer_top .social_links {
        margin-top: 1rem;
        display: flex;
        gap: 1rem;
    }

        footer .footer_top .social_links a {
            background-color: transparent;
            border: 1px solid white;
            border-radius: 10px;
            width: 50px;
            height: 50px;
            display: flex;
            justify-content: center;
            align-items: center;
            transition: all ease-in-out 0.4s;
            font-size: 1.2em;
        }

            footer .footer_top .social_links a:hover {
                background-color: white;
                color: #07173d;
            }

    footer .footer_top .quick_links p,
    footer .footer_top .popular_links p {
        display: flex;
        align-items: center;
        gap: 0.5em;
    }

@media(max-width: 992px) {
    footer {
        padding: 2rem;
    }

        footer .footer_top {
            flex-direction: column;
            gap: 2rem;
        }

    .footer_bottom {
        flex-direction: column;
        text-align: center;
    }
}


.gallery {
    font-family: "Kanit", sans-serif !important;
}

.nav .desktop-menu .select-nav-link h4 {
    font-size: 1em;
}
