/* Custom Styles for Seriously Sassy Salon */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #102a43;
}
::-webkit-scrollbar-thumb {
    background: #334e68;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #3bc294;
}

/* Selection color */
::selection {
    background: rgba(59, 194, 148, 0.3);
    color: #f0f4f8;
}

/* Navbar glass effect */
#navbar.scrolled {
    background: rgba(10, 22, 40, 0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(51, 78, 104, 0.3);
}

/* Service card hover lift */
.service-card {
    transition: transform 0.3s ease, border-color 0.4s ease, box-shadow 0.3s ease;
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px -20px rgba(59, 194, 148, 0.15);
}

/* Reveal animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
}

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

/* Menu button animation */
.menu-line:nth-child(1) {
    transform-origin: center;
}
.menu-line:nth-child(2) {
    transform-origin: center;
}
.menu-line:nth-child(3) {
    transform-origin: center;
}

#menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}
#menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
#menu-btn.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 1.5rem;
}

/* Hero image gradient overlay */
#hero .relative > div:first-child > img {
    filter: saturate(1.1) contrast(1.05);
}

/* Gallery hover effects */
.gallery-item {
    position: relative;
    overflow: hidden;
}
.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 22, 40, 0.4) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.gallery-item:hover::after {
    opacity: 1;
}

/* Button press effect */
button, a {
    -webkit-tap-highlight-color: transparent;
}
button:active, a:active {
    transform: scale(0.98);
}

/* Input autofill styling */
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #102a43 inset !important;
    -webkit-text-fill-color: #f0f4f8 !important;
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid #3bc294;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    #navbar, #mobile-menu, .reveal { display: none; }
    body { background: white; color: black; }
}
