@import url('https://fonts.googleapis.com/css2?family=Google+Sans:wght@400;500;700&family=Roboto:wght@400;500;700&display=swap');

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

/* ── Material 3 Tokens (Dark) ── */
:root {
    --bg: #1f1f1f;
    --surface: #2d2d2d;
    --surface-container: #252525;
    --on-surface: #e3e3e3;
    --on-surface-variant: #9aa0a6;
    --primary: #8ab4f8;
    --on-primary: #062e6f;
    --primary-container: #004a77;
    --on-primary-container: #d3e3fd;
    --outline: #3c4043;
    --outline-variant: #3c4043;
    --shadow: rgba(0, 0, 0, 0.3);
    --shadow-elevated: rgba(0, 0, 0, 0.4);
    --chip-bg: #394457;
    --chip-text: #8ab4f8;
    --chip-border: transparent;
    --card-radius: 16px;
}

/* ── Top Accent Line ── */
.accent-line {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #1a73e8, #8ab4f8, #a78bfa, #1a73e8);
    background-size: 200% 100%;
    z-index: 200;
}

html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg);
    color: var(--on-surface);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

/* ── Layout ── */
.page-wrapper {
    max-width: 860px;
    margin: 0 auto;
    padding: 56px 16px 40px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ── Cards ── */
.card {
    background: var(--surface);
    border-radius: var(--card-radius);
    padding: 24px;
    box-shadow: 0 1px 3px var(--shadow), 0 1px 2px var(--shadow);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 2px 8px var(--shadow-elevated), 0 1px 3px var(--shadow);
}


/* ── Section Title ── */
.section-title {
    font-family: 'Google Sans', 'Roboto', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.section-title-underline {
    display: none;
}

/* ── Header Section ── */
.header-card {
    background: var(--surface);
    border-radius: var(--card-radius);
    padding: 28px 24px;
    box-shadow: 0 1px 3px var(--shadow), 0 1px 2px var(--shadow);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}


.header-row {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-info {
    flex: 1;
    min-width: 0;
}

.header-name {
    font-family: 'Google Sans', 'Roboto', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--on-surface);
    line-height: 1.2;
    transition: color 0.3s ease;
}

.header-role {
    font-family: 'Google Sans', 'Roboto', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: var(--primary);
    margin-top: 4px;
    transition: color 0.3s ease;
}

.header-location {
    font-size: 0.875rem;
    color: var(--on-surface-variant);
    margin-top: 2px;
    transition: color 0.3s ease;
}

/* ── Hero Stats ── */
.hero-stats {
    display: flex;
    gap: 24px;
    margin-top: 12px;
}

.hero-stat {
    display: flex;
    flex-direction: column;
}

.hero-stat-number {
    font-family: 'Google Sans', 'Roboto', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
    transition: color 0.3s ease;
}

.hero-stat-label {
    font-size: 0.6875rem;
    color: var(--on-surface-variant);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

/* ── Contact Pills ── */
.header-contacts {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
}

.contact-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--primary);
    background: var(--primary-container);
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, transform 0.15s, opacity 0.2s;
    text-decoration: none;
}

.contact-pill svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.contact-pill:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}


.header-photo {
    width: min(20vw, 100px);
    height: min(20vw, 100px);
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 3px solid var(--outline-variant);
    transition: border-color 0.3s ease;
}

/* ── About ── */
/* ── Highlights Grid ── */
.highlights-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.highlight-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: var(--surface-container);
    border-radius: 10px;
    padding: 12px 14px;
}

.highlight-label {
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.highlight-value {
    font-size: 0.8125rem;
    color: var(--on-surface);
    line-height: 1.5;
    transition: color 0.3s ease;
}

/* ── Experience ── */
.experience-entry + .experience-entry {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--outline-variant);
}

.experience-header {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: baseline;
}

.experience-company {
    font-family: 'Google Sans', 'Roboto', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--on-surface);
    transition: color 0.3s ease;
}

.experience-role {
    font-size: 0.9375rem;
    color: var(--on-surface-variant);
    transition: color 0.3s ease;
}

.experience-meta {
    font-size: 0.8125rem;
    color: var(--primary);
    margin-top: 2px;
    transition: color 0.3s ease;
}

.experience-bullets {
    list-style: none;
    padding-left: 0;
    margin-top: 8px;
}

.experience-bullets li {
    font-size: 0.875rem;
    color: var(--on-surface);
    padding: 3px 0 3px 20px;
    position: relative;
    transition: color 0.3s ease;
}

.experience-bullets li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 11px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--primary);
    transition: background-color 0.3s ease;
}

/* ── Skills ── */
.skill-group + .skill-group {
    margin-top: 16px;
}

.skill-group-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--on-surface-variant);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.skill-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-chip {
    font-size: 0.8125rem;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 8px;
    color: var(--chip-text);
    background: var(--chip-bg);
    border: 1px solid var(--chip-border);
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.15s;
    cursor: default;
}

.skill-chip:hover {
    transform: translateY(-1px);
}


/* ── Education ── */
.education-university {
    font-family: 'Google Sans', 'Roboto', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--on-surface);
    transition: color 0.3s ease;
}

.education-department {
    font-size: 0.875rem;
    color: var(--on-surface-variant);
    transition: color 0.3s ease;
}

.education-degree {
    font-size: 0.875rem;
    color: var(--on-surface);
    margin-top: 4px;
    transition: color 0.3s ease;
}

.education-period {
    font-size: 0.8125rem;
    color: var(--primary);
    margin-top: 4px;
    transition: color 0.3s ease;
}

/* ── Footer ── */
.footer {
    text-align: center;
    padding: 24px 0 0;
    font-size: 0.75rem;
    color: var(--on-surface-variant);
}

/* ── Fade-in on Scroll ── */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Section divider (hidden — cards separate sections) ── */
.section-divider {
    display: none;
}

/* ── Mobile ── */
@media (max-width: 600px) {
    .page-wrapper {
        padding: 48px 8px 24px;
        gap: 8px;
    }

    .card {
        padding: 16px;
        border-radius: 12px;
    }

    .header-card {
        padding: 16px;
        border-radius: 12px;
    }

    .header-name {
        font-size: 1.375rem;
    }

    .header-row {
        gap: 12px;
    }

    .hero-stats {
        gap: 16px;
    }

    .hero-stat-number {
        font-size: 1.1rem;
    }

    .contact-pill {
        padding: 5px 10px;
        font-size: 0.75rem;
    }

    .highlights-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }


}
