/* Base & resets */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #fdf8f5; }
::-webkit-scrollbar-thumb { background: #b92d4a; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #952038; }

/* Navigation */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}
#navbar.scrolled {
    background: rgba(254, 252, 251, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(123, 45, 59, 0.08);
}

/* Floating shapes */
.floating-shape {
    animation: float 8s ease-in-out infinite;
}
.shape-1 { animation-delay: 0s; }
.shape-2 { animation-delay: -2s; }
.shape-3 { animation-delay: -4s; }
.shape-4 { animation-delay: -6s; }

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(15px, -20px) scale(1.02); }
    50% { transform: translate(-10px, -35px) scale(0.98); }
    75% { transform: translate(20px, -15px) scale(1.01); }
}

/* Scroll reveal animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Card styles */
.card {
    background: white;
    border-radius: 1.25rem;
    padding: 0;
    box-shadow: 0 1px 3px rgba(123, 45, 59, 0.04), 0 8px 32px rgba(123, 45, 59, 0.04);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    overflow: hidden;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 8px rgba(123, 45, 59, 0.06), 0 16px 48px rgba(123, 45, 59, 0.08);
}
.card-light {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 1.25rem;
    padding: 2rem 1.5rem;
    transition: background 0.3s ease, transform 0.3s ease;
}
.card-light:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* Mobile menu */
#mobileMenu {
    animation: slideDown 0.3s ease;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .floating-shape { animation: none; }
    html { scroll-behavior: auto; }
    .reveal { transition: none; }
    * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
