/* Color Palette Variables */
:root {
    --light-gray: #E5E5E5;
    /* Licht Grijs voor sections */
    --dark-blue: #1E3A5F;
    /* Donker Blauw Logo, zoek balk en hoofdteksten */
    --aqua-blue: #007dd1;
    /* Aqua Blauw voor opvallende knopjes */
    --off-white: #FAF9F6;
    /* Off white Achtergrond */
    --pure-white: #FFFFFF;
    /* Spierwit Sections */
    --black-text: #000000;
    /* Zwarte tekst */
    --trae-navy: #002B45;
    --trae-teal: #0077a6;
    --trae-red: #FF4B4B;
    --trae-light-gray: #F2F4F7;
    --accent-primary: #030848;
    /* Nieuw accent donkerblauw */
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 17px;
    /* Increased base font size */
    overflow-y: auto;
    scrollbar-gutter: stable;
    /* Prevent layout shifts while allowing scrollbar to disappear */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--off-white);
    color: var(--black-text);
    line-height: 1.6;
    padding-top: 80px;
    /* Space for fixed navbar */
}

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

/* Navigation Bar */
.navbar {
    background-color: var(--pure-white);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    /* Fixed height for consistency */
    z-index: 1000;
    transition: transform 0.3s ease-in-out;
    display: flex;
    align-items: center;
}

.navbar.hidden {
    transform: translateY(-100%);
}

.nav-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    /* Removed vertical padding, handled by navbar height */
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    /* Prevent wrapping */
    height: 100%;
}

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

.logo h1 {
    color: var(--dark-blue);
    font-size: 1.5rem;
    font-weight: bold;
    font-family: 'Times New Roman', serif;
    margin: 0;
    white-space: nowrap;
}

.logo-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 1rem;
    /* Reduced padding for logo */
    border-radius: 999px;
    background-color: transparent;
    /* Made transparent for logo */
    border: none;
    /* Removed border for logo */
    box-shadow: none;
    /* Removed shadow for logo */
}

.logo-box img {
    max-height: 45px;
    /* Adjust size to fit navbar */
    width: auto;
}

.footer-logo-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 0;
    background-color: transparent;
    border: none;
    margin-bottom: 0.75rem;
}

.footer-logo-box img {
    max-height: 60px;
    /* Adjust size for footer */
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    flex-wrap: wrap;
}

.nav-menu a {
    color: var(--black-text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--dark-blue);
}

.social-nav {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.social-link {
    color: var(--dark-blue);
    transition: color 0.3s;
}

.social-link:hover {
    color: #2a4d7a;
}

/* Hero Section */
.hero {
    position: relative;
    color: var(--pure-white);
    padding: 5rem 0;
    text-align: center;
    overflow: hidden;
    height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background-image: url('images/homepage.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(3px);
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.7) 0%, rgba(42, 77, 122, 0.7) 100%);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--pure-white);
}

.hero-subtitle {
    font-size: 1.15rem;
    /* Standardized to match other pages */
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Sections */
section {
    padding: 4rem 0;
}

.section-light {
    background-color: var(--light-gray);
}

.section-white {
    background-color: var(--pure-white);
}

section h2 {
    color: var(--dark-blue);
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

section h3 {
    color: var(--dark-blue);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

section p {
    margin-bottom: 1rem;
    font-size: 1.15rem;
}

.page-header {
    text-align: left;
    padding: 3.5rem 0 2rem;
    background-color: var(--pure-white);
    border-bottom: 1px solid var(--light-gray);
    margin-bottom: 0;
}

.page-header .container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    color: var(--dark-blue);
    padding-left: 1rem;
    /* Align with H1 text */
}

.breadcrumbs a {
    display: flex;
    align-items: center;
    color: #64748b;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumbs a:hover {
    color: var(--dark-blue);
}

.breadcrumbs svg {
    width: 16px;
    height: 16px;
}

.breadcrumbs .separator {
    color: #cbd5e1;
    display: flex;
    align-items: center;
}

.breadcrumbs .separator svg {
    width: 14px;
    height: 14px;
}

.breadcrumbs .current {
    font-weight: 600;
    color: var(--dark-blue);
}

.page-header h1 {
    color: var(--dark-blue);
    font-size: 2.5rem;
    /* Increased from 1.75rem */
    font-weight: 700;
    letter-spacing: -0.5px;
    margin: 0;
    position: relative;
    padding-left: 1rem;
    border-left: 5px solid var(--accent-primary);
    /* Thicker accent */
    line-height: 1.2;
}

.page-header p {
    margin-top: 0.75rem;
    padding-left: 1rem;
    border-left: 5px solid transparent;
    /* Aligns text with H1 */
    color: #64748b;
    font-size: 1.15rem;
    /* Increased from 1rem */
    margin-bottom: 0;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background-color: var(--accent-primary);
    color: var(--pure-white);
    padding: 0.75rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.2s;
    border: none;
    cursor: pointer;
}

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

.btn-secondary {
    display: inline-block;
    background-color: var(--accent-primary);
    /* Changed from dark-blue to aqua-blue */
    color: var(--pure-white);
    padding: 0.75rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.2s;
}

.btn-secondary:hover {
    background-color: var(--dark-blue);
    /* Changed to match primary hover */
    transform: translateY(-2px);
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.about-sticky {
    background-color: var(--light-gray);
    padding: 2rem 0;
    margin-top: -2px;
    /* Fix visual gap/stripe with separator */
    position: relative;
    z-index: 5;
}

.about-sticky-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
    gap: 3rem;
    align-items: flex-start;
}

.about-sticky-text {
    position: sticky;
    top: 35vh;
    max-width: 520px;
    transition: opacity 0.1s ease-out;
}

.about-sticky-text p {
    font-size: 1.15rem;
}

.about-sticky-scroll {
    min-height: auto;
    padding-bottom: 2rem;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.expertise-item {
    background-color: var(--pure-white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.expertise-item h3 {
    color: var(--dark-blue);
    margin-bottom: 1rem;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* Enforce 2 columns */
    gap: 2rem;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

.project-card {
    background-color: var(--pure-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.project-card h3 {
    padding: 1.5rem 1.5rem 0.5rem 1.5rem;
    color: var(--dark-blue);
    margin: 0;
    background-color: var(--pure-white);
}

/* Carousel Styles */
.carousel-container {
    position: relative;
    width: 100%;
    height: 480px;
    /* Increased from 450px to accommodate larger text */
    /* Adjust height as needed */
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Center image horizontally */
}

.carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

.carousel-slide img {
    width: 95%;
    /* Reduced width for white border effect */
    height: 285px;
    /* Reduced height */
    margin-top: 15px;
    /* Top margin for spacing */
    object-fit: cover;
    border-radius: 4px;
    /* Soft edges */
}

.slide-text {
    min-height: 150px;
    /* Changed from fixed height to min-height */
    /* Fixed height for text area */
    padding: 1.5rem;
    background-color: var(--pure-white);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.slide-text p {
    margin: 0;
    font-size: 1.15rem;
    /* Increased to match contact page */
    color: var(--black-text);
}

/* Workflow Steps */
.workflow-container {
    width: 100%;
}

.workflow-group-top {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.workflow-group-bottom {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
    padding-top: 40px;
    /* Space for step numbers */

    /* Animation props */
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.8s ease, max-height 0.8s ease;
}

.workflow-group-bottom.visible {
    opacity: 1;
    max-height: 2000px;
    /* Large enough to fit content */
}

.workflow-expand-btn-container {
    text-align: center;
    margin: 3rem 0;
    transition: opacity 0.5s ease;
}

@media (max-width: 900px) {

    .workflow-group-top,
    .workflow-group-bottom {
        grid-template-columns: 1fr;
        max-width: 100%;
    }
}

.workflow-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.workflow-step {
    background-color: var(--pure-white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: relative;
}

.step-number {
    position: absolute;
    top: -20px;
    left: 20px;
    width: 40px;
    height: 40px;
    background-color: var(--accent-primary);
    color: var(--pure-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.25rem;
}

.workflow-step h3 {
    color: var(--dark-blue);
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.workflow-step p {
    font-size: 1.15rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.benefit-item {
    padding: 1.5rem;
    background-color: var(--light-gray);
    border-radius: 8px;
}

.benefit-item h3 {
    color: var(--dark-blue);
    margin-bottom: 0.5rem;
}

.benefit-item p {
    font-size: 1.15rem;
}

/* Services Page Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    background-color: var(--pure-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

/* Service Card Carousel Overrides */
.service-card .carousel-container {
    height: 250px;
    /* Reduced height for service cards */
}

/* Fix arrow position for project cards to center on image */
.project-card .carousel-container .slideshow-arrow {
    top: 157.5px;
    /* Center on the 285px image with 15px top margin: 15 + 285/2 = 157.5 */
    transform: translateY(-50%);
}

.project-card .carousel-container .slideshow-arrow:hover {
    transform: translateY(-50%) scale(1.1);
}

.service-card .carousel-slide img {
    height: 100%;
    width: 100%;
    margin-top: 0;
    border-radius: 0;
}

.service-card .slide-text {
    display: none;
    /* Hide slide text for services to keep layout clean */
}

.service-image {
    width: 100%;
    height: 200px;
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.service-placeholder {
    color: #757575;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
    /* Hide by default until image is added */
}

/* Show image if src is not empty (handled via JS or manual HTML update later) 
   For now, we just rely on the placeholder div if no img is present. 
*/

.service-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-content h3 {
    color: var(--dark-blue);
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
}

.service-content p {
    font-size: 1.15rem;
    color: var(--black-text);
    line-height: 1.6;
}

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.contact-photo-section {
    width: 100%;
}

.photo-placeholder {
    width: 100%;
    height: 400px;
    background-color: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-blue);
    font-weight: 600;
    border-radius: 8px;
}

.contact-details-section h2 {
    color: var(--dark-blue);
    margin-bottom: 1.5rem;
}

.contact-info {
    margin-bottom: 2rem;
}

.contact-info p {
    margin-bottom: 0.5rem;
}

.contact-hours {
    background-color: var(--pure-white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.contact-hours h3 {
    color: var(--dark-blue);
    margin-bottom: 1rem;
}

.contact-hero {
    padding: 3rem 0 4rem;
}

.contact-hero .container {
    padding-left: 20px;
    padding-right: 20px;
}

.contact-hero-card {
    display: flex;
    align-items: stretch;
    position: relative;
    min-height: 420px;
}

.contact-hero-left {
    flex: 1.5;
    position: relative;
    min-height: 420px;
    background-color: var(--pure-white);
    display: flex;
    align-items: flex-end;
}

.contact-hero-image {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    border: none;
    /* Removed dashed border */
    margin: 1.5rem;
    background-color: var(--pure-white);
}

.contact-hero-image svg {
    width: 52px;
    height: 52px;
    color: #9CA3AF;
}

.contact-hero-overlay {
    position: relative;
    left: 0;
    bottom: 0;
    width: 100%;
    padding: 2.5rem 2rem;
    background: var(--dark-blue);
    color: var(--pure-white);
    clip-path: polygon(0 0, 100% 18%, 100% 100%, 0 100%);
}

.contact-hero-overlay h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-hero-details p {
    margin-bottom: 0.5rem;
    font-size: 1.15rem;
    /* Increased from 0.95rem */
}

.contact-hero-details strong {
    font-size: 1.25rem;
    color: var(--pure-white);
}

.contact-hero-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.contact-hero-social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pure-white);
    transition: background-color 0.3s, color 0.3s, transform 0.3s;
}

.contact-hero-social-link:hover {
    background-color: var(--trae-teal);
    color: var(--pure-white);
    transform: translateY(-2px);
}

.contact-hero-right {
    flex: 1;
    background-color: var(--trae-light-gray);
    padding: 3rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Maintenance Mode Overlay */
#maintenance-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--dark-blue);
    /* Solid dark blue background */
    z-index: 10000;
    /* Highest z-index to cover everything */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.maintenance-card {
    background-color: var(--pure-white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    text-align: center;
    max-width: 500px;
    width: 100%;
}

.maintenance-logo-container {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.maintenance-logo-img {
    max-width: 180px;
    height: auto;
}

.maintenance-content {
    color: var(--black-text);
}

.maintenance-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
}

.maintenance-text {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.maintenance-subtext {
    font-size: 1rem;
    color: #64748b;
    font-style: italic;
}

.maintenance-contact {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
}

.contact-header {
    font-weight: 600;
    color: var(--dark-blue);
    margin-bottom: 0.25rem;
}

.contact-link {
    color: var(--black-text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-link:hover {
    color: var(--aqua-blue);
}

.contact-link i {
    color: var(--aqua-blue);
}


.contact-hero-form-wrapper {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

.contact-hero-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    justify-content: center;
}

.contact-hero-form-wrapper h2 {
    font-size: 1.75rem;
    color: var(--trae-navy);
    margin: 0;
    line-height: 1.2;
}

.contact-hero-form {
    max-width: none;
    margin: 0;
}

.contact-hero-form .form-group label {
    color: var(--trae-navy);
    font-weight: 600;
}

.contact-hero-form .form-group input,
.contact-hero-form .form-group textarea {
    border: 1px solid #D0D5DD;
    border-radius: 10px;
    background-color: var(--pure-white);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.contact-hero-form .form-group textarea {
    resize: vertical;
    min-height: 130px;
}

.contact-hero-form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 1rem;
}

.contact-hero-form button[type="submit"] {
    background-color: var(--accent-primary);
    color: var(--pure-white);
    padding: 0.8rem 1.7rem;
    border-radius: 999px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.35);
    transition: background-color 0.3s, transform 0.2s, box-shadow 0.3s;
}

.contact-hero-form button[type="submit"]:hover {
    background-color: var(--dark-blue);
    transform: translateY(-2px);
    box-shadow: 0 16px 26px rgba(15, 23, 42, 0.4);
}

.contact-hero-badge {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-color: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.45);
}

.contact-hero-badge svg {
    width: 28px;
    height: 28px;
    color: var(--pure-white);
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 2rem auto 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--dark-blue);
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--light-gray);
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--dark-blue);
}

/* Footer */
.footer {
    position: relative;
    background-color: transparent;
    color: var(--pure-white);
    padding: 6rem 0 2rem;
}

.home-page .footer {
    margin-top: -6rem;
    z-index: 5;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--dark-blue);
    /* Changed from gradient to solid title color */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    clip-path: polygon(0 4rem, 100% 0, 100% 100%, 0 100%);
    z-index: -1;
    filter: drop-shadow(0 -5px 15px rgba(0, 0, 0, 0.1));
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.footer-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-section h3 {
    color: var(--pure-white);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.footer-section p {
    margin-bottom: 0.5rem;
    opacity: 0.9;
    color: var(--pure-white);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--pure-white);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s, color 0.3s;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--light-gray);
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.footer-social .social-link {
    color: var(--pure-white);
    transition: color 0.3s, transform 0.3s;
}

.footer-social .social-link:hover {
    color: var(--light-gray);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
    color: var(--pure-white);
}

/* Pop-up */
.popup {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s;
}

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

.popup-content {
    background-color: var(--pure-white);
    padding: 2rem;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    position: relative;
    animation: slideDown 0.3s;
}

.popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    font-weight: bold;
    color: var(--dark-blue);
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

.popup-close:hover {
    color: #2a4d7a;
}

.popup-content h2 {
    color: var(--dark-blue);
    margin-bottom: 1.5rem;
}

.popup-contact-info {
    margin-bottom: 1.5rem;
}

.popup-contact-info p {
    margin-bottom: 0.5rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Floating Contact Button */
.floating-contact-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background-color: var(--accent-primary);
    color: var(--pure-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s, transform 0.3s;
    z-index: 1500;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-contact-btn:hover {
    background-color: var(--dark-blue);
    transform: scale(1.1);
}

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

.mobile-menu-btn span {
    width: 100%;
    height: 3px;
    background-color: var(--dark-blue);
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

/* Hamburger Animation */
.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        height: 80px;
        padding: 0;
        background-color: var(--pure-white);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    }

    .nav-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        height: 100%;
        padding: 0 20px;
        width: 100%;
        max-width: 100%;
        position: relative;
        /* Needed for absolute centering */
    }

    .logo {
        width: auto;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1002;
    }

    .logo h1 {
        font-size: 1.2rem;
    }

    .mobile-menu-btn {
        display: flex;
        z-index: 1002;
        margin-left: auto;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: auto;
        /* Allow height to fit content */
        height: auto;
        min-height: 60vh;
        /* Cover significant part of screen */
        background-color: var(--pure-white);
        flex-direction: column;
        justify-content: flex-start;
        /* Start from top */
        align-items: center;
        padding-top: 100px;
        /* Space for logo/navbar */
        padding-bottom: 60px;
        /* Space for curve */
        gap: 1.5rem;
        width: 100%;
        transform: translateY(-150%);
        transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        opacity: 1;
        pointer-events: all;
        /* Curved Bottom */
        border-bottom-left-radius: 50% 30px;
        border-bottom-right-radius: 50% 30px;
    }

    /* Remove pseudo-element arrow */
    .nav-menu::after {
        display: none;
    }

    /* New Close Arrow Button Removed */

    .nav-menu.active {
        transform: translateY(0);
    }

    .nav-menu a {
        font-size: 1.5rem;
        font-weight: 600;
        /* Back to bold/standard */
        text-transform: none;
        /* Remove uppercase */
        letter-spacing: normal;
        color: var(--dark-blue);
        display: block;
        padding: 10px;
        position: relative;
        text-decoration: none;
        transition: color 0.3s;
    }

    .nav-menu a::after {
        display: none;
        /* Remove underline animation */
    }

    .nav-menu a:hover {
        color: var(--accent-primary);
    }

    .social-nav {
        display: flex;
        position: absolute;
        left: 20px;
        top: 50%;
        transform: translateY(-50%);
        gap: 0.75rem;
        z-index: 1002;
    }

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

    .social-nav svg {
        width: 26px;
        height: 26px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .photo-placeholder {
        height: 300px;
    }

    .contact-hero-card {
        flex-direction: column-reverse;
        /* Form (right) first, then Image (left) */
    }

    .contact-hero-left,
    .contact-hero-right {
        flex: auto;
        width: 100%;
    }

    /* Hide contact details on mobile as requested (duplicate of footer) */
    .contact-hero-overlay {
        display: none;
    }

    /* Reduce min-height for left section since overlay is gone */
    .contact-hero-left {
        min-height: auto;
        display: block;
    }

    /* Adjust image margin */
    .contact-hero-image {
        position: relative;
        inset: auto;
        margin: 0;
        min-height: 250px;
    }

    .contact-hero-right {
        padding: 2rem 1.5rem;
    }

    .contact-hero-form-wrapper {
        max-width: 100%;
        margin-left: 0;
    }

    .contact-hero-badge {
        top: auto;
        left: 50%;
        bottom: -36px;
        transform: translateX(-50%);
    }

    .contact-hero-arrow {
        display: none;
    }

    .workflow-steps,
    .expertise-grid,
    .projects-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .floating-contact-btn {
        width: 50px;
        height: 50px;
        bottom: 1rem;
        right: 1rem;
    }

    .about-sticky-inner {
        grid-template-columns: 1fr;
    }

    .about-sticky-text {
        position: static;
        max-width: none;
        margin-bottom: 2rem;
    }
}

/* Section Separator Component */
.section-separator {
    position: relative;
    background-color: var(--light-gray);
    padding: 3rem 0 2rem;
    margin-top: -14rem;
    /* Increased negative margin to pull it up */
    clip-path: polygon(0 0, 100% 5rem, 100% 100%, 0 100%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

#over-ons {
    scroll-margin-top: 100px;
}

.separator-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    /* Push content down slightly due to diagonal */
}

.separator-text {
    font-weight: 700;
    color: var(--black-text);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.separator-button {
    background-color: var(--accent-primary);
    /* Changed from black-text */
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.separator-button:hover {
    background-color: var(--dark-blue);
    /* Added hover state color */
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.separator-arrow {
    color: var(--pure-white);
    width: 24px;
    height: 24px;
    animation: arrow-pulse 2s infinite;
}

@keyframes arrow-pulse {
    0% {
        transform: translateY(-3px);
        opacity: 0.5;
    }

    50% {
        transform: translateY(3px);
        opacity: 1;
    }

    100% {
        transform: translateY(-3px);
        opacity: 0.5;
    }
}

@media (max-width: 768px) {
    .section-separator {
        margin-top: -9rem;
        clip-path: polygon(0 0, 100% 3rem, 100% 100%, 0 100%);
        padding: 2.5rem 0 1.5rem;
    }

    .separator-content {
        margin-top: 1.5rem;
    }
}

/* Diagonal Layout Sections */
.diagonal-section-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.diagonal-section {
    position: relative;
    padding: 10rem 0;
    width: 100%;
    z-index: 1;
    /* Standaard schuine boven- en onderkant (\) */
    /* Boven: Links hoog (0), Rechts laag (5vw) */
    /* Onder: Links hoog (100%-5vw), Rechts laag (100%) */
    clip-path: polygon(0 0, 100% 48px, 100% 100%, 0 calc(100% - 48px));
    margin-top: -48px;
}

/* Eerste sectie: Bovenkant recht */
.diagonal-section:first-child {
    margin-top: 0;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 48px));
    padding-top: 8rem;
    z-index: 2;
    /* Zorg dat deze bovenop ligt indien nodig */
}

/* Fix for last section overlap with footer */
.diagonal-section:last-child {
    clip-path: polygon(0 0, 100% 48px, 100% 100%, 0 100%);
    /* Straight bottom */
    padding-bottom: 8rem;
    /* Extra space */
}

/* Oneven secties (1, 3, 5...): Wit */
.diagonal-section:nth-of-type(odd) {
    background-color: var(--pure-white);
}

/* Even secties (2, 4, 6...): Lichtgrijs */
.diagonal-section:nth-of-type(even) {
    background-color: var(--light-gray);
}

.diagonal-section .container {
    max-width: 1200px;
    position: relative;
    z-index: 2;
}

/* Uitlijning */
.diagonal-section.align-right .container {
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.diagonal-section.align-left .container {
    margin-right: auto;
    margin-left: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.diagonal-section h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.diagonal-section p {
    max-width: 600px;
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

/* Diagonal Split Layout (Text + Image) */
.diagonal-section .container.diagonal-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.diagonal-image {
    position: relative;
    transition: transform 0.3s ease;
}

.diagonal-image:hover {
    transform: scale(1.02);
}

.diagonal-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    aspect-ratio: 4/3;
}

.slideshow-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--accent-primary);
    color: var(--pure-white);
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 3;
    transition: all 0.3s ease;
}

.slideshow-arrow.prev {
    left: 0;
    border-radius: 0 50% 50% 0;
    padding-right: 5px;
}

.slideshow-arrow.next {
    right: 0;
    border-radius: 50% 0 0 50%;
    padding-left: 5px;
}

.slideshow-arrow:hover {
    background-color: var(--dark-blue);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.diagonal-section.align-right .container.diagonal-split .diagonal-content {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.diagonal-section.align-left .container.diagonal-split .diagonal-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

@media (max-width: 992px) {
    .diagonal-section .container.diagonal-split {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .diagonal-section.align-right .container.diagonal-split .diagonal-content,
    .diagonal-section.align-left .container.diagonal-split .diagonal-content {
        align-items: center;
        text-align: center;
    }
}

/* Mobiel aanpassingen */
@media (max-width: 768px) {
    .diagonal-section {
        padding: 4rem 0;
        margin-top: -1.5rem;
        clip-path: polygon(0 0, 100% 1.5rem, 100% 100%, 0 calc(100% - 1.5rem));
    }

    .diagonal-section:first-child {
        padding-top: 4rem;
        margin-top: 0;
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 1.5rem));
    }

    .diagonal-section:last-child {
        clip-path: polygon(0 0, 100% 1.5rem, 100% 100%, 0 100%);
        /* Straight bottom mobile */
        padding-bottom: 4rem;
    }

    .diagonal-section.align-right .container,
    .diagonal-section.align-left .container {
        align-items: center;
        text-align: center;
    }

    .diagonal-section p {
        margin-left: auto;
        margin-right: auto;
    }

    .slideshow-arrow {
        width: 42px;
        height: 42px;
    }
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.stagger-delay-1 {
    transition-delay: 0.1s;
}

.stagger-delay-2 {
    transition-delay: 0.2s;
}

.stagger-delay-3 {
    transition-delay: 0.3s;
}

.stagger-delay-4 {
    transition-delay: 0.4s;
}

.stagger-delay-5 {
    transition-delay: 0.5s;
}

.stagger-delay-6 {
    transition-delay: 0.6s;
}

/* Footer Mobile Layout */
@media (max-width: 768px) {
    .footer-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem 1rem;
        text-align: center;
    }

    /* Contact details (1st item) spans full width */
    .footer-section:nth-child(1) {
        grid-column: 1 / -1;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* Center align other sections */
    .footer-section {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
}

/* Lightbox Styles */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85); /* Darker background, less transparent feel */
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: zoom-out; /* Indicate click to close */
}

.lightbox-overlay.active {
    display: flex;
    opacity: 1;
}

.lightbox-image {
    display: block;
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    animation: zoomIn 0.3s ease;
    cursor: zoom-out;
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}