:root {
    color-scheme: light;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    background: #f6f8ff;
    color: #1d2640;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
}

img {
    max-width: 100%;
    display: block;
}

header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: #0b3d91;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.navbar {
    max-width: 1160px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.5rem;
}

.logo {
    color: #ffffff;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 0.16em;
    font-size: 0.95rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.3rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a,
.nav-button {
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-button:hover {
    color: #ffdc64;
}

.nav-button {
    padding: 0.7rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
}

main {
    max-width: 1160px;
    margin: 0 auto;
    padding: 2rem 1.5rem 3rem;
}

.hero,
.hero-small {
    background: linear-gradient(135deg, #edf2ff 0%, #f7fbff 100%);
    border-radius: 28px;
    padding: 2.4rem;
    margin-bottom: 2rem;
    box-shadow: 0 24px 70px rgba(31, 70, 147, 0.08);
}

.hero-gradient {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2rem;
    align-items: center;
}

.hero-small {
    padding: 2rem;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.8rem;
    color: #0b3d91;
}

.hero h1,
.hero-small h1 {
    margin: 0 0 1rem;
    font-size: clamp(2rem, 4vw, 3.6rem);
    line-height: 1.02;
    letter-spacing: -0.05em;
}

.hero p,
.hero-small p,
.section-intro,
.section-card p,
.service-card p,
.skill-item p {
    margin: 0;
    color: #475569;
}

.hero-actions,
.hero-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.75rem;
}

.button,
.hero-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.95rem 1.5rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    border: none;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.button {
    background: #0b3d91;
    color: #ffffff;
}

.button-secondary,
.hero-links a.button-secondary {
    background: rgba(11, 61, 145, 0.12);
    color: #0b3d91;
}

.button:hover,
.hero-links a:hover {
    transform: translateY(-1px);
}

.hero-image img {
    border-radius: 28px;
    box-shadow: 0 30px 90px rgba(11, 61, 145, 0.1);
}

.section-card {
    background: #ffffff;
    border-radius: 28px;
    padding: 2rem;
    box-shadow: 0 24px 70px rgba(31, 70, 147, 0.06);
    margin-bottom: 2rem;
}

.section-card h2 {
    margin-top: 0;
    color: #0b3d91;
    font-size: clamp(1.75rem, 3vw, 2.4rem);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1.25rem;
}

.feature-card {
    background: linear-gradient(135deg, #f7faff 0%, #eef4ff 100%);
    border: 1px solid rgba(11, 61, 145, 0.08);
    border-radius: 20px;
    padding: 1.25rem;
}

.feature-card h3 {
    margin: 0 0 0.5rem;
    color: #0b3d91;
}

.feature-card p {
    color: #475569;
}

.update-shell {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 1.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, #eef4ff 0%, #fdfdff 100%);
    border: 1px solid rgba(11, 61, 145, 0.12);
}

.update-intro h2 {
    margin-bottom: 0.75rem;
}

.update-intro p {
    max-width: 65ch;
}

.update-list {
    margin: 1rem 0 0;
    padding-left: 1.2rem;
    color: #334155;
}

.update-list li + li {
    margin-top: 0.5rem;
}

.update-highlights {
    display: grid;
    gap: 1rem;
}

.update-highlight-card {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(11, 61, 145, 0.1);
    border-radius: 18px;
    padding: 1rem 1.15rem;
}

.update-highlight-card h3 {
    margin: 0 0 0.4rem;
    color: #0b3d91;
}

.update-highlight-card p {
    color: #475569;
}

.section-intro {
    margin-top: 0.65rem;
    max-width: 72ch;
}

.service-grid,
.skill-grid,
.contact-grid {
    display: grid;
    gap: 1.5rem;
}

.service-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin-top: 1.5rem;
}

.service-card,
.skill-item {
    background: #f4f7ff;
    border-radius: 22px;
    padding: 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover,
.skill-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 50px rgba(11, 61, 145, 0.12);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-top: 1.25rem;
}

.testimonial-item {
    background: linear-gradient(135deg, #f8fbff 0%, #eef4ff 100%);
    border-radius: 20px;
    padding: 1.25rem;
    box-shadow: 0 12px 28px rgba(11, 61, 145, 0.08);
}

.testimonial-item img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 0.9rem;
    border: 3px solid #ffffff;
    box-shadow: 0 8px 24px rgba(11, 61, 145, 0.12);
}

.testimonial-item p {
    margin-bottom: 0.75rem;
    color: #475569;
}

.testimonial-item cite {
    font-style: normal;
    font-weight: 700;
    color: #0b3d91;
}

.service-card h3,
.skill-item h3 {
    margin-top: 1rem;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.service-card img {
    width: 100%;
    border-radius: 18px;
    object-fit: cover;
    aspect-ratio: 4 / 3;
}

.skill-item h3 {
    margin: 0 0 0.75rem;
}

.skill-item p {
    color: #475569;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1rem;
}

.social-links a {
    padding: 0.7rem 1rem;
    border-radius: 999px;
    background: #f2f6ff;
    color: #0b3d91;
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.social-links a:hover {
    background: #e2ebff;
    transform: translateY(-1px);
}

.contact-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
}

.clients-section {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2rem;
    align-items: center;
}

.clients-copy h2 {
    margin-bottom: 0.75rem;
}

.clients-copy p {
    color: #475569;
}

.clients-visual img {
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 24px 70px rgba(11, 61, 145, 0.12);
}

.contact-form {
    display: grid;
    gap: 1rem;
}

.contact-form label {
    font-weight: 700;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.95rem 1rem;
    border-radius: 1rem;
    border: 1px solid #d8e0ef;
    background: #ffffff;
    font: inherit;
}

.contact-form button {
    margin-top: 0.25rem;
    padding: 1rem 1.25rem;
    border-radius: 999px;
    border: none;
    background: #0b3d91;
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
}

footer {
    background: #0b3d91;
    color: #ffffff;
    text-align: center;
    padding: 2.5rem 1rem;
    border-radius: 18px;
    margin-top: 2rem;
}

footer img {
    width: 88px;
    height: 88px;
    object-fit: cover;
    border-radius: 12px;
    margin: 0 auto 0.85rem;
    box-shadow: 0 12px 30px rgba(11, 61, 145, 0.18);
}

footer p {
    margin: 0.35rem 0;
    color: #f8fbff;
    font-weight: 600;
}

footer a {
    color: #ffdc64;
    text-decoration: none;
    font-weight: 700;
}

@media (max-width: 980px) {
    .hero-gradient {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .clients-section,
    .update-shell {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .navbar {
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 720px) {
    nav {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem;
    }

    .hero,
    .hero-small {
        padding: 1.75rem;
    }

    .service-card,
    .skill-item {
        padding: 1.25rem;
    }
}

@media (max-width: 520px) {
    .button,
    .hero-links a {
        width: 100%;
    }
}

/* Project grid styles */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    margin-top: 1.25rem;
}

.project-card {
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    border-radius: 16px;
    padding: 1rem;
    box-shadow: 0 10px 30px rgba(11,61,145,0.06);
}

.project-card img {
    border-radius: 12px;
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.project-card h3 {
    margin: 0.75rem 0 0.45rem;
}

.project-card p {
    margin: 0 0 0.75rem;
    color: #56667a;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-top: 1.25rem;
}

.gallery-grid img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(11, 61, 145, 0.12);
}