:root {
    overflow-x: hidden;
    --grey1: #888;
    --grey2: #555;
    --lightgrey: #eeeeee50
}

body {

    scroll-snap-type: y mandatory;
    overflow-y: scroll;
    overflow-x: hidden;
    height: 100vh;
    margin: auto;
    padding: 0;

    font-family: "Lexend", serif;
    font-optical-sizing: auto;

    font-style: normal;
}

body::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar in Chrome and Safari */
}

header,
.project-bio,
footer {
    display: flex;
    height: 100vh;
    justify-content: center;
}

header,
.project-bio {
    display: flex;
    flex-direction: column;
    padding: 2em;
    width: 100vw;
    padding: 0 10vw;
    margin: auto;

}

.project-bio {
    background-color: var(--lightgrey);
}

p {
    margin: 0;
    font-size: .9em;
    margin-bottom: .5em;
    line-height: 1.5em;
    color: var(--grey1);
}

.header-logo {
    width: 400px;
    max-width: 80vw;
    opacity: .8;

}

header h1 {
    margin: 0;
    font-size: 1.1em;
    color: var(--grey1);
    font-weight: 300;
}

header h2,
header h3 {
    font-size: 1em;
    font-weight: 300;
    margin: 0;
    width: 80vw;
}

header h2 {
    font-size: 1.5em;
    margin: 0.5em 0;
    font-weight: 600;
    color: var(--grey2);
}


header h3 {
    margin: 0 0 0.5em 0;
    color: var(--grey2);
}

header p {
    margin: 1em 0 1em 0;
    max-width: 80vw;
    font-weight: 350;
}

h2 {
    font-size: .9em;
    margin: 1em 0 0 0;
    color: var(--grey2);
    font-weight: 500;
}

h4 {
    font-size: .85em;
    margin: 0;
    font-weight: 250;
    color: var(--grey1);
}

.project-bio p {
    font-weight: 350;
    margin: 0;
    width: 80vw;
}




.video-container {
    position: relative;
    width: 100%;
    height: 100vh;
}

/* .cover-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.cover-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
} */

.video-container iframe {
    width: 100%;
    height: 100%;
    /* display: none; */

}

.projects {
    margin-top: 2em;
}


.project-frame {
    margin: 1em .5em;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    padding: .5em 0;
    background-color: var(--lightgrey);
    border-radius: 10px;
    width: 80vw;
    max-width: 400px;
}

.project-frame p {
    min-height: 90px;
}

.slider-container {
    overflow: hidden;
}

.slider {
    display: flex;
    overflow-x: auto;
    /* scrollbar-width: none;
    -ms-overflow-style: none; */
    scroll-snap-type: x mandatory;
}

.slider::-webkit-scrollbar {

    height: .2em;
}

.slider::-webkit-scrollbar-thumb {
    background-color: #eeeeee;
    border-radius: .2em;

}

.slider::-webkit-scrollbar-track {
    background-color: var(--lightgrey);
}


/* Inner Slider */
.inner-slider-container {
    position: relative;
    margin: 20px 0;

}

.inner-slider {
    display: flex;
    scroll-snap-type: x mandatory;
    overflow-x: auto;
}

.inner-slider::-webkit-scrollbar {
    display: none;
    /* height: 2px;
    border-radius: 5px; */
}

.inner-slider::-webkit-scrollbar-thumb {
    background-color: #ddd;
    border-radius: 5px;

}


.inner-slider img {
    scroll-snap-align: center;
    width: 80vw;
    max-width: 400px;
    aspect-ratio: 1;
    object-fit: cover;
    margin: 0;
    padding: 0;
}


.dots,
.inner-dots {
    display: flex;
    justify-content: center;
}

.dots button,
.inner-dots button {
    padding: 5px;
    margin: .5em 1em;
    border-radius: 2px;
    background-color: #eee;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dots button.active,
.inner-dots button.active {
    background-color: #bbb;
}

.inner-dots button:hover {
    background-color: #ccc;
    transform: scale(1.2);
}


.project h2 {
    font-size: 1em;
    margin: 0 0 -1.2em .5em;
    padding: .5em 0 0 0.3em;
    color: var(--grey1)
}

.project p {
    font-size: .8em;
    color: #888;
    margin: -1em .5em 0;
    text-align: justify;
    line-height: 1.2em;
    padding: 0 .5em;
    font-weight: 300;
}

.view-button {
    margin: .5em .8em;
    padding: .8em;
    border-radius: .5em;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.15);
    transition: box-shadow .5s ease, transform .5s ease;
    fill: var(--grey1);
}


.view-button:hover {
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
    transform: scale(1.01);
}

h3 {
    font-size: .9em;
    margin: 1.5em 0 -.5em .8em;
    font-weight: 300;
    color: var(--grey2);
}

.controls-container {
    display: none;
}

.button-container {
    display: flex;
    padding: 1em;
    gap: 1em;
    justify-content: right;
}

button {
    background-color: var(--lightgrey);
    border: none;
    color: #aaa;
    padding: .5em 1em;
    border-radius: .5em;
    cursor: pointer;

}



.popup {
    display: none;
    /* Hidden by default */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    background-color: white;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Background overlay */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

/* Close button */
.close-btn {
    background: #ddd;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 10px;
}


.popup img {
    max-width: 80vw;
    max-height: 80vh;
}

footer {
    justify-content: start;
    height: auto;
    margin: 1em;
    font-size: .7em;
    margin: auto;
    padding: 0 0 2em 2em;
    color: #ddd;

}