﻿:root {
    --page-bg: #f5f7fb;
    --surface: #fff;
    --ink: #17243a;
    --muted: #617087;
    --line: #e3e8f0;
    --accent: #176b87;
    --accent-dark: #10536b;
    --accent-soft: #e8f4f7;
    --shadow: 0 14px 40px rgba(23, 36, 58, .07);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 6rem;
}

body {
    background: var(--page-bg);
    color: var(--ink);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    line-height: 1.7;
}

.skip-link {
    position: absolute;
    z-index: 1100;
    top: -4rem;
    left: 1rem;
    padding: .6rem 1rem;
    background: var(--surface);
    color: var(--ink);
}

    .skip-link:focus {
        top: 1rem;
    }

header.site-header {
    position: sticky;
    z-index: 1000;
    top: 0;
    padding: 0;
    border-bottom: 1px solid rgba(227, 232, 240, .9);
    background: rgba(255, 255, 255, .96);
    color: var(--ink);
    text-align: left;
    backdrop-filter: blur(12px);
}

.site-header-inner {
    display: flex;
    width: min(1120px, calc(100% - 2.5rem));
    min-height: 76px;
    margin: 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: .8rem;
    color: var(--ink);
    text-decoration: none;
}

    .site-brand img {
        width: 46px;
        height: 46px;
        border: 2px solid var(--line);
        border-radius: 50%;
        object-fit: cover;
    }

    .site-brand strong,
    .site-brand small {
        display: block;
        line-height: 1.35;
    }

    .site-brand strong {
        font-size: 1rem;
    }

    .site-brand small {
        color: var(--muted);
        font-size: .78rem;
    }

header.site-header nav {
    padding: 0;
    background: transparent;
}

    header.site-header nav ul {
        display: flex;
        margin: 0;
        padding: 0;
        align-items: center;
        gap: .35rem;
        list-style: none;
    }

    header.site-header nav li {
        margin: 0;
    }

    header.site-header nav a {
        display: block;
        padding: .55rem .8rem;
        border-radius: 8px;
        color: var(--muted);
        font-size: .9rem;
        font-weight: 600;
        text-decoration: none;
        transition: background-color .2s ease, color .2s ease;
    }

        header.site-header nav a:hover,
        header.site-header nav a:focus-visible {
            background: var(--accent-soft);
            color: var(--accent-dark);
        }

main {
    min-height: calc(100vh - 76px);
}

.container {
    width: min(1120px, calc(100% - 2.5rem));
    max-width: 1120px;
    margin-right: auto;
    margin-left: auto;
    padding: 0;
}

.resume {
    padding-bottom: 4rem;
}

.home-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(250px, .8fr);
    gap: clamp(2rem, 6vw, 5rem);
    align-items: center;
    padding-top: clamp(4rem, 8vw, 7rem);
    padding-bottom: clamp(4rem, 8vw, 7rem);
}

.eyebrow {
    margin-bottom: .9rem;
    color: var(--accent);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .15em;
}

.hero-copy h1 {
    max-width: 760px;
    margin-bottom: 1.2rem;
    font-size: clamp(2.6rem, 6vw, 4.7rem);
    font-weight: 750;
    letter-spacing: -.055em;
    line-height: 1.05;
}

.hero-description {
    max-width: 650px;
    margin-bottom: 1.8rem;
    color: var(--muted);
    font-size: clamp(1.05rem, 2vw, 1.2rem);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

.button-primary,
.button-secondary {
    display: inline-flex;
    min-height: 46px;
    padding: .7rem 1.1rem;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--accent);
    border-radius: 9px;
    font-weight: 700;
    text-decoration: none;
    transition: transform .2s ease, background-color .2s ease;
}

.button-primary {
    background: var(--accent);
    color: #fff;
}

    .button-primary:hover {
        transform: translateY(-2px);
        background: var(--accent-dark);
        color: #fff;
    }

.button-secondary {
    background: var(--surface);
    color: var(--accent-dark);
}

    .button-secondary:hover {
        transform: translateY(-2px);
        background: var(--accent-soft);
        color: var(--accent-dark);
    }

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    margin-top: 1.8rem;
}

    .hero-tags span {
        padding: .35rem .7rem;
        border: 1px solid var(--line);
        border-radius: 999px;
        background: rgba(255, 255, 255, .7);
        color: var(--muted);
        font-size: .82rem;
        font-weight: 600;
    }

.hero-aside {
    display: grid;
    gap: 1rem;
    padding: 1.6rem;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.hero-aside-label {
    margin-bottom: .2rem;
    color: var(--muted);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .1em;
}

.hero-aside strong {
    padding-bottom: .75rem;
    border-bottom: 1px solid var(--line);
    font-size: 1.02rem;
}

.hero-aside a {
    color: var(--accent);
    font-size: .9rem;
    font-weight: 700;
    text-decoration: none;
}

.resume > section {
    scroll-margin-top: 6rem;
}

.resume h2 {
    margin-bottom: 1.5rem;
    color: var(--ink);
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    font-weight: 750;
    letter-spacing: -.03em;
    text-transform: none;
}

#about {
    margin-bottom: 2rem;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

    #about > div:not(.about-line) {
        color: var(--muted);
        font-size: 1.08rem;
    }

.about-line {
    margin-bottom: .7rem !important;
    color: var(--muted);
    line-height: 1.65;
}

    .about-line::before {
        content: "•";
        margin-right: .65rem;
        color: var(--accent);
        font-weight: 800;
    }

section.resume-section {
    min-height: 0;
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
    border: 0;
}

#experience .resume-item {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1.5rem;
    margin: 0 0 1rem;
    padding: 1.5rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: 0 6px 22px rgba(23, 36, 58, .04);
}

    #experience .resume-content,
    #experience .resume-item .col {
        width: auto;
        min-width: 0;
        padding: 0;
    }

#experience h4 {
    color: var(--ink);
    font-size: 1.15rem;
}

#experience .subheading {
    margin-bottom: .8rem !important;
    color: var(--accent);
    font-size: .95rem;
}

#experience ul,
#clients ul {
    padding-left: 1.2rem;
    color: var(--muted);
}

#experience li,
#clients li {
    margin-bottom: .35rem;
}

#experience .resume-date {
    min-width: 0;
    text-align: right !important;
}

    #experience .resume-date span {
        display: inline-block;
        padding: .35rem .65rem;
        border-radius: 999px;
        background: var(--accent-soft);
        color: var(--accent-dark) !important;
        font-size: .8rem;
        font-weight: 700;
        white-space: nowrap;
    }

#experience .nav-link {
    display: inline;
    padding: 0;
    color: var(--accent);
    text-decoration: underline;
}

#skills .card1,
#clients .card1 {
    overflow: hidden;
    height: 100%;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

#skills .card-body,
#clients .card-body {
    padding: 1.5rem;
}

#skills .card-title,
#clients .card-title {
    color: var(--ink);
    font-weight: 750;
}

#skills .card-text,
#clients .card-text {
    color: var(--muted);
}

#clients .row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    margin: 0 0 1.5rem;
}

    #clients .row > .card {
        width: auto;
        margin: 0 !important;
    }

#clients .card-img-top {
    width: 100%;
    height: 220px;
    border-bottom: 1px solid var(--line);
    object-fit: cover;
}

#clients .card-title a {
    color: var(--accent-dark);
    text-decoration: none;
}

    #clients .card-title a:hover {
        text-decoration: underline;
    }

#clients hr {
    display: none;
}

@media (max-width: 760px) {
    .site-header-inner {
        width: min(100% - 1.5rem, 1120px);
        min-height: 68px;
        flex-wrap: wrap;
        gap: .35rem;
        padding: .65rem 0;
    }

    header.site-header nav {
        width: 100%;
        overflow-x: auto;
    }

        header.site-header nav ul {
            justify-content: space-between;
        }

        header.site-header nav a {
            padding: .45rem .55rem;
            font-size: .83rem;
        }

    .container {
        width: min(100% - 1.5rem, 1120px);
    }

    .home-hero {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding-top: 3.5rem;
        padding-bottom: 3.5rem;
    }

    #clients .row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    #experience .resume-item {
        grid-template-columns: 1fr;
        gap: .6rem;
        padding: 1.2rem;
    }

    #experience .resume-date {
        text-align: left !important;
    }

    #skills .row {
        margin-right: 0;
        margin-left: 0;
    }

        #skills .row > .card {
            width: 100%;
        }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: .01ms !important;
    }
}
