/* Reset and base styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary: #1a365d;
    --primary-light: #2c5282;
    --primary-dark: #0f2440;
    --accent: #3182ce;
    --accent-light: #4299e1;
    --text: #2d3748;
    --text-light: #4a5568;
    --text-muted: #718096;
    --bg: #ffffff;
    --bg-alt: #f7fafc;
    --bg-dark: #edf2f7;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

html {
    scroll-behavior: smooth;
    background-color: var(--primary);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--bg);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    font-weight: 600;
    color: var(--primary);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
}

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

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
    background: var(--bg);
    box-shadow: var(--shadow);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo-img {
    height: 64px;
    width: auto;
    filter: brightness(0) invert(1);
}

.navbar.scrolled .logo-img {
    filter: none;
}

.logo:hover {
    opacity: 0.9;
}

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

.nav-links a {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.navbar.scrolled .nav-links a {
    color: var(--text);
}

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

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

.btn-nav {
    padding: 0.5rem 1.25rem;
    background: var(--bg);
    color: var(--primary) !important;
    border-radius: 6px;
    font-weight: 600;
}

.navbar.scrolled .btn-nav {
    background: var(--primary);
    color: var(--bg) !important;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 2px;
    background: var(--bg);
    transition: all 0.3s ease;
}

.navbar.scrolled .mobile-menu-btn span {
    background: var(--primary);
}

/* Hero section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1521791136064-7986c2920216?w=1920&h=1080&fit=crop') center/cover no-repeat;
    opacity: 0.15;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 2rem;
    max-width: 800px;
}

.hero h1 {
    color: var(--bg);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-primary {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--bg);
    color: var(--primary);
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--primary);
}

/* About section */
.about {
    padding: 6rem 0;
    background: var(--bg);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    margin-bottom: 1.5rem;
}

.about-text .lead {
    font-size: 1.125rem;
    color: var(--text);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.about-text p {
    color: var(--text-light);
}

.about-image img {
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

/* Expertise section */
.expertise {
    padding: 6rem 0;
    background: var(--bg-alt);
}

.expertise h2 {
    text-align: center;
    margin-bottom: 3rem;
}

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

.expertise-card {
    background: var(--bg);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.expertise-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.expertise-icon {
    width: 64px;
    height: 64px;
    background: var(--bg-alt);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--accent);
}

.expertise-card h3 {
    margin-bottom: 0.75rem;
}

.expertise-card p {
    color: var(--text-light);
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* Testimonials section */
.testimonials {
    padding: 6rem 0;
    background: var(--primary);
}

.testimonials h2 {
    text-align: center;
    color: var(--bg);
    margin-bottom: 3rem;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.testimonial-card {
    background: var(--bg);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    min-height: 200px;
}

.testimonial-card blockquote {
    flex-grow: 1;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.testimonial-card blockquote p {
    font-style: italic;
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.testimonial-card blockquote p::before {
    content: '"';
    font-size: 2rem;
    color: var(--accent);
    line-height: 0;
    vertical-align: -0.4rem;
    margin-right: 0.25rem;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    text-align: right;
    align-items: flex-end;
}

.testimonial-author strong {
    color: var(--primary);
    font-weight: 600;
}

.testimonial-author span {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Contact section */
.contact {
    padding: 6rem 0;
    background: var(--bg-alt);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

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

.contact-info > p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

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

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text);
}

.contact-item svg {
    color: var(--accent);
    flex-shrink: 0;
}

.contact-item a {
    color: var(--text);
    font-weight: 500;
}

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

.contact-image img {
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

/* Footer */
.footer {
    background: var(--primary-dark);
    color: var(--bg);
    padding: 3rem 0 1.5rem;
}

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

.footer-logo {
    height: 20px;
    width: auto;
    filter: brightness(0) invert(1);
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--bg);
}

.footer-bottom {
    padding-top: 1.5rem;
    text-align: center;
}

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

/* Mobile responsive */
@media (max-width: 968px) {
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-image,
    .contact-image {
        order: -1;
    }

    .expertise-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg);
        flex-direction: column;
        padding: 1.5rem;
        gap: 1rem;
        box-shadow: var(--shadow);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

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

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

    .btn-nav {
        background: var(--primary);
        color: var(--bg) !important;
        text-align: center;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .expertise-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: 1rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .btn-primary {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }

    section {
        padding: 4rem 0;
    }

    .expertise-card,
    .testimonial-card {
        padding: 1.5rem;
    }
}
