/* ============================================
       GLOBAL STYLES
============================================ */

@import url('https://fonts.googleapis.com/css2?family=Onest:wght@100..900&display=swap');

:root {
    color-scheme: light dark;
}

html {
    scroll-behavior: smooth;
}

::-webkit-scrollbar {
    width: 0.6vh;
    background-color: transparent;
}

::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background-image: -webkit-gradient(
        linear,
        left bottom,
        left top,
        color-stop(0.72, rgb(68 90 255)),
        color-stop(0.86, rgb(0 0 0))
    );
}

::-webkit-scrollbar-track {
    box-shadow: inset 0 0 6px rgb(0 0 0 / 30%);
    -webkit-box-shadow: inset 0 0 6px rgb(0 0 0 / 30%);
    background-color: rgb(10 10 10 / 1);
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overscroll-behavior: none;
    font-family: 'Onest';
}

body:before {
    content: '';
    background-color: transparent;
    background-repeat: repeat;
    background-size: 182px;
    opacity: 0.1;
    top: 0;
    left: 0;
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: -1;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* ============================================
       HEADER ANIMATIONS
============================================ */
header {
    transition: opacity 0.35s ease;
}
header.header-hidden {
    opacity: 0;
    pointer-events: none;
}
.desktop-nav {
    animation: nav-slide-in 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transition:
        transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.35s ease;
}
header.header-hidden .desktop-nav {
    transform: translateY(-5rem);
    opacity: 0;
    pointer-events: none;
}
.mobile-nav {
    transition:
        bottom 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.35s ease;
}
.mobile-nav.mobile-nav-hidden {
    bottom: -5rem;
    opacity: 0;
    pointer-events: none;
}
.mobile-nav-item.active {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}
.dark .mobile-nav-item.active {
    background-color: rgba(255, 255, 255, 0.1);
}
.mobile-nav-item.active .nav-icon,
.mobile-nav-item.active .nav-text {
    color: rgb(37 99 235) !important;
}
.dark .mobile-nav-item.active .nav-icon,
.dark .mobile-nav-item.active .nav-text {
    color: rgb(59 130 246) !important;
}
.mobile-nav-item.active .nav-icon {
    transform: scale(1.1);
}

@keyframes nav-slide-in {
    from {
        transform: translateY(-3rem);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ============================================
       THEME TOGGLE ANIMATIONS
============================================ */
.themes-menu.open {
    display: inline;
    animation: scale-up-center 0.15s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

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

.about-right .img {
    /* Animations */
    animation:
        borderR 8s ease-in-out 0s infinite alternate,
        rbPulse 2s ease-in-out infinite alternate;
}

/* Fluid Blob Effect (border-radius morphing) */
@keyframes borderR {
    0% {
        border-radius: 100% 40% 30% 70% / 60% 30% 70% 40%;
    }
    25% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }
    50% {
        border-radius: 100% 60% 100% 60% / 30% 70% 30% 70%;
    }
    100% {
        border-radius: 100% 50% 50% 50% / 50% 50% 50% 70%;
    }
}

/* Pulse Effect */
@keyframes rbPulse {
    0% {
        box-shadow: 0 0 50px 0px rgba(29, 6, 233, 1);
        transform: translateY(0);
    }
    100% {
        box-shadow: 0 0 50px 0px rgb(207, 0, 0);
        transform: translateY(-12px);
    }
}

/* Visitors */
/* .visitor-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999999;
}

.visitor-box {
    background-color: #0b0c10;
    padding: 40px 30px;
    border-radius: 16px;
    border: 2px solid #ff0000;
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.25);
    text-align: center;
    max-width: 420px;
    width: 90%;
    animation: modalFadeIn 0.4s ease;
}

.visitor-box h2 {
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.visitor-box p {
    color: #cccccc;
    font-size: 0.95rem;
    margin-bottom: 25px;
}

#visitorForm {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

#visitorName {
    padding: 14px 16px;
    border-radius: 8px;
    border: 1px solid #333333;
    background-color: #111116;
    color: #ffffff;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s ease;
}

#visitorName:focus {
    border-color: #ff0000;
}

#visitorForm button {
    padding: 14px;
    border-radius: 8px;
    background-color: #ff0000; // Pure red button //
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        transform 0.1s ease;
}

#visitorForm button:hover {
    background-color: #cc0000;
}

#visitorForm button:active {
    transform: scale(0.98);
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
} */
