/* ===== CSS VARIABLES ===== */
:root {
    /* Color Palette */
    --c-deep: #0a1428;
    --c-navy: #1e293b;
    --c-teal: #0891b2;
    --c-blue-light: #1e40af;
    --c-purple: #6366f1;
    --white: #FFFFFF;
    --light-gray: #f8fafc;
    --medium-gray: #94a3b8;
    --dark-gray: #475569;
    
    /* Typography */
    --font-size-sm: 1rem;
    --font-size-base: 1.125rem;
    --font-size-lg: 1.25rem;
    --font-size-xl: 1.5rem;
    --font-size-2xl: 2rem;
    --font-size-3xl: 2.5rem;
    --font-size-5xl: 3.25rem;
    --font-weight-normal: 400;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --line-height-tight: 1.2;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.7;
}

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    color: var(--white);
    min-height: 100vh;
    overflow-x: hidden;
    font-display: swap;
}

/* Prevent font flash by ensuring consistent rendering */
.navbar-brand,
.nav-link,
.btn-demo {
    font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    font-display: swap;
}

/* ===== BACKGROUND ===== */
.bg {
    position: fixed;
    inset: 0;
    z-index: -2;
    background: linear-gradient(135deg, var(--c-deep) 0%, var(--c-navy) 50%, var(--c-blue-light) 100%);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* ===== HERO SECTION ===== */
.about-hero {
    background: rgba(4, 26, 51, 0.3);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    color: var(--white);
    padding: 8rem 0 4rem;
    text-align: center;
}

.about-hero h1 {
    font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    margin-bottom: 1.5rem;
    line-height: var(--line-height-tight);
}

.about-hero h2 {
    font-size: var(--font-size-lg);
    color: var(--light-gray);
    max-width: 600px;
    margin: 0 auto;
    line-height: var(--line-height-relaxed);
    font-weight: var(--font-weight-normal);
}

/* ===== ABOUT SECTION ===== */
.about-section {
    padding: 4rem 0;
    background: #ffffff;
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 5rem;
    align-items: center;
}

.about-text {
    color: var(--c-deep);
}

.about-text h2 {
    font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-normal);
    margin-bottom: 1.5rem;
    line-height: var(--line-height-tight);
    letter-spacing: -0.02em;
    color: var(--c-deep);
}

/* Keep only the first section heading (Our Story) bold */
.about-section:first-of-type .about-text h2 {
    font-weight: var(--font-weight-bold);
}

.about-text p {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #475569;
    margin-bottom: 2rem;
    font-weight: 400;
}

.about-text p:last-child {
    margin-bottom: 0;
}

/* ===== STATS SECTION ===== */
.stats-section {
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 0;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #ffffff;
    border-radius: 0;
    border: 1px solid #f1f5f9;
    transition: all 0.2s ease;
    position: relative;
}

.stat-item:hover {
    transform: translateX(1px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    border-color: var(--c-teal);
    background: #fafbfc;
}

.stat-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--c-deep) 0%, var(--c-navy) 100%);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(10, 20, 40, 0.12);
}

.stat-icon i {
    font-size: 1rem;
    color: var(--white);
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 1rem;
    font-weight: 600;
    color: var(--c-deep);
    margin-bottom: 0.125rem;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.stat-label {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 400;
    line-height: 1.4;
}

/* ===== EXPERTISE SECTION ===== */
.expertise-section {
    padding: 4rem 0;
    background: #ffffff;
}

.expertise-content {
    max-width: 1200px;
    margin: 0 auto;
}

.expertise-header {
    text-align: center;
    margin-bottom: 4rem;
}

.expertise-header h2 {
    font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-normal);
    margin-bottom: 1.5rem;
    line-height: var(--line-height-tight);
    letter-spacing: -0.02em;
    color: var(--c-deep);
}

.expertise-header p {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #475569;
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.expertise-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.expertise-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: var(--c-teal);
}

.expertise-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--c-deep) 0%, var(--c-navy) 100%);
    border-radius: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 0.75rem 0;
    box-shadow: 0 2px 8px rgba(10, 20, 40, 0.15);
    flex-shrink: 0;
}

.expertise-icon i {
    font-size: 1rem;
    color: var(--white);
}

.expertise-item h3 {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--c-deep);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.expertise-item p {
    font-size: 0.875rem;
    color: var(--dark-gray);
    line-height: 1.5;
    margin: 0;
}

/* ===== CLIENTS SECTION ===== */
.clients-section {
    padding: 4rem 0;
    background: #ffffff;
}

.clients-content {
    max-width: 1200px;
    margin: 0 auto;
}

.clients-header {
    text-align: center;
    margin-bottom: 4rem;
}

.clients-header h2 {
    font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-normal);
    margin-bottom: 1.5rem;
    line-height: var(--line-height-tight);
    letter-spacing: -0.02em;
    color: var(--c-deep);
}

.clients-header p {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #475569;
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.client-item {
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 0;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
    position: relative;
}

.client-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    border-color: var(--c-teal);
}

.client-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--c-deep) 0%, var(--c-navy) 100%);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    box-shadow: 0 2px 8px rgba(10, 20, 40, 0.12);
}

.client-icon i {
    font-size: 1.2rem;
    color: var(--white);
}

.client-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--c-deep);
    margin-bottom: 0;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

/* ===== ANIMATIONS ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    animation: slideInLeft 0.8s ease forwards;
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    animation: slideInRight 0.8s ease forwards;
}

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-text h2 {
        font-size: 2rem;
    }

    .about-text p {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .about-section {
        padding: 3rem 0;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .about-hero h1 {
        font-size: 2rem;
    }

    .about-hero h2 {
        font-size: 1.125rem;
    }

    .about-text h2 {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }

    .about-text p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .stats-section {
        padding: 1.5rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .stat-item {
        padding: 0.875rem;
        gap: 0.75rem;
    }

    .stat-icon {
        width: 32px;
        height: 32px;
    }

    .stat-icon i {
        font-size: 0.9rem;
    }

    .stat-number {
        font-size: 0.95rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    .expertise-section {
        padding: 3rem 0;
    }

    .expertise-header h2 {
        font-size: 1.75rem;
        margin-bottom: 1.25rem;
    }

    .expertise-header p {
        font-size: 1rem;
    }

    .expertise-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .expertise-item {
        padding: 1.25rem;
    }

    .expertise-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 1rem;
    }

    .expertise-icon i {
        font-size: 1.1rem;
    }

    .expertise-item h3 {
        font-size: 1.1rem;
        margin-bottom: 0.875rem;
    }

    .expertise-item p {
        font-size: 0.9rem;
    }

    .clients-section {
        padding: 3rem 0;
    }

    .clients-header h2 {
        font-size: 1.75rem;
        margin-bottom: 1.25rem;
    }

    .clients-header p {
        font-size: 1rem;
    }

    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .client-item {
        padding: 1.25rem;
    }

    .client-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 1rem;
    }

    .client-icon i {
        font-size: 1.1rem;
    }

    .client-item h3 {
        font-size: 1.1rem;
    }
}
