/* Custom overrides and additions beyond Tailwind */

/* Smooth focus styles */
a:focus-visible, button:focus-visible {
    outline: 2px solid #5eead4;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Selection color */
::selection {
    background-color: #99f6e4;
    color: #042f2e;
}

/* Navbar scroll state */
nav.scrolled {
    background-color: rgba(13, 148, 136, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Prevent layout shift on images */
img {
    max-width: 100%;
    height: auto;
}

/* Ensure all text meets contrast requirements */
.text-slate-600 { color: #475569; }
.text-slate-500 { color: #64748b; }
.text-slate-700 { color: #334155; }
.text-slate-800 { color: #1e293b; }
.text-slate-900 { color: #0f172a; }

/* Subtle hover effects on cards */
.bg-white.rounded-3xl {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.bg-white.rounded-3xl:hover {
    transform: translateY(-4px);
}

/* Smooth transitions for all interactive elements */
button, a {
    transition: all 0.2s ease;
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
    .animate-bounce {
        animation: none;
    }
}

/* Tablet and up adjustments */
@media (min-width: 768px) {
    .hero-pattern {
        background-attachment: fixed;
    }
}

/* Ensure mobile menu links have proper spacing */
.mobile-link {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.mobile-link:last-child {
    border-bottom: none;
}
