/* Reusable UI components */

/* Button components */
.hero-buttons {
    margin-bottom: 30px;
    position: relative;
    z-index: var(--z-buttons);
}

.hero-buttons .btn {
    margin: 0 var(--spacing-sm) var(--spacing-md) var(--spacing-sm);
    padding: 0.75rem var(--spacing-xl);
    font-weight: var(--font-weight-medium);
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-fast);
    position: relative;
    display: inline-block;
    z-index: var(--z-buttons);
    cursor: pointer !important;
}

.hero-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Card components */
.card {
    background-color: var(--shaded-white) !important;
}

.feature-card {
    height: 100%;
    transition: transform var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-lg);
    color: var(--primary-color);
}

/* Scroll indicator component */
.scroll-indicator-container {
    position: absolute;
    bottom: 2rem;
    left: 0;
    right: 0;
    text-align: center;
    z-index: var(--z-scroll-indicator);
    pointer-events: none;
}

.scroll-indicator-container a {
    pointer-events: auto;
}

.scroll-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    transition: all var(--transition-normal);
    animation: gentle-pulse 3s ease-in-out infinite;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.scroll-indicator:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    animation-play-state: paused;
}

.scroll-indicator i {
    font-size: 1.25rem;
    color: var(--primary-color);
    transition: transform var(--transition-fast);
}

.scroll-indicator:hover i {
    transform: translateY(1px);
}

/* Animation keyframes */
@keyframes gentle-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.9;
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
    }
}

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

@keyframes fade-bounce {
    0%, 20%, 50%, 80%, 100% {
        opacity: 0.8;
    }
    40% {
        opacity: 1;
    }
}

/* Accessibility improvements */
.scroll-indicator:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 3px;
    animation-play-state: paused;
}

.btn:focus-visible,
.btn:focus {
    outline: 3px solid rgba(255, 255, 255, 0.9);
    outline-offset: 2px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3); /* Dark shadow for light backgrounds */
}

.btn-primary:focus-visible,
.btn-primary:focus {
    outline: 3px solid #fff;
    outline-offset: 2px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3); /* Dark shadow for contrast */
}

.btn-outline-primary:focus-visible,
.btn-outline-primary:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.8); /* Light shadow for contrast */
}