/* Custom Animations and Utilities */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes scrollDown {
    0% {
        top: 0;
        opacity: 1;
    }
    100% {
        top: 100%;
        opacity: 0;
    }
}

.animate-fade-in-up {
    animation-name: fadeInUp;
    animation-duration: 1s;
    animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
}

.animate-scroll-down {
    animation: scrollDown 1.5s infinite;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #64FFDA;
}

/* Form Focus States */
input:focus, textarea:focus {
    outline: none;
}

/* Mobile Menu Transitions */
#mobile-menu.active {
    opacity: 1;
    pointer-events: auto;
}

#menu-overlay.active {
    opacity: 1;
}

/* Intersection Observer Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Utility for sticky header background */
.scrolled #header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding-top: 1rem;
    padding-bottom: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.scrolled #header a span {
    color: #0A192F;
}

/* Image object-fit fallback */
img {
    vertical-align: middle;
}
