/* General body styles */
body {
    font-size: 1rem;
    font-family: Arial, sans-serif;
    background-color: black;
    color: white;
    text-align: center;
    margin: 0;
    padding: 0;
    display: flex;  /* Use flexbox for centering */
    flex-direction: column; /* Stack elements vertically */
    height: 100vh;  /* Take full viewport height */
    justify-content: flex-start;  /* Keep header and footer in place */
}

/* Logo styles */
.logo {
    font-size: 2.5rem; /* Adjusted for consistency */
    font-weight: bold;
    line-height: 1;
}

a.logo {
    text-decoration: none;  /* Remove underline */
    color: inherit;         /* Inherit text color from parent */
}

/* Navigation styles */
.nav {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.nav a {
    color: white;
    text-decoration: none;
    font-size: 1.2rem; /* Adjusted for consistency */
    font-weight: bold;
    padding: 10px;
    transition: color 0.1s;
}

.nav a.active {
    color: rgb(210, 0, 0);
    font-weight: bold;
}

.nav a:hover {
    color: rgb(210, 0, 0);
}

/* Make sure the header and footer stay fixed in place */
header, .footer {
    z-index: 10;
}

/* Footer styles */
.footer {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: black;
    padding: 20px 0;
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 10;
}

.footer a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
}

.footer a i, .footer a img {
    width: 24px;
    height: 24px;
    vertical-align: middle;
}

/* Main content sections */
.about-content,
.projects-container,
.contact-container,
.gallery-container {
    opacity: 1;
    visibility: visible;
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 40px auto 0;
    display: block; /* Ensure it behaves like a block-level element */
    padding: 20px; /* Add some padding for spacing */
    text-align: center; /* Ensure the content is centered */
}

.about-text {
    display: inline;
}

.dash {
    font-size: 1rem;
    color: white;
    margin: 20px 0px;
}

.quote {
    color: rgb(210, 0, 0);
    font-weight: bold;
    font-size: 1.2rem; /* Adjusted for consistency */
    font-style: italic;
    display: inline;
}

/* General header styles */
h1 {
    font-size: 2rem; /* Adjusted for better readability */
    margin-top: 40px;
}

/* Other page elements */
.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
    padding: 20px;
    width: 100%;
}

/* Main content container */
.content-wrapper {
    display: flex;
    justify-content: flex-start; /* Center content horizontally */
    align-items: center;  /* Center content vertically */
    height: 100vh;  /* Full viewport height */
    width: 100%;  /* Ensure it takes up the full width of the page */
}


/* Styling the iframe container */
.iframe-container {
    width: 100%;  /* Adjust this value as needed to control the width of the iframe */
  /* Optional: max-width to prevent it from becoming too wide */
    height: 80%;  /* Adjust the height of the iframe container */
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    max-width: 800px;  /* Constrain the container to 468px width */
}

/* Ensures iframe takes up the full width and height of its container */
iframe {
    width: 100%;
    height: 80vh; /* Adjusted for better responsiveness */
    max-height: 80vh; /* Prevents iframe from exceeding the viewport height */
    border: none;
    object-fit: contain; /* Maintain aspect ratio */
}

/* Dropdown Container */
/* Dropdown Container: overlay on desktop so opening the menu doesn't shift siblings */
.dropdown {
    display: inline-block; /* shrink-wrap trigger */
    position: relative;
}

/* Dropdown Content (Hidden by Default) - absolute overlay on larger screens */
.dropdown-content {
    display: none;
    position: absolute; /* overlay so it doesn't push siblings */
    top: 100%;
    left: 0; /* align to the trigger's left edge */
    background-color: rgba(0,0,0,0.6); /* slightly translucent */
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    padding: 6px 0;
    min-width: 100%; /* at least as wide as the trigger */
    box-shadow: 0px 6px 18px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    box-sizing: border-box;
}

.dropdown-content a {
    display: block;
    font-size: 1rem;
    padding: 8px 12px;
    text-align: center;
    color: inherit;
    text-decoration: none;
}

/* Show the dropdown on hover or when .open is present (JS toggles .open on click) */
.dropdown:hover .dropdown-content,
.dropdown.open .dropdown-content {
    display: block;
}

/* "FILM" text styling */
.dropbtn {
    text-decoration: none;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    padding: 10px;
    transition: color 0.1s;
}

/* Video Container */
.video-container {
    position: relative;
    width: 100%;  /* Make the container take up 100% of its parent's width */
    height: auto;  /* Let the height adjust automatically */
    max-width: 800px;  /* Optional: Add max width to limit the size */
    margin: 0 auto;  /* Center the container */
    overflow: hidden;
}

/* Ensure video inside the container resizes responsively */
.video-container video {
    width: 100%;  /* Make video take up 100% of container width */
    height: auto;  /* Maintain aspect ratio */
    max-height: 90vh;  /* Optional: Limit height to 90% of viewport height */
    object-fit: contain;  /* Ensure the video fits within the container without distortion */
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .dropdown {
        display: block; /* full-width trigger on mobile */
        text-align: center;
        margin-top: 10px;
    }

    .dropdown-content {
        display: none; /* hidden by default on mobile */
        position: static; /* in-flow so it pushes content */
        width: 100%;
        margin-top: 8px;
        text-align: center;
        box-shadow: none;
        border-radius: 8px;
    }

    .dropdown-content a {
        font-size: 1rem;
    }

    .nav {
        flex-direction: column;
    }

    .logo {
        font-size: 2rem;
    }

    .nav a {
        font-size: 1.2rem;
    }

    h1 {
        font-size: 2rem;
    }

    iframe {
        height: 600px; /* Adjust the height for mobile screens */
    }

    .iframe-container {
        width: 90%;  /* Make iframe container slightly larger on smaller screens */
        height: 70vh;  /* Adjust height for smaller screens */
    }

}

/* Small screen adjustments */
@media (max-width: 480px) {
    .dropdown {
        display: block;
        margin-top: 8px;
    }

    .dropdown-content {
        display: none; /* hidden by default on small screens */
        position: static;
        width: 100%;
        margin-top: 6px;
        box-shadow: none;
    }

    .logo {
        font-size: 1.5rem;
    }

    .nav a {
        font-size: 1rem;
    }

    .about-content, .contact-container {
        font-size: 0.9rem;
    }

    .gallery-container {
        height: 300px;
    }

    h1 {
        font-size: 1.8rem; /* Slightly smaller for mobile */
    }

    iframe {
        height: 500px; /* Adjust height further for very small screens */
    }

    .iframe-container {
        width: 95%;  /* Even larger for very small screens */
        height: 60vh;  /* Adjust iframe height for mobile */
    }
}