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

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

body {
    font-family: 'Nunito', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== NAVBAR ===== */
.nav-link {
    position: relative;
}

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

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

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(127, 29, 91, 0.08);
}

.navbar-scrolled .nav-link {
    color: #500724 !important;
}

.navbar-scrolled .nav-link:hover {
    color: #be185d !important;
}

.navbar-transparent .logo-text {
    color: #fff !important;
}

/* ===== FLOATING CARDS ===== */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(1deg); }
}

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

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

.card-2 {
    animation: float-delayed 5s ease-in-out infinite;
    animation-delay: 1s;
}

.card-3 {
    animation: float 4.5s ease-in-out infinite;
    animation-delay: 0.5s;
}

/* ===== PRODUCT CARDS ===== */
.product-card {
    will-change: transform;
}

/* ===== TESTIMONIAL CARDS ===== */
.testimonial-card {
    will-change: transform;
}

/* ===== SCROLL REVEAL (below fold only) ===== */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .floating-card {
        animation: none;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .reveal {
        transition: none;
    }
}

/* ===== MOBILE MENU ===== */
.mobile-link {
    border-radius: 1rem;
    padding: 0.5rem 1rem;
    transition: background 0.2s ease;
}

.mobile-link:hover {
    background: #fce7f3;
    color: #be185d !important;
}

/* ===== MOBILE MENU ANIMATION ===== */
#mobile-menu {
    animation: slideDown 0.3s ease;
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .floating-card.card-1 {
        left: -4px;
        top: -4px;
    }
    
    .floating-card.card-2 {
        right: -4px;
        bottom: -2px;
    }
    
    .floating-card.card-3 {
        right: -4px;
    }
}
