@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

:root {
    /* --- LIGHT THEME --- */
    --bg-color: #ffffff;
    --text-main: #0f172a;
    --text-muted: #475569;

    /* Akzentfarben */
    --accent-mint: #2dd4bf;
    --accent-blue: #3b82f6;
    --accent-purple: #a855f7;

    --accent-gradient: linear-gradient(135deg, var(--accent-mint), var(--accent-blue));

    /* Schatten — mehrschichtig für natürliche Tiefe */
    --shadow-card:
        0 1px 2px rgba(0, 0, 0, 0.04),
        0 4px 8px rgba(31, 38, 135, 0.06),
        0 12px 24px rgba(31, 38, 135, 0.08);
    --shadow-hover:
        0 2px 4px rgba(0, 0, 0, 0.04),
        0 8px 16px rgba(0, 0, 0, 0.06),
        0 24px 48px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.55) inset;
    --shadow-glow-blue:
        0 4px 16px rgba(59, 130, 246, 0.22),
        0 12px 32px rgba(59, 130, 246, 0.12);
    --shadow-glow-mint:
        0 4px 16px rgba(45, 212, 191, 0.22),
        0 12px 32px rgba(45, 212, 191, 0.12);
    --shadow-glow-gradient:
        0 8px 24px rgba(59, 130, 246, 0.28),
        0 16px 40px rgba(45, 212, 191, 0.18);

    /* Konsistente Glasmorphismus-Werte */
    --glass-bg: rgba(255, 255, 255, 0.35);
    --glass-bg-hover: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(255, 255, 255, 0.6);
    --glass-border-hover: #ffffff;
    --glass-blur: blur(20px);

    /* Konsistente Border Radius */
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 28px;
    --radius-xl: 50px;
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* --- BACKGROUND BLOBS --- */
.background-container {
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    z-index: -1; 
    overflow: hidden; 
    background: #ffffff;
}

.blob {
    position: absolute; 
    border-radius: 50%;
    filter: blur(60px); 
    opacity: 0.8; 
    mix-blend-mode: multiply;
    animation: float 10s infinite ease-in-out alternate;
}

.blob-1 { 
    top: -5%; 
    left: -10%; 
    width: 55vw; 
    height: 55vw; 
    background: var(--accent-mint); 
    animation-name: move1; 
    animation-duration: 12s; 
}

.blob-2 { 
    bottom: -5%; 
    right: -10%; 
    width: 50vw; 
    height: 50vw; 
    background: var(--accent-blue); 
    animation-name: move2; 
    animation-duration: 10s; 
}

.blob-3 { 
    top: 30%; 
    left: 20%; 
    width: 35vw; 
    height: 35vw; 
    background: var(--accent-purple); 
    animation-name: move3; 
    animation-duration: 8s; 
    opacity: 0.6; 
}

@keyframes move1 { 
    0% { transform: translate(0, 0) scale(1); } 
    100% { transform: translate(50px, 80px) scale(1.1); } 
}

@keyframes move2 { 
    0% { transform: translate(0, 0) scale(1); } 
    100% { transform: translate(-60px, -40px) scale(0.9); } 
}

@keyframes move3 { 
    0% { transform: translate(0, 0) scale(1); } 
    33% { transform: translate(80px, -50px) scale(1.2); } 
    66% { transform: translate(-40px, 60px) scale(0.8); } 
    100% { transform: translate(0, 0) scale(1); } 
}

/* Layout */
.container { 
    max-width: 900px; 
    margin: 0 auto; 
    padding: 2rem; 
    position: relative; 
    z-index: 1; 
}

/* Header */
header {
    text-align: center; 
    padding: 6rem 0 5rem 0;
    animation: fadeOnly 1s ease-out forwards;
}

/* --- H1 ANIMATION --- */
h1 {
    font-size: 10rem;
    font-weight: 800;
    text-align: center;
    width: 100%;
    margin: 0 auto;
    background: linear-gradient(to right, #0f172a 0%, #3b82f6 25%, #2dd4bf 50%, #a855f7 75%, #0f172a 100%);
    background-size: 300% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: titleReveal 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards, shimmerText 8s linear infinite;
}

@keyframes titleReveal {
    0% { opacity: 0; transform: translateY(30px); filter: blur(15px); letter-spacing: 5px; }
    100% { opacity: 1; transform: translateY(0); filter: blur(0); letter-spacing: -2px; }
}

@keyframes shimmerText { 
    0% { background-position: 0% 50%; } 
    100% { background-position: 300% 50%; } 
}

@keyframes fadeOnly { 
    from { opacity: 0; } 
    to { opacity: 1; } 
}

.role {
    font-size: 1.5rem;
    color: var(--accent-blue);
    font-weight: 600;
    margin-bottom: 2.5rem;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    display: inline-block;
    padding: 0.6rem 2rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--glass-border);
    opacity: 0;
    animation: popIn 0.8s 0.3s forwards;
}

/* Social Icons */
.social-links { 
    display: flex; 
    justify-content: center; 
    gap: 1.5rem; 
    margin-bottom: 6rem; 
    opacity: 0; 
    animation: popIn 0.8s 0.5s forwards; 
}

.social-btn {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    color: var(--text-muted);
    font-size: 3rem;
    text-decoration: none;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    transition: all 0.15s ease-out;
}

.social-btn:focus-visible {
    outline: 3px solid var(--accent-blue);
    outline-offset: 4px;
}

.social-btn:hover {
    transform: translateY(-5px) scale(1.1);
    color: #fff;
    background: var(--accent-gradient);
    box-shadow: var(--shadow-glow-gradient);
    border-color: transparent;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 4rem;
    color: var(--text-main);
    position: relative;
    display: inline-block;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    padding: 0.6rem 2rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
}

/* --- TIMELINE --- */
.timeline { 
    position: relative; 
    padding-left: 5rem; 
}

.timeline::before {
    content: ''; 
    position: absolute; 
    left: 1rem; 
    top: 20px; 
    bottom: 0; 
    width: 3px;
    background: #cbd5e1; 
    border-radius: 3px;
}

/* --- JOB CARD (MILCHGLAS UPDATE) --- */
.job-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-card);
    border-radius: var(--radius-lg);
    padding: 2.8rem;
    margin-bottom: 4rem;
    position: relative;
    opacity: 0;
    transform: translateY(40px);
    z-index: 1;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.6s ease;
}

.job-card.visible { 
    opacity: 1; 
    transform: translateY(0); 
}

.job-card.interactive {
    transition: transform 0.1s ease-out, box-shadow 0.1s ease-out, background 0.1s ease-out, border-color 0.1s !important;
    transition-delay: 0s !important; 
}

/* HOVER: Deckender und höher */
.job-card.interactive:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: var(--shadow-hover), var(--shadow-glow-blue);
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-hover);
    z-index: 10;
}

/* DOT */
.job-card::before {
    content: ''; 
    position: absolute; 
    left: -2.5rem; 
    top: 3.2rem; 
    width: 18px; 
    height: 18px;
    background: #ffffff; 
    border: 4px solid var(--accent-blue); 
    border-radius: 50%; 
    z-index: 2;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1); 
    transition: all 0.2s ease-out;
}

.job-card.interactive:hover::before {
    transition: all 0.1s ease-out; 
    transform: scale(1.3); 
    border-color: var(--accent-mint);
    box-shadow: 0 0 0 8px rgba(45, 212, 191, 0.2); 
    background: var(--accent-mint);
}

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

.job-title h3 { 
    font-size: 1.8rem; 
    font-weight: 800; 
    color: var(--text-main); 
    letter-spacing: -0.5px; 
}

.company { 
    color: var(--accent-blue); 
    font-weight: 700; 
    font-size: 1.1rem; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    margin-top: 0.2rem; 
}

.date-badge {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    color: var(--text-muted);
    padding: 0.5rem 1.2rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 700;
    border: 1px solid var(--glass-border);
}

.work-description {
    margin-bottom: 1.5rem; 
    color: var(--text-main); 
    font-weight: 400; 
    font-size: 1.1rem;
}

.task-list { 
    list-style: none; 
    margin-bottom: 2rem; 
}

.task-list li { 
    position: relative; 
    padding-left: 2.2rem; 
    margin-bottom: 0.9rem; 
    color: var(--text-muted); 
    font-size: 1.05rem; 
}

.task-list li::before { 
    content: '➜'; 
    position: absolute; 
    left: 0; 
    font-size: 1.1rem; 
    color: var(--accent-mint); 
    font-weight: 900; 
}

.tech-stack { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 0.8rem; 
}

.tech-tag {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    padding: 0.5rem 1.2rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    border: 1px solid var(--glass-border);
    cursor: default;
    transition: 0.1s ease-out;
}

.tech-tag:focus-visible {
    outline: 3px solid var(--accent-blue);
    outline-offset: 3px;
}

.tech-tag:hover {
    border-color: var(--accent-blue);
    color: #fff;
    background: var(--accent-blue);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow-blue);
}

footer { 
    text-align: center; 
    padding: 8rem 0 4rem 0; 
    color: var(--text-muted); 
    font-size: 1rem; 
    opacity: 0.8; 
}

@keyframes popIn { 
    0% { opacity: 0; transform: scale(0.9); } 
    100% { opacity: 1; transform: scale(1); } 
}

@media (max-width: 768px) {
    h1 { font-size: 3rem; }
    .timeline { padding-left: 3.5rem; }
    .timeline::before { left: 0.5rem; }
    .job-card::before { left: -2rem; }
    .job-card { padding: 2rem; }
}

/* --- ACCESSIBILITY: Bewegungsreduzierung --- */
@media (prefers-reduced-motion: reduce) {
    .blob { animation: none; }

    h1 {
        animation: none;
        opacity: 1;
        letter-spacing: -2px;
        filter: blur(0);
        transform: none;
    }

    .role,
    .social-links {
        animation: none;
        opacity: 1;
        transform: scale(1);
    }

    .job-card {
        opacity: 1;
        transform: translateY(0);
        transition: none;
    }

    .job-card.interactive,
    .social-btn,
    .tech-tag {
        transition: none;
    }

    .job-card.interactive:hover,
    .social-btn:hover,
    .tech-tag:hover {
        transform: none;
    }
}

/* --- ACCESSIBILITY: Windows High Contrast Mode --- */
@media (forced-colors: active) {
    .job-card,
    .role,
    .date-badge,
    .tech-tag,
    .section-title,
    .social-btn {
        border: 2px solid ButtonText;
        background: Canvas;
        color: ButtonText;
    }

    .social-btn:hover,
    .tech-tag:hover {
        background: Highlight;
        color: HighlightText;
        border-color: Highlight;
    }

    .timeline::before {
        background: ButtonText;
    }

    .job-card::before {
        border-color: ButtonText;
        background: Canvas;
    }
}