/* Custom styles for The Tailor Atelier */

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #832a3d;
}

/* Navbar scroll effect */
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(92, 36, 48, 0.1);
}

/* Geometric shapes animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

@keyframes float-delayed {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-15px) rotate(-5deg);
    }
}

/* Service card hover effect */
.service-card:hover {
    transform: translateY(-8px);
}

/* Button hover effects */
.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(92, 36, 48, 0.3);
}

/* Image hover zoom */
.gallery-item:hover img {
    transform: scale(1.1);
}

/* Text selection color */
::selection {
    background: #fbbf24;
    color: #350f16;
}

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

/* 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;
    }
}

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

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

/* Form input focus animation */
input:focus,
textarea:focus,
select:focus {
    box-shadow: 0 0 0 3px rgba(160, 55, 76, 0.2);
}

/* Button loading state */
.btn-loading {
    opacity: 0.7;
    cursor: not-allowed;
}

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

#success-message.show {
    animation: slideIn 0.3s ease-out forwards;
}
