/* Custom styles for Talleres Lara */

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #5c0017;
}

/* Animation classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Image hover effects */
img {
    transition: transform 0.5s ease;
}

/* Button focus styles */
button:focus,
input:focus,
textarea:focus {
    outline: none;
}

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

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

/* Service card hover */
.group:hover .group-hover\:text-white {
    color: white;
}

/* Custom underline animation */
a {
    position: relative;
}

a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: #800020;
    transition: width 0.3s ease;
}

a:hover::after {
    width: 100%;
}

/* Decorative border for sections */
section {
    position: relative;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #800020/20, transparent);
}

/* Hero image overlay */
.hero-overlay {
    background: linear-gradient(135deg, rgba(128, 0, 32, 0.1) 0%, transparent 100%);
}

/* Form focus animations */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(128, 0, 32, 0.1);
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .font-serif {
        font-size: 1.875rem;
    }
    
    .font-serif.text-5xl {
        font-size: 2.25rem;
    }
}
