/* Custom styles for Shear Magic Salon */

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

/* Navbar transition states */
.navbar-scrolled {
    background: rgba(250, 249, 246, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(31, 64, 31, 0.08);
}

.navbar-scrolled .nav-logo-text {
    color: #1e331e !important;
}

.navbar-scrolled .nav-subtext {
    color: #2f502f !important;
}

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

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

::-webkit-scrollbar-thumb {
    background: #98be98;
    border-radius: 4px;
}

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

/* Service card hover glow */
.service-card:hover::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(47, 80, 47, 0.03), rgba(201, 168, 76, 0.05));
    pointer-events: none;
}

.service-card {
    position: relative;
    overflow: hidden;
}

/* Gallery hover overlay */
.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 26, 15, 0.4), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
    border-radius: inherit;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* Testimonial card hover */
.testimonial-card:hover {
    border-color: #c9a84c !important;
}

/* Gold accent line animation */
.gold-line {
    position: relative;
}

.gold-line::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #c9a84c, transparent);
    border-radius: 2px;
}

/* Floating animation for hero cards */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(var(--rotate, 0deg)); }
    50% { transform: translateY(-10px) rotate(var(--rotate, 0deg)); }
}

/* Parallax-like subtle movement */
@keyframes subtle-float-1 {
    0%, 100% { transform: translateY(0px) rotate(2deg); }
    50% { transform: translateY(-8px) rotate(2deg); }
}

@keyframes subtle-float-2 {
    0%, 100% { transform: translateY(0px) rotate(-1deg); }
    50% { transform: translateY(-12px) rotate(-1deg); }
}

@keyframes subtle-float-3 {
    0%, 100% { transform: translateY(0px) rotate(1deg); }
    50% { transform: translateY(-6px) rotate(1deg); }
}

.floating-card-1 { animation: subtle-float-1 6s ease-in-out infinite; }
.floating-card-2 { animation: subtle-float-2 7s ease-in-out infinite; }
.floating-card-3 { animation: subtle-float-3 5s ease-in-out infinite; }

/* Reduced motion preference */
@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;
    }
}

/* Print styles */
@media print {
    nav, #contact-form, button { display: none; }
    body { background: white; color: black; }
}
