/* Reset und Basis - Explizit für full-width */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #fff;
    background: #0a0a0a;
}
a {
    text-decoration: none;
    color: inherit;
}
ul {
    list-style: none;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: background 0.3s;
}
nav ul {
    display: flex;
    justify-content: center;
    gap: 2rem;
}
nav li a {
    font-size: 1.1rem;
    transition: color 0.3s;
}
nav li a:hover {
    color: #00ff88;
}

/* Full-width Sections - Robuster Hack ohne calc */
.full-width-section {
    position: relative;
    left: 50%;
    margin-left: -50vw;
    width: 100vw;
    padding: 5rem 2rem;
}
.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}
h2 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 3rem;
    color: #00ff88;
}

/* Hero Section */
#hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
}
#hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
}
#hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}
.cta {
    padding: 1rem 2rem;
    background: #00ff88;
    color: #000;
    border-radius: 50px;
    font-weight: bold;
    transition: transform 0.3s;
}
.cta:hover {
    transform: scale(1.05);
}

/* About */
#about {
    background: #1a1a2e;
}
#about .bio {
    font-size: 1.2rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}
.skill-item {
    text-align: center;
    padding: 1rem;
    background: #16213e;
    border-radius: 10px;
    transition: transform 0.3s;
}
.skill-item:hover {
    transform: translateY(-5px);
}
.skill-item i {
    font-size: 2rem;
    color: #00ff88;
    margin-bottom: 0.5rem;
}

/* Projects */
#projects {
    background: #0a0a0a;
}
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.project-card {
    background: #16213e;
    padding: 2rem;
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
    display: flex; /* Flexbox for consistent button position */
    flex-direction: column; /* Stack content vertically */
    min-height: 250px; /* Adjusted: Shorter without image */
}
.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.1), transparent);
    transition: left 0.5s;
}
.project-card:hover::before {
    left: 100%;
}
.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 255, 136, 0.2);
}
.project-card h3 {
    color: #00ff88;
    margin-bottom: 1rem;
    flex-grow: 1; /* Allow title/desc to expand, pushing button down */
}
.project-card p {
    margin-bottom: 1rem;
    flex-grow: 1; /* Descriptions expand to fill space */
}
.github-link {
    display: inline-block;
    margin-top: auto; /* Pushes button to bottom */
    padding: 0.5rem 1rem;
    background: #333;
    color: #fff;
    border-radius: 5px;
    transition: background 0.3s;
    align-self: flex-start; /* Keeps button left-aligned */
}
.github-link:hover {
    background: #00ff88;
    color: #000;
}

/* Currently Working On */
#working-on {
    background: #1a1a2e;
    text-align: center;
}
.progress-bar {
    width: 100%;
    height: 10px;
    background: #333;
    border-radius: 5px;
    margin: 2rem auto;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    background: #00ff88;
    width: 0%;
    transition: width 2s ease-in-out;
    border-radius: 5px;
}
.project-card.working {
    max-width: 800px;
    margin: 0 auto;
}

/* Footer */
footer {
    background: #0a0a0a;
    text-align: center;
    padding: 2rem;
    border-top: 1px solid #333;
    position: relative;
    left: 50%;
    margin-left: -50vw;
    width: 100vw;
}
.github-profile {
    color: #00ff88;
    margin-left: 1rem;
}

/* Erweiterte Responsive Anpassungen */
@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    .full-width-section {
        padding: 4rem 1.5rem;
    }
}

@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    nav li a {
        font-size: 1rem;
    }
    #hero h1 {
        font-size: 2.5rem;
    }
    #hero p {
        font-size: 1.2rem;
    }
    .cta {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    h2 {
        font-size: 2.5rem;
    }
    .full-width-section {
        padding: 3rem 1rem;
    }
    .project-card, .skill-item {
        padding: 1.5rem;
    }
    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    #hero h1 {
        font-size: 2rem;
    }
    #hero p {
        font-size: 1rem;
    }
    h2 {
        font-size: 2rem;
    }
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}