* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    overflow: hidden;
    background: black;
    height: 100vh;
    font-family: Helvetica, Arial, sans-serif;
}

.menu {
    position: fixed;
    top: 0;
    right: 0;
    padding: 2vw;
    z-index: 3;
    display: flex;
    flex-direction: row;
    gap: 2em;
}

.menu-link {
    color: white;
    text-decoration: none;
    font-size: 1.2vw;
    font-weight: 300;
    opacity: 0.7;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.menu-link:hover {
    opacity: 1;
    border-bottom: 1px solid white;
}

@media screen and (max-width: 768px) {
    .menu {
        padding: 4vw;
        gap: 1.5em;
    }
    
    .menu-link {
        font-size: 3vw;
    }
}

.text-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    padding: 6vw;
    padding-top: 8vh;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    pointer-events: none;
}

.archive-link {
    color: black;
    text-decoration: none;
    background: white;
    transition: all 0.3s ease;
    pointer-events: auto;
    font-size: 3.2vw;
    font-weight: 400;
    margin-top: 2vh;
    padding: 0.2em 0.4em;
    letter-spacing: -0.02em;
    border: 0px solid transparent;
}

.archive-link:hover {
    color: white;
    background: black;
    border: 0px solid white;
}

.text-section {
    margin: 2vh 0;
    max-width: 85%;
    color: rgb(236, 236, 236);
    font-size: 3.2vw;
    line-height: 1.3;
    font-weight: 100;
    letter-spacing: -0.02em;
    pointer-events: auto;
}

.hover-word {
    color: white;
    cursor: pointer;
    display: inline;
    transition: all 0.3s ease;
    padding: 0.05em 0.15em;
    font-weight: 600;
    margin: 0 -0.15em;
    position: relative;
}

.hover-word:hover, .hover-word.active {
    background: white;
    color: black;
}

.video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh; /* dynamic viewport height */
    z-index: 1;
    transition: transform 1s ease;
}

.video-wrapper {
    width: 100%;
    height: 100vh;
    height: 100dvh; /* dynamic viewport height */
    position: relative;
    overflow: hidden;
}

video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 1;
}

@media screen and (max-width: 768px) {
    .video-container, .video-wrapper {
        height: 100vh;
        height: 100dvh; /* dynamic viewport height */
    }
    
    video {
        height: 100%;
        width: 100%;
        object-fit: cover;
    }
}

.video-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url(https://cdnjs.cloudflare.com/ajax/libs/vegas/2.3.1/overlays/03.png);
    opacity: 0.4;
    z-index: 3;
    pointer-events: none;
}

.video-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 2;
    pointer-events: none;
}

video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 1;
}

/* Mobile Styles */
@media screen and (max-width: 768px) {
    .text-overlay {
        padding: 8vw;
        padding-top: 4vh;
    }

    .text-section {
        max-width: 100%;
        font-size: 5.5vw;
        line-height: 1.25;
        margin: 2vh 0;
    }

    .hover-word {
        padding: 0.05em 0.1em;
        margin: 0 -0.1em;
    }

    .archive-link {
        font-size: 5vw;
        margin-top: 4vh;
        padding: 0.2em 0.3em;
    }
}

/* Small Mobile Styles */
@media screen and (max-width: 480px) {
    .text-overlay {
        padding: 6vw;
        padding-top: 3vh;
    }

    .text-section {
        font-size: 7vw;
        line-height: 1.2;
        margin: 1.5vh 0;
    }

    .archive-link {
        font-size: 6vw;
        margin-top: 3vh;
    }
}

.lightbox {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90vw;
    height: 90vh;
    background: rgb(0, 0, 0);
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@media screen and (max-width: 768px) {
    .menu-link[href="#archive"] {
        display: none;
    }
}

.lightbox.active {
    display: block;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    padding: 3rem;
    padding-right: 5rem;
    color: white;
    font-weight: 300;
    height: 100%;
    overflow-y: auto;
    width: 100%;
}

/* Lightbox scrollbar styling */
.lightbox-content::-webkit-scrollbar {
    width: 30px;
}

.lightbox-content::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1);
}

.lightbox-content::-webkit-scrollbar-thumb {
    background: white;
    border: 4px solid transparent;
    background-clip: padding-box;
    border-radius: 8px;
}

.lightbox-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.9);
    border: 4px solid transparent;
    background-clip: padding-box;
}

.lightbox-close {
    position: fixed;
    top: 3rem;
    right: calc(3rem + 12px);
    font-size: 8rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
}

.lightbox-close:hover {
    opacity: 1;
}

.lightbox-section {
    display: none;
}

.lightbox-section.active {
    display: block;
}

.lightbox a {
    color: white;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    transition: all 0.3s ease;
    font-size: 1.4rem;
}

#archive-content {
    height: 100%;
    padding: 0;
    margin: -3rem;
}

#archive-content iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: white;
}

.lightbox a:hover {
    border-bottom-color: white;
}

.vita-text {
    text-align: left;
    line-height: 1.4;
    max-height: 100%;
    overflow-y: auto;
    padding-right: 2vw;
    width: 100%;
}

.vita-text h2 {
    font-size: 1.2rem;
    font-weight: 400;
    margin: 2em 0 1em;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.vita-text h2:first-child {
    margin-top: 0;
}

.vita-text p {
    margin: 2.5em 0;
    font-size: 1.4rem;
    line-height: 1.8;
    text-align: left;
    word-spacing: 0.05em;
    max-width: 32em;
}

.vita-text p:first-of-type {
    margin-top: 0;
}

/* Awards Table Styles */
.awards-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 4rem;
    font-size: 0.9rem;
    color: white;
}

.awards-table th {
    text-align: left;
    padding: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    font-weight: 500;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.awards-table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    vertical-align: top;
}

.awards-table tbody tr:hover {
    background: rgba(255,255,255,0.05);
}

@media screen and (max-width: 768px) {
    .awards-table {
        font-size: 3vw;
    }
    
    .awards-table th,
    .awards-table td {
        padding: 0.8rem;
    }

    .lightbox-content {
        font-size: 5vw;
        padding: 6vw;
    }
    
    .lightbox-close {
        font-size: 6vw;
        top: 3vw;
        right: 3vw;
    }

    .vita-text h2 {
        font-size: 5vw;
    }

    .vita-text p {
        font-size: 4vw;
    }
}

/* Scrollbar styling */
.vita-text::-webkit-scrollbar {
    width: 12px;
}

.vita-text::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.2);
}

.vita-text::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.8);
}

.vita-text::-webkit-scrollbar-thumb:hover {
    background: white;
}
