/* Font-face declaraties */

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/poppins-400.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/poppins-300.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/poppins-500.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/poppins-600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* Reset en basis stijlen */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background-color: #f8f9fa;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header en Navigatie */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.logo h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    color: #34495e;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #34495e;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #3498db;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #3498db;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.language-toggle {
    background: none;
    border: 2px solid #3498db;
    color: #3498db;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
}

.language-toggle:hover {
    background-color: #3498db;
    color: white;
    text-decoration: none;
}

/* Hamburger Menu Styles */
.hamburger {
    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: 100%;
    height: 3px;
    background-color: #34495e;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger-open .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger-open .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-open .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    z-index: 1000;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

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

.mobile-nav-link {
    text-decoration: none;
    color: #34495e;
    font-weight: 500;
    font-size: 1.5rem;
    transition: color 0.3s ease;
    padding: 1rem 2rem;
    border-radius: 10px;
    min-width: 200px;
    text-align: center;
}

.mobile-nav-link:hover {
    color: #3498db;
    background-color: rgba(52, 152, 219, 0.1);
}

.language-toggle-mobile {
    background: none;
    border: 2px solid #3498db;
    color: #3498db;
    padding: 1rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
    min-width: 200px;
    text-align: center;
}

.language-toggle-mobile:hover {
    background-color: #3498db;
    color: white;
    text-decoration: none;
}

/* Prevent body scroll when menu is open */
body.menu-open {
    overflow: hidden;
}

/* Hero Section */
.hero {
    height: 50vh;
    position: relative;
    overflow: hidden;
    /* Performance optimizations */
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.hero-image {
    position: relative;
    height: 100%;
    width: 100%;
}

.hero-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
    /* Performance optimizations */
    will-change: opacity, filter;
    transform: translateZ(0);
    backface-visibility: hidden;
    /* Image rendering optimizations */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Low-resolution image styles */
.hero-img-low {
    opacity: 1;
    filter: brightness(0.7) blur(2px);
    transition: filter 0.3s ease-out;
}

.hero-img-low.loaded {
    filter: brightness(0.7) blur(0px);
}

/* High-resolution image styles */
.hero-img-high {
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.hero-img-high.loaded {
    opacity: 1;
}


.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(52, 73, 94, 0.3), rgba(52, 152, 219, 0.3));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-content {
    color: white;
    max-width: 800px;
    padding: 2rem;
}

.hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: 4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 300;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Secties */
.section {
    padding: 5rem 0;
}

.section-alt {
    background-color: #ecf0f1;
}

.section-title {
    font-family: 'Poppins', sans-serif;
    text-align: center;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 3rem;
    color: #2c3e50;
    letter-spacing: 1px;
}

/* Content Grid */
.content-grid {
    display: grid;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.content-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #34495e;
}

/* Voordelen Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.benefit-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.benefit-icon {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.benefit-svg {
    width: 64px;
    height: 64px;
    transition: transform 0.3s ease;
}

.benefit-card:hover .benefit-svg {
    transform: scale(1.1);
}

.benefit-card h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.benefit-card p {
    color: #7f8c8d;
    line-height: 1.6;
}

/* Footer */
.footer {
    background-color: #2c3e50;
    color: white;
    padding: 1rem 0;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-content p {
    margin: 0;
    opacity: 0.8;
    font-size: 0.9rem;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        padding: 0.75rem 1rem;
    }
    
    /* Show hamburger menu, hide desktop navigation */
    .hamburger {
        display: flex;
    }
    
    .desktop-nav {
        display: none;
    }
    
    .mobile-nav {
        display: flex;
    }
    
    /* Reduce header height on mobile */
    .header {
        min-height: 60px;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    /* Full-screen hero on mobile for maximum backdrop visibility */
    .hero {
        height: 100vh;
        margin-top: -60px; /* Offset the fixed header */
        padding-top: 60px; /* Add padding to account for header */
    }
    
    /* Optimize backdrop image for mobile */
    .hero-img {
        object-position: center center;
        filter: brightness(0.6); /* Slightly darker for better text contrast */
    }
    
    /* Adjust hero content positioning */
    .hero-content {
        padding: 1rem;
        margin-top: 2rem; /* Add space from header */
    }
    
    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .benefit-card {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0.5rem 1rem;
    }
    
    .logo h1 {
        font-size: 1.3rem;
    }
    
    .hamburger {
        width: 25px;
        height: 25px;
    }
    
    .hamburger-line {
        height: 2px;
    }
    
    .mobile-nav-link {
        font-size: 1.3rem;
        padding: 0.8rem 1.5rem;
        min-width: 180px;
    }
    
    .language-toggle-mobile {
        padding: 0.8rem 1.5rem;
        min-width: 180px;
    }
    
    /* Maintain full-screen hero on small mobile devices */
    .hero {
        height: 100vh;
        margin-top: -50px; /* Smaller offset for smaller header */
        padding-top: 50px;
    }
    
    /* Further optimize backdrop for small screens */
    .hero-img {
        object-position: center 30%; /* Focus on upper portion of image */
        filter: brightness(0.5); /* Darker for better text readability */
    }
    
    .hero-content {
        padding: 0.5rem;
        margin-top: 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .container {
        padding: 0 15px;
    }
}

/* Landscape orientation optimization for mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        height: 100vh;
        margin-top: -50px;
        padding-top: 50px;
    }
    
    .hero-content {
        margin-top: 0.5rem;
        padding: 0.5rem;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
}

/* Very small screens (320px and below) */
@media (max-width: 320px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .hero-content {
        padding: 0.25rem;
    }
}
