/**
 * AP Scroll Indicator - Frontend Styles
 */

/* Position the parent element for scroll indicator */
.ap_hero_caret_down {
    position: relative !important;
}

/* Gradient overlay at the bottom of the hero section */
.ap_hero_caret_down::after {
    content: "";
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.2) 100%);
}

/* Scroll down link styling */
.scrolldown {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 600 !important;
    text-decoration: none !important;
    z-index: 10;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

/* Hover state for scroll down link */
.scrolldown:hover {
    opacity: 1;
    color: #ffffff !important;
}

/* Caret icon container */
.scrolldown .caret-icon {
    margin-top: 10px;
    width: 36px;
    height: 18px;
    position: relative;
}

/* Image within caret icon */
.scrolldown .caret-icon img {
    width: 100%;
    height: 100%;
    display: block;
}

/* Animation styles */
/* Bounce animation (up and down) */
.animation-bounce .caret-icon {
    animation: bounce 2s infinite;
}

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

/* Fade animation (pulse opacity) */
.animation-fade .caret-icon {
    animation: fade 2s infinite;
}

@keyframes fade {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

/* Slide animation (side to side) */
.animation-slide .caret-icon {
    animation: slide 2s infinite;
}

@keyframes slide {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(10px);
    }
}

/* Responsive styles for smaller screens */
@media (max-width: 768px) {
    .scrolldown {
        font-size: 12px;
        bottom: 40px;
    }
    
    .scrolldown .caret-icon {
        width: 30px;
        height: 15px;
    }
    
    /* Scale down animations for smaller screens */
    @keyframes bounce {
        0%, 20%, 50%, 80%, 100% {
            transform: translateY(0);
        }
        40% {
            transform: translateY(-8px);
        }
        60% {
            transform: translateY(-4px);
        }
    }
    
    @keyframes slide {
        0%, 100% {
            transform: translateX(0);
        }
        50% {
            transform: translateX(8px);
        }
    }
}

/* Responsive styles for very small screens */
@media (max-width: 480px) {
    .scrolldown {
        font-size: 11px;
        bottom: 30px;
    }
    
    .scrolldown .caret-icon {
        width: 24px;
        height: 12px;
    }
    
    /* Scale down animations further for very small screens */
    @keyframes bounce {
        0%, 20%, 50%, 80%, 100% {
            transform: translateY(0);
        }
        40% {
            transform: translateY(-6px);
        }
        60% {
            transform: translateY(-3px);
        }
    }
    
    @keyframes slide {
        0%, 100% {
            transform: translateX(0);
        }
        50% {
            transform: translateX(6px);
        }
    }
}