/* ====== GLOBAL ====== */
body {
    font-family: MaisonNeue, Segoe UI, Helvetica Neue, -apple-system, system-ui, BlinkMacSystemFont, Roboto, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol;
    color: #f5f5f5;
    font-weight: bold;
    background: #000000;
    text-align: center;
    margin: 0;
    padding: 0;
    overflow: auto !important;
    transition: background-image 0.5s ease-in-out;
    padding-bottom: 10px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    margin-bottom: 10px;
}

.header { margin-bottom: 50px; }

.fade-out { opacity: 0.3; transition: opacity 0.5s ease; }

/* ====== TOP BAR ====== */
.top-bar {
    background-color: transparent;
    height: 80px;
    width: 90%;
    border-radius: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
    box-sizing: border-box;
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    margin-bottom: 10px;
}
.top-bar img.logo { max-width: 60px; margin-right: 20px; align-self: center; }
.top-bar .top-bar-link, .top-bar .project a { align-self: center; }
.top-bar .project a,
.top-bar .top-bar-link {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    background-color: transparent;
    cursor: pointer;
    transition: color 0.3s, text-shadow 0.3s;
}
.top-bar .project a:hover {
    color: #ddd;
    text-decoration: underline;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    text-decoration-color: #ddd;
}
.top-bar .top-bar-link:hover {
    color: white;
    text-decoration: underline;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    text-decoration-color: white;
}
.top-bar a[href="/"]:hover::after { content: none; }
.top-bar a:not(:has(> .logo))::after,
.top-bar a::after,
.top-bar a:not(:has(> button))::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 100%;
    height: 2px;
    background-color: white;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s;
}
.top-bar a:not(:has(button)):hover::after { transform: scaleX(1); transform-origin: left; }
.top-bar a { color: white; text-decoration: none; margin-right: 20px; font-size: 18px; font-weight: bold; position: relative; transition: color 0.3s ease, text-shadow 0.3s ease; }
.top-bar a:hover { color: #a8c0ff; text-shadow: 0px 0px 8px rgba(255,255,255,0.7); }
.top-bar-logo { max-width: 30px; max-height: 80px; margin-right: 20px; }

/* ====== IFRAME / SCROLL ====== */
.iframe-container { overflow: hidden; width: 100%; height: 100vh; position: relative; }
#project-iframe { position: absolute; top: 0; left: 0; width: 100.5%; height: 100.5%; outline: 3px solid white !important; }
#project-iframe::-webkit-scrollbar { width: 10px; }
#project-iframe::-webkit-scrollbar-track { background: #f1f1f1; }
#project-iframe::-webkit-scrollbar-thumb { background: #000000; border-radius: 10px; }
#project-iframe::-webkit-scrollbar-thumb:hover { background: #555; }
body::-webkit-scrollbar { display: none; }
body { -ms-overflow-style: none; scrollbar-width: none; }
body::-webkit-scrollbar, #project-iframe::-webkit-scrollbar { display: none !important; }
body, #project-iframe { -ms-overflow-style: none !important; scrollbar-width: none !important; }

/* ====== GENERAL ====== */
.logo { max-width: 100px; }
h1 { font-size: 2em; color: #fff; }

/* ====== GRID ====== */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 340px));
    gap: 20px;
    padding: 20px;
    justify-content: center;
    justify-items: center;
}

/* CATEGORY TITLES */
.category-title,
.project-grid > h2,
.project-grid > h3,
.project-grid > h4 {
    grid-column: 1 / -1;
    width: 100%;
    margin: 40px 0 10px;
    color: #ffffff;
    font-size: 1.6rem;
    line-height: 1.3;
    font-weight: 700;
    text-align: center;
}

/* ====== PROJECT CARD ====== */
.project {
    background-color: #0a0a0a;
    border-radius: 30px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: outline 0.2s ease;
}
.project:hover { outline: 2px solid white; }

/* -- Disabled / Greyed projects -- */
.disabled-project {
    filter: grayscale(90%);
    opacity: 0.45;
    pointer-events: none;
}
.disabled-project * { pointer-events: none !important; cursor: default !important; }
.disabled-project::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(200,200,200,0.22);
    border-radius: 30px;
}

/* YEAR LABEL */
.year {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}

/* BUTTONS */
.btn {
    display: block;
    border-radius: 30px;
    padding: 15px;
    color: #000000;
    text-decoration: none;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    font-weight: bold;
    text-align: center;
    border: none;
    background-color: #ffffff;
}
.stimmungskompass, .otterguessr, .songloops, .soundscapes, .boardgames, .art, .skills, .fundamt, .traveltrail {
    background-color: #ffffff;
    color: #000000;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 4px 8px rgba(0,0,0,0.2); }
.btn:active { background-color: #000000; color: white; outline: 1px solid white; }

/* WHY BUTTON */
.why-btn {
    display: inline-block;
    border-radius: 30px;
    padding: 10px 20px;
    background-color: #ffffff;
    color: #000000;
    font-weight: bold;
    border: 2px solid #000000;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s, transform 0.3s;
}
.why-btn:hover { background-color: #000000; color: #ffffff; transform: scale(1.05); }

/* ====== SKILLS SECTION ====== */
.skills-section {
    display: none;
    background-color: #0a0a0a;
    color: white;
    padding: 20px;
    text-align: left;
    margin-top: 20px;
    border-radius: 30px;
    outline: 5px solid #fff;
}
.skills-category { margin-bottom: 20px; }
.skills-header {
    font-size: 1.5em;
    color: #eae2b7;
    border-bottom: 1px solid #fff;
    padding-bottom: 5px;
    margin-bottom: 10px;
}
.skills-section ul { list-style: none; padding-left: 0; }
.skills-section li { padding-left: 15px; position: relative; }
.skills-section li::before {
    content: '•';
    color: #eae2b7;
    position: absolute;
    left: 0;
}

/* ====== NOTIFICATION ====== */
.notification-text {
    display: none;
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    color: black;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 1rem;
    z-index: 2000;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* ====== LABELS (kept in case you still use them) ====== */
.label {
    display: inline-flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.9rem;
    font-weight: 700;
}
.label .dot {
    height: 10px;
    width: 10px;
    background-color: currentColor;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
}
.label.in-development { color: #4caf50; }
.label.not-in-development { color: #9a031e; }
.label.hobby { color: #ff5c00; }
.label.priority { color: #02569e; }

/* ====== OVERLAY ====== */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.8);
    z-index: 3000;
    display: flex;
    justify-content: center;
    align-items: center;
}
.overlay-content {
    background-color: #000000;
    color: #ffffff;
    padding: 30px 40px;
    border-radius: 15px;
    max-width: 80%;
    max-height: 80%;
    overflow-y: auto;
    position: relative;
    text-align: left;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.overlay-content .close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: #ffffff;
}
.overlay-content p {
    margin-top: 20px;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
    body { overflow: auto !important; }
    .hamburger-menu { display: none; }
    .top-bar.active .hamburger-menu { display: flex; }

    .skills-section {
        width: 90%;
        margin-top: 20px !important;
        margin: 0 auto;
        padding: 10px;
    }

    .hamburger-menu div {
        width: 2rem;
        height: 0.25rem;
        background-color: white;
        margin: 4px 0;
        transition: all 0.4s ease;
    }

    .top-bar img.logo { max-width: 40px; margin-right: 15px; }
    .top-bar .top-bar-link, .top-bar .project a { display: none; }
    .hamburger-menu { display: flex; }
    .hamburger-menu.open div:nth-child(1) { transform: rotate(45deg); }
    .hamburger-menu.open div:nth-child(2) { opacity: 0; transform: translateX(20px); }
    .hamburger-menu.open div:nth-child(3) { transform: rotate(-45deg); }
}
