/* Custom styles for Mando Electrical and Plumbing */

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

/* Hero section animation */
.hero-fade-in {
    animation: fadeInUp 1s ease-out;
}

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

/* Service cards hover effect */
.service-card {
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Contact form styles */
.form-input:focus {
    outline: none;
    ring: 2px;
    ring-color: #4A90E2;
    border-color: #4A90E2;
}

/* Emergency banner */
.emergency-banner {
    background: linear-gradient(45deg, #E53E3E, #C53030);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

/* Loading animation for forms */
.loading {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Responsive image gallery */
.image-gallery img {
    transition: transform 0.3s ease;
}

.image-gallery img:hover {
    transform: scale(1.05);
}

/* Custom button styles */
.btn-primary {
    background: linear-gradient(135deg, #4A90E2, #357ABD);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #357ABD, #2E5984);
    transform: translateY(-2px);
}

.btn-secondary {
    background: linear-gradient(135deg, #E53E3E, #C53030);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #C53030, #9C2A2A);
    transform: translateY(-2px);
}

/* Testimonial styles */
.testimonial-card {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

/* Skills/stats counter animation */
.counter {
    font-weight: bold;
    color: #4A90E2;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .hero-text {
        font-size: 2rem;
    }

    .service-card {
        margin-bottom: 1.5rem;
    }
}

/* WhatsApp floating button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 80px;
    right: 24px;
    background-color: #25d366;
    color: white;
    border-radius: 50px;
    text-align: center;
    font-size: 24px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
    background-color: #20b858;
    transform: scale(1.1);
    color: white;
    text-decoration: none;
}

.whatsapp-float:focus {
    outline: none;
}

@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* WhatsApp tooltip */
.whatsapp-tooltip {
    position: absolute;
    right: 75px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    font-weight: normal;
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 100%;
    margin-top: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent transparent #333;
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
}

/* Mobile responsiveness for WhatsApp button */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 70px;
        right: 20px;
        font-size: 22px;
    }

    .whatsapp-tooltip {
        display: none;
    }
}

/* Print styles */
@media print {
    .no-print, .whatsapp-float {
        display: none !important;
    }
}