/* Custom styles for Neudie The Barber */

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

/* Custom selection color */
::selection {
    background-color: rgba(52, 211, 153, 0.3);
    color: #f0fdf4;
}

/* Service card hover effects */
.service-card {
    will-change: transform;
}

/* Mobile menu animations */
.mobile-link {
    display: block;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

/* Navbar scroll state */
nav.scrolled {
    background-color: rgba(7, 13, 26, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(52, 211, 153, 0.1);
}

/* Scroll reveal base - content is VISIBLE by default */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

/* Scroll reveal - JS adds this class for animation */
.reveal.animated {
    opacity: 0;
    transform: translateY(30px);
}

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

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
    }
    html {
        scroll-behavior: auto;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0f172a;
}
::-webkit-scrollbar-thumb {
    background: #2d3748;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #34d399;
}

/* Form styles */
input, textarea {
    background-color: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(52, 211, 153, 0.2);
    color: #f0fdf4;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
input:focus, textarea:focus {
    outline: none;
    border-color: #34d399;
    box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.1);
}
input::placeholder, textarea::placeholder {
    color: #6b7b8d;
}

/* Mobile menu button active state */
#menuBtn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
#menuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
}
#menuBtn.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.5rem;
}
