/* ===== Base & Reset ===== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

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

/* ===== Smooth Scroll Offset for Fixed Nav ===== */
section[id] {
    scroll-margin-top: 80px;
}

/* ===== Scroll 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[data-reveal-delay="1"] { transition-delay: 0.1s; }
.reveal[data-reveal-delay="2"] { transition-delay: 0.2s; }
.reveal[data-reveal-delay="3"] { transition-delay: 0.3s; }
.reveal[data-reveal-delay="4"] { transition-delay: 0.4s; }

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

/* ===== Navbar Styles ===== */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background: rgba(253, 248, 239, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(212, 85, 48, 0.08);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #D45530;
    border-radius: 1px;
    transition: width 0.3s ease;
}

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

/* ===== Mobile Menu ===== */
#mobile-menu {
    max-height: 0;
    transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    opacity: 0;
}

#mobile-menu.open {
    max-height: 500px;
    opacity: 1;
}

.mobile-link {
    position: relative;
    padding-left: 0;
}

.mobile-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: #D45530;
    border-radius: 1px;
    transition: width 0.3s ease;
}

.mobile-link:hover::before {
    width: 20px;
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #FDF8EF;
}

::-webkit-scrollbar-thumb {
    background: #E07050;
    border-radius: 5px;
}

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

/* ===== Selection Color ===== */
::selection {
    background: #F3C4B3;
    color: #6E271B;
}

/* ===== Image Hover Effects ===== */
img {
    max-width: 100%;
    height: auto;
}

/* ===== Button Focus States ===== */
a:focus-visible, button:focus-visible {
    outline: 3px solid #D45530;
    outline-offset: 2px;
    border-radius: 0.5rem;
}

/* ===== Floating Card Animation ===== */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* ===== Pulse Animation for Badge ===== */
@keyframes soft-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.animate-pulse {
    animation: soft-pulse 2s ease-in-out infinite;
}

/* ===== Hero Image Hover ===== */
.relative .rounded-3xl:hover img {
    transform: scale(1.03);
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===== Menu Card Hover ===== */
.hover\\:shadow-2xl {
    transition: box-shadow 0.5s ease;
}

/* ===== Touch Device Optimizations ===== */
@media (hover: none) {
    .hover\\:shadow-2xl:hover {
        box-shadow: none;
    }
    
    .hover\\:scale-105:hover {
        transform: none;
    }
}
