/* ac-services-fixes.css - COMPLETE FIXED VERSION */

/* ===== MOBILE FIXES FOR 3D CARDS ===== */
@media (max-width: 768px) {
    /* Fix grid layout */
    .services-grid-8 {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        padding: 0 1rem !important;
        width: 100% !important;
    }
    
    /* Fix 3D cards for mobile */
    .service-card-3d {
        height: 400px !important;
        perspective: none !important;
        cursor: pointer !important;
        width: 100% !important;
        margin: 0 auto !important;
        position: relative !important;
    }
    
    /* Card inner */
    .card-3d-inner {
        position: relative !important;
        width: 100% !important;
        height: 100% !important;
        transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1) !important;
        transform-style: flat !important;
        border-radius: 20px !important;
    }
    
    /* Front side */
    .card-3d-front {
        position: absolute !important;
        width: 100% !important;
        height: 100% !important;
        backface-visibility: visible !important;
        background: #ffffff !important;
        border-radius: 20px !important;
        overflow: hidden !important;
        box-shadow: 0 15px 35px rgba(0,0,0,0.1) !important;
        border: 1px solid #e5e5e5 !important;
        display: flex !important;
        flex-direction: column !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: rotateY(0deg) !important;
    }
    
    /* Front side image */
    .card-3d-front img {
        width: 100% !important;
        height: 220px !important;
        object-fit: cover !important;
        display: block !important;
    }
    
    /* Front side heading */
    .card-3d-front h3 {
        font-size: 1.3rem !important;
        font-weight: 700 !important;
        margin: 1.2rem 1rem 0.5rem !important;
        color: #1a1a1a !important;
    }
    
    /* Front side paragraph */
    .card-3d-front p {
        color: #4b5563 !important;
        margin: 0 1rem 1rem !important;
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
    }
    
    /* Back side */
    .card-3d-back {
        position: absolute !important;
        width: 100% !important;
        height: 100% !important;
        backface-visibility: visible !important;
        background: #000000 !important;
        color: #ffffff !important;
        transform: rotateY(180deg) !important;
        border-radius: 20px !important;
        overflow: hidden !important;
        display: none !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 2rem !important;
        text-align: center !important;
        box-shadow: 0 15px 35px rgba(0,0,0,0.2) !important;
        border: 1px solid #333 !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    /* Flipped state */
    .service-card-3d.flipped .card-3d-inner {
        transform: rotateY(180deg) !important;
    }
    
    /* Back side heading */
    .card-3d-back h3 {
        font-size: 1.5rem !important;
        font-weight: 700 !important;
        margin-bottom: 1rem !important;
        color: #ffffff !important;
    }
    
    /* Back side paragraph */
    .card-3d-back p {
        font-size: 1rem !important;
        line-height: 1.6 !important;
        margin-bottom: 1.5rem !important;
        opacity: 0.9 !important;
        color: #ffffff !important;
    }
    
    /* Get Service button */
    .card-3d-back .btn-card {
        background: #ffffff !important;
        color: #000000 !important;
        padding: 0.8rem 2rem !important;
        border-radius: 50px !important;
        border: 2px solid #ffffff !important;
        font-weight: 600 !important;
        font-size: 1rem !important;
        text-decoration: none !important;
        display: inline-block !important;
        margin-bottom: 1.2rem !important;
        width: auto !important;
        min-width: 150px !important;
        transition: all 0.3s ease !important;
        cursor: pointer !important;
    }
    
    .card-3d-back .btn-card:hover {
        background: transparent !important;
        color: #ffffff !important;
        transform: translateY(-3px) !important;
        box-shadow: 0 10px 20px rgba(255,255,255,0.2) !important;
    }
    
    /* Card buttons */
    .card-3d-back .card-buttons {
        display: none !important;
        gap: 1rem !important;
        justify-content: center !important;
        width: 100% !important;
    }
    
    /* WhatsApp button */
    .card-3d-back .btn-wa {
        width: 45px !important;
        height: 45px !important;
        border-radius: 50% !important;
        background: #25D366 !important;
        color: #ffffff !important;
        display: none !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 1.3rem !important;
        text-decoration: none !important;
        transition: all 0.3s ease !important;
        cursor: pointer !important;
    }
    
    /* Call button */
    .card-3d-back .btn-call {
        width: 45px !important;
        height: 45px !important;
        border-radius: 50% !important;
        background: #333333 !important;
        color: #ffffff !important;
        display: none !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 1.3rem !important;
        text-decoration: none !important;
        transition: all 0.3s ease !important;
        cursor: pointer !important;
    }
    
    /* Button hover effects */
    .card-3d-back .btn-wa:hover,
    .card-3d-back .btn-call:hover {
        transform: scale(1.15) translateY(-3px) !important;
        box-shadow: 0 10px 20px rgba(0,0,0,0.3) !important;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .service-card-3d {
        height: 380px !important;
    }
    
    .card-3d-front img {
        height: 200px !important;
    }
    
    .card-3d-back {
        padding: 1.5rem !important;
    }
    
    .card-3d-back h3 {
        font-size: 1.3rem !important;
    }
    
    .card-3d-back p {
        font-size: 0.95rem !important;
    }
    
    .card-3d-back .btn-card {
        padding: 0.7rem 1.5rem !important;
        font-size: 0.95rem !important;
    }
}
.social-links {
        display: flex;
        gap: 12px;
        margin-top: 15px;
    }
    
    .social-icon {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        color: white;
        font-size: 1.2rem;
        text-decoration: none;
    }
    
    /* Facebook */
    .social-icon.facebook {
        background: #1877f2;
    }
    
    .social-icon.facebook:hover {
        background: #0d5ab9;
        transform: translateY(-5px);
        box-shadow: 0 5px 15px rgba(24, 119, 242, 0.4);
    }
    
    /* Instagram */
    .social-icon.instagram {
        background: linear-gradient(45deg, #f09433, #d62976, #962fbf, #4f5bd5);
    }
    
    .social-icon.instagram:hover {
        transform: translateY(-5px);
        box-shadow: 0 5px 15px rgba(225, 48, 108, 0.4);
    }
    
    /* TikTok */
    .social-icon.tiktok {
        background: #000000;
        position: relative;
    }
    
    .social-icon.tiktok:hover {
        background: #1a1a1a;
        transform: translateY(-5px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    }
    
    /* LinkedIn */
    .social-icon.linkedin {
        background: #0a66c2;
    }
    
    .social-icon.linkedin:hover {
        background: #004182;
        transform: translateY(-5px);
        box-shadow: 0 5px 15px rgba(10, 102, 194, 0.4);
    }
    
    /* Mobile responsive */
    @media (max-width: 768px) {
        .social-links {
            justify-content: center;
        }
    }

/* CTA Button Styles */
.btn-whatsapp { background: #25D366 !important; color: #ffffff !important; border: none !important; }
.btn-whatsapp:hover { background: #20b358 !important; transform: translateY(-3px); box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3); }
.btn-call { background: transparent !important; color: #ffffff !important; border: 2px solid #ffffff !important; }
.btn-call:hover { background: #ffffff !important; color: #000000 !important; transform: translateY(-3px); }
.btn-call:focus, .btn-call:active { color: #ffffff !important; background: transparent !important; outline: none; box-shadow: none !important; }
.btn-call:hover:active { background: rgba(255, 255, 255, 0.9) !important; color: #000000 !important; }
.cta-buttons { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; margin-top: 2rem; }
@media (max-width: 768px) { .cta-buttons { flex-direction: column; align-items: center; } .cta-buttons .btn { width: 100%; max-width: 300px; } }
/* ===== GLOBAL FIXES FOR SOCIAL & CTA ===== */
.facebook { background: #1877F2 !important; color: #ffffff !important; display: inline-flex !important; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; transition: 0.3s; text-decoration: none; }
.instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%,#d6249f 60%,#285AEB 90%) !important; color: #ffffff !important; display: inline-flex !important; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; transition: 0.3s; text-decoration: none; }
.facebook:hover, .instagram:hover { transform: translateY(-3px); opacity: 0.8; color: #ffffff !important; }

.btn-whatsapp { background: #25D366 !important; color: #ffffff !important; border: none !important; padding: 0.9rem 2rem; border-radius: 50px; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; transition: 0.3s; }
.btn-whatsapp:hover { background: #20b358 !important; transform: translateY(-3px); box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3); color: #ffffff !important; }

.btn-call { background: transparent !important; color: #ffffff !important; border: 2px solid #ffffff !important; padding: 0.9rem 2rem; border-radius: 50px; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; transition: 0.3s; }
.btn-call:hover { background: #ffffff !important; color: #000000 !important; transform: translateY(-3px); }
.btn-call:focus, .btn-call:active { color: #ffffff !important; background: transparent !important; outline: none !important; box-shadow: none !important; }
.btn-call:hover:active { background: rgba(255, 255, 255, 0.9) !important; color: #000000 !important; }

.cta-buttons { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; margin-top: 2rem; width: 100%; }
@media (max-width: 768px) { 
    .cta-buttons { flex-direction: column !important; align-items: center !important; } 
    .cta-buttons .btn { width: 100% !important; max-width: 300px; justify-content: center; } 
}

/* ===== FINAL OVERRIDE FOR CTA BUTTONS (Fixing overlapping/circle issues) ===== */
.cta-section .btn-whatsapp, 
.cta-section .btn-call {
    width: auto !important;
    height: auto !important;
    min-width: 180px !important;
    padding: 12px 30px !important;
    border-radius: 50px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    font-size: 1.1rem !important;
    line-height: 1.2 !important;
    text-transform: none !important;
    margin: 5px !important;
}

.cta-section .btn-call i, 
.cta-section .btn-whatsapp i {
    margin-right: 10px !important;
    font-size: 1.2rem !important;
}

@media (max-width: 768px) {
    .cta-section .btn-whatsapp, 
    .cta-section .btn-call {
        width: 100% !important;
        max-width: 300px !important;
        margin: 10px 0 !important;
    }
}

/* ===== EMERGENCY FIX: DO NOT REMOVE ===== */
/* This fixes the conflict where Call Now button became a small circle */
.cta-section .cta-buttons .btn-call, 
.cta-section .cta-buttons .btn-whatsapp {
    width: auto !important;
    height: auto !important;
    min-width: 200px !important;
    max-width: none !important;
    aspect-ratio: auto !important;
    border-radius: 50px !important;
    padding: 15px 35px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    font-size: 1.1rem !important;
    line-height: 1 !important;
    box-sizing: border-box !important;
}

.cta-section .cta-buttons .btn-call i, 
.cta-section .cta-buttons .btn-whatsapp i {
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    font-size: 1.2rem !important;
}

@media (max-width: 768px) {
    .cta-section .cta-buttons .btn-call, 
    .cta-section .cta-buttons .btn-whatsapp {
        width: 100% !important;
        max-width: 320px !important;
        min-width: unset !important;
    }
}

/* ===== SERVICES SUB-NAVBAR (Desktop Mega Menu) ===== */
.services-sub-navbar {
    position: fixed;
    top: 70px; /* Adjust based on navbar height */
    left: 0;
    width: 100%;
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    z-index: 1500;
    display: none;
    padding: 15px 0;
    border-bottom: 2px solid #f0f0f0;
    animation: navSlideDown 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.services-sub-navbar.active {
    display: block;
}

.sub-nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    justify-content: center;
    gap: 40px;
}

.sub-nav-container a {
    text-decoration: none;
    color: #000000;
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 15px;
    border-radius: 8px;
}

.sub-nav-container a i {
    color: #0054a6; /* Gold accent */
    font-size: 1rem;
}

.sub-nav-container a:hover {
    background: #f8f8f8;
    color: #0054a6;
    transform: translateY(-2px);
}

@keyframes navSlideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Ensure main navbar stays on top */
.navbar {
    z-index: 2001 !important;
}

@media (max-width: 1024px) {
    .services-sub-navbar {
        display: none !important; /* Hide sub-nav on mobile, use mobile menu instead */
    }
}

/* Disable old dropdown on desktop to use new sub-navbar */
@media (min-width: 1025px) {
    .dropdown-menu {
        display: none !important;
    }
    .dropdown-toggle i {
        transition: transform 0.3s ease;
    }
    .dropdown-toggle.active i {
        transform: rotate(180deg);
    }
}

/* ===== PREMIUM DARK SUB-NAVBAR ENHANCEMENT ===== */
.services-sub-navbar {
    background: #0a0a0a !important; /* Deep dark background */
    border-bottom: 2px solid #0054a6 !important; /* Gold bottom accent */
    box-shadow: 0 10px 30px rgba(0,0,0,0.3) !important;
}

.sub-nav-container a {
    color: #ffffff !important; /* White text for contrast */
    font-size: 0.8rem !important;
    padding: 10px 20px !important;
}

.sub-nav-container a i {
    color: #0054a6 !important; /* Ensure icons stay gold */
}

.sub-nav-container a:hover {
    background: #1a1a1a !important;
    color: #0054a6 !important;
    border-radius: 4px !important;
}

/* Adjust top position if needed - ensuring it fits perfectly */
.services-sub-navbar {
    top: 68px !important; 
}

/* Navbar Background Fix */
.navbar {
    background: #ffffff !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
}

.nav-menu a {
    color: #000000 !important;
}

.nav-menu a:hover, .nav-menu a.active {
    color: #0054a6 !important;
}

/* Sub-navbar alignment fix */
.services-sub-navbar {
    top: 70px !important;
}

.floating-buttons a { pointer-events: auto; }



