/* Base & Utilities */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    overflow-x: hidden;
}

/* Scroll Reveal Animations */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    html {
        scroll-behavior: auto;
    }
    * {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

/* Hero floating cards animation */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(var(--rotate, 0deg)); }
    50% { transform: translateY(-12px) rotate(var(--rotate, 0deg)); }
}

.floating-card-1 { animation: float 6s ease-in-out infinite; --rotate: 2deg; }
.floating-card-2 { animation: float 7s ease-in-out infinite 0.5s; --rotate: -1deg; }
.floating-card-3 { animation: float 5.5s ease-in-out infinite 1s; --rotate: 1deg; }
.floating-card-4 { animation: float 6.5s ease-in-out infinite 0.3s; --rotate: -2deg; }

/* Navbar transition */
.nav-scrolled {
    background: rgba(11, 29, 58, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

/* Mobile menu animation */
#mobileMenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

#mobileMenu.open {
    max-height: 400px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #E8EDF5;
}
::-webkit-scrollbar-thumb {
    background: #C8956C;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #B87D4F;
}

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