/* Base & Reset */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { margin: 0; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select, button { font-family: inherit; }

/* Scroll Reveal */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Menu */
#mobileMenu.open {
    opacity: 1;
    pointer-events: auto;
}

/* Mobile Links */
.mobile-link {
    display: block;
    text-align: center;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}
#mobileMenu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}
#mobileMenu.open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
#mobileMenu.open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
#mobileMenu.open .mobile-link:nth-child(4) { transition-delay: 0.2s; }

/* Menu Lines Animation */
#mobileMenu.open .menu-line:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
}
#mobileMenu.open .menu-line:nth-child(2) {
    transform: translateY(-4px) rotate(-45deg);
}

/* Selection */
::selection { background: rgba(212, 175, 55, 0.2); color: #0a1628; }
::-moz-selection { background: rgba(212, 175, 55, 0.2); color: #0a1628; }

/* Smooth Focus */
:focus-visible {
    outline: 2px solid #d4af37;
    outline-offset: 2px;
}

/* Form Focus */
input:focus, textarea:focus {
    border-color: #d4af37 !important;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0a1628; }
::-webkit-scrollbar-thumb { background: #d4af37; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #e2c06a; }
