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

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

body {
    margin: 0;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

/* === 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);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    html {
        scroll-behavior: auto;
    }
}

/* === NAVBAR === */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(8, 14, 26, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

#navbar.scrolled #nav-brand {
    opacity: 1;
    transform: translateY(0);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: #d4a843;
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: #ffffff !important;
}

.nav-link:hover::after {
    width: 100%;
}

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

.mobile-link {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

#mobile-menu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
#mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.2s; }

/* === HERO IMAGE PARALLAX === */
#hero .relative > div:first-child > img {
    will-change: transform;
}

/* === PRODUCT CARDS === */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* === BUTTON HOVER EFFECTS === */
a[href="#products"],
a[href="#visit"],
button[type="submit"] {
    position: relative;
    overflow: hidden;
}

/* === FOCUS STYLES === */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #d4a843;
    outline-offset: 2px;
    border-radius: 4px;
}

/* === SELECTION === */
::selection {
    background: rgba(212, 168, 67, 0.3);
    color: #0d1526;
}

/* === MOBILE RESPONSIVE === */
@media (max-width: 767px) {
    .font-serif.text-5xl,
    .font-serif.text-6xl,
    .font-serif.text-7xl {
        font-size: 2.5rem;
        line-height: 1.1;
    }

    .font-serif.text-4xl {
        font-size: 2rem;
    }

    #hero {
        min-height: auto;
        padding-top: 6rem;
        padding-bottom: 4rem;
    }

    #hero .order-1 {
        order: 2 !important;
    }

    #hero .order-2 {
        order: 1 !important;
    }
}

/* === ANIMATIONS === */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.floating {
    animation: float 4s ease-in-out infinite;
}

/* === CUSTOM SCROLLBAR === */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: #14213d;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #d4a843;
}
