:root {
    --color-ink: #22223b;
    --color-surface-dark: #4a4e69;
    --color-accent: #c9ada7;
    --color-paper: #f2e9e4;
    --color-card: #fffaf8;
    --color-border: rgba(34, 34, 59, 0.12);
    --color-shadow: rgba(34, 34, 59, 0.1);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--color-ink);
    background:
        radial-gradient(circle at top right, rgba(201, 173, 167, 0.35), transparent 28%),
        linear-gradient(180deg, #f7f2ee 0%, var(--color-paper) 100%);
}

img {
    max-width: 100%;
}

a {
    color: var(--color-surface-dark);
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.18em;
}

a:hover,
a:focus-visible {
    color: var(--color-ink);
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -3rem;
    z-index: 1000;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    background: var(--color-ink);
    color: var(--color-paper);
    transition: top 0.2s ease;
}

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

.site-header {
    padding-bottom: 1rem;
}

.hero-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.9fr);
    gap: 2rem;
    padding: 2rem;
    border: 1px solid rgba(242, 233, 228, 0.2);
    border-radius: 1.5rem;
    background: linear-gradient(145deg, var(--color-ink), var(--color-surface-dark));
    color: var(--color-paper);
    box-shadow: 0 24px 60px var(--color-shadow);
}

.eyebrow {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-accent);
}

.hero-tagline {
    font-size: 1.15rem;
    max-width: 36rem;
    color: rgba(242, 233, 228, 0.9);
}

.hero-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-accent);
}

.hero-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    padding: 1.25rem;
    border-radius: 1.25rem;
    background: rgba(242, 233, 228, 0.08);
    border: 1px solid rgba(242, 233, 228, 0.16);
}

.contact-list li + li {
    margin-top: 0.55rem;
}

.contact-list a {
    color: var(--color-paper);
}

.btn-resume {
    border: 0;
    border-radius: 999px;
    padding: 0.8rem 1.25rem;
    background: var(--color-accent);
    color: var(--color-ink);
    font-weight: 700;
}

.btn-resume:hover,
.btn-resume:focus-visible {
    background: #d7bbb5;
    color: var(--color-ink);
}

.resume-nav .nav-tabs {
    border-bottom: 0;
    gap: 0.5rem;
}

.resume-nav .nav-link {
    border: 0;
    border-radius: 999px;
    padding: 0.8rem 1.2rem;
    font-weight: 600;
    color: var(--color-surface-dark);
    background: rgba(255, 255, 255, 0.75);
    box-shadow: 0 10px 24px rgba(34, 34, 59, 0.06);
}

.resume-nav .nav-link.active {
    color: var(--color-paper);
    background: var(--color-surface-dark);
}

.site-main {
    padding-bottom: 2rem;
}

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

.content-card {
    padding: 1.75rem;
    border: 1px solid var(--color-border);
    border-radius: 1.5rem;
    background: rgba(255, 250, 248, 0.88);
    box-shadow: 0 18px 40px rgba(34, 34, 59, 0.06);
}

.section-title {
    margin-bottom: 1.25rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-surface-dark);
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--color-accent);
}

.highlight-list,
.detail-list {
    margin: 0;
    padding-left: 1.15rem;
}

.highlight-list,
.detail-list {
    color: rgba(34, 34, 59, 0.86);
}

.highlight-list li,
.detail-list li {
    margin-bottom: 0.8rem;
}

.highlight-list li::marker,
.detail-list li::marker {
    color: var(--color-accent);
}

.highlight-list li:last-child,
.detail-list li:last-child {
    margin-bottom: 0;
}

.stat-card {
    min-height: 100%;
}

.stat-label {
    margin-bottom: 0.55rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-surface-dark);
}

.stat-value {
    margin-bottom: 0.45rem;
    font-size: 1.4rem;
    font-weight: 700;
}

.stat-text {
    color: rgba(34, 34, 59, 0.82);
}

.skill-group {
    height: 100%;
    padding: 1.25rem;
    border-radius: 1.25rem;
    background: rgba(242, 233, 228, 0.82);
    border: 1px solid rgba(74, 78, 105, 0.1);
}

.skill-group h3,
.education-entry h3,
.experience-entry h3 {
    margin-bottom: 0.75rem;
    font-size: 1.15rem;
    font-weight: 700;
}

.pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.skill-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: var(--color-card);
    border: 1px solid rgba(74, 78, 105, 0.15);
    font-size: 0.95rem;
}

.experience-entry,
.education-entry {
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-border);
}

.experience-entry:last-child,
.education-entry:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.experience-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.9rem;
    padding: 0.95rem 1.1rem;
    border-left: 0.35rem solid var(--color-accent);
    border-radius: 1rem;
    background: linear-gradient(90deg, rgba(201, 173, 167, 0.18), rgba(255, 250, 248, 0.3));
}

.experience-heading h3 {
    margin-bottom: 0.35rem;
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1.25;
    color: var(--color-ink);
}

.education-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.9rem;
}

.education-heading h3 {
    margin-bottom: 0.35rem;
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.25;
    color: var(--color-ink);
}

.experience-company {
    margin-bottom: 0.25rem;
    font-weight: 600;
    color: var(--color-surface-dark);
}

.experience-meta {
    margin-bottom: 0;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(74, 78, 105, 0.1);
    font-weight: 700;
    color: rgba(34, 34, 59, 0.72);
}

.subsection-label {
    margin-bottom: 0.75rem;
    font-weight: 700;
    color: var(--color-surface-dark);
}

.compact-list li {
    margin-bottom: 0.5rem;
}

.course-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-bottom: 1.25rem;
}

.summary-pill {
    min-width: 7rem;
    padding: 0.8rem 1rem;
    border-radius: 1rem;
    background: var(--color-surface-dark);
    color: var(--color-paper);
    box-shadow: 0 12px 24px rgba(34, 34, 59, 0.12);
}

.summary-pill strong {
    display: block;
    font-size: 1.35rem;
}

.summary-label {
    display: block;
    margin-bottom: 0.2rem;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(242, 233, 228, 0.78);
}

.course-group + .course-group {
    margin-top: 1.25rem;
}

.course-group-title {
    margin-bottom: 0.75rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-surface-dark);
}

.course-group-header {
    margin-bottom: 0.75rem;
}

.course-group-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.95rem 1.1rem;
    border: 1px solid rgba(74, 78, 105, 0.15);
    border-radius: 1rem;
    background: linear-gradient(90deg, rgba(201, 173, 167, 0.1), rgba(255, 250, 248, 0.3));
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-surface-dark);
    cursor: pointer;
    transition: all 0.3s ease;
}

.course-group-button:hover,
.course-group-button:focus-visible {
    background: linear-gradient(90deg, rgba(201, 173, 167, 0.2), rgba(255, 250, 248, 0.5));
    border-color: var(--color-accent);
}

.course-group-title-text {
    flex: 1;
    text-align: left;
}

.collapse-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    margin-left: 0.5rem;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.collapse-icon::before {
    content: '▼';
    font-size: 0.75rem;
    color: var(--color-accent);
}

.course-group-button[aria-expanded="false"] .collapse-icon {
    transform: rotate(-90deg);
}

.course-list {
    margin-bottom: 0;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-0.5rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.course-list .list-group-item {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(74, 78, 105, 0.12);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.course-list .course-name {
    flex: 1;
    min-width: 0;
}

.course-list .badge {
    white-space: nowrap;
    font-size: 0.75rem;
    font-weight: 600;
}

.site-footer {
    border-top: 3px solid var(--color-accent);
    background: linear-gradient(180deg, rgba(255, 250, 248, 0.88), rgba(242, 233, 228, 0.72));
    padding: 2rem 0 !important;
}

.site-footer p:first-child {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--color-ink);
}

.site-footer p:last-child {
    color: var(--color-surface-dark);
    font-style: italic;
    font-size: 0.95rem;
}

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

    .experience-heading,
    .education-heading {
        flex-direction: column;
    }
}

@media (max-width: 767.98px) {
    .hero-panel,
    .content-card {
        padding: 1.25rem;
    }

    .resume-nav .nav-tabs {
        flex-wrap: wrap;
    }

    .resume-nav .nav-link {
        width: 100%;
        text-align: center;
    }
}
