/* Root variabelen voor consistente kleuren door de hele website */
:root {
    --primary-color: #c59b6b;
    --secondary-color: #b48a5a;
    --custom-dark: #21201E;
    --text-color: #231f20;
    --card-shadow: 0 4px 15px rgba(0,0,0,0.1);
    --section-padding: 2rem;
    --container-max-width: 1320px;
    --header-height: 80px;
}

/* Basis typografie instellingen voor de hele website */
body, .card-text {
    font-family: 'KoHo', 'Open Sans', sans-serif;
    font-size: 15px;
    font-weight: normal;
    color: var(--text-color);
}

/* Consolidate all Open Sans elements */
h1, h2, h3, h4, h5, h6,
.section-title,
.nav-link,
.hero-heading,
.lead,
.btn,
.card-title,
.contact-text,
.footer-link {
    font-family: 'Open Sans', sans-serif;
}

/* Animatie voor de lijn onder hero-heading */
.hero-heading:before {
    content: "";
    display: block;
    width: 50px;
    height: 4px;
    background-color: var(--primary-color);
    margin-bottom: 20px;
    animation: glowLine 2s ease-in-out infinite;
}

@keyframes glowLine {
    0% { opacity: 0.4; }
    50% { opacity: 1; }
    100% { opacity: 0.4; }
}

#dna-animation {
    width: 100%;
    height: 500px;
}
.bg-primary-custom {
    background-color: var(--primary-color);
}
.bg-secondary-custom {
    background-color: var(--secondary-color);
}
.text-primary-custom {
    color: var(--primary-color);
}

/* Stijlen voor primaire knoppen */
.btn-primary-custom {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    margin-top: 1.5rem;
    transition: all 0.3s ease;
}
.btn-primary-custom:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: #999;
}
.btn-primary-custom:hover .chevron-icon {
    color: #999;
}
.chevron-icon {
    color: white;
    transition: color 0.3s ease;
}
.service-icon {
    font-size: 2rem;
    color: var(--primary-color);
}

/* Hover effecten voor service kaarten */
.service-card,
.contact-card,
.collaboration-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover,
.contact-card:hover,
.collaboration-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.contact-card {
    /* border: 1px solid var(--primary-color); */
}
.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.section-title {
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-color);
}
.contact-text {
    font-size: 1.25rem;
    font-weight: 500;
}
.footer-link {
    color: var(--primary-color) !important;
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-link:hover {
    color: var(--secondary-color) !important;
}
.nav-link .fab {
    font-size: 1.2rem;
}
.collaboration-section {
    min-height: auto;
    padding-top: 80px;
    padding-bottom: 80px;
}
.collaboration-logo {
    max-height: 100px;
    margin: 2rem auto 1.5rem;
}
.collaboration-text {
    margin-top: 1.5rem;
}
.collaboration-cta {
    margin-top: 4rem;
}
.collaboration-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.collaboration-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.navbar-nav .nav-link {
    position: relative;
    transition: color 0.3s ease;
    text-transform: uppercase;
}
.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
    font-weight: 500;
}
.bg-custom-dark {
    background-color: var(--custom-dark);
}
#diensten {
    min-height: auto !important;
    padding-top: 40px !important;
    padding-bottom: 80px !important;
}

/* Woord highlight animatie voor tekst */
.highlight-word {
    animation: wordGlow 6s ease-in-out infinite;
}

@keyframes wordGlow {
    0%, 100% { 
        color: inherit;
        font-weight: 400;
    }
    3%, 22% {  /* Woord is gehighlight voor ongeveer 1 seconde */
        color: #000000;
        font-weight: 600;
    }
    25%, 100% {
        color: inherit;
        font-weight: 400;
    }
}

/* Verschillende delays voor opeenvolgende woorden */
.highlight-word:nth-of-type(1) { animation-delay: 0s; }    /* Eerste woord start direct */
.highlight-word:nth-of-type(2) { animation-delay: 1.5s; }  /* Tweede woord start na 1.5s */
.highlight-word:nth-of-type(3) { animation-delay: 3s; }    /* Derde woord start na 3s */
.highlight-word:nth-of-type(4) { animation-delay: 4.5s; }  /* Vierde woord start na 4.5s */

/* Stuiterende animatie voor elementen */
.animate-bounce {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

/* Voeg deze nieuwe stijlregels toe */
.collaboration-card .card-text {
    color: var(--bs-body-color) !important; /* of een specifieke kleur naar keuze */
}

.collaboration-card a {
    color: inherit;
}

/* Voeg deze nieuwe stijlregel toe */
.contact-card .card-body p {
    color: #231f20 !important;  /* Gebruik dezelfde kleur als de body text */
    text-decoration: none;
}

#home {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 2rem 0;  /* Geef wat basis padding */
    min-height: calc(100vh - 80px - 80px); /* viewport height - header - footer */
}

/* Basis section styling */
section {
    flex: 1 0 100vh;
    display: flex;
    align-items: center;
    padding: 2rem 0;
    width: 100%;
}

/* Container styling binnen sections */
.navbar .container,
section .container,
footer .container {
    max-width: 1320px;
    width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
    margin: 0 auto;
}

/* Specifieke section styling */
#diensten {
    background-color: #f8f9fa;
    min-height: 100vh;
    margin-bottom: 0;
    align-items: flex-start;
    padding-top: 2rem;
}

#samenwerking {
    background-color: transparent;
}

#contact {
    background-color: #f8f9fa;
}

/* Verwijder eventuele conflicterende styles */
.row {
    margin: 0;
}

.site-wrapper {
    max-width: 1440px;
    margin: 0 auto;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

main {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* Verberg scrollbar voor Webkit browsers (Chrome, Safari, etc.) */
main::-webkit-scrollbar {
    display: none;
}

/* Voeg smooth scrolling toe voor de hele pagina */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    height: 100%;
}

/* Zorg dat klikbare elementen een pointer cursor hebben */
.nav-link,
.btn,
[href^="#"] {
    cursor: pointer;
}

/* Update footer styling */
.footer-dark {
    position: relative;
    width: 100%;
    background-color: white;
    padding: 1rem 0;
    flex-shrink: 0;
    margin-top: auto;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1); /* Voegt schaduw toe aan de bovenkant */
}

/* Aanpassing voor grote schermen */
@media (min-width: 1441px) {
    .site-wrapper {
        margin: 20px auto;
        border-radius: 8px;
        height: calc(100vh - 40px);
    }

    .footer-dark {
        border-radius: 0 0 8px 8px;
    }
}

/* Zorg ervoor dat de fixed header binnen de wrapper blijft */
.site-wrapper .fixed-top {
    max-width: 1440px;
    left: 50%;
    transform: translateX(-50%);
}

/* Aanpassing voor de footer om binnen de wrapper te blijven */
.footer-dark {
    position: relative;
    bottom: 0;
    width: 100%;
}

/* Update de navbar container styling */
.navbar {
    width: 100%;
    padding: 1rem 0; /* Voeg wat verticale padding toe */
}

.navbar .container {
    max-width: 1320px; /* Zelfde als Bootstrap's .container op grote schermen */
    width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
    margin: 0 auto;
}

/* Update de header styling */
header.fixed-top {
    position: relative;
    width: 100%;
    max-width: 1440px;
    z-index: 1030;
    flex-shrink: 0;
}

/* Zorg voor consistente container breedtes in alle secties */
section .container,
footer .container {
    max-width: 1320px;
    width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
    margin: 0 auto;
}

/* Responsive aanpassingen */
@media (max-width: 1440px) {
    header.fixed-top {
        width: 100%;
        left: 0;
        transform: none;
    }
}

/* Update de basis body en html styling */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    scroll-behavior: smooth;
}

html {
    scroll-padding-top: 80px;
}

/* Specifieke section styling */
#diensten {
    background-color: #f8f9fa;
}

#contact {
    background-color: #f8f9fa;
}

/* Zorg voor correcte scroll-padding met fixed header */
html {
    scroll-padding-top: 80px; /* Hoogte van de header */
    scroll-behavior: smooth;
}

/* Specifieke styling voor diensten section */
#diensten {
    background-color: #f8f9fa;
    align-items: center;
}

#diensten .container {
    margin-top: -5rem; /* Negative margin om content omhoog te brengen */
}

/* Of alternatief, als je de container styling wilt behouden */
#diensten .section-title {
    margin-top: -5rem; /* Alleen de titel en daaropvolgende content omhoog brengen */
}

/* Consistente section title positioning */
#diensten .container,
#samenwerking .container,
#contact .container {
    margin-top: -5rem; /* Zelfde negative margin voor alle sections */
}

/* Of als je het per section title wilt doen */
#diensten .section-title,
#samenwerking .section-title,
#contact .section-title {
    margin-top: -5rem;
}

/* Zorg dat alle sections dezelfde alignment hebben */
#diensten,
#samenwerking,
#contact {
    align-items: center;
    background-color: #f8f9fa; /* Voor diensten en contact */
}

#samenwerking {
    background-color: transparent; /* Override voor samenwerking */
}

/* Voeg deze regel toe of pas aan */
.navbar-nav .nav-item {
    margin: 0 15px;  /* Dit voegt 15px ruimte toe aan beide zijden van elk menu-item */
}

/* Bestaande nav-link styling blijft behouden */
.nav-link {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-color) !important;
    position: relative;
    transition: color 0.3s ease;
}

/* Basis section styling aanpassen voor mobiel */
@media (max-width: 768px) {
  section {
    min-height: auto;
    padding: 4rem 0;
    flex: 0 0 auto;
  }

  #home {
    min-height: 100vh;
    padding-top: 6rem;
  }

  /* Reset negative margins voor mobiel */
  #diensten .container,
  #samenwerking .container,
  #contact .container {
    margin-top: 0;
  }

  /* Reset section title margins */
  #diensten .section-title,
  #samenwerking .section-title,
  #contact .section-title {
    margin-top: 0;
  }

  /* Verbeter spacing tussen service cards */
  .service-card {
    margin-bottom: 1rem;
  }

  /* Verbeter main scroll gedrag */
  main {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Fix voor hero sectie op mobiel */
  .hero-heading {
    font-size: 2rem;
    line-height: 1.2;
  }

  .lead {
    font-size: 1rem;
    line-height: 1.4;
  }

  /* Verbeter spacing voor contact sectie */
  #contact {
    padding-bottom: 2rem;
  }

  /* Verbeter card spacing in contact sectie */
  .contact-card {
    margin-bottom: 1rem;
  }

  /* Footer styling voor mobiel */
  .footer-dark {
    position: static;
    width: 100%;
    background-color: white;
    padding: 2rem 1rem;
    margin-top: auto;
  }

  /* Footer content layout voor mobiel */
  .footer-dark .container {
    padding: 0;
  }

  .footer-dark .text-center {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .footer-dark .d-flex {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .footer-dark .footer-link,
  .footer-dark p {
    font-size: 0.9rem;
    margin: 0;
    padding: 0 1rem;
    white-space: normal;
    word-break: break-word;
  }

  main {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0;
  }

  .site-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
  }
}

