/* 
  navigation.css
  Styles for Skip Button, Side Navigation, and Top Navigation Menu 
*/

/* ========================================= */
/* Skip Animation Button                     */
/* ========================================= */
.skip-btn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    z-index: 40000;
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 1px;
    border-radius: 30px;
    cursor: pointer;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.skip-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: #fff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

/* ========================================= */
/* Side Navigation Styles                    */
/* ========================================= */
.side-nav {
    position: fixed;
    top: 50%;
    left: 2rem;
    transform: translateY(-50%);
    z-index: 40000;
    /* Stays above sections */
    pointer-events: none;
    /* Let clicks pass to background where there are no dots */
    opacity: 0;
    /* Hidden initially */
    transition: opacity 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.side-nav.visible {
    opacity: 1;
}

.side-nav.hidden-by-modal {
    opacity: 0 !important;
    pointer-events: none !important;
}

.side-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    pointer-events: auto;
    /* Clickable here */
}

.side-nav ul li a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.side-nav ul li a:hover,
.side-nav ul li.active a {
    opacity: 1;
}

.side-nav .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: transparent;
    border: 2px solid #fff;
    margin-right: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.side-nav ul li a:hover .dot,
.side-nav ul li.active .dot {
    transform: scale(1.5);
    background-color: #fff;
    box-shadow: 0 0 10px #fff;
}

.side-nav .label {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    transform: translateX(-15px);
    opacity: 0;
    transition: all 0.3s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    pointer-events: none;
}

.side-nav ul li a:hover .label,
.side-nav ul li.active .label {
    transform: translateX(0);
    opacity: 1;
}

/* ========================================= */
/* Navigation Menu Styles                    */
/* ========================================= */
.top-nav {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    padding: 2rem 0;
    z-index: 30000;
    /* Ensure it stays above the slam image and everything else */
    pointer-events: none;
    /* Let clicks pass through empty areas */
    opacity: 0;
    /* Hidden initially */
    transition: opacity 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.top-nav.visible {
    opacity: 1;
}

.top-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 3rem;
    pointer-events: auto;
    /* Allow clicks on the menu itself */
}

.top-nav ul li a {
    text-decoration: none;
    color: #000;
    /* Create a strong, consistent 2px white outline using text-shadow */
    text-shadow:
        -2px -2px 0 #fff,
        0 -2px 0 #fff,
        2px -2px 0 #fff,
        2px 0 0 #fff,
        2px 2px 0 #fff,
        0 2px 0 #fff,
        -2px 2px 0 #fff,
        -2px 0 0 #fff;
    font-size: 1.3rem;
    font-family: 'Outfit', sans-serif;
    /* Explicitly set to ensure it inherits correctly */
    font-weight: 900;
    /* Increase font weight so black fill and white stroke are readable */
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 5px;
}

.top-nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: #fff;
    transition: width 0.3s ease;
}

.top-nav ul li a:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.top-nav ul li a:hover::after {
    width: 100%;
}

/* ========================================= */
/* Mobile Navigation Styles                  */
/* ========================================= */
.mobile-nav {
    display: none;
}

/* ========================================= */
/* Mobile Responsive                         */
/* ========================================= */
@media (max-width: 768px) {
    .top-nav {
        display: none !important;
    }

    .side-nav {
        display: none !important;
    }

    .mobile-nav {
        display: none;
        /* Base is hidden before animation */
        flex-direction: column;
        align-items: center;
        position: fixed;
        top: 2.5rem;
        left: 50%;
        transform: translateX(-50%);
        z-index: 40000;
        pointer-events: none;
        /* Let clicks pass to background where there are no dots */
        opacity: 0;
        /* Hidden initially */
        transition: opacity 1s cubic-bezier(0.25, 1, 0.5, 1);
    }

    .mobile-nav.visible {
        display: flex;
        opacity: 1;
    }

    .mobile-nav.hidden-by-modal {
        opacity: 0 !important;
        pointer-events: none !important;
    }

    .mobile-nav-dots {
        list-style: none;
        display: flex;
        gap: 1.5rem;
        pointer-events: auto;
        /* Clickable here */
        margin-bottom: 0.8rem;
        padding: 0;
    }

    .mobile-nav-dots li a {
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        /* Increase hit area */
        padding: 5px;
    }

    .mobile-nav-dots .dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background-color: transparent;
        border: 2px solid #fff;
        transition: all 0.3s ease;
        box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    }

    .mobile-nav-dots li.active .dot {
        transform: scale(1.5);
        background-color: #fff;
        box-shadow: 0 0 10px #fff;
    }

    .mobile-nav-label {
        color: #fff;
        font-family: 'Outfit', sans-serif;
        font-size: 0.75rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 2px;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
        transition: all 0.3s ease;
    }

    .skip-btn {
        top: 5rem;
        /* Moved down slightly to avoid crossing with mobile nav */
        right: 1rem;
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
}