@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400&display=swap');

/* Consolidated Roboto font classes */
.roboto-thin,
.roboto-light,
.roboto-regular {
    font-family: "Roboto";
    font-style: normal;
}

.roboto-thin { font-weight: 100; }
.roboto-light { font-weight: 300; }
.roboto-regular { font-weight: 400; }

/* Reusable text shadow */
:root {
    --text-shadow-default: 
        1px 1px 0 rgba(0, 0, 0, 0.5),
        -1px -1px 0 rgba(0, 0, 0, 0.5),
        1px -1px 0 rgba(0, 0, 0, 0.5),
        -1px 1px 0 rgba(0, 0, 0, 0.5);
    --text-shadow-thick:
        1px 1px 1.5px rgba(0, 0, 0, 0.5),
        -1px -1px 1.5px rgba(0, 0, 0, 0.5),
        1px -1px 1.5px rgba(0, 0, 0, 0.5),
        -1px 1px 1.5px rgba(0, 0, 0, 0.5);
    --color-primary: rgb(126, 167, 255);
    --headshot-height: 50vh;
}

.spaced-header { margin: 30px 0; }

body {
    margin: 0;
    height: 100vh;
    position: relative;
    font-family: 'Roboto';
    background-color: hsla(210, 20%, 15%, 1);
    background-image:
        radial-gradient(at 81% 65%, hsla(220, 20%, 20%, 1) 0px, transparent 50%), 
        radial-gradient(at 95% 99%, rgb(31, 46, 43) 0px, transparent 50%), 
        radial-gradient(at 48% 26%, hsla(260, 15%, 20%, 1) 0px, transparent 50%), 
        radial-gradient(at 75% 26%, hsla(190, 20%, 18%, 1) 0px, transparent 50%); 
    background-size: 500% 500%;
    animation: fadeInAnimation 2s ease 1 forwards, gradient 15s ease infinite;
}

/* Heading styles with shared properties */
h1, h2, h3 {
    text-align: center;
    margin: 0 1%;
}

h1 {
    color: var(--color-primary);
    font-size: 5rem;
    font-weight: 300;
    text-shadow: var(--text-shadow-default);
}

h2 {
    color: var(--color-primary);
    font-size: 1.5rem;
    font-weight: 400;
    text-shadow: var(--text-shadow-thick);
}

h3, h3 a {
    color: #f5f5f5;
    font-size: 1.25rem;
    font-weight: 400;
    text-shadow: var(--text-shadow-thick);
}

/* Shared container styles */
.landing, .landing-about {
    width: 80%;
    margin: 0 auto;
    display: grid;
    align-items: center;
    justify-content: center;
    position: relative;
}

.landing {
    grid-template-columns: repeat(2, auto);
    gap: 10%;
    padding-top: calc(50vh - (var(--headshot-height)/2) - 2rem);
}

.landing-about {
    grid-template-columns: 50% 50%;
    gap: 0;
}

.container {
    width: 100%;
    max-width: 100vw;
    max-height: 100vh;
    overflow: hidden;
}

.overlay {
    background: rgba(5, 5, 5, 0.15);
    pointer-events: none;
    transition: opacity 0.5s ease;
    opacity: 0;
    z-index: 500;
}

/* Image styles */
img {
    border-radius: 2vh;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    height: var(--headshot-height);
}

.imgIcon {
    border-radius: 0;
    box-shadow: none;
    height: auto;
    width: auto;
    max-width: 40px;
    max-height: 40px;
    margin-left: calc(50% - 20px);
    display: flex;
}

/* Navigation */
.navbar {
    width: 85%;
    justify-content: right;
    display: flex;
    position: static;
    overflow: hidden;
    z-index: 1000;
    font-size: 1.3rem;
    text-shadow: var(--text-shadow-default);
}

.navbar a {
    color: var(--color-primary);
    padding: 14px 20px;
    text-align: center;
    text-decoration: none;
}

.navbar a:hover {
    background-color: rgba(0, 0, 0, 0.25);
}

/* Project styles */
.projectList {
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 4rem;
    overflow-y: auto;
    height: 60vh;
}

.projectTitle {
    color: white;
    font-size: 3rem;
    text-align: center;
    font-weight: 300;
    text-shadow: var(--text-shadow-default);
    text-decoration: none;
}

.projectTitle:hover {
    color: var(--color-primary);
}

.previewVideos img {
    max-width: 40vh;
    height: fit-content;
}

.previewVideos video {
    height: fit-content;
}

/* Scrollbar styles */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background-color: rgba(0, 0, 0, 0.25);
    border-radius: 100vw;
    margin-block: .5rem;
}

::-webkit-scrollbar-thumb {
    background: whitesmoke;
    border-radius: 100vw;
}

/* Table styles */
table {
    width: 100%;
    margin: 0 auto;
    border-collapse: collapse;
    table-layout: fixed;
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    font-size: clamp(10px, 1.5vw, 14px);
}

th, td {
    border: 1px solid #ddd;
    padding: clamp(4px, 1vw, 10px);
    text-align: center;
    white-space: nowrap;
    color: #f5f5f5;
    text-shadow: var(--text-shadow-thick);
}

td:first-child {
    text-align: left;
    font-weight: 500;
}

/* Animations */
@keyframes gradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes fadeInAnimation {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* Media queries */
@media (max-width: 768px) {
    :root {
        --container-padding: 1rem;
    }

    .landing {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        grid-template-columns: 1fr;
        gap: 2rem;
        padding-top: 4rem;
        margin: 0 auto;
    }

    .navbar {
        justify-content: center;
        flex-wrap: wrap;
        padding: 0.5rem var(--container-padding);
    }
}

.previewVideos #VROT {
    max-width: 20vw;
    width: auto;
}

@media (min-width: 768px) {
    .previewVideos #VROT {
        max-width: 20vw;
    }
}