/* ================================================
   NDRIVE CONNECT - STIJL
   Elegant donkerblauw thema met subtiele animaties
   ================================================ */

/* --- Basis kleuren en variabelen --- */
:root {
  --bg: #0f1a25;           /* donkerblauwgrijs */
  --ink: #0d1117;
  --accent: #1f6db0;
  --maxw: 1000px;
}

/* --- Algemene reset --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 120px; /* voor anchors onder vaste header */
}

body {
  font-family: "Montserrat", Arial, sans-serif;
  color: var(--ink);
  background-color: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
}

/* Achtergrondlogo + overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("images/tekstlogo.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  filter: blur(8px) opacity(0.55);
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(5, 10, 15, 0.45);
  z-index: -1;
}

/* ============================================
   HEADER & NAV
   ============================================ */

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 1rem 6%;
  background: rgba(10, 18, 28, 0.92);
  backdrop-filter: blur(6px);
  color: #ffffff;
  animation: fadeInHeader 1s ease-out forwards;
  opacity: 0;
}

@keyframes fadeInHeader {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Logo + merknaam */
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer; /* voor theme-toggle */
  transition: transform 0.3s ease;
}

.brand:hover {
  transform: scale(1.05);
}

.header-logo {
  max-height: 40px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
  opacity: 0;
  transform: translateY(-5px);
  animation: logoFade 1.3s ease-out forwards;
}

@keyframes logoFade {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* NAV desktop */
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-left: auto;
}

nav a {
  position: relative;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.95rem;
  opacity: 0.95;
  transition: color 0.3s ease;
}

/* Lijntje ondermenu bij hover */
nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background-color: var(--accent);
  transition: width 0.3s ease;
}

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

nav a:hover::after {
  width: 100%;
}

nav a.active {
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.25rem;
}

/* Menu-knop (mobiel) */
.menu-toggle {
  display: none;
  font-size: 1.8rem;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}

/* ============================================
   MAIN & SECTIES
   ============================================ */

/* Basislayout main, zonder achtergrondvlak */
main {
  max-width: var(--maxw);
  margin: 6rem auto 2.5rem; /* ruimte onder vaste header */
  padding: 2rem;
  text-align: center;
}

/* Extra ruimte tussen secties */
main section {
  margin-bottom: 7rem;
}

/* Typografie */
h1 {
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  margin-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
  padding-bottom: 0.35rem;
  color: var(--accent);
}

p {
  margin-bottom: 1.5rem;
  color: #dce2ea;
}

/* Hero-logo */
.hero-logo {
  display: block;
  margin: 0 auto 1.5rem;
  width: 100%;
  max-width: 420px;
  height: auto;
  object-fit: contain;
}

/* ============================================
   CONTACT ICONS
   ============================================ */

.contact-icons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.contact-icons a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  padding: 0.6rem 1.2rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  font-weight: 600;
}

.contact-icons a:hover {
  transform: translateY(-3px);
  background: rgba(31, 109, 176, 0.15);
  box-shadow: 0 6px 14px rgba(31, 109, 176, 0.3);
  color: var(--accent);
}

.contact-icons svg {
  width: 22px;
  height: 22px;
  fill: var(--ink);
  transition: fill 0.3s ease;
  vertical-align: middle;
}

.contact-icons a:hover svg {
  fill: var(--accent);
}

/* ============================================
   FOOTER
   ============================================ */

footer {
  text-align: center;
  color: #e7ecf2;
  font-size: 0.9rem;
  padding: 2rem 1rem 3rem;
  opacity: 0.9;
  animation: fadeInFooter 1.8s ease-out forwards;
  opacity: 0;
}

@keyframes fadeInFooter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   COOKIE BANNER + KNOP
   ============================================ */

#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(10, 18, 28, 0.95);
  color: #ffffff;
  padding: 1rem 1.2rem;
  text-align: center;
  font-size: 0.95rem;
  z-index: 9999;
  backdrop-filter: blur(4px);
}

#cookie-accept {
  display: inline-block;
  margin-left: 1rem;
  background: var(--accent);
  border: none;
  padding: 0.45rem 1.2rem;
  border-radius: 8px;
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

#cookie-accept:hover {
  background: rgba(31, 109, 176, 0.75);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(31, 109, 176, 0.35);
}

/* Light-mode cookie banner */
body.light-mode #cookie-banner {
  background: rgba(255, 255, 255, 0.95);
  color: #0f1a25;
  border-top: 1px solid #ddd;
}

/* ============================================
   REVIEWS SLIDER
   ============================================ */

#reviews {
  text-align: center;
}

.reviews-slider {
  position: relative;
  width: 100%;
  max-width: 850px;
  margin: 3rem auto 0;
  /* geen vaste height meer */
}

/* standaard: verberg alle reviews */
.review {
  display: none;
  opacity: 0;
  transition: opacity 0.8s ease;
  padding: 1.5rem;
  border-radius: 12px;
  position: relative; /* niet meer absolute */
}

/* alleen de actieve review tonen */
.review.active {
  display: block;
  opacity: 1;
}

/* eventueel tekst iets kleiner op mobiel */
@media (max-width: 600px) {
  .review p {
    font-size: 0.95rem;
    line-height: 1.6;
  }
}


/* Tekst in reviews */
.review p {
  font-size: 1.05rem;
  margin-bottom: 0.8rem;
}

.review span {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Actieve review tonen */
.review.active {
  opacity: 1;
}

/* Light mode variant – duidelijke blokken */
body.light-mode .review {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #ddd;
}

/* ============================================
   LIGHT MODE
   ============================================ */

body.light-mode {
  background-color: #ffffff;
  background-image: none;
  color: #0f1a25;
}

body.light-mode::before {
  opacity: 0.25; /* logo heel subtiel op de achtergrond als je wilt */
}

body.light-mode::after {
  background: none;
}

/* Tekstkleuren in light mode */
body.light-mode,
body.light-mode main,
body.light-mode main p,
body.light-mode main h1,
body.light-mode main h2,
body.light-mode main h3,
body.light-mode span,
body.light-mode nav a,
body.light-mode footer {
  color: #0f1a25;
}

/* Header in light mode */
body.light-mode header {
  background: #ffffff;
  color: #0f1a25;
  border-bottom: none;
}

body.light-mode nav a {
  color: #0f1a25;
}

body.light-mode .menu-toggle {
  color: #0f1a25;
}

/* Contactbuttons in light mode blijven wit zoals gedefinieerd */

/* ============================================
   DARK MODE – GEEN BLAKKEN
   ============================================ */

/* Geen panel voor content, reviews en contactknoppen in dark mode */
body:not(.light-mode) main,
body:not(.light-mode) .review,
body:not(.light-mode) .contact-icons a {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  backdrop-filter: none !important;
}

/* Tekst in dark mode wit houden, ook in reviews */
body:not(.light-mode) main,
body:not(.light-mode) main p,
body:not(.light-mode) main h1,
body:not(.light-mode) main h2,
body:not(.light-mode) main h3,
body:not(.light-mode) main span,
body:not(.light-mode) .review p,
body:not(.light-mode) .review span {
  color: #ffffff !important;
}

/* Header en nav in dark mode */
body:not(.light-mode) header,
body:not(.light-mode) header span,
body:not(.light-mode) nav a,
body:not(.light-mode) .brand {
  color: #ffffff;
  fill: #ffffff;
}

/* Footer in dark mode */
body:not(.light-mode) footer {
  background: #0f1a25;
  color: #ffffff;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ============================================
   RESPONSIVITEIT
   ============================================ */

@media (max-width: 880px) {
  .brand span {
    display: none;
  }
  main {
    margin: 5rem 1rem 2.5rem;
    padding: 1.5rem;
  }
}

/* Mobiel nav gedrag */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    background: rgba(10, 18, 28, 0.98);
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    text-align: center;
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-links a {
    display: block;
    margin: 0.75rem 0;
  }

  .nav-links.active {
    display: flex;
  }

  body.light-mode .nav-links {
    background: #ffffff;
    border-top: none;
  }
}

@media (max-width: 600px) {
  .header-logo {
    max-height: 38px;
  }
  .hero-logo {
    max-width: 65%;
  }
}
