/* Custom styles for M.M Beauty */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0A1628;
}
::-webkit-scrollbar-thumb {
    background: #A8E6CF;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #7DD4B8;
}

/* Selection color */
::selection {
    background: #A8E6CF;
    color: #0A1628;
}

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

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar glass effect */
.nav-scrolled {
    background: rgba(10, 22, 40, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(168, 230, 207, 0.1);
}

/* Mobile menu animation */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* Hero text shimmer effect */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* Floating animation for decorative elements */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Pulse animation for status dot */
@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Custom select styling */
select option {
    background: #0F1F36;
    color: white;
}

/* Image aspect ratio fallback */
.aspect-\[4\/5\] {
    aspect-ratio: 4/5;
}
.aspect-\[4\/5\] img {
    height: 100%;
}

/* Ensure all links have proper cursor */
a {
    cursor: pointer;
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid #A8E6CF;
    outline-offset: 2px;
}

/* Prevent layout shift on images */
img {
    content-visibility: auto;
}

/* Back to top button */
#backToTop.visible {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* Mobile menu button animation */
#menuBtn.active #menuIcon span:first-child {
    transform: rotate(45deg) translate(4px, 4px);
}
#menuBtn.active #menuIcon span:nth-child(2) {
    opacity: 0;
}
#menuBtn.active #menuIcon span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 1.5rem;
}
