/* --- General Styles & Variables --- */
:root {
    --primary-color: #394144;
    --secondary-color: #80979b;
    --accent-color: #addce4;
    --light-color: #F7F7F7;
    --dark-color: #0B2447;
    --text-color: #333;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    line-height: 1.6;
    background-color: var(--light-color);
    color: var(--text-color);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    color: var(--dark-color);
    line-height: 1.2;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
}

/* --- Header & Navigation --- */
header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

header ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

header a {
    font-weight: 500;
    transition: color 0.3s ease;
}

header a:hover, header a.active {
    color: var(--accent-color);
}

/* --- Hero Section (Homepage) --- */
.hero {
    background-color: var(--primary-color);
    color: #fff;
    padding: 6rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    color: #fff;
    margin-bottom: 1rem;
}

.hero .subtitle {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem auto;
    opacity: 0.9;
}

.cta-button {
    background-color: var(--accent-color);
    color: #fff;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: var(--secondary-color);
}

/* --- Services Section (Homepage) --- */
.services {
    padding: 4rem 0;
    text-align: center;
}

.services h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    text-align: left;
}

.service-card {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border-left: 5px solid var(--accent-color);
}

.service-card h3 {
    margin-top: 0;
    color: var(--primary-color);
}

/* --- New Detailed Expertise Section --- */
.expertise-details {
    padding: 4rem 0;
    background-color: #fff;
}

.expertise-details .section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
}

.expertise-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
}

/* Alternate layout for every second item */
.expertise-item:nth-child(even) {
    grid-template-columns: 1fr 1fr;
}
.expertise-item:nth-child(even) .expertise-image {
    order: 2;
}


.expertise-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.expertise-text h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* --- Scroll Animation --- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* --- Generic Page Styles (About, Contact) --- */
.page-header {
    padding: 3rem 0;
    text-align: center;
    border-bottom: 1px solid #ddd;
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 2.8rem;
}

.page-header .subtitle {
    font-size: 1.1rem;
    color: #666;
}

.content {
    padding-bottom: 4rem;
}

.content ul {
    padding-left: 20px;
}

.content li {
    margin-bottom: 0.5rem;
}

.contact-info {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #eee;
    margin-top: 2rem;
    display: inline-block;
}

.contact-info p {
    margin: 0;
}

.contact-info a {
    font-weight: bold;
}

/* --- Footer --- */
footer {
    background-color: var(--dark-color);
    color: #fff;
    text-align: center;
    padding: 2rem 0;
    margin-top: 2rem;
}

footer p {
    margin: 0;
    opacity: 0.8;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    .expertise-item, .expertise-item:nth-child(even) {
        grid-template-columns: 1fr;
    }
    .expertise-item:nth-child(even) .expertise-image {
        order: 1; /* Reset order for mobile */
    }
    .expertise-text {
        text-align: center;
    }
}