/* === GRUNDEINSTELLUNGEN & DESIGN-TOKEN (VARIABLEN) === */
:root {
    --bg-color: #0d1117;
    --surface-color: #161b22;
    --text-primary: #c9d1d9;
    --text-secondary: #8b949e;
    --accent-color: #58a6ff;
    --accent-hover: #79c0ff;
    --border-color: #30363d;
    --cursor-hover-bg: rgba(88, 166, 255, 0.3);

    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-mono: 'Space Mono', monospace;
}

/* === GLOBALE RESET & BASIS-STILE === */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-color);
    color: var(--text-primary);
    margin: 0;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    cursor: none;
}

body.cursor-fallback {
    cursor: auto;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === INTERAKTIVER CURSOR === */
.cursor-dot, .cursor-outline {
    position: absolute;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
    will-change: transform, background-color, opacity;
}
body.cursor-ready .cursor-dot,
body.cursor-ready .cursor-outline {
    opacity: 1;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-color);
}
.cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid var(--accent-color);
    background-color: transparent;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

/* === HERO-BEREICH === */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}
.hero-title {
    font-size: clamp(3rem, 12vw, 9rem);
    font-weight: 900;
    margin: 0;
    color: #fff;
    line-height: 1;
}
.hero-subtitle {
    font-family: var(--font-mono);
    font-size: clamp(1rem, 4vw, 2rem);
    color: var(--text-secondary);
    margin-top: 20px;
    min-height: 40px;
}
#typewriter::after {
    content: '_';
    animation: blink 1s infinite;
    color: var(--accent-color);
    margin-left: 5px;
}
#typewriter.finished::after {
    animation: none;
    opacity: 0;
}
@keyframes blink {
    50% { opacity: 0; }
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-secondary);
}
.scroll-indicator .line {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, var(--text-secondary), transparent);
}

/* === ALLGEMEINE SEKTIONS-STILE === */
section {
    padding: 120px 0;
}
.section-title {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 60px;
    text-align: center;
    position: relative;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
}

/* === TIMELINE === */
.timeline {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}
.timeline-line {
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--border-color);
    transform: scaleY(0);
    transform-origin: top center;
}
.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 50px;
}
.timeline-dot {
    position: absolute;
    left: 0;
    top: 5px;
    width: 32px;
    height: 32px;
    background-color: var(--surface-color);
    border: 2px solid var(--accent-color);
    border-radius: 50%;
}
.timeline-content h4 {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    color: var(--accent-color);
    margin: 0 0 10px 0;
}
.timeline-content p {
    margin: 0;
    color: var(--text-secondary);
}

/* === PROJEKTE === */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}
.project-card {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    text-decoration: none;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    will-change: transform, box-shadow;
}
.project-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}
.project-image-wrapper {
    height: 250px;
    overflow: hidden;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}
.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.4s ease;
    will-change: transform;
}
.project-card:hover img {
    transform: scale(1.1);
}
.project-info {
    padding: 30px;
}
.project-category {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent-color);
    margin-bottom: 15px;
    display: block;
}
.project-info h4 {
    font-size: 1.8rem;
    margin: 0 0 10px 0;
    color: #fff;
}
.project-info p {
    margin: 0;
    color: var(--text-secondary);
}

/* === SKILLS === */
.skill-matrix {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    max-width: 800px;
    margin: 0 auto;
}
.skill-item {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
    will-change: transform;
}
.skill-item:hover {
    color: var(--accent-color);
    border-color: var(--accent-color);
    transform: scale(1.1);
}

/* === GITHUB STATS === */
.github-stats-section img {
    width: 100%;
    margin-bottom: 20px;
    border-radius: 8px;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    align-items: center;
}
.activity-graph {
    margin-top: 20px;
}

/* === KONTAKT === */
.contact-section {
    text-align: center;
}
.contact-section p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto 40px auto;
}
.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}
.contact-button {
    padding: 15px 40px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 700;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    will-change: background-color, color, border-color;
}
.contact-button.github {
    background-color: #fff;
    color: #000;
}
.contact-button.github:hover {
    background-color: transparent;
    color: #fff;
    border-color: #fff;
}
.contact-button.soundcloud {
    background-color: #FF5500;
    color: #fff;
}
.contact-button.soundcloud:hover {
    background-color: transparent;
    color: #FF5500;
    border-color: #FF5500;
}

/* === FOOTER === */
footer {
    padding: 40px 0;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-top: 1px solid var(--border-color);
}

/*
=================================
Quote Section
=================================
*/
.quote-section {
    text-align: center;
    padding: 100px 20px;
    margin: 40px 0;
}

.quote-content blockquote {
    font-family: var(--font-mono);
    font-size: 2rem;
    font-weight: 400;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-primary);
    border-left: 4px solid var(--accent-color);
    padding-left: 30px;
    text-align: left;
    position: relative;
}

.quote-content blockquote::before {
    content: '“';
    font-family: var(--font-primary);
    position: absolute;
    left: -25px;
    top: -20px;
    font-size: 5rem;
    color: var(--accent-color);
    opacity: 0.2;
    line-height: 1;
}

/* === RESPONSIVE ANPASSUNGEN === */
@media (max-width: 768px) {
    .section-title { font-size: 2.5rem; }
    .project-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; }

    .quote-content blockquote {
        font-size: 1.5rem;
        padding-left: 20px;
    }

    .quote-content blockquote::before {
        font-size: 4rem;
        left: -15px;
        top: -15px;
    }
}

@media (hover: none) or (pointer: coarse) {
    .cursor-dot, .cursor-outline {
        display: none;
    }
    body {
        cursor: auto;
    }
}
