:root {
    --bg-color: #0d0d12;
    --surface-color: #16161e;
    --primary-color: #6366f1;
    --secondary-color: #a855f7;
    --text-color: #f3f4f6;
    --text-muted: #9ca3af;
    --border-color: #2e2e36;
    --accent-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Outfit', sans-serif;

    --container-width: 1200px;
    --header-height: 80px;
    --border-radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 100px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-left: 1rem;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* Header */
.header {
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(13, 13, 18, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.nav-list {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-muted);
    font-weight: 500;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-color);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-color);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    position: relative;
    overflow: hidden;
}

/* Background decorative elements */
.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    z-index: -1;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    max-width: 100%;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.4s;
}

.hero-image {
    width: 100%;
    max-width: 450px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    aspect-ratio: 1/1;
    object-fit: cover;
    transition: var(--transition);
}

.hero-image:hover {
    transform: scale(1.02);
    border-color: var(--primary-color);
}

.greeting {
    display: block;
    font-size: 1.25rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.2s;
}

.headline {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.4s;
}

.subheadline {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.6s;
}

.hero-buttons {
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.8s;
}

/* Section General */
.section {
    padding: 6rem 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.skills-wrapper {
    background: var(--surface-color);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.skills-wrapper h3 {
    margin-bottom: 1.5rem;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.skill-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.skill-item:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.3);
    color: var(--primary-color);
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--surface-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.project-image {
    height: 200px;
    width: 100%;
    background-color: #333;
}

.project-info {
    padding: 2rem;
}

.project-info h3 {
    margin-bottom: 0.5rem;
}

.project-info p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.project-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.project-tags span {
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    color: var(--text-muted);
}

.project-link {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.project-link:hover {
    color: var(--secondary-color);
}

/* Contact Section */
.contact-container {
    text-align: center;
    background: var(--surface-color);
    padding: 4rem 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.contact-container::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: 0;
    pointer-events: none;
}

.contact-content {
    position: relative;
    z-index: 1;
}

.contact-text {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
.footer {
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
    margin-top: 4rem;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-logo {
    color: var(--text-color);
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: var(--text-muted);
}

.social-links a:hover {
    color: var(--primary-color);
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .headline {
        font-size: 3rem;
    }

    .hero-container,
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-image-wrapper {
        order: -1;
        /* Image on top */
        margin-bottom: 2rem;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hamburger {
        display: flex;
        z-index: 2000;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--surface-color);
        padding: 6rem 2rem;
        transition: var(--transition);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }

    .nav.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 1.5rem;
    }

    .nav-link {
        font-size: 1.5rem;
    }

    .footer-container {
        flex-direction: column;
        gap: 1.5rem;
    }
}

/* Subpages & Project Details */
.back-link {
    display: inline-block;
    margin-bottom: 2rem;
    color: var(--primary-color);
    font-weight: 600;
}

.back-link:hover {
    text-decoration: underline;
}

.project-detail-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

/* automatische Textabstände */
.project-description>*+* {
    margin-top: 1.4rem;
}

.iframe-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    background: #000;
}

.iframe-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Modus für Articulate Rise (Scrollbar, vertikal) */
.iframe-wrapper.rise-mode {
    padding-bottom: 0;
    height: 80vh;
    /* Nutzt fast die ganze Höhe */
    min-height: 600px;
}

.fullscreen-bar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 0.5rem;
}

.btn-fullscreen {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.btn-fullscreen:hover {
    background: var(--primary-color);
    color: white;
}

/* Fullscreen Fixes */
.iframe-wrapper:fullscreen {
    padding: 0;
    height: 100vh;
    width: 100vw;
    background: #fff;
    /* Rise braucht meist weißen Hintergrund */
}

.iframe-wrapper:fullscreen iframe {
    height: 100%;
    width: 100%;
}



/* Experience Button */
.btn-experience {
    background: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-experience:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(168, 85, 247, 0.4);
}

.experience-section {
    padding: 2rem;
    background: var(--surface-color);
    border-radius: var(--border-radius);
    text-align: center;
    border: 1px solid var(--border-color);
    margin-top: 1rem;
}

.experience-section p {
    margin-bottom: 2rem;
    color: var(--text-muted);
}