/* Custom styles for Silva's Community Service Center */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1a002e;
}
::-webkit-scrollbar-thumb {
    background: #3b0764;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #5722e8;
}

/* Selection color */
::selection {
    background: rgba(245, 158, 11, 0.3);
    color: #f5f0ff;
}

/* Scroll reveal base - always visible by default */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Scroll reveal with JS enhancement (progressive) */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    /* Initial state only applied via JS for progressive enhancement */
}

/* Navbar glass effect when scrolled */
.navbar-scrolled {
    background: rgba(26, 0, 46, 0.9) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(59, 7, 100, 0.5);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Gold gradient text utility */
.text-gold-gradient {
    background: linear-gradient(135deg, #fcd34d, #f59e0b, #d97706);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Floating animation for hero cards */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes float-delayed {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.hero-float-1 {
    animation: float 6s ease-in-out infinite;
}

.hero-float-2 {
    animation: float-delayed 5s ease-in-out infinite;
    animation-delay: 1s;
}

.hero-float-3 {
    animation: float 7s ease-in-out infinite;
    animation-delay: 2s;
}

/* Pulse dot animation */
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}

/* Fade in for hero elements */
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-fade-in {
    animation: fade-in-up 0.8s ease forwards;
}

.hero-fade-in-delay-1 {
    animation: fade-in-up 0.8s ease forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

.hero-fade-in-delay-2 {
    animation: fade-in-up 0.8s ease forwards;
    animation-delay: 0.4s;
    opacity: 0;
}

/* Card hover glow effect */
.card-glow:hover {
    box-shadow: 0 0 40px rgba(245, 158, 11, 0.08);
}

/* Input autofill styling */
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #1a002e inset !important;
    -webkit-text-fill-color: #f5f0ff !important;
}
