:root {
    --primary: #056085;
    /* Deep Blue */
    --secondary: #c7d301;
    /* Lime Green */
    --accent: #f0f7f2;
    --text-dark: #333;
    --text-light: #fff;
    --bg-light: #f9f9f9;
    --bg-dark: #056085;
    --transition: all 0.3s ease;
    --container-width: 1100px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    scroll-behavior: smooth;
    overflow-x: hidden;
    background-color: #fff;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

h1,
h2,
h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    margin-bottom: 1rem;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.bg-dark {
    background-color: var(--bg-dark);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--secondary);
    margin: 10px auto;
    border-radius: 2px;
}

/* Header & Nav */
header {
    background: transparent;
    position: absolute;
    width: 100%;
    top: 0;
    margin-top: 1.5rem;
    left: 0;
    z-index: 1000;
    transition: var(--transition);
}

header.scrolled {
    background: var(--primary);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    margin-top: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header.scrolled .logo,
header.scrolled .nav-links a {
    color: var(--text-light);
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 2rem;
}

.nav-links .btn {
    padding: 0.5rem 1.2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
    /* Initially light on hero background */
}

.logo img {
    height: 40px;
    width: auto;
}

.mobile-menu-btn {
    display: none;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-light);
    /* Initially light on hero background */
    font-weight: 600;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--secondary);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: var(--secondary);
    color: var(--text-dark);
}

.btn-primary:hover {
    background: var(--primary);
    color: var(--text-light) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(5, 96, 133, 0.4);
}

.btn-blue {
    background: var(--primary);
    color: var(--text-light);
}

.btn-blue:hover {
    background: #044b6a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(5, 96, 133, 0.3);
}

.btn-large {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
}

/* Hero */
#hero {
    height: 100vh;
    background: linear-gradient(rgba(5, 96, 133, 0.6), rgba(5, 96, 133, 0.4)),
        url('assets/hero_diverse_people.png'),
        linear-gradient(135deg, var(--primary), var(--secondary));
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    text-align: center;
    padding-top: 80px;
    /* Offset for header */
}

.hero-content {
    max-width: 900px !important;
}

#hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

#hero p {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto 2.5rem;
}

/* Cards & Grid */
.grid {
    display: grid;
    gap: 2rem;
}

.col-3 {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 900px) {
    .card h3 {
        font-size: 1.1rem;
        padding: 0 1rem;
    }

    .card p {
        font-size: 0.9rem;
        padding: 0 1rem;
    }
}

.card {
    background: #fff;
    padding: 0;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 5px solid var(--secondary);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.card-img.pos-top {
    object-position: center 10%;
}

.card-img.pos-bottom {
    object-position: center 80%;
}

.card h3,
.card p {
    padding: 0 2.5rem;
}

.card h3 {
    margin-top: 2rem;
}

.card p {
    margin-bottom: 2.5rem;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

#realisaties {
    background: linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8)),
        url('assets/realisaties_bg_new.jpg'),
        linear-gradient(rgba(5, 96, 133, 0.05), rgba(5, 96, 133, 0.05));
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.realisaties-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Force 3 columns on desktop */
    justify-content: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 992px) {
    .realisaties-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

.realisatie-item {
    background: #fff;
    padding: 2.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.realisatie-item:hover {
    background: var(--accent);
    transform: translateY(-5px);
}

.realisatie-item.cta-card {
    background: var(--secondary);
    border: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 2rem 1.5rem;
    /* Tighter padding */
    cursor: default;
}

.realisatie-item.cta-card h3 {
    color: var(--text-dark);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.realisatie-item.cta-card p {
    color: var(--text-dark);
    margin-bottom: 2rem;
    font-size: 1rem;
    line-height: 1.6;
}

.realisatie-item.cta-card .btn {
    align-self: center;
}

.realisatie-item.cta-card:hover {
    transform: translateY(-5px);
    background: var(--secondary);
    /* Keep color on hover */
}

.realisatie-details {
    display: none;
}

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    transition: var(--transition);
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 3rem;
    border-radius: 20px;
    width: 80%;
    max-width: 800px;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    animation: modalFadeIn 0.4s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    position: absolute;
    right: 25px;
    top: 15px;
    color: #aaa;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--primary);
}

#modal-body h3 {
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

#modal-body p {
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

#modal-body img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 2rem;
}

/* Wij Zoeken U */
.cta-wrapper {
    background: var(--secondary);
    padding: 4rem;
    border-radius: 30px;
    text-align: center;
    color: #333;
}

.cta-wrapper h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.cta-wrapper p {
    font-size: 1.2rem;
    max-width: 900px;
    margin: 0 auto 1rem;
}

.cta-wrapper .highlight {
    font-weight: 700;
    margin-top: 2rem;
    font-size: 1.5rem;
}

#contact {
    background: linear-gradient(rgba(5, 96, 133, 0.9), rgba(5, 96, 133, 0.9)),
        url('assets/contact_bg_new.jpg');
    background-size: cover;
    background-position: center;
    color: var(--text-light);
}

#contact .section-title {
    color: var(--text-light);
}

#contact .form-group label {
    color: var(--text-light);
}

#contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border-radius: 8px;
    border: none;
    font-family: inherit;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

/* Form Success State */
.hidden {
    display: none !important;
}

.form-success {
    text-align: center;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    border: 2px dashed rgba(255, 255, 255, 0.3);
    animation: fadeIn 0.5s ease-out;
}

.success-icon {
    font-size: 4rem;
    color: var(--secondary);
    margin-bottom: 1.5rem;
    display: inline-block;
    width: 80px;
    height: 80px;
    line-height: 80px;
    border: 4px solid var(--secondary);
    border-radius: 50%;
}

.form-success h3 {
    color: var(--text-light);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.form-success p {
    margin-bottom: 2rem;
    font-size: 1.2rem;
    color: var(--text-light);
    opacity: 0.9;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-error {
    text-align: center;
    padding: 3rem;
    background: rgba(255, 0, 0, 0.05);
    border-radius: 15px;
    border: 2px dashed rgba(255, 0, 0, 0.2);
    animation: fadeIn 0.5s ease-out;
}

.error-icon {
    font-size: 3rem;
    color: #ff4d4d;
    margin-bottom: 1.5rem;
    display: inline-block;
    width: 60px;
    height: 60px;
    line-height: 55px;
    border: 3px solid #ff4d4d;
    border-radius: 50%;
    font-weight: bold;
}

.form-error h3 {
    color: var(--text-light);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.form-error p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    color: var(--text-light);
    opacity: 0.9;
}

.form-error a {
    color: var(--secondary);
    text-decoration: underline;
}

/* FAQ Accordion */
.faq-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.faq-question {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.faq-question h3 {
    margin-bottom: 0;
    font-size: 1.2rem;
    color: var(--primary);
    padding: 0;
}

.faq-toggle {
    width: 20px;
    height: 20px;
    position: relative;
    transition: var(--transition);
}

.faq-toggle::before,
.faq-toggle::after {
    content: '';
    position: absolute;
    background-color: var(--primary);
    transition: var(--transition);
}

.faq-toggle::before {
    width: 2px;
    height: 100%;
    left: 50%;
    transform: translateX(-50%);
}

.faq-toggle::after {
    width: 100%;
    height: 2px;
    top: 50%;
    transform: translateY(-50%);
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0, 1, 0, 1);
    background-color: #fcfcfc;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    transition: all 0.5s cubic-bezier(1, 0, 1, 0);
}

.faq-answer p {
    padding: 0 2rem 1.5rem;
    margin: 0;
    color: #666;
}

/* Footer */
footer {
    padding: 2rem 0;
    text-align: center;
    background: #eee;
}

@media (max-width: 768px) {
    #hero h1 {
        font-size: 2.5rem;
    }

    .mobile-menu-btn {
        display: flex;
        flex-direction: column;
        gap: 6px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 10px;
        z-index: 2100;
        margin-left: auto;
        /* Push to right */
    }

    .mobile-menu-btn span {
        display: block;
        width: 30px;
        height: 3px;
        background-color: var(--text-light);
        border-radius: 2px;
        transition: var(--transition);
    }

    /* Animate button when active */
    .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-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: var(--primary);
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        transition: 0.4s ease-in-out;
        z-index: 2000;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.5rem;
    }

    .col-3 {
        grid-template-columns: 1fr !important;
    }
}