html {
    scroll-behavior: smooth;
}

body {
    font-family: "DM Sans", serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-size: 1rem;
    margin: 0;
    margin-bottom: 5rem;
    color:#E6E8E6;
    box-sizing: border-box; /* Ensure consistent sizing */
    overflow-x: hidden;
    width: 100vw;
    
}
h1{
    color: #9FB8AD;
    text-align: auto;
    font-size: 3rem;
    font-family: Chonburi;
    font-weight: bolder;
    text-transform: uppercase;
    text-shadow: 2px 2px 2px rgba(0,0,0,0.2);
}
h2{
    color: #E6E8E6;
    text-align: left;
    font-optical-sizing: auto;
    font-size: 1.5rem;
    font-family: "DM Sans", serif;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: .2em;
}
h3{
    color: #F96E46;
    font-optical-sizing: auto;
    font-size: 1.2rem;
    font-family: monospace;
    text-shadow: 2px 2px 2px rgba(0,0,0,0.2);
}
h4{
    color: #E6E8E6;
    text-align: center;
    font-size: 50px;
    font-family: Chonburi;
    text-transform: uppercase;
}
h5{
    color: #E6E8E6;
    text-align: center;
    font-size: 3rem;
    font-family: Bungee Hairline;
    text-transform: uppercase;
}
h6{
    color: #000000;
    text-align: left;
    font-size: 14px;
    font-family: monospace;
}

.layout-container {
    display: flex; /* Use flexbox for layout */
    position: relative; /* Establish a positioning context */
}

.sidebar {
    display: flex;
    width: 15%;
    position: sticky;
    top: 0;
    height: 90vh;
    overflow-y: hidden;
    overflow-x: hidden;
    background-color: transparent;
    backdrop-filter: blur(20px);
    background-image: linear-gradient(
        40deg,
        rgba(209, 209, 209, 0.4),
        rgba(60, 60, 60, 0.2)
    );
    z-index: 9;
}
.sidebar::before {
        content: '';
        display: flex;
        position: sticky;
        top: 20px; /* Adjust for some padding from the top */
        left: 80px; /* Adjust for some padding from the left */
        width: calc(100% - 40px); /* Full width minus left and right padding */
        height: 120px; /* Adjust based on your logo's aspect ratio */
        background-image: url("eigenzinnig/Eeigzinnig-producties-logo-transparant.png");
        background-position: left top;
        background-size: contain;
        background-repeat: no-repeat;
}
.main-content {
    background-image: url("eigenzinnig/eigenzinnig_bg_2.jpg");
    background-position: center; 
    background-size: cover; 
    background-repeat: no-repeat; 
    background-attachment: fixed; 
    z-index: 1;
    min-height: 90;
    min-width: 100%;
    position: relative;
    overflow-x: hidden;
    box-sizing: border-box;
}
.nav {
    --nav-gap: 15px;
    padding: var(--nav-gap);
    position: fixed;
    flex-direction: column;
    justify-content: center;
    align-content: center;
    height: 100%;
}
.nav-link {
    display: flex;
    align-items: center;
    margin-bottom: var(--nav-gap);
    text-decoration: none;
}
.nav-link:hover .nav-label {
    color: #202020;
    transform: scale(1.2);
    text-decoration-line: underline;
    text-decoration-color: #F96E46;
}
.nav-link:active .nav-label {
    color: #202020;
    transform: scale(1.2);
    text-decoration-line: underline;
    text-decoration-color: #F96E46;
}
.nav-label {
    color: #202020;
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    text-decoration-line: none;
    transition: all 0.3 ease;
    margin-left: 40px;
}

@media (max-width: 768px) {
    .layout-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        position: static;
    }

    .main-content {
        width: 100%;
        height: 100%;
    }
    .list {
        flex-direction: column; /* Stack items vertically */
        overflow-x: hidden; /* Hide horizontal scrolling */
    }
    .item {
        width: 90%; /* Make items take up most of the screen */
        height: auto; /* Let height adjust */
    }
    .section {
        width: 90%;
        height: 100%;

    }
   
}

#home {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: right;
    position: relative;
    min-height: 100vh;
    width: 100vw;
   
}
.section {
    display: flex;
    flex-direction: column;
    align-content: center;
    min-height: 100vh;
    gap: 40rem;
    text-align: left;
}
#home .text {
    position: absolute;
    justify-content: space-between;
    align-content: center;
    text-align: right;
    width: 40rem;
    max-width: 90vw;
}
#home .imgpersona {
    position: absolute; /* Or remove position entirely */
    display: flex;
    justify-content: center;
    align-items: center;
    margin: auto;
    transform:translate(-145%, 0%)
}
#home .imgpersona img {
        width: 400px; /* Prevent image from exceeding container size */
        height: auto; /* Maintain aspect ratio */
        display: block; /* Fix inline spacing issues */
        align-items: center;
    }
@media (max-width: 768px) {
    #projects {
        width: 100vw !important; /* Make it take full width */
        margin-left: 0 !important; /* Remove the left margin */
        justify-content: center; /* Ensure it stays centered */
    }
        .list {
            flex-direction: row;
            margin-left: 0 !important;
            overflow-x: auto; /* Allow horizontal scrolling */
            scroll-snap-type: x mandatory;
        }
        .scrolltext {
            width: 80vw !important; /* Adjust for mobile */
            height: 80vw !important;
            font-size: 1.2rem;
        }
        .item {
            width: 80vw !important;
            height: 80vw !important;
        }
        .item img {
            width: 100% !important;
            height: 100% !important;
        }
        .arrow {
            width: 80vw;
        }
    }
#projects {
    position: relative;
    min-height: 100vh;
    width: 70vw; 
    margin-left: 30vw;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}
.scrolltext {
    flex-shrink: 0; /* Prevents it from resizing */
    width: 500px; /* Match item width */
    height: 500px; /* Match item height */
    margin: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border-radius: 1rem;
    scroll-snap-align: center; /* Ensures smooth scrolling */
    text-align: justify;
    text-spacing-trim: 5px;
    padding: 20px;
    box-sizing: border-box;
}
.arrow {
    transform:scale(50%) translateX(50%) translateY(50%) rotate(270deg);
    position: absolute;
    color: #E6E8E6;
}
.list {
    display: flex;
    flex-direction: row;
    align-content: center;
    align-items: center;
    overflow-y: hidden;
    scroll-snap-type: x mandatory; /* Enables snapping between items */
    scroll-padding: 40px;
    padding: 40px 40px;
    gap: 40px;
    width: max-content; /* Allows the list to grow based on content */
}
.list::-webkit-scrollbar {
    display: none;
}
button {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 1rem;
    font-family: "DM Sans", serif;
    border-radius: 50%;
    transition: background 0.3s;
}
button:hover {
    background: rgba(0, 0, 0, 0.8);
}
.item {
    width: 500px;
    height: 500px;
    margin: 0 20px;
    background-image: linear-gradient(
        40deg,
        rgba(60, 60, 60, 0.2),
        rgba(209, 209, 209, 0.4)
    );
    flex-shrink: 0;
    border-radius: 1rem;
    scroll-snap-align: center; /* Ensures each item snaps to the start */
    position: relative;
    box-shadow:
    0 0 10px rgba(255, 255, 255, 0.5),
    0 0 20px rgb(159, 184, 173, 0.7);
    box-sizing: border-box;
}
.item:hover {
    box-shadow:
    0 0 10px rgba(255, 255, 255, 0.5),
    0 0 20px rgba(255, 255, 255, 0.4),
    0 0 30px rgb(229, 242, 227, 0.8);
}
.item img {
    width: 500px; /* Maak het beeld volledig */
    height: 500px; /* Houd de hoogte */
    object-fit: cover; /* Zorg ervoor dat het beeld de ruimte vult */
    border-radius: 1rem;
    box-sizing: border-box;
}
/* Hidden item data by default */
.item_data {
    width: 280px;
    background-color: transparent;
    backdrop-filter: blur(20px);
    background-image: linear-gradient(
        40deg,
        rgba(209, 209, 209, 0.4),
        rgba(60, 60, 60, 0.2)
    );
    padding: 1.5rem 2rem;
    box-shadow: 2 16px 24px #202020;
    border-radius: 1rem;
    position: absolute;
    bottom: -9rem; /* Initially hidden outside the item */
    left: 0;
    right: 0;
    margin-inline: auto;
    opacity: 0; /* Hidden by default */
    transition: opacity 0.3s, transform 0.5s ease-in-out;
    
}
.list:has(.item:hover) .item:not(:hover) img {
    filter: blur(2px) grayscale(2);
    transition: filter 0.3s ease; /* Smooth transition for grayscale effect */
}
/* Optional: Reset the grayscale effect when not hovering */
.item img {
    transition: filter 0.3s ease; /* Smooth transition back to color */
}
.item_description {
    display: block;
    margin-bottom: 0.25rem;
    font-family: monospace;
    color: #ffffff;
}
.item_title {
    margin-bottom: 0.75rem;
}
.item_button {
    text-decoration: none;
    font-family: monospace;
    color: #ffffff;
}
.item_button:hover {
    text-decoration: underline;
}
.item:hover .item_data {
    opacity: 1; 
    transform: translateY(-10rem); 
}

#cv{
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: center;
    min-height: 100vh;
    width: 100vw;
}
#cv .imgcv {
    position: absolute; /* Or remove position entirely */
    display: flex;
    justify-content: center;
    align-items: center;
    margin: auto;
    transform:translate(-115%, 75%)
}
#cv .imgcv img {
        width: 500px; /* Prevent image from exceeding container size */
        height: auto; /* Maintain aspect ratio */
        display: block; /* Fix inline spacing issues */
    }

#cv .column0{
    text-align: left;
} 
#cv .column1, 
#cv .column2, 
#cv .column3 {
    align-self: center;
    text-align: justify;
    width: 50vw;
    padding: 9px;
}
@media (max-width: 768px) {
    #cv .column0,
    #cv .column1, 
    #cv .column2, 
    #cv .column3 {
        width: 90vw; /* Full width on small screens */
        align-items: center;  }
}
table {
    font-family: monospace, sans-serif;
    text-align: center;
    vertical-align: middle;
    border-collapse: collapse;
    
}
caption {
    text-align: center;
    font-size: 1.5rem;
    padding-top: 7px;
    padding-bottom: 7px;
}
th, td {
    padding: 7px;
    font-weight: normal;
    border: 0.5px solid #202020;
    
}
tr:nth-child(odd) {
    background-color: transparent;
    background-image: linear-gradient(
        40deg,
        rgba(209, 209, 209, 0.2),
        rgba(255, 255, 255, 0.2)
    );
    border: 0.5px solid #202020;
}
tr:nth-child(even) {
    background-color: transparent;
    background-image: linear-gradient(
        40deg,
        rgba(87, 87, 87, 0.2),
        rgba(41, 41, 41, 0.2)
    );
    border: 0.5px solid #202020;
    
}
th {
    font-size: 0.9rem;
    width: 40vw; /* Adjust width of the first column if needed */
    
}
td {
    font-size: 0.9rem;
    color: #F96E46;
    
}
@media (max-width: 768px) {
    .footer {
        flex-direction: column; /* Stack items vertically */
        overflow: hidden; /* Hide horizontal scrolling */
        align-self: center;
        align-content: space-between ;
        width: 100vw;
        max-width: 100vw;
        margin: 0; 
        padding: 0;
    }
    .footer .button .title {
        font-optical-sizing: auto;
    }
}
.footer {
    display: flex;
    position:fixed;
    justify-content: center;
    align-content: center;
    background-color: #000000;
    left: 0;
    bottom: 0;
    width: 100vw;
    max-width: 100vw;
    height: 10vh;
    z-index: 8;
}
a { 
    text-decoration: none; color:#fff;
    padding: 0.5em;
    font-optical-sizing: auto;
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    text-decoration-line: none;
    transition: all 0.3 ease; 
}
a:visited { 
    text-decoration: none; 
}
a:hover { 
    text-decoration: none;  
}
a:focus { 
    text-decoration: none; 
}
a:hover, a:active { 
    text-decoration: none; 
}
.footer .button {
    list-style: none;
    padding: 0;
    margin: 0;
    align-items: center;
    display: flex;
    max-width: 100vw;
}
.footer .button .title {
    position: relative;
    justify-content: space-between;
    cursor: pointer;
    color: rgb(255, 255, 255);
    text-transform: uppercase;
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    text-decoration-line: none;
    transition: all 0.3 ease;
}
.footer .button .title:hover {
    color: #fff;
}
.footer .button .title:before {
    content: "";
    position: absolute;
    inset: auto 0 0 0; /* Aligns underline to the bottom */
    height: 3px; /* Thickness of the underline */
    width: 100vw;
    background: #F96E46; /* Underline color */
    scale: 0;
    transition: transform 0.3s ease;
    transform-origin: right; /* Start animation from the right */
}
.footer .button .title:hover:before {
    scale: 1;
    transform-origin: left; /* Expand underline from left on hover */
}

