/* Custom Styles for J_DaBarber */

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

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

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

::-webkit-scrollbar-thumb {
    background: #3d5f96;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #d49a2e;
}

/* Selection Color */
::selection {
    background: rgba(212, 154, 46, 0.3);
    color: #f8fafc;
}

/* Navbar Transition */
#navbar {
    transition: background-color 0.5s ease, backdrop-filter 0.5s ease;
}

#navbar.scrolled {
    background-color: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Mobile Menu */
#mobileMenu {
    pointer-events: all;
}

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

/* Reveal Animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Service Card Hover Effect */
.group:hover .group-hover\\:scale-110 {
    transform: scale(1.1);
}

/* Gold Gradient Text */
.text-gold-gradient {
    background: linear-gradient(135deg, #e5b340 0%, #d49a2e 50%, #b87a1e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Button Focus States */
button:focus-visible,
a:focus-visible {
    outline: 2px solid #e5b340;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Image Loading */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Card Glass Effect */
.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Subtle Glow Effects */
.glow-gold {
    box-shadow: 0 0 40px rgba(212, 154, 46, 0.15);
}

/* Navigation Active State */
nav a.active {
    color: #e5b340;
}
