/* ==========================================================================
   HOMEPAGE CSS - STRICT MATCH TO REFERENCE
   ========================================================================== */

:root {
    --container-width: 1320px;
    --section-padding: 100px;
    --gap-size: 32px;
    
    /* Typography */
    --font-heading: 'Manrope', sans-serif;
    --font-body: 'Inter', sans-serif;
    --h1-size: 56px;
    --h2-size: 42px;
    --h3-size: 28px;
    --body-size: 18px;
    --btn-size: 16px;
    
    /* Colors */
    --color-blue: #0056b3;
    --color-blue-gradient: linear-gradient(135deg, #0056b3 0%, #007bff 100%);
    --color-navy: #0a192f;
    --color-dark: #1e293b;
    --color-gray: #64748b;
    --color-light-gray: #f8fafc;
    --color-white: #ffffff;
    --color-border: #e2e8f0;
}

/* Base Styles */
body {
    font-family: var(--font-body);
    font-size: var(--body-size);
    color: var(--color-gray);
    line-height: 1.6;
    margin: 0;
    background-color: var(--color-white);
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--color-dark);
    margin: 0 0 16px 0;
    line-height: 1.2;
    font-weight: 700;
}

h1 { font-size: var(--h1-size); }
h2 { font-size: var(--h2-size); }
h3 { font-size: var(--h3-size); font-size: 20px; /* adjusted for cards */ }

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.text-blue { color: var(--color-blue); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    font-size: var(--btn-size);
    font-family: var(--font-body);
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: var(--color-blue-gradient);
    color: var(--color-white);
    border: none;
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 86, 179, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--color-blue);
    border: 2px solid var(--color-blue);
}

.btn-outline:hover {
    background: var(--color-blue-gradient);
    color: var(--color-white);
    border-color: transparent;
}

/* Common Section Styles */
section { padding: var(--section-padding) 0; }
.section-subtitle {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-blue);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}
.section-title { margin-bottom: 40px; }
.section-top-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 48px;
}
.text-link {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-blue);
    text-decoration: none;
    margin-bottom: 40px;
}
.text-link:hover { text-decoration: underline; }

/* HERO SECTION */
.section-hero {
    padding-top: 120px;
    padding-bottom: 60px;
    background-image: url(https://digitalmarketingcompanychandiagarh.in/wp-content/uploads/2026/08/3ce2c093-55c8-440e-9ef8-cff3c4c5142c.webp);
    background-position: center;
    background-size: cover;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gap-size);
    align-items: center;
}
.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background: #eef2ff;
    color: var(--color-blue);
    font-size: 14px;
    font-weight: 700;
    border-radius: 50px;
    margin-bottom: 24px;
}
.hero-title { margin-bottom: 24px; letter-spacing: -1px; }
.hero-desc { font-size: 20px; margin-bottom: 40px; max-width: 90%; }
.hero-actions { display: flex; gap: 16px; }

.hero-visual { position: relative; }
.main-hero-img { width: 100%; height: auto; display: block; border-radius: 16px; }

/* Floating Cards in Hero */
.float-card {
    position: absolute;
    background: var(--color-white);
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
.float-top-left { top: 20%; left: 0%; }
.float-top-right { top: 10%; right: -5%; }
.float-bottom-right { bottom: 20%; right: 5%; }
.card-title { font-size: 12px; font-weight: 600; color: var(--color-dark); margin-bottom: 8px; }
.card-value { font-size: 24px; font-weight: 700; font-family: var(--font-heading); }
.text-green { color: #10b981; }
.chart-line { width: 80px; height: 30px; display: block; margin-top: 8px; }

/* Hero Stats Box */
.hero-stats-wrapper {
    display: flex;
    justify-content: space-between;
    background: var(--color-white);
    padding: 32px 48px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
    margin-top: -40px; /* Pull up over background */
    position: relative;
    z-index: 10;
}
.stat-item { display: flex; align-items: center; gap: 16px; }
.stat-icon svg { width: 24px; height: 24px; color: var(--color-blue); }
.stat-num { font-size: 28px; font-weight: 700; color: var(--color-dark); font-family: var(--font-heading); line-height: 1; }
.stat-label { font-size: 14px; color: var(--color-gray); }

/* PARTNER LOGOS */
.section-partners { padding: 0 0 var(--section-padding) 0; }
.partner-logos-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--color-white);
    padding: 40px 60px;
    border-radius: 16px;
    border: 1px solid var(--color-border);
}
.partner-logos-box img { height: 80px; object-fit: contain; filter: grayscale(1); opacity: 0.7; transition: 0.3s; }
.partner-logos-box img:hover { filter: grayscale(0); opacity: 1; }

/* SERVICES GRID */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--gap-size);
}
.service-card {
    background: var(--color-white);
    padding: 32px 24px;
    border-radius: 16px;
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
}
.service-card:hover {
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
    border-color: var(--color-blue);
    transform: translateY(-5px);
}
.s-icon {
    width: 48px; height: 48px;
    background: #eef2ff;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: var(--color-blue);
    margin-bottom: 24px;
}
.s-icon svg { width: 24px; height: 24px; }
.s-title { font-size: 18px; margin-bottom: 12px; }
.s-desc { font-size: 15px; margin: 0; }

/* ABOUT SECTION */
.section-about { background: var(--color-white); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-img-wrapper { position: relative; border-radius: 24px; overflow: hidden; }
.about-img-wrapper img { width: 100%; height: auto; display: block; }
.exp-badge {
    position: absolute;
    bottom: 0; left: 0;
    background: var(--color-white);
    padding: 24px;
    border-top-right-radius: 24px;
    display: flex; flex-direction: column;
}
.exp-num { font-size: 48px; font-weight: 700; font-family: var(--font-heading); line-height: 1; }
.exp-text { font-size: 14px; font-weight: 600; color: var(--color-dark); }
.about-features { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 40px; }
.f-item { display: flex; gap: 16px; }
.f-icon svg { width: 24px; height: 24px; color: var(--color-blue); }
.f-text h4 { font-size: 16px; margin-bottom: 8px; }
.f-text p { font-size: 14px; margin: 0; }
.mt-32 { margin-top: 32px; }

/* WHY CHOOSE US */
.section-whyus { background: var(--color-navy); }
.white-text { color: var(--color-white); }
.whyus-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
    margin-top: 64px;
}
.why-item { text-align: center; }
.w-icon {
    width: 64px; height: 64px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px auto;
    color: var(--color-white);
}
.w-icon svg { width: 28px; height: 28px; }
.why-item h4 { color: var(--color-white); font-size: 16px; font-weight: 500; line-height: 1.4; }

/* TESTIMONIALS */
.section-testimonials { background: var(--color-white); overflow: hidden; }
.section-top-flex.justify-center { justify-content: center; position: relative; }
.pos-right { position: absolute; right: 0; bottom: 0; margin-bottom: 0; }
.testimonials-slider { position: relative; display: flex; align-items: center; gap: 24px; }
.slider-arrow {
    background: var(--color-white); border: 1px solid var(--color-border);
    width: 48px; height: 48px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: 0.3s;
}
.slider-arrow:hover { background: var(--color-blue); color: white; border-color: var(--color-blue); }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap-size); flex: 1; }
.testimonial-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    padding: 40px; border-radius: 16px;
    text-align: left; position: relative;
}
.stars { color: #fbbf24; font-size: 20px; margin-bottom: 16px; }
.quote-icon { position: absolute; top: 40px; right: 40px; font-size: 60px; color: #f1f5f9; font-family: serif; line-height: 1; }
.t-text { font-size: 16px; margin-bottom: 32px; position: relative; z-index: 2; }
.client-meta { display: flex; align-items: center; gap: 16px; }
.client-meta img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.client-info h4 { margin: 0 0 4px 0; font-size: 16px; }
.client-info span { font-size: 14px; }
.slider-dots { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #cbd5e1; }
.dot.active { background: var(--color-blue); width: 24px; border-radius: 4px; }

/* OUR WORK */
.section-work { background: var(--color-white); }
.margin-auto { margin: 0 auto; }
.work-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.work-card { background: var(--color-white); text-align: center; }
.work-img { border-radius: 16px; overflow: hidden; margin-bottom: 16px; aspect-ratio: 4/3; }
.work-img img { width: 100%; height: 100%; object-fit: cover; transition: 0.3s; }
.work-card:hover .work-img img { transform: scale(1.05); }
.work-title { font-size: 16px; margin: 0; font-weight: 700; line-height: 1.4; }

/* CLIENTS */
.section-clients { padding-top: 60px; padding-bottom: 120px; }
.clients-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 40px; align-items: center; margin-top: 48px; }
.clients-grid img { width: 100%; height: auto; opacity: 0.6; filter: grayscale(1); transition: 0.3s; }
.clients-grid img:hover { opacity: 1; filter: grayscale(0); }

/* CTA SECTION */
.section-cta {
    background: var(--color-blue-gradient);
    padding: 80px 0 0 0;
    overflow: hidden;
    position: relative;
}
.cta-content { margin-bottom: 40px; }
.cta-title { color: var(--color-white); font-size: 48px; margin-bottom: 24px; }
.cta-desc { color: rgba(255,255,255,0.9); font-size: 20px; margin-bottom: 40px; }
.btn-cta { background: #fb923c; color: white; box-shadow: 0 10px 25px rgba(251,146,60,0.3); border: none; }
.btn-cta:hover { background: #f97316; transform: translateY(-3px); }
.cta-image { display: block; margin: 0 auto; max-width: 800px; width: 100%; height: auto; transform: translateY(20px); }

/* CONTACT SECTION */
.section-contact { background: var(--color-white); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.contact-desc { margin-bottom: 40px; font-size: 18px; }
.contact-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 24px; }
.contact-list li { display: flex; align-items: center; gap: 16px; }
.c-icon { width: 48px; height: 48px; background: #eef2ff; color: var(--color-blue); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.c-icon svg { width: 24px; height: 24px; }
.contact-list span { display: block; font-size: 14px; margin-bottom: 4px; }
.contact-list strong { color: var(--color-dark); font-size: 16px; }

.contact-form {
    background: var(--color-white);
    padding: 48px;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.form-group { margin-bottom: 24px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; color: var(--color-dark); margin-bottom: 8px; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 16px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 16px;
    transition: 0.3s;
    box-sizing: border-box;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--color-blue); box-shadow: 0 0 0 3px rgba(0,86,179,0.1); }
.submit-btn { width: 100%; border-radius: 8px; font-size: 18px; padding: 18px; }

/* ANIMATIONS */
.fade-up { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* RESPONSIVE */
@media (max-width: 1200px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .whyus-grid { grid-template-columns: repeat(3, 1fr); gap: 40px; }
    .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonial-card:nth-child(3) { display: none; }
    .work-grid { grid-template-columns: repeat(2, 1fr); }
    .clients-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 991px) {
    .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
    .hero-visual { margin-top: 60px; }
    .float-card { transform: scale(0.8); }
    .hero-stats-wrapper { flex-wrap: wrap; gap: 24px; padding: 24px; }
    .stat-item { width: calc(50% - 12px); }
    .partner-logos-box { flex-wrap: wrap; justify-content: center; gap: 32px; }
    .section-top-flex { flex-direction: column; align-items: flex-start; gap: 16px; }
    .pos-right, .center-mobile .pos-right { position: relative; }
    .center-mobile { text-align: left; }
    .center-mobile .margin-auto { margin: 0; }
}

@media (max-width: 768px) {
    :root { --section-padding: 60px; --h1-size: 40px; --h2-size: 32px; }
    .services-grid, .whyus-grid, .testimonials-grid, .work-grid { grid-template-columns: 1fr; }
    .testimonial-card:nth-child(2) { display: none; }
    .slider-arrow { display: none; }
    .clients-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-form { padding: 24px; }
    .form-row { grid-template-columns: 1fr; }
}