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

::-webkit-scrollbar {
    display: none;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #1f2937;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem 2rem;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.logo-svg {
    width: 24px;
    height: 24px;
    fill: white;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: #4b5563;
    text-decoration: none;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
    transition: left 0.5s;
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: #6366f1;
    background: rgba(99, 102, 241, 0.1);
    transform: translateY(-2px);
}

.theme-toggle {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    border-color: #6366f1;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
}

.theme-icon {
    width: 20px;
    height: 20px;
    fill: #6b7280;
    transition: all 0.3s ease;
}

/* Main Content */
main {
    padding-top: 80px;
}

.section {
    min-height: 100vh;
    padding: 6rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.container {
    max-width: 1400px;
    width: 100%;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 4rem;
    color: #f9fafb;
    background: none;
    -webkit-text-fill-color: initial;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 2px;
}

/* Hero Section */
#home {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

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

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-description {
    font-size: 1.125rem;
    margin-bottom: 3rem;
    opacity: 0.8;
    line-height: 1.7;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-primary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.95);
    color: #6366f1;
    border: 2px solid transparent;
}

.btn-secondary:hover {
    background: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.project-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(30px);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.05), transparent);
    transition: left 0.6s;
}

.project-card:hover::before {
    left: 100%;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.project-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.project-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
    flex-shrink: 0;
}

.project-icon svg {
    width: 28px;
    height: 28px;
    fill: white;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
}

.project-description {
    color: #6b7280;
    margin-bottom: 2rem;
    line-height: 1.7;
    font-size: 1rem;
    flex-grow: 1;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.tech-tag {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    color: #6366f1;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid rgba(99, 102, 241, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.tech-tag:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.2));
    transform: scale(1.05);
}

.project-links {
    display: flex;
    gap: 1rem;
    margin-top: auto;
}

.project-link {
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.link-primary {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
}

.link-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4);
}

.link-secondary {
    background: rgba(107, 114, 128, 0.1);
    color: #6b7280;
    border: 1px solid rgba(107, 114, 128, 0.2);
}

.link-secondary:hover {
    background: rgba(107, 114, 128, 0.2);
    transform: translateY(-2px);
}

/* Hobbies & Imprint Section */
.hobbies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.hobby-category {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.hobby-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.hobby-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.hobby-icon svg {
    width: 28px;
    height: 28px;
    fill: white;
}

.hobby-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1f2937;
}

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

.imprint-link {
    color: #6366f1;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.imprint-link:hover {
    color: #4b5563;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    text-align: center;
}

.profile-image {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    box-shadow: 0 25px 50px rgba(99, 102, 241, 0.3);
    position: relative;
    overflow: hidden;
}

.profile-image::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
}

.profile-image svg {
    width: 120px;
    height: 120px;
    fill: white;
    z-index: 1;
}

.about-text {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.about-text h3 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #1f2937;
    background: linear-gradient(135deg, #1f2937, #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-text p {
    color: #6b7280;
    margin-bottom: 2rem;
    line-height: 1.8;
    font-size: 1.1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: rgba(99, 102, 241, 0.05);
    border-radius: 12px;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #6366f1;
    display: block;
}

.stat-label {
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Contact Section */
.contact-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-description {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #e5e7eb;
    opacity: 0.95;
}

.social-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 4rem;
    /* Add space between social links and form */
}

.social-box {
    background: linear-gradient(135deg, #ffffff, #f9fafb);
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
}

.social-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.social-icon {
    width: 24px;
    height: 24px;
    fill: #6b7280;
    transition: fill 0.3s ease;
}

.github-box:hover {
    border-color: #24292e;
}

.instagram-box:hover {
    border-color: #e4405f;
}

.discord-box:hover {
    border-color: #5865F2;
}

.social-box:hover .social-icon {
    fill: #1f2937;
}

.contact-form {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 2rem;
    text-align: left;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #1f2937;
}

.form-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid rgba(229, 231, 235, 0.5);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.form-input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.submit-btn {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4);
}

#form-status {
    margin-top: 1.5rem;
    font-weight: 500;
}

.version-tag {
    position: fixed;
    cursor: pointer;
    bottom: 20px;
    left: 20px;
    padding: 5px 10px;
    background-color: #667eea;
    color: #fff;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}


/* Dark Mode Styles */
body.dark {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    color: #f9fafb;
}

body.dark #home {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
}

body.dark .header {
    background: rgba(31, 41, 55, 0.95);
    border-bottom-color: rgba(55, 65, 81, 0.3);
}

body.dark .logo {
    color: #f9fafb;
}

body.dark .nav-link {
    color: #d1d5db;
}

body.dark .nav-link:hover,
body.dark .nav-link.active {
    color: #6366f1;
    background: rgba(99, 102, 241, 0.2);
}

body.dark .theme-toggle {
    background: rgba(31, 41, 55, 0.9);
    border-color: #4b5563;
}

body.dark .theme-icon {
    fill: #d1d5db;
}

body.dark .project-card,
body.dark .hobby-category,
body.dark .about-text,
body.dark .contact-form {
    background: rgba(31, 41, 55, 0.95);
    border-color: rgba(55, 65, 81, 0.3);
}

body.dark .project-title,
body.dark .hobby-title,
body.dark .form-label {
    color: #f9fafb;
}

body.dark .about-text h3 {
    background: linear-gradient(135deg, #ffffff, #c4b5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.dark .project-description,
body.dark .hobby-description,
body.dark .about-text p {
    color: #d1d5db;
}

body.dark .contact-description {
    color: #d1d5db;
}

body.dark .link-secondary {
    background: rgba(75, 85, 99, 0.3);
    color: #d1d5db;
    border-color: rgba(75, 85, 99, 0.4);
}

body.dark .link-secondary:hover {
    background: rgba(75, 85, 99, 0.5);
}

body.dark .stat-item {
    background: rgba(99, 102, 241, 0.1);
}

body.dark .imprint-link {
    color: #a78bfa;
}

body.dark .imprint-link:hover {
    color: #d1d5db;
}

body.dark .form-input {
    background: rgba(31, 41, 55, 0.8);
    border-color: rgba(75, 85, 99, 0.5);
    color: #f9fafb;
}

body.dark .form-input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

body.dark .social-box {
    background: linear-gradient(135deg, #374151, #4b5563);
    border-color: #4b5563;
}

body.dark .social-icon {
    fill: #9ca3af;
}

body.dark .social-box:hover .social-icon {
    fill: white;
}

body.dark .github-box:hover {
    background: linear-gradient(135deg, #24292e, #2f363d);
    border-color: #24292e;
}

body.dark .instagram-box:hover {
    background: linear-gradient(135deg, #e4405f, #c13584, #833ab4);
    border-color: #e4405f;
}

body.dark .discord-box:hover {
    background: linear-gradient(135deg, #5865F2, #7289da);
    border-color: #5865F2;
}

body.dark .version-tag {
    background-color: #4b5563;
    color: #f9fafb;
}

/* Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mobile-menu:hover {
    background: rgba(99, 102, 241, 0.1);
}

.mobile-menu svg {
    width: 24px;
    height: 24px;
    fill: #4b5563;
    transition: fill 0.3s ease;
}

body.dark .mobile-menu svg {
    fill: #d1d5db;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
        border-radius: 0 0 20px 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        display: flex;
    }

    .mobile-menu {
        display: block;
    }

    body.dark .nav-menu {
        background: rgba(31, 41, 55, 0.95);
    }

    .header {
        padding: 1rem;
    }

    .section {
        padding: 4rem 1rem;
    }

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

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 0.75rem;
    }

    .hero-description {
        font-size: 0.9rem;

    }

    .hero-buttons {
        flex-direction: row;
        align-items: center;
    }

    .btn {
        padding: 0.75rem 1.2rem;
        border-radius: 12px;
        font-weight: 600;
        font-size: 1rem;
    }

    .hero-content {
        margin-top: -150px;
    }

    .projects-grid,
    .hobbies-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .project-card,
    .hobby-category {
        padding: 2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .profile-image {
        width: 200px;
        height: 200px;
        margin-bottom: 1.5rem;
    }

    .profile-image svg {
        width: 80px;
        height: 80px;
    }

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

    .contact-form {
        padding: 2rem;
    }
}

/* Loading Animation */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

