:root {
    --background: #08111f;
    --surface: rgba(9, 18, 34, 0.72);
    --surface-strong: rgba(14, 28, 51, 0.88);
    --line: rgba(255, 255, 255, 0.08);
    --text: #ecf3ff;
    --muted: #9db0ca;
    --accent: #88b4ff;
    --accent-strong: #c3d8ff;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: Inter, Segoe UI, Arial, sans-serif;
    color: var(--text);
    background:
        linear-gradient(180deg, rgba(5, 12, 25, 0.85), rgba(5, 12, 25, 0.97)),
        url('../assets/curriculum_vitae_background.png') center center / cover no-repeat fixed;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at top right, rgba(136, 180, 255, 0.18), transparent 28%),
        radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.06), transparent 22%);
}

a,
button {
    -webkit-tap-highlight-color: transparent;
}

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

.page-shell {
    position: relative;
    min-height: 100vh;
    padding: 36px 20px 56px;
}

.curriculum-vitae-layout {
    max-width: 1180px;
    margin: 0 auto;
    width: 100%;
}

.hero-panel,
.tabs-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 28px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow);
}

.hero-panel {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 24px;
    padding: 36px;
}

.eyebrow {
    margin: 0 0 10px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--accent-strong);
    font-size: 0.8rem;
}

h1 {
    margin: 0;
    font-size: clamp(2.4rem, 4vw, 4.2rem);
    line-height: 1.05;
    overflow-wrap: break-word;
    word-break: break-word;
}

.headline {
    margin: 16px 0 10px;
    font-size: 1.15rem;
    line-height: 1.5;
    color: var(--accent-strong);
}

.summary {
    max-width: 760px;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.8;
}

.contact-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 20px;
    margin-top: 26px;
}

.contact-grid a,
.contact-grid span,
.action-row a {
    text-decoration: none;
}

.contact-grid a,
.contact-grid span {
    color: var(--text);
    opacity: 0.92;
    overflow-wrap: anywhere;
}

.action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.primary-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 999px;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    text-align: center;
    line-height: 1.2;
}

.primary-button {
    background: linear-gradient(135deg, #e7f0ff, #93b9ff);
    color: #091221;
    font-weight: 700;
}

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

.primary-button:hover,
.secondary-button:hover,
.tab-button:hover {
    transform: translateY(-1px);
}

.hero-card,
.content-card {
    background: var(--surface-strong);
    border: 1px solid var(--line);
    border-radius: 24px;
    min-width: 0;
}

.hero-card {
    padding: 24px;
    align-self: stretch;
}

.hero-card h2,
.content-card h3 {
    margin-top: 0;
    overflow-wrap: break-word;
    word-break: break-word;
}

.hero-card ul,
.content-card ul {
    margin: 16px 0 0;
    padding-left: 18px;
    color: var(--muted);
    line-height: 1.7;
}

.tabs-panel {
    margin-top: 24px;
    padding: 24px;
}

.tab-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 22px;
}

.tab-button {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    color: var(--muted);
    border-radius: 999px;
    min-height: 46px;
    padding: 0 18px;
    cursor: pointer;
    font-size: 0.96rem;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.tab-button.is-active {
    background: rgba(136, 180, 255, 0.16);
    color: var(--text);
    border-color: rgba(136, 180, 255, 0.35);
}

.tab-section {
    display: none;
}

.tab-section.is-active {
    display: block;
}

.learning-projects-section,
.experience-internships-section {
    margin-top: 42px;
    padding-top: 34px;
    border-top: 3px solid rgba(255, 255, 255, 0.75);
}

.learning-projects-section h2,
.experience-internships-section h2 {
    margin: 0 0 34px;
    font-size: clamp(1.8rem, 2.35vw, 2.6rem);
    font-weight: 700;
    text-align: center;
    color: rgba(157, 176, 202, 0.5);
}

.content-grid,
.skills-grid,
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.compact-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.content-card {
    padding: 22px;
}

.card-topline {
    margin-bottom: 12px;
}

.period,
.tagline,
.muted {
    color: var(--muted);
}

.pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.skill-pill {
    display: inline-flex;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(136, 180, 255, 0.12);
    border: 1px solid rgba(136, 180, 255, 0.18);
    color: var(--accent-strong);
    font-size: 0.92rem;
}

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

.project-card p {
    line-height: 1.7;
}

.mini-link {
    text-decoration: none;
    color: var(--accent-strong);
    border: 1px solid rgba(136, 180, 255, 0.2);
    background: rgba(136, 180, 255, 0.08);
    border-radius: 999px;
    padding: 10px 14px;
    white-space: nowrap;
    flex-shrink: 0;
}

@media (max-width: 1024px) {
    .hero-panel,
    .content-grid,
    .skills-grid,
    .compact-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .hero-panel {
        gap: 20px;
    }

    .summary {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    body {
        background:
            linear-gradient(180deg, rgba(5, 12, 25, 0.9), rgba(5, 12, 25, 0.98)),
            url('../assets/curriculum_vitae_background.png') center center / cover no-repeat;
    }

    .page-shell {
        padding: 20px 14px 34px;
    }

    .hero-panel,
    .tabs-panel {
        padding: 22px;
        border-radius: 24px;
    }

    .hero-card,
    .content-card {
        border-radius: 20px;
    }

    h1 {
        font-size: clamp(2rem, 8vw, 3rem);
        line-height: 1.08;
    }

    .headline {
        font-size: 1rem;
    }

    .summary {
        font-size: 0.97rem;
        line-height: 1.7;
    }

    .project-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .mini-link {
        white-space: normal;
    }

    .learning-projects-section,
    .experience-internships-section {
        margin-top: 30px;
        padding-top: 24px;
        border-top-width: 2px;
    }

    .learning-projects-section h2,
    .experience-internships-section h2 {
        margin-bottom: 24px;
        font-size: clamp(1.45rem, 4.2vw, 1.9rem);
    }
}

@media (max-width: 640px) {
    .page-shell {
        padding: 16px 12px 28px;
    }

    .hero-panel,
    .tabs-panel {
        padding: 18px;
        border-radius: 22px;
    }

    .hero-card,
    .content-card {
        padding: 18px;
        border-radius: 18px;
    }

    .eyebrow {
        font-size: 0.72rem;
        letter-spacing: 0.14em;
    }

    h1 {
        font-size: 2rem;
    }

    .headline {
        margin-top: 12px;
        font-size: 0.98rem;
    }

    .summary {
        font-size: 0.95rem;
        line-height: 1.65;
    }

    .action-row,
    .contact-grid,
    .tab-controls {
        gap: 10px;
    }

    .action-row {
        flex-direction: column;
        align-items: stretch;
    }

    .primary-button,
    .secondary-button {
        width: 100%;
        min-height: 46px;
        padding: 12px 16px;
    }

    .tab-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .tab-button {
        width: 100%;
        min-height: 44px;
        padding: 12px 14px;
    }

    .contact-grid {
        flex-direction: column;
        align-items: flex-start;
    }

    .contact-grid a,
    .contact-grid span {
        width: 100%;
    }

    .hero-card ul,
    .content-card ul {
        padding-left: 16px;
    }

    .skill-pill {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 420px) {
    .page-shell {
        padding: 12px 10px 22px;
    }

    .hero-panel,
    .tabs-panel {
        padding: 16px;
    }

    .hero-card,
    .content-card {
        padding: 16px;
    }

    h1 {
        font-size: 1.8rem;
    }

    .summary,
    .project-card p,
    .hero-card ul,
    .content-card ul {
        font-size: 0.92rem;
    }

    .primary-button,
    .secondary-button,
    .tab-button,
    .mini-link {
        font-size: 0.92rem;
    }
}