/* 
   MMMetaal 
   CSS Styles
*/

/* ===== PRELOADER STYLES ===== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-red);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.8s ease-out, visibility 0.8s ease-out;
}

.preloader.garage-door-reveal {
    animation: garageDoorReveal 0.8s ease-out forwards;
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

@keyframes garageDoorReveal {
    0% { 
        clip-path: inset(0 0 0 0); 
    }
    100% { 
        clip-path: inset(0 0 100% 0); 
    }
}

.preloader-content {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.loader {
    width: 120px;
    height: 20px;
    transform: skewX(-45deg);
    background: 
        linear-gradient(var(--primary-red) 0 0) left -30px top 0/30px 20px no-repeat 
        var(--light-gray);
    animation: l3 1s infinite linear;
}

@keyframes l3 {
    100% { 
        background-position: right -30px top 0; 
    }
}

/* Accessibility: Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .loader {
        animation: none;
        background-position: right -30px top 0;
    }
    
    .preloader {
        transition: opacity 0.3s ease-out, visibility 0.3s ease-out;
    }
    
    .preloader.garage-door-reveal {
        animation: garageDoorRevealReduced 0.3s ease-out forwards;
    }
    
    @keyframes garageDoorRevealReduced {
        0% { 
            clip-path: inset(0 0 0 0); 
        }
        100% { 
            clip-path: inset(0 0 100% 0); 
        }
    }
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
    .loader {
        width: 100px;
        height: 16px;
    }
}

@media (max-width: 480px) {
    .loader {
        width: 80px;
        height: 14px;
    }
}

/* ===== RESET & GENERAL STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

:root {
    /* Colors from Figma */
    --primary-red: #FA514A;
    --primary-red-dark: #C62822;
    --dark-bg: #202020;
    --black: #0C0404;
    --white: #F0F0F0;
    --light-gray: #D5D8DD;
    --medium-gray: #D0D0D0;
    --dark-gray: #505050;
    --text-gray: #818181;
    --footer-text: #828282;
    --footer-light-text: #EDEDED;
    --footer-title: #E3E3E3;
}

body {
    font-family: 'Host Grotesk', 'Inter', sans-serif;
    line-height: 1.5;
    color: var(--black);
    background-color: var(--white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

.content-wrapper {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 24px;  
    box-sizing: border-box; 
}

/* ===== TYPOGRAPHY ===== */
h1 {
    font-size: 69px;
    font-weight: 600;
    line-height: 1.107;
    text-align: center;
    color: var(--white);
    max-width: 958px;
    margin: 0 auto;
}

h2 {
    font-size: 59px;
    font-weight: 600;
    line-height: 1.1;
}

h3 {
    font-size: 28px;
    font-weight: 400;
    line-height: 1.1;
}

h4 {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.1;
    text-transform: uppercase;
}

p {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.1;
}

.section-description {
    font-size: 21px;
    line-height: 1.4;
    max-width: 45ch;
}

/* ===== HEADER SECTION ===== */

/* Text reveal animation styles */
[data-split="heading"],
[data-split="description"] {
    visibility: hidden; /* Hide elements initially to prevent FOUC */
    -webkit-text-rendering: optimizeSpeed; 
    text-rendering: optimizeSpeed;
    -webkit-transform: translateZ(0); 
    font-kerning: none;
}

/* Make sure the elements do not disappear in the designer or editor */
.wf-design-mode [data-split="heading"],
.wf-design-mode [data-split="description"],
.w-editor [data-split="heading"],
.w-editor [data-split="description"] {
    visibility: visible !important;
}

/* Line container styling */
.line {
    overflow: hidden; /* Hide overflow for the mask effect */
    display: block;
}

/* Word styling */
.word {
    display: inline-block;
}

/* Letter styling */
.letter {
    display: inline-block;
}

.header-top h1 {
    position: relative;
    z-index: 10;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Add subtle text shadow for better readability */
}

.main-header {
    background: linear-gradient(to bottom, var(--primary-red), var(--primary-red-dark));
    padding: 20px 40px 0px;
    color: var(--white);
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    user-select: none;
}

/* Background decorative elements */
.vormtaal-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.vormtaal-icon {
    position: absolute;
    opacity: 0.3;
    object-fit: contain;
}

.vormtaal-icon-1 {
    width: 322px;
    height: auto;
    top: 294px;
    left: 46px;
}

.vormtaal-icon-2 {
    width: 120px;
    height: auto;
    top: 748px;
    left: 21px;
}

.vormtaal-icon-3 {
    width: 198px;
    height: auto;
    top: 60px;
    left: 679px;
}

.vormtaal-icon-4 {
    width: 327px;
    height: auto;
    top: 365px;
    left: 840px;
}

.vormtaal-icon-5 {
    width: 170px;
    height: auto;
    top: 578px;
    left: 1244px;
}

/* Navigation */
.header-nav {
    background-color: var(--black);
    border-radius: 8px;
    padding: 16px 24px;
    max-width: 1360px;
    width:100%;
    position: relative;
    z-index: 10;
    margin-bottom: 20px;
}

.nav-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    width: 100%;
}

.nav-left {
    display: flex;
    align-items: center;
    justify-self: start;
}

.logo-wrapper {
    display: flex;
    align-items: center;
}

.logo-vector {
    width: 160px;
    height: 44px;
    object-fit: contain;
    margin-left: -10px;
}

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

.nav-item {
    padding: 6px 12px;
    color: #EAEAEA;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.107;
    text-align: center;
    white-space: nowrap;
    font-family: 'Host Grotesk', sans-serif;
    position: relative;
    display: inline-block;
}

/* Underline animation for nav-item */
.nav-item::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 50%;
    background-color: #EAEAEA;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.nav-item:hover::after {
    width: calc(100% - 24px); /* Adjust for padding */
}

.nav-right {
    display: flex;
    align-items: flex-end;
    flex: 1;
    justify-content: flex-end;
}

.nav-buttons {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 16px;
    width: 100%;
}

.language-selector {
    display: flex;
    align-items: center;
    padding: 6px 8px;
    border: 1px solid var(--medium-gray);
    border-radius: 4px;
    gap: 10px;
    position: relative;
    cursor: pointer;
}

.language-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--black);
    border: 1px solid var(--medium-gray);
    border-radius: 4px;
    margin-top: 5px;
    display: none;
    z-index: 100;
    padding: 5px 0;
}

.language-dropdown.active {
    display: block;
}

.language-option {
    display: block;
    padding: 4px 8px;
    color: var(--medium-gray);
    font-size: 16px;
    text-align: center;
    transition: background-color 0.3s ease;
    width: 100%;
}

.language-option:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.language-text {
    color: var(--medium-gray);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.107;
    text-align: center;
}

.language-dash {
    width: 0px;
    height: 11px;
    border-left: 1px solid var(--medium-gray);
}

.chevron {
    padding: 5px 2px;
    width: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 32px;
    background-color: var(--medium-gray);
    color: var(--black);
    border-radius: 4px;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.107;
    border: 1px solid var(--medium-gray);
    transition: all 0.3s ease;
}

.contact-button:hover {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
    color: var(--white);
    transform: translateY(-2px);
}

/* Header Content */
.header-content {
    flex: 1;
    width: 100%;
    position: relative;
    z-index: 5;
    overflow: hidden;
}

.header-top {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 20px;
    width: 100%;
    position: absolute;
    top: 35%; /* Moved down to be more centered over the image */
    left: 0;
    z-index: 10; /* Ensure text is above the image */
}

.header-bottom {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Figure styles for the iron shape */
.header-bottom figure {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-bottom-image {
    width: auto;
    max-width: 90vw; /* Increased from 85vw to 90vw */
    max-height: 80vh; /* Increased from 70vh to 80vh */
    height: auto;
    object-fit: contain;
    margin: 0 auto;
    display: block;
    z-index: 2;
}

/* Desktop-specific adjustments */
@media (min-width: 1200px) {
    .header-top {
        top: 40%; /* Moved down to be more centered over the image on desktop */
    }
    
    .header-bottom-image {
        max-height: 85vh; /* Even larger on desktop */
    }
}

/* Responsive adjustments for the hero image */
@media (max-width: 768px) {
    .header-bottom-image {
        max-width: 90vw;
        max-height: 50vh;
    }
}

@media (max-width: 480px) {
    .header-bottom-image {
        max-width: 95vw;
        max-height: 40vh;
    }
}

.arrow-down-indicator {
    position: absolute; /* Kept as absolute */
    bottom: 20px; /* Reduced from 61px to ensure visibility on smaller screens */
    right: 20px; /* Reduced from 61px to ensure visibility on smaller screens */
    width: 48px;
    height: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--light-gray);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10; /* Kept z-index to ensure it stays above other elements within the hero section */
}

.arrow-down-indicator:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

/* ===== PRODUCTS SECTION ===== */
.products-section {
    background-color: var(--light-gray);
    padding: 192px 0;
    overflow: hidden;
}

.section-header {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-bottom: 80px;
}

.pill-header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.pill-dot {
    width: 8px;
    height: 8px;
    background-color: var(--black);
    border-radius: 50%;
}

.contact-section .pill-dot {
    background-color: var(--light-gray);
    border-radius: 0;
}

.pill-text {
    background-color: var(--primary-red);
    padding: 6px 12px;
    border-radius: 4px;
    color: var(--black);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.contact-pill {
    background-color: var(--light-gray);
    color: var(--dark-gray);
}

.section-title {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.title-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 120px;
}

.title-container h2 {
    flex: 1;
}

.title-container .section-description {
    flex: 1;
    padding-top: 10px;
}

.card-wrapper {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    justify-content: space-between;
    margin-bottom: 40px;
}

.product-card {
    width: calc(25% - 6px);
    height: 384px;
    background-color: var(--dark-bg);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    border: 1px solid var(--dark-bg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-image {
    width: 100%;
    height: 80px;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 16px;
}

.card-image img, .card-image object {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.card-icon {
    width: 80px;
    height: 80px;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
    opacity: 0.9;
}

.product-card:hover .card-icon {
    transform: scale(1.1);
}

.card-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.card-header {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.card-header h3 {
    color: var(--light-gray);
    text-align: left;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    padding: 4px 12px;
    border: 1px solid var(--medium-gray);
    border-radius: 4px;
    font-size: 8px;
    color: var(--medium-gray);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.tag:hover {
    background-color: var(--medium-gray);
    color: var(--dark-bg);
}

.card-divider {
    width: 100%;
    height: 1px;
    background-color: var(--text-gray);
}

.card-description {
    color: var(--light-gray);
    font-size: 14px;
}

/* Services Bottom Content */
.services-bottom-content {
    display: flex;
    margin-top: 192px;
    margin-bottom: 80px;
    padding-left: 25%;
}

.services-bottom-text {
    max-width: 800px;
}

.services-bottom-text h3 {
    font-size: 32px;
    font-weight: 500;
    margin-bottom: 4px;
    color: var(--black);
    line-height: 0.977;
    text-indent: 160px;
    /* white-space: nowrap;  de nowrap kan eruit wanneer er een paragraph indent in de h3 komt. */ 
}



.services-bottom-text h3:first-child {
    margin-left: 90px;
}

.services-bottom-text p {
    font-size: 16px;
    line-height: 1.5;
    color: var(--dark-gray);
    margin-bottom: 24px;
}

.bottom-text-small {
    font-size: 14px !important;
    color: var(--text-gray) !important;
    margin-top: 24px !important;
    margin-bottom: 32px !important;
    line-height: 1.4 !important;
}

.contact-btn {
    display: inline-block;
    padding: 8px 32px;
    background-color: var(--dark-bg);
    border-radius: 4px;
    color: var(--white);
    font-size: 16px;
    font-weight: 400;
    text-align: center;
    transition: all 0.3s ease;
}

.contact-btn:hover {
    background-color: var(--primary-red);
    transform: translateY(-2px);
}

/* Block Row Image */
.block-row {
    width: 100vw;
    margin: 0;
    padding: 0;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.block-row img {
    width: 100%;
    height: auto;
    display: block;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    background-color: var(--primary-red);
    padding: 192px 0;
}

.contact-container {
    display: flex;
    margin-top: 64px;
    border-radius: 4px;
    overflow: hidden;
}

.contact-info {
    flex: 1;
    background-color: var(--light-gray);
    padding: 48px;
    display: flex;
    flex-direction: column;
    position: relative;
    min-height: 600px;
}

.info-columns {
    display: flex;
    flex-direction: column;
    gap: 48px;
    width: 100%;
    z-index: 2;
}

.info-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    width: 100%;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.info-item h4 {
    color: var(--black);
    text-transform: uppercase;
    letter-spacing: 0.05rem;
    font-size: 14px;
    font-weight: 500;
}

.info-item p {
    color: #6e6e6e;
    font-size: 16px;
    font-weight: 400;
}

.contact-map {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 350px;
    z-index: 1;
    overflow: hidden;
}

.contact-map img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.contact-form-container {
    flex: 1;
    background-color: var(--dark-bg);
    padding: 48px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    opacity: 1;
}

.contact-form-container h3 {
    color: var(--light-gray);
    font-size: 32px;
    line-height: 1.2;
    margin-bottom: 16px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.form-row {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    width: 100%;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0px;
    flex: 1;
}

.form-group.full-width {
    width: 100%;
}

.form-group label {
    color: var(--light-gray);
    font-size: 14px;
    letter-spacing: 0.05rem;
    font-weight: 500;
    text-transform: uppercase;
}

.form-group input, .form-group textarea {
    background-color: transparent;
    border: none;
    border-bottom: 1px solid var(--light-gray);
    padding: 12px 0;
    color: var(--light-gray);
    font-size: 16px;
    outline: none;
    width: 100%;
    margin-bottom: 0px;
}

.form-group textarea {
    min-height: 80px;
    resize: vertical;
}

.form-footer {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.form-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    border: 1px solid var(--light-gray);
    border-radius: 4px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    outline: none;
    cursor: pointer;
    position: relative;
    margin-top: 0px;
}

.form-checkbox input[type="checkbox"]:checked::before {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--light-gray);
}

.form-checkbox label {
    color: var(--light-gray);
    font-size: 12px;
    line-height: 1.4;
    font-weight: 300;
}

.form-checkbox a {
    color: var(--light-gray);
    text-decoration: underline;
    transition: opacity 0.3s ease;
}

.form-checkbox a:hover {
    opacity: 0.8;
}

.submit-button {
    align-self: flex-start;
    padding: 8px 32px;
    background-color: transparent;
    border: 1px solid var(--light-gray);
    border-radius: 4px;
    color: var(--light-gray);
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: capitalize;
}

.submit-button:hover {
    background-color: var(--light-gray);
    color: var(--dark-bg);
}

/* ===== FOOTER ===== */
.main-footer {
    background-color: var(--dark-bg);
    padding: 32px 40px 0 40px;
    position: relative;
    overflow: hidden;
}

.footer-image {
    width: 100%;
    height: 522px;
    overflow: hidden;
    margin-top: 64px;
}

.footer-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.logo-wrap-footer {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: flex-start;
    margin-bottom: 32px;
}

.footer-logo {
    width: 187px;
    height: 45px;
}

.footer-content {
    max-width: 1360px;
    margin: 0 auto;
}

.footer-details {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 32px;
}

.contact-details {
    width: 676px;
}

.text-section {
    width: 676px;
}

.footer-divider {
    width: 100%;
    height: 1px;
    background-color: #757575;
}

.footer-contact-grid {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 280px;
}

.footer-item {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.footer-item h4 {
    color: var(--footer-title);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.05rem;
    text-transform: uppercase;
}

.footer-item p {
    color: var(--footer-text);
    font-size: 16px;
    font-weight: 400;
}

.footer-text-container {
    display: flex;
    justify-content: space-between;
    gap: 24px;
}

.footer-text {
    width: 334px;
}

.footer-text p {
    color: var(--footer-light-text);
    font-size: 14px;
    font-weight: 300;
    line-height: 1.22;
    letter-spacing: 0.06em;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 133px;
}

.footer-links a {
    color: var(--footer-text);
    font-size: 14px;
    font-weight: 300;
}

.copyright {
    color: var(--footer-text);
    font-size: 14px;
    font-weight: 500;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 1200px) {
    .main-header {
        height: 100vh;
        min-height: 800px;
        padding: 20px;
    }
    
    .header-nav {
        width: 100%;
        max-width: 1360px;
    }
    
    .nav-wrapper {
        gap: 200px;
    }
    
    .content-wrapper {
        padding: 0 20px;
    }
    
    h1 {
        font-size: 50px;
    }
    
    h2 {
        font-size: 40px;
    }
    
    .contact-map {
        display: none;
    }
    
    .contact-container {
        flex-direction: column;
    }
    
    .title-container {
        flex-direction: column;
    }
    
    .card-wrapper {
        flex-wrap: wrap;
    }
    
    .product-card {
        width: calc(50% - 4px);
        margin-bottom: 8px;
    }
    
    .vormtaal-icons {
        display: none;
    }
    
    .services-bottom-content {
        padding-left: 15%;
    }
    
    .contact-details, .text-section {
        width: 100%;
    }
    
    .footer-text {
        width: 100%;
        max-width: 100%;
    }
    
    .footer-links {
        width: 100%;
        max-width: 200px;
    }
}

/* Tablet specific styles */
@media (max-width: 992px) and (min-width: 769px) {
    .main-header {
        height: 100vh;
        display: flex;
        flex-direction: column;
        padding: 20px;
        box-sizing: border-box;
    }
 
    .header-content {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: calc(100% - 80px); /* Adjust for nav and padding */
        width: 100%;
        min-height: 0; /* Ensures flex items can shrink below their minimum content size */
}

    .header-bottom {
        width: 100%;
        position: relative;
        display: flex;
        align-items: flex-end;
        justify-content: center;
        margin-top: auto;
        flex-shrink: 0; /* Prevents shrinking */
    }
    
    .header-bottom-image {
        width: 100%;
        max-width: 80vw;
        height: auto;
        object-fit: contain;
        margin: 0 auto;
        display: block;
        z-index: 2;
    }

    .header-nav {
        width: 100%;
        max-width: 100%;
        padding: 16px 20px;
    }
    
    .content-wrapper {
        padding: 0 20px;
        max-width: 100%;
    }
    
    .nav-wrapper {
        gap: 20px;
    }
    
    .nav-center {
        flex: 1;
        display: flex;
        justify-content: center;
    }
    
    .nav-item {
        font-size: 14px;
        padding: 6px 8px;
    }
    
    .contact-button {
        padding: 6px 16px;
        font-size: 14px;
    }
    
    .language-selector {
        padding: 6px 8px;
    }
    
    .language-text {
        font-size: 14px;
    }
    
    .products-section {
        padding: 120px 0;
    }
    
    .contact-section {
        padding: 120px 0;
    }
    
    .main-footer {
        padding: 32px 20px 0 20px;
    }
    
    .footer-details {
        flex-direction: column;
        gap: 40px;
    }
    
    .contact-details, .text-section {
        width: 100%;
    }
    
    .footer-contact-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 40px;
        width: 100%;
    }
    
    .footer-column {
        width: 100%;
    }
    
    .footer-text-container {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }
    
    .footer-text {
        width: 100%;
        max-width: 100%;
    }
    
    .footer-links {
        width: 100%;
        max-width: 100%;
    }
    
    .services-bottom-content {
        padding-left: 10%;
        padding-right: 10%;
    }
    
    .services-bottom-text {
        max-width: 100%;
    }
    
    .services-bottom-text h3 {
        font-size: 28px;
        text-indent: 80px;
    }
    
    .services-bottom-text h3:first-child {
        margin-left: 40px;
    }
}

@media (max-width: 768px) {
    .main-header {
        padding: 16px;
        height: 75vh;
        min-height: 450px;
        display: flex;
        flex-direction: column;
    }
    
    /* Reduce spacing between sections on mobile */
    .services-bottom-content {
        margin-top: 80px;
        margin-bottom: 40px;
    }
    
    .products-section {
        padding: 80px 0;
    }
    
    .contact-section {
        padding: 80px 0;
    }
    
    .header-nav {
        width: 100%;
        margin-bottom: 10px;
        padding: 12px 16px;
    }
    
    h1 {
        font-size: 32px; /* Slightly smaller for better fit */
    }
    
    h2 {
        font-size: 30px;
    }
    
    h3 {
        font-size: 24px;
    }
    
    .section-description {
        font-size: 16px;
    }
    
    /* Remove line breaks on mobile for better text flow */
    .section-description br,
    .services-bottom-text h3 br,
    .bottom-text-small br {
        display: none;
    }
    
    .services-bottom-text h3 {
        white-space: normal;
        line-height: 1.3;
        margin-bottom: 8px;
    }
    
    .services-bottom-text h3:last-of-type {
        margin-bottom: 16px;
    }
    
    .bottom-text-small {
        line-height: 1.6 !important;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .footer-details {
        flex-direction: column;
    }
    
    .contact-details, .text-section {
        width: 100%;
    }
    
    .footer-address-kvk {
        flex-direction: column;
    }
    
    .footer-text-container {
        flex-direction: column;
        gap: 24px;
    }
    
    .footer-text, .footer-links {
        width: 100%;
    }
    
    /* Mobile footer spacing improvements */
    .main-footer {
        padding: 24px 20px 0 20px;
    }
    
    .footer-section {
        gap: 32px;
        margin-bottom: 40px;
    }
    
    .footer-contact-grid {
        gap: 32px;
    }
    
    .footer-column {
        gap: 32px;
    }
    
    .footer-item {
        gap: 12px;
    }
    
    .footer-item h4 {
        font-size: 12px;
    }
    
    .footer-item p {
        font-size: 14px;
    }
    
    .footer-text p {
        line-height: 1.4;
        font-size: 13px;
    }
    
    .footer-links {
        gap: 20px;
    }
    
    .footer-links a,
    .copyright {
        font-size: 13px;
    }
    
    .logo-wrap-footer {
        margin-bottom: 40px;
    }
    
    .footer-logo {
        width: 150px;
        height: 36px;
    }
    
    .product-card {
        width: 100%;
        position: relative;
        padding: 24px;
        padding-right: 120px;
        height: 400px;
        min-height: 400px;
        margin-bottom: 16px;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }
    
    .card-image {
        position: absolute;
        top: 24px;
        right: 24px;
        width: 60px;
        height: 60px;
        margin-bottom: 0;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .card-image img {
        width: 50px;
        height: 50px;
    }
    
    .card-content {
        width: 100%;
        justify-content: flex-start;
        gap: 16px;
        padding-top: 0;
    }
    
    .card-header {
        gap: 12px;
    }
    
    .card-header h3 {
        font-size: 20px;
        margin-bottom: 0;
    }
    
    .card-tags {
        gap: 6px;
    }
    
    .tag {
        font-size: 10px;
        padding: 4px 8px;
    }
    
    .card-divider {
        margin: 8px 0;
    }
    
    .card-description {
        line-height: 1.45;
        font-size: 13px;
    }
    
    /* Footer image smaller on mobile */
    .footer-image {
        height: 200px;
        margin-top: 32px;
    }
    
    .footer-image img {
        opacity: 0.2;
    }
    
    /* Mobile-friendly form */
    .contact-form-container {
        padding: 32px 24px;
        gap: 16px;
    }
    
    .contact-form-container h3 {
        font-size: 28px;
        margin-bottom: 16px;
    }
    
    .contact-form {
        gap: 32px;
    }
    
    .form-group label {
        font-size: 12px;
    }
    
    .form-group input, 
    .form-group textarea {
        font-size: 14px;
        padding: 8px 0;
        margin-bottom: 8px;
    }
    
    .form-footer {
        gap: 24px;
    }
    
    .submit-button {
        padding: 8px 24px;
        font-size: 14px;
    }
    
    .contact-info {
        display: none;
    }
    
    .contact-container {
        margin-top: 32px;
    }
    
    .contact-form-container {
        border-radius: 4px;
    }
    
    .nav-wrapper {
        display: grid;
        grid-template-columns: 1fr 2fr 1fr;
        align-items: center;
        gap: 0;
    }
    
    .nav-left {
        justify-self: start;
    }
    
    .nav-center {
        justify-self: center;
        display: flex;
        justify-content: center;
    }
    
    .nav-right {
        justify-self: end;
    }
    
    .logo-vector {
        width: 80px;
        height: 22px;
    }
    
    .contact-button {
        padding: 4px 12px;
        font-size: 12px;
    }
    
    .language-selector {
        padding: 4px 6px;
        font-size: 12px;
        gap: 6px;
    }
    
    .language-text {
        font-size: 12px;
    }
    
    .chevron {
        width: 12px;
        padding: 2px;
    }
    
    .chevron svg {
        width: 8px;
        height: 4px;
    }
    
    /* Keep header content structure consistent across all screen sizes */
    .header-top {
        top: 35%; /* Keep text centered over the image on mobile too */
    }
    
    .header-bottom-image {
        max-width: 95vw; /* Allow image to be larger on mobile */
        max-height: 70vh; /* Allow image to be taller on mobile */
    }

    
    /* Products section title spacing on mobile */
    .title-container {
        flex-direction: column;
        gap: 24px;
    }
}

/* Specific mobile phone styles */
@media (max-width: 480px) {
    .product-card {
        padding: 20px;
        padding-right: 100px;
        height: 350px;
        min-height: 350px;
        margin-bottom: 24px;
    }
    
    .card-image {
        top: 20px;
        right: 20px;
        width: 60px;
        height: 60px;
    }
    
    .card-image img,
    .card-icon {
        width: 50px !important;
        height: 50px !important;
    }
    
    .card-content {
        gap: 12px;
    }
    
    .card-header {
        gap: 8px;
    }
    
    .card-header h3 {
        font-size: 18px;
    }
    
    .tag {
        font-size: 9px;
        padding: 3px 6px;
    }
    
    .card-description {
        font-size: 12px;
        line-height: 1.3;
    }
}

@media (max-width: 576px) {
    .content-wrapper {
        padding: 0 20px;
    }
    
    .header-content {
        padding: 0;
    }
    
    .products-section {
        padding: 60px 0;
    }
    
    .contact-section {
        padding: 60px 0;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .product-wrapper {
        height: 300px;
    }
    
    .nav-wrapper {
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        gap: 8px;
    }
    
    .nav-left {
        justify-self: start;
        margin-left: 5px;
    }
    
    .nav-center {
        justify-self: center;
        order: 0;
    }
    
    .nav-right {
        justify-self: end;
    }
    
    .nav-item {
        font-size: 12px;
        padding: 4px 12px;
    }
    
    h1 {
        font-size: 28px;
        padding: 0 10px;
    }
    
    .header-nav {
        padding: 10px 12px;
    }
    
    .nav-buttons {
        gap: 6px;
    }
    
    .contact-button {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .language-selector {
        padding: 4px;
        gap: 6px;
    }
    
    .language-text {
        font-size: 12px;
    }
    
    .logo-vector {
        width: 80px;
        height: 22px;
        margin-left: 5px;
    }
    
.header-bottom {
      display: flex;
      justify-content: center;
      align-items: flex-end;
      width: 100%;
      margin-top: auto;
      position: relative;
      flex-shrink: 0; /* Prevents shrinking */
      align-self: flex-end; /* Aligns to the end of the flex container */
  }

  .header-bottom-image {
      max-width: 320px;
      width: 100%;
      height: auto;
      object-fit: contain;
      margin: 0 auto;
      display: block;
  }
    
    .services-bottom-text h3 {
        font-size: 24px;
        white-space: normal;
    }
    
    .services-bottom-text h3:first-child {
        margin-left: 0;
    }
}
