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

:root {
    color-scheme: light;
    --bg: #eef5ff;
    --surface: #ffffff;
    --surface-strong: #f8fbff;
    --border: #dce7f5;
    --text: #172737;
    --heading: #0f1f30;
    --muted: #5f6f86;
    --primary: #1f5dff;
    --secondary: #0f2b58;
    --primary-soft: #d9e4ff;
    --shadow: 0 26px 70px rgba(24, 56, 108, 0.12);
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.65;
    background-image: linear-gradient(rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.55)), url('background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: var(--text);
}

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

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover,
a:focus {
    text-decoration: underline;
}

.page {
    width: min(1100px, calc(100% - 3rem));
    margin: 0 auto;
    padding: 2.5rem 0 3rem;
}

.top-nav-wrapper {
    position: sticky;
    top: 1rem;
    z-index: 15;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    width: 100%;
    justify-content: flex-start;
}

.nav-toggle {
    width: 44px;
    height: 42px;
    border: 1px solid rgba(31, 93, 255, 0.18);
    margin-left: -0.4rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0px;
    cursor: pointer;
    padding: 0.35rem;
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}
.nav-toggle:hover,
.nav-toggle:focus {
    transform: translateY(-1px);
    border-color: rgba(31, 93, 255, 0.35);
}

.nav-toggle .bar {
    display: block;
    width: 20px;
    height: 2px;
    margin: 3px 0;
    border-radius: 999px;
    background: var(--secondary);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.top-nav-wrapper.open .nav-toggle .bar:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
}

.top-nav-wrapper.open .nav-toggle .bar:nth-child(2) {
    opacity: 0;
}

.top-nav-wrapper.open .nav-toggle .bar:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
}

.nav-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0;
    width: 0;
    opacity: 0;
    visibility: hidden;
    transform: scaleX(0);
    transform-origin: left center;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 24px;
    border: 1px solid rgba(31, 93, 255, 0.14);
    box-shadow: 0 28px 60px rgba(24, 56, 108, 0.1);
    backdrop-filter: blur(16px);
    flex: 1;
    align-items: center;
    justify-content: flex-start;
    overflow-x: hidden;
    transition: width 0.35s ease, opacity 0.25s ease, transform 0.35s ease, padding 0.25s ease, visibility 0.25s ease;
}

.top-nav-wrapper.open .nav-bar {
    width: auto;
    flex: 1;
    max-width: calc(100% - 56px);
    opacity: 1;
    visibility: visible;
    transform: scaleX(1);
    padding: 1rem;
    overflow-x: auto;
}

.nav-bar::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(31, 93, 255, 0.12), rgba(255, 255, 255, 0));
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.top-nav-wrapper.open .nav-bar::before {
    opacity: 1;
}

.nav-bar button {
    background: transparent;
    color: var(--secondary);
    border: 1px solid rgba(31, 93, 255, 0.18);
    padding: 10px 16px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.94rem;
    font-weight: 600;
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-bar button:hover,
.nav-bar button:focus {
    background: var(--primary);
    color: white;
    border-color: rgba(31, 93, 255, 0.4);
    transform: translateY(-1px);
}

@media (max-width: 900px) {
    .top-nav-wrapper {
        position: fixed;
        left: 1rem;
        right: 1rem;
        top: 1rem;
        z-index: 20;
        flex-wrap: wrap;
        padding: 0.5rem 0.25rem;
    }

    .nav-bar {
        width: 100%;
    }

    .nav-bar button {
        flex: 0 0 auto;
    }
}
.site-header {
    display: grid;
    grid-template-columns: minmax(0, 240px) 1fr;
    gap: 2rem;
    align-items: center;
    margin-bottom: 2.5rem;
}

.profile-card {
    border-radius: 28px;
    overflow: hidden;
    background: var(--surface);
    box-shadow: var(--shadow);
    border: 1px solid rgba(33, 81, 255, 0.08);
}

.profile-image {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.profile-summary {
    padding: 1rem 0;
}

.profile-summary h1 {
    margin: 0;
    font-size: clamp(2.4rem, 4vw, 4rem);
    letter-spacing: -0.06em;
    line-height: 1.02;
    color: var(--heading);
}

.profile-summary p {
    margin: 1rem 0 0;
    max-width: 58ch;
    color: var(--muted);
    font-size: 1rem;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
    display: grid;
    gap: 0.85rem;
}

.contact-list li {
    position: relative;
    padding-left: 1.3rem;
    color: var(--muted);
    font-size: 0.96rem;
}

.contact-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary);
    font-size: 1.35rem;
    line-height: 1;
}

.cp-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    margin-right: 0.5rem;
    font-size: 1rem;
}

.section-card {
    position: relative;
    background: rgba(255, 255, 255, 0.78);
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    padding: 1.95rem;
    box-shadow: 0 22px 50px rgba(20, 38, 78, 0.08);
    margin-bottom: 2.5rem;
    backdrop-filter: blur(12px);
}

.section-card:last-of-type {
    margin-bottom: 0;
}

.section-title {
    margin: 0 0 1.25rem;
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--heading);
    padding-bottom: 0.85rem;
    border-bottom: 2px solid var(--primary-soft);
}

.section-title::before {
    content: '';
    width: 3rem;
    height: 0.2rem;
    background: var(--primary);
    border-radius: 999px;
}

.job-item + .job-item {
    margin-top: 1.75rem;
    padding-top: 1.75rem;
    border-top: 1px solid rgba(31, 93, 255, 0.08);
}

.job-headline {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-weight: 700;
}

.job-headline span:last-child {
    color: var(--primary);
    font-size: 0.95rem;
    white-space: nowrap;
}

.job-company {
    margin: 0.35rem 0 0.85rem;
    color: var(--muted);
    font-size: 0.98rem;
}

.list-clean {
    margin: 1rem 0 0;
    padding-left: 1.35rem;
}

.list-clean li {
    margin-bottom: 0.9rem;
    color: var(--text);
    line-height: 1.75;
    font-size: 0.98rem;
}

.list-clean li strong {
    color: var(--heading);
}

.list-clean li::marker {
    color: var(--primary);
}

.info {
    display: grid;
    gap: 0.85rem;
    padding: 0;
}

.skill-grid {
    display: grid;
    gap: 0.9rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.skill-group {
    background: var(--surface-strong);
    border-radius: 22px;
    padding: 1rem 1rem 0.95rem;
    border: 1px solid rgba(31, 93, 255, 0.08);
}

.skill-heading {
    margin: 0 0 0.9rem;
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--heading);
}

.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0;
    padding: 0;
}

.skill-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: #eef3ff;
    color: var(--primary);
    font-size: 0.86rem;
    font-weight: 600;
    border: 1px solid rgba(31, 93, 255, 0.12);
    white-space: nowrap;
    overflow: hidden;
}

.skill-badge:hover {
    background: rgba(31, 93, 255, 0.12);
}

.skill-level {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 0;
    background: var(--primary);
    border-radius: 999px;
    opacity: 0;
    transition: width 220ms ease, opacity 220ms ease;
}

.skill-badge:hover .skill-level {
    width: var(--skill-level, 70%);
    opacity: 1;
}

.skill-group p {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.card-inline-link {
    padding: 0.95rem 1.2rem;
    border-radius: 16px;
    background: #f1f5ff;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 700;
    box-shadow: inset 0 0 0 1px rgba(31, 93, 255, 0.08);
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.card-inline-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 28px rgba(29, 91, 255, 0.14);
}

@media (max-width: 860px) {
    .site-header {
        grid-template-columns: 1fr;
    }

    .job-headline {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 520px) {
    .page {
        padding: 1.5rem 0 2rem;
    }

    .section-card {
        padding: 1.5rem;
    }
}
