/* Custom styles for Nicks Hairsalon */

/* Smooth scroll offset for fixed nav */
section[id] {
    scroll-margin-top: 80px;
}

/* Selection color */
::selection {
    background: #FF6B4A;
    color: #0D1117;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0D1117;
}
::-webkit-scrollbar-thumb {
    background: #2D333B;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #FF6B4A;
}

/* Service card gradient border effect */
.service-card {
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #FF6B4A, #FF8566);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}
.service-card:hover::before {
    transform: scaleX(1);
}

/* Image gallery hover overlay */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}
.gallery-item img {
    transition: transform 0.5s ease;
}
.gallery-item:hover img {
    transform: scale(1.05);
}
.gallery-item .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(13,17,23,0.8) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    border-radius: 12px;
}
.gallery-item:hover .overlay {
    opacity: 1;
}

/* Counter animation */
.counter {
    display: inline-block;
}

/* Mobile menu animations */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-menu.open {
    transform: translateX(0);
}

/* Hamburger animation */
.menu-toggle.active .line-top {
    transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.active .line-middle {
    opacity: 0;
}
.menu-toggle.active .line-bottom {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Button ripple effect */
.btn-primary {
    position: relative;
    overflow: hidden;
}
.btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}
.btn-primary:active::after {
    width: 300px;
    height: 300px;
}

/* Form input focus animations */
input:focus, textarea:focus, select:focus {
    border-color: #FF6B4A !important;
    box-shadow: 0 0 0 3px rgba(255,107,74,0.1);
}

/* Navbar scroll effect */
.nav-scrolled {
    background: rgba(13,17,23,0.98) !important;
    box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

/* Testimonial card hover */
.testimonial-card {
    transition: all 0.3s ease;
}
.testimonial-card:hover {
    border-color: rgba(255,107,74,0.3);
    box-shadow: 0 20px 50px rgba(255,107,74,0.1);
}

/* Decorative elements */
.corner-accent {
    position: relative;
}
.corner-accent::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #FF6B4A, transparent);
}

/* Parallax-like subtle movement for hero */
.hero-bg {
    will-change: transform;
}

/* 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 !important;
        transform: none !important;
    }
}
