/* ===== Ruby Nails — Custom Styles ===== */

/* Base */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fffdfc;
}
::-webkit-scrollbar-thumb {
    background: #d44056;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #b82840;
}

/* ===== Floating animations for hero stat cards ===== */
@keyframes float-slow {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}
@keyframes float-medium {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}
@keyframes float-fast {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-16px) rotate(2deg); }
}

.animate-float-slow {
    animation: float-slow 4s ease-in-out infinite;
}
.animate-float-medium {
    animation: float-medium 3.5s ease-in-out infinite;
}
.animate-float-fast {
    animation: float-fast 3s ease-in-out infinite;
}

/* ===== Scroll-reveal (progressive enhancement) ===== */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced motion: skip animations */
@media (prefers-reduced-motion: reduce) {
    .animate-float-slow,
    .animate-float-medium,
    .animate-float-fast {
        animation: none;
    }
    html {
        scroll-behavior: auto;
    }
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ===== Navbar scroll state ===== */
.nav-scrolled {
    background: rgba(255, 253, 252, 0.95) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 12px rgba(127, 29, 49, 0.08);
}

/* ===== Selection color ===== */
::selection {
    background: #f9c3c9;
    color: #6b1d31;
}

/* ===== Focus styles ===== */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #d44056;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ===== Smooth image loading ===== */
img {
    background-color: #ffefea;
}

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