/* Custom styles and animations */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out;
}

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

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

::-webkit-scrollbar-track {
    background: #0a1628;
}

::-webkit-scrollbar-thumb {
    background: #152d4d;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #10b981;
}

/* Selection color */
::selection {
    background: #10b981;
    color: #0a1628;
}

/* Mobile menu transitions */
#mobileMenu {
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
}

#mobileMenu.hidden {
    max-height: 0;
    opacity: 0;
}

#mobileMenu:not(.hidden) {
    max-height: 300px;
    opacity: 1;
}

/* Form focus styles */
input:focus,
textarea:focus,
select:focus {
    outline: none;
}

/* Hover effects for cards */
.group:hover .group-hover\:bg-mint-500\/20 {
    background-color: rgba(16, 185, 129, 0.2);
}

/* Subtle gradient overlay on images */
img {
    image-rendering: -webkit-optimize-contrast;
}

/* Navigation active state */
nav a:hover {
    color: #34d399;
}

/* Button hover glow effect */
button:hover,
a:hover {
    transition: all 0.3s ease;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .animate-fade-in {
        animation: none;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    * {
        transition: none !important;
    }
}

/* Print styles */
@media print {
    nav,
    .animate-bounce {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}
