@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&display=swap');

:root {
    --black: #050505;
    --white: #ffffff;
    --grey: #9a9a9a;

    --rainbow: linear-gradient(
        90deg,
        #ff004c,
        #ff7a00,
        #ffe600,
        #27e86b,
        #00c8ff,
        #625cff,
        #ff00a8
    );
}


/* =========================
   GRUNDLAYOUT
========================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;

    background: #050505;
    color: var(--white);

    font-family: 'Montserrat', Arial, sans-serif;

    overflow-x: hidden;

    position: relative;
}


/* =========================
   HINTERGRUND-MUSTER
========================= */

body::before {

    content: "";

    position: fixed;

    inset: 0;

    background-image:
        url("assets/Muster_Silhoutten.png");

    background-size: 500px auto;

    background-repeat: repeat;

    background-position: center;

    opacity: 0.035;

    z-index: 0;

    pointer-events: none;
}


/* =========================
   RAINBOW BAR
========================= */

.rainbow-bar {

    position: fixed;

    top: 0;
    left: 0;

    width: 100%;
    height: 5px;

    background: var(--rainbow);

    z-index: 100;
}


/* =========================
   HERO
========================= */

.hero {

    min-height: 100vh;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;

    padding: 40px 25px 100px;

    position: relative;

    z-index: 1;
}


/* =========================
   LOGO
========================= */

.logo-link {

    display: flex;

    align-items: center;

    justify-content: center;

    text-decoration: none;

    cursor: pointer;
}

.logo-container {

    width: min(750px, 90vw);

    display: flex;

    justify-content: center;

    align-items: center;
}

.logo {

    width: 100%;

    max-height: 300px;

    object-fit: contain;

    filter:
        drop-shadow(
            0 0 25px rgba(255,255,255,0.08)
        );

    transition:
        transform 0.3s ease,
        filter 0.3s ease;
}


/* Logo-Hover */

.logo-link:hover .logo {

    transform: scale(1.03);

    filter:
        drop-shadow(
            0 0 35px rgba(255,255,255,0.18)
        );
}


/* =========================
   ENTDECKEN
========================= */

.scroll-hint {

    margin-top: 45px;

    color: #888;

    font-size: 0.7rem;

    font-weight: 700;

    letter-spacing: 0.35em;

    padding-left: 0.35em;

    animation:
        hintPulse 2s ease-in-out infinite;
}


@keyframes hintPulse {

    0%,
    100% {
        opacity: 0.45;
    }

    50% {
        opacity: 1;
    }
}


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

.projects {

    min-height: 100vh;

    padding: 120px 25px 160px;

    position: relative;

    z-index: 1;

    background:
        linear-gradient(
            rgba(5,5,5,0.55),
            rgba(5,5,5,0.55)
        );
}


/* =========================
   SECTION TITEL
========================= */

.section-title {

    text-align: center;

    margin-bottom: 70px;
}

.section-title span {

    display: block;

    color: #777;

    font-size: 0.7rem;

    font-weight: 700;

    letter-spacing: 0.4em;

    margin-bottom: 15px;
}

.section-title h2 {

    margin: 0;

    font-size: clamp(
        2rem,
        5vw,
        3.5rem
    );

    font-weight: 900;

    letter-spacing: 0.08em;
}


/* =========================
   PROJEKT-KARTEN
========================= */

.project-grid {

    width: min(1100px, 100%);

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 30px;
}


.project-card {

    min-height: 260px;

    padding: 40px;

    display: flex;

    flex-direction: column;

    justify-content: flex-end;

    position: relative;

    overflow: hidden;

    text-decoration: none;

    color: white;

    border:
        1px solid
        rgba(255,255,255,0.12);

    background:
        rgba(255,255,255,0.035);

    backdrop-filter: blur(5px);

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

/* =========================
   PROJEKT-LOGOS
========================= */

.project-logo {

    position: absolute;

    top: 25px;
    right: 30px;

    width: 180px;
    height: 115px;

    object-fit: contain;

    opacity: 0.9;

    filter:
        drop-shadow(
            0 0 12px rgba(255,255,255,0.08)
        );

    transition:
        transform 0.3s ease,
        opacity 0.3s ease;
}

    object-fit: contain;

    opacity: 0.9;

    filter:
        drop-shadow(
            0 0 12px rgba(255,255,255,0.08)
        );

    transition:
        transform 0.3s ease,
        opacity 0.3s ease;
}


/* Logo-Hover */

.project-card:hover .project-logo {

    transform: scale(1.05);

    opacity: 1;
}

/* Rainbow-Linie */

.project-card::before {

    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 4px;

    background: var(--rainbow);
}


/* Hover */

.project-card:hover {

    transform:
        translateY(-8px);

    border-color:
        rgba(255,255,255,0.35);

    background:
        rgba(255,255,255,0.07);
}


/* =========================
   PROJEKT ICON
========================= */

.project-icon {

    position: absolute;

    top: 30px;
    right: 35px;

    font-size: 3rem;

    opacity: 0.35;
}


/* =========================
   PROJEKT TEXT
========================= */

.project-content h3 {

    margin: 0;

    font-size:
        clamp(
            1.5rem,
            3vw,
            2.2rem
        );

    font-weight: 900;

    letter-spacing: 0.04em;
}

.project-content p {

    margin:
        8px 0 0;

    color: #999;

    font-size: 0.75rem;

    font-weight: 700;

    letter-spacing: 0.25em;
}


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

footer {

    position: relative;

    z-index: 2;

    padding:
        25px 20px 30px;

    text-align: center;

    color: #666;

    font-size: 0.65rem;

    letter-spacing: 0.18em;

    background: #050505;
}


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

@media (max-width: 700px) {

    .project-grid {

        grid-template-columns:
            1fr;
    }

    .project-card {

        min-height: 220px;

        padding: 30px;
    }

    .section-title {

        margin-bottom: 45px;
    }

    .scroll-hint {

        margin-top: 30px;
    }
}
