:root {
    --bg-main: #FAFAFA;
    --bg-surface: #FFFFFF;
    --bg-alt: #F3F4F6;
    --border-color: #E5E7EB;
    --text-primary: #111827;
    --text-secondary: #4B5563;
    --text-muted: #9CA3AF;
    --accent: #2563EB;
    --accent-hover: #1D4ED8;
    --accent-light: #EFF6FF;
    
    --font-body: 'DM Sans', system-ui, sans-serif;
    --font-heading: 'Syne', system-ui, sans-serif;
    
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-sm: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
    --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.05), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.05), 0 8px 10px -6px rgb(0 0 0 / 0.05);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, .logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.1;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    letter-spacing: -0.04em;
    margin-bottom: 2rem;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
}

h3 {
    font-size: 1.5rem;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

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

a:hover {
    color: var(--accent-hover);
}

.accent-text {
    color: var(--accent);
    position: relative;
    display: inline-block;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 5%;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 100;
    transition: var(--transition);
    background: transparent;
    border-bottom: 1px solid transparent;
}

nav.scrolled {
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo img {
    height: 48px;
    width: auto;
    object-fit: contain;
    filter: invert(1); /* Invert since original was for dark mode */
}

.logo-text {
    font-size: 1.5rem;
    color: var(--text-primary);
    text-transform: none;
}

.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.5rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 3rem;
    align-items: center;
}

.nav-links a {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.nav-links a:hover {
    color: var(--accent);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.25rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    border-radius: 999px; /* Pill shape */
}

.btn-primary {
    background: var(--accent);
    color: white !important;
    box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.39);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.23);
}

.btn-secondary {
    background: var(--bg-surface);
    color: var(--text-primary) !important;
    border-color: var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-alt);
    border-color: var(--text-primary);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 10rem;
    padding-bottom: 6rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-light) 0%, rgba(255,255,255,0) 70%);
    z-index: -1;
    border-radius: 50%;
}

.hero-content {
    max-width: 1000px;
    position: relative;
    z-index: 2;
}

.hero-desc {
    color: var(--text-secondary);
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    max-width: 800px;
    margin-bottom: 3rem;
    line-height: 1.8;
}

.cta-group {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 6rem;
}

.metrics-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    border-top: 1px solid var(--border-color);
    padding-top: 4rem;
}

.metric-block {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.metric-value {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--text-primary);
}

.metric-label {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.5;
}

/* Expertise Section */
.expertise {
    padding: 8rem 0;
    background-color: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.section-title {
    max-width: 700px;
    margin-bottom: 5rem;
}

.section-title p {
    color: var(--text-secondary);
    font-size: 1.25rem;
    margin-top: 1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.service-card {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    padding: 3rem 2.5rem;
    border-radius: var(--radius-lg);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    background: var(--bg-surface);
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

.service-header {
    margin-bottom: 2rem;
}

.service-intro {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.service-list {
    list-style: none;
}

.service-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.service-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent);
    font-weight: bold;
    background: var(--accent-light);
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.7rem;
}

.service-list strong {
    color: var(--text-primary);
}

/* Contact Section */
.contact {
    padding: 8rem 0;
    background-color: var(--bg-alt);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    background: var(--bg-surface);
    padding: 4rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.mb-2 {
    margin-bottom: 3rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Form Styles */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.form-group label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

input, textarea {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    padding: 1.25rem;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--bg-surface);
    box-shadow: 0 0 0 4px var(--accent-light);
}

input::placeholder, textarea::placeholder {
    color: var(--text-muted);
}

.submit-btn {
    align-self: flex-start;
    margin-top: 1rem;
    padding: 1.25rem 3rem;
}

/* Contact Info Sidebar */
.contact-info {
    padding: 3rem;
    background: var(--bg-main);
    border-radius: var(--radius-md);
    height: fit-content;
}

.contact-info h3 {
    margin-bottom: 1rem;
}

.office-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 3rem;
    line-height: 1.7;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.c-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    font-weight: 700;
}

.contact-item p {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 500;
}

.contact-item a {
    color: var(--accent);
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--border-color);
    padding: 6rem 0 3rem;
    background-color: var(--text-primary);
    color: #fff;
}

.site-footer .logo-text {
    color: #fff;
}

.site-footer .logo img {
    filter: none; /* Keep original brightness if it's light logo, but since this footer is dark, it fits. */
}

.site-footer h4, .site-footer p, .site-footer a {
    color: #fff;
}
.site-footer .footer-desc {
    color: rgba(255,255,255,0.7);
}
.site-footer .footer-address {
    color: rgba(255,255,255,0.7);
    border-color: rgba(255,255,255,0.1);
}
.site-footer .footer-links-group a {
    color: rgba(255,255,255,0.7);
}
.site-footer .footer-links-group a:hover {
    color: var(--accent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 5rem;
    margin-bottom: 5rem;
}

.footer-brand .logo {
    margin-bottom: 1.5rem;
}

.footer-desc {
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 340px;
}

.footer-address {
    margin-top: 2rem;
    font-size: 0.95rem;
    padding-top: 2rem;
    max-width: 340px;
}

.footer-links-group h4 {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    font-family: var(--font-heading);
}

.footer-links-group ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 3rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
}

/* Animations Pipeline */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }

/* Responsive Design */
@media (max-width: 1024px) {
    .metrics-container { gap: 1.5rem; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-wrapper { grid-template-columns: 1fr; padding: 3rem; }
}

@media (max-width: 768px) {
    .mobile-toggle { display: block; }
    .nav-links { 
        display: none; 
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-surface);
        border-bottom: 1px solid var(--border-color);
        flex-direction: column;
        padding: 2rem 0;
        text-align: center;
        box-shadow: var(--shadow-md);
    }
    .nav-links.active { display: flex; }
    .metrics-container { grid-template-columns: 1fr; gap: 2.5rem; }
    .services-grid { grid-template-columns: 1fr; }
    .contact-wrapper { padding: 2rem; gap: 3rem; }
    .form-row { grid-template-columns: 1fr; }
    .cta-group { flex-direction: column; }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    .footer-brand .logo {
        justify-content: center;
    }
    .footer-desc,
    .footer-address {
        margin-left: auto;
        margin-right: auto;
    }
    .footer-links-group ul {
        align-items: center;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}
