/* General page setup */
body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: sans-serif;
}

/* --- HOMEPAGE HERO STYLES --- */
.hero-section {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

#bgvideo {
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: -1;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    opacity: 0.5;
}

.hero-content {
    z-index: 1;
}

.hero-content h1 {
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    font-size: 7rem;
    font-weight: bold;
    text-transform: uppercase;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

#changing-word {
    transition: opacity 0.5s ease-in-out;
    min-width: 550px; 
    text-align: left;
}

.fade-out {
    opacity: 0;
}

/* --- LOGO & NAVIGATION STYLES --- */
.logo {
    position: absolute;
    top: 40px;
    left: 50px;
    max-width: 180px;
    z-index: 10;
}

.main-nav {
    position: fixed;
    top: 40px;
    right: 50px;
    z-index: 10;
    display: flex;
    gap: 1.5rem;
}

.main-nav a {
    color: white;
    text-decoration: none;
    font-family: 'Arial Narrow Bold', sans-serif;
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 1px;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.main-nav a:hover {
    border-bottom-color: white;
}

.main-nav a.active {
    border-bottom-color: white;
}

/* --- INNER PAGE STYLES (PROJECTS, ABOUT, CONTACT) --- */
.projects-page-body {
    background-color: #000;
    color: white;
}

/* --- ABOUT PAGE STYLES --- */
.about-text {
    font-size: 1.2rem;
    text-align: center;
    max-width: 800px;
    margin: 60px auto;
    line-height: 1.7;
    font-family: Arial, sans-serif;
}

/* --- PROJECTS PAGE STYLES --- */
.projects-container {
    padding: 120px 4%;
}

.project-item {
    margin-bottom: 1rem;
}

.project-band {
    position: relative;
    height: 25vh;
    min-height: 200px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 0 50px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project-band::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    transition: background-color 0.4s ease;
}

.project-title-container {
    z-index: 2;
    transition: transform 0.4s ease;
    transform: translateX(0);
}

.project-band h2 {
    font-family: Impact, sans-serif;
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
}

.project-subtitle {
    font-family: Arial, sans-serif;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #ccc;
    margin: 0.25rem 0 0 0;
}

.project-status {
    font-family: Arial, sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #a5a5a5;
    margin: 0.5rem 0 0 0;
}

.project-status strong {
    color: #ccc;
}

.project-item:hover .project-band {
    transform: scale(1.03);
}

.project-item:hover .project-band .project-title-container {
    transform: translateX(10px);
}

.project-content {
    max-height: 0;
    overflow: hidden;
    background-color: #1a1a1a;
    padding: 0 50px;
    transition: max-height 0.5s ease-out, padding 0.5s ease-out;
}

.project-item.active .project-content {
    max-height: 2000px;
    padding: 40px 50px;
}

/* --- PROJECT DETAILS STYLES --- */
.details-section {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.film-poster {
    flex-shrink: 0;
    flex-basis: 33.33%;
}

.film-poster img {
    width: 100%;
    height: auto;
}

.text-content {
    flex: 1;
}

.synopsis-content {
    margin-bottom: 2.5rem;
}

.synopsis-content h3, .credits-list h3 {
    font-family: Impact, sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 1rem;
}

.synopsis-content p, .credits-list p {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
}

/* This is the crucial rule that was missing or incorrect */
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.credits-list p {
    margin: 0.5rem 0;
}

.credits-list strong {
    margin-right: 0.5em;
    color: #ccc;
}

/* --- CONTACT PAGE STYLES --- */
.form-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 0 2rem;
}

form {
    width: 100%;
    max-width: 600px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-family: Arial, sans-serif;
    color: #ccc;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    background-color: #1a1a1a;
    border: 1px solid #444;
    border-radius: 4px;
    color: white;
    font-size: 1rem;
    box-sizing: border-box; 
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: white;
}

.submit-btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: white;
    color: black;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.submit-btn:hover {
    background-color: #ccc;
}


/* --- MOBILE & RESPONSIVE STYLES --- */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }
    #changing-word {
        min-width: unset;
        text-align: center;
    }
    .logo {
        max-width: 120px;
        top: 20px;
        left: 50%;
        transform: translateX(-50%);
    }
    .main-nav {
        top: 80px; 
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        width: 100%;
        justify-content: center;
        gap: 1.5rem;
    }
    .main-nav a {
        font-size: 0.9rem;
    }
    
    .details-section {
        flex-direction: column; 
    }
    .film-poster {
        width: 150px;
        margin-bottom: 1rem;
        flex-basis: auto; 
    }
    .video-credits-section {
        flex-direction: column;
    }

    .projects-container {
        padding-top: 150px;
    }
}