/* Custom styles for Hair by Davina & Company */

/* Gold button */
.gold-btn {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #d4a853 0%, #c49a3e 50%, #a67c2e 100%);
    color: #0b1120;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 0.875rem 2rem;
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.gold-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e8d5a3 0%, #d4a853 50%, #c49a3e 100%);
    transition: left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 0;
}

.gold-btn:hover::before {
    left: 0;
}

.gold-btn span,
.gold-btn svg,
.gold-btn > * {
    position: relative;
    z-index: 1;
}

.gold-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(212, 168, 83, 0.3);
}

/* Navbar */
#navbar {
    backdrop-filter: blur(0px);
    background: transparent;
}

#navbar.scrolled {
    background: rgba(11, 17, 32, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 168, 83, 0.1);
}

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

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

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

/* Mobile links */
.mobile-link {
    position: relative;
}

/* Scroll reveal */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Scroll line animation */
.scroll-line {
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.5); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); }
}

/* Service cards */
.service-card {
    background: rgba(26, 35, 50, 0.5);
    border: 1px solid rgba(212, 168, 83, 0.08);
    padding: 0;
    transition: all 0.4s ease;
}

.service-card:hover {
    border-color: rgba(212, 168, 83, 0.25);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Gallery items */
.gallery-item {
    cursor: pointer;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Smooth scrolling for Safari */
html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Selection color */
::selection {
    background: rgba(212, 168, 83, 0.3);
    color: #fff;
}

/* Focus visible */
*:focus-visible {
    outline: 2px solid #d4a853;
    outline-offset: 2px;
}

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

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

::-webkit-scrollbar-thumb {
    background: #1a2332;
    border: 1px solid rgba(212, 168, 83, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 168, 83, 0.3);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .scroll-line {
        animation: none;
        opacity: 0.5;
    }
    .service-card:hover {
        transform: none;
    }
    .gallery-item:hover img {
        transform: none;
    }
    * {
        transition-duration: 0.01ms !important;
    }
}
