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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    scroll-behavior: smooth;
}

/* Navbar */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

#navbar nav {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

#navbar a {
    color: #333;
    text-decoration: none;
    margin: 0 1.5rem;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

#navbar a:hover {
    color: #6366f1;
}

#navbar a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #6366f1;
    transition: width 0.3s ease;
}

#navbar a:hover::after {
    width: 100%;
}

/* Welcome Section */
#welcome-section {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    position: relative;
}

#welcome-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

#welcome-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

#welcome-section p {
    font-size: 1.3rem;
    opacity: 0.9;
    position: relative;
    z-index: 2;
    font-weight: 300;
}

/* Projects Section */
#projects {
    padding: 5rem 2rem;
    background: #f8fafc;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #1f2937;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.project-tile {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.project-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.15);
}

.project-image {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.4rem;
    font-weight: 700;
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: 1rem;
}

.fullstack-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.fullstack-gradient::after {
    content: 'Todo App Fullstack';
}

.landing-gradient {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.landing-gradient::after {
    content: 'AnimeAcademy Landing Page';
}

.documentation-gradient {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.documentation-gradient::after {
    content: 'Anime Production Pipeline Docs';
}

.tribute-gradient {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
}

.tribute-gradient::after {
    content: 'Akira Toriyama Tribute';
}

.survey-gradient {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.survey-gradient::after {
    content: 'Anime Survey Form';
}

.project-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    transition: background 0.3s ease;
}

.project-image::after {
    position: relative;
    z-index: 2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.project-tile:hover .project-image::before {
    background: rgba(0, 0, 0, 0.2);
}

.project-content {
    padding: 1.5rem;
}

.project-title {
    display: none;
}

.project-description {
    color: #6b7280;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.project-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.project-link {
    display: inline-block;
    color: #6366f1;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    border: 1px solid #6366f1;
    border-radius: 6px;
    font-size: 0.9rem;
}

.project-link:hover {
    background: #6366f1;
    color: white;
}

.project-link.secondary {
    color: #6b7280;
    border-color: #d1d5db;
}

.project-link.secondary:hover {
    background: #6b7280;
    color: white;
}

/* About Section */
#about {
    padding: 5rem 2rem;
    background: white;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 1.1rem;
    color: #6b7280;
    margin-bottom: 2rem;
}

.skills {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.skill-tag {
    background: #f3f4f6;
    color: #374151;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Contact Section */
#contact {
    padding: 5rem 2rem;
    background: #1f2937;
    color: white;
    text-align: center;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.contact-link {
    color: #9ca3af;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: white;
}

/* Media Queries für Responsive Design */
@media screen and (max-width: 768px) {
    #navbar {
        padding: 1rem;
    }

    #navbar nav {
        flex-direction: column;
        gap: 1rem;
    }

    #navbar a {
        margin: 0 0.5rem;
    }

    #welcome-section h1 {
        font-size: 2.5rem;
    }

    #welcome-section p {
        font-size: 1.1rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-links {
        flex-direction: column;
        gap: 1rem;
    }

    .skills {
        gap: 0.5rem;
    }

    .project-links {
        flex-direction: column;
    }
}

@media screen and (max-width: 480px) {
    #welcome-section h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    #projects,
    #about,
    #contact {
        padding: 3rem 1rem;
    }
}