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

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

@keyframes float-3 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-25px) rotate(1deg); }
}

@keyframes float-4 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-18px) rotate(-1deg); }
}

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

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

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

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

/* Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* Stagger children animations */
.reveal.delay-100 {
    transition-delay: 100ms;
}

.reveal.delay-200 {
    transition-delay: 200ms;
}

.reveal.delay-300 {
    transition-delay: 300ms;
}

.reveal.delay-400 {
    transition-delay: 400ms;
}

.reveal.delay-500 {
    transition-delay: 500ms;
}

/* Navbar scroll effect */
.navbar-scrolled {
    background: rgba(10, 10, 10, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(200, 149, 108, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #C8956C, #B8860B);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #D4A84B, #C8956C);
}

/* Selection color */
::selection {
    background: rgba(200, 149, 108, 0.3);
    color: #FDF8F0;
}

/* Input autofill styling */
input:-webkit-autofill,
textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #1A1A1A inset !important;
    -webkit-text-fill-color: #FDF8F0 !important;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .floating-card-1 {
        animation: float-1 8s ease-in-out infinite;
    }
    
    .floating-card-2 {
        animation: float-2 9s ease-in-out infinite;
    }
    
    .floating-card-3 {
        animation: float-3 7s ease-in-out infinite;
    }
    
    .floating-card-4 {
        animation: float-4 10s ease-in-out infinite;
    }
}

/* Focus visible styles */
:focus-visible {
    outline: 2px solid #C8956C;
    outline-offset: 2px;
}

/* Button hover effects */
button:hover,
a:hover {
    transform: translateY(-1px);
}

button:active,
a:active {
    transform: translateY(0);
}
