
:root {
    --text-color: #1a1c20;
    --link-color: #4a76ee;
    --background-color: #eeeff1;
    --card-color: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: 'Nunito', sans-serif;
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
}

a {
    color: var(--link-color);
    text-decoration: none;
}

nav {
    width: min(100% - 40px, 1000px);
    min-height: 70px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

nav .left a {
    color: var(--text-color);
    font-size: 22px;
    font-weight: 800;
}

nav .right {
    display: flex;
    align-items: center;
    gap: 22px;
}

nav .right a {
    color: var(--text-color);
    font-weight: 700;
    transition: color .2s ease;
}

nav .right a:hover {
    color: var(--link-color);
}

.container {
    width: min(100% - 40px, 1000px);
    margin: 0 auto;
}

.hero-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    padding: 55px 0 80px;
}

.hero-section .text {
    flex: 1;
}

.hero-section h1 {
    font-size: clamp(32px, 5vw, 44px);
    line-height: 1.2;
    margin-bottom: 16px;
}

.hero-section .text > p {
    max-width: 570px;
}

/* Social icons */
.social-links {
    display: flex;
    gap: 14px;
    margin-top: 24px;
}

.social-links a {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: var(--text-color);
    background: var(--card-color);
    border: 1px solid #d3d3d3;
    border-radius: 10px;
    font-size: 20px;
    transition: background .2s ease, color .2s ease,
        transform .2s ease;
}

.social-links a:hover {
    color: white;
    background: var(--link-color);
    transform: translateY(-2px);
}

.headshot {
    flex: 0 0 250px;
    display: flex;
    justify-content: center;
}

.headshot img {
    width: 250px;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 50%;
}

.section {
    margin-bottom: 80px;
}

.section h2 {
    font-size: 32px;
    text-align: center;
    margin-bottom: 10px;
}

.section-intro {
    text-align: center;
    margin-bottom: 24px;
}

.skills-section .cells {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
}

.skills-section .cell {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 180px;
    padding: 12px 18px;
    background: var(--card-color);
    border: 1px solid #d3d3d3;
    border-radius: 8px;
}

.skills-section .cell img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.skills-section .cell span {
    font-size: 17px;
    font-weight: 700;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.project-card {
    padding: 22px;
    background: var(--card-color);
    border: 1px solid #d3d3d3;
    border-radius: 10px;
}

.project-icon {
    color: var(--link-color);
    font-size: 25px;
    margin-bottom: 12px;
}

.project-card h3 {
    font-size: 19px;
    margin-bottom: 8px;
}

.project-card p {
    font-size: 14px;
    margin-bottom: 14px;
}

.project-tech {
    color: var(--link-color);
    font-size: 12px;
    font-weight: 800;
}

.testimony-card {
    display: flex;
    align-items: center;
    gap: 35px;
    padding: 24px;
    background: var(--card-color);
    border: 1px solid #d3d3d3;
    border-radius: 10px;
}

.person-details {
    flex: 0 0 150px;
    text-align: center;
}

.person-details img {
    width: 100px;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 8px;
}

.person-details p {
    font-weight: 800;
}

.person-details span {
    font-size: 13px;
}

.quote {
    flex: 1;
}

.contact-group {
    display: flex;
    gap: 35px;
}

.contact-group > p,
.contact-group form {
    flex: 1;
}

.contact-group form {
    display: flex;
    flex-direction: column;
}

.contact-group input,
.contact-group textarea {
    width: 100%;
    font: inherit;
    border: 1.5px solid var(--link-color);
    border-radius: 6px;
    padding: 10px;
    margin: 5px 0 14px;
    background: var(--card-color);
    outline: none;
}

.contact-group input:focus,
.contact-group textarea:focus {
    box-shadow: 0 0 0 3px #4a76ee30;
}

.contact-group textarea {
    resize: vertical;
}

.contact-group button {
    font: inherit;
    font-weight: 700;
    color: white;
    background: var(--link-color);
    border: none;
    border-radius: 6px;
    min-height: 46px;
    cursor: pointer;
    transition: filter .2s ease;
}

.contact-group button:hover {
    filter: brightness(.9);
}

@media (max-width: 740px) {
    nav {
        width: min(100% - 30px, 600px);
        flex-wrap: wrap;
        justify-content: center;
        padding: 14px 0;
    }

    nav .right {
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px 18px;
    }

    .container {
        width: min(100% - 30px, 600px);
    }

    .hero-section {
        flex-direction: column-reverse;
        text-align: center;
        padding: 35px 0 60px;
    }

    .social-links {
        justify-content: center;
    }

    .headshot {
        flex-basis: auto;
    }

    .headshot img {
        width: 210px;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }

    .testimony-card,
    .contact-group {
        flex-direction: column;
    }

    .testimony-card {
        gap: 18px;
    }

    .contact-group {
        gap: 20px;
    }
}

@media (max-width: 400px) {
    nav .right {
        gap: 8px 12px;
        font-size: 14px;
    }

    .section h2 {
        font-size: 28px;
    }
}