:root {
    --background: #03060e;
    --surface: #1b2c46;
    --text: #a2acb8;
    --text-muted: #94a3b8;
    --accent: #38bdf8;
}


/* =========================
   GRUNDLAGEN
   ========================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    background: var(--background);
    color: var(--text);

    font-family: Arial, sans-serif;
    line-height: 1.6;
}


/* =========================
   HEADER
   ========================= */

header {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;

    padding: 20px 40px;

    background: var(--background);

    z-index: 1000;
}


nav {
    display: flex;

    justify-content: center;

    gap: 30px;
}

a {
    display: inline-block;
    color: var(--text);
    text-decoration: none;
    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

a:hover {
    color: var(--accent);
    transform: translateY(-3px);
}


/* =========================
   PROJEKT-NAVIGATION
   ========================= */

.project-navigation {
    position: relative;

    display: flex;

    align-items: center;

    margin-top: 20px;
    padding-top: 15px;

    border-top: 1px solid var(--surface);
}


.current-project {
    position: absolute;

    left: 50%;

    transform: translateX(-50%);

    color: var(--accent);

    font-weight: bold;
}


/* =========================
   MAIN
   ========================= */

main {
    max-width: 1100px;

    margin: 0 auto;
}


section {
    padding: 50px 10px;
}


/* Abstand zwischen Projektabschnitten */

.project-section {
    margin-top: 80px;
}


/* =========================
   INTRODUCTION
   ========================= */

#introduction {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 5rem;
    padding-top: 120px;
    padding-bottom: 40px;
}


#introduction .intro-text {
    text-align: left;
}


#introduction h1 {
    font-size: 3.5rem;

    margin-bottom: 10px;
}


#introduction p {
    font-size: 1.2rem;
}


#introduction a {
    display: inline-block;

    margin-top: 20px;

    color: var(--accent);
}


#introduction .intro-image img {
    width: 300px;
    height: 380px;

    object-fit: cover;

    border-radius: 50px 10px 50px 10px;

    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);

    border: 2px solid var(--accent);
}


/* =========================
   PROJEKTE
   ========================= */

.project-slider {
    position: relative;

    display: flex;

    padding: 0 80px;
}


.project-container {
    flex: 1;
    overflow: hidden;
    border-radius: 12px;
    transition: height 0.4s ease;
}


.project-track {
    display: flex;
    align-items: flex-start;
    transition: transform 0.4s ease;
}


.project {
    flex: 0 0 100%;

    background: var(--surface);

    padding: 40px;
}


.project h3 {
    font-size: 2rem;

    margin-top: 0;
}


.project p {
    max-width: 700px;
}


/* =========================
   PROJEKT-VORSCHAUBILD
   ========================= */

.project-preview {
    width: 60%;

    display: block;

    margin: 20px auto;

    border-radius: 8px;
}


/* =========================
   TECHNOLOGIEN
   ========================= */

.technologies {
    color: var(--accent);

    font-weight: bold;
}


/* =========================
   SLIDER BUTTONS
   ========================= */

.slider-button {
    position: absolute;

    top: 200px;

    transform: translateY(-50%);

    width: 50px;
    height: 50px;

    border: none;

    border-radius: 50%;

    background: var(--surface);

    color: var(--text);

    font-size: 2rem;

    cursor: pointer;

    transition:
        color 0.2s ease,
        background 0.2s ease;

    z-index: 10;
}


.slider-button.previous {
    left: 10px;
}


.slider-button.next {
    right: 10px;
}


.slider-button:hover {
    color: var(--accent);
}


.slider-button:focus-visible {
    outline: 2px solid var(--accent);

    outline-offset: 3px;
}


/* =========================
   PROJEKT-SLIDER DOTS
   ========================= */

.slider-dots {
    display: flex;

    justify-content: center;

    gap: 12px;

    margin-top: 25px;
}


.slider-dots button {
    width: 12px;
    height: 12px;

    padding: 0;

    border: 2px solid var(--text-muted);

    border-radius: 50%;

    background: transparent;

    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}


.slider-dots button:hover {
    border-color: var(--accent);
}


.slider-dots button.active {
    background: var(--accent);

    border-color: var(--accent);

    transform: scale(1.5);
}


/* =========================
   SKILLS
   ========================= */

#skills ul {
    display: flex;

    flex-wrap: wrap;

    gap: 15px;

    padding: 0;

    list-style: none;
}


#skills li {
    padding: 10px 18px;

    background: var(--surface);

    border-radius: 8px;
}


/* =========================
   FOOTER
   ========================= */

footer {
    text-align: center;

    padding: 40px;

    color: var(--text-muted);
}


/* =========================
   SCREENSHOT SLIDER
   ========================= */

.screenshot-slider {
    display: flex;

    align-items: center;

    gap: 20px;

    margin-top: 40px;
}


.screenshot-container {
    flex: 1;
    overflow: hidden;
    border-radius: 12px;
    background: var(--surface);
    padding: 25px;
}


.screenshot-track {
    display: flex;
    transition: transform 0.4s ease;
}


.screenshot {
    flex: 0 0 100%;
    min-width: 100%;

    margin: 0;
    padding: 0;

    text-align: center;
}


.screenshot img {
    display: block;

    width: calc(100% - 120px);
    max-height: 600px;

    margin: 0 auto;

    object-fit: contain;
    border-radius: 8px;
}


.screenshot figcaption {
    margin-top: 10px;
    color: var(--text-muted);
}

/* =========================
   SCREENSHOT PFEILE
   ========================= */

.screenshot-button {
    flex: 0 0 40px;

    width: 40px;
    height: 40px;

    border: none;

    border-radius: 50%;

    background: var(--surface);

    color: var(--text);

    font-size: 1.5rem;

    cursor: pointer;

    transition:
        color 0.2s ease,
        background 0.2s ease;
}


.screenshot-button:hover {
    color: var(--accent);
}


/* =========================
   SCREENSHOT DOTS
   ========================= */

.screenshot-dots {
    display: flex;

    justify-content: center;

    gap: 10px;

    margin-top: 20px;
}


.screenshot-dots button {
    width: 10px;
    height: 10px;

    padding: 0;

    border: 2px solid var(--text-muted);

    border-radius: 50%;

    background: transparent;

    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}


.screenshot-dots button.active {
    background: var(--accent);

    border-color: var(--accent);

    transform: scale(1.4);
}

/* KONTAKT */

.contact-links {
    display: flex;
    justify-content: flex-start;
    gap: 30px;
    margin-top: 30px;
}

.contact-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;

    color: var(--text);
    text-decoration: none;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.contact-link i {
    font-size: 2.5rem;
}

.contact-link span {
    font-size: 1rem;
}

.contact-link:hover {
    color: var(--accent);
    transform: translateY(-3px);
}


/* =========================
   MOBILE
   ========================= */

@media (max-width: 700px) {

    header {
        padding: 15px 20px;
    }

    nav {
        flex-wrap: wrap;
        gap: 10px 15px;
        font-size: 0.9rem;
    }


    section {
        padding: 45px 20px;
    }


    h2 {
        font-size: 1.6rem;
    }

    p {
        font-size: 0.95rem;
    }

    .contact-links {
        display: flex;
        justify-content: center;
        gap: 60px;
        margin-top: 30px;
    }


    /* INTRODUCTION */

    #introduction {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
        padding-top: 100px;
        padding-bottom: 30px;
    }

    #introduction .intro-text {
        text-align: center;
    }

    #introduction h1 {
        font-size: 2.3rem;
        margin-bottom: 8px;
    }

    #introduction p {
        font-size: 1rem;
    }

    #introduction .intro-image {
        order: -1;
    }

    #introduction .intro-image img {
        width: 170px;
        height: 215px;
        border-radius: 35px 8px 35px 8px;
    }


    /* PROJEKTE */

    .project-slider {
        padding: 0 45px;
    }

    .slider-button {
        width: 36px;
        height: 36px;
        font-size: 1.3rem;
    }

    .slider-button.previous {
        left: 3px;
    }

    .slider-button.next {
        right: 3px;
    }

    .project {
        padding: 20px;
    }

    .project h3 {
        font-size: 1.4rem;
    }

    .project-preview {
        width: 85%;
    }
    .project-detail {
        padding-top: 70px;
    }

    .project-navigation {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .current-project {
        position: static;
        transform: none;
        align-self: center;
    }

    .screenshot-container {
        width: 100%;
        padding: 15px;
    }

    .screenshot {
        flex: 0 0 100%;
        min-width: 100%;
        padding: 0 15px;
    }

    .screenshot img {
        width: 100%;
        max-height: 400px;
    }

    /* FOOTER */

    footer {
        padding: 30px 20px;
        font-size: 0.9rem;
    }

}