/* 1. FONT */
@font-face {
    font-family: 'BlockFont';
    src: url('fonts/block.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* 2. BASIS */
* { box-sizing: border-box; }
body, html {
    margin: 0; padding: 0; min-height: 100vh;
    background-color: #000; color: #fff;
    font-family: 'BlockFont', sans-serif;
    overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }

/* 3. PAGINA TRANSITIE (De Fade-In/Out Overlay) */
.transition-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: #000; z-index: 10000;
    pointer-events: none; opacity: 0;
    transition: opacity 0.5s ease-in-out;
}
body.is-loading .transition-overlay { opacity: 1; }

.home-container, .project-page {
    animation: fadeInPage 0.8s ease-in-out forwards;
}
@keyframes fadeInPage {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 4. HOMEPAGE LOGO & ANIMATIE */
.home-container {
    display: flex; flex-direction: column; align-items: center;
    justify-content: space-between; height: 90vh;
    max-width: 1200px; margin: 5vh auto; text-align: center;
}
.logo-area { width: 100%; display: flex; justify-content: center; margin-top: 20px; }
#Laag_1 { width: 400px; height: auto; display: block; }

.st0 {
    fill: none; stroke: #fff; stroke-width: 1.5;
    stroke-dasharray: 2000; stroke-dashoffset: 2000;
    animation: drawIn 3s ease-in-out forwards;
}
@keyframes drawIn {
    0% { stroke-dashoffset: 2000; fill: rgba(255,255,255,0); }
    70% { stroke-dashoffset: 0; fill: rgba(255,255,255,0); }
    100% { stroke-dashoffset: 0; fill: rgba(255,255,255,1); }
}
#Laag_1:hover { animation: glitchEffect 0.3s ease-in-out infinite; }
@keyframes glitchEffect {
    0% { transform: translate(0); }
    20% { transform: translate(-3px, 2px); filter: drop-shadow(2px 0 0 #ff0000); }
    40% { transform: translate(3px, -2px); filter: drop-shadow(-2px 0 0 #0000ff); }
    100% { transform: translate(0); }
}
#Laag_1:hover .st0 { animation: none; stroke-dashoffset: 0; fill: #fff; }

/* 5. NAVIGATIE */
.main-nav { display: flex; align-items: center; gap: 60px; }
.nav-link { font-size: 3.5rem; text-transform: lowercase; transition: 0.3s; }
.nav-link:hover { transform: scale(1.1); }
.divider { width: 4px; height: 120px; background-color: #fff; }

/* 6. PROJECT GRID */
.project-page { display: flex; flex-direction: column; align-items: center; padding: 40px 20px; }
.project-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 280px));
    gap: 30px; width: 100%; max-width: 1000px; justify-content: center; margin-top: 20px;
}
.project-card { border: 2px solid #fff; padding: 15px; background: #000; transition: 0.3s; display: flex; flex-direction: column; }
.card-image-container { width: 100%; aspect-ratio: 1/1; overflow: hidden; margin-bottom: 15px; border: 1px solid #333; }
.card-image-container img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%); transition: 0.4s; }
.project-card h3 { font-size: 1.3rem; margin: 0; line-height: 1.1; word-wrap: break-word; }
.project-card p { font-family: sans-serif; font-size: 0.7rem; opacity: 0.5; text-transform: uppercase; margin-top: 8px; }
.project-card-link:hover .project-card { background-color: #fff; color: #000; }
.project-card-link:hover .card-image-container img { filter: grayscale(0%); transform: scale(1.05); }

/* 7. FOOTER & MODAL */
.footer-nav { display: flex; align-items: center; gap: 15px; justify-content: center; margin-top: 50px; }
.footer-divider { opacity: 0.3; font-family: sans-serif; }
.about-link { font-size: 1.1rem; opacity: 0.5; transition: 0.3s; cursor: pointer; }
.about-link:hover { opacity: 1; text-decoration: underline; }
.modal { display: none; position: fixed; z-index: 9999; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.95); align-items: center; justify-content: center; }
.modal-content { background-color: #000; border: 3px solid #fff; padding: 40px; width: 90%; max-width: 450px; text-align: center; position: relative; }
.close-btn { position: absolute; top: 10px; right: 20px; font-size: 2rem; cursor: pointer; }

/* 8. RESPONSIVE */
@media (max-width: 768px) {
    #Laag_1 { width: 280px; }
    .main-nav { flex-direction: column; gap: 20px; }
    .divider { width: 80px; height: 4px; }
    .nav-link { font-size: 2.5rem; }
}