/* Custom styles to complement Tailwind CSS */

:root {
    --color-teal-500: #14b8a6;
    --color-teal-600: #0d9488;
    --color-slate-900: #0f172a;
    --color-slate-800: #1e293b;
}

html {
    scroll-behavior: smooth;
}

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

/* Smooth scrolling for anchor links */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Scroll reveal animations */
.scroll-reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.navbar-scrolled .font-heading {
    color: #0f172a !important;
}

.navbar-scrolled a:not(.bg-teal-600):not(.bg-white\/10) {
    color: #475569 !important;
}

.navbar-scrolled a:not(.bg-teal-600):not(.bg-white\/10):hover {
    color: #0d9488 !important;
}

/* Mobile menu transitions */
#mobileMenu {
    animation: slideDown 0.25s ease;
}

#mobileMenu.hidden {
    animation: slideUp 0.2s ease;
}

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

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

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

/* 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;
}

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

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