:root {
    --bg-color: #ffffff;
    --text-color: #1a1a1a;
    --primary-color: #0055ff;
    --primary-hover: #0044cc;
    --secondary-bg: #f5f7fa;
    --border-color: #e0e5eb;
    --card-bg: #ffffff;
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.04), 0 5px 15px rgba(0, 0, 0, 0.08);
    --heading-color: #1a202c;
    --subtle-text: #5c677b;
}

.dark-theme {
    --bg-color: #121212;
    --text-color: #e0e0e0;
    --secondary-bg: #1a1a1a;
    --border-color: #2a2a2a;
    --card-bg: #1f1f1f;
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 5px 15px rgba(0, 0, 0, 0.2);
    --heading-color: #ffffff;
    --subtle-text: #a0aec0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
}

body.nav-open {
    overflow: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

h1, h2, h3 {
    font-family: 'Poppins', sans-serif;
    color: var(--heading-color);
    font-weight: 600;
}

h1 { font-size: 3rem; margin-bottom: 1rem; line-height: 1.2; }
h2 { font-size: 2.5rem; margin-bottom: 2rem; text-align: center; }
h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }

p {
    margin-bottom: 1rem;
    color: var(--subtle-text);
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 85, 255, 0.3);
}

.section {
    padding: 80px 0;
}

.section-light {
    background-color: var(--secondary-bg);
}

.main-header {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s, border-color 0.3s;
}

.dark-theme .main-header {
    background-color: rgba(18, 18, 18, 0.8);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--heading-color);
    text-decoration: none;
}

.logo span {
    color: var(--primary-color);
}

.nav-container {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

.theme-switcher {
    cursor: pointer;
    background: none;
    border: none;
    color: var(--subtle-text);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
}

.material-symbols-outlined { font-size: inherit; }
.theme-switcher .moon-icon { display: none; }
.dark-theme .theme-switcher .sun-icon { display: none; }
.dark-theme .theme-switcher .moon-icon { display: block; }

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 2rem;
    cursor: pointer;
    z-index: 1001;
}

.hero {
    padding: 100px 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem auto;
    color: var(--subtle-text);
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.expertise-card {
    background-color: var(--card-bg);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.expertise-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.dark-theme .expertise-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.expertise-icon {
    font-size: 44px;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-variation-settings: 'wght' 300;
}

.expertise-card p {
    flex-grow: 1;
}

.expertise-card a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    margin-top: 1rem;
}

.expertise-card a:hover {
    text-decoration: underline;
}

.locations-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4rem;
}

.locations-text, .locations-list {
    flex: 1;
    min-width: 300px;
}

.locations-text {
    text-align: center;
}

.locations-text h2 {
    text-align: center;
}

.locations-text .btn-primary {
    margin-top: 1rem;
}

.locations-list ul {
    list-style: none;
    padding: 0;
}

.locations-list li {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--heading-color);
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.locations-list li:last-child {
    border-bottom: none;
}

.location-icon {
    color: var(--primary-color);
}

.cta-section {
    background: linear-gradient(45deg, var(--primary-color), #007bff);
    color: #fff;
    text-align: center;
    border-radius: 16px;
    padding: 4rem 2rem;
}

.cta-section h2, .cta-section p {
    color: #fff;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-cta {
    background-color: #fff;
    color: var(--primary-color);
    padding: 14px 32px;
    font-size: 1.1rem;
    margin-top: 1.5rem;
}

.btn-cta:hover {
    background-color: #f0f0f0;
}

.footer {
    background-color: var(--secondary-bg);
    padding: 60px 0 20px 0;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--heading-color);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-col p, .footer-col ul li {
    color: var(--subtle-text);
    margin-bottom: 0.8rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col a {
    color: var(--subtle-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--subtle-text);
}

@media (max-width: 992px) {
    .mobile-menu-toggle {
        display: block;
    }

    .nav-container {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background-color: var(--bg-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    
    body.nav-open .nav-container {
        right: 0;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 2rem;
    }
    .nav-link { font-size: 1.2rem; }
    .nav-cta-desktop { display: none; }
    
    .nav-container .btn-primary { display: block; }
    .nav-container .theme-switcher { margin-top: 1rem; }
}

@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 2rem; }
    .section { padding: 60px 0; }
    .hero { padding: 80px 0; }
    .locations-content { flex-direction: column; }
    .expertise-grid { grid-template-columns: 1fr; }
}