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

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

body {
    background: rgb(23, 26, 22);
    color: #e5e5e5;
    font-family: Arial, sans-serif;
    overflow-x: hidden;
}

.title {
    margin-top: 6px;
}

/* =========================
   NAVBAR
========================= */

nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: 70px;
    background: rgba(34, 39, 32, 0.7);
    backdrop-filter: blur(10px);
    z-index: 9999;
    border-bottom: 1px solid rgba(88, 114, 90, 0.2);
}

.nav-container {
    max-width: 1550px;
    margin: auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
}

.nav-container h1 {
    font-size: 25px;
    font-weight: 600;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    font-size: 18px;
    font-weight: bolder;
    transition: 0.2s;
}

nav a:hover {
    color: rgb(88, 114, 90);
}

.hamburger {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

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

.hero {
    max-width: 1550px;
    margin: auto;

    height: 100svh;
    min-height: 100svh;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 90px 8% 70px;
    gap: 60px;

    position: relative;
    overflow: hidden;
}

.hero-text {
    flex: 1;
}

.hero-text .card {
    margin-top: 20px;
}

/* =========================
   SECTIONS
========================= */

.section {
    max-width: 1850px;
    margin: auto;

    min-height: auto;

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 120px 8%;
    gap: 40px;
}

#skills,
#projecten,
#contact {
    padding-top: 30px;
    padding-bottom: 30px;
}

.small-section {
    min-height: 70vh;
}

#profiel {
    margin-top: 0;
}

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

h1 {
    font-size: 42px;
    margin-bottom: 10px;
    font-weight: 700;
    line-height: 1.2;
}

h2 {
    font-size: 30px;
    margin-bottom: 10px;
    color: rgb(88, 114, 90);
    font-weight: 600;
}

h3 {
    margin-bottom: 10px;
    font-weight: 600;
}

p {
    line-height: 1.8;
    max-width: 700px;
    color: #cfcfcf;
}

.script,p {
    line-height: 1.8;
    max-width: 700px;
    margin-top: 1.1vh;
    color: #cfcfcf;
}

.script,strong {
    color: rgb(137, 172, 139);
    font-weight: bolder;
}

.card p strong {
    color: #ffffff;
    font-weight: 600;
}

.block {
    margin-bottom: 16px;
}

/* =========================
   IMAGE FRAME
========================= */

.image-frame {
    width: 100%;
    max-width: 600px;
    aspect-ratio: 1 / 1;
    border-radius: 20px;
    padding: 15px;
    background: rgba(20, 40, 30, 0.5);
    border: 1px solid rgb(88, 114, 90);
    box-shadow: 0 0 25px rgba(88, 114, 90, 0.5);
}

.image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

/* =========================
   CARDS
========================= */

.card {
    background: rgba(32, 42, 36, 0.6);
    padding: 25px;
    border-radius: 15px;
    border: 1px solid rgb(88, 114, 90);
    box-shadow: 0 0 20px rgba(88, 114, 90, 0.3);
}

/* =========================
   PROFILE GRID
========================= */

.profile-grid {
    display: grid;
    grid-template-columns: 2fr 0.8fr;
    gap: 50px;
    align-items: center;
}

.bullet-box {
    margin-top: 10px;
    max-width: 700px;
}

.bullet-box ul {
    padding-left: 20px;
}

.bullet-box li {
    margin: 8px 0;
}

/* =========================
   SKILLS
========================= */

.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.skill {
    margin: 15px 0;
}

.bar {
    height: 10px;
    background: #222;
    border-radius: 5px;
    overflow: hidden;
}

.bar div {
    height: 100%;
    width: 0;
    background: rgb(88, 114, 90);
    border-radius: 5px;
    transition: 1.5s;
}

/* =========================
   PROJECT TABS
========================= */

.explorer {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 35px;
    margin-top: 20px;
}

.explorer-sidebar {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.folder-btn {
    width: 100%;

    padding: 18px 20px;

    border: 1px solid rgb(88, 114, 90);
    border-radius: 16px;

    background: rgba(32, 42, 36, 0.65);
    color: #e5e5e5;

    font-size: 16px;
    font-weight: 600;

    text-align: left;

    cursor: pointer;

    transition:
        transform 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.folder-btn:hover {
    transform: translateY(-4px);

    background: rgba(45, 60, 50, 0.95);

    border-color: rgb(120, 160, 120);

    box-shadow:
        0 10px 25px rgba(88, 114, 90, 0.25);
}

.folder-btn.active {
    background: rgb(88, 114, 90);
    color: #101510;

    box-shadow:
        0 10px 28px rgba(88, 114, 90, 0.35);
}

.explorer-content {
    position: relative;
    min-height: 350px;
}

.folder-content {
    position: absolute;
    inset: 0;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform:
        translateY(20px)
        scale(0.96);

    transition:
        opacity 0.35s ease,
        transform 0.35s ease,
        visibility 0.35s;
}

.folder-content.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transform:
        translateY(0)
        scale(1);
}

/* =========================
   PROJECT GRID
========================= */

.project-grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(220px, 1fr));

    gap: 20px;
}

.project-card {
    padding: 24px;
    border-radius: 18px;
    border: 1px solid rgba(88, 114, 90, 0.7);
    background:
        linear-gradient(
            180deg,
            rgba(40, 55, 45, 0.95),
            rgba(25, 35, 30, 0.95)
        );

    color: #e5e5e5;
    font-size: 15px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease;
}

.project-card:hover {
    transform:
        translateY(-5px)
        scale(1.02);

    border-color: rgb(120, 160, 120);

    box-shadow:
        0 16px 30px rgba(88, 114, 90, 0.25);

    background:
        linear-gradient(
            180deg,
            rgba(50, 70, 55, 0.98),
            rgba(30, 45, 35, 0.98)
        );
}

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

@media (max-width: 900px) {

    .explorer {
        grid-template-columns: 1fr;
    }

    .explorer-sidebar {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .folder-btn {
        flex: 1;
    }

    .explorer-content {
        min-height: 500px;
    }
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.card.big {
    text-align: center;
    padding: 40px 30px;
}

.contact-icon {
    width: 70px;
    height: 70px;
    object-fit: contain;
    margin-bottom: 10px;
}

.contact-divider {
    width: 60%;
    height: 2px;
    background: rgb(88, 114, 90);
    margin: 10px auto 20px auto;
    opacity: 0.6;
}

.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: 0.8s;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.scroll-indicator {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);

    text-align: center;
    font-size: 14px;
    opacity: 0.7;
}

.scroll-indicator span {
    display: block;
    margin-top: 5px;
    animation: bounce 1.5s infinite;
}

.school {
    display: block;
    width: 100%;
    text-align: left;
    font-size: 20px;
    color: rgb(57, 82, 59);
    opacity: 0.9;
    margin: 0 0 5px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.cv-button {
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
    transform: translateY(0);
    bottom: -10vh;
    padding: 14px 20px;
    border-radius: 12px;
    border: 1px solid rgb(88, 114, 90);
    background: rgba(32, 42, 36, 0.7);
    color: #e5e5e5;
    cursor: pointer;
}
.image-stack {
    position: relative;
    max-width: 600px;
    margin-left: auto;
}

.cv-button:hover {
    background: rgb(88, 114, 90);
    color: #0b1a12;
    transform: translateY(-3px);
}

.cv-frame {
    width: 100%;
    max-width: 560px;
    max-height: 85vh;
    margin-top: 15px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgb(88, 114, 90);
}

.cv-frame img {
    width: 100%;
    display: block;
}

.download-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 12px 18px;
    border-radius: 12px;
    background: rgb(88, 114, 90);
    color: #0b1a12;
    text-decoration: none;
    font-weight: 600;
    transition: 0.25s;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(88, 114, 90, 0.3);
}

.project-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: 0.25s ease;
}

.project-overlay.show {
    opacity: 1;
    visibility: visible;
}

.overlay-card {
    width: min(600px, 90%);

    background: rgb(25, 35, 30);

    border: 1px solid rgb(88, 114, 90);
    border-radius: 18px;

    padding: 25px;

    transform: scale(0.92);
    transition: 0.25s ease;
}

.project-overlay.show .overlay-card {
    transform: scale(1);
}

.close-btn {
    float: right;

    background: none;
    border: none;

    color: white;

    font-size: 20px;

    cursor: pointer;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(10px);
    }
}

.gallery {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.gallery-frame {
    width: 300px;
    height: 300px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgb(88, 114, 90);
    box-shadow: 0 0 20px rgba(88, 114, 90, 0.3);
}

.gallery-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;

    opacity: 1;
    transition: opacity 0.25s ease;
    will-change: opacity;
}

.gallery-frame img.is-fading {
    opacity: 0;
}

.gallery-frame.wide {
    width: 100%;
    max-width: 560px;

    aspect-ratio: 16 / 9;
    height: auto;
}

.gallery-frame.wide img {
    object-fit: cover;
}

#galleryButtons {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.dot {
    width: 10px;
    height: 10px;

    border-radius: 50%;
    border: none;

    background: #444;
    cursor: pointer;

    transition: 0.3s;
}

.dot.active {
    background: rgb(88, 114, 90);
    transform: scale(1.3);
}

.gallery-empty {
    width: 100%;
    height: 100%;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    border-radius: 16px;

    border: 1px solid rgb(88, 114, 90);
    background: rgba(0, 0, 0, 0.25);

    color: #cfcfcf;
    text-align: center;

    gap: 10px;
}

.gallery-empty span {
    font-size: 40px;
}

/* =========================
   TABLET
========================= */

@media (max-width: 1100px) {

    .hero {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .profile-grid {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .bullet-box {
        margin-top: 10vh;
    }

    .image-frame {
        margin: 0 auto;
    }

    h2 {
        text-align: center;
    }

    .image-stack {
        margin-left: auto;
        margin-right: auto;
    }
}

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

@media (max-width: 900px) {

    nav {
        height: 60px;
    }

    .nav-container {
        padding: 0 18px;
    }

    .nav-container h1 {
        font-size: 16px;
    }

    .hamburger {
        display: block;
        font-size: 24px;
    }

    .nav-links {
        position: absolute;
        top: 60px;
        right: 0;
        width: 100%;
        padding: 25px;
        background: rgba(10, 20, 15, 0.97);
        flex-direction: column;
        align-items: center;
        gap: 20px;
        display: none;
    }

    .nav-links.active {
        display: flex;
    }

    nav a {
        font-size: 17px;
    }

    .hero {
        height: 100svh;
        min-height: 100svh;

        flex-direction: column;
        justify-content: center;
        text-align: center;

        padding: 75px 20px 55px;
        gap: 20px;
    }
    .hero-text {
        width: 100%;
    }

    .hero-text h1 {
        font-size: 34px;
    }

    .hero-text h2 {
        font-size: 20px;
    }

    .section {
        min-height: 100vh;

        justify-content: center;

        padding: 100px 20px 60px;
        gap: 25px;
    }

    .small-section {
        min-height: 80vh;
    }

    h1 {
        font-size: 34px;
    }

    h2 {
        font-size: 26px;
        text-align: center;
    }

    h3 {
        font-size: 20px;
    }

    p {
        font-size: 15px;
        line-height: 1.8;
    }

    .card {
        padding: 20px;
    }

    .image-frame {
        max-width: 100%;
        width: 100%;
    }

    .buttons.large {
        flex-direction: column;
    }

    .buttons.large button {
        width: 100%;
        min-width: unset;
    }

    .school {
        text-align: center;
        margin: 0 auto  0 auto;
    }

    .card.big {
        padding: 30px 20px;
    }

    .scroll-indicator {
        bottom: 15px;
        font-size: 12px;
    }

    .folder-content {
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        position: relative;
        inset: unset;
    }

    .folder-content.active {
        display: block;
    }

    .explorer-content {
        min-height: auto;
    }
}

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

@media (max-width: 500px) {

    .nav-container h1 {
        font-size: 14px;
    }

    h1 {
        font-size: 28px;
    }

    h2 {
        font-size: 22px;
    }

    p {
        font-size: 14px;
    }

    .hero {
        padding-top: 70px;
        padding-bottom: 50px;
        gap: 16px;
    }

    .hero-text h1 {
        font-size: 26px;
    }

    .hero-text h2 {
        font-size: 18px;
    }

    .hero-text .card {
        padding: 16px;
    }

    .scroll-indicator {
        bottom: 10px;
        font-size: 11px;
    }

    .section {
        padding-left: 16px;
        padding-right: 16px;
    }

    .card {
        padding: 18px;
    }

    .contact-icon {
        width: 60px;
        height: 60px;
    }
}

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

@media (max-width: 400px) {

    h1 {
        font-size: 22px;
    }

    h2 {
        font-size: 18px;
    }

    p {
        font-size: 10px;
    }

    .hero {
        padding-top: 140px;
    }

    .hero-text h1 {
        font-size: 24px;
    }

    .hero-text h2 {
        font-size: 16px;
    }

    .hero-text .card {
        padding: 16px;
    }

}






/* Rotate Phone Warning */
.rotate-warning {
    position: fixed;
    inset: 0;

    display: none;
    justify-content: center;
    align-items: center;

    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(12px);

    z-index: 999999;
}

.rotate-box {
    text-align: center;
    padding: 30px;

    border-radius: 20px;

    background: rgba(25, 35, 30, 0.95);

    border: 1px solid rgb(88, 114, 90);

    box-shadow: 0 0 25px rgba(88, 114, 90, 0.35);

    color: white;

    max-width: 320px;
}

.rotate-box span {
    font-size: 48px;
    display: block;
    margin-bottom: 15px;
}

.rotate-box h2 {
    margin-bottom: 10px;
}

.rotate-box p {
    color: #cfcfcf;
}

@media (max-width: 950px) and (orientation: landscape) {

    .rotate-warning {
        display: flex;
    }

    body {
        overflow: hidden;
    }

}