body {
    background-color: #101117;
}

nav {
    position: relative;
    overflow: visible;
    z-index: 50;
}

.menu {
    margin-top: 16px; 
    display: flex; 
    justify-content: center; 
    gap: 16px; 
    border-top: 1px solid #374151; 
    padding-top: 12px;
}

.menu button {
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    font-family: 'Kanit', sans-serif;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.menu button:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.menu button.active {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

section {
    display: none;
}

section.active {
    display: block;
}

#loader_screen {
    display: flex;
    position: fixed;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    text-align: center;
    backdrop-filter: blur(3px);
    z-index: 9999 !important;
}

.loader_animation {
    transform: rotateZ(45deg);
    perspective: 1000px;
    border-radius: 50%;
    width: 100px;
    height: 100px;
    color: #fff;
}

.loader_animation:before,
.loader_animation:after {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: inherit;
    height: inherit;
    border-radius: 50%;
    transform: rotateX(70deg);
    animation: 1s spin linear infinite;
}

.loader_animation:after {
    color: #237bff;
    transform: rotateY(70deg);
    animation-delay: .4s;
}

@keyframes rotate {
    0% {
        transform: translate(-50%, -50%) rotateZ(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotateZ(360deg);
    }
}

@keyframes rotateccw {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(-360deg);
    }
}

@keyframes spin {
    0%,
    100% {
        box-shadow: .2em 0px 0 0px currentcolor;
    }
    12% {
        box-shadow: .2em .2em 0 0 currentcolor;
    }
    25% {
        box-shadow: 0 .2em 0 0px currentcolor;
    }
    37% {
        box-shadow: -.2em .2em 0 0 currentcolor;
    }
    50% {
        box-shadow: -.2em 0 0 0 currentcolor;
    }
    62% {
        box-shadow: -.2em -.2em 0 0 currentcolor;
    }
    75% {
        box-shadow: 0px -.2em 0 0 currentcolor;
    }
    87% {
        box-shadow: .2em -.2em 0 0 currentcolor;
    }
}

/* Hide scrollbar */
::-webkit-scrollbar {
    display: none;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.team-member {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.team-member:nth-child(1) {
    animation-delay: 0.2s;
}
.team-member:nth-child(2) {
    animation-delay: 0.4s;
}
.team-member:nth-child(3) {
    animation-delay: 0.6s;
}
.team-member:nth-child(4) {
    animation-delay: 0.8s;
}

@keyframes flyInUp {
    0% {
        transform: translateY(100px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.animate-flyInUp {
    animation: flyInUp 0.5s ease-out forwards;
}