:root {
    --bg: #f4f7fb;
    --bg-accent: #e9eef8;
    --surface: rgba(255, 255, 255, 0.8);
    --surface-strong: #ffffff;
    --border: rgba(15, 23, 42, 0.08);
    --text: #162033;
    --muted: #5c6b80;
    --soft: #7e8ba0;
    --accent: #1f6feb;
    --accent-deep: #0b4fc9;
    --accent-soft: rgba(31, 111, 235, 0.12);
    --shadow: 0 20px 45px rgba(28, 41, 61, 0.08);
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 12px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Instrument Sans', sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(31, 111, 235, 0.08), transparent 28%),
        linear-gradient(180deg, #f8fbff 0%, var(--bg) 100%);
}

a {
    color: inherit;
}

.skip-link {
    position: absolute;
    left: 20px;
    top: -48px;
    background: var(--text);
    color: #fff;
    padding: 10px 14px;
    border-radius: 10px;
    text-decoration: none;
    z-index: 2000;
}

.skip-link:focus {
    top: 18px;
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 76px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 36px;
    background: rgba(244, 247, 251, 0.78);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.04em;
}

.blink {
    color: var(--accent);
    animation: blink 1s step-end infinite;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 26px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--muted);
    font-weight: 600;
}

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

.app-container {
    display: flex;
    align-items: flex-start;
    gap: 0;
    max-width: 1440px;
    margin: 0 auto;
    padding: 24px 20px 40px;
}

.sidebar {
    width: 340px;
    flex-shrink: 0;
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 124px);
    overflow-y: auto;
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow);
    box-sizing: border-box;
}

.profile-section {
    margin-bottom: 28px;
}

.profile-pic {
    width: 112px;
    height: 112px;
    border-radius: 28px;
    object-fit: cover;
    display: block;
    margin-bottom: 18px;
    border: 4px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 12px 32px rgba(31, 111, 235, 0.14);
}

.sidebar h2 {
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    letter-spacing: -0.04em;
}

.subtitle {
    margin: 8px 0 10px;
    color: var(--accent-deep);
    font-size: 0.98rem;
    font-weight: 600;
}

.sidebar-summary {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.sidebar-section {
    margin-bottom: 26px;
}

.sidebar-section:last-child {
    margin-bottom: 0;
}

.sidebar h3 {
    margin: 0 0 12px;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--soft);
}

.skill-tags,
.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.tag {
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.05);
    color: #304056;
    font-size: 0.85rem;
    font-weight: 600;
}

.resizer {
    width: 10px;
    margin: 0 16px;
    flex-shrink: 0;
    align-self: stretch;
    cursor: ew-resize;
    border-radius: 999px;
    background:
        linear-gradient(180deg, rgba(31, 111, 235, 0), rgba(31, 111, 235, 0.24), rgba(31, 111, 235, 0));
    transition: background-color 0.2s ease;
}

.resizer:hover,
.resizer:active {
    background:
        linear-gradient(180deg, rgba(31, 111, 235, 0.08), rgba(31, 111, 235, 0.4), rgba(31, 111, 235, 0.08));
}

.main-content {
    flex: 1;
    min-width: 0;
    padding: 12px 12px 24px 28px;
}

.intro-section {
    padding: 20px 0 16px;
}

.eyebrow {
    margin: 0 0 16px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--accent-deep);
    font-size: 0.76rem;
    font-weight: 700;
}

.hero-title,
.section-title,
.project-header h3,
.exp-header h3 {
    font-family: 'Space Grotesk', sans-serif;
}

.hero-title {
    margin: 0;
    max-width: 900px;
    font-size: clamp(2.6rem, 5vw, 4.8rem);
    line-height: 1.02;
    letter-spacing: -0.06em;
}

.hero-description {
    max-width: 760px;
    margin: 22px 0 0;
    color: var(--muted);
    font-size: 1.12rem;
    line-height: 1.8;
}

.hero-attribution {
    margin: 14px 0 0;
    color: var(--soft);
    font-size: 0.98rem;
    font-weight: 600;
}

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

.primary-btn,
.secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.primary-btn {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 14px 26px rgba(31, 111, 235, 0.22);
}

.primary-btn:hover,
.primary-btn:focus-visible {
    background: var(--accent-deep);
    transform: translateY(-1px);
}

.secondary-btn {
    background: rgba(255, 255, 255, 0.7);
    color: var(--text);
    border: 1px solid var(--border);
}

.secondary-btn:hover,
.secondary-btn:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 12px 22px rgba(18, 30, 48, 0.08);
}

.hero-highlights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 32px;
}

.highlight-card,
.experience-card,
.project-card,
.contact-card {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.highlight-card {
    padding: 20px;
}

.highlight-label {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--soft);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.72rem;
    font-weight: 700;
}

.highlight-card p {
    margin: 0;
    line-height: 1.65;
    color: #304056;
}

.content-section {
    padding-top: 28px;
    scroll-margin-top: 92px;
}

.section-title {
    margin: 0 0 20px;
    font-size: 2rem;
    letter-spacing: -0.05em;
}

.experience-list {
    display: grid;
    gap: 18px;
}

.experience-card {
    padding: 26px 28px;
}

.exp-header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
}

.exp-header h3 {
    margin: 0;
    font-size: 1.35rem;
    letter-spacing: -0.04em;
}

.role {
    margin: 8px 0 0;
    color: var(--accent-deep);
    font-weight: 600;
}

.date {
    white-space: nowrap;
    color: var(--soft);
    font-size: 0.95rem;
    font-weight: 600;
}

.exp-summary {
    margin: 16px 0 0;
    color: var(--muted);
    line-height: 1.75;
}

.project-card {
    padding: 28px 30px;
    margin-bottom: 18px;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-bottom: 12px;
}

.project-header h3 {
    margin: 0;
    font-size: 1.45rem;
    letter-spacing: -0.04em;
}

.company-badge {
    flex-shrink: 0;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-deep);
    font-size: 0.8rem;
    font-weight: 700;
}

.project-tags {
    margin-bottom: 16px;
}

.project-details {
    margin: 0;
    padding-left: 20px;
    color: var(--muted);
    line-height: 1.75;
}

.project-details li + li {
    margin-top: 10px;
}

.contact-card {
    padding: 34px 30px;
    text-align: left;
}

.contact-card p {
    margin: 0;
    max-width: 760px;
    color: var(--muted);
    line-height: 1.8;
    font-size: 1.05rem;
}

.contact-info {
    margin-top: 20px;
    color: var(--text);
    font-weight: 600;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

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

    .main-content {
        padding-left: 20px;
    }
}

@media (max-width: 1024px) {
    .app-container {
        display: block;
        padding: 20px 18px 32px;
    }

    .sidebar {
        width: auto;
        max-height: none;
        position: static;
        overflow: visible;
        margin-bottom: 20px;
    }

    .resizer {
        display: none;
    }

    .main-content {
        padding: 0;
    }

    .navbar {
        padding: 0 18px;
    }
}

@media (max-width: 760px) {
    .sidebar {
        padding: 22px 20px;
        border-radius: 20px;
    }

    .navbar {
        height: auto;
        padding: 16px 18px;
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .nav-links {
        flex-wrap: wrap;
        gap: 14px 18px;
    }

    .hero-title {
        font-size: 2.4rem;
    }

    .hero-description,
    .contact-card p {
        font-size: 1rem;
    }

    .experience-card,
    .project-card,
    .contact-card,
    .highlight-card {
        padding: 22px 20px;
        border-radius: 20px;
    }

    .exp-header,
    .project-header {
        flex-direction: column;
    }

    .date {
        white-space: normal;
    }

    .section-title {
        font-size: 1.65rem;
    }
}
