html {
    box-sizing: border-box;
    scroll-behavior: smooth;
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: sans-serif;
}

body {
    overflow-x: hidden;
    background-color: rgb(33, 33, 33);
}

body::-webkit-scrollbar { display: none; }

/* Navigatie */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 65px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

.navbar a {
    font-family: "Exo",
        sans-serif;
    font-weight: 300;
    letter-spacing: 3px;
    color: white;
    text-decoration: none;
    font-size: 15px;
}

.navbar h1 {
        font-family: "Exo",
        sans-serif;
    font-weight: 700;
    letter-spacing: 3px;
    color: white;
    text-decoration: none;
    font-size: 15px;
}

.navbar ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 50px;
    height: 50px;
    border-bottom: 2px solid white;
    border-right: 2px solid white;
    animation: bounce 1s infinite;
    z-index: 3;
    display: block;
}

.scroll-down:hover {
    cursor: pointer;
}

/* Animatie voor “bounce” effect */
@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: rotate(45deg) translateY(0) translateX(0);
    }

    40% {
        transform: rotate(45deg) translateY(-10px) translatex(-10px);
    }

    60% {
        transform: rotate(45deg) translateY(-5px) translatex(-5px);
    }
}


/* Hero */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 8%;
    padding-top: 2%;
    text-align: left;
    color: white;
}

/* Achtergrondvideo */
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Donkere overlay voor contrast */
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    max-width: 74%;
    z-index: 2;
}

.hero h2 {
    font-family: "Exo", sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 3.5rem;
    margin-bottom: 10px;
}

.hero p {
    font-family: "Exo", sans-serif;
    font-weight: 300;
    letter-spacing: 2px;
    font-size: 1.5rem;
}

/* Portfolio */
.portfolio {
    width: 100%;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 0;
    width: 100%;
}

.card {
    position: relative;
    aspect-ratio: 1/1;
    overflow: hidden;
    text-decoration: none;
    color: rgb(0, 0, 0);
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    z-index: 0;
    position: relative;
}

.card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.card:hover::after {
    opacity: 1;
}

.card .card-text {
    font-family: "Exo",
        sans-serif;
    letter-spacing: 2px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    opacity: 0;
    transition: opacity 0, 3s ease;
    color: white;
    text-align: center;
}

.card:hover .card-text {
    opacity: 1;
}

.card .card-text h3 {
    font-size: 2rem;
    font-weight: 600;
}

.card .card-text h2 {
    font-size: 1rem;
    font-weight: 200;
}

.card .card-text p {
    font-size: 1rem;
    font-weight: 200;
}