/* ============================================
   Luv's 2 Fade Barbershop — Custom Styles
   ============================================ */

/* Base */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #faf8f5;
}
::-webkit-scrollbar-thumb {
    background: #C65D3E;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a84d33;
}

/* Selection */
::selection {
    background: #C65D3E;
    color: #ffffff;
}

/* Navbar */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

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

#mobile-menu.active .mobile-link {
    animation: fadeUp 0.4s ease forwards;
    opacity: 0;
}

#mobile-menu.active .mobile-link:nth-child(1) { animation-delay: 0.1s; }
#mobile-menu.active .mobile-link:nth-child(2) { animation-delay: 0.15s; }
#mobile-menu.active .mobile-link:nth-child(3) { animation-delay: 0.2s; }
#mobile-menu.active .mobile-link:nth-child(4) { animation-delay: 0.25s; }
#mobile-menu.active .mobile-link:nth-child(5) { animation-delay: 0.3s; }

/* Menu Toggle */
#menu-toggle.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(3px, 3px);
}
#menu-toggle.active .menu-line:nth-child(2) {
    opacity: 0;
}
#menu-toggle.active .menu-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(3px, -3px);
}

/* Hero Animations */
.hero-subtitle {
    animation: fadeUp 0.8s ease 0.3s forwards;
    opacity: 0;
}

.hero-title {
    animation: fadeUp 0.8s ease 0.5s forwards;
    opacity: 0;
}

.hero-divider {
    animation: growDown 0.6s ease 0.8s forwards;
    opacity: 0;
    height: 0;
}

.hero-desc {
    animation: fadeUp 0.8s ease 0.9s forwards;
    opacity: 0;
}

.hero-buttons {
    animation: fadeUp 0.8s ease 1.1s forwards;
    opacity: 0;
}

.hero-scroll {
    animation: fadeUp 0.8s ease 1.4s forwards;
    opacity: 0;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes growDown {
    from {
        opacity: 0;
        height: 0;
    }
    to {
        opacity: 1;
        height: 64px;
    }
}

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

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

/* Service Cards */
.service-card {
    transition: background-color 0.5s ease;
}

.service-card:hover h3 {
    color: #C65D3E;
    transition: color 0.3s ease;
}

/* Image hover effect */
.group img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Divider line animation */
.w-px.h-12 {
    transition: height 0.6s ease;
}

/* 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;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
    
    .group img {
        transition: none;
    }
    
    .group:hover img {
        transform: none;
    }
}

/* Print */
@media print {
    nav, #menu-toggle, .hero-scroll {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
