/* Custom styles for Specialty Auto Electric */

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

/* Decorative floating circles */
.deco-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    animation: float 8s ease-in-out infinite;
}

.deco-circle:nth-child(2) {
    animation-delay: -2s;
    animation-duration: 10s;
}

.deco-circle:nth-child(3) {
    animation-delay: -4s;
    animation-duration: 6s;
}

.deco-circle:nth-child(4) {
    animation-delay: -1s;
    animation-duration: 7s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}

/* Navbar scroll effect */
#navbar.scrolled {
    background: rgba(250, 250, 245, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

#navbar.scrolled .logo-text {
    color: #213524;
}

/* Service card hover glow */
.service-card:hover {
    border-color: rgba(79, 131, 83, 0.3);
    box-shadow: 0 20px 40px rgba(61, 102, 65, 0.12);
}

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

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

/* Form focus styles */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(79, 131, 83, 0.15);
}

/* Subtle entrance animations */
.service-card {
    opacity: 0;
    transform: translateY(20px);
}

.service-card.visible {
    animation: fadeUp 0.6s ease forwards;
}

.service-card:nth-child(1) { animation-delay: 0.05s; }
.service-card:nth-child(2) { animation-delay: 0.1s; }
.service-card:nth-child(3) { animation-delay: 0.15s; }
.service-card:nth-child(4) { animation-delay: 0.2s; }
.service-card:nth-child(5) { animation-delay: 0.25s; }
.service-card:nth-child(6) { animation-delay: 0.3s; }

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .deco-circle {
        display: none;
    }
}
