/* Basic Resets */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: white;
    scroll-behavior: smooth;
    background-color: #1a1a1a; /* Dark background for pages without hero images */
}

body {
    /* For page transitions */
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

body.fade-in {
    opacity: 1;
}

/* Hero Section for Fullscreen Picture */
.hero-container {
    height: 100vh; /* vh = viewport height */
    width: calc(100% - 210px);
    margin-left: 210px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;

    background-image: url("images/start-wallpaper.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.hero-content h1 {
    font-size: 4rem;
    margin-top: 0;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.hero-content h2 {
    font-size: 1.5rem;
    font-weight: 400;
    margin: 0;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
    text-align: left;
}

/* Container to hold subtitle and button side-by-side */
.subtitle-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px; /* Space between the subtitle and the button */
}

.menu-button {
    padding: 10px 20px;
    font-size: 1rem;
    color: white;
    background-color: transparent;
    border: 2px solid white;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.menu-button:hover {
    background-color: white;
    color: black;
}

/* Fullscreen Menu Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 210px;
    height: 100%;
    background-color: #111;
    z-index: 100;

    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 20px;
    box-shadow: 2px 0 10px rgba(0,0,0,0.5);
}

.menu-content {
    width: 100%;
    margin-top: 60px;
}

.menu-content nav {
    display: flex;
    flex-direction: column;
}

.menu-content nav a {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    padding: 15px 10px;
    border-bottom: 1px solid #333;
    display: block;
    transition: background-color 0.2s;
}

.menu-content nav a:hover {
    background-color: #222;
    padding-left: 15px; /* Slight movement on hover */
}

.menu-content nav a.active {
    background-color: #333;
    padding-left: 15px;
    border-left: 4px solid white;
}

/* Split Layout for ICT Page */
.split-container {
    min-height: auto;
    width: calc(100% - 210px);
    margin-left: 210px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 50px 50px 50px 100px;
    box-sizing: border-box;
}

.content-wrapper {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 50px;
    width: 100%;
    max-width: 1400px;
}

.image-frame {
    flex: 0.9;
    aspect-ratio: 16 / 9;
    background-color: #333;
    border: 2px solid #555;
    overflow: hidden;
}

.image-frame.square {
    aspect-ratio: 1 / 1;
    flex: 0.6;
}

.text-side {
    flex: 1.1;
    margin-top: 0;
}

.text-side h1 {
    font-size: 3rem;
    margin-top: 0;
    margin-bottom: 1rem;
}

.text-side.large-text p {
    font-size: 1.2rem;
    line-height: 1.6;
}

/* Reduce spacing between consecutive split containers */
.split-container + .split-container {
    padding-top: 0;
    margin-top: -25px;
}

/* Footer */
.footer {
    width: calc(100% - 210px);
    margin-left: 210px;
    padding: 30px 0;
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    border-top: 1px solid #333;
}

.credits-link a {
    font-size: 0.8rem;
    color: #888;
    text-decoration: none;
}

.credits-link a:hover {
    text-decoration: underline;
}

.werk-vette-tekst {
    font-size: 1.2rem;
    line-height: 1.6;
    font-weight: bold;
}

/* Language Switcher */
.language-switch {
    display: flex;
    align-items: center;
    color: white;
    font-size: 1rem;
    margin-bottom: 20px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    margin-right: 10px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #555;
    transition: .4s;
    transition: 0.4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #2196F3;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* Language Visibility Logic */
/* Default (English) - Hide Dutch elements */
.lang-nl {
    display: none;
}

/* Dutch Mode - Hide English, Show Dutch */
body.dutch-mode .lang-en {
    display: none;
}

body.dutch-mode .lang-nl {
    display: block;
}

/* Ensure spans stay inline */
body.dutch-mode span.lang-nl {
    display: inline;
}

/* LinkedIn Section on Index */
.linkedin-container {
    position: absolute;
    bottom: 40px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    font-size: 1.2rem;
}

/* --- Mobile Responsive Styles --- */

/* Hamburger Menu Button (Hidden on Desktop) */
.hamburger-menu {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001; /* Above the menu overlay */
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 10px;
    border-radius: 5px;
}

.hamburger-menu div {
    width: 30px;
    height: 3px;
    background-color: white;
    margin: 5px 0;
    transition: 0.4s;
}

@media screen and (max-width: 768px) {
    /* Show Hamburger */
    .hamburger-menu {
        display: block;
    }

    /* Hide Menu Overlay by default (slide to left) */
    .menu-overlay {
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        width: 250px; /* Slightly wider for touch */
        box-shadow: 2px 0 10px rgba(0,0,0,0.5);
    }

    /* Show Menu when active */
    .menu-overlay.open {
        transform: translateX(0);
    }

    /* Reset Layout for Content */
    .hero-container,
    .split-container,
    .footer {
        margin-left: 0 !important;
        width: 100% !important;
    }

    /* Adjust Typography/Layout for Mobile */
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .linkedin-container {
        flex-direction: column;
        text-align: center;
        bottom: 20px;
    }
    
    .split-container {
        padding: 30px 20px;
    }

    .content-wrapper {
        flex-direction: column;
    }
    
    .image-frame, .text-side {
        flex: 1;
        width: 100%;
    }
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(20, 20, 20, 0.95);
    color: white;
    padding: 10px 0;
    z-index: 2000; /* High z-index to stay on top of everything */
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.cookie-banner p {
    margin: 0;
    font-size: 0.9rem;
}

.cookie-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0 15px;
    line-height: 1;
}

.cookie-close:hover {
    color: #ccc;
}