/* Custom Animations and Styling */

/* Hero Pattern */
.hero-pattern {
    background-image: radial-gradient(rgba(28, 34, 96, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Custom Keyframes */
@keyframes float {
    0% { transform: translateY(0px) rotate(12deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
    100% { transform: translateY(0px) rotate(12deg); }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

@keyframes floatSlow {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-40px); }
    100% { transform: translateY(0px); }
}

@keyframes floatSlower {
    0% { transform: translateX(0px); }
    50% { transform: translateX(30px); }
    100% { transform: translateX(0px); }
}

@keyframes bounceSlow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.animate-bounce-slow {
    animation: bounceSlow 3s ease-in-out infinite;
}

@keyframes chartGrow {
    0% { height: 0; opacity: 0; }
    100% { opacity: 1; }
}

.animate-chart {
    animation: chartGrow 1.5s ease-out forwards;
    transform-origin: bottom;
}

@keyframes slideIn {
    0% {
        opacity: 0;
        transform: translateX(-10px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-slide-in {
    animation: slideIn 0.6s ease-out forwards;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.animate-gradient-shift {
    background-size: 200% 200%;
    animation: gradientShift 4s ease infinite;
}

/* Navbar blur effect */
.nav-scrolled {
    background-color: rgba(28, 34, 96, 0.95);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -1px rgba(0, 0, 0, 0.1);
}

html {
    scroll-behavior: smooth;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
    outline: 2px solid #1c2260;
    outline-offset: 2px;
}

/* Hide scrollbar for cleaner look */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #1c2260;
}