/* Custom Styles for Rootz tha barber */

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

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

::-webkit-scrollbar-track {
    background: #f5f3ef;
}

::-webkit-scrollbar-thumb {
    background: #98c49d;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6ba370;
}

/* Selection color */
::selection {
    background: #c5dfc9;
    color: #1c341f;
}

/* Hero animations - only for below fold content */
.hero-eyebrow {
    animation: fadeInUp 0.8s ease-out forwards;
}

.hero-headline {
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

.hero-subtext {
    animation: fadeInUp 0.8s ease-out 0.4s forwards;
    opacity: 0;
}

.hero-ctas {
    animation: fadeInUp 0.8s ease-out 0.6s forwards;
    opacity: 0;
}

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

/* Navigation transitions */
.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-link {
    position: relative;
}

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

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #98c49d, transparent);
    transform: scaleX(0);
    transition: transform 0.5s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

/* Form focus states */
input:focus,
textarea:focus {
    border-color: #4a814e !important;
    box-shadow: 0 0 0 1px #4a814e;
}

/* 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;
    }
    
    .hero-headline,
    .hero-subtext,
    .hero-ctas {
        opacity: 1;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .service-card {
        padding: 1.5rem !important;
    }
}
