*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

/* Scroll reveal animations — progressive enhancement, content visible by default */
@media (prefers-reduced-motion: no-preference) {
    .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);
    }
    .reveal.animate-in {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile menu transitions */
#mobile-menu {
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0A1628;
}
::-webkit-scrollbar-thumb {
    background: #1A3A6B;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #1E4480;
}

/* Focus styles */
a:focus-visible, button:focus-visible {
    outline: 2px solid #68D391;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Navbar scroll state */
nav.scrolled {
    background: rgba(10, 22, 40, 0.97) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Hero parallax feel */
#hero img {
    will-change: transform;
}

/* Card hover effects */
.reveal:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}
