html {
    scroll-behavior: smooth;
}

body {
    width: 70%;
    font-family: "Reddit Sans", sans-serif;
    color: #424c49;
    background-color: #fff;
    margin: 0 auto;
}

main {
    margin-top: 70px;
}

.button-rounded-full {
    background-color: #424c49;
    color: white;
    padding: 10px 15px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    font-size: 16px;
    transition: background-color 0.3s;
}

.navigation .button-rounded-full {
    color: white !important;
    padding: 10px 15px;
    /* Ensure it stays white on desktop too */
}

.button-rounded-full:hover {
    background-color: #046d00;
}

.button-rounded-light {
    border: 1px solid #424c49;
    color: #424c49;
    padding: 10px 15px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    font-size: 16px;
    transition: background-color 0.3s;
}

.button-rounded-light:hover {
    background-color: rgba(4, 109, 0, 0.2);
}

.separator {
    width: 1px;
    height: 40px;
    background-color: #424c49;
    opacity: 0.2;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 13px 23px;
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
    background-color: white;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hamburger {
    display: none;
    /* Hide on desktop */
}

.logo a {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 32px;
    color: #1a202c;
    text-decoration: none;
}

.navigation {
    display: flex;
    align-items: center;
    gap: 12px;
}

.navigation a {
    font-family: "Reddit Sans", sans-serif;
    font-size: 16px;
    color: #424c49;
    text-decoration: none;
    padding: 10px 0;
    transition: color 0.3s;
}

.navigation a:hover {
    color: #046d00;
}

.navigation a[data-node-id="36:45"] {
    font-weight: 700;
}

.hero {
    background-color: rgba(4, 109, 0, 0.05);
    display: flex;
    gap: 69px;
    padding: 75px 70px;
    align-items: stretch;
}

.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.hero-content h1 {
    font-size: 60px;
    line-height: 76px;
    font-weight: 700;
    margin: 0 0 35px 0;
}

.hero-content p {
    font-size: 20px;
    line-height: 32px;
}

.hero-buttons {
    display: flex;
    gap: 28px;
    margin-top: 37px;
}

.hero-image {
    flex: 1;
    height: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 24px;
}

.hero-image img {
    display: block;
    width: 200%;
    height: 100%;
    object-fit: cover;
    transform-origin: 50% 30%;
    animation: pan-hero 30s ease-in-out infinite alternate;
    will-change: transform;
}

.content-section {
    display: flex;
    gap: 69px;
    padding: 75px 70px;
    align-items: stretch;
}

.content-image {
    flex: 1;
    position: relative;
    overflow: hidden;
    border-radius: 24px;
}

.content-image img {
    display: block;
    width: 200%;
    height: 100%;
    border-radius: 24px;
    object-fit: cover;
    transform-origin: center center;
    animation: pan-content 60s ease-in-out infinite alternate;
    will-change: transform;
}

.content-section2 {
    display: flex;
    gap: 69px;
    padding: 75px 70px;
    align-items: stretch;
    background-color: rgba(4, 109, 0, 0.05);
}

.content-image2 {
    flex: 1;
    position: relative;
    overflow: hidden;
    border-radius: 24px;
}

.content-image2 img {
    display: block;
    width: 200%;
    height: 100%;
    object-fit: cover;
    transform-origin: center center;
    animation: pan-content2 30s ease-in-out infinite alternate;
    will-change: transform;
}

.content-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 39px;
    justify-content: center;
}

.content-text.items-end {
    align-items: flex-end;
}

.content-text.items-end .content-buttons {
    align-self: flex-end;
}

.content-text h2 {
    font-size: 60px;
    line-height: 76px;
    font-weight: 700;
    margin: 0 0 35px 0;
}

.content-text p {
    font-size: 20px;
    line-height: 32px;
    margin: 0;
}

.content-buttons {
    display: flex;
    gap: 28px;
}

.how-to {
    background-color: rgba(4, 109, 0, 0.05);
    /* Restore Alternating Green */
    padding: 75px 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 42px;
}

.how-to-header {
    text-align: center;
    width: 490px;
}

.how-to-header h2 {
    font-size: 60px;
    line-height: 76px;
    margin: 0 0 8px 0;
}

.how-to-header p {
    font-size: 20px;
    line-height: 32px;
}

.how-to-steps {
    display: flex;
    gap: 63px;
    justify-content: center;
    width: 100%;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 244px;
    gap: 20px;
}

.step h3 {
    font-size: 24px;
    line-height: 1.2;
    margin: 0;
    font-weight: 700;
}

.step img {
    width: 80px;
    height: 80px;
}

.step p {
    font-size: 16px;
    line-height: 1.5;
}

.how-to-buttons {
    display: flex;
    gap: 28px;
}

.how-to-buttons {
    display: flex;
    gap: 28px;
}

/* PORTFOLIO SECTION STYLES */
.portfolio {
    padding: 75px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 48px;
    background-color: #fff;
    /* Ensure it stands out if needed */
}

.portfolio-header {
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
}

.portfolio-header h2 {
    font-size: 60px;
    line-height: 76px;
    margin: 0 0 8px 0;
}

.portfolio-header p {
    font-size: 20px;
    line-height: 32px;
}

.portfolio-carousel-wrapper {
    position: relative;
    width: 100%;
    max-width: 1440px;
    /* Limit max width */
    padding: 0 60px;
    /* Space for buttons */
}

.portfolio-scroll-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 20px;
    /* Space for scrollbar if visible, or aesthetics */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE 10+ */
}

.portfolio-scroll-container::-webkit-scrollbar {
    width: 0px;
    background: transparent;
    /* Chrome/Safari/Webkit */
}

.project-card {
    flex: 0 0 300px;
    scroll-snap-align: center;
    /* Center snap feels nicer for carousel */
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: white;
    border-radius: 12px;
    transition: transform 0.3s ease;
}



.card-image {
    width: 100%;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    background-color: #f0f0f0;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}



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

.category {
    font-size: 12px;
    font-weight: 700;
    color: #424c49;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
}

.project-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    color: #424c49;
}

.project-card p {
    font-size: 16px;
    margin: 0;
    color: #666;
    line-height: 1.4;
}

/* Navigation Buttons */
.nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: white;
    border: 1px solid #424c49;
    color: #424c49;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.nav-button:hover {
    background-color: #424c49;
    color: white;
}

.nav-button.prev {
    left: 0;
}

.nav-button.next {
    right: 0;
}



.team {
    background-color: #fff;
    /* Restore Alternating White */
    padding: 75px 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 46px;
}

.team h2 {
    font-size: 60px;
    line-height: 76px;
    margin: 0;
    text-align: center;
}

.team>p {
    font-size: 20px;
    line-height: 32px;
    text-align: center;
    width: 766px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 34px;
}

.team-member {
    text-align: center;
}

.team-member h3 {
    font-size: 60px;
    line-height: 76px;
    margin: 0;
}

.team-member img {
    width: 100%;
    height: 179px;
    border-radius: 24px;
    object-fit: cover;
}

.team-member p {
    font-size: 20px;
    line-height: 32px;
    color: #424c49;
}

.team-buttons {
    display: flex;
    gap: 28px;
}

.footer {
    background-color: #aabba9;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 28px 36px;
}

.footer .logo {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 32px;
    color: #424c49;
}

.footer-text {
    font-size: 12px;
    text-align: right;
    width: 709px;
    opacity: 0.9;
}

.form-container {
    background-color: rgba(4, 109, 0, 0.05);
    padding: 24px 90px 59px 64px;
    border-radius: 35px;
    width: 1055px;
    margin: 0 auto;
}

.form-container h1 {
    font-size: 60px;
    text-align: center;
    margin-bottom: 24px;
}

.form-container h2 {
    font-size: 40px;
    margin-bottom: 1rem;
}

.form-container label {
    font-size: 20px;
    font-weight: 700;
    display: block;
    margin-top: 1rem;
}

.form-container input[type="text"],
.form-container input[type="email"],
.form-container input[type="url"],
.form-container textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #486284;
    border-radius: 11px;
    background-color: white;
    margin-top: 0.5rem;
    box-sizing: border-box;
}

.form-container textarea {
    height: 101px;
}

.form-container hr {
    border: none;
    border-top: 1px solid #000;
    margin: 55px 0;
}

.form-container button {
    margin-top: 51px;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    margin: 1rem 0;
}

.checkbox-group>div {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-box {
    background-color: #fffbe6;
    border: 1px solid #ffe58f;
    border-radius: 8px;
    padding: 15px;
    margin: 1rem 0;
}

input[type="date"] {
    width: 100%;
    padding: 15px;
    border: 1px solid #486284;
    border-radius: 11px;
    background-color: white;
    margin-top: 0.5rem;
    box-sizing: border-box;
}

@keyframes pan-hero {
    0% {
        transform: scale(1.15) translate(-400px, 0);
    }

    100% {
        transform: scale(1.15) translate(20px, 0);
    }
}

@keyframes pan-content {
    0% {
        transform: scale(1.15) translate(-200px, 0);
    }

    100% {
        transform: scale(1.15) translate(-50px, 0);
    }
}

@keyframes pan-content2 {
    0% {
        transform: scale(1.15) translate(-200px, 0);
    }

    100% {
        transform: scale(1.15) translate(-50px, 0);
    }
}

/* =========================================
   RESPONSIVE / MOBIELE STIJLEN
   ========================================= */

/* Tablet en Mobiel (alles kleiner dan 1024px) */
@media screen and (max-width: 1024px) {
    body {
        width: 90%;
        /* Gebruik meer schermruimte */
    }

    .hero,
    .content-section,
    .content-section2,
    .how-to,
    .team,
    .portfolio {
        padding: 50px 20px;
        /* Minder padding aan zijkanten */
        gap: 40px;
        /* Kleinere gaten tussen elementen */
    }
}

/* Mobiel (alles kleiner dan 768px) */
@media screen and (max-width: 768px) {

    /* 1. Algemene Layout Reset */
    body {
        width: 100%;
        /* Volledige breedte */
        padding: 0;
        /* Remove body padding so backgrounds touch edges */
        /* Beetje lucht aan de randen */
        box-sizing: border-box;
    }

    * {
        box-sizing: border-box;
        /* Ensure padding doesn't overflow width */
    }

    /* 2. Header aanpassingen */
    .header {
        position: fixed;
        /* Fixed position for scroll effect */
        top: 0;
        left: 0;
        width: 100%;
        /* Full width */
        z-index: 1000;
        transition: transform 0.3s ease-in-out;
        /* Smooth transition for hiding/showing */

        flex-direction: row;
        /* Keep row for logo and hamburger */
        justify-content: space-between;
        align-items: center;
        height: auto;
        padding: 20px;
        gap: 0;
    }

    .header.scroll-down {
        transform: translateY(-100%);
        /* Hide when scrolling down */
    }

    .header.scroll-up {
        transform: translateY(0);
        /* Show when scrolling up */
    }

    .logo {
        z-index: 1001;
        /* Ensure logo stays above menu if needed */
    }

    /* Hamburger menu styles */
    .hamburger {
        display: block;
        cursor: pointer;
        background: none;
        border: none;
        padding: 10px;
        z-index: 1001;
    }

    .hamburger span {
        display: block;
        width: 25px;
        height: 3px;
        background-color: #424c49;
        margin: 5px 0;
        transition: all 0.3s ease-in-out;
        border-radius: 2px;
    }

    /* Hamburger animation to X */
    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

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

    /* Navigation dropdown styles */
    .navigation {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 20px 0;
        box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.1);

        /* Hidden state */
        display: none;
        opacity: 0;
        transform: translateY(-10px);
        transition: opacity 0.3s ease, transform 0.3s ease;
        z-index: 1000;
    }

    /* Active state for navigation */
    .navigation.active {
        display: flex;
        /* Override display: none */
        opacity: 1;
        transform: translateY(0);
    }

    main {
        margin-top: 80px;
        /* Add margin back to account for fixed header (approx height) */
    }

    .header-right {
        flex-direction: row;
        /* Ensure row to keep hamburger on right */
        width: auto;
        /* Allow it to sit on the right */
    }

    .navigation a:not(.button-rounded-full) {
        width: 100%;
        text-align: center;
        padding: 15px 0;
        font-size: 18px;
    }

    .navigation .button-rounded-full {
        width: 80%;
        text-align: center;
        margin-top: 10px;
        color: white !important;
        /* Force white text */
        background-color: #424c49;
        /* Ensure background is kept */
    }

    .separator {
        display: none;
        /* Streepjes weg op mobiel, staat slordig */
    }

    /* 3. Typografie Schalen */
    .hero-content h1,
    .content-text h2,
    .team h2,
    .how-to-header h2,
    .portfolio-header h2 {
        /* Scale portfolio header too */
        font-size: 36px;
        /* Van 60px naar 36px */
        line-height: 1.2;
        text-align: center;
        /* Alles centreren leest vaak fijner op mobiel */
    }

    .portfolio-carousel-wrapper {
        padding: 0;
        /* Remove side padding reserved for buttons */
    }

    .nav-button {
        display: none;
        /* Hide navigation buttons on mobile */
    }

    .project-card {
        flex: 0 0 85%;
        /* Cards take up most of screen width on mobile */
        scroll-snap-align: center;
    }

    .hero-content p,
    .content-text p {
        font-size: 18px;
        text-align: center;
        /* padding removed, section padding handles it */
    }



    /* 4. Flexbox: Van Naast elkaar naar Onder elkaar */
    .hero,
    .content-section,
    .content-section2,
    .footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    /* Volgorde veranderen: Plaatje eerst, dan tekst? */
    .hero-content {
        order: 2;
        /* Tekst onder */
        max-width: 100%;
    }

    .hero-image {
        order: 1;
        /* Foto boven */
        width: 100%;
        height: 300px;
        /* Vaste hoogte geven op mobiel */
        margin-bottom: 20px;
        /* Space between image and text */
        /* padding removed */
    }

    /* Voor content secties */
    .content-image,
    .content-image2 {
        width: 100%;
        height: 300px;
        /* Vaste hoogte geven */
        margin-bottom: 20px;
        /* padding removed */
        order: -1;
        /* Move images to top in column layout */
    }

    /* Buttons onder elkaar */
    .hero-buttons,
    .content-buttons {
        justify-content: center;
        flex-direction: row;
        /* Side by side */
        gap: 8px;
        /* 8px gap */
        width: 100%;
        flex-wrap: wrap;
        /* Allow wrap if screen is very small */
    }

    .button-rounded-full,
    .button-rounded-light {
        width: auto;
        /* Auto width for side-by-side */
        flex: 1;
        /* Stretch to fill available space equally */
        text-align: center;
        box-sizing: border-box;
        padding: 10px 5px;
        /* Reduce padding slightly to fit */
        font-size: 14px;
        /* Slightly smaller font if needed */

        display: flex;
        /* Ensure centering */
        justify-content: center;
        align-items: center;
    }

    /* 5. How To Sectie */
    .how-to-steps {
        flex-direction: column;
        align-items: center;
    }

    .how-to-buttons {
        flex-direction: row;
        /* Side by side */
        gap: 8px;
        width: 100%;
        justify-content: center;
    }

    /* 6. Team Grid */
    .team-grid {
        grid-template-columns: 1fr;
        /* 1 kolom in plaats van 4 */
    }

    .team>p {
        width: auto;
        /* Remove fixed width */
        max-width: 100%;
    }

    .team-buttons {
        flex-direction: row;
        /* Side by side */
        gap: 8px;
        width: 100%;
        justify-content: center;
    }

    /* 7. Footer */
    .footer {
        gap: 30px;
    }

    .footer-text {
        text-align: center;
        width: auto;
        /* Remove fixed width */
        max-width: 100%;
    }

    /* 8. Formulier */
    .form-container {
        width: 100%;
        max-width: 100%;
        /* Ensure it doesn't overflow */
        padding: 20px;
        /* Consistent with other sections */
        border-radius: 15px;
        /* Keep radius or remove if desired, 15px is fine */
        margin: 0;
        /* Remove auto margins */
    }

    .form-container h1 {
        font-size: 32px;
    }
}