/* -------------------- RESET -------------------- */

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

/* -------------------- ROOT VARIABLES -------------------- */

:root {
    --bg-dark: #0f172a;
    --bg-darker: #111827;
    --bg-card: #1e293b;
    --accent: #38bdf8;
    --text-light: #ffffff;
    --skill-bg: #334155;
}

/* -------------------- GLOBAL -------------------- */




body {
    background-image: url("assets/BG1e293b.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-color: var(--bg-card);
    background-blend-mode: overlay;
    border-radius: 25px;
    font-family: Arial, sans-serif;
    color: var(--text-light);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-attachment: fixed;
    overflow-y: auto;
}

main {
    flex: 1;
}

section {
    padding: 40px 10%;
}

footer {
    background: var(--bg-darker);
    color: var(--text-light);
    text-align: center;
    padding: 20px 0;
    margin-top: auto;
}

/* -------------------- HEADER -------------------- */

header {
    background: var(--bg-darker);
    padding: 20px 10%;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: var(--accent);
    font-weight: bold;
    font-size: 1.3rem;
}

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

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent);
}
.hamburger {
    display: none;
}

/* -------------------- HERO SECTION -------------------- */

.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    min-height: 50vh;
}

.profile-img {
    width: 350px;
    border-radius: 50%;
    border: 5px solid var(--accent);
}

.hero-text {
    max-width: 500px;
}

.hero-text h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    margin-top: 20px;
    margin-right: 20px;
    background: var(--accent);
    color: black;
    padding: 12px 24px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s;
}

.btnLogo {
    display: inline-block;
    margin-top: 20px;
    margin-right: 20px;
    background: var(--accent);
    color: black;
    padding: 5px 5px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s;
    line-height: 0;
}

.btnLogo:hover {
    transform: translateY(-3px);
}

.btnLogo img,
.btnLogo svg {
    height: 40px;
    width: auto;
}

.btn, .btnLogo {
    vertical-align: middle;
}

.btn:hover {
    transform: translateY(-3px);
}

/* -------------------- SKILLS SECTION -------------------- */

.skills h2 {
    margin-bottom: 40px;
    text-align: center;
}

.skill-level {
    width: 100%;
    height: 10px;
    background: var(--skill-bg);
    border-radius: 20px;
    margin-top: 15px;
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    background: var(--accent);
    animation: loadSkill 2s ease;
}

.html { width: 90%; }
.css { width: 85%; }
.js { width: 70%; }
.csharp { width: 60%; }
.sql { width: 70%; }
.vue { width: 65%; }

@keyframes loadSkill {
    from { width: 0; }
}

/* -------------------- SKILL CARDS -------------------- */

.skill-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.skill-cards > * {
    flex: 1 1 250px;
}

.card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 15px;
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

/* -------------------- CV.HTML -------------------- */

#intro {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    min-height: 25vh;
}

#introtextbig {
    max-width: 600px;
}

#introtextbig h1,
#introtextsmall h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

#introtextbig p,
#introtextsmall p {
    margin-bottom: 10px;
    color: #cbd5e1;
}

/* -------------------- LANGUAGE LIST -------------------- */

#languagelist {
    background: var(--bg-card);
    border-radius: 15px;
    padding: 25px;
}

#languagelist h2 {
    margin-bottom: 10px;
}

#languagelist hr {
    border: none;
    border-top: 1px solid var(--accent);
    margin-bottom: 15px;
}

#languagelist .language-table {
    display: flex;
    gap: 0;
    border: 1px solid var(--skill-bg);
    border-radius: 10px;
    overflow: hidden;
    width: 100%;
}

#languagelist .language {
    flex: 1;
    list-style: none;
    margin: 0;
    padding: 0;
    border-right: 1px solid var(--skill-bg);
}

#languagelist .language:last-child {
    border-right: none;
}

#languagelist .languagelistIndex {
    background: var(--skill-bg);
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: bold;
    padding: 8px 12px;
    border-bottom: 1px solid var(--skill-bg);
    white-space: nowrap;
}

#languagelist .languagelist-item {
    padding: 7px 12px;
    color: #cbd5e1;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--skill-bg);
}

#languagelist .languagelist-item:last-child {
    border-bottom: none;
}

#languagelist .languagelist-item.is-language {
    font-weight: bold;
    color: var(--text-light);
}

.language {
    flex: 1;
}

.languagelist-item {
    color: #cbd5e1;
}

.is-language {
    font-weight: bold;
    color: var(--text-light) !important;
}

/* -------------------- MIDDLE CONTAINER -------------------- */

#middleContainer {
    display: flex;
    gap: 40px;
    padding: 40px 10%;
    align-items: flex-start;
}

.aboutMeBox {
    flex: 1 1 300px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 0;
}

.experiencesBox {
    flex: 2 1 400px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 0;
}

/* -------------------- ABOUT ME -------------------- */

#about-me,
#soft-skills,
#hobbys,
#interests {
    background: var(--bg-card);
    border-radius: 15px;
    padding: 25px;
}

#about-me h2,
#soft-skills h2,
#hobbys h2,
#interests h2 {
    margin-bottom: 10px;
}

#about-me hr,
#soft-skills hr,
#hobbys hr,
#interests hr {
    border: none;
    border-top: 1px solid var(--accent);
    margin-bottom: 15px;
}

#about-me ul {
    padding-left: 5px;
}

#about-me h4 {
    color: var(--accent);
    margin-top: 5px;
}

/* -------------------- PROGRESS BARS -------------------- */

#soft-skills ul {
    padding-left: 5px;
}

#soft-skills li {
    margin-top: 12px;
    color: #cbd5e1;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--skill-bg);
    border-radius: 20px;
    margin-top: 5px;
    overflow: hidden;
}

.progress-indicator {
    height: 100%;
    background: var(--accent);
    border-radius: 20px;
    animation: loadSkill 2s ease;
}

.is-90 { width: 90%; }
.is-75 { width: 75%; }
.is-60 { width: 60%; }

/* -------------------- HOBBIES -------------------- */

#hobbys ul {
    padding-left: 5px;
    display: flex;
    flex-direction: column;
    list-style: none;
    gap: 8px;
}

#hobbys li {
    color: #cbd5e1;
    padding: 6px 10px;
    background: var(--skill-bg);
    border-radius: 8px;
}

/* -------------------- TIMELINE -------------------- */

.experiencesBox h2 {
    margin-bottom: 10px;
}

.experiencesBox hr {
    border: none;
    border-top: 1px solid var(--accent);
    margin-bottom: 20px;
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 30px;
}

.timeline .item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: var(--bg-card);
    border-radius: 12px;
    padding: 16px 20px;
    border-left: 3px solid var(--accent);
}

.timeline .year {
    color: var(--accent);
    font-weight: bold;
    min-width: 90px;
    font-size: 0.9rem;
    padding-top: 3px;
}

.timeline .content h3 {
    margin-bottom: 4px;
}

.timeline .content p {
    color: #cbd5e1;
    font-size: 0.9rem;
}

/* -------------------- WORK EXPERIENCE -------------------- */

#workskills {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-left: 5px;
}

.employer {
    color: var(--accent);
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    transition: color 0.3s;
}

.employer:hover {
    color: var(--text-light);
}

.arrow {
    width: 16px;
    height: 16px;
}

.function {
    color: var(--text-light);
    font-style: italic;
    font-size: 0.9rem;
}

.tasks {
    color: #cbd5e1;
    font-size: 0.875rem;
    margin-bottom: 4px;
}

.workListLine {
    border: none;
    border-top: 1px solid var(--skill-bg);
    margin: 10px 0;
}

/* -------------------- CONTACT SECTION -------------------- */

.contact-section {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 80vh;
    padding: 60px 10%;
}

.contact-card {
    background: var(--bg-card);
    border-radius: 15px;
    padding: 40px;
    width: 100%;
    max-width: 680px;
}

.contact-card h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.contact-card hr {
    border: none;
    border-top: 1px solid var(--accent);
    margin-bottom: 20px;
}

.contact-intro {
    color: #cbd5e1;
    margin-bottom: 30px;
    font-size: 0.95rem;
}

/* -------------------- FORM GROUPS -------------------- */

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 22px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: bold;
    color: var(--accent);
    letter-spacing: 0.03em;
}

.form-group input,
.form-group textarea {
    background: var(--skill-bg);
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 12px 16px;
    color: var(--text-light);
    font-family: Arial, sans-serif;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s, background 0.3s;
    resize: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #64748b;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    background: #253348;
}

.form-group input.invalid,
.form-group textarea.invalid {
    border-color: #f87171;
}

/* -------------------- ERROR MESSAGES -------------------- */

.error-msg {
    color: #f87171;
    font-size: 0.8rem;
    display: none;
}

.error-msg.visible {
    display: block;
}

/* -------------------- SUBMIT BUTTON -------------------- */

.btn-submit {
    width: 100%;
    padding: 14px;
    background: var(--accent);
    color: #0f172a;
    font-family: Arial, sans-serif;
    font-size: 1rem;
    font-weight: bold;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s, opacity 0.3s;
    margin-top: 8px;
}

.btn-submit:hover {
    transform: translateY(-3px);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* -------------------- SUCCESS MESSAGE -------------------- */

.success-msg {
    margin-top: 24px;
    background: #134e2a;
    color: #4ade80;
    border-radius: 10px;
    padding: 16px 20px;
    font-size: 0.95rem;
    text-align: center;
    border: 1px solid #166534;
}

.hidden {
    display: none;
}

/* -------------------- DESKTOP -------------------- */

@media screen and (min-width: 1194px) {
    #introtextsmall, #LinkinMobile {
        display: none;
    }
}

/* -------------------- TABLET -------------------- */

@media screen and (min-width: 576px) and (max-width: 1194px) {
    #introtextsmall, #LinkinText {
        display: none;
    }

    #LinkinMobile {
        display: inline-block;
    }
}

/* -------------------- SMARTPHONE -------------------- */

@media screen and (max-width: 576px) {

    /* --- Algemeen --- */
    section {
        padding: 20px 5%;
    }
  
     .hamburger {
        display: flex;
    }

    /* --- index.html: hero --- */
    .hero {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 30px 5%;
        min-height: auto;
    }

    .profile-img {
        width: 180px;
    }

    .hero-text h2 {
        font-size: 2rem;
    }

    .btn, .btnLogo {
        margin-top: 10px;
        margin-right: 10px;
    }

    /* --- index.html: skill cards --- */
    .skill-cards {
        flex-direction: column;
    }

    .skill-cards > * {
        flex: 1 1 100%;
    }

    /* --- cv.html: intro --- */
    #intro {
        flex-direction: column;
        text-align: center;
        font-size: medium;
        font-style: italic;
        padding: 20px 5%;
        gap: 15px;
        min-height: auto;
    }

    #introtextbig {
        display: none;
    }

    #introtextsmall {
        display: block;
    }

    /* --- cv.html: middleContainer --- */
    #middleContainer {
        flex-direction: column;
        padding: 20px 5%;
        gap: 20px;
    }

    .aboutMeBox,
    .experiencesBox {
        flex: 1 1 100%;
        width: 100%;
    }

    /* --- cv.html: navigatie --- */
    #LinkinText {
        display: none;
    }

    /* --- cv.html: timeline jaar kolom smaller --- */
    .timeline .year {
        min-width: 60px;
        font-size: 0.8rem;
    }

    /* --- contact.html --- */
    .contact-section {
        min-height: auto;
        padding: 30px 5%;
        align-items: stretch;
    }

    .contact-card {
        padding: 25px 20px;
    }

    .contact-card h1 {
        font-size: 1.6rem;
    }
    /* --- hamburger menu --- */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text-light);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Hamburger animatie naar kruis */
.hamburger.is-open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger.is-open span:nth-child(2) {
    opacity: 0;
}
.hamburger.is-open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

@media screen and (max-width: 576px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--bg-darker);
        padding: 20px;
        gap: 15px;
        z-index: 99;
    }

    .nav-links.is-open {
        display: flex;
    }

    .nav-links a {
        font-size: 1.1rem;
        padding: 10px 0;
        border-bottom: 1px solid var(--skill-bg);
        display: block;
    }
}
}

/* -------------------- LANDSCAPE KLEINE SCHERMEN -------------------- */

@media screen and (max-height: 500px) and (orientation: landscape) {
    #intro {
        min-height: auto;
    }
}