/* Custom styles for Crown and Glory Beauty Bar */

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

/* Prevent flash of unstyled content */
body {
    opacity: 1;
}

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

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

@keyframes float-3 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

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

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

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

/* Reveal animations (progressive enhancement - only active with JS) */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Service card hover effects */
.service-card {
    transform: translateY(0);
}

.service-card:hover {
    transform: translateY(-8px);
}

/* Gallery item hover */
.gallery-item {
    cursor: pointer;
}

/* Navbar scroll effect */
.nav-scrolled {
    background: rgba(255, 248, 240, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(85, 28, 28, 0.08);
}

.nav-scrolled .nav-link {
    color: #551c1c !important;
}

.nav-scrolled .font-display {
    color: #551c1c !important;
}

.nav-scrolled .text-burgundy-600 {
    color: #802828 !important;
}

/* Mobile menu animations */
.mobile-link {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .floating-card-1,
    .floating-card-2,
    .floating-card-3 {
        animation: none;
    }
    
    .service-card:hover {
        transform: none;
    }
    
    .service-card {
        transition: none;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .reveal {
        transition: none;
    }
}

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

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

::-webkit-scrollbar-thumb {
    background: #a03030;
    border-radius: 4px;
}

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

/* Selection color */
::selection {
    background: #ffbbbb;
    color: #551c1c;
}
