body, html {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
}

header {
    top: 0.5%;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 120px;
    margin: 0;
    position: relative; 
    width: 100%;
    padding: 20px;
    z-index: 777; 
    text-align: center;
    box-sizing: border-box;
    background-color: transparent;
} /* end of header */

.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 10; 
} /* end of background */


#background1 {
    opacity: 1; /* starta with the first background fully visible */
} /* end of background 1 */

.homepage-title {
    text-decoration: none;
} /* end of homepage-title (controls film titles on the homepage) */

.titles-container {
    position: fixed; 
    bottom: 2%; 
    left: 3%; 
    z-index: 10;
    color: white;
    width: 90%;
} /* end of title container */

.title {
    font-size: 3.5em;
    font-weight: bold;
    margin: 0 0;
    text-transform: uppercase;
    display: block;
    text-decoration: none;
    color: white;
    cursor: pointer;
    transition: color 0.3s ease;    
} /* end of title */

.title:hover {
    color: #a1a19f; 
} /* end of title hover */

.title.active {
    color: #a1a19f;
    font-weight: bold;
} /* end of title active */




.film-highlight {
    position: relative;
    width: 100%;
    height: 100vh;
    color: #fff;
} /* end of film highlight */

.film-background {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1; 
} /* end of film background */

.film-content {
    position: absolute;
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%); 
    text-align: center;
    z-index: 10;
} /* end of film-content */

.film-title {
    margin-top: 2em;
    font-size: 3.5em;
    font-weight: bold;
    margin-bottom: 0.5em;
} /* end of film-title */

.film-details p {
    margin: 0.5em 0;
    font-size: 1.2em;
} /* end of film-details */

.film-details-container {
    padding-top: 100%;
    position: absolute;
    bottom: 10%; 
    top: 87.5%;
    left: 5%;
    width: 90%;
    color: white;
    z-index: 10; 
    padding: 20px;
} /* end of film-details-container */

.film-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
} /* end of film-info-grid */

.film-description {
    padding-left: 50px;
    font-size: 0.8em;
    padding-bottom: 50px;  
} /* end of film-description */

.film-description-container {
    text-align: justify;
    max-width: 80%;
    margin: 20px auto; 
    padding: 20px;
} /* end of film-description-container */


/* Specific class for the content block to prevent global styling issues */
.project-content {
    display: flex;
    flex-direction: row; /* Aligns children (text and image) in a row */
    align-items: center; /* Centers items vertically */
    justify-content: center; /* Centers content horizontally */
    padding-left: 10%;
    padding-right: 10%;
    margin-top: 5%; /* Additional spacing from top */
    margin-bottom: 5%;
}

.project-details {
    display: flex;
    flex-direction: row; /* Ensures the text and image are side by side */
    align-items: center; /* Vertically aligns the text and image in the center */
    width: 100%; /* Takes full width of its container */
}

.project-text, .project-image {
    flex: 1; /* Each takes up equal space */
    padding: 10px; /* Adds space around the text and image */
}

.project-text {
    max-width: 50%; /* Limits text width to 50% of its container */
    font-size: larger;
    font-weight: bold;
    color: #fff;
}


.project-image img {
    max-width: 100%; /* Ensures the image is responsive and fits its container */
    height: auto; /* Maintains aspect ratio */
    margin: auto;
}

.project_title {
    margin-top: 5%;
    padding-left: 10%;
    max-width: 80%;
    color: transparent;
    background: linear-gradient(45deg, #0084ff, #53acd3, #96f5f5, #0084ff);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    text-align: left;
    display: block;
    margin-bottom: 5%;
    font-size: x-large;
    animation: gradientShift 8s linear infinite;
} /* end of movie-title for film containers */

.project-d-text {
    padding-left: 10%;
    max-width: 80%;
    color: transparent;
    background: linear-gradient(45deg, #0084ff, #53acd3, #96f5f5, #0084ff);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    font-family: Arial, Helvetica, sans-serif;
    text-align: left;
    display: block;
    margin-bottom: 5%;
    animation: gradientShift 8s linear infinite;
} /* end of text */



/* Responsive adjustments */
@media (max-width: 768px) {
    .project-details {
        flex-direction: column; /* Stacks text and image vertically on smaller screens */
    }
    
    .project-text, .project-image {
        max-width: 100%; /* Allows text and image to fill the container on small screens */
    }
}


.ASG-video-container {
    height: 30%;
} /* end of ASG-video-container */

@media (min-width: 768px) and (max-width: 1023px) {
    .title.active {
        color: #a1a19f; /* Highlight the active title */
    }
}

@media (max-width: 768px) {
    .project-details {
        flex-direction: column;
    }

    .project-text, .project-image {
        max-width: 100%;
    }

    .film-details-container {
        padding: 10px;
    }

    .film-description-container {
        margin: 10px auto;
        padding: 10px;
    }

    .ASG-portfolio-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .ASG-portfolio-container img {
        display: none; /* Hide the image on smaller screens */
    }

    .text-overlay {
        position: relative;
        padding: 10px;
        width: 90%; /* Add spacing on the sides */
        text-align: center;
    }

    .text-overlay h1 {
        font-size: 2em; /* Reduce title size */
    }

    .film-gallery-portfolio {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 10px;
    }

    .container {
        width: 100%;
    }

    .project_title, .project-d-text {
        font-size: 1em;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .project-details {
        flex-direction: row;
    }

    .project-text {
        padding: 15px;
    }

    .film-info-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .ASG-portfolio-container {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
    }

    .ASG-portfolio-container img {
        width: 50%;
    }

    .text-overlay {
        width: 50%;
        padding: 20px;
    }

    .film-gallery-portfolio {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (min-width: 1024px) {
    .project-details {
        flex-direction: row;
    }

    .film-info-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .film-description-container {
        max-width: 70%;
    }

.ASG-portfolio-container {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
    height: 380px;
    display: flex;
    justify-content: flex-end;
}

.ASG-portfolio-container img {
    width: 40%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
}

.text-overlay {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 50%;
    background: rgba(0, 0, 0, 0.7);
    padding: 2rem;
}    .text-overlay {
        width: 60%;
        padding: 30px;
    }

    .film-gallery-portfolio {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
}




