/* ============================================
   HOMEPAGE CENTERING - FINAL FIX
   All content centered properly on homepage only
   ============================================ */

/* Reset any conflicting styles */
body {
    overflow-x: hidden;
}

/* Hero Section - Complete Fix */
.hero {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-content {
    text-align: center;
    width: 100%;
    position: relative;
    z-index: 2;
}

.hero-title {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.hero-description {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    max-width: 800px;
}

/* Hero Buttons - Fixed Positioning */
.hero-buttons {
    display: flex !important;
    gap: 1.5rem;
    justify-content: center !important;
    align-items: center;
    flex-wrap: wrap;
    margin: 0 auto 4rem;
    width: 100%;
}

.hero-buttons .btn {
    display: inline-block;
    flex-shrink: 0;
    min-width: 180px;
}

.hero-buttons a {
    display: inline-block;
}

/* Hero Stats - Centered */
.hero-stats {
    display: flex !important;
    justify-content: center !important;
    gap: 4rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

/* All Sections - Ensure Full Width */
section {
    width: 100%;
}

section .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Section Headers - Centered */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title,
.section-subtitle {
    text-align: center;
}

/* Services Grid - Centered Layout */
.services-snapshot {
    width: 100%;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    justify-items: center;
    width: 100%;
}

.service-card {
    width: 100%;
    max-width: 350px;
}

/* Why Choose Us Grid */
.why-choose {
    width: 100%;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    justify-items: center;
    width: 100%;
}

.why-card {
    width: 100%;
    max-width: 350px;
}

/* Case Studies Grid */
.case-studies {
    width: 100%;
}

.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    justify-items: center;
    width: 100%;
}

.case-study-card {
    width: 100%;
    max-width: 380px;
}

.case-study-content {
    text-align: center;
}

/* How It Works */
.how-it-works {
    width: 100%;
}

.process-steps {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 2rem;
    flex-wrap: wrap;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.process-step {
    flex: 1;
    min-width: 250px;
    text-align: center;
}

/* CTA Section */
.cta-section {
    width: 100%;
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-buttons {
    display: flex !important;
    gap: 1.5rem;
    justify-content: center !important;
    flex-wrap: wrap;
}

/* Footer - Keep as is */
footer {
    width: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-buttons,
    .cta-buttons {
        gap: 1rem;
    }
    
    .hero-stats {
        gap: 2rem;
    }
    
    .service-card,
    .why-card,
    .case-study-card {
        max-width: 100%;
    }
    
    .services-grid,
    .why-grid,
    .case-studies-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-buttons,
    .cta-buttons {
        flex-direction: column;
        width: 100%;
        align-items: center;
    }
    
    .hero-buttons .btn,
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 2rem;
    }
}
