/* Custom styles for Shanda Inc. Salon */

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

/* Base styles */
body {
    overflow-x: hidden;
}

/* Scroll reveal animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal[data-reveal="delay-1"] {
    transition-delay: 0.1s;
}

.reveal[data-reveal="delay-2"] {
    transition-delay: 0.2s;
}

.reveal[data-reveal="delay-3"] {
    transition-delay: 0.3s;
}

.reveal[data-reveal="delay-4"] {
    transition-delay: 0.4s;
}

.reveal[data-reveal="delay-5"] {
    transition-delay: 0.5s;
}

.reveal[data-reveal="delay-6"] {
    transition-delay: 0.6s;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    html {
        scroll-behavior: auto;
    }

    .service-card {
        transition: none;
    }

    .service-card:hover {
        transform: none;
    }

    img {
        transition: none;
    }
}

/* Mobile menu transitions */
#mobileMenu {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile link hover */
.mobile-link {
    transition: color 0.2s ease;
}

.mobile-link:hover {
    color: #059669;
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(253, 248, 240, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(2, 44, 34, 0.08);
}

/* Service card staggered animation for initial load */
.service-card {
    opacity: 1;
    transform: translateY(0);
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #059669;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Selection color */
::selection {
    background-color: #059669;
    color: white;
}

/* Subtle gradient text effect for hero */
.hero-gradient-text {
    background: linear-gradient(135deg, #ffffff 0%, #d1fae5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
