:root {
    --bg-primary: #1a1a1a;
    --bg-secondary: #242424;
    --bg-tertiary: #2d2d2d;
    --text-primary: #e5e5e5;
    --text-secondary: #a3a3a3;
    --text-muted: #737373;
    --accent: #6b7280;
    --accent-hover: #9ca3af;
    --border: #404040;
    --shadow: rgba(0, 0, 0, 0.3);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

header {
    position: fixed;
    top: 0;
    right: 0;
    padding: 1rem 1.5rem;
    z-index: 100;
}

.language-switch {
    display: flex;
    gap: 0.5rem;
}

.lang-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.4rem 0.6rem;
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0.6;
}

.lang-btn:hover,
.lang-btn.active {
    opacity: 1;
    background: var(--bg-tertiary);
    border-color: var(--accent);
}

.flag {
    font-size: 1.2rem;
}

main {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.hero {
    padding: 4rem 0 3rem;
}

.profile-container {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.profile-photo {
    width: 160px;
    height: 160px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid var(--border);
    flex-shrink: 0;
}

.profile-info {
    flex: 1;
}

h1 {
    font-size: 2.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.title {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-weight: 400;
}

.summary {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}

.contact-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
}

.contact-btn.large {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-icon {
    font-size: 1.1em;
}

.section {
    margin-bottom: 3rem;
}

h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.timeline-item {
    background: var(--bg-secondary);
    padding: 1.25rem;
    border-radius: 10px;
    border: 1px solid var(--border);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.timeline-company,
.timeline-institution {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
}

.timeline-period {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.timeline-position,
.timeline-degree {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.timeline-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.skill-tag {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    border: 1px solid var(--border);
}

.languages-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.language-item {
    background: var(--bg-secondary);
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.language-name {
    font-weight: 500;
    color: var(--text-primary);
}

.language-level {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.contact-section {
    text-align: center;
    padding: 2rem 0;
    margin-top: 2rem;
}

footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid var(--border);
    margin-top: 2rem;
}

footer a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
}

footer a:hover {
    color: var(--text-secondary);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    position: relative;
    border: 1px solid var(--border);
}

.modal-content h2 {
    border-bottom: none;
    margin-bottom: 1rem;
}

.close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
}

.close:hover {
    color: var(--text-primary);
}

.imprint-content {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.imprint-content p {
    margin-bottom: 1rem;
}

.imprint-content a {
    color: var(--text-primary);
}

/* Responsive */
@media (max-width: 600px) {
    .profile-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .profile-photo {
        width: 120px;
        height: 120px;
    }

    h1 {
        font-size: 1.75rem;
    }

    .timeline-header {
        flex-direction: column;
    }
}
