/* Base Styles & Typography */
:root {
    /* Brand Colors from Logo */
    --primary-color: #143567;      /* Dark Blue */
    --secondary-color: #3898D7;    /* Lighter Blue */
    --dark-bg: #143567;            /* Using Dark Blue for dark sections */
    --light-bg: #F3F4F6;           /* Light Gray/Off-White Background */
    --text-dark: #1A1E24;          /* Nearly Black text for readability */
    --text-light: #fff;
    --font-family: 'Poppins', sans-serif;
    --border-color: #d1d1d1;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--light-bg);
    font-size: 16px; 
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-padding {
    padding: 40px 0;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, border-color 0.3s;
    text-transform: uppercase;
    font-size: 0.8em;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: #0d2340; /* Slightly darker shade of primary */
    border-color: #0d2340;
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-light);
    border: 2px solid var(--secondary-color);
}

.btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color); /* Primary color text on accent background */
}

.btn-primary-alt {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: none;
}
.btn-primary-alt:hover {
    background-color: #2e83c7; /* Slightly darker shade of secondary */
}

/* --- Header & Navigation --- */
.main-header {
    background: var(--text-light);
    border-bottom: 1px solid #eee;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.logo {
    font-size: 1.8em; 
    font-weight: 700;
    color: var(--primary-color);
    width: 20%;
}

.logo img {
    display: block;
    margin: auto;
    width: 50%;
}

.main-nav {
        /* display: none;  */
        width:100%;
        font-size: 1em
        /* order: 3; */
}

.main-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;

}

.main-nav li a {
    text-decoration: none;
    color: var(--text-dark);
    padding: 0 15px;
    font-weight: 500;
    transition: color 0.3s;

}

.main-nav li a:hover {
    color: var(--secondary-color);
}

/* --- Hero Section --- */
.hero-section {
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    color: var(--text-light);
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5); /* Dark overlay */
    z-index: 1;
}

.hero-content {
    z-index: 2;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3.2em;
    margin-bottom: 15px;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Expertise Section --- */
.expertise-section h2 {
    text-align: center;
    font-size: 2.2em;
    margin-bottom: 50px;
    font-weight: 600;
}

.casestudies-section h2 {
    text-align: center;
    font-size: 2.2em;
    margin-bottom: 50px;
    font-weight: 600;
}

.case-study-card {
    padding: 20px;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.expertise-card {
    background: var(--text-light);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.expertise-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.expertise-card .icon {
    font-size: 3em;
    color: var(--secondary-color); /* Accent color for icons */
    margin-bottom: 15px;
}

.expertise-card h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
    font-weight: 600;
}

.profile-description h2 {
    margin-bottom: 50px;
    font-size: 2.2em;
    font-weight: 600;
}
.learn-more {
    display: inline-block;
    margin-top: 15px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

/* --- CTA Block (Dark Section) --- */
.bg-dark {
    background-color: var(--dark-bg);
    color: var(--text-light);
    text-align: center;
}

.cta-block h3 {
    font-size: 2em;
    margin-bottom: 10px;
    font-weight: 600;
}

.cta-block p {
    font-size: 1.1em;
    margin-bottom: 30px;
}

/* --- Footer --- */
.main-footer {
    background: var(--dark-bg);
    color: #ccc;
    padding: 20px 0;
    font-size: 0.9em;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    padding: 0 10px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.container-about {
    /* display: grid; */
    display: flex;
    /* grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); */
    gap: 30px;
    padding: 20px;
    align-items: center;
    justify-content: center;
}


.profile-image {
    width: 100%;
    padding: 10px;
}

.profile-image img {
    width: 100%;
}

.profile-description{
    width: 100%;
}

.case-study-card{
    width:49%;

    background: var(--text-light);
    padding: 1vh;
    margin: 0.5vh;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    text-align: left;
    transition: transform 0.3s, box-shadow 0.3s;

    /* border-radius: 10px;
    border-color: var(--border-color);
    border-style: dotted;
    border-width: 1px;
    margin: 0.5vh; */
}

.case-study-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}
.case-studies-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
}


/* -------------------------------------------------------------------------- */
/* MOBILE RESPONSIVENESS (Media Queries)       */
/* -------------------------------------------------------------------------- */

/*
* 1. Small Tablets and Large Phones (max-width: 768px)
*/
@media (max-width: 767px) {
    
    .section-padding {
        padding: 50px 0; /* Reduce vertical padding */
    }

    /* --- Header & Navigation Cleanup --- */
    .header-content {
        flex-wrap: wrap; 
    }

    .logo {
        font-size: 1.8em; 
        font-weight: 700;
        color: var(--primary-color);
        width: 40%;
    }

    .main-nav {
        /* display: none;  */
        width:100%;
        font-size: 0.5em
        /* order: 3; */
    }

    .main-nav li {
        width: 100%; /* Crucial: Make the list item fill the space */
        text-align: center;
    }

    .main-nav li a {
        display: block;
        padding: 10px 0;
        border-bottom: 1px solid var(--light-bg);
        width: 100%; /* Crucial: Make the link clickable across the full width */
    }

    .btn-primary {
        /* Make the main CTA button smaller and fit */
        padding: 8px 15px;
        font-size: 0.65em;
    }
    
    /* --- Hero Section Typography Scaling --- */
    .hero-content h1 {
        font-size: 2.2em;
    }
    .hero-content p {
        font-size: 1em;
    }

    /* --- Expertise Grid Fix (Switch to single column) --- */
    .expertise-grid {
        grid-template-columns: 1fr; /* Switch to one column */
    }
    
    .expertise-section h2 {
        font-size: 1.6em;
    }

    .casestudies-section h2 {
        font-size: 1.6em;
    }

    .profile-description h2 {
    font-size: 1.6em;
}
    
    /* --- Footer Cleanup --- */
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .footer-links {
        margin-top: 10px;
    }

    .container-about p {
        font-size: 0.8em;
    }

    .container-about h1 {
        font-size: 1em;
    }

    .container-about {
        /* display: grid; */
        display: flex;
        /* grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); */
        gap: 1%;
        padding: 5%;
    }
    
    .case-study-card{
        width:100%;
    }
}


/*
* 2. Small Phones (max-width: 576px)
*/
@media (max-width: 576px) {
    .logo {
        font-size: 1.4em;
        width: 40%;
    }

    .header-content {
        /* Stack logo and CTA button on top of each other */
        flex-direction: column;
    }

    .btn-primary {
        margin-top: 10px; /* Space out the button from the logo */
        width: 100%; /* Make button full width */
        text-align: center;
    }

    .hero-content h1 {
        font-size: 1.5em; /* Final scaling for hero heading */
    }

    .expertise-section h2 {
        font-size: 1.4em;
    }

    .casestudies-section h2 {
        font-size: 1.4em;
    }

    .profile-description h2 {
    font-size: 1.4em;
}
    
    .cta-block h3 {
        font-size: 1.3em;
    }
    
    .btn-secondary {
        /* Make hero buttons full width on small screens */
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }

    .main-nav li {
        width: 100%; /* Crucial: Make the list item fill the space */
        text-align: center;
        font-size:1.2em;
    }

    .main-nav li a {
        display: block;
        padding: 10px 0;
        border-bottom: 1px solid var(--light-bg);
        width: 100%; /* Crucial: Make the link clickable across the full width */
    }

    .case-study-card{
        width:100%;
    }
}