:root {
    --red: #B13D14;
    --light-peach: #f9f2eb;
    --dark-brown: #340701;
    --deep-red: #9C1A04;
    --peach: #FFD7C1;
    --black: #090400;
    --white: #e6e6e6;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--light-peach);
    color: var(--dark-brown);
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
    height: 100%;
    width: 100%;
    background-color: var(--light-peach);
    background-image: 
        linear-gradient(to right, rgba(0, 0, 0, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
    background-size: 40px 40px; 
}

header {
    background-color: var(--light-peach);
    padding: 1rem 2rem;
    display: flex;
    justify-content:center;
    align-items: center;
    color: var(--dark-brown);
    position: relative;
    z-index: 2;
}
/* Nav ////////////////////////////////////////////////////////////////////////////////////////////////// */

nav a {
    color: var(--dark-brown);
    text-decoration: none;
    margin-left: 1.5rem;
    font-weight: 600;
}

nav a:hover {
    color: var(--red);
    text-decoration: underline;
}

/* hero ///////////////////////////////////////////////////////////////////////////////////////////// */
.hero {
    text-align: center;
    padding: 4rem 2rem 2rem;
    position: relative;
    z-index: 0;
}

.hero h1 {
    font-size: clamp(2rem, 6vw, 5rem);
    margin-bottom: 1rem;
    color: var(--deep-red);
}

.hero p {
    font-size: 1.2rem;
    color: var(--kblac);
    max-width: 600px; 
    margin: 0 auto; 
    text-align: center; 
}

.name{
    display: inline-block;
    position: relative;
}

.letter{
    display: inline-block;
    position: relative;
}

.a{
    animation: jumpOver 4s  ease-in-out infinite;
    animation-delay: 3s;
    margin-right: -20px;
}

.n{
    
    animation: slide 4s  ease-in-out infinite;
    animation-delay: 3s;
    margin-right: -23px;
}

.good-animated {
    display: inline-block;
    font-size: 1rem;
    color: var(--kblac);
    position: relative;
    font-family: inherit;
    letter-spacing: -0.08em;
}

.o {
    display: inline-block;
    position: relative;
    font-family: inherit;
    font-weight: inherit;
    font-size: inherit;
    color: inherit;
    margin-left: -0.05rem;
    margin-right: -0.05rem;
}

.o-right {
    animation: wink 2.5s infinite;
}

/* carousel////////////////////////////////////////////////////////////////////////////////////////////////////:: */
.carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 0;
    width: 100%;
    background-color: transparent;
}

.carousel-view {
    width: 70%;
    max-width: 1500px;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    will-change: transform;
    display: flex;
    transition: none;
}

.project-item {
    min-width: 300px;
    height: 300px;
    margin: 0 10px;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    position: relative;
    color: var(--light-peach);
    overflow: hidden;
}

.project-info {
    position: absolute;
    bottom: 10px;
    left: 10px;
    z-index: 2;
    text-shadow: 2px 2px 5px var(--dark-brown);
}

.project-tag {
    display: inline-block;
    background-color: var(--dark-brown);
    padding: 5px 10px;
    border-radius: 5px;
    margin-top: 5px;
}

.project-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); 
    z-index: 1;
}

/* footer ////////////////////////////////////////////////////////////////////////////////////// */
footer {
    text-align: center;
    padding: 2rem;
    background: var(--dark-brown);
    color: white;
    font-size: 0.9rem;
    margin-top: 3rem;
    position: relative;
    z-index: 2;
}

footer a {
    color: var(--white);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* keyframes //////////////////////////////////////////////////////////////////////////////////////// */
@keyframes wink {
    0%, 80%, 100% {
        transform: scaleY(1);
    }
    85%, 95% {
        transform: scaleY(0.2);
    }
}

@keyframes jumpOver{
    0%   { transform: translateX(0) translateY(0); }
    20%  { transform: translateX(0) translateY(0); }
    30%  { transform: translateY(-0.7em); }
    40%  { transform: translateX(-0.6em) translateY(-0.7em); }
    60%  { transform: translateX(-0.6em) translateY(0); }
    80%  { transform: translateX(-0.6em) translateY(0); }
    100% { transform: translateX(0) translateY(0); }
}

@keyframes slide{
    0%   { transform: translateX(0); }
    20%  { transform: translateX(0); }
    30%  { transform: translateX(0.6em); }
    40%  { transform: translateX(0.65em); }
    60%  { transform: translateX(0.65em); }
    80%  { transform: translateX(0.65em); }
    100% { transform: translateX(0); }
}

/* kleiner scherm ////////////////////////////////////////////////////////////////////////////////// */
@media (max-width: 768px) {
    header {
        flex-direction: column;
    }
    nav a {
        margin: 1rem ;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .carousel {
        margin: 1rem auto;
        max-width: 85%;
    }
    .carousel-slide {
        height: 200px;
    }
    .carousel-view{
        width: 100%;
    }
    .decorative-divider {
        height: 40px;
    }
    .name { min-width: 3em; }
    .letter { min-width: 1em; }
    .a, .n { min-width: 1.2em; }
    .a {
        margin-right: -15px;
    }
    .n {
        margin-left: -10px;
    }

    @keyframes jumpOver{
        0%   { transform: translateX(0) translateY(0); }
        20%  { transform: translateX(0) translateY(0); }
        30%  { transform: translateY(-0.7em); }
        40%  { transform: translateX(-0.6em) translateY(-0.7em); }
        60%  { transform: translateX(-0.6em) translateY(0); }
        80%  { transform: translateX(-0.6em) translateY(0); }
        100% { transform: translateX(0) translateY(0); }
    }
    @keyframes slide{
        0%   { transform: translateX(0); }
        20%  { transform: translateX(0); }
        30%  { transform: translateX(0.7em); }
        40%  { transform: translateX(0.8em); }
        60%  { transform: translateX(0.8em); }
        80%  { transform: translateX(0.8em); }
        100% { transform: translateX(0); }
    }
}