/* Custom styles for AC Repair Mumbai website */

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

/* Custom button hover effects */
.btn-primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

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

.btn-secondary:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(234, 88, 12, 0.3);
}

/* Card hover effects */
.service-card {
    transition: all 0.3s ease;
}

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

/* Brand card hover effects */
.brand-card {
    transition: all 0.3s ease;
    border: 2px solid #e5e7eb;
}

.brand-card:hover {
    border-color: #2563eb;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(37, 99, 235, 0.15);
}

/* Floating button animation */
.floating-btn {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(234, 88, 12, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(234, 88, 12, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(234, 88, 12, 0);
    }
}

/* WhatsApp button animation */
.whatsapp-btn {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Form input focus effects */
input:focus, textarea:focus, select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    outline: none;
}

/* Trust badge icons animation */
.trust-badge:hover i {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    10%, 90% {
        transform: translate3d(-1px, 0, 0);
    }
    20%, 80% {
        transform: translate3d(2px, 0, 0);
    }
    30%, 50%, 70% {
        transform: translate3d(-4px, 0, 0);
    }
    40%, 60% {
        transform: translate3d(4px, 0, 0);
    }
}

/* Responsive typography */
@media (max-width: 640px) {
    .hero-title {
        font-size: 2rem;
        line-height: 1.1;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
}

/* Custom gradient backgrounds */
.gradient-blue {
    background: linear-gradient(135deg, #2563eb, #1e40af);
}

.gradient-orange {
    background: linear-gradient(135deg, #ea580c, #dc2626);
}

/* Loading animation for forms */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

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

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

::-webkit-scrollbar-thumb {
    background: #2563eb;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1d4ed8;
}

/* Image hover effects */
.service-card img {
    transition: transform 0.3s ease;
}

.service-card:hover img {
    transform: scale(1.05);
}

/* Hero section image overlay */
.hero-overlay {
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.8), rgba(37, 99, 235, 0.8));
}

/* Brand logo styling */
.brand-logo {
    max-height: 60px;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.brand-logo:hover {
    filter: grayscale(0%);
}

/* Stats section enhancement */
.stats-card {
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: #2563eb;
}

/* Phone number highlight */
.phone-highlight {
    color: #ea580c;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease;
}

.phone-highlight:hover {
    color: #dc2626;
}

/* Section spacing */
.section-padding {
    padding: 4rem 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 2rem 0;
    }
}

/* Mobile menu specific styles */
#mobile-nav {
    transition: all 0.3s ease;
    position: relative;
    z-index: 1000;
}

#mobile-nav.hidden {
    display: none !important;
}

#mobile-nav:not(.hidden) {
    display: block !important;
}

/* Mobile menu button styles */
#mobile-menu-btn {
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1001;
    position: relative;
}

#mobile-menu-btn:hover {
    color: #2563eb;
}

/* Ensure mobile nav is properly styled */
@media (max-width: 768px) {
    #mobile-nav {
        background: white;
        border-top: 1px solid #e5e7eb;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 1000;
    }
    
    #mobile-nav ul li a {
        padding: 12px 16px;
        border-bottom: 1px solid #f3f4f6;
        transition: all 0.3s ease;
    }
    
    #mobile-nav ul li a:hover {
        background-color: #f8fafc;
        color: #2563eb;
    }
    
    /* Ensure header has relative positioning for mobile nav */
    header {
        position: relative;
    }
}
