:root {
    --primary-color: #0d47a1;
    /* Deeper, richer blue */
    --primary-hover: #1565c0;
    --secondary-color: #f8fafc;
    /* Softer, cooler gray */
    --text-color: #1e293b;
    /* Slate dark gray for better reading constraint */
    --text-light: #64748b;
    /* Lighter slate */
    --white: #ffffff;
    --accent-color: #e0f2fe;
    --font-main: 'Outfit', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.7;
    /* Increased for better readability */
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    letter-spacing: -0.01em;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    object-fit: contain;
    display: block;
}

.nav-list {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-list a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-color);
    transition: var(--transition);
}

.nav-list a:hover {
    color: var(--primary-color);
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    color: var(--white) !important;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color) !important;
    padding: 8px 22px;
    border-radius: 6px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-secondary:hover {
    background-color: var(--accent-color);
}

/* Hero Section */
.hero {
    padding: 180px 0 120px;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7)), url('images/hero-bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    text-align: center;
    color: var(--white);
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--white);
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.hero-light {
    display: block;
    font-weight: 300;
    font-size: 2.2rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 10px 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.35rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* Section Common */
section {
    padding: 100px 0;
}

.section-title {
    text-align: left;
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-color);
    letter-spacing: -0.02em;
}

.section-subtitle {
    text-align: left;
    color: var(--text-light);
    margin-bottom: 60px;
    font-size: 1.15rem;
    line-height: 1.8;
}

.category-title {
    text-align: left;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.category-subtitle {
    text-align: left;
    color: var(--text-light);
    margin-bottom: 40px;
    font-size: 1.05rem;
    max-width: 1000px;
}

/* Category Divider */
.category-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 80px 0;
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.category-divider::before,
.category-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.category-divider::before {
    margin-right: 20px;
    background: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.1));
    height: 1px;
    border: none;
}

.category-divider::after {
    margin-left: 20px;
    background: linear-gradient(to left, transparent, rgba(0, 0, 0, 0.1));
    height: 1px;
    border: none;
}

/* About Section */
.about {
    background-color: var(--white);
}

.about-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.about-content .section-title {
    text-align: left;
}

.about-image img {
    width: 100%;
    height: 100%;
    max-height: 600px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    /* Reduced from 30px to compress height */
    margin-top: 30px;
    /* Reduced from 40px */
}

.feature-card {
    padding: 25px 30px;
    /* Reduced from 35px */
    border-radius: 16px;
    background-color: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.feature-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
    border-color: rgba(13, 71, 161, 0.1);
    /* Subtle primary color tint */
}

.feature-card .icon {
    font-size: 2rem;
    background-color: var(--accent-color);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: #1a1a1a;
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 15px;
    /* Added spacing for link */
}

/* Card Links */
.card-link {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

.card-link:hover {
    color: var(--primary-hover);
    text-decoration: underline;
    transform: translateX(3px);
}

/* Services Section */
.services {
    background-color: #f8f9fa;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.service-card {
    background-color: var(--white);
    padding: 30px 20px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-top: 5px solid var(--primary-color);
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    margin-bottom: 20px;
}

.service-icon img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.service-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.service-card h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.badge {
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.service-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Partnership CTA Section */
.cta-banner {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
    margin-top: 60px;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 35px;
}

/* Process Pipeline Section */
.process {
    background-color: var(--white);
    padding: 100px 0;
}

.process-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.process-tab {
    background-color: var(--secondary-color);
    border: 2px solid transparent;
    color: var(--text-color);
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.process-tab:hover {
    background-color: #e2e8f0;
}

.process-tab.active {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.process-pipeline-container {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.process-pipeline-container.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pipeline-title {
    text-align: center;
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 40px;
    font-weight: 700;
}

.process-pipeline {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding-top: 20px;
}

.process-step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 2;
    padding: 0 15px;
}

.step-icon {
    width: 70px;
    height: 70px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px;
    box-shadow: 0 0 0 8px var(--accent-color);
    transition: var(--transition);
}

.process-step:hover .step-icon {
    transform: scale(1.1);
    box-shadow: 0 0 0 12px var(--accent-color);
}

.step-content h4 {
    color: var(--text-color);
    font-size: 1.25rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.step-content p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

.process-line {
    flex: 0.5;
    height: 3px;
    background-color: var(--accent-color);
    margin-top: 35px;
    /* Align with middle of icons */
    z-index: 1;
}

/* Quality Control Section */
.quality {
    background-color: var(--secondary-color);
    padding: 100px 0;
}

.quality-container {
    max-width: 900px;
    /* Narrower for better reading text blocks */
}

.quality-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.quality-list li {
    display: flex;
    gap: 25px;
    background-color: var(--white);
    padding: 35px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    border-left: 5px solid var(--primary-color);
    transition: var(--transition);
}

.quality-list li:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(5px);
}

.q-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
    margin-top: -5px;
}

.quality-list h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 8px;
}

.quality-list p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.7;
}

/* Leadership Section */
.leadership {
    background-color: var(--white);
    padding: 60px 0;
}

.leadership-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.leader-card {
    background-color: var(--secondary-color);
    padding: 35px 25px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.leader-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.leader-header {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 85px;
    /* Fixed height to force border alignment */
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--accent-color);
}

.leader-card h3 {
    font-size: 1.25rem;
    color: var(--text-color);
    margin-bottom: 5px;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px;
}

.degree {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

.leader-role {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
}

.leader-creds {
    list-style: none;
    padding-left: 0;
}

.leader-creds li {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 8px;
    padding-left: 15px;
    position: relative;
    line-height: 1.5;
}

.leader-creds li::before {
    content: '•';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-size: 1.2rem;
    line-height: 1.4;
}

/* Footer */
.footer {
    background-color: #0f172a;
    /* Deep slate blue for a more professional look */
    color: var(--white);
    padding: 80px 0 30px;
    font-size: 0.95rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-col h4 {
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-desc {
    color: #94a3b8;
    /* Slate light */
    line-height: 1.8;
}

.links-col ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.links-col a {
    color: #94a3b8;
    transition: var(--transition);
}

.links-col a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-info li {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    color: #94a3b8;
}

.c-icon {
    font-size: 1.2rem;
    line-height: 1.2;
}

.contact-info a {
    color: #94a3b8;
    transition: var(--transition);
}

.contact-info a:hover {
    color: var(--white);
}

/* Footer Bottom Bar */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #64748b;
    font-size: 0.85rem;
}

.legal-links {
    display: flex;
    gap: 20px;
}

.legal-links a {
    transition: var(--transition);
}

.legal-links a:hover {
    color: var(--white);
}

/* Responsive */
@media (max-width: 968px) {
    .about-container {
        grid-template-columns: 1fr;
    }

    .about-image {
        order: -1;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .brand-col {
        grid-column: 1 / -1;
        /* Make brand span full width on tablet */
    }

    .leadership-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .process-pipeline {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .process-line {
        display: none;
    }

    .process-step {
        width: 100%;
        max-width: 400px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .services-grid,
    .leadership-grid {
        grid-template-columns: 1fr;
    }

    .header-container {
        flex-direction: column;
        height: auto;
        padding: 15px 20px;
    }

    .nav-list {
        margin-top: 15px;
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-list a {
        white-space: nowrap;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
}