/* Custom styles for Bautista Stucco */

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

/* Hero animations */
.hero-shape {
    animation: float 6s ease-in-out infinite;
}

.shape-1 { animation-delay: 0s; animation-duration: 7s; }
.shape-2 { animation-delay: -1.5s; animation-duration: 8s; }
.shape-3 { animation-delay: -3s; animation-duration: 6s; }
.shape-4 { animation-delay: -4.5s; animation-duration: 7s; }
.shape-5 { animation-delay: -1s; animation-duration: 5s; }
.shape-6 { animation-delay: -2s; animation-duration: 6s; }
.shape-7 { animation-delay: -3.5s; animation-duration: 4s; }
.shape-8 { animation-delay: -5s; animation-duration: 5s; }

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-15px) rotate(2deg); }
    66% { transform: translateY(8px) rotate(-1deg); }
}

/* Reveal animations - progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease-out, transform 0.7s ease-out;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    /* Staggered delays for service cards */
    .service-card:nth-child(1) { transition-delay: 0.05s; }
    .service-card:nth-child(2) { transition-delay: 0.1s; }
    .service-card:nth-child(3) { transition-delay: 0.15s; }
    .service-card:nth-child(4) { transition-delay: 0.2s; }
    .service-card:nth-child(5) { transition-delay: 0.25s; }
    .service-card:nth-child(6) { transition-delay: 0.3s; }
}

/* Navbar scroll effect */
.nav-scrolled {
    background: rgba(42, 14, 72, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

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

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

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #7b2d8e, #d97706);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #9b59b6, #f59e0b);
}

/* Input focus styles */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(123, 45, 142, 0.15);
}

/* Button hover glow */
button:hover,
a:hover {
    transition: all 0.2s ease;
}

/* Card hover effects */
.service-card {
    will-change: transform, box-shadow;
}

/* Ensure all text is readable */
@media (max-width: 640px) {
    .font-serif {
        font-size: 2.25rem;
        line-height: 1.1;
    }
}
