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

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

::selection {
    background: rgba(212, 160, 23, 0.3);
    color: #fff;
}

/* ============ SCROLLBAR ============ */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #071022;
}
::-webkit-scrollbar-thumb {
    background: #14366B;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #D4A017;
}

/* ============ SCROLL REVEAL ============ */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal[data-revealed="false"] {
    opacity: 0;
    transform: translateY(32px);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(32px);
    }
    .reveal[data-revealed="true"] {
        opacity: 1;
        transform: translateY(0);
    }
}

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

#mobile-menu.open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
#mobile-menu.open .menu-line:nth-child(2) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============ SMOOTH SCROLL OFFSET ============ */
section[id] {
    scroll-margin-top: 80px;
}

/* ============ IMAGE LAZY ============ */
img {
    max-width: 100%;
    height: auto;
}
