/* ============================================================
   Modern Service Page Design System v2.0
   Unified design language for ALL IT service pages
   ============================================================ */

/* ----- CSS Variables ----- */
:root {
    --ms-radius-sm: 8px;
    --ms-radius: 14px;
    --ms-radius-lg: 20px;
    --ms-shadow-sm: 0 2px 12px rgba(0,0,0,0.06);
    --ms-shadow: 0 8px 30px rgba(0,0,0,0.08);
    --ms-shadow-lg: 0 16px 48px rgba(0,0,0,0.10);
    --ms-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   HERO BANNER — Full-width with gradient overlay
   ============================================================ */
.ms-hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7rem 2rem 4rem;
    overflow: hidden;
    text-align: center;
}
.ms-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 20% 80%, rgba(255,255,255,0.06) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 20%, rgba(255,255,255,0.04) 0%, transparent 50%);
    pointer-events: none;
}
.ms-hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}
.ms-hero-badge {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 0.4rem 1.2rem;
    border-radius: 100px;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.1);
    color: #fff;
}
.ms-hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}
.ms-hero h1 span {
    background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(255,255,255,0.5));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.ms-hero p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.85);
    line-height: 1.7;
    max-width: 720px;
    margin: 0 auto 2rem;
}
.ms-hero-stats {
    display: flex;
    gap: 3rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}
.ms-hero-stat {
    text-align: center;
}
.ms-hero-stat h3 {
    font-size: 2.5rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 0.2rem;
    line-height: 1;
}
.ms-hero-stat p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.ms-hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}
.ms-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.85rem 2rem;
    border-radius: var(--ms-radius-sm);
    transition: var(--ms-transition);
    cursor: pointer;
    text-decoration: none;
    border: none;
}
.ms-btn-primary {
    background: #fff;
    color: #1a1a2e;
}
.ms-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.ms-btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.3);
}
.ms-btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.6);
}

/* ============================================================
   SERVICES GRID — Card-based with icon gradients
   ============================================================ */
.ms-services {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}
.ms-services-header {
    text-align: center;
    margin-bottom: 3.5rem;
}
.ms-services-header h2 {
    font-size: 2.4rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}
.ms-services-header p {
    font-size: 1.05rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}
.ms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.75rem;
}
.ms-card {
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: var(--ms-radius);
    padding: 2rem;
    transition: var(--ms-transition);
    position: relative;
    overflow: hidden;
}
.ms-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--card-accent, linear-gradient(90deg, #2563eb, #3b82f6));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}
.ms-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--ms-shadow);
    border-color: #e2e8f0;
}
.ms-card:hover::before {
    transform: scaleX(1);
}
.ms-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    font-size: 1.3rem;
    color: #fff;
    background: var(--card-accent, linear-gradient(135deg, #2563eb, #3b82f6));
}
.ms-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.6rem;
}
.ms-card p {
    font-size: 0.92rem;
    color: #64748b;
    line-height: 1.6;
}

/* ============================================================
   CASE STUDIES — Alternating layout with images
   ============================================================ */
.ms-case-studies {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}
.ms-case-studies-header {
    text-align: center;
    margin-bottom: 4rem;
}
.ms-case-studies-header h2 {
    font-size: 2.4rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 0.75rem;
}
.ms-case-studies-header p {
    color: #64748b;
    font-size: 1.05rem;
}
.ms-case-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
    padding: 2.5rem;
    background: #fff;
    border-radius: var(--ms-radius-lg);
    border: 1px solid #f1f5f9;
    transition: var(--ms-transition);
}
.ms-case-item:hover {
    box-shadow: var(--ms-shadow-lg);
}
.ms-case-item.reverse {
    direction: rtl;
}
.ms-case-item.reverse .ms-case-content {
    direction: ltr;
}
.ms-case-visual {
    border-radius: var(--ms-radius);
    overflow: hidden;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    aspect-ratio: 16/10;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.ms-case-visual-icon {
    font-size: 4rem;
    opacity: 0.3;
}
.ms-case-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.3rem 1rem;
    border-radius: 100px;
    margin-bottom: 1rem;
}
.ms-case-content h3 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}
.ms-case-content .ms-case-metric {
    display: flex;
    gap: 2rem;
    margin: 1.25rem 0;
    flex-wrap: wrap;
}
.ms-case-metric-item h4 {
    font-size: 1.8rem;
    font-weight: 900;
    color: #2563eb;
    line-height: 1;
    margin-bottom: 0.2rem;
}
.ms-case-metric-item span {
    font-size: 0.8rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.ms-case-content p {
    color: #475569;
    line-height: 1.6;
    margin-bottom: 1rem;
}
.ms-case-quote {
    border-left: 3px solid #2563eb;
    padding-left: 1.25rem;
    margin: 1.25rem 0;
    font-style: italic;
    color: #64748b;
    font-size: 0.95rem;
}
.ms-case-quote strong {
    display: block;
    margin-top: 0.5rem;
    font-style: normal;
    font-size: 0.85rem;
    color: #475569;
}

/* ============================================================
   TESTIMONIALS CAROUSEL — Card-based with avatar
   ============================================================ */
.ms-testimonials {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}
.ms-testimonials-header {
    text-align: center;
    margin-bottom: 3.5rem;
}
.ms-testimonials-header h2 {
    font-size: 2.4rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 0.75rem;
}
.ms-testimonials-header p {
    color: #64748b;
    font-size: 1.05rem;
}
.ms-testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 1.75rem;
}
.ms-testimonial-card {
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: var(--ms-radius-lg);
    padding: 2rem;
    transition: var(--ms-transition);
}
.ms-testimonial-card:hover {
    box-shadow: var(--ms-shadow);
    transform: translateY(-4px);
}
.ms-testimonial-stars {
    color: #f59e0b;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    letter-spacing: 0.15em;
}
.ms-testimonial-text {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-style: italic;
}
.ms-testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}
.ms-testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: block;
    flex-shrink: 0;
    overflow: hidden;
    object-fit: cover;
    object-position: center 20%;
    background: #e2e8f0;
}
.ms-testimonial-meta strong {
    display: block;
    font-size: 0.92rem;
    color: #1e293b;
}
.ms-testimonial-meta span {
    font-size: 0.8rem;
    color: #94a3b8;
}

/* ============================================================
   PROCESS / HOW WE WORK — Timeline style
   ============================================================ */
.ms-process {
    padding: 5rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
}
.ms-process-header {
    text-align: center;
    margin-bottom: 4rem;
}
.ms-process-header h2 {
    font-size: 2.4rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 0.75rem;
}
.ms-process-header p {
    color: #64748b;
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}
.ms-process-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    position: relative;
}
.ms-process-step {
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: var(--ms-radius);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: var(--ms-transition);
    position: relative;
}
.ms-process-step:hover {
    transform: translateY(-4px);
    box-shadow: var(--ms-shadow);
}
.ms-process-num {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
}
.ms-process-step h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}
.ms-process-step p {
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.5;
}

/* ============================================================
   WHY CHOOSE US — Icon + benefit cards
   ============================================================ */
.ms-why {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}
.ms-why-header {
    text-align: center;
    margin-bottom: 3.5rem;
}
.ms-why-header h2 {
    font-size: 2.4rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 0.75rem;
}
.ms-why-header p {
    color: #64748b;
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}
.ms-why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}
.ms-why-card {
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: var(--ms-radius);
    padding: 2rem;
    text-align: center;
    transition: var(--ms-transition);
}
.ms-why-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ms-shadow);
}
.ms-why-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 1.4rem;
    color: #fff;
}
.ms-why-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}
.ms-why-card p {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.5;
}

/* ============================================================
   INSIGHTS / BLOG — Card grid with tags
   ============================================================ */
.ms-insights {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}
.ms-insights-header {
    text-align: center;
    margin-bottom: 3rem;
}
.ms-insights-header h2 {
    font-size: 2.4rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 0.75rem;
}
.ms-insights-header p {
    color: #64748b;
    font-size: 1.05rem;
}
.ms-insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}
.ms-insight-card {
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: var(--ms-radius);
    padding: 1.75rem;
    transition: var(--ms-transition);
}
.ms-insight-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ms-shadow);
}
.ms-insight-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.25rem 0.8rem;
    border-radius: 100px;
    margin-bottom: 1rem;
}
.ms-insight-card h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}
.ms-insight-card p {
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.5;
}

/* ============================================================
   CTA BANNER — Full-width gradient
   ============================================================ */
.ms-cta {
    padding: 5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.ms-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.08) 0%, transparent 70%);
    pointer-events: none;
}
.ms-cta h2 {
    font-size: 2.4rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1rem;
    position: relative;
}
.ms-cta p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.85);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.6;
    position: relative;
}
.ms-cta .ms-btn-primary {
    position: relative;
}

/* ============================================================
   TECHNOLOGY STACK — Logo grid
   ============================================================ */
.ms-tech-stack {
    padding: 4rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}
.ms-tech-stack h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 2.5rem;
}
.ms-tech-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem 3rem;
}
.ms-tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    font-size: 2rem;
    color: #64748b;
    transition: var(--ms-transition);
    opacity: 0.6;
}
.ms-tech-item:hover {
    opacity: 1;
    color: #1e293b;
    transform: translateY(-2px);
}
.ms-tech-item span {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ============================================================
   FAQ SECTION
   ============================================================ */
.ms-faq {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 2rem;
}
.ms-faq h2 {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 2.5rem;
}

/* ============================================================
   TRUST BADGES
   ============================================================ */
.ms-trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.5rem;
    padding: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}
.ms-trust-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
}
.ms-trust-badge i {
    font-size: 1.2rem;
    color: #22c55e;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 992px) {
    .ms-case-item {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1.5rem;
    }
    .ms-case-item.reverse {
        direction: ltr;
    }
}
@media (max-width: 768px) {
    .ms-hero {
        min-height: 70vh;
        padding: 6rem 1.25rem 3rem;
    }
    .ms-hero h1 {
        font-size: 1.8rem;
    }
    .ms-hero-stats {
        gap: 1.5rem;
    }
    .ms-hero-stat h3 {
        font-size: 1.8rem;
    }
    .ms-services-header h2,
    .ms-case-studies-header h2,
    .ms-testimonials-header h2,
    .ms-process-header h2,
    .ms-why-header h2,
    .ms-insights-header h2,
    .ms-cta h2 {
        font-size: 1.7rem;
    }
    .ms-grid,
    .ms-testimonial-grid,
    .ms-why-grid,
    .ms-insights-grid {
        grid-template-columns: 1fr;
    }
    .ms-process-timeline {
        grid-template-columns: 1fr 1fr;
    }
    .ms-case-visual {
        aspect-ratio: 4/3;
    }
    .ms-tech-grid {
        gap: 1.5rem 2rem;
    }
}
@media (max-width: 480px) {
    .ms-process-timeline {
        grid-template-columns: 1fr;
    }
    .ms-hero-actions {
        flex-direction: column;
        align-items: center;
    }
    .ms-case-metric {
        gap: 1rem;
    }
}
