/* --- Global Reset & Foundation --- */
:root {
    --vetrom-cyan: #00f2ff;
    --vetrom-red: #ff2d55;
    --vetrom-dark: #0a0510;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
}

/* Force both html and body to be at least 100% height */
html {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--vetrom-dark);
    color: #ffffff;
    font-family: 'Segoe UI', Roboto, -apple-system, sans-serif;
    display: flex;
    flex-direction: column; /* Allows footer to be pushed to bottom */
    min-height: 100vh; /* Ensures body expands to full screen height */
    margin: 0;
    padding: 0;
    align-items: center;
    justify-content: flex-start;
    overflow-x: hidden;
}

/* --- The Vetrom Canvas (Full-Bleed Fix) --- */
.vetrom-canvas {
    position: fixed; /* Locked to the viewport */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: url('site_images/vetrom.jpg') no-repeat center center;
    background-size: cover !important; /* Forces image to stretch over gaps */
    z-index: -2;
    transition: transform 0.1s ease-out;
}

/* --- Header & Logo Configuration --- */
header {
    width: 100%;
    padding: 25px 0 0 0;
    text-align: center;
    margin-bottom: 30px;
}

.logo {
    width: 95%;
    max-width: 800px; /* Optimized for your 1115x296 artwork */
    height: auto;
    margin: 0 auto;
    display: block;
    filter: drop-shadow(0 0 15px rgba(0, 242, 255, 0.3));
    image-rendering: -webkit-optimize-contrast;
}

/* --- Gallery & Navigation Layout --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    width: 90%;
    max-width: 1200px;
    padding-bottom: 60px; /* Space before the footer */
}

.nav-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 40px;
    text-align: center;
    text-decoration: none;
    color: white;
    font-weight: bold;
    letter-spacing: 4px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.nav-card:hover {
    border-color: var(--vetrom-cyan);
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.2);
    transform: translateY(-5px);
}

/* --- Image Containers --- */
.image-container {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    margin-bottom: 15px;
    border: 1px solid var(--glass-border);
}

.gallery-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.nav-card:hover .gallery-thumb {
    transform: scale(1.1);
}

/* --- Modals & Popups --- */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 100;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: rgba(10, 5, 16, 0.95);
    border: 1px solid var(--vetrom-cyan);
    padding: 40px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

/* --- Secure Archive Footer (Static Anchor) --- */
footer {
    text-align: center;
    padding: 60px 20px; /* Generous padding to clear desktop bands */
    opacity: 0.6;
    font-family: 'Consolas', monospace;
    border-top: 1px solid rgba(0, 242, 255, 0.1);
    margin-top: auto; /* Glues footer to the very bottom */
    width: 100%;
    background: rgba(0, 0, 0, 0.4); /* Dark fill to blend into the base */
    box-sizing: border-box;
}

.footer-text {
    font-size: 0.75rem;
    line-height: 1.6;
    letter-spacing: 1px;
    color: #aaa;
}