/* =========================
   BASIS / RESET
   - Globale defaults + scroll gedrag
========================= */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px; /* rekening met sticky header (desktop) */
}

@media (max-width: 768px) {
  html { scroll-padding-top: 72px; } /* header iets lager op mobiel */
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: #111;
  background: #f9fafb;
  line-height: 1.6;
}

h2 {
  margin-top: 0;
  color: #6D28D9;
}

/* =========================
   LAYOUT / GENERIC HELPERS
========================= */
.container {
  max-width: 1100px;
  margin: 3rem auto;
  padding: 0 1.5rem;
}

.section-divider {
  border: 0;
  height: 2px;
  background: #5b07e2;
  opacity: 0.2;
  margin: 4rem auto;
  max-width: 800px;
}

/* =========================
   HEADER / NAVIGATIE
========================= */
.header {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 10;
  height: 72px;
}

.nav {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

/* Logo */
.logo img {
  height: 180px; /* groot logo desktop */
  display: block;
}

/* Menu (basis) */
.menu {
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1rem;
}

/* Links + underline animatie */
.menu a {
  position: relative;
  overflow: hidden; /* voor underline animatie */
  text-decoration: none;
  color: #111;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  transition: background 0.2s, color 0.2s;
}

.menu a:hover,
.menu a.active {
  background: #8755d6;
  color: #fff;
}

.menu a::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 90%;
  bottom: 6px;
  height: 2px;
  background: currentColor;
  opacity: .9;
  transition: left .25s ease, right .25s ease;
}
.menu a:hover::after,
.menu a.active::after {
  left: 10%;
  right: 10%;
}

/* Hamburger (basis) */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 18px;
  cursor: pointer;
  gap: 5px;
  transition: transform .3s ease; /* voor morph */
}
.hamburger span {
  width: 25px;
  height: 3px;
  background: #333;
  display: block;
  transition: 0.3s ease;
}

/* Hamburger morph (kruisje) */
.hamburger.active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* Desktop: menu zichtbaar */
@media (min-width: 769px) {
  .menu { display: flex; gap: 2rem; }
}

/* Mobiel: hamburger tonen, menu als dropdown */
@media (max-width: 768px) {
  .logo img { height: 60px; }
  .header   { height: 64px; }
  .nav      { padding: 0 0.75rem; }

  .hamburger {
    display: flex;
    position: absolute;
    top: 20px;
    right: 20px;
  }

  .menu {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: #fff;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    display: none; /* standaard verborgen */
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 10;

    /* slide-in effect */
    transform: translateY(-8px);
    opacity: 0;
    transition: transform .25s ease, opacity .25s ease;
  }
  .menu.show {
    display: flex;
    transform: translateY(0);
    opacity: 1;
  }
}

/* =========================
   HERO (home & subpagina)
========================= */
.hero {
  width: 100%;
  color: #fff;
  text-align: center;
  background: linear-gradient(135deg,#a719aa,#6D28D9);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Homepage hero met achtergrondfoto */
.hero-home {
  height: 70vh;
  min-height: 400px;
  background:
    linear-gradient(rgba(182, 89, 239, 0.7), rgba(125, 62, 214, 0.7)),
    url('fotos/codefoto.png') no-repeat center center/cover;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  position: relative; /* voor blobs */
  overflow: hidden;   /* voor blobs */
}

.hero-home h1 {
  font-size: clamp(2rem, 6vw, 3.5rem);
  margin-bottom: 1.5rem;
}
.hero-home p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

/* Sub-hero (andere pagina's) */
.hero-sub { height: 220px; }
.hero-sub h1 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  margin-bottom: 0.5rem;
}
.hero-sub p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
}

/* Subtiele achtergrondblobs in hero-home */
.hero-home::before,
.hero-home::after {
  content: "";
  position: absolute;
  width: 42vmax; height: 42vmax;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
  animation: blob 24s ease-in-out infinite;
  pointer-events: none;
}
.hero-home::before {
  background: radial-gradient(circle at 30% 30%, #ff90e8, transparent 60%);
  top: -10%; left: -10%;
}
.hero-home::after {
  background: radial-gradient(circle at 70% 70%, #9bb1ff, transparent 60%);
  bottom: -20%; right: -15%;
  animation-delay: -12s;
}

/* Headline special effects (home) */
.headline-move {
  display: inline-block;
  letter-spacing: 0.1px; /* punt i.p.v. komma */
  color: #ffffff;        /* fallback als clip niet werkt */
}
@supports (-webkit-background-clip: text) or (background-clip: text) {
  .headline-move {
    background: linear-gradient(90deg, #fff 0%, #f3e8ff 50%, #fff 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: heroShimmer 6s linear infinite;
  }
}
.headline-bob {
  display: inline-block;
  animation: heroFloatIn .8s ease-out both, heroBob 3.5s ease-in-out infinite;
}

/* =========================
   BUTTONS
========================= */
.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: 0.6rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
}
.btn-primary { background: rgb(239, 237, 237); color: #8984ed; }
.btn-primary:hover { background: #f0fdfa; }
.btn-secondary { border: 2px solid #fff; color: #fff; }
.btn-secondary:hover { background: rgba(255,255,255,0.1); }

/* =========================
   CONTENT-SECTIES
========================= */
/* Over mij */
.about-me {
  background: #f3f4f6;
  padding: 4rem 1.5rem;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}
.about-text h2 { color: #6D28D9; margin-bottom: 1rem; }
.about-text p  { margin-bottom: 1rem; }
.about-photo img {
  width: 55%;
  max-width: 350px;
  border-radius: 1rem;
  display: block;
  margin: 0 auto;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.section-button { margin-top: 2rem; text-align: center; }
.section-button .btn { padding: 0.75rem 1.5rem; font-size: 1rem; }

/* Diensten/pakketten */
.diensten-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  align-items: stretch;
}
.dienst-kaart {
  position: relative; /* voor shine sweep */
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 2px solid #8b08f0;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}
.dienst-kaart:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 12px 24px rgba(0,0,0,0.15);
  border-color: #8755d6;
  background: #8c56f8;
}
.dienst-kaart::after {
  content:"";
  position: absolute;
  top:0; left:-120%;
  width: 60%;
  height: 100%;
  transform: skewX(-18deg);
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.35), rgba(255,255,255,0));
  transition: left .6s ease;
}
.dienst-kaart:hover::after { left: 140%; }

/* Populair badge */
.populair {
  border: 3px solid #8755d6;
  position: relative;
  background: hsl(262, 24%, 64%);
}
.badge {
  position: absolute;
  top: -12px;
  right: -12px;
  background: #8755d6;
  color: #fff;
  font-size: 0.8rem;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.dienst-titel { font-size: 1.5rem; margin-bottom: 0.5rem; }
.dienst-prijs  { font-size: 1.2rem; font-weight: bold; margin: 1rem 0; color: #333; }
.dienst-features {
  list-style: none;
  padding: 0;
  margin: 1rem 0 2rem 0;
}
.dienst-features li {
  margin: 0.5rem 0;
  padding-left: 28px;
  position: relative;
  font-size: 0.95rem;
}
.dienst-features li::before {
  content: "✔";
  color: #16a34a;
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 0;
}

/* Pakket-info blokken */
.pakket-info {
  margin-top: 3rem;
  padding: 2rem;
  background: #f3f4f6;
  border: 1px solid #fefefe;
  border-radius: 12px;
  text-align: center;
}
.pakket-info p {
  margin: 0.5rem 0 1rem 0;
  font-size: 1.05rem;
  line-height: 1.6;
}
.pakket-help {
  margin-top: 1.5rem;
  padding: 1.5rem;
  text-align: center;
  background: #fdfcfe;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 500;
}
.pakket-help a { color: #e8e1f3; text-decoration: none; font-weight: bold; }
.pakket-help a:hover { text-decoration: underline; }

/* Homepage-about centreren + verwachting-afbeelding */
.homepage-about { text-align: center; padding: 2rem 1rem; }
.homepage-about h3,
.homepage-about p {
  text-align: center;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.homepage-about.voor-wie-sectie {
  margin-top: 0.5rem;  /* dichterbij de foto erboven */
  padding-top: 0;
}
/* Verklein de ruimte ONDER de sectie met de #verwachting-foto */
.homepage-about.container:has(#verwachting) {
  margin-bottom: .5rem;  /* i.p.v. 3rem uit .container */
  padding-bottom: 0;
}

/* Haal extra marge onder de foto weg */
#verwachting { margin: 0 auto .5rem; }
#verwachting img { margin: 0 auto; }

/* Zet de "Voor wie" sectie dichter ertegenaan */
.homepage-about.voor-wie-sectie {
  margin-top: .5rem !important;
  padding-top: 0;
}


#verwachting { margin-top: 0; padding-top: 0; }
#verwachting img {
  max-width: 760px;
  width: 90%;
  height: auto !important;
  display: block;
  margin: 1.5rem auto;
  border-radius: 12px;
}

/* Portfolio sectie */
.portfolio { text-align: center; margin: 3rem auto; }
.portfolio-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 1.5rem;
}
.portfolio-card {
  background: #F9FAFB;
  border: 1px dashed #D1D5DB;
  border-radius: 12px;
  padding: 2rem 1rem;
  transition: transform .3s ease, box-shadow .3s ease;
}
.portfolio-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
}
.placeholder { font-style: italic; color: #6B7280; }

/* =========================
   SCROLL PROGRESS BAR
========================= */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 0%;
  height: 4px;
  background: linear-gradient(90deg,#a719aa,#6D28D9);
  z-index: 9999;
  transition: width .15s linear;
}

/* =========================
   REVEAL ANIMATIONS (herbruikbaar)
========================= */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: transform .6s ease-out, opacity .6s ease-out;
  will-change: transform, opacity;
  transition-delay: var(--reveal-delay, 0ms); /* stagger via inline style */
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Varianten links/rechts */
.reveal-left,
.reveal-right {
  opacity: 0;
  transition: transform .6s ease-out, opacity .6s ease-out;
  will-change: transform, opacity;
}
.reveal-left  { transform: translateX(-40px); }
.reveal-right { transform: translateX( 40px); }
.reveal-left.active,
.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

/* =========================
   FOOTER
========================= */
.footer {
  text-align: center;
  padding: 2rem 1rem;
  background: #8984ed;
  color: #ccc;
  margin-top: 3rem;
}
.footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
}
.footer-social {
  display: flex;
  gap: 1rem;
}
.footer-social a {
  color: #fff;
  font-size: 1.25rem;
  transition: transform .2s ease, opacity .2s ease;
}
.footer-social a:hover {
  transform: scale(1.2);
  opacity: .85;
}

/* =========================
   KEYFRAMES
========================= */
@keyframes heroFloatIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroShimmer {
  from { background-position: 0% 50%; }
  to   { background-position: 200% 50%; }
}
@keyframes heroBob {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-4px); }
  100% { transform: translateY(0); }
}
@keyframes blob {
  0%,100% { transform: translate(0,0) scale(1); }
  33%     { transform: translate(2vw,-1vh) scale(1.05); }
  66%     { transform: translate(-1vw,2vh) scale(0.97); }
}

/* =========================
   RESPONSIVE CONTENT (component-specifiek)
========================= */
@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* =========================
   REDUCED MOTION
========================= */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-left,
  .reveal-right {
    transition: none;
    transform: none;
    opacity: 1;
  }
  .headline-move { 
    animation: none !important;
    background: none !important;
    -webkit-text-fill-color: initial !important;
    color: inherit !important;
  }
  .headline-bob  { animation: none !important; }
  #scroll-progress { transition: none; }
  .hero-home::before, .hero-home::after { animation: none; }
  .dienst-kaart::after { transition: none; }
}

/* =========================
   PORTFOLIO: SNELLERE ANIMATIE
   - override voor reveal in portfolio
========================= */
#portfolio .reveal,
#portfolio .reveal-left,
#portfolio .reveal-right {
  transition-delay: 0ms !important;
  transition-duration: .50s; /* iets sneller */
}

.black-friday-banner {
  background-color: #5505be;
  color: #fff;
  text-align: center;
  padding: 12px 20px;
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  border-bottom: 3px solid #682aaa;
  position: relative;
  animation: flash 2s infinite;
}

@keyframes flash {
  0%, 100% { background-color: #5e2a99; }
  50% { background-color: #111; }
}

.black-friday-banner strong {
  color: #ff0000;
}
.black-friday-banner {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 2147483647; /* altijd boven je header */
  background: #000;
  color: #fff;
  text-align: center;
  padding: 12px 16px;
  font-weight: 600;
  border-bottom: 3px solid #ff0000;
}

.black-friday-banner strong {
  color: #ff0000;
}

/* ruimte bovenaan zodat header en banner niet overlappen */
body {
  margin-top: 60px;
}

/* zorgt dat scrollen naar #diensten niet onder de banner valt */
#diensten {
  scroll-margin-top: 80px;
}

/* iets compacter op mobiel */
@media (max-width: 600px) {
  .black-friday-banner {
    padding: 10px 12px;
    font-size: 14px;
  }
  body {
    margin-top: 50px;
  }
}
