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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    overflow-x: hidden;
}

::selection {
    background: rgba(232, 168, 32, 0.3);
    color: #f0f3f9;
}

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

#navbar.scrolled {
    background: rgba(12, 23, 48, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* ========== MOBILE MENU ========== */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s 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; }
#mobileMenu.open .mobile-link:nth-child(5) { transition-delay: 0.25s; }

/* Hamburger Animation */
#menuBtn.active #bar1 {
    transform: translateY(6px) rotate(45deg);
}
#menuBtn.active #bar2 {
    opacity: 0;
    transform: scaleX(0);
}
#menuBtn.active #bar3 {
    transform: translateY(-6px) rotate(-45deg);
}

/* ========== FLOATING CARDS ========== */
.floating-card {
    animation: float 6s ease-in-out infinite;
}

.card-coffee {
    animation-delay: 0s;
}

.card-wine {
    animation-delay: -2s;
}

.card-warmth {
    animation-delay: -4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-16px); }
}

/* ========== REVEAL ANIMATIONS ========== */
.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.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .floating-card {
        animation: none;
    }

    .reveal {
        transition: none;
        opacity: 1;
        transform: none;
    }

    html {
        scroll-behavior: auto;
    }

    img {
        transition: none;
    }
}

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

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

::-webkit-scrollbar-thumb {
    background: #2d4d96;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4164af;
}

/* ========== INPUT FOCUS ========== */
input:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(232, 168, 32, 0.1);
}

/* ========== BUTTON HOVER GLOW ========== */
button:hover, a:hover {
    transition: all 0.3s ease;
}

/* ========== IMAGE HOVER ========== */
.rounded-2xl.overflow-hidden img,
.rounded-3xl.overflow-hidden img {
    will-change: transform;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    #hero h1 {
        font-size: 2.75rem;
    }

    .floating-card {
        display: none;
    }
}
