/* --- AFEXI AUDIT & ANALYTICS - MASTER CSS --- */
/* Optimized for all pages, Mobile-Responsive, Premium UI */

/* =========================================
   1. VARIABLES (BRAND COLORS)
========================================= */
:root {
    --primary-color: #0056b3; 
    --primary-dark: #004494;
    --accent-color: #ff6b35; 
    --accent-hover: #e55a2b;
    --text-dark: #1a202c;
    --text-medium: #4a5568;
    --bg-white: #ffffff;
    --bg-off-white: #f8fafc;
    --border-color: #e2e8f0;
    
    /* Shadows */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* =========================================
   2. UNIVERSAL RESET & TYPOGRAPHY
========================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
    font-family: 'Inter', sans-serif; 
    color: var(--text-dark); 
    line-height: 1.7; 
    background-color: var(--bg-white); 
    overflow-x: hidden; 
    width: 100%;
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 { font-family: 'Outfit', sans-serif; color: var(--text-dark); font-weight: 700; line-height: 1.2; }
p { color: var(--text-medium); }
a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
ul { list-style: none; }

img { max-width: 100%; height: auto; display: block; object-fit: cover; }

/* =========================================
   3. GLOBAL LAYOUT
========================================= */
.container { max-width: 1280px; margin: 0 auto; padding: 0 5%; width: 100%; }
.section-padding { padding: 100px 0; }

.section-header { text-align: center; max-width: 750px; margin: 0 auto 60px; }
.section-header .sub-heading { 
    display: block; text-transform: uppercase; color: var(--accent-color); 
    font-weight: 700; letter-spacing: 2px; font-size: 0.95rem; margin-bottom: 15px; 
}
.section-header h2 { font-size: 2.8rem; margin-bottom: 20px; }
.section-header p { font-size: 1.15rem; }

/* =========================================
   4. BUTTONS
========================================= */
.btn { 
    display: inline-flex; align-items: center; justify-content: center; 
    padding: 14px 32px; border-radius: 50px; font-weight: 600; text-align: center; 
    transition: all 0.3s ease; cursor: pointer; font-size: 1.05rem; border: 2px solid transparent; 
}
.btn-primary { background-color: var(--primary-color); color: white; box-shadow: 0 4px 15px rgba(0, 86, 179, 0.2); }
.btn-primary:hover { background-color: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0, 86, 179, 0.3); color: white;}
.btn-accent { background-color: var(--accent-color); color: white; box-shadow: 0 4px 15px rgba(255, 107, 53, 0.2); }
.btn-accent:hover { background-color: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255, 107, 53, 0.3); color: white;}
.btn-outline { background-color: transparent; border-color: var(--primary-color); color: var(--primary-color); }
.btn-outline:hover { background-color: var(--primary-color); color: white; }

/* =========================================
   5. HEADER & NAVIGATION
========================================= */
header { 
    position: fixed; top: 0; width: 100%; z-index: 1000; 
    background-color: rgba(255, 255, 255, 0.92); 
    backdrop-filter: blur(12px); border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease; padding: 15px 0;
}
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.site-logo { height: 45px; width: auto; object-fit: contain; }

.nav-links { display: flex; gap: 35px; align-items: center; }
.nav-links a { font-weight: 600; font-size: 0.95rem; color: var(--text-dark); position: relative; }
.nav-links a::after { content: ''; position: absolute; width: 0; height: 2px; bottom: -5px; left: 0; background-color: var(--accent-color); transition: width 0.3s ease; }
.nav-links a:hover, .nav-links a.active { color: var(--primary-color); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.menu-toggle { display: none; font-size: 1.8rem; cursor: pointer; color: var(--text-dark); }

/* =========================================
   6. PAGE COMPONENTS (HERO, GRIDS, LAYOUTS)
========================================= */
.hero { background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%); padding: 180px 0 100px; text-align: center; border-bottom: 1px solid var(--border-color); }
.hero-tagline { color: var(--accent-color); font-weight: 700; text-transform: uppercase; letter-spacing: 3px; margin-bottom: 20px; display: block; font-size: 0.95rem;}
.hero h1 { font-size: 4rem; margin-bottom: 25px; line-height: 1.15; }
.hero p { font-size: 1.25rem; max-width: 800px; margin: 0 auto 40px; color: var(--text-medium); }
.hero-btns { display: flex; justify-content: center; gap: 20px; }

/* Image-Text Split */
.image-text-layout { display: flex; align-items: center; gap: 50px; justify-content: space-between; }
.layout-text { flex: 1; }
.layout-image { flex: 1; text-align: center; }
.rounded-image { width: 100%; max-width: 550px; border-radius: 20px; }
.feature-list { margin: 25px 0; }
.feature-list li { margin-bottom: 15px; color: var(--text-dark); font-size: 1.05rem; }
.feature-list strong { color: var(--primary-color); }

/* Services Grid with Images */
.services-grid { display: grid; gap: 30px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

.service-card { 
    background: var(--bg-white); border-radius: 16px; 
    border: 1px solid var(--border-color); box-shadow: var(--shadow-sm); 
    transition: all 0.4s ease; position: relative;
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }

.service-card-with-image { padding: 0 !important; overflow: hidden; display: flex; flex-direction: column; }
.service-card-img { width: 100%; height: 220px; object-fit: cover; display: block; transition: transform 0.5s ease; border-bottom: 3px solid var(--accent-color); }
.service-card:hover .service-card-img { transform: scale(1.05); }
.service-card-content { padding: 30px; flex-grow: 1; position: relative; }
.service-card-with-image .service-num { font-family: 'Outfit', sans-serif; font-size: 3rem; font-weight: 800; color: transparent; -webkit-text-stroke: 1px var(--primary-color); opacity: 0.15; margin-bottom: 15px; line-height: 1;}

/* =========================================
   7. INTERACTIVE FAQ
========================================= */
.faq-container { max-width: 800px; margin: 0 auto; text-align: left; }
.faq-item { margin-bottom: 15px; border: 1px solid var(--border-color); border-radius: 12px; background: var(--bg-white); transition: all 0.3s ease; overflow: hidden;}
.faq-item:hover { border-color: var(--primary-color); }
.faq-question { padding: 20px 25px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-question h4 { margin: 0; font-size: 1.15rem; color: var(--text-dark); transition: color 0.3s ease; }
.faq-icon { font-size: 1.8rem; font-weight: 300; color: var(--accent-color); transition: transform 0.3s ease; line-height: 1; }
.faq-answer { padding: 0 25px; max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.4s ease; }
.faq-answer p { margin-bottom: 20px; color: var(--text-medium); }

.faq-item.active .faq-question h4 { color: var(--primary-color); }
.faq-item.active .faq-icon { transform: rotate(45deg); color: var(--primary-color); }
.faq-item.active .faq-answer { max-height: 500px; padding: 10px 25px 20px; }

/* =========================================
   8. FORMS & CTA BANNER
========================================= */
.cta-banner { background: var(--text-dark); color: white; text-align: center; border-radius: 20px; padding: 70px 30px; margin: 0 auto; max-width: 1100px; box-shadow: var(--shadow-lg); transform: translateY(50px); position: relative; z-index: 10;}
.cta-banner h2 { color: white; font-size: 2.5rem; margin-bottom: 20px; }
.cta-banner p { color: #cbd5e1; font-size: 1.15rem; margin-bottom: 30px; max-width: 600px; margin-left: auto; margin-right: auto; }

.cta-form-wrapper { max-height: 0; opacity: 0; overflow: hidden; transition: 0.8s ease; margin-top: 0; }
.cta-form-wrapper.show-form { max-height: 200px; opacity: 1; margin-top: 30px; }
.inline-cta-form { display: flex; gap: 15px; justify-content: center; max-width: 800px; margin: 0 auto; background: rgba(255, 255, 255, 0.1); padding: 20px; border-radius: 12px; }
.inline-cta-form input { padding: 14px 20px; border: none; border-radius: 8px; flex: 1; font-family: 'Inter', sans-serif; font-size: 1rem; outline: none; }
.inline-cta-form input:focus { box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.5); }
.inline-cta-form button { border: none; cursor: pointer; font-size: 1.05rem; }

/* =========================================
   9. FOOTER
========================================= */
footer { background-color: #0f172a; color: white; padding: 120px 0 30px; } 
.footer-content { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid #334155; margin-bottom: 30px; }
.footer-brand p { color: #94a3b8; margin-top: 15px; max-width: 300px; }
.footer-col h5 { font-size: 1.2rem; margin-bottom: 20px; color: white; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { color: #94a3b8; }
.footer-col ul li a:hover { color: var(--accent-color); padding-left: 5px; }
.footer-col p { color: #94a3b8; margin-bottom: 10px; display: flex; align-items: center; gap: 10px;}
.footer-bottom { text-align: center; color: #64748b; font-size: 0.95rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 15px;}
.developer-credit a { color: var(--accent-color); font-weight: 600; }
.developer-credit a:hover { color: white; text-decoration: underline; }

/* Beating Heart Animation */
@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    15% { transform: scale(1.3); }
    30% { transform: scale(1); }
    45% { transform: scale(1.3); }
    60% { transform: scale(1); }
}
.beating-heart { display: inline-block; animation: heartbeat 1.5s infinite; transform-origin: center; }

/* =========================================
   10. MODALS & POPUPS
========================================= */
.custom-modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.6); backdrop-filter: blur(5px); align-items: center; justify-content: center; }
.custom-modal.show { display: flex; animation: fadeIn 0.3s; }
.modal-content { background: #fff; padding: 40px; border-radius: 20px; text-align: center; max-width: 400px; width: 90%; box-shadow: 0 20px 25px -5px rgba(0,0,0,0.2); transform: scale(0.9); animation: popIn 0.3s forwards; }
.modal-content h3 { font-size: 1.8rem; margin: 15px 0 10px; color: #1a202c; }
.modal-content p { color: #4a5568; margin-bottom: 25px; }

/* iGrroww Renewal Popup (Hidden for neatness, keep if needed) */
.igrroww-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(10, 15, 30, 0.85); backdrop-filter: blur(12px); z-index: 9999999; display: flex; justify-content: center; align-items: center; opacity: 0; visibility: hidden; transition: opacity 0.5s ease, visibility 0.5s ease; }
.igrroww-overlay.show { opacity: 1; visibility: visible; }
.igrroww-modal { background: linear-gradient(145deg, #1e293b, #0f172a); width: 90%; max-width: 420px; border-radius: 24px; padding: 40px 30px; position: relative; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8); border: 1px solid rgba(255, 255, 255, 0.1); color: white; transform: translateY(30px) scale(0.95); transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.igrroww-overlay.show .igrroww-modal { transform: translateY(0) scale(1); }
.igrroww-close-btn { position: absolute; top: 15px; right: 20px; background: transparent; border: none; color: #64748b; font-size: 1.8rem; cursor: pointer; transition: color 0.3s ease; line-height: 1; }
.igrroww-close-btn:hover { color: #f87171; }

@keyframes fadeIn { from {opacity: 0;} to {opacity: 1;} }
@keyframes popIn { to {transform: scale(1);} }

/* Success Checkmark */
.success-checkmark { width: 80px; height: 80px; margin: 0 auto; }
.check-icon { width: 80px; height: 80px; position: relative; border-radius: 50%; box-sizing: content-box; border: 4px solid #4CAF50; }
.check-icon::before, .check-icon::after { content: ''; height: 100px; position: absolute; background: #fff; transform: rotate(-45deg); }
.check-icon::before { top: 3px; left: -2px; width: 30px; transform-origin: 100% 50%; border-radius: 100px 0 0 100px; }
.check-icon::after { top: 0; left: 30px; width: 60px; transform-origin: 0 50%; border-radius: 0 100px 100px 0; animation: rotatePlaceholder 4.25s ease-in; }
.icon-line { height: 5px; background-color: #4CAF50; display: block; border-radius: 2px; position: absolute; z-index: 10; }
.line-tip { top: 46px; left: 14px; width: 25px; transform: rotate(45deg); animation: icon-line-tip 0.75s; }
.line-long { top: 38px; right: 8px; width: 47px; transform: rotate(-45deg); animation: icon-line-long 0.75s; }
.icon-circle { top: -4px; left: -4px; z-index: 10; width: 80px; height: 80px; border-radius: 50%; position: absolute; box-sizing: content-box; border: 4px solid rgba(76, 175, 80, 0.5); }
.icon-fix { top: 8px; width: 5px; left: 26px; z-index: 1; height: 85px; position: absolute; transform: rotate(-45deg); background-color: #fff; }

@keyframes icon-line-tip { 0% {width: 0; left: 1px; top: 19px;} 54% {width: 0; left: 1px; top: 19px;} 70% {width: 50px; left: -8px; top: 37px;} 84% {width: 17px; left: 21px; top: 48px;} 100% {width: 25px; left: 14px; top: 46px;} }
@keyframes icon-line-long { 0% {width: 0; right: 46px; top: 54px;} 65% {width: 0; right: 46px; top: 54px;} 84% {width: 55px; right: 0px; top: 35px;} 100% {width: 47px; right: 8px; top: 38px;} }

/* =========================================
   11. RIGHT-SIDE VERTICAL CONTACT BUTTONS
========================================= */
.floating-contact-wrap {
    position: fixed;
    right: 15px; 
    top: 50%; 
    transform: translateY(-50%); 
    display: flex;
    flex-direction: column; 
    gap: 12px; 
    z-index: 9999; 
}

.float-btn-new {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-whatsapp { background: linear-gradient(#25d366, #128c7e); }
.btn-call { background: linear-gradient(#007bff, #0056b3); }
.float-btn-new svg { width: 30px; height: 30px; fill: white; }
.float-btn-new:hover { transform: scale(1.1); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3); }

/* Pulse Animation for WhatsApp */
.btn-whatsapp { animation: whatsapp-pulse 2s infinite; }
@keyframes whatsapp-pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* =========================================
   12. RESPONSIVE DESIGN (MOBILE FIXES)
========================================= */
@media (max-width: 992px) {
    .nav-links { display: none; flex-direction: column; width: 100%; position: absolute; top: 100%; left: 0; background: white; padding: 20px; box-shadow: var(--shadow-md); border-top: 1px solid var(--border-color);}
    .nav-links.active { display: flex; }
    .menu-toggle { display: block; }
    .hero h1 { font-size: 3rem; }
    .hero-btns { flex-direction: column; }
    .cta-banner { transform: translateY(0); margin: 50px 5%; border-radius: 16px;}
    .image-text-layout { flex-direction: column; text-align: center; }
    .layout-image { margin-top: 40px; }
    .feature-list li { text-align: left; }
    footer { padding-top: 60px; }
}

@media (max-width: 768px) {
    .service-card-img { height: 180px; }
    .service-card-content { padding: 25px; }
    .footer-content, .footer-bottom { flex-direction: column; text-align: center; align-items: center; }
    .footer-col p { justify-content: center; }
    .inline-cta-form { flex-direction: column; }
    .cta-form-wrapper.show-form { max-height: 300px; }
    
    /* Adjust Floating Buttons for Mobile */
    .floating-contact-wrap { right: 10px; }
    .float-btn-new { width: 48px; height: 48px; }
    .float-btn-new svg { width: 25px; height: 25px; }
}
/* =========================================
   ABOUT US - TEAM EXPERTS SECTION
========================================= */
.team-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); 
    gap: 30px; 
    margin-top: 40px; 
}

.team-card { 
    background: var(--bg-white); 
    padding: 40px 25px; 
    border-radius: 16px; 
    border: 1px solid var(--border-color); 
    box-shadow: var(--shadow-sm); 
    text-align: center; 
    transition: all 0.4s ease; 
}

.team-card:hover { 
    transform: translateY(-10px); 
    box-shadow: var(--shadow-lg); 
    border-color: var(--primary-color); 
}

/* Photo ka Premium Round Frame */
.team-img-wrapper { 
    width: 150px; 
    height: 150px; 
    margin: 0 auto 25px; 
    border-radius: 50%; 
    padding: 4px; /* Frame ki motai */
    /* Blue se Orange ka gradient frame */
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color)); 
    position: relative; 
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
}

.team-img-wrapper img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    border-radius: 50%; 
    border: 4px solid white; /* Frame aur photo ke beech white border */
    transition: transform 0.5s ease; 
    background-color: var(--bg-off-white);
}

/* Hover karne par photo thodi zoom hogi */
.team-card:hover .team-img-wrapper img { 
    transform: scale(1.08); 
}

/* Name and Role Styling */
.team-card h4 { 
    font-size: 1.4rem; 
    margin-bottom: 5px; 
    color: var(--text-dark); 
}

.team-role { 
    display: inline-block; 
    font-size: 0.85rem; 
    font-weight: 700; 
    color: var(--accent-color); 
    text-transform: uppercase; 
    letter-spacing: 1.5px; 
    margin-bottom: 15px; 
    background: rgba(255, 107, 53, 0.1); /* Halka sa orange background */
    padding: 4px 12px;
    border-radius: 50px;
}

.team-card p { 
    font-size: 0.95rem; 
    color: var(--text-medium); 
    line-height: 1.6; 
    margin-bottom: 0; 
}