/* Custom Animations and Overrides */

html {
    scroll-behavior: smooth;
}

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

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-200 {
    animation-delay: 200ms;
}

@keyframes spin-slow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.animate-spin-slow {
    animation: spin-slow 15s linear infinite;
}

@keyframes pulse-slow {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: .5;
        transform: scale(1.05);
    }
}

.animate-pulse-slow {
    animation: pulse-slow 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Mobile Menu Links Staggered Fade */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.mobile-menu-active .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu-active .mobile-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu-active .mobile-link:nth-child(2) { transition-delay: 0.2s; }
.mobile-menu-active .mobile-link:nth-child(3) { transition-delay: 0.3s; }
.mobile-menu-active .mobile-link:nth-child(4) { transition-delay: 0.4s; }
.mobile-menu-active .mobile-link:nth-child(5) { transition-delay: 0.5s; }
.mobile-menu-active .mobile-link:nth-child(6) { transition-delay: 0.6s; }

/* Navbar Scroll Style */
.navbar-scrolled {
    background-color: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

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

::-webkit-scrollbar-track {
    background: #0F0F0F;
}

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

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