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

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

body {
    overflow-x: hidden;
}

::selection {
    background-color: rgba(196, 112, 63, 0.3);
    color: #F5E6D3;
}

/* ===== NAVBAR ===== */
#navbar {
    background: transparent;
    transition: background-color 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
    background: rgba(13, 11, 10, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(138, 126, 114, 0.1);
}

/* ===== MOBILE MENU ===== */
#mobile-menu {
    animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

#mobile-menu a {
    display: block;
    padding: 0.5rem 0;
}

/* ===== FLOATING CARDS ===== */
.floating-card {
    will-change: transform;
}

.floating-card.card-1 {
    animation: float1 6s ease-in-out infinite;
}

.floating-card.card-2 {
    animation: float2 7s ease-in-out infinite;
}

.floating-card.card-3 {
    animation: float3 5.5s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(0.5deg); }
}

@keyframes float2 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-16px) rotate(-0.5deg); }
}

@keyframes float3 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(0.3deg); }
}

/* ===== MENU TABS ===== */
.menu-tab {
    color: #8A7E72;
    background: transparent;
    cursor: pointer;
    border: none;
    outline: none;
}

.menu-tab.active {
    color: #F5E6D3;
    background: #C4703F;
    box-shadow: 0 4px 15px rgba(196, 112, 63, 0.3);
}

.menu-tab:not(.active):hover {
    color: #F5E6D3;
    background: rgba(196, 112, 63, 0.15);
}

/* ===== SCROLL REVEAL ===== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

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

/* Stagger delays */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ===== BUTTONS ===== */
a, button {
    -webkit-tap-highlight-color: transparent;
}

/* ===== FORM ===== */
select option {
    background: #221E1B;
    color: #F5E6D3;
}

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

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

::-webkit-scrollbar-thumb {
    background: #221E1B;
    border-radius: 4px;
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .floating-card {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        width: 100% !important;
        animation: none !important;
        margin-bottom: 1rem;
    }
    
    .floating-card.card-1,
    .floating-card.card-2,
    .floating-card.card-3 {
        margin-bottom: 1rem;
    }
    
    #hero {
        padding-top: 6rem;
    }
    
    .grid lg\:grid-cols-2 {
        grid-template-columns: 1fr;
    }
}
