/* === Base & Utilities === */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    overflow-x: hidden;
}

/* === Custom Scrollbar === */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FFFDF8;
}
::-webkit-scrollbar-thumb {
    background: #E07A5F;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #D4684D;
}

/* === Navbar === */
.nav-scrolled {
    background: rgba(255, 253, 248, 0.92) !important;
    backdrop-filter: blur(20px) !important;
    box-shadow: 0 1px 20px rgba(26, 26, 36, 0.08) !important;
    border-bottom: 1px solid rgba(224, 122, 95, 0.1);
}

.nav-scrolled .font-display {
    color: #1A1A24 !important;
}

/* === Floating Cards === */
@keyframes float-slow {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

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

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

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

.floating-card-2 {
    animation: float-medium 5s ease-in-out infinite;
}

.floating-card-3 {
    animation: float-fast 3.5s ease-in-out infinite;
}

/* === Scroll Reveal === */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

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

    .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; }
    .reveal-delay-5 { transition-delay: 0.5s; }
}

/* === Menu Tabs === */
.menu-tab {
    color: #78788C;
    background: transparent;
    border: none;
    cursor: pointer;
}

.menu-tab.active {
    background: #E07A5F;
    color: #FFFFFF !important;
    box-shadow: 0 4px 14px rgba(224, 122, 95, 0.35);
}

.menu-tab:not(.active):hover {
    color: #E07A5F !important;
    background: #FFF4F0;
}

/* === Gallery Scroll === */
@keyframes scroll-gallery {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.animate-scroll {
    display: flex;
    gap: 1rem;
    animation: scroll-gallery 30s linear infinite;
    width: max-content;
}

.animate-scroll:hover {
    animation-play-state: paused;
}

/* === Mobile Menu === */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

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

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

/* === Selection === */
::selection {
    background: #E07A5F;
    color: white;
}

/* === Focus Styles === */
a:focus-visible, button:focus-visible {
    outline: 2px solid #E07A5F;
    outline-offset: 2px;
    border-radius: 4px;
}

/* === Responsive Tweaks === */
@media (max-width: 768px) {
    html {
        scroll-padding-top: 70px;
    }

    .floating-card-1,
    .floating-card-2,
    .floating-card-3 {
        display: none;
    }
}

/* === Print === */
@media print {
    nav, .animate-scroll, #mobile-toggle {
        display: none !important;
    }
    body {
        color: #1A1A24;
        background: white;
    }
}
