/* Custom styles for Santa Clarita Quinceañera Shop */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fff8e1;
}
::-webkit-scrollbar-thumb {
    background: #102a43;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #243b53;
}

/* Floating card animations */
@keyframes float1 {
    0%, 100% { transform: translateY(0px) rotate(2deg); }
    50% { transform: translateY(-12px) rotate(2deg); }
}
@keyframes float2 {
    0%, 100% { transform: translateY(0px) rotate(-1deg); }
    50% { transform: translateY(-8px) rotate(-1deg); }
}
@keyframes float3 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}
@keyframes floatAccent {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(8px, -8px) scale(1.05); }
}
@keyframes floatAccent2 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-6px, 6px); }
}

.float-card-1 { animation: float1 4s ease-in-out infinite; }
.float-card-2 { animation: float2 5s ease-in-out infinite; }
.float-card-3 { animation: float3 4.5s ease-in-out infinite; }
.float-accent { animation: floatAccent 6s ease-in-out infinite; }
.float-accent-2 { animation: floatAccent2 5s ease-in-out infinite; }

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

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .float-card-1,
    .float-card-2,
    .float-card-3,
    .float-accent,
    .float-accent-2 {
        animation: none;
    }
    html {
        scroll-behavior: auto;
    }
    .scroll-reveal {
        transition: none;
    }
}

/* Mobile menu transitions */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
#mobile-menu.open {
    max-height: 400px;
}

/* Navbar glass effect when scrolled */
nav.scrolled {
    background: rgba(255, 248, 225, 0.9) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(16, 42, 67, 0.08);
}

/* Form focus styles */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(238, 168, 74, 0.2);
}

/* Selection color */
::selection {
    background: #eea84a;
    color: #102a43;
}
