/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    overflow-x: hidden;
}

/* Selection */
::selection {
    background-color: #f8c4b0;
    color: #6a2816;
}

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

#navbar.scrolled {
    background: rgba(254, 253, 251, 0.92);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(61, 43, 31, 0.06);
}

/* 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-state="hidden"] {
    opacity: 0;
    transform: translateY(30px);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal[data-state="hidden"] {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Menu */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.close {
    opacity: 0;
    pointer-events: none;
}

/* Smooth image loading */
img {
    loading: lazy;
}

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

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

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

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

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

/* Menu item hover line animation */
.group:hover .font-medium::after {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, #e65c2e, transparent);
    margin-top: 2px;
}

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

/* Decorative dot animation */
@keyframes drift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(8px, -8px) scale(1.05); }
    66% { transform: translate(-4px, 4px) scale(0.95); }
}

/* Pulse ring for hero badge */
@keyframes pulse-ring {
    0% { transform: scale(0.95); opacity: 0.7; }
    50% { transform: scale(1); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.7; }
}

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

/* Hero decorative dots */
.absolute.top-1\/3.left-1\/4,
.absolute.bottom-20.left-10,
.absolute.top-2\/3.right-1\/4,
.absolute.top-1\/2.left-1\/2 {
    animation: drift 6s ease-in-out infinite;
}

.absolute.bottom-20.left-10 {
    animation-delay: -2s;
}

.absolute.top-2\/3.right-1\/4 {
    animation-delay: -4s;
}
