/* ==========================================================================
   WATA Website Stylesheet | Version 2.1.1
   ========================================================================== */

/* 1. Global & Body Setup */
body {
    font-family: 'Noto Serif', serif;
    background-color: #f8fafc;
    color: #0f172a;
    overflow-x: hidden;
}

.font-mono { font-family: 'JetBrains Mono', monospace; }

main { position: relative; z-index: 10; }

/* 2. Animated Background */
#canvas-network {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1; 
    opacity: 0.9;
}

/* 3. Navigation & Components */
.nav-link {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.625rem 1rem; border-radius: 0.5rem;
    font-weight: 500; color: #475569; border: 1px solid transparent;
    transition: all 0.2s ease-in-out;
}
.nav-link:hover { background-color: #f1f5f9; color: #3b82f6; }
.nav-link.active {
    background-color: #0f172a; color: #ffffff;
    border-color: rgba(59, 130, 246, 0.4);
}

/* 4. Grid Normalization */
.grid-box {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid #e2e8f0;
    border-radius: 1.5rem;
    padding: 2rem;
    min-height: 280px; 
    transition: all 0.3s ease;
}
.grid-box:hover {
    border-color: #3b82f6;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.1);
}

/* 5. Animated Scroll Down Button */
.scroll-indicator {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;
    cursor: pointer;
    transition: opacity 0.5s ease;
}

.animate-bounce {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-10px);}
    60% {transform: translateY(-5px);}
}

/* 6. Mobile Responsiveness (Fixed Drawer) */
@media (max-width: 1023px) {
    .mobile-menu {
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .mobile-menu.is-visible {
        transform: translateX(0);
        box-shadow: 10px 0 25px rgba(0,0,0,0.1);
    }
}

/* 7. Logo Transition State */
.logo-transitioning {
    position: fixed !important;
    top: 1.5rem !important;
    right: 2rem !important;
    left: auto !important; 
    width: 112px !important; 
    transform: none !important;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1) !important;
    z-index: 9999 !important;
}

#app-logo {
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, top, right, left, width;
}

/* ==========================================================================
   8. INDEX PAGE CENTERING (RESTORED)
   ========================================================================== */
.logo-centered {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
}

.center-fade-item {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
}