/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: #000;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #eaeaea;
    background-color: #000;
    overflow-x: hidden;
}

/* Hide page scrollbar only on homepage */
body.home {
    overflow-y: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto Slab', serif;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.01em;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(0,0,0,0.6), rgba(0,0,0,0));
    border-bottom: none;
}

.nav-container {
    max-width: 1200px;
    margin-top: 5%;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 15%;
}

.nav-logo { display: none; }

.nav-menu {
    display: flex;
    margin-top: 3%;
    gap: 2rem;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.nav-link {
    font-family: 'Inter', sans-serif;
    text-decoration: none;
    color: #fff;
    font-weight: 300;
    transition: color 0.3s ease;
    position: relative;
    font-size: 1rem;
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #fff;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: #000;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    position: relative;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    padding: 0 2rem;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -2px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #666;
    margin-bottom: 3rem;
    font-weight: 300;
}

.hero-scroll {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: #999;
    font-size: 0.9rem;
}

.scroll-indicator {
    width: 2px;
    height: 40px;
    background: #999;
    position: relative;
    animation: scrollPulse 2s infinite;
}

.scroll-indicator::after {
    content: '';
    position: absolute;
    top: 0;
    left: -3px;
    width: 8px;
    height: 8px;
    background: #999;
    border-radius: 50%;
    animation: scrollMove 2s infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

@keyframes scrollMove {
    0% { transform: translateY(0); }
    50% { transform: translateY(32px); }
    100% { transform: translateY(0); }
}

/* Video Stack */
.video-stack {
    position: relative;
    top: 0;
    scroll-snap-type: y mandatory;
    height: 100vh;
    overflow-y: scroll;
    scroll-behavior: smooth;
    margin: 0;                /* no margin needed */
    background: transparent;  /* prevent black bar */
    z-index: 1;               /* behind nav if nav z-index is higher */
}


.video-item {
    height: 100vh;
    position: relative;
    overflow: hidden;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    scroll-margin-top: 0;
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.video-item.animate-in {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.video-item.animate-in .project-video {
    opacity: 1;
}

.video-item.animate-out {
    opacity: 0;
    transform: translateY(-50px) scale(0.95);
}

.video-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

.project-video {
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    object-position: center;
    opacity: 1;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) scale(1);
}

.video-item.animate-in .project-video {
    transform: translateX(-50%) scale(1);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100vh;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 1;
}


/* Project Content Container */
.project-content {
    color: white;
    max-width: min(36vw, 36%);
    padding: 2.25rem 2.5rem;
    position: relative;
    background: rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 6px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.35);
    margin: 0rem auto;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s;
}

.video-item.animate-in .project-content {
    opacity: 1;
    transform: translateY(0);
}

.project-info {
    margin-bottom: 1.5rem;
}

/* Laurels Info */
.laurels-info {
    color: white;
    padding: 1rem 2rem;
    position: absolute;
    bottom: 8rem;
    left: 50%;
    transform: translateX(-50%);
    background: transparent;
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.4s;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
    justify-content: center;
}

.laurels-info {
    text-align: center;
}

.video-item.animate-in .laurels-info {
    opacity: 1;
    transform: translateX(-50%);
}


.laurel-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0;
    flex-shrink: 0;
}

.laurel-image {
    width: 120px;
    height: 120px;
    object-fit: contain;
    flex-shrink: 0;
}

.laurel-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    text-align: center;
}

/* Rentals Info */
.rentals-info {
    color: white;
    padding: 1rem 2rem;
    position: absolute;
    bottom: 4rem;
    left: 50%;
    transform: translateX(-50%);
    background: transparent;
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.4s;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.video-item.animate-in .rentals-info {
    opacity: 1;
    transform: translateX(-50%);
}

.rental-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0;
    flex-shrink: 0;
}

.rental-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.rental-image {
    width: 75px;
    height: auto;
    border-radius: 8px;
    object-fit: contain;
    border: 2px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

.rental-link:hover .rental-image {
    border-color: rgba(255,255,255,0.5);
    transform: scale(1.05);
}

.laurel-name {
    font-size: 0.8rem;
    font-weight: 500;
    opacity: 0.8;
    display: block;
}

.laurel-award {
    font-size: 1rem;
    font-weight: 600;
    display: block;
}

.project-credits {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.credit-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0;
    flex-shrink: 0;
    min-width: 0;
    gap: 0.5rem;
    text-align: left;
}

.credit-label {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
    text-shadow: 0 0 8px rgba(0,0,0,0.7);
    font-family: 'Roboto Slab', serif;
}

.credit-name {
    font-size: 1rem;
    font-weight: 500;
    color: #fff;
    flex: 1;
    font-family: 'Source Code Pro', sans-serif;
}

.director-link {
    font-size: 1rem;
    font-weight: 500;
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
    flex: 1;
    font-family: 'Source Code Pro', sans-serif;
}

.director-link:hover {
    color: #888;
}

.actor-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-start;
    flex: 1;
}

.actor-item {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.actor-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.actor-link-vertical {
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
    text-align: center;
}

.actor-link:hover {
    color: #888;
}

.actor-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

.actor-link:hover .actor-photo {
    border-color: rgba(255,255,255,0.5);
    transform: scale(1.05);
}

.actor-name {
    font-family: 'Source Code Pro', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: #fff;
    line-height: 1.2;
}

.actor-link-text-only {
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.1);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.actor-link-text-only:hover {
    background: rgba(255,255,255,0.2);
    color: #888;
}

/* Project and Client Links */
.project-link,
.client-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.project-link:hover,
.client-link:hover {
    color: #888;
}

.project-content.left-align {
    text-align: left;
    margin-right: auto;
    margin-left: 2rem;
}

.project-content.right-align {
    text-align: right;
    margin-left: auto;
    margin-right: 2rem;
}

.project-credits.left-align {
    text-align: left;
}

.project-credits.right-align {
    text-align: right;
}

.project-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -1px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.65);
}

.project-client {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 1rem;
    opacity: 0.95;
    text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}

.project-description {
    font-family: 'Source Code Pro', monospace;
    font-size: 1.05rem;
    opacity: 0.9;
    line-height: 1.6;
    text-shadow: 0 2px 10px rgba(0,0,0,0.6);
    max-width: 100%;
}

/* Footer */
.footer {
    background: #000;
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: white;
}

.footer-section p,
.footer-section li {
    color: #ccc;
    margin-bottom: 0.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-bottom {
    max-width: 1200px;
    margin: 2rem auto 0;
    padding: 2rem;
    text-align: center;
    border-top: 1px solid #333;
    color: #999;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Navigation - Fixed at top with transparent background */
    .nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1001;
        background: transparent;
        border-bottom: none;
    }

    .nav-container {
        padding: 0 1rem;
        height: 60px;
    }

    .nav-menu {
        display: flex;
        gap: 1.5rem;
        align-items: center;
        justify-content: center;
        width: 100%;
        position: static;
        height: auto;
        background: transparent;
        flex-direction: row;
        padding-top: 0;
    }

    .nav-toggle {
        display: none;
    }

    .nav-link {
        font-size: 0.9rem;
        font-weight: 500;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    /* Video Stack - Full viewport height */
    .video-stack {
        height: 100vh;
        overflow-y: scroll;
        scroll-snap-type: y mandatory;
    }

    .video-item {
        height: 100vh;
        position: relative;
        overflow: hidden;
        scroll-snap-align: start;
    }

    .video-overlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 100vh;
        background: transparent;
        display: block;
        padding-bottom: 0;
    }

    /* Project Content - Fixed at bottom */
    .project-content {
        position: fixed !important;
        bottom: 20%;
        left: 50% !important;
        transform: translateX(-50%) !important;
        z-index: 997;
        max-width: 90vw;
        width: 90vw;
        padding: 0.75rem;
        margin: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        background: rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        border-radius: 8px 8px 0 0;
        box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    }

    /* Rentals Info - Fixed above project content */
    .rentals-info {
        position: fixed;
        bottom: 15%;
        left: 50%;
        transform: translateX(-50%);
        z-index: 998;
        background: transparent;
        padding: 0.5rem 1rem 0.25rem 1rem;
        display: flex;
        flex-direction: row;
        gap: 0.75rem;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
        width: 100%;
        max-width: 100vw;
        opacity: 1;
        transition: none;
    }

    /* Laurels Info - Fixed above rentals */
    .laurels-info {
        position: fixed;
        bottom: 10%;
        left: 50%;
        transform: translateX(-50%);
        z-index: 999;
        background: transparent;
        padding: 0.5rem 1rem 0.25rem 1rem;
        display: flex;
        flex-direction: row;
        gap: 0.75rem;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
        width: 100%;
        max-width: 100vw;
        opacity: 1;
        transition: none;
    }

    .laurels-info.no-rentals {
        bottom: 15%;
    }

    .project-content.left-align {
        text-align: left !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        margin: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        max-width: 90vw;
        width: 90vw;
    }
    
    .project-content.right-align {
        text-align: right !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        margin: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        max-width: 90vw;
        width: 90vw;
    }

    .project-title {
        font-size: 1.4rem;
        line-height: 1.3;
        margin-bottom: 0.5rem;
    }

    .project-client {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    .project-description {
        font-size: 0.8rem;
        line-height: 1.4;
        margin-bottom: 0.75rem;
    }

    .project-credits {
        flex-direction: column;
        gap: 0.5rem;
        padding-top: 0.75rem;
        border-top: 1px solid rgba(255,255,255,0.2);
    }

    .credit-item {
        display: flex;
        align-items: flex-start;
        margin-bottom: 0;
        gap: 0.5rem;
    }

    .credit-label {
        font-size: 0.8rem;
        font-weight: 600;
        flex-shrink: 0;
        min-width: fit-content;
        font-family: 'Roboto Slab', serif;
    }

    .actor-list {
        flex-direction: row;
        gap: 0.5rem;
        align-items: flex-start;
        justify-content: flex-start;
        flex-wrap: wrap;
        margin-top: 0.25rem;
    }
    
    .actor-link-vertical {
        gap: 0.25rem;
        min-height: 36px;
        min-width: 36px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    
    .actor-photo {
        width: 32px;
        height: 32px;
        border-radius: 50%;
    }


    .actor-link-text-only {
        padding: 0.25rem 0.5rem;
        background: rgba(255,255,255,0.1);
        border-radius: 4px;
        font-size: 0.7rem;
    }

    /* Rental and Laurel Items - Scaled for mobile */
    .rental-link, .laurel-item {
        min-height: 36px;
        min-width: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .rental-image {
        max-height: 32px;
        max-width: 48px;
        object-fit: contain;
    }

    .laurel-image {
        max-height: 36px;
        max-width: 48px;
        object-fit: contain;
    }

    .laurel-text {
        display: none; /* Hide text on mobile to save space */
    }

    .laurel-name, .laurel-award {
        display: none;
    }
    
    /* Ensure proper spacing for mobile */
    .laurel-item {
        margin: 0.125rem;
    }
    
    .rental-item {
        margin: 0.125rem;
    }

    /* Footer adjustments */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    /* Hide scrollbar for video stack */
    .video-stack::-webkit-scrollbar {
        display: none;
    }

    .video-stack {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
}

@media (max-width: 480px) {
    /* Navigation adjustments for small screens */
    .nav-container {
        padding: 0 0.75rem;
        height: 55px;
    }

    .nav-menu {
        gap: 1rem;
    }



    /* Adjust bottom positioning for smaller screens */
    .rentals-info {
        bottom: 15%;
        padding: 0.4rem 0.75rem 0.2rem 0.75rem;
        gap: 0.5rem;
    }

    .laurels-info {
        bottom: 10%;
        padding: 0.4rem 0.75rem 0.2rem 0.75rem;
        gap: 0.5rem;
    }

    .laurels-info.no-rentals {
        bottom: 15%;
    }

    /* Project content adjustments */
    .project-content {
        padding: 0.6rem;
        max-width: 95vw;
        width: 95vw;
        bottom: 20%;
        left: 50%;
        transform: translateX(-50%);
    }

    .project-title {
        font-size: 1.2rem;
        line-height: 1.2;
        margin-bottom: 0.4rem;
    }

    .project-client {
        font-size: 0.8rem;
        margin-bottom: 0.4rem;
    }
    
    .project-description {
        font-size: 0.75rem;
        line-height: 1.3;
        margin-bottom: 0.6rem;
    }

    .project-credits {
        gap: 0.4rem;
        padding-top: 0.6rem;
    }

    .credit-label {
        font-size: 0.75rem;
    }

    .credit-name, .director-link {
        font-size: 0.75rem;
    }

    /* Actor list adjustments */
    .actor-list {
        gap: 0.4rem;
    }

    .actor-photo {
        width: 28px;
        height: 28px;
    }



    .actor-link-text-only {
        padding: 0.2rem 0.4rem;
        font-size: 0.65rem;
    }

    /* Rental and laurel adjustments */
    .rental-image {
        max-height: 28px;
        max-width: 40px;
    }

    .laurel-image {
        max-height: 32px;
        max-width: 40px;
    }

    .rental-link, .laurel-item {
        min-height: 32px;
        min-width: 32px;
    }

    /* Footer adjustments */
    .footer-content {
        padding: 0 0.75rem;
    }
}

/* Hide scrollbar for video stack */
.video-stack::-webkit-scrollbar {
    display: none;
}

.video-stack {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Loading animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content > * {
    animation: fadeIn 1s ease-out;
}

.hero-content > *:nth-child(2) {
    animation-delay: 0.2s;
}

.hero-content > *:nth-child(3) {
    animation-delay: 0.4s;
}
