/* ==========================================================================
   SCROLL INDICATOR
   Minimal ASCII-inspired design
   ========================================================================== */

.scroll-indicator {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
    z-index: 10;
    pointer-events: none;
    font-family: "Courier New", monospace;
}

.scroll-indicator.is-visible {
    opacity: 1;
}

.scroll-indicator.is-hidden {
    opacity: 0;
    transform: translateY(-10px);
}

/* Text label */
.scroll-indicator__prompt {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
}

.scroll-indicator__bracket {
    color: rgba(255, 255, 255, 0.25);
}

/* ASCII art arrow */
.scroll-indicator__ascii-art {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.1;
    color: rgba(255, 255, 255, 0.35);
    font-size: 11px;
}

/* Each line of the ASCII art */
.scroll-indicator__line {
    opacity: 0;
    animation: lineReveal 2s ease-in-out infinite;
}

.scroll-indicator__line:nth-child(1) { animation-delay: 0s; }
.scroll-indicator__line:nth-child(2) { animation-delay: 0.12s; }
.scroll-indicator__line:nth-child(3) { animation-delay: 0.24s; }
.scroll-indicator__line:nth-child(4) { animation-delay: 0.36s; }

@keyframes lineReveal {
    0%, 100% {
        opacity: 0.2;
    }
    40%, 60% {
        opacity: 0.8;
    }
}

/* ==========================================================================
   Homepage - Wrapper and positioning
   ========================================================================== */

.homepage .scroll-indicator-wrapper {
    position: relative;
    height: 0;
    z-index: 10;
}

.homepage .scroll-indicator-wrapper .scroll-indicator {
    position: absolute;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
}

.homepage .scroll-indicator-wrapper .scroll-indicator.is-hidden {
    transform: translateX(-50%) translateY(-10px);
}

/* ==========================================================================
   Project Hero - Position above the media section
   ========================================================================== */

.project-hero .scroll-indicator {
    bottom: 140px;
    left: 50%;
    transform: translateX(-50%);
}

.project-hero .scroll-indicator.is-hidden {
    transform: translateX(-50%) translateY(-10px);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
    .scroll-indicator__prompt {
        font-size: 9px;
    }

    .scroll-indicator__ascii-art {
        font-size: 10px;
    }

    .homepage .scroll-indicator-wrapper .scroll-indicator {
        top: -60px;
    }

    .project-hero .scroll-indicator {
        bottom: 120px;
    }
}

@media (max-width: 506px) {
    .scroll-indicator__prompt {
        font-size: 8px;
        letter-spacing: 1.5px;
    }

    .homepage .scroll-indicator-wrapper .scroll-indicator {
        top: -50px;
    }

    .project-hero .scroll-indicator {
        bottom: 100px;
    }
}

/* ==========================================================================
   Reduced Motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    .scroll-indicator__line {
        animation: none;
        opacity: 0.5;
    }

    .scroll-indicator {
        transition: opacity 0.3s ease;
    }
}
