*, *::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;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

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

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(13, 21, 41, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0D1529;
}

::-webkit-scrollbar-thumb {
    background: #1B2A4A;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #253A60;
}

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

/* Image optimization */
img {
    max-width: 100%;
    height: auto;
}

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

/* Button hover effects */
a, button {
    -webkit-tap-highlight-color: transparent;
}

/* Prevent layout shift on images */
img {
    display: block;
}

/* Smooth transitions for all interactive elements */
button, a {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Mobile menu icon animation */
.menu-toggle-active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle-active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle-active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.5rem;
}

/* Parallax-like subtle effect on hero */
#hero {
    background-attachment: fixed;
}

@media (max-width: 768px) {
    #hero {
        background-attachment: scroll;
    }
}

/* Product card shimmer */
.group:hover img {
    transform: scale(1.1);
}

/* Gold accent line animation */
.border-l-2.border-gold-500 {
    transition: width 0.3s ease;
}
