/* ===== Base & Utilities ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { overflow-x: hidden; }

/* ===== Hero Gradient ===== */
.hero-gradient {
    background: linear-gradient(135deg, #4a1f4a 0%, #723072 25%, #a855a8 50%, #d48800 75%, #f0a500 100%);
}

/* ===== Floating Decorations ===== */
.hero-float-1 { animation: floatSlow 8s ease-in-out infinite; }
.hero-float-2 { animation: floatSlow 10s ease-in-out infinite reverse; }
.hero-float-3 { animation: floatSlow 7s ease-in-out infinite; }
.hero-float-4 { animation: floatSlow 9s ease-in-out infinite reverse; }

@keyframes floatSlow {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-30px) scale(1.05); }
}

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

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

/* Reduced motion: skip animations */
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .hero-float-1, .hero-float-2, .hero-float-3, .hero-float-4 { animation: none; }
    html { scroll-behavior: auto; }
    .gallery-item img { transition: none; }
    .service-card { transition: none; }
}

/* Staggered delays for grid items */
.service-card:nth-child(1) { transition-delay: 0ms; }
.service-card:nth-child(2) { transition-delay: 80ms; }
.service-card:nth-child(3) { transition-delay: 160ms; }
.service-card:nth-child(4) { transition-delay: 240ms; }
.service-card:nth-child(5) { transition-delay: 320ms; }
.service-card:nth-child(6) { transition-delay: 400ms; }

.gallery-item:nth-child(1) { transition-delay: 0ms; }
.gallery-item:nth-child(2) { transition-delay: 80ms; }
.gallery-item:nth-child(3) { transition-delay: 160ms; }
.gallery-item:nth-child(4) { transition-delay: 240ms; }
.gallery-item:nth-child(5) { transition-delay: 320ms; }
.gallery-item:nth-child(6) { transition-delay: 400ms; }

/* ===== Navbar Scrolled State ===== */
#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-blur-md;
    box-shadow: 0 1px 20px rgba(74, 31, 74, 0.08);
}

#navbar.scrolled .font-serif { color: #4a1f4a !important; }
#navbar.scrolled a:not(.bg-plum-600):not(.text-plum-600) { color: #723072 !important; }

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

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

.menu-line {
    transform-origin: center;
}

#menuToggle[aria-expanded="true"] .menu-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
#menuToggle[aria-expanded="true"] .menu-line:nth-child(2) {
    opacity: 0;
}
#menuToggle[aria-expanded="true"] .menu-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* ===== Service Card Hover ===== */
.service-card {
    transform: translateY(20px);
    opacity: 0;
}

.service-card.revealed {
    transform: translateY(0);
    opacity: 1;
}

/* ===== Gallery Items ===== */
.gallery-item {
    transform: translateY(20px);
    opacity: 0;
}

.gallery-item.revealed {
    transform: translateY(0);
    opacity: 1;
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #faf0fb; }
::-webkit-scrollbar-thumb { background: #d699dd; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #a855a8; }

/* ===== Selection ===== */
::selection { background: #e8c2eb; color: #4a1f4a; }
