:root {
    --text-muted: #808080;
    --border-color: #1a1a1a;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

a {
    color: #b8b8b8;
    text-decoration: none;
}

body {
    text-align: center;
    font-family: 'Geist', sans-serif;
    background: linear-gradient(#000000, rgb(20, 20, 20));
    color: #ffffff;
    min-height: 10vh;
}

h1 {
  font-size: 60px;
  font-weight: 500;
}

#welkomsbericht {
    width: 50%;
    color: var(--text-muted);
    font-weight: 300;
    margin-top: 8vh;
    font-size: 16px;
}

#subtitel {
    color: var(--text-muted);
    font-size: 20px;
    font-weight: 400;
    margin-top: 2vh;
}



#line {
    margin: 1vh auto 15vh;
    width: 90%;
    border: none;
    border-top: 1px solid rgb(54, 54, 54);
    visibility: hidden;
}

#projecten-link{
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    margin-top: 25vh;
    font-size: 14px;
    letter-spacing: 2px;
    transition: color 0.3s ease;
}

#projecten-link:hover {
    color: #fff;
}

.scroll-indicator {
    margin-bottom: 3vh;
    color: var(--text-muted);
    transition: transform 0.3s ease, color 0.3s ease;
    animation: subtleBounce 2.5s infinite ease-in-out;
}

#projecten-link:hover .scroll-indicator {
    color: #fff;
    animation-play-state: paused;
}

@keyframes subtleBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(2px); }
}

#header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 30vh;
}

.projects-section {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
}

.section-label {
    color: var(--text-muted);
    font-weight: 300;
    letter-spacing: 4px;
    font-size: 12px;
    margin-bottom: 60px;
}

.projects-grid {
    display: flex;
    flex-wrap: wrap;
}

.project-card {
    flex: 0 0 50%;
    padding: clamp(40px, 8vh, 80px) clamp(20px, 4vw, 40px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.project-card:nth-child(3n) {
    border-right: none;
}

.project-number {
    color: var(--text-muted);
    font-size: 14px;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 2vh;
}

.project-title {
    font-size: 40px;
    margin-bottom: 3vh;
    font-weight: 600;
}

.project-description {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.6;
    max-width: 95%;
    flex-grow: 1;
    margin-bottom: 3vh;
}

.view-project {
    color: white;
    font-size: 13px;
    letter-spacing: 2px;
    display: inline-block;
    margin-bottom: clamp(30px, 6vh, 60px);
    margin-top: auto;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    min-height: 80px;
    align-content: flex-start;
}

.tag {
    font-size: 11px;
    color: var(--text-muted);
    border: 1px solid #222;
    padding: 6px 12px;
    letter-spacing: 1px;
}

#footer {
    font-size: 11px;
    color: #444;
    letter-spacing: 2px;
    margin: 15vh auto 5vh;
}

#back-to-top {
    position: fixed;
    bottom: 40px;
    right: 5%;
    color: #444;
    font-size: 20px;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

#back-to-top:hover {
    color: #ffffff;
}

/* Slideshow Overlay */
#slideshow-overlay {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.98);
    justify-content: center;
    align-items: center;
}

.slideshow-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 800px;
}

.slideshow-content {
    max-height: 70vh;
    max-width: 90%;
    object-fit: contain;
    margin-bottom: 20px;
}

.slideshow-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 40px;
    color: #444;
    cursor: pointer;
    padding: 20px;
    transition: color 0.2s;
    user-select: none;
}

.slideshow-nav:hover {
    color: #fff;
}

.prev { left: 5%; }
.next { right: 5%; }

.close-btn {
    position: absolute;
    top: 30px;
    right: 5%;
    font-size: 30px;
    color: #444;
    cursor: pointer;
    transition: color 0.2s;
}

.close-btn:hover {
    color: #fff;
}

.caption-container {
    color: #fff;
    text-align: center;
    font-size: 14px;
    padding: 0 20px;
    line-height: 1.5;
}

.image-counter {
    margin-top: 40px;
    font-size: 11px;
    color: #444;
    letter-spacing: 2px;
}

/* Game Overlay */
#game-overlay {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.98);
    justify-content: center;
    align-items: center;
}

.game-main {
    width: 100%;
    height: 100%;
    max-width: none;
}

#game-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 768px) {
    #welkomsbericht {
        width: 90%;
    }


    #projecten-link{
    margin-top: 18vh;
    }

    h1 {
        font-size: 40px;
    }

    .projects-grid {
        flex-direction: column;
    }

    .project-card {
        flex: 1 1 100%;
        padding: 40px 20px;
        border-right: none;
        border-left: none;
    }

    .project-card:last-child {
        border-bottom: none;
    }

    .project-title {
        font-size: 32px;
    }
}

@media (max-width: 968px) {
  

    #projecten-link{
    margin-top: 20vh;
    }

}