/* Custom styles for On Point Beauty Bar */

/* Scroll reveal base — progressive enhancement via prefers-reduced-motion */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar transition */
#navbar.scrolled {
    background: rgba(15, 15, 26, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

#navbar.scrolled .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
}

#navbar.scrolled #nav-logo {
    color: white !important;
}

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

#mobile-menu:not(.open) {
    opacity: 0;
    pointer-events: none;
}

.mobile-link {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

#mobile-menu:not(.open) .mobile-link {
    opacity: 0;
    transform: translateY(16px);
}

#mobile-menu:not(.open) .mobile-link:nth-child(1) { transition-delay: 0.05s; }
#mobile-menu:not(.open) .mobile-link:nth-child(2) { transition-delay: 0.1s; }
#mobile-menu:not(.open) .mobile-link:nth-child(3) { transition-delay: 0.15s; }
#mobile-menu:not(.open) .mobile-link:nth-child(4) { transition-delay: 0.2s; }
#mobile-menu:not(.open) .mobile-link:nth-child(5) { transition-delay: 0.25s; }

/* Hamburger menu */
.menu-line {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 22px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

#menu-btn.active .menu-line:nth-child(1) {
    transform: translateX(-50%) rotate(45deg);
    top: 5px;
}

#menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}

#menu-btn.active .menu-line:nth-child(3) {
    transform: translateX(-50%) rotate(-45deg);
    top: 5px;
}

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

/* Selection color */
::selection {
    background: rgba(139, 26, 77, 0.2);
    color: #8B1A4D;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1a1a2e;
}
::-webkit-scrollbar-thumb {
    background: #8B1A4D;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #c42044;
}

/* Service card hover image effect */
.service-card {
    position: relative;
    overflow: hidden;
}

/* Subtle gradient border on focus */
input:focus, select:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(139, 26, 77, 0.1);
}

/* Counter animation */
@keyframes countUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.font-display {
    text-rendering: optimizeLegibility;
}
