/* Custom styles for Mountain Man Salon */

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

/* Base font settings */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Scroll reveal animations - progressive enhancement */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Service card hover effects */
.service-card {
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                border-color 0.5s ease,
                background-color 0.5s ease;
}

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

/* Mobile menu animations */
.menu-line {
    transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
}

#menuBtn.active .menu-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

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

#menuBtn.active .menu-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
    width: 24px;
}

/* Mobile link hover */
.mobile-link {
    padding: 8px 0;
    border-bottom: 1px solid rgba(107, 123, 141, 0.1);
}

.mobile-link:last-child {
    border-bottom: none;
}

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

::-webkit-scrollbar-track {
    background: #0f1a24;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #3d4f5c;
}

/* Input focus styles */
input:focus,
textarea:focus {
    background-color: rgba(26, 42, 53, 0.8);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    html {
        scroll-behavior: auto;
    }

    .service-card:hover {
        transform: none;
    }

    .group:hover img {
        transform: none;
    }
}

/* Loading state for form */
button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Navbar scroll state */
.navbar-scrolled {
    background-color: rgba(15, 26, 36, 0.95) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Gallery image hover */
.group img {
    will-change: transform;
}

/* Button ripple effect */
button, a {
    position: relative;
    overflow: visible;
}
