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

@keyframes float-delayed {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(-5deg); }
}

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

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

/* Scroll Reveal Animations */
.reveal-left,
.reveal-right,
.reveal-up {
    opacity: 1;
    transform: none;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal-left {
        opacity: 0;
        transform: translateX(-50px);
    }
    
    .reveal-right {
        opacity: 0;
        transform: translateX(50px);
    }
    
    .reveal-up {
        opacity: 0;
        transform: translateY(50px);
    }
    
    .reveal-left.visible,
    .reveal-right.visible,
    .reveal-up.visible {
        opacity: 1;
        transform: translateX(0) translateY(0);
    }
}

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

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

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

::-webkit-scrollbar-thumb {
    background: #d4a017;
    border-radius: 5px;
}

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

/* Mobile Menu Transitions */
#mobile-menu {
    transition: transform 0.3s ease-in-out;
}

#mobile-menu.open {
    transform: translateX(0);
}

/* Focus Styles for Accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #d4a017;
    outline-offset: 2px;
}

/* Image Optimization */
img {
    max-width: 100%;
    height: auto;
}

/* Selection Color */
::selection {
    background-color: #d4a017;
    color: #0f172a;
}
