/* Custom styles and overrides */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Mobile menu styles */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
}

.mobile-menu.active {
    transform: translateX(0);
}

/* Subtle hover effects */
.group:hover .group-hover\\:scale-105 {
    transform: scale(1.05);
}

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

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

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

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

/* Focus styles for accessibility */
*:focus-visible {
    outline: 2px solid #FF6B6B;
    outline-offset: 2px;
}

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

/* Apply float animation to stat cards with staggered delays */
.grid-cols-2 > div:nth-child(1) {
    animation: float 3s ease-in-out infinite;
}

.grid-cols-2 > div:nth-child(2) {
    animation: float 3s ease-in-out infinite 0.5s;
}

.grid-cols-2 > div:nth-child(3) {
    animation: float 3s ease-in-out infinite 1s;
}

.grid-cols-2 > div:nth-child(4) {
    animation: float 3s ease-in-out infinite 1.5s;
}

@media (prefers-reduced-motion: no-preference) {
    .grid-cols-2 > div {
        animation: float 3s ease-in-out infinite;
    }
    
    .grid-cols-2 > div:nth-child(2) {
        animation-delay: 0.5s;
    }
    
    .grid-cols-2 > div:nth-child(3) {
        animation-delay: 1s;
    }
    
    .grid-cols-2 > div:nth-child(4) {
        animation-delay: 1.5s;
    }
}

/* Ensure text readability on all backgrounds */
.text-white {
    color: #ffffff;
}

.text-charcoal-900 {
    color: #1a1a1a;
}

.text-charcoal-800 {
    color: #2d2d2d;
}

.text-gray-400 {
    color: #9ca3af;
}

.text-gray-600 {
    color: #4b5563;
}

/* Ensure proper contrast for links */
a:hover {
    text-decoration: none;
}

/* Card hover states */
.group:hover {
    transform: translateY(-4px);
}

.group {
    transition: transform 0.3s ease;
}
