/* === HEADER LAYOUT EN STYLING === */
/* Algemene header styling */
header {
    border-radius: 0;
    margin: 0;
    padding: 16px 0; /* Remove horizontal padding from header itself */
    background-color: #0c113e;
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.1), 0 1px 2px rgba(16, 24, 40, 0.06);
    font-family: "Inter", sans-serif;
    position: fixed;
    top: 0;
    width: 100vw;
    margin-left: calc(-50vw + 50%); /* Ensure full width even within containers */
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 5px solid #fbc535; /* Yellow accent line at bottom */
}

/* Header container layout */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px; /* Match your container max-width */
    margin: 0 auto; /* Center the content */
    padding: 0 16px; /* Match the standard container padding */
    position: relative; /* For absolute positioning of nav */
}

/* Logo container */
.logo-container {
    flex: 0 0 auto; /* Don't take equal space, just what's needed */
    display: flex;
    justify-content: flex-start; /* Align logo to the left */
    align-items: center; /* Center the logo vertically */
    margin: 0; /* Remove any extra margin around logo */
    padding: 0; /* Remove any extra padding around logo */
}

.logo-container .logo {
    height: 60px; /* Set a fixed height */
    width: auto;
    margin: 0; /* Remove any margin from the logo image */
    padding: 0; /* Remove any padding from the logo image */
    vertical-align: middle; /* Ensure proper vertical alignment */
}

/* Navigation container */
.nav-container {
    position: absolute; /* Position absolutely to center it */
    left: 50%; /* Move to center */
    transform: translateX(-50%); /* Center perfectly */
    display: flex;
    justify-content: center;
    align-items: center; /* Center the navigation vertically */
}

/* Social media container */
.social-container {
    flex: 0 0 auto; /* Take only needed space */
    display: flex;
    justify-content: flex-end; /* Align social icons to the right */
    align-items: center; /* Center the social icons vertically */
    gap: 12px;
}

.social-container a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px; /* Set fixed width for consistent sizing */
    height: 32px; /* Set fixed height for consistent sizing */
    border-radius: 50%; /* Make circular buttons */
    background-color: rgba(255, 255, 255, 0.1); /* Light transparent background */
    color: white; /* White icon color */
    text-decoration: none; /* Remove underline from links */
    transition: background-color 0.2s, transform 0.2s;
}

.social-container a:hover {
    background-color: rgba(255, 255, 255, 0.2); /* Slightly darker on hover */
    transform: translateY(-2px); /* Slight lift effect on hover */
}

.social-container i {
    font-size: 16px; /* Icon size */
}

/* Titel van de site */
header h1 {
    font-size: 32px;
    font-weight: 600;
    color: rgb(24, 24, 27); /* donkergrijs */
    margin: 0;
}

/* Navigatie styling */
.desktop-nav {
    display: flex;
    gap: 24px;
}

/* Navigatielinks */
/* EDIT NAVIGATION FONT HERE: Change 'Poppins' to your preferred font family */
.desktop-nav a {
    text-decoration: none;
    background-color: rgba(255, 255, 255, 0.15); /* Slightly more visible background */
    color: white;
    font-size: 16px;
    font-weight: 500;
    font-family: 'Poppins', sans-serif; /* Navigation font - edit here to change */
    padding: 10px 20px; /* Wider padding to accommodate "Over Ons" */
    border-radius: 25px; /* Rounded but not too round */
    transition: all 0.3s ease; /* Smooth transitions */
    border: 1px solid rgba(255, 255, 255, 0.2); /* Subtle border */
    white-space: nowrap; /* Prevent text wrapping */
}

.desktop-nav a:hover {
    background-color: rgba(255, 255, 255, 0.9); /* Clean white background on hover */
    color: #39897d; /* Use the header color for text */
    transform: translateY(-1px); /* Subtle lift effect */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); /* Add shadow on hover */
}

/* Titel styling */
h1 {
    color: rgb(0, 0, 0); /* Wit voor contrast op blauwe achtergrond */
    font-size: 1.5em; /* Consistent met originele header styling */
    font-weight: bold;
    flex-shrink: 0; /* Voorkomt dat de titel inklapt bij kleine schermen */
    font-family: 'Poppins', serif;
    padding: 10px 10px; ;
    margin: 0;
}

/* === MOBILE NAVIGATION === */

/* Hamburger Menu Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background-color: white;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Hamburger Animation */
.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 60%; /* Increased from 50% for better button fit */
    max-width: 320px; /* Increased maximum width */
    height: 100vh;
    background-color: rgba(12, 17, 62, 0.95);
    backdrop-filter: blur(10px);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1000;
    padding-top: 80px; /* Space for header */
    overflow-y: auto; /* Allow scrolling if content is too tall */
}

.mobile-nav-overlay.active {
    transform: translateX(0);
}

/* Mobile Navigation Backdrop */
.mobile-nav-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-nav-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch; /* Changed to stretch to fit container width */
    gap: 16px; /* Slightly reduced gap */
    padding: 20px 15px; /* Adjusted padding for better spacing */
    margin: 0; /* Reset margin */
    width: 100%; /* Use full width of container */
    box-sizing: border-box;
}

.mobile-nav a {
    color: white;
    text-decoration: none;
    font-size: 16px; /* Consistent font size */
    font-weight: 400;
    font-family: 'Poppins', sans-serif;
    padding: 12px 16px; /* Better padding for readability */
    border-radius: 8px; /* Slightly larger border radius */
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    width: 100%; /* Use full available width */
    text-align: center;
    box-sizing: border-box;
    min-height: 44px; /* Ensure minimum touch target size */
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fbc535;
    transform: translateY(-1px);
    border-color: rgba(251, 197, 53, 0.3);
}

.mobile-social-links {
    display: flex;
    gap: 16px; /* Better spacing between social icons */
    margin-top: 20px; /* More spacing from navigation */
    padding-top: 20px; /* More padding */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    justify-content: center;
}

.mobile-social-links a {
    width: 44px; /* Larger touch target */
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.mobile-social-links a:hover {
    background-color: rgba(251, 197, 53, 0.1);
    border-color: rgba(251, 197, 53, 0.3);
    transform: scale(1.05); /* Add slight scale effect */
}

.mobile-social-links a i {
    font-size: 16px; /* Larger icon size */
    color: white;
}

/* === RESPONSIVE DESIGN === */

/* Tablet and Mobile Styles */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-container {
        display: none;
    }
    
    .social-container {
        display: none;
    }
    
    .header-container {
        justify-content: space-between;
        padding: 0 20px;
    }
    
    .logo-container .logo {
        height: 50px;
    }
    
    header {
        padding: 12px 0;
    }
}

/* Small Mobile Styles */
@media (max-width: 480px) {
    .header-container {
        padding: 0 15px;
    }
    
    .logo-container .logo {
        height: 45px;
    }
    
    .mobile-nav-overlay {
        width: 70%; /* Increase width for very small screens */
        max-width: 280px; /* Maintain reasonable maximum */
    }
    
    .mobile-nav {
        padding: 20px 12px; /* Adjust padding for smaller screens */
        gap: 14px; /* Slightly reduce gap */
    }
    
    .mobile-nav a {
        font-size: 15px; /* Slightly smaller font */
        padding: 10px 12px; /* Reduce padding to fit better */
        min-height: 42px; /* Maintain touch target size */
    }
    
    .mobile-social-links {
        gap: 14px; /* Adjust spacing */
        margin-top: 18px;
        padding-top: 18px;
    }
    
    .mobile-social-links a {
        width: 40px; /* Slightly smaller for very small screens */
        height: 40px;
    }
    
    .mobile-social-links a i {
        font-size: 15px; /* Adjust icon size */
    }
    
    .mobile-menu-toggle {
        width: 25px;
        height: 25px;
    }
    
    .hamburger-line {
        width: 20px;
        height: 2px;
    }
}

/* Extra Small Mobile Styles - for very narrow screens */
@media (max-width: 360px) {
    .mobile-nav-overlay {
        width: 75%; /* Even wider for very small screens */
        max-width: 270px;
    }
    
    .mobile-nav {
        padding: 18px 10px; /* More compact padding */
        gap: 12px; /* Smaller gap */
    }
    
    .mobile-nav a {
        font-size: 14px; /* Smaller font for very small screens */
        padding: 9px 10px; /* More compact padding */
        min-height: 40px; /* Smaller but still touchable */
    }
    
    .mobile-social-links a {
        width: 36px; /* Smaller social icons */
        height: 36px;
    }
    
    .mobile-social-links a i {
        font-size: 14px; /* Smaller icons */
    }
}