/* Base styles and custom animations */
html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Floating animations for hero stat cards */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

@keyframes float-delayed {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.floating-card-1 {
    animation: float 3.5s ease-in-out infinite;
}

.floating-card-2 {
    animation: float-delayed 4s ease-in-out infinite;
}

.floating-card-3 {
    animation: float 4.5s ease-in-out infinite;
}

/* Scroll reveal animations — progressive enhancement */
.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);
    }

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

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(16, 42, 67, 0.08);
}

.nav-scrolled .nav-text {
    color: #102a43 !important;
}

.nav-scrolled .nav-link {
    color: #334e68 !important;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #52c48e;
}

/* Selection color */
::selection {
    background: #c5ede0;
    color: #102a43;
}

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

/* Mobile menu transition */
#mobileMenu {
    animation: slideDown 0.3s ease;
}

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