/* ==========================================================================
   FILE: assets/css/style.css
   PROJECT: MechanicAssist.in (Engineered by Krrish Web Solutions)
   ========================================================================== */

/* --- 1. CORE VARIABLES & COLOR PALETTE --- */
:root {
    /* Brand Colors */
    --brand-dark: #1E1E24;       /* Slate Black - Tactical / Premium */
    --brand-danger: #E63946;     /* Emergency Red - Urgent Call to Action */
    --brand-light: #F1FAEE;      /* Clean Pearl - Soft background contrast */
    --brand-accent: #457B9D;     /* Steel Blue - Secondary operational color */
    
    /* Text Colors */
    --text-primary: #2B2D42;
    --text-muted: #6c757d;       /* Standard bootstrap muted */
    --text-light-grey: #e2e8f0;  /* High visibility on dark backgrounds */
    
    /* UI Elements */
    --glass-panel: rgba(255, 255, 255, 0.85);
    --shadow-soft: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
    --shadow-premium: 0 12px 40px -12px rgba(30, 30, 36, 0.15);
    --bezier-smooth: cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-fast: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* --- 2. GLOBAL RESET & BASE STYLES --- */
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: #FAFAFA;
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    letter-spacing: -0.5px;
}

.text-danger { color: var(--brand-danger) !important; }
.bg-danger { background-color: var(--brand-danger) !important; }

/* --- 3. CUSTOM ANIMATIONS (KEYFRAMES) --- */
@keyframes glideUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes radarPulse {
    0% { box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.6); }
    70% { box-shadow: 0 0 0 20px rgba(230, 57, 70, 0); }
    100% { box-shadow: 0 0 0 0 rgba(230, 57, 70, 0); }
}

@keyframes pulseGlowRing {
    0% { box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.5); }
    70% { box-shadow: 0 0 0 15px rgba(230, 57, 70, 0); }
    100% { box-shadow: 0 0 0 0 rgba(230, 57, 70, 0); }
}

@keyframes iconBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

@keyframes iconBounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-5px); }
    60% { transform: translateY(-3px); }
}

/* Utility Animation Classes */
.animate-up { animation: glideUp 0.7s var(--bezier-smooth) forwards; }
.pulse-btn { animation: radarPulse 2.5s infinite; }
.icon-blink { animation: iconBlink 2s infinite ease-in-out; }
.icon-bounce { animation: iconBounce 2.5s infinite; }
.icon-pulse-ring { animation: pulseGlowRing 2s infinite; border-radius: 50%; }

/* --- 4. NAVIGATION & GLASSMORPHISM --- */
.navbar {
    background: var(--glass-panel) !important;
    backdrop-filter: saturate(180%) blur(15px);
    -webkit-backdrop-filter: saturate(180%) blur(15px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.navbar-brand {
    font-weight: 800;
    letter-spacing: -0.7px;
    color: var(--brand-dark) !important;
}

/* --- 5. HERO SECTION --- */
.hero-section {
    position: relative;
    z-index: 1;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    /* Deep gradient overlay to make text pop against background images */
    background: linear-gradient(135deg, rgba(30, 30, 36, 0.95) 0%, rgba(30, 30, 36, 0.7) 100%);
    z-index: -1;
}

/* --- 6. PREMIUM SERVICE CARDS & HOVER EFFECTS --- */
.service-card {
    background: #FFFFFF;
    border: 1px solid rgba(0,0,0,0.03);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s var(--bezier-smooth);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-premium);
    border-color: rgba(230, 57, 70, 0.2); /* Subtle red border on hover */
}

.service-card img {
    transition: transform 0.6s var(--bezier-smooth);
}

.service-card:hover img {
    transform: scale(1.08); /* Zoom effect on image */
}

.service-card .btn {
    border-width: 2px;
}

/* --- 7. BUTTONS & MICRO-INTERACTIONS --- */
.btn {
    transition: var(--transition-fast);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(230, 57, 70, 0.3);
}

/* --- 8. TABS (PILLS) STYLING --- */
.nav-pills .nav-link {
    background: #FFFFFF;
    color: var(--brand-dark);
    border-radius: 50px;
    padding: 14px 35px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: var(--transition-fast);
    border: 2px solid transparent;
}

.nav-pills .nav-link.active {
    background: var(--brand-danger);
    color: #FFFFFF;
    box-shadow: 0 8px 20px rgba(230, 57, 70, 0.4);
    transform: translateY(-2px);
}

/* --- 9. FLOATING ACTION BUTTONS (FAB) --- */
.floating-btn {
    position: fixed;
    right: 30px;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF !important;
    font-size: 26px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    z-index: 1050;
    transition: transform 0.3s var(--bezier-smooth);
    text-decoration: none;
}

.floating-btn:hover { 
    transform: scale(1.1) translateY(-5px); 
}

/* Stacking the FABs */
.btn-whatsapp { 
    bottom: 30px; 
    background: linear-gradient(45deg, #25D366, #128C7E); 
}

.btn-call { 
    bottom: 115px; 
    background: linear-gradient(45deg, var(--brand-danger), #ff0000); 
}

/* --- 10. FOOTER SPECIFICS & HIGH VISIBILITY --- */
.site-footer {
    background-color: var(--brand-dark);
    color: #E0E0E0;
    padding: 80px 0 40px;
}

/* Fixing dark text on dark background issue */
.site-footer p.text-muted,
.site-footer small.text-muted,
.site-footer .text-white-50 {
    color: var(--text-light-grey) !important; 
    font-weight: 400;
}

.site-footer a {
    color: #B0B0B0;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

/* Slide right and turn red on hover */
.hover-lift-link {
    transition: all 0.3s ease;
    display: inline-block;
}

.hover-lift-link:hover {
    transform: translateX(6px);
    color: var(--brand-danger) !important;
}

.hover-text-white {
    transition: all 0.2s ease;
}

.hover-text-white:hover { 
    color: #ffffff !important; 
    text-shadow: 0 0 8px rgba(255,255,255,0.4);
}

/* --- 11. DEVELOPER SIGNATURE ANIMATION --- */
.developer-link {
    position: relative;
    color: #ffffff;
    text-decoration: none;
    font-weight: 800;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.developer-link:hover {
    color: var(--brand-danger) !important;
    text-shadow: 0 0 12px rgba(230, 57, 70, 0.6);
    transform: scale(1.02);
}

.developer-link i {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.developer-link:hover i {
    transform: rotate(20deg) scale(1.2);
    color: #ffffff;
}

/* --- 12. RETINA & HIGH-DPI OPTIMIZATIONS --- */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .navbar-brand img { 
        image-rendering: -webkit-optimize-contrast; 
    }
    .hero-section { 
        background-attachment: fixed; /* Creates a subtle parallax effect on high-end screens */
    }
}

/* Tracking / Utility classes */
.tracking-wider {
    letter-spacing: 1.5px;
}