:root {
    --bg: #f5f7fc;
    --bg-alt: #eef2fb;
    --surface: #ffffff;
    --surface-muted: #f8faff;
    --text: #121b2f;
    --text-muted: #4a5875;
    --line: #d7deeb;
    --primary: #1c4ad7;
    --primary-strong: #153aa8;
    --shadow-soft: 0 14px 30px rgba(20, 37, 79, 0.08);
    --shadow-card: 0 10px 24px rgba(20, 37, 79, 0.07);
    --radius-lg: 22px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --container: 1120px;
    --header-height: 72px;
    --transition: 180ms ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: "Source Sans 3", sans-serif;
    font-size: 1.08rem;
    line-height: 1.65;
}

a {
    color: inherit;
}

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

.skip-link {
    position: absolute;
    top: -48px;
    left: 1rem;
    z-index: 1200;
    background: var(--primary);
    color: #fff;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    text-decoration: none;
}

.skip-link:focus {
    top: 1rem;
}

.container {
    margin: 0 auto;
    max-width: var(--container);
    padding: 0 1.25rem;
}

.section {
    padding: 5.5rem 0;
}

.section-alt {
    background: linear-gradient(180deg, var(--bg-alt) 0%, rgba(238, 242, 251, 0.55) 100%);
}

.section-heading {
    margin-bottom: 1rem;
    max-width: 820px;
}

.section-kicker {
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    font-family: "Sora", sans-serif;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.05rem, 4.8vw, 3.45rem);
    line-height: 1.15;
    margin-top: 0.3rem;
}

h2 {
    font-size: clamp(1.65rem, 3vw, 2.4rem);
    line-height: 1.2;
    margin-top: 0.45rem;
}

h3 {
    font-size: 1.15rem;
    line-height: 1.35;
}

.section-intro {
    color: var(--text-muted);
    max-width: 720px;
    margin-bottom: 2.3rem;
}

.navbar {
    backdrop-filter: blur(10px);
    background: rgba(245, 247, 252, 0.9);
    border-bottom: 1px solid rgba(215, 222, 235, 0.9);
    height: var(--header-height);
    left: 0;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
}

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

.brand {
    align-items: center;
    display: inline-flex;
    font-family: "Sora", sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    gap: 0.65rem;
    text-decoration: none;
}

.brand-mark {
    align-items: center;
    background: linear-gradient(160deg, var(--primary), #2e63f3);
    border-radius: 8px;
    color: #fff;
    display: inline-flex;
    font-size: 0.85rem;
    height: 32px;
    justify-content: center;
    width: 32px;
}

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

.nav-link {
    color: var(--text-muted);
    font-size: 0.98rem;
    font-weight: 500;
    text-decoration: none;
    transition: color var(--transition);
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.active {
    color: var(--primary);
}

.nav-toggle {
    background: transparent;
    border: 0;
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 0.4rem;
}

.nav-toggle span {
    background: var(--text);
    border-radius: 999px;
    display: block;
    height: 2px;
    width: 22px;
}

.hero {
    overflow: clip;
    padding-top: 4.4rem;
    position: relative;
}

.hero-ambient {
    inset: 0;
    pointer-events: none;
    position: absolute;
}

.hero-ambient::before,
.hero-ambient::after {
    content: "";
    position: absolute;
}

.hero-ambient::before {
    background: radial-gradient(circle at center, rgba(28, 74, 215, 0.16), rgba(28, 74, 215, 0));
    height: 420px;
    right: -120px;
    top: -100px;
    width: 420px;
}

.hero-ambient::after {
    background: radial-gradient(circle at center, rgba(35, 170, 176, 0.13), rgba(35, 170, 176, 0));
    bottom: -220px;
    height: 460px;
    left: -180px;
    width: 460px;
}

.hero-grid {
    align-items: center;
    display: grid;
    gap: 2.25rem;
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
    position: relative;
    z-index: 1;
}

.eyebrow {
    color: var(--primary);
    font-family: "Sora", sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-headline {
    font-family: "Sora", sans-serif;
    font-size: clamp(1.15rem, 2vw, 1.35rem);
    font-weight: 500;
    line-height: 1.45;
    margin-top: 1.15rem;
    max-width: 720px;
}

.hero-summary {
    color: var(--text-muted);
    margin-top: 1rem;
    max-width: 700px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.65rem;
}

.btn {
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    display: inline-flex;
    font-family: "Sora", sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    gap: 0.4rem;
    justify-content: center;
    min-height: 44px;
    min-width: 190px;
    padding: 0.72rem 1.2rem;
    text-decoration: none;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
}

.btn-primary {
    background: linear-gradient(150deg, var(--primary), #2a5cf3);
    box-shadow: 0 10px 20px rgba(28, 74, 215, 0.22);
    color: #fff;
}

.btn-primary:hover,
.btn-primary:focus-visible {
    box-shadow: 0 12px 24px rgba(28, 74, 215, 0.28);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--surface);
    border-color: var(--line);
    color: var(--text);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.trust-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    list-style: none;
    margin-top: 1.5rem;
    max-width: 740px;
}

.trust-list li {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--text-muted);
    font-size: 0.9rem;
    padding: 0.36rem 0.8rem;
}

.hero-aside {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.hero-photo {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    width: 100%;
}

.hero-note {
    padding: 1.1rem 1.25rem 1.25rem;
}

.hero-note h2 {
    font-size: 1.05rem;
    margin: 0;
}

.hero-note p {
    color: var(--text-muted);
    font-size: 0.98rem;
    margin-top: 0.4rem;
}

.strength-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.strength-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    padding: 1.2rem;
}

.strength-card p {
    color: var(--text-muted);
    font-size: 0.98rem;
    margin-top: 0.55rem;
}

.projects-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding: 1.15rem;
}

.project-title-row {
    align-items: baseline;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: space-between;
}

.project-context {
    color: var(--primary);
    font-family: "Sora", sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.project-summary {
    color: var(--text-muted);
    font-size: 0.98rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    list-style: none;
}

.project-tech li {
    background: var(--surface-muted);
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--text-muted);
    font-size: 0.82rem;
    padding: 0.24rem 0.63rem;
}

.project-highlights {
    display: grid;
    gap: 0.35rem;
    list-style: none;
}

.project-highlights li {
    color: var(--text-muted);
    font-size: 0.95rem;
    padding-left: 1rem;
    position: relative;
}

.project-highlights li::before {
    color: var(--primary);
    content: "";
    font-size: 1rem;
    height: 5px;
    left: 0;
    position: absolute;
    top: 0.72rem;
    width: 5px;
    background: var(--primary);
    border-radius: 50%;
}

.project-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: auto;
}

.project-links a {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}

.project-links a:hover,
.project-links a:focus-visible {
    color: var(--primary-strong);
    text-decoration: underline;
}

.skills-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.skill-group {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    padding: 1.2rem;
}

.skill-group h3 {
    margin-bottom: 0.65rem;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    list-style: none;
}

.tag-list li {
    background: var(--surface-muted);
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--text-muted);
    font-size: 0.88rem;
    padding: 0.32rem 0.72rem;
}

.snapshot-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.snapshot-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    padding: 1.2rem;
}

.snapshot-card p {
    color: var(--text-muted);
    margin-top: 0.55rem;
}

.snapshot-focus {
    grid-column: 1 / -1;
}

.snapshot-focus ul {
    color: var(--text-muted);
    display: grid;
    gap: 0.35rem;
    margin-top: 0.65rem;
    padding-left: 1rem;
}

.resume-actions {
    margin-top: 1.5rem;
}

.contact-lead {
    color: var(--text-muted);
    margin-bottom: 1.7rem;
    max-width: 760px;
}

.contact-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    padding: 1.2rem;
    text-decoration: none;
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.contact-card:hover,
.contact-card:focus-visible {
    border-color: rgba(28, 74, 215, 0.55);
    box-shadow: 0 14px 28px rgba(28, 74, 215, 0.14);
    transform: translateY(-2px);
}

.contact-card h3 {
    font-size: 1.04rem;
}

.contact-card p {
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.footer {
    background: #0f1a32;
    color: #d6deef;
    padding: 2rem 0;
}

.footer-inner {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    font-size: 0.9rem;
    gap: 0.7rem 1.5rem;
    justify-content: space-between;
}

[data-reveal] {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 420ms ease, transform 420ms ease;
}

[data-reveal].visible {
    opacity: 1;
    transform: translateY(0);
}

:focus-visible {
    outline: 3px solid rgba(28, 74, 215, 0.35);
    outline-offset: 2px;
}

@media (max-width: 980px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-aside {
        max-width: 430px;
    }

    .strength-grid,
    .projects-grid,
    .skills-grid,
    .snapshot-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .nav-toggle {
        display: inline-flex;
    }

    .nav-list {
        background: rgba(245, 247, 252, 0.98);
        border-bottom: 1px solid var(--line);
        display: grid;
        gap: 0;
        left: 0;
        max-height: 0;
        overflow: hidden;
        position: absolute;
        right: 0;
        top: var(--header-height);
        transition: max-height var(--transition);
    }

    .nav-list li {
        border-top: 1px solid var(--line);
    }

    .nav-link {
        display: block;
        padding: 0.95rem 1.25rem;
    }

    .nav-list.open {
        max-height: 420px;
    }

    .hero {
        padding-top: 3rem;
    }
}

@media (max-width: 620px) {
    .section {
        padding: 4.1rem 0;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .trust-list li {
        font-size: 0.84rem;
    }

    .footer-inner {
        justify-content: center;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        scroll-behavior: auto !important;
        transition-duration: 0.001ms !important;
    }

    [data-reveal] {
        opacity: 1;
        transform: none;
    }
}