/* Custom styles and animations */

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

/* Base animation states */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1;
    transform: none;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Animation keyframes - applied via JS for progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal-left {
        opacity: 0;
        transform: translateX(-30px);
    }
    
    .reveal-right {
        opacity: 0;
        transform: translateX(30px);
    }
    
    .reveal-up.revealed,
    .reveal-left.revealed,
    .reveal-right.revealed {
        opacity: 1;
        transform: none;
    }
}

/* Hero card animations - always visible */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

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

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

::-webkit-scrollbar-thumb {
    background: #1A3C34;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2C5F54;
}

/* Focus styles for accessibility */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #C5A065;
    outline-offset: 2px;
}

/* Form focus states */
input:focus,
textarea:focus,
select:focus {
    border-color: #1A3C34;
    box-shadow: 0 0 0 3px rgba(26, 60, 52, 0.1);
}

/* Mobile menu animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

#mobile-menu.open {
    max-height: 400px;
}

/* Hover effects for service cards */
.group:hover .group-hover\:bg-eon-green {
    background-color: #1A3C34;
}

.group:hover .group-hover\:text-white {
    color: #ffffff;
}

/* Button hover effects */
button:hover,
a:hover {
    cursor: pointer;
}

/* Image hover effects */
img {
    transition: transform 0.3s ease;
}

/* Print styles */
@media print {
    nav,
    #mobile-menu-btn,
    .animate-bounce {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .bg-eon-green {
        background: #1A3C34 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}
