/* body styling en achtergrondafbeelding */
body {
    margin: 0;
    color: #ddd;
    font-family: 'Poppins', sans-serif;
    /* min-height: 100vh zorgt dat de body minstens het volledige scherm hoog is */
    min-height: 100vh;
}

/* ::before is een pseudo-element (nep-element) dat voor de body content komt */
body::before {
    content: "";
    /* position: fixed zorgt dat het achtergrond altijd zichtbaar is, zelfs bij scrollen */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("../images/abdi.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    filter: blur(4px);
    /* z-index bepaalt de laagvolgorde: -2 is achter alles */
    z-index: -2;
    /* pointer-events: none zorgt dat je door deze laag heen kan klikken */
    pointer-events: none;
}

/* ::after is een ander pseudo-element dat na de body content komt */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* rgba(0, 0, 0, 0.75) is zwart met 75% doorzichtigheid (donkere overlay) */
    background: rgba(0, 0, 0, 0.75);
    z-index: -1;
    pointer-events: none;
}

.background {
    position: relative;
    min-height: 150vh;
    background-image: url("../images/abdi.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.background::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 0;
    /* donkerheid */
}

.background>* {
    position: relative;
    z-index: 1;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    color: rgb(145, 145, 5);
}

h3 {
    margin-bottom: 0.5rem;
    color: white;
}

/* fonts*/
p,
article,
li,
a {
    font-family: 'Poppins', sans-serif;
}

/* header/nav */
header {
    position: relative;
}

.navbar {
    position: relative;
    display: flex;
    /* justify-content: center zorgt dat items in het midden staan */
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 1rem;
    width: 100%;
}

/* Hamburger menu knop voor mobiel */
.hamburger {
    position: absolute;
    left: 1rem;
    top: 50%;
    /* transform: translateY(-50%) centert het verticaal */
    transform: translateY(-50%);
    z-index: 10;
    font-size: 2rem;
    background: none;
    border: none;
    color: rgb(145, 145, 5);
    cursor: pointer;
}

/* Dropdown menu */
.nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    list-style: none;
    padding: 1rem;
    margin: 0;
    /* display: none verbergt het menu standaard */
    display: none;
    /* flex-direction: column zet items onder elkaar */
    flex-direction: column;
    gap: 1rem;
    background: #0d0d0d;
    border-top: 1px solid #333;
    z-index: 5;
}

/* .open klasse wordt toegevoegd met Javascript om menu zichtbaar te maken */
.nav-links.open {
    display: flex;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* clamp() maakt responsive grootte: minimum 56px, voorkeur 8vw, maximum 120px */
.logo-img {
    display: block;
    width: clamp(56px, 8vw, 120px);
    height: auto;
    object-fit: cover;
    border-radius: 8px;
}

/* page layout styling */
.page {
    display: flex;
    /* flex-direction: column zet items onder elkaar op mobiel */
    flex-direction: column;
    padding: 1.5rem;
    gap: 2rem;
}


/* sidebar styling */
.sidebar {
    background: #151515;
    padding: 1.5rem;
    border-radius: 20px;
    text-align: center;
}

figure img {
    width: 130px;
    height: 130px;
    object-fit: cover;
    border-radius: 20px;
}

.sidebar h1 {
    margin: 1rem 0 0.3rem;
    font-size: 1.8rem;
    color: rgb(145, 145, 5);
}

.role {
    display: inline-block;
    background: #262626;
    padding: 0.3rem 1rem;
    border-radius: 10px;
    font-size: 0.85rem;
}

hr {
    border: none;
    height: 1px;
    background: #333;
    margin: 1.5rem 0;
}

.contactinfo {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contactinfo li {
    background: #1c1c1c;
    padding: 1rem;
    border-radius: 14px;
    margin-bottom: 1rem;
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.label {
    font-size: 0.75rem;
    color: #aaa;
}

.waarde {
    font-size: 0.9rem;
}


/* content styling */
.content {
    background: #151515;
    padding: 1.5rem;
    border-radius: 20px;
    font-size: 1.1rem;
}

.tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

iframe {
    border-radius: 20px;
    margin-bottom: 2rem;
    width: 100%;
    height: 350px;
}

/* projecten pagina styling */
.projectenpage {
    text-align: center;
}

.projecten {
    background-color: #151515;
    display: flex;
    /* flex-wrap: wrap zorgt dat items naar volgende rij gaan als ze niet passen */
    flex-wrap: wrap;
    justify-content: center;
    border-radius: 12px;
    gap: 1.5rem;
}

.projecten figure {
    margin: 0;
}

.projecten figure img {
    width: 100%;
    height: auto;
    max-width: 500px;
}

/* knoppen styling */
.button {
    display: inline-block;
    background: #a4a10d;
    color: #fff;
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    /* transition maakt een smooth animatie als iets verandert */
    transition: background 0.2s;
}

.button:hover {
    background: #cfd64d;
}

/* cv pagina styling */
/* ::before en ::after voegen visuele lijnen toe naast de CV secties */
.CV-INFO section {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 2rem;
}

/* Verticale lijn langs de linkerkant */
.CV-INFO section::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgb(145, 145, 5);
}

.CV-INFO section h3 {
    position: relative;
    padding-left: 1.5rem;
}

/* Gele bolletje als marker op de lijn */
.CV-INFO section h3::before {
    content: '';
    position: absolute;
    left: -1.75rem;
    top: 0.5rem;
    width: 12px;
    height: 12px;
    background: rgb(145, 145, 5);
    border-radius: 50%;
    border: 2px solid #0d0d0d;
}

/* contact pagina styling */
.container {
    /* Deze wordt overridden in @media query */
    width: 60%;
    margin: 50px auto;
}

.contact-form {
    display: flex;
    /* flex-direction: column zet formulier elementen onder elkaar */
    flex-direction: column;
    gap: 20px;
}

.input-box {
    background: white;
    padding: 15px;
    display: flex;
    align-items: center;
    border-radius: 4px;
}

.input-box .icon {
    font-size: 18px;
    margin-right: 10px;
    /* opacity: 0.6 maakt het icoontje wat lichter */
    opacity: 0.6;
}

.input-box input {
    width: 100%;
    border: none;
    outline: none;
    font-size: 16px;
}

textarea {
    width: 100%;
    height: 180px;
    padding: 15px;
    font-size: 16px;
    border: none;
    border-radius: 4px;
    /* resize: vertical zorgt dat je alleen verticaal kan vergroten */
    resize: vertical;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
}

.send-btn {
    width: 180px;
    padding: 15px;
    font-size: 18px;
    border: none;
    border-radius: 40px;
    color: white;
    cursor: pointer;
    /* linear-gradient(45deg, ...) maakt een kleur overgang van geel naar lichter geel */
    background: linear-gradient(45deg, #a4a10d, #cfd64d);
    transition: 0.2s;
}

.send-btn:hover {
    /* scale(1.05) maakt de knop 5% groter bij hoveren */
    transform: scale(1.05);
}

/* footer style */
footer {
    background-color: #000000;
    color: white;
    text-align: center;
    padding: 2rem 1rem;
    margin-top: 3rem;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* footer */
footer {
    background-color: #000000;
    color: white;
    padding: 2rem 1rem;
    margin-top: 3rem;
    /* border-top voegt een gele lijn toe boven de footer */
    border-top: 2px solid rgb(145, 145, 5);
}

/* Footer layout: 3 kolommen op desktop, gestapeld op mobiel */
.footer-content {
    display: flex;
    /* justify-content: space-around spreidt de kolommen gelijk uit */
    justify-content: space-around;
    max-width: 1200px;
    margin: 0 auto;
    gap: 2rem;
    /* flex-wrap: wrap zorgt dat kolommen naar volgende rij gaan op kleine schermen */
    flex-wrap: wrap;
}

.footer-section {
    /* flex: 1 zorgt dat elke section gelijk groeit */
    flex: 1;
    /* min-width: 200px zorgt dat kolommen niet te smal worden */
    min-width: 200px;
    text-align: center;
}

.footer-section h3 {
    color: rgb(145, 145, 5);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* Verwijder bullets van lijstjes in footer */
.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

/* Styling voor links in footer */
.footer-section a {
    color: #ddd;
    text-decoration: none;
    /* transition maakt vloeiende kleurovergang bij hover */
    transition: color 0.3s;
}

/* Links worden geel bij hoveren */
.footer-section a:hover {
    color: rgb(145, 145, 5);
}

.footer-section p {
    margin: 0.5rem 0;
    font-size: 0.95rem;
}

/* scroll to top knop */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: rgb(145, 145, 5);
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: none;
    z-index: 100;
    transition: opacity 0.3s, transform 0.3s;
}

/* Hover effect: knop wordt wat lichter */
.scroll-top-btn:hover {
    background-color: #cfd64d;
    transform: translateY(-3px);
}

button {
    background-color: rgb(134, 134, 84);
    color: white;
    border: none;
    padding: 10px 20px;
    margin: 0 5px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

/* GROTER SCHERM (900px+) */
@media (min-width: 900px) {

    /* Layout op desktop: sidebar naast content */
    .page {
        flex-direction: row;
        align-items: flex-start;
        gap: 2rem;
        margin: 2rem;
    }

    /* Sidebar blijft zichtbaar terwijl je scrollt */
    .sidebar {
        width: 250px;
        /* flex-shrink: 0 zorgt dat sidebar niet kleiner wordt */
        flex-shrink: 0;
        /* position: sticky + top: 2rem zorgt dat het meebeweegt bij scrollen */
        position: sticky;
        top: 2rem;
        height: fit-content;
    }

    header {
        margin-bottom: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 16px;
        border-radius: 16px;
        padding: 10px;
    }

    /* Hamburger menu is niet nodig op desktop */
    .hamburger {
        display: none;
    }

    .navbar {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    /* Menu items horizontaal ipv dropdown */
    .nav-links {
        position: static;
        background: transparent;
        border: none;
        padding: 0;
        display: flex;
        flex-direction: row;
        gap: 1rem;
        margin: 0;
        align-items: center;
    }

    .logo {
        margin-right: 0;
        justify-content: flex-start;
    }

    .logo-img {
        width: 96px;
        height: auto;
    }

    /* Stijl voor nav knoppen op desktop */
    nav a {
        background-color: rgb(145, 145, 5);
        color: white;
        padding: 12px 24px;
        border-radius: 10px;
        border: none;
        text-decoration: none;
        font-size: large;
        transition: background 0.2s;
    }

    /* Hover effect: background wordt wit en tekst geel */
    nav a:hover {
        background-color: white;
        color: rgb(145, 145, 5);
        /* translateY(-3px) beweegt de knop 3px omhoog */
        transform: translateY(-3px);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
        transition: all 0.2s;
    }

    /* Projecten gaan naast elkaar met border */
    .projecten {
        border: 4px solid rgb(145, 145, 5);
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        border-radius: 12px;
        gap: 2rem;
    }

    .projecten figure {
        margin: 0;
    }

    .projectenpage {
        width: 75%;
        border-radius: 5px;
        padding: 1rem;
    }

    .cv-main {
        display: flex;
        /* flex: 1 zorgt dat dit element groeit */
        flex: 1;
        /* min-width: 0 is nodig voor overflow in flex items */
        min-width: 0;
    }

    /* Container styling op desktop: veel smaller */
    .container {
        width: auto;
        margin: 0;
        flex: 1;
    }

}