/* Custom styles for Lookxury Nails Salon */

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

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

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

::-webkit-scrollbar-thumb {
    background: #1B4332;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #304d30;
}

/* Selection color */
::selection {
    background: #1B4332;
    color: #FDFBF7;
}

/* Reveal animations - progressive enhancement */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: none;
    }
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(253, 251, 247, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(27, 67, 50, 0.08);
}

/* Mobile menu transitions */
#mobile-menu {
    backdrop-filter: blur(12px);
}

/* Hero image parallax-like effect */
#hero img {
    will-change: transform;
}

/* Subtle breathing animation for decorative elements */
@keyframes breathe {
    0%, 100% { transform: scale(1); opacity: 0.1; }
    50% { transform: scale(1.1); opacity: 0.15; }
}

@media (prefers-reduced-motion: no-preference) {
    #hero .rounded-full.blur-3xl {
        animation: breathe 6s ease-in-out infinite;
    }
}

/* Button focus states for accessibility */
a:focus-visible, button:focus-visible {
    outline: 2px solid #D4A373;
    outline-offset: 2px;
    border-radius: 0.5rem;
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #f0f4f1 0%, #e8d5c4 100%);
}

/* Form styles for contact form */
input, textarea {
    border: 1px solid #d9e4db;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    width: 100%;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #1B4332;
    box-shadow: 0 0 0 3px rgba(27, 67, 50, 0.1);
}

/* Success message animation */
@keyframes slideIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.success-message {
    animation: slideIn 0.4s ease-out;
}

/* Gallery image hover overlay */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* Smooth image loading */
img {
    transition: opacity 0.3s ease;
}

img[loading="lazy"] {
    opacity: 0;
}

img.loaded {
    opacity: 1;
}
