/*
* This section contains styles specifically for the Home Page (home.html).
* MODIFIED: Page is now unscrollable.
*/

html, body {
    /* KEY CHANGE: Ensure the body and html take up the full viewport height */
    height: 100%;
    /* KEY CHANGE: Hide scrollbars */
    overflow: hidden; 
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #000;
    color: #fff;
    margin: 0; 
    overflow-x: hidden; 
    /* The main overflow control is now on the html/body tag, but keeping this for consistency */
    overflow-y: hidden; 
    display: flex; 
    flex-direction: column; 
    
    /* --- BACKGROUND IMAGE STYLES --- */
    background-image: url('img/gunaarbeidz-bg-black.png'); 
    background-size: cover; 
    background-position: center center; 
    background-repeat: no-repeat; 
    background-attachment: fixed; 
    /* ---------------------------------- */

    /* Default opacity to 0 and apply transition directly to body for page transitions */
    opacity: 0; 
    transition: opacity 1s ease-in-out; 
}

/* --- Shared Header & Footer Styles --- */

.page-content-wrapper {
    width: 100%;
    /* KEY CHANGE: Make wrapper take full viewport height */
    height: 100vh; 
    display: flex;
    flex-direction: column;
}

/* Visual Spacer is now redundant for scrolling but keeps the background centered/visible */
.visual-spacer {
    /* KEY CHANGE: This spacer now takes up the remaining height of the viewport */
    flex-grow: 1; 
    min-height: 1px; /* Ensure it collapses if needed but fills space */
    width: 100%;
    /* Height calculation is removed, using flex-grow: 1 instead to fill the space */
    height: auto; 
}

.header-about-page {
    background-color: rgba(0, 0, 0, 0.7); 
    position: relative; 
    top: 0;
    left: 0;
    right: 0;
    z-index: 10; 
    width: 100%;
    border-bottom: none; 
    flex-shrink: 0; 
    height: 60px; 
    box-sizing: border-box;
    display: flex; 
    align-items: center; 
    justify-content: center; 
}

.header-about-page .container {
    max-width: none; 
    width: 100%; 
    margin: 0; 
    padding: 0 1rem; 
    height: 100%; 
    display: flex;
    justify-content: center; 
    align-items: center;
}


.nav-links-left {
    display: flex;
    align-items: stretch; 
    gap: 1.5rem; 
    justify-content: center; 
    width: 100%; 
}

.nav-item {
    color: #fff; 
    text-decoration: none;
    font-weight: bold;
    font-family: "Impact", sans-serif; 
    padding: 1rem 1.5rem; 
    display: flex; 
    align-items: center; 
    height: 100%; 
    transition: all 0.3s ease; 
    border-radius: 0; 
    text-transform: uppercase; 
    font-size: 1.3rem; 
    text-shadow: none; 
    background-color: transparent; 
    border: 1px solid transparent; 
}

.nav-item:hover {
    color: #000; 
    background-color: #fff; 
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.8); 
    transform: translateY(-2px); 
    border: 1px solid #fff; 
}

/* Main content section for Home Page */
.main-content-home-page {
    /* KEY CHANGE: Allow main to grow and take up the space between header and footer */
    flex-grow: 1; 
    position: relative;
    width: 100%;
    padding: 0; 
    box-sizing: border-box; 
    display: flex;
    flex-direction: column; 
    justify-content: flex-start; 
    align-items: center; 
}

/* Footer for About Page (copied for consistency) */
.footer-about-page {
    background-color: #000;
    color: #fff;
    padding: 1rem 1.5rem; 
    text-align: center;
    position: relative; 
    bottom: 0; 
    left: 0;
    width: 100%;
    box-sizing: border-box;
    flex-shrink: 0; 
    z-index: 10; 
}

.copyright-about-page {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: bold;
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.5);
}

/* --- Page Transition Classes (FOR ALL PAGES) --- */
body.page-active { 
    opacity: 1;
}

body.page-fade-out {
    opacity: 0;
}

/* Responsive adjustments for header on smaller screens */
@media (max-width: 768px) {
    /* KEY CHANGE: Ensure the visual spacer still collapses on mobile */
    .visual-spacer {
        height: 0;
        min-height: 0; 
        flex-grow: 0;
    }
    
    .header-about-page .container {
        flex-direction: column; 
        height: auto; 
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }

    .nav-links-left {
        width: 100%;
        justify-content: center; 
        margin-bottom: 0.5rem; 
        gap: 0.5rem;
    }

    .nav-item {
        padding: 0.5rem 0.5rem; 
        font-size: 1rem;
    }
}