/* Custom styles for Dante Alighieri Society of Santa Cruz */

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

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

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

.animate-float {
    animation: float 4s ease-in-out infinite;
}

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

/* Scroll reveal animations - progressive enhancement */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(112, 59, 112, 0.08);
}

.navbar-scrolled .nav-link {
    color: #5A2D5A !important;
}

.navbar-scrolled .nav-link:hover {
    color: #703B70 !important;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #F9F5F9;
}

::-webkit-scrollbar-thumb {
    background: #D4B5D4;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #B88FB8;
}

/* Selection color */
::selection {
    background: #E8D6E8;
    color: #3D1E3D;
}

/* Focus styles */
:focus-visible {
    outline: 2px solid #703B70;
    outline-offset: 2px;
}

/* Button hover effects */
button, a {
    -webkit-tap-highlight-color: transparent;
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #F3EBF3 0%, #FDF0D0 100%);
}

/* Mobile menu transitions */
#mobile-menu {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form focus states */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(112, 59, 112, 0.1);
}

/* Print styles */
@media print {
    nav, #contact-form, .scroll-reveal {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
