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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    overflow-x: hidden;
}

/* Fade-up animation for hero */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up {
    animation: fadeUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

/* Scroll reveal base — content is VISIBLE by default (no JS required) */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Only apply hidden state when JS adds the class (progressive enhancement) */
.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced motion — disable animations entirely */
@media (prefers-reduced-motion: reduce) {
    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .animate-fade-up {
        animation: none;
        opacity: 1;
        transform: none;
    }
    img {
        transition: none;
    }
}

/* Navbar transition */
.nav-scrolled {
    background: rgba(10, 10, 10, 0.95) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 90, 39, 0.1);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #0a0a0a;
}
::-webkit-scrollbar-thumb {
    background: #262626;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #ff5a27;
}

/* Selection color */
::selection {
    background: rgba(255, 90, 39, 0.3);
    color: #fff;
}

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

/* Mobile menu transitions */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

/* Image hover smoothness */
img {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}
