/*
 * nav.css
 * Side navigation dots — fixed position, scroll-spy driven.
 */

.nav-dots {
    position: fixed;
    left: 98%;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    animation: fadeInDots 1s ease-in-out 2.5s forwards;
}

@keyframes fadeInDots {
    0% {
        opacity: 0;
        visibility: hidden;
        scale: 5;
        gap: 200px;
    }

    100% {
        opacity: 1;
        visibility: visible;
    }
}

.dot {
    position: relative;
    width: 12px;
    height: 12px;
    background-color: #aaa;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot:hover {
    background-color: #000;
}

.dot.active {
    width: 16px;
    height: 16px;
    background-color: #dadada;
}

.dot-label {
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    color: #333;
    font-size: 1rem;
    white-space: nowrap;
    text-align: right;
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease;
    cursor: pointer;
}

.dot-label.visible {
    opacity: 1;
    visibility: visible;
    font-weight: bold;
    transform: translateY(-50%) translateX(-40px);
}

.dot-label.hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-50%) translateX(0);
}

.dot:hover .dot-label:not(.visible) {
    opacity: 1;
    visibility: visible;
    font-weight: bold;
    transform: translateY(-50%) translateX(-40px);
}

@media (max-width: 768px) {
    .nav-dots {
        left: 90%;
    }

    .dot-label {
        display: none !important;
    }

    .dot {
        width: 8px;
        height: 8px;
    }

    .dot.active {
        width: 12px;
        height: 12px;
    }

    .dot-label {
        font-size: 0.8rem;
    }
}