/* --- GLOBAL RESPONSIVE & ALIGNMENT CSS --- */

:root {
    --navy: #0d1e3a;
    --red: #C41E3A;
    --light-bg: #f8f9fa;
    --white: #ffffff;
}

/* 1. Basic Reset & Alignment */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    overflow-x: hidden; /* Mobile horizontal scroll fix */
    width: 100%;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 2. Responsive Hero Section */
.hero-section {
    padding: 120px 20px 60px !important;
    min-height: 350px;
    height: auto !important;
}

.hero-section h1 {
    font-size: clamp(28px, 5vw, 54px) !important;
    line-height: 1.2;
}

/* 3. The "Magic" Grid System (Sabse important) */
/* Ye auto-adjust hota hai: Desktop par 4, Tablet par 2, Mobile par 1 box */
.stat-grid, 
.values-grid, 
.cert-grid, 
.client-grid,
.choose-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
    gap: 20px !important;
    width: 100%;
    margin-top: 30px;
}

/* 4. Intro/Who We Are Section Fix */
.who-grid, .intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

/* 5. Image Fixes */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 6. Typography Scaling */
.section-title {
    font-size: clamp(22px, 4vw, 36px) !important;
    line-height: 1.3;
}

/* 7. Footer Alignment */
.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

/* --- MEDIA QUERIES (Specific Screen Sizes) --- */

/* For Tablets (992px and below) */
@media (max-width: 992px) {
    .who-grid, .intro-grid {
        grid-template-columns: 1fr; /* 2 side-by-side se 1 ke niche 1 ho jayega */
        text-align: center;
    }
    
    .section-title::after {
        left: 50%;
        transform: translateX(-50%); /* Line center mein aa jayegi */
    }

    section {
        padding: 60px 0 !important;
    }
}

/* For Mobile (768px and below) */
@media (max-width: 768px) {
    .stat-grid {
        grid-template-columns: 1fr 1fr !important;
    }

    .client-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .hero-section {
        padding-top: 100px !important;
    }
    
    .stat-card h3 {
        font-size: 24px !important;
    }

    .stats-row {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .stat-item {
        text-align: center !important;
    }

    .stat-value {
        font-size: 2.5rem !important;
    }

    .stat-text {
        font-size: 14px !important;
    }
}

/* For Small Mobile (480px and below) */
@media (max-width: 480px) {
    .stat-grid, 
    .client-grid, 
    .cert-grid {
        grid-template-columns: 1fr !important; /* Sab kuch ek single column mein */
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

/* --- Utility Classes --- */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }