/* GENERAL */

html, body {
    margin: 0px 0px;
    min-height: 100%;
    background-color: #F1F1F3;
}

.clearfix {
    margin: auto;
    max-width: 1080px;
    padding: 0px 20px 0px 20px;
}

.content {
    margin-top: 70px;
}

.container {
    display: flex;
    margin: auto;
    gap: 50px; 
    align-items: flex-start; 
}

.container > div {
    flex: 1;
    padding: 0px; 
}

.container div p {
    font-size: 13px;
    color: #333; 
}

a.anchor {
    display: block;
    position: relative;
    top: -70px;
    visibility: hidden;
}

/* FONTS */

p, a, h1, h2, h3, h4, h5 {
    font-family: 'Roboto', sans-serif;
}

a {
    font-style: normal;
    text-decoration: none;
    color: #000000;
}

/* NAVBAR */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #ffffff;
    height: 70px;
    max-height: 70px;
    box-shadow: 0 0px 10px #2f3a52;
    z-index: 5;
}

.navbar .clearfix {
    height: 100%;
    line-height: 70px;
    text-align: center;
}

ul {
    min-width: 20px;
    list-style: none;
    list-style-type: none;
    margin: 0;
    padding: 0;
    float: right;
}

li {
    display: inline-block;
    line-height: 70px;
    margin-right: 10px;
    margin-left: 10px;
    font-size: 14px;
}

li img {
    margin-bottom: -2px;
}

li:hover, li:active {
    box-shadow: 0 -2px 0 #e2474c inset;
}

ul .social {
    display: inline-block;
    margin-left: 10px;
    padding-left: 10px;
    border-left: 1px solid #2f3a52;
}

/* TAAL WISSELAAR */
.lang-switch {
    margin-left: 20px;
    font-weight: bold;
}

.lang-switch a {
    color: #999; /* Grijze kleur voor inactieve taal */
    transition: color 0.3s;
}

.lang-switch a:hover {
    color: #e2474c;
}

.lang-switch a.active-lang {
    color: #e2474c; /* Je rode brand-kleur voor de actieve taal */
    text-decoration: underline;
}

/* FOOTER */

footer {
    width: 100%;
    background-color: #ffffff;
    border-top: 1px solid #eaeaea; 
}

.footer {
    padding-top: 50px;
    padding-bottom: 50px;
}

.footer-layout {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap; 
    gap: 40px;
}

.footer-col {
    flex: 1; 
    min-width: 200px;
}

.footer-col h5 {
    font-size: 14px;
    font-weight: bold;
    color: #e2474c; 
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.footer-col p {
    font-size: 13px;
    line-height: 1.6;
    color: #666;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    float: none; 
}

.footer-links li {
    display: block; 
    margin: 0 0 10px 0;
    line-height: normal;
}

.footer-links li a {
    font-size: 13px;
    color: #666;
    transition: color 0.3s;
}

.footer-links li a:hover {
    color: #e2474c; 
}

.copyright {
    background-color: #1a1a1a; 
    padding: 15px 0px;
    text-align: center;
}

.copyright p {
    color: #888;
    font-size: 12px;
    margin: 0;
}

/* CONTENT */

/* hero image */

.hero {
    background-image: linear-gradient(127.5deg, rgba(20, 20, 20, 0) 25%, /* Start the fade here */ rgba(20, 20, 20, 0.9) 50% /* End the fade here */), url(../images/script.png);
    background-size: cover;
    background-position: center center;
    width: 100%;
    height: 700px;
    text-align: right;
}

.hero .clearfix {
    height: 100%;
}

.herotext {
    display: table;
    width: 100%;
    height: 100%;
}
@media (max-width: 768px) {
    .herotext {
      height:170%;   
    }    
}

.herotext .quote {
    display: table-cell;
    vertical-align: middle;
}

.herotext .quote p {
    color: #e2474c;
}

/* portfolio */

.portfolio {
    background-color: #fff;
    min-height: 300px;
}

.portfolio-intro {
    max-width: 900px; 
    margin: 0 auto 80px auto; 
    text-align: center;
    color: #444;
}

.portfolio-intro > p { 
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
    max-width: 800px; 
    margin-left: auto;
    margin-right: auto;
}

.services-row {
    display: flex;
    justify-content: space-between; 
    align-items: flex-start; 
    flex-wrap: wrap;
    margin-top: 50px; 
    gap: 40px; 
    border-top: 1px solid #ddd;
    padding-top: 40px;
}

.service-item {
    flex: 1; 
    min-width: 250px; 
    text-align: center; 
}

.service-title {
    display: block;
    font-weight: bold;
    color: #e2474c; 
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.service-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.portfolio .container {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 50px; 
    width: 100%;
}

.portfolio .container > div {
    width: auto; 
    min-width: 0; 
}

/* Tablet (medium): 2 kolommen */
@media (max-width: 992px) {
    .portfolio .container {
        grid-template-columns: repeat(2,  minmax(0, 1fr));
    }
}

/* Kleine tablet: 2 kolommen */
@media (max-width: 768px) {
    .portfolio .container {
        grid-template-columns: repeat(2,  minmax(0, 1fr));
    }
    
    .services-row {
        flex-direction: column;
        gap: 40px;
    }
    
    .footer-layout {
        flex-direction: column;
        gap: 30px;
    }
}

/* Mobiel (small): 1 kolom */
@media (max-width: 576px) {
    .portfolio .container {
        grid-template-columns: 1fr;
    }
}

.portfolio h3 {
    text-align: center;
}

.portfolio .clearfix {
    padding-top: 60px;
    padding-bottom: 60px;
}

/* Portfolio images (was eerst video) */
.portfolio .container div img.imagezoom {
    width: 100%;
    height: auto; 
    object-fit: cover;
    display: block;
    cursor: pointer; 
}

.portfolio .container div img.imagezoom:hover {
    transform: scale(1.02); 
    transition: all .3s;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* ABOUT SECTION - FINAL FIX: NO WHITE BARS */

.about {
    padding-top: 80px;
    padding-bottom: 80px;
    background-color: #F1F1F3;
}

.about h3 {
    margin-bottom: 40px;
}

.about-card {
    background-color: #ffffff;
    border-radius: 15px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); 
    display: flex;
    overflow: hidden; 
    max-width: 1200px;
    margin: 0 auto; 
    /* align-items: stretch; ensures both columns are equal height */
    align-items: stretch; 
}

.about-image {
    flex: 1.2; 
    position: relative;
    /* We remove min-height and let flex stretch it */
}

.about-image img {
    width: 100%;
    height: 100%; /* Force image to fill the height */
    object-fit: cover; /* This cuts off edges if needed to fill space without white bars */
    display: block;
}

.about-info {
    flex: 1; 
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-info h4 {
    font-size: 24px;
    margin-top: 0;
    margin-bottom: 20px;
    color: #e2474c; 
}

.about-info p {
    font-size: 15px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 20px;
}

/* SKILL BARS */

.skills-modern {
    margin-top: 20px;
}

.skill-item {
    margin-bottom: 15px;
}

.skill-label {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.skill-track {
    width: 100%;
    height: 8px; 
    background-color: #eee;
    border-radius: 4px;
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    background-color: #e2474c;
    border-radius: 4px;
    transition: width 1s ease-in-out; 
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .about-card {
        flex-direction: column;
    }
    
    .about-image {
        width: 100%;
        min-height: 300px; /* Give it a fixed height on mobile */
    }

    .about-info {
        padding: 30px;
    }
}

/* contact */

.contact {
    background: linear-gradient(45deg, rgba(20, 20, 20, 0.9) 0%, rgba(20, 20, 20, 0.9) 100%), url(../images/laptop2.jpg);
    background-size: cover;
    background-position: center center;
    min-height: 120px;
    padding-top: 60px;
    padding-bottom: 80px;
    color: #fff; 
}

.contact h3 {
    color: #fff;
    text-align: center;
    margin-bottom: 30px;
    letter-spacing: 2px;
}

.contact-text-wrapper {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-intro {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 40px;
    color: #ddd; 
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 25px; 
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-item .label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #e2474c; 
    margin-bottom: 5px;
    font-weight: bold;
}

.contact-item a {
    color: #ffffff;
    font-size: 18px;
    font-weight: 300;
    text-decoration: none;
    border-bottom: 1px solid transparent; 
    transition: all 0.3s ease;
}

.contact-item a:hover {
    color: #e2474c; 
    border-bottom: 1px solid #e2474c;
}

/* HAMBURGER MENU */
.nav-container {
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 10;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background-color: #2f3a52;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
/* 
    ul {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background-color: #ffffff;
        flex-direction: column;
        text-align: center;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        float: none;
    }

    ul.active {
        max-height: 400px;
    }

    li {
        display: block;
        margin: 0;
        padding: 0;
        border-bottom: 1px solid #f0f0f0;
    }

    li:last-child {
        border-bottom: none;
    }

    ul .social {
        border-left: none;
        border-top: 1px solid #2f3a52;
        margin: 0;
        padding: 0;
    }
    
    .lang-switch {
        margin-left: 0;
        margin-top: 10px;
        display: block;
        border-bottom: none;
    }
*/

/* Veranderd van 'ul' naar '#nav-menu' zodat footer-links zichtbaar blijven */
    #nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background-color: #ffffff;
        flex-direction: column;
        text-align: center;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
        gap: 0;
    }

    #nav-menu.active {
        max-height: 500px;
        padding: 20px 0;
    }

}

.video-wrapper {
    position: relative;
    cursor: pointer;
    overflow: hidden; /* Zorgt dat het plaatje binnen de lijntjes blijft bij vergroten */
    display: block;   /* Zorgt dat de wrapper precies zo groot is als het plaatje */
    line-height: 0;   /* Verwijdert de kleine witruimte onder het plaatje */
}

/* De Overlay - beslaat nu het VOLLEDIGE plaatje */
.video-wrapper::before {
    content: '';
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

/* De Play Knop - Nu exact in het midden */
.video-wrapper::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 0; 
    height: 0; 
    border-top: 20px solid transparent;
    border-bottom: 20px solid transparent;
    border-left: 30px solid white;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2;
    filter: drop-shadow(0 0 10px rgba(0,0,0,0.5));
    pointer-events: none; /* Zorgt dat de muis 'door' de knop heen kijkt */
}

/* Hover effecten: Geactiveerd op de wrapper voor stabiliteit */
.video-wrapper:hover .imagezoom {
    transform: scale(1.05);
}

.video-wrapper:hover::before {
    opacity: 1;
}

.video-wrapper:hover::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.imagezoom {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}