/* banners.css */
/* This stylesheet is specific to the homepage banner navigation. */
/* It includes font definitions, basic reset, navigation bar styles, and banner layout styles. */

/* --- Font Definition --- */
@font-face {
    font-family: 'homevideo';
    src: url('https://d3qnwbw3llk2pq.cloudfront.net/font/homevideo.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

html {
    perspective: 1000px;
}

/* --- Body Styles --- */
/* Sets the background to black and uses the custom font. */
body {
    margin: 0;
    padding: 0;
    background: #000;
    color: #fff;
    font-family: 'homevideo', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

/* --- Navigation Bar Styles --- */
/* Sticky top navigation bar with links and logo. */
.top-nav {
    width: 100%;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
    position: sticky; /* Sticks to the top of the viewport */
    top: 0;
    z-index: 1000; /* Ensures it stays above the banners */
    border-bottom: 1px solid #333; /* Visual separation from content */
}

.top-nav .nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.top-nav .nav-links a {
    text-decoration: none;
    color: #19f0ff; /* Neon cyan color */
    font-size: 14px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.top-nav .nav-links a:hover {
    color: #fff; /* White on hover */
}

.header-logo {
    height: 20px;
    width: auto;
    margin: 0 10px;
}

/* --- Banner Navigation Styles --- */

/* Container for the stacked project banners */
.banner-container {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Individual banner link wrapper */
.banner-link {
    display: block;
    width: 100%;
    position: relative;
    text-decoration: none;
    border-bottom: 1px solid #000; /* Separator between banners */
}

/* Banner image configuration */
/* Enforces a 3:1 aspect ratio as requested */
.banner-image {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 3 / 1; /* Aspect ratio property supported in modern browsers */
    object-fit: cover; /* Ensures the image covers the area without distortion */
    transition: filter 0.3s ease;
}

/* Hover effect: Brighten the image slightly */
.banner-link:hover .banner-image {
    filter: brightness(1.1);
}

/* Fallback for aspect-ratio if needed (padding hack) */
/*
@supports not (aspect-ratio: 3 / 1) {
    .banner-link {
        padding-bottom: 33.33%; 
        height: 0;
    }
    .banner-image {
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
    }
}
*/
