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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

/* Hero gradient */
.hero-gradient {
    background: radial-gradient(ellipse at 30% 50%, rgba(255, 107, 74, 0.25) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 30%, rgba(212, 58, 24, 0.15) 0%, transparent 50%),
                radial-gradient(ellipse at 50% 80%, rgba(30, 33, 40, 0.8) 0%, transparent 60%),
                linear-gradient(180deg, rgba(17, 19, 24, 0.3) 0%, rgba(30, 33, 40, 0.6) 50%, rgba(17, 19, 24, 0.9) 100%);
}

.hero-overlay {
    background: linear-gradient(180deg, rgba(17, 19, 24, 0.4) 0%, rgba(17, 19, 24, 0.1) 40%, rgba(17, 19, 24, 0.5) 100%);
}

/* Hero animations */
.hero-headline {
    animation: heroReveal 1s ease-out 0.3s forwards;
    opacity: 0;
    transform: translateY(30px);
}

.hero-subtitle {
    animation: heroReveal 1s ease-out 0.1s forwards;
    opacity: 0;
    transform: translateY(20px);
}

.hero-body {
    animation: heroReveal 1s ease-out 0.5s forwards;
    opacity: 0;
    transform: translateY(20px);
}

.hero-cta {
    animation: heroReveal 1s ease-out 0.7s forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes heroReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll line animation */
@keyframes scrollLine {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

.animate-scroll-line {
    animation: scrollLine 2s ease-in-out infinite;
}

/* Reveal on scroll */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* Staggered reveal for grid items */
.reveal:nth-child(1) { transition-delay: 0.05s; }
.reveal:nth-child(2) { transition-delay: 0.15s; }
.reveal:nth-child(3) { transition-delay: 0.25s; }
.reveal:nth-child(4) { transition-delay: 0.35s; }
.reveal:nth-child(5) { transition-delay: 0.45s; }

/* Divider */
.divider-line {
    transition: opacity 0.5s ease;
}

/* Navbar */
#navbar {
    transition: background-color 0.4s ease, padding 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
    background-color: rgba(17, 19, 24, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

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

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

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

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #111318;
}
::-webkit-scrollbar-thumb {
    background: #3a3f47;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #5f656d;
}

/* Focus visible */
:focus-visible {
    outline: 1px solid rgba(255, 107, 74, 0.5);
    outline-offset: 2px;
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #1e2128 0%, #2c3038 100%);
}
