/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ALGEMEEN */
html,
body {
    width: 100%;
    height: 100%;
    font-family: "Georgia", serif;
    background-color: #fff;
    color: #2e1d1d;
    scroll-behavior: smooth;
}

/* HERO SECTIE */
.hero {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 90vh;
}

.left {
    padding: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo {
    width: 300px;
    margin-bottom: 50px;
}

.text {
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 600px;
}

.accent {
    color: #8c1c1c;
    font-weight: bold;
    font-style: italic;
}

.right {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.portrait {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* zorgt dat foto niet ingezoomd is */
    background-color: #fff;
}

/* TYPENDE ANIMATIE */
.typing-section {
    text-align: center;
    padding: 20px 0 40px;
}

.typing {
    font-family: "Georgia", serif;
    font-size: 2.2rem;
    font-weight: 500;
    letter-spacing: 2px;
    color: #2e1d1d;
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid #8c1c1c;
    width: 0;
    margin: 0 auto;
    animation: typing 3s steps(10, end) forwards, blink 0.8s step-end infinite;
}

@keyframes typing {
    from {
        width: 0;
    }

    to {
        width: 10ch;
    }

    /* aantal letters van "Portfolio" */
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
}

/* PORTFOLIO GALERIJ */
.portfolio {
    background-color: #faf8fb;
    padding: 100px 60px;
    display: flex;
    justify-content: center;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    max-width: 1300px;
    width: 100%;
}

.item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

/* Hover effect */
.item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.item:hover img {
    transform: scale(1.05);
}

/* RESPONSIEF */
@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
    }

    .right {
        display: none;
    }

    .left {
        padding: 50px 20px;
        text-align: center;
    }

    .typing {
        font-size: 1.8rem;
    }

    .gallery {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}