/* Custom Styles for Expressions of Color Beauty Salon */

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

/* Custom Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Scroll Reveal Animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    
    .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;
    }
    
    .reveal-delay-4 {
        transition-delay: 0.4s;
    }
    
    .reveal-delay-5 {
        transition-delay: 0.5s;
    }
}

/* Service Card Hover Effects */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.7s ease;
}

.service-card:hover::before {
    left: 100%;
}

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

/* Navbar Scroll Effect */
.nav-scrolled {
    background-color: rgba(250, 249, 247, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.nav-scrolled .nav-link {
    color: #1d3c29 !important;
}

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

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

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

::-webkit-scrollbar-thumb {
    background: #97c4a8;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #65a179;
}

/* Focus Styles for Accessibility */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #437d57;
    outline-offset: 2px;
}

/* Selection Color */
::selection {
    background-color: #c5dfcf;
    color: #1d3c29;
}

/* Loading State for Buttons */
button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Print Styles */
@media print {
    nav,
    #contact-form,
    .gallery-item {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .bg-forest-700,
    .bg-forest-950 {
        background: #fff !important;
        color: #000 !important;
    }
}

/* Tablet Adjustments */
@media (max-width: 768px) {
    .font-display {
        font-size: 2rem;
    }
}

/* Mobile Menu Animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

#mobile-menu.open {
    max-height: 400px;
}

/* Floating Card Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.floating-card {
    animation: float 3s ease-in-out infinite;
}

/* Gradient Text Effect */
.gradient-text {
    background: linear-gradient(135deg, #2e5f40, #65a179);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Subtle Pattern Background */
.pattern-bg {
    background-image: radial-gradient(circle at 25% 25%, rgba(149, 196, 168, 0.05) 0%, transparent 50%),
                      radial-gradient(circle at 75% 75%, rgba(149, 196, 168, 0.05) 0%, transparent 50%);
}
