@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --bg: #f7f9fc;
    --surface: #ffffff;
    --surface-soft: #eef5ff;
    --surface-blue: #f3f8ff;
    --text: #111827;
    --muted: #64748b;
    --line: #e2e8f0;
    --blue: #0b7cff;
    --blue-dark: #075cc2;
    --green: #16a34a;
    --shadow: 0 24px 70px rgba(15, 23, 42, 0.08);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top right, rgba(11, 124, 255, 0.10), transparent 34%),
        radial-gradient(circle at top left, rgba(22, 163, 74, 0.07), transparent 28%),
        var(--bg);
    color: var(--text);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.container {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

.narrow {
    max-width: 820px;
}

.section {
    padding: 88px 0;
}

.compact {
    padding: 34px 0;
}

.muted {
    background: linear-gradient(180deg, rgba(238, 245, 255, 0.72), rgba(255, 255, 255, 0.2));
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(247, 249, 252, 0.78);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.75);
}

.nav {
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: white;
    background: linear-gradient(135deg, var(--blue), #57b8ff);
    border-radius: 14px;
    box-shadow: 0 14px 30px rgba(11, 124, 255, 0.24);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 26px;
    font-size: 0.94rem;
    color: var(--muted);
}

.nav-links a {
    transition: color .2s ease;
}

.nav-links a:hover,
.nav-links .is-active {
    color: var(--text);
}

.nav-cta {
    padding: 10px 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--text) !important;
}

.nav-toggle {
    display: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.12fr 0.88fr;
    gap: 46px;
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
    color: var(--blue);
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .78rem;
    font-weight: 800;
}

.status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 6px rgba(22, 163, 74, .12);
}

h1,
h2,
h3 {
    line-height: 1.08;
    margin: 0;
    letter-spacing: -0.04em;
}

h1 {
    font-size: clamp(2.5rem, 7vw, 5.2rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3.05rem);
}

h3 {
    font-size: 1.22rem;
}

p {
    color: var(--muted);
}

.hero-baseline {
    color: var(--blue);
    font-weight: 800;
    margin: 22px 0 0;
}

.hero-lead {
    font-size: 1.16rem;
    max-width: 720px;
    margin: 22px 0 0;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 34px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 14px;
    font-weight: 700;
    border: 1px solid transparent;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--blue);
    color: white;
    box-shadow: 0 18px 40px rgba(11, 124, 255, .22);
}

.btn-primary:hover {
    background: var(--blue-dark);
}

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

.full {
    width: 100%;
    margin-top: 24px;
}

.hero-panel,
.skill-card,
.project-card,
.cta-card,
.contact-card,
.detail-main,
.detail-side,
.stat,
.project-feature,
.legal-card {
    background: rgba(255, 255, 255, .86);
    border: 1px solid rgba(226, 232, 240, .95);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.hero-panel {
    padding: 24px;
}

.panel-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--muted);
    margin-bottom: 18px;
}

.panel-top strong {
    color: var(--blue);
}

.focus-card {
    padding: 22px;
    border-radius: 20px;
    background: linear-gradient(135deg, #f8fbff, var(--surface-soft));
    border: 1px solid var(--line);
}

.focus-card span {
    display: block;
    color: var(--muted);
    font-size: .82rem;
    margin-bottom: 8px;
}

.focus-card strong {
    display: block;
    font-size: 1.32rem;
    line-height: 1.25;
}

.mini-grid {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.mini-grid div {
    padding: 16px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid var(--line);
}

.mini-grid span,
.stat span {
    display: block;
    color: var(--muted);
    font-size: .86rem;
}

.mini-grid strong {
    display: block;
    margin-top: 4px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.stat {
    padding: 24px;
}

.stat strong {
    display: block;
    font-size: 2rem;
    color: var(--blue);
}

.split-grid {
    display: grid;
    grid-template-columns: .8fr 1fr;
    gap: 42px;
    align-items: start;
}

.text-block p:first-child {
    margin-top: 0;
}

.text-block p {
    font-size: 1.07rem;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 34px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.skill-card {
    padding: 26px;
}

.skill-card h3 {
    margin-bottom: 18px;
}

.skill-card li {
    color: var(--muted);
    padding: 9px 0;
    border-bottom: 1px solid var(--line);
}

.skill-card li:last-child {
    border-bottom: 0;
}

.project-feature {
    padding: 36px;
    display: grid;
    grid-template-columns: 1fr 0.85fr;
    gap: 30px;
    align-items: center;
}

.feature-tags,
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.feature-tags span,
.tags span {
    padding: 8px 11px;
    border-radius: 999px;
    background: var(--surface-soft);
    color: #23527c;
    font-size: .84rem;
    font-weight: 700;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.project-card {
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.project-card.is-featured {
    border-color: rgba(11, 124, 255, .28);
    background: linear-gradient(180deg, #fff, #f7fbff);
}

.project-card p {
    margin: 0;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    color: var(--blue);
    font-size: .84rem;
    font-weight: 800;
}

.status-pill {
    color: var(--green);
    background: rgba(22, 163, 74, .09);
    padding: 6px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

.text-link {
    color: var(--blue);
    font-weight: 800;
    margin-top: auto;
}

.cta-card {
    padding: 34px;
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
}

.page-hero {
    padding-bottom: 40px;
}

.timeline {
    display: grid;
    gap: 18px;
}

.timeline-item {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 22px;
    padding: 28px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.timeline-item span {
    color: var(--blue);
    font-weight: 900;
}

.timeline-item p {
    margin-bottom: 0;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 22px;
    align-items: start;
}

.detail-main,
.detail-side,
.legal-card {
    padding: 32px;
}

.detail-main h2:not(:first-child),
.legal-card h2:not(:first-child) {
    margin-top: 34px;
}

.check-list li {
    padding: 14px 0 14px 30px;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    position: relative;
}

.check-list li:before {
    content: "";
    position: absolute;
    left: 0;
    top: 22px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--green);
}

.tags.vertical {
    display: grid;
}

.contact-card {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    overflow: hidden;
}

.contact-card a {
    padding: 28px;
    border-right: 1px solid var(--line);
    min-width: 0;
}

.contact-card a:last-child {
    border-right: 0;
}

.contact-card span {
    display: block;
    color: var(--muted);
    font-size: .86rem;
    margin-bottom: 8px;
}

.contact-card strong {
    color: var(--text);
    overflow-wrap: anywhere;
}

.legal-card a {
    color: var(--blue);
    font-weight: 700;
}

.site-footer {
    padding: 44px 0;
    border-top: 1px solid var(--line);
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
}

.footer-grid p {
    margin: 8px 0 0;
}

.footer-links {
    display: flex;
    gap: 18px;
    color: var(--muted);
    flex-wrap: wrap;
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .7s ease, transform .7s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

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

    .skills-grid,
    .project-grid,
    .contact-card {
        grid-template-columns: 1fr 1fr;
    }

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

    .nav-toggle {
        display: inline-grid;
        gap: 5px;
        background: transparent;
        border: 0;
    }

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

    .nav-links {
        position: absolute;
        top: 76px;
        left: 20px;
        right: 20px;
        padding: 20px;
        background: var(--surface);
        border: 1px solid var(--line);
        border-radius: 20px;
        box-shadow: var(--shadow);
        flex-direction: column;
        align-items: stretch;
        display: none;
    }

    .nav-links.is-open {
        display: flex;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(100% - 28px, 1120px);
    }

    .section {
        padding: 62px 0;
    }

    .skills-grid,
    .project-grid,
    .contact-card,
    .mini-grid {
        grid-template-columns: 1fr;
    }

    .timeline-item {
        grid-template-columns: 1fr;
    }

    .cta-card,
    .footer-grid {
        flex-direction: column;
        align-items: flex-start;
    }

    .contact-card a {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .contact-card a:last-child {
        border-bottom: 0;
    }
}
