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

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

body {
    overflow-x: hidden;
}

/* Floating Card Animations */
@keyframes float1 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(1deg); }
}

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

@keyframes float3 {
    0%, 100% { transform: translateY(0px) translateX(0px); }
    50% { transform: translateY(-10px) translateX(6px); }
}

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

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

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

/* Scroll Reveal Animations (below fold only, progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .shop-card {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.4s ease;
    }
    
    .shop-card.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .shop-card:nth-child(1) { transition-delay: 0.05s; }
    .shop-card:nth-child(2) { transition-delay: 0.1s; }
    .shop-card:nth-child(3) { transition-delay: 0.15s; }
    .shop-card:nth-child(4) { transition-delay: 0.2s; }
    .shop-card:nth-child(5) { transition-delay: 0.25s; }
    .shop-card:nth-child(6) { transition-delay: 0.3s; }
}

/* Mobile Menu Transitions */
.menu-line {
    transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
}

#menuBtn.active .menu-line:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
}

#menuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
}

#menuBtn.active .menu-line:nth-child(3) {
    transform: translateY(-4px) rotate(-45deg);
    width: 1.5rem;
}

/* Mobile link hover */
.mobile-link {
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.mobile-link:hover {
    color: #800020;
    padding-left: 8px;
}

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

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

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

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

/* Selection color */
::selection {
    background: #fce4eb;
    color: #800020;
}

/* Navbar scroll state */
.navbar-scrolled {
    box-shadow: 0 4px 20px rgba(128, 0, 32, 0.1) !important;
}

/* Smooth focus outlines for accessibility */
*:focus-visible {
    outline: 3px solid #d94060;
    outline-offset: 2px;
    border-radius: 4px;
}
