/* Custom styles for Bellflower Auto Care */

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

/* Blob animation */
@keyframes blob {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(30px, -50px) scale(1.1);
    }
    50% {
        transform: translate(-20px, 20px) scale(0.9);
    }
    75% {
        transform: translate(20px, 50px) scale(1.05);
    }
}

.animate-blob {
    animation: blob 8s ease-in-out infinite;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

.animation-delay-4000 {
    animation-delay: 4s;
}

/* Scroll reveal animations */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .animate-blob {
        animation: none;
    }
    
    .scroll-reveal {
        transition: none;
    }
}

/* Navbar glass effect when scrolled */
nav.scrolled {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(123, 45, 142, 0.08);
}

/* Custom selection color */
::selection {
    background: #E7C0EE;
    color: #3D1448;
}

/* Subtle card hover glow */
.group:hover .group-hover\:bg-plum-600,
.group:hover .group-hover\:bg-amber-500 {
    transition: background-color 0.3s ease;
}

/* Ensure images don't cause layout shift */
img {
    max-width: 100%;
    height: auto;
}

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

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

/* Form styles */
input, textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #E7C0EE;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    color: #3D1448;
    background: white;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

input:focus, textarea:focus {
    border-color: #7B2D8E;
    box-shadow: 0 0 0 4px rgba(123, 45, 142, 0.1);
}

input::placeholder, textarea::placeholder {
    color: #D49ADE;
}

textarea {
    resize: vertical;
    min-height: 120px;
}

/* Success message */
.form-success {
    display: none;
    background: linear-gradient(135deg, #E7C0EE, #FFEFAD);
    border: 2px solid #D49ADE;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    animation: fadeIn 0.4s ease-out;
}

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

.form-success.show {
    display: block;
}

.form-success svg {
    color: #7B2D8E;
}

.form-success p {
    color: #3D1448;
    font-weight: 600;
    margin-top: 8px;
}

.form-success span {
    color: #7B2D8E;
}
