html {
    scroll-behavior: smooth;
}

/* Global Resets & Base Styles */
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    color: #2c3e50; /* Dark Blue/Grey */
}

a {
    color: #3498db; /* Blue */
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Header */
.site-header {
    background-color: #34495e; /* Darker Blue/Grey */
    color: #ecf0f1; /* Light Grey/White */
    padding: 0rem 0; /* Reduced top/bottom padding to make header less thick */
    border-bottom: 3px solid #c0392b; /* Accent Red */
    position: sticky; /* Make header sticky */
    top: 0;           /* Stick to the top of the viewport */
    z-index: 1000;    /* Ensure it stays above other content */
    width: 100%;      /* Ensure it spans full width when sticky */
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-header__logo img {
    height: 75px;
    width: auto;

}

.site-header__nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

.site-header__nav li {
    margin-left: 20px;
}

.site-header__nav a {
    color: #ecf0f1;
    font-weight: bold;
}

/* Hamburger Menu Toggle Button - Hidden by default on larger screens */
.site-header__menu-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.site-header__menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #ecf0f1; /* Same color as nav links */
    margin: 5px 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Sections General Styling */
section {
    padding: 40px 0;
    text-align: center;
}

section:nth-child(odd) {
  background-color: #ffffff;
}

section h2 {
    margin-bottom: 30px;
    font-size: 2rem;
}

/* Hero Section */
.hero-section {
    position: relative; /* Establishes a positioning context for children */
    padding-top: 119px; /* Push content down to account for sticky header height */
    height: 100vh; /* Make hero section take full viewport height */
    box-sizing: border-box; /* Ensure padding doesn't add to the 100vh height */
    overflow: hidden; /* Prevent content from spilling out */
    background-color: #000; /* Fallback background color if video doesn't load or while loading */
    color: #fff;
    display: flex;
    align-items: flex-start;
    justify-content: center; /* Horizontally center overlay text */
    text-align: center; /* Center text within the overlay */
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#heroVideo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content-overlay {
    position: relative;
    z-index: 2;
    padding: 20px;
}

.hero-content-overlay .hero-logo {
    display: block;
    margin: 0 auto;
    height: 500px; /* Use height directly */
    max-height: none; /* Remove max-height constraint */
    width: auto; /* Maintain aspect ratio */
    opacity: 0; /* Start hidden for animation */
    transform: translateY(20px); /* Start slightly lower for animation */
    animation: easeInLogo 1s ease-out 0.5s forwards; /* animation name, duration, timing function, delay, fill mode */
}

@keyframes easeInLogo {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Trailer Section */
.trailer-section__video-container {
    margin: 0 auto;
    max-width: 800px; /* Limit video width */
    aspect-ratio: 16 / 9; /* Maintain aspect ratio */
    background-color: #000; /* Black background for video area */
}

.trailer-section__video-container iframe,
.trailer-section__video-container video {
    width: 100%;
    height: 100%;
}

.trailer-section__caption {
    margin-top: 15px;
    font-style: italic;
    color: #555;
}

/* Projects Section */
.projects-section__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Create a 2-column grid */
    gap: 30px;
    text-align: left;
}

.project-card {
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Add transition for smooth hover effect */

    display: flex; /* Make the card a flex container */
    flex-direction: column; /* Stack its children (image and content div) vertically */
}

.project-card:hover {
    transform: scale(1.03); /* Slightly scale up the card on hover */
    box-shadow: 0 4px 15px rgba(0,0,0,0.15); /* Enhance box shadow on hover */
}

.project-card__image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover; /* Cover the area, might crop */
}

.project-card__content {
    padding: 20px;
    display: flex; /* Make it a flex container */
    flex-direction: column; /* Stack children vertically */
    flex-grow: 1; /* Allow content to grow and fill available space */
}

.project-card__title {
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 10px;
}

.project-card__synopsis {
    font-size: 0.9rem;
    margin-bottom: 10px;
    color: #555;
}

.project-card__status {
    font-size: 0.8rem;
    font-weight: bold;
    color: #c0392b; /* Accent Red */
    margin-top: auto; /* Push status to the bottom of card */
}

/* About Section */
.about-section p {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

/* Contact Section */
.contact-section__list {
    list-style: none;
    padding: 0;
}

.contact-section__list li {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

/* Footer */
.site-footer {
    background-color: #34495e; /* Darker Blue/Grey */
    color: #ecf0f1;
    text-align: center;
    padding: 20px 0;
    font-size: 0.9rem;
}

.site-footer p {
    margin: 5px 0;
}

.site-footer a {
    color: #bdc3c7; /* Lighter Grey */
}

/* Responsiveness */
@media (max-width: 768px) {
    .site-header .container {
        flex-direction: row; /* Keep logo and hamburger on the same row */
        justify-content: space-between; /* Pushes logo left, hamburger right */
        align-items: center; /* Keep them vertically aligned */
        position: relative; /* For positioning the nav dropdown */
    }

    .site-header__nav ul {
        /* Mobile navigation styles - initially hidden */
        display: none; /* Hide by default on mobile */
        position: absolute;
        top: 100%; /* Position below the header */
        left: 0;
        right: 0;
        background-color: #34495e; /* Same as header background */
        flex-direction: column;
        align-items: center;
        width: 100%;
        padding: 10px 0;
        margin-top: 0; /* Reset margin */
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
        z-index: 1000; /* Ensure it's above other content */
    }

    .site-header__nav ul.nav-active {
        display: flex; /* Show when active */
    }

    .site-header__nav li {
        margin-left: 0;
        margin-bottom: 0; /* Remove bottom margin as padding on 'a' handles spacing */
        width: 100%;
        text-align: center;
    }

    .site-header__nav a {
        display: block;
        padding: 12px 15px; /* Adjust padding for mobile nav links */
        width: 100%; /* Ensure link takes full width for tap area */
        border-bottom: 1px solid #4a6278; /* Separator for links */
    }
    .site-header__nav li:last-child a {
        border-bottom: none; /* No border for the last link */
    }

 
    .site-header__menu-toggle {
        display: block; /* Show on mobile */
        order: 1; 
    }

    .site-header__menu-toggle[aria-expanded="true"] span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .site-header__menu-toggle[aria-expanded="true"] span:nth-child(2) {
        opacity: 0;
    }
    .site-header__menu-toggle[aria-expanded="true"] span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

  
    .site-header__nav {

    }

    /* Reduce overall section padding on mobile */
    section {
        padding: 30px 0;
    }

    .hero-section h1 {
        font-size: 2rem;
    }


    .hero-section {
        padding: 40px 20px; /* Adjust hero padding for mobile, include side padding */
    }

    .projects-section__grid {
        grid-template-columns: 1fr; /* Stack projects on smaller screens */
    }

    section h2 {
        font-size: 1.8rem;
    }

    .container {
        padding: 0 15px; /* Slightly reduce container side padding on mobile */
    }

    /* Adjust project card content padding */
    .project-card__content {
        padding: 15px;
    }
} 

.scroll-down-arrow {
    position: absolute;
    bottom: 200px; /* Distance from the bottom */
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    text-decoration: none;
    z-index: 3; /* Ensure it's above the video and overlay */
    opacity: 0; /* Start hidden for animation - restored */
    animation: easeInArrow 0.8s ease-out 1.7s forwards, 
               blinkArrow 2s infinite 2.5s; /* Animations restored */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center; /* For the text span */
}

.scroll-down-arrow .scroll-text {
    font-size: 0.9rem; /* Adjust as needed */
    margin-bottom: 5px; /* Space between text and arrow */
    /* Text shadow can be added for readability if needed */
    /* text-shadow: 1px 1px 3px rgba(0,0,0,0.5); */
}

.scroll-down-arrow .arrow-icon {
    font-size: 2.5rem; /* Original size of the arrow */
    display: inline-block; /* Good practice */
}

@keyframes easeInArrow {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(10px); /* Slight upward movement */
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes blinkArrow {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
} 