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

:root {
    --bg: #010409;
    --text: #ffffff;
    --blue: #3b82f6;
    --glass: rgba(13, 17, 23, 0.85);
    --border: rgba(255, 255, 255, 0.1);
}

body.light-mode {
    --bg: #f5f5f7;
    --text: #1d1d1f;
    --glass: rgba(255, 255, 255, 0.7);
    --border: rgba(0, 0, 0, 0.05);
    --shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
}

/* ANTI-ÄRGER-BASICS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
    -webkit-user-select: none;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
    transition: background 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.home-layout p {
    font-size: 28px;
    opacity: 0.8;
    margin-top: 10px;
}

/* 3D-FIX: Darf niemals Buttons verdecken */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
    pointer-events: none;
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    z-index: 1000;
}

.nav-center {
    display: flex;
    gap: 20px;
    background: var(--glass);
    padding: 12px 25px;
    border-radius: 50px;
    border: 1px solid var(--border);
    backdrop-filter: blur(20px);
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-center:hover {
    transform: scale(1.08);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.nav-center a {
    color: var(--text);
    text-decoration: none;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    opacity: 0.4;
    transition: 0.3s;
}

.nav-center a.active,
.nav-center a:hover {
    opacity: 1;
    color: var(--blue);
}

.theme-toggle {
    background: var(--glass);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 8px 15px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 900;
    font-size: 11px;
    z-index: 1001;
}

/* TITEL: MASSIV & OBEN */
.page-layout,
.home-layout {
    flex: 1;
}

.page-layout {
    padding-top: 140px;
    text-align: center;
}

.page-title {
    font-size: clamp(4rem, 16vw, 12rem);
    font-weight: 900;
    text-transform: uppercase;
    line-height: 0.8;
    margin-bottom: 60px;
}

/* GRID FÜR MEDIA & PAGES */
.grid-system {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 0 10% 100px;
    max-width: 1400px;
    margin: 0 auto;
}

.card {
    background: var(--glass);
    border: 1px solid var(--border);
    padding: 40px;
    border-radius: 30px;
    text-decoration: none;
    color: var(--text);
    box-shadow: var(--shadow, none);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card:hover {
    transform: scale(1.05) translateY(-10px);
    border-color: var(--blue);
}

/* SPECIFIC CARD STYLES */
.project-card,
.media-card {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.category,
.media-type {
    font-size: 0.65rem;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--blue);
    letter-spacing: 2px;
}

.tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 5px;
}

.tag {
    font-size: 0.6rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid var(--border);
}

.card-btn {
    margin-top: auto;
    background: var(--blue);
    color: white;
    text-decoration: none;
    padding: 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 900;
    text-align: center;
    transition: 0.3s;
}

.card-btn:hover {
    filter: brightness(1.2);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

.logo {
    font-weight: 900;
    font-size: 22px;
    letter-spacing: -1px;
}

.discord-btn {
    background: #5865F2;
    color: white;
    text-decoration: none;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 900;
    transition: 0.3s;
}

.discord-btn:hover {
    box-shadow: 0 0 20px rgba(88, 101, 242, 0.4);
    transform: translateY(-2px);
}

.nav-right {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* DISCORD ANIMATION */
.discord-active {
    transform: scale(1.5);
    background: #ffffff !important;
    color: #5865F2 !important;
    box-shadow: 0 0 50px #ffffff;
    z-index: 10001;
}

.page-flash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 10000;
    pointer-events: none;
    animation: flash-anim 0.8s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

@keyframes flash-anim {
    0% {
        opacity: 0;
        transform: scale(1.1);
    }

    10% {
        opacity: 1;
        transform: scale(1);
    }

    100% {
        opacity: 0;
        transform: scale(1);
    }
}

/* HOME SPECIFIC */
.home-layout {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.home-title {
    font-size: clamp(4rem, 20vw, 15rem);
    font-weight: 900;
    text-align: center;
    line-height: 0.9;
    letter-spacing: -5px;
}

/* FOOTER */
.footer {
    margin-top: 100px;
    padding: 60px 5% 40px;
    background: var(--glass);
    border-top: 1px solid var(--border);
    backdrop-filter: blur(20px);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-left p {
    font-size: 0.75rem;
    font-weight: 400;
    opacity: 0.5;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: var(--text);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    opacity: 0.4;
    transition: 0.3s;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--blue);
}

@media (max-width: 768px) {
    /* FOOTER FIXES */
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    /* BOTTOM PADDING SO NAV DOCK DOESNT HIDE CONTENT */
    .page-layout, .home-layout {
        padding-bottom: 120px;
    }

    .footer {
        padding-bottom: 140px;
    }

    /* REDUCE PADDINGS & COLUMNS */
    .grid-system {
        padding: 0 6% 120px;
        grid-template-columns: 1fr;
        gap: 25px;
    }

    /* TYPOGRAPHY SCALING STABILIZATION */
    .page-title {
        font-size: clamp(3.5rem, 18vw, 6.5rem);
        margin-bottom: 30px;
        letter-spacing: -2px;
        text-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
    }

    .home-title {
        font-size: clamp(4rem, 22vw, 8rem);
        letter-spacing: -4px;
        text-shadow: 0 0 40px rgba(59, 130, 246, 0.5);
        animation: mobile-glow 3s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
    }

    @keyframes mobile-glow {
        from { transform: scale(1); filter: brightness(1); text-shadow: 0 0 30px rgba(59, 130, 246, 0.4); }
        to { transform: scale(1.02); filter: brightness(1.2); text-shadow: 0 0 60px rgba(59, 130, 246, 0.7); }
    }

    .home-layout p {
        font-size: 20px;
        letter-spacing: 1px;
        opacity: 0.7;
    }

    .card {
        padding: 30px;
        border-radius: 35px;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    }

    .card:active {
        transform: scale(0.96);
        background: rgba(255, 255, 255, 0.06);
    }

    /* COMPACT TOP NAVBAR */
    .navbar {
        height: 80px;
        padding: 0 6%;
        background: linear-gradient(to bottom, var(--bg) 0%, transparent 100%);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .logo {
        font-size: 20px;
    }

    .nav-right {
        gap: 10px;
    }

    .theme-toggle, .discord-btn {
        padding: 10px 16px;
        font-size: 10px;
        border-radius: 15px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }

    /* 🌟 FLOATING iOS-STYLE BOTTOM DOCK 🌟 */
    .nav-center {
        position: fixed;
        bottom: 30px;
        top: auto;
        left: 50%;
        transform: translateX(-50%);
        width: 92%;
        max-width: 450px;
        padding: 8px;
        justify-content: space-between;
        gap: 5px;
        background: rgba(13, 17, 23, 0.75);
        backdrop-filter: blur(40px) saturate(180%);
        -webkit-backdrop-filter: blur(40px) saturate(180%);
        border: 1px solid rgba(255, 255, 255, 0.12);
        box-shadow: 
            0 25px 50px -12px rgba(0, 0, 0, 0.7),
            0 0 20px rgba(59, 130, 246, 0.15),
            inset 0 1px 1px rgba(255, 255, 255, 0.1);
        z-index: 10001;
        border-radius: 100px;
        transition: all 0.4s cubic-bezier(0.2, 1, 0.3, 1);
    }

    .nav-center a {
        font-size: 10px;
        font-weight: 800;
        padding: 12px 0;
        border-radius: 100px;
        flex: 1;
        text-align: center;
        color: var(--text);
        opacity: 0.5;
        transition: all 0.3s ease;
    }

    .nav-center a.active {
        background: var(--blue);
        color: #ffffff;
        opacity: 1;
        box-shadow: 0 10px 20px rgba(59, 130, 246, 0.4);
        transform: scale(1.05);
    }

    .nav-center a:active {
        transform: scale(0.9);
        opacity: 0.8;
    }

    /* Light Mode Adjustments */
    body.light-mode .nav-center {
        background: rgba(255, 255, 255, 0.8);
        border: 1px solid rgba(0, 0, 0, 0.08);
        box-shadow: 
            0 25px 50px -12px rgba(0, 0, 0, 0.15),
            inset 0 1px 1px rgba(255, 255, 255, 1);
    }

    body.light-mode .nav-center a {
        color: #1d1d1f;
    }

    body.light-mode .nav-center a.active {
        color: #ffffff;
    }

    /* Haptic Feedback for buttons */
    button:active, a.discord-btn:active {
        transform: scale(0.95);
    }
}

/* CUSTOM SCROLLBAR */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 10px;
    border: 3px solid var(--bg);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--blue);
}

/* VERTICAL ACCENT LINE */
.vertical-line {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 100vh;
    background: linear-gradient(to bottom,
            rgba(59, 130, 246, 0.2) 0%,
            rgba(59, 130, 246, 0.05) 50%,
            transparent 100%);
    z-index: -1;
    pointer-events: none;
}