/* ======================================
   FIXED SCROLL DIRECTION ARROW
====================================== */

#scroll-direction-arrow {
    position: fixed;
    top: 80%;
    right: 25px;
    transform: translateY(-50%);

    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;
    background: transparent;
    color: #172c3b;

    border: 1px solid currentColor;
    border-radius: 50%;

    cursor: pointer;
    z-index: 99999;

    transition:
        background 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease;
}

/* Hover effect */
#scroll-direction-arrow:hover {
    background: #172c3b;
    color: #ffffff;
    border-color: #172c3b;
}

/* Stroke-style arrow icon */
#scroll-direction-arrow svg {
    display: block;
    width: 22px;
    height: 22px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;

    overflow: visible;
    z-index: 99999;
}

/* Down arrow: moves top to bottom */
#scroll-direction-arrow.down svg {
    animation: scrollArrowDown 1.2s ease-in-out infinite;
}

/* Up arrow: moves bottom to top */
#scroll-direction-arrow.up svg {
    animation: scrollArrowUp 1.2s ease-in-out infinite;
}

@keyframes scrollArrowDown {
    0%, 100% {
        transform: translateY(-3px);
    }

    50% {
        transform: translateY(3px);
    }
}

@keyframes scrollArrowUp {
    0%, 100% {
        transform: translateY(3px);
    }

    50% {
        transform: translateY(-3px);
    }
}

/* Keyboard accessibility */
#scroll-direction-arrow:focus-visible {
    outline: 2px solid #172c3b;
    outline-offset: 4px;
}

/* Mobile responsive */
@media (max-width: 767px) {
    #scroll-direction-arrow {
        right: 12px;
        width: 42px;
        height: 42px;
    }

    #scroll-direction-arrow svg {
        width: 20px;
        height: 20px;
    }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
    #scroll-direction-arrow svg {
        animation: none !important;
    }

    #scroll-direction-arrow {
        transition: none;
    }
}
