/* ==========================================
   HeegMedia — Dark Landing Page
   ========================================== */

:root {
  --bg: #111213;
  --panel: #1a1b1d;
  --text: #ffffff;
  --muted: rgba(255,255,255,0.6);
  --accent: rgba(255,255,255,0.08);
  --border: rgba(255,255,255,0.12);
  --radius: 18px;
}

body.light {
  --bg: #f5f5f2;
  --panel: #ffffff;
  --text: #111111;
  --muted: rgba(0,0,0,0.6);
  --accent: rgba(0,0,0,0.05);
  --border: rgba(0,0,0,0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  height: 100%;
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Poppins', sans-serif;
  scroll-behavior: smooth;
}

/* NAVBAR */
.nav {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  padding: 2rem 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}

.logo img {
  height: 70px; /* vergroot de hoogte van het logo */
  width: auto; /* behoud de verhoudingen */
  display: block;
  transition: transform 0.3s ease;
}

body.light .logo img {
  filter: invert(1);
}

.logo img:hover {
  transform: scale(1.05); /* optioneel: subtiele hoververgroting */
}

.menu a {
  color: var(--muted);
  margin-left: 2rem;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.menu a:hover {
  color: var(--text);
}

#preloader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

.loader-inner {
  text-align: center;
}

/* TEKST */
.loader-text {
  color: var(--text);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 0.25em;
  margin-bottom: 16px;
}

/* BALK */
.loader-bar {
  width: 140px;
  height: 2px;
  background: var(--border);
  overflow: hidden;
  margin: 0 auto;
}

.loader-progress {
  width: 0;
  height: 100%;
  background: var(--text);
  animation: loadBar 1.2s ease forwards;
}

/* ANIMATIE */
@keyframes loadBar {
  to {
    width: 100%;
  }
}

/* SWITCH */
.theme-switch {
  position: absolute;
  right: 2rem;
  bottom: 3rem;
  width: 60px;
  height: 30px;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  border: 1px solid var(--border);
  cursor: pointer;
  z-index: 5;
  opacity: 0.6;
}

/* CIRCLE */
.switch-circle {
  width: 26px;
  height: 26px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 1.5px;
  left: 2px;
  transition: transform 0.3s ease;
}

/* ACTIVE (LIGHT MODE) */
body.light .theme-switch {
  background: rgba(0,0,0,0.1);
}

body.light .switch-circle {
  transform: translateX(30px);
}

/* HERO */
.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: radial-gradient(ellipse at center, #1c1d1f 0%, #0e0e10 100%);
  text-align: center;
  position: relative;
}

body.light .hero {
  background:
    radial-gradient(circle at center, rgba(0,0,0,0.04), transparent 60%),
    var(--bg);
}

.hero-sub {
  color: var(--muted);
  font-size: 15px;
  letter-spacing: 0.3em;
  margin-bottom: 0.2rem;
  position: relative;
}

.hero-title {
  font-size: clamp(48px, 10vw, 110px);
  font-weight: 800;
  letter-spacing: 0.05em;
}

.hero-role {
  font-size: 14px;
  color: var(--muted);
  margin-top: 0.2rem;
  letter-spacing: 0.2em;
  position: relative;
}

@media (min-width: 769px) {

  .hero-sub {
    left: -200px;
  }

  .hero-role {
    right: -100px;
  }

}

/* HERO ANIMATIE */
.hero-content {
  opacity: 0;
  transform: translateY(20px);
  animation: heroFade 1.2s ease forwards;
  animation-delay: 0.3s;
}

.hero-sub {
  opacity: 0;
  transform: translateY(20px);
  animation: heroFade 1s ease forwards;
  animation-delay: 0.4s;
}

.hero-title {
  opacity: 0;
  transform: translateY(20px);
  animation: heroFade 1s ease forwards;
  animation-delay: 0.6s;
  position: relative;
  z-index: 2;
}

.hero-role {
  opacity: 0;
  transform: translateY(20px);
  animation: heroFade 1s ease forwards;
  animation-delay: 0.8s;
}

/* GLOW */
.hero-title::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255,255,255,0.08), transparent 70%);
  transform: translate(-50%, -50%);
  z-index: -1;
  filter: blur(40px);
}

/* KEYFRAME */
@keyframes heroFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


//* SOCIALS */
.socials {
  position: absolute;
  left: 4rem;
  bottom: 4rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.socials a {
  color: var(--muted);
  font-size: 12px;
  transition: all 0.3s ease;
}

/* hover */
.socials a:hover {
  color: var(--text);
}

/* LIGHT MODE FIX */
body.light .socials a {
  color: var(--text);
}

body.light .socials a:hover {
  color: #000;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  z-index: 3;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: var(--border);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: "";
  position: absolute;
  top: -40px;
  left: 0;
  width: 100%;
  height: 40px;
  background: var(--text);
  animation: scrollLine 1.8s ease-in-out infinite;
}

@keyframes scrollLine {
  0% {
    top: -40px;
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  100% {
    top: 40px;
    opacity: 0;
  }
}

/* ==========================================
   WERK PREVIEW (homepage)
   ========================================== */

.work-preview {
  padding: 120px 4rem;
  border-top: 1px solid var(--border);
}

.work-preview-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 6rem;
  align-items: center;
}

.work-preview-left .section-label {
  margin-bottom: 1.2rem;
}

.work-preview-title {
  font-size: clamp(26px, 3.5vw, 44px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: var(--text);
  margin-bottom: 2rem;
}

.work-preview-btn {
  margin-top: 0.5rem;
}

.work-preview-thumbs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.work-thumb {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16/10;
  border: 1px solid var(--border);
  text-decoration: none;
  display: block;
  background: var(--panel);
}

.work-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  opacity: 0.7;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.work-thumb:hover img {
  opacity: 1;
  transform: scale(1.04);
}

.work-thumb span {
  position: absolute;
  bottom: 10px;
  left: 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0,0,0,0.6);
}

body.light .work-preview {
  border-top-color: rgba(0,0,0,0.12);
}

body.light .work-preview-title {
  color: #111;
}

body.light .work-thumb img {
  opacity: 0.85;
}

body.light .work-thumb span {
  color: #fff;
}

@media (max-width: 768px) {
  .work-preview {
    padding: 80px 1.2rem;
  }

  .work-preview-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}


/* ==========================================
   STATEMENT / BRAND MESSAGE
   ========================================== */

.statement {
  padding: 150px 2rem;
  text-align: center;
}

.statement h2 {
  font-size: clamp(38px, 6vw, 78px);
  line-height: 1.1;
  letter-spacing: 0.05em;
  color: var(--text);
  transition: color 0.3s ease;
}

body.light .statement h2 {
  color: #111111;
}


/* ==========================================
   SERVICES / WHAT I DO
   ========================================== */

.services-new {
  max-width: 1100px;
  margin: 0 auto;
  padding: 100px 4rem;
}

.services-list {
  border-top: 1px solid var(--border);
}

.service-row {
  display: grid;
  grid-template-columns: 80px 260px 1fr;
  gap: 2rem;
  padding: 2.2rem 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
  transition: border-color 0.3s ease;
}

.service-row span {
  color: var(--muted);
  letter-spacing: 0.18em;
  font-size: 12px;
}

.service-row h3 {
  font-size: 28px;
  color: var(--text);
}

.service-row p {
  color: var(--muted);
  line-height: 1.7;
  max-width: 500px;
}

body.light .services-list,
body.light .service-row {
  border-color: rgba(0,0,0,0.12);
}

body.light .service-row span {
  color: rgba(0,0,0,0.5);
}

body.light .service-row h3 {
  color: #111111;
}

body.light .service-row p {
  color: rgba(0,0,0,0.65);
}


/* ==========================================
   CONTACT CTA
   ========================================== */

.contact-cta {
  max-width: 900px;
  margin: 0 auto;
  padding: 140px 4rem;
  text-align: center;
}

.contact-cta p {
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 1rem;
}

.contact-cta h2 {
  font-size: clamp(34px, 5vw, 60px);
  margin-bottom: 2rem;
  line-height: 1.2;
  color: var(--text);
}

.btn {
  display: inline-block;
  padding: 16px 36px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.14em;
  transition: all 0.3s ease;
}

.btn:hover {
  background: var(--text);
  color: var(--bg);
  transform: translateY(-2px);
}

body.light .contact-cta p {
  color: rgba(0,0,0,0.5);
}

body.light .contact-cta h2 {
  color: #111111;
}

body.light .btn {
  border-color: rgba(0,0,0,0.2);
  color: #111111;
}

body.light .btn:hover {
  background: #111111;
  color: #ffffff;
}


/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 768px) {

  .work-section,
  .services-new,
  .contact-cta {
    padding-left: 1.2rem;
    padding-right: 1.2rem;
  }

  .service-row {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
}

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

.footer {
  background: var(--bg);
  padding: 3rem 4rem;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.08em;
  border-top: 1px solid var(--border);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.footer-socials {
  display: flex;
  gap: 1.5rem;
}

.footer-socials a {
  color: var(--muted);
  font-size: 16px;
  transition: all 0.3s ease;
}

.footer-socials a:hover {
  color: var(--text);
  transform: translateY(-3px);
}

.footer-text {
  color: var(--muted);
  opacity: 0.8;
}

/* ==========================================
   LIGHT MODE COMPLETE FIX
   ========================================== */

html:has(body.light),
body.light {
  background: #f5f5f2 !important;
  background-color: #f5f5f2 !important;
  color: #111111 !important;
}

/* Alle hoofdsecties volledige breedte wit */
body.light .hero,
body.light .work-section,
body.light .statement,
body.light .services-new,
body.light .contact-cta,
body.light .footer {
  background: transparent !important;
  background-color: transparent !important;
}

/* Teksten */
body.light .section-label,
body.light .statement h2,
body.light .service-row h3,
body.light .contact-cta h2 {
  color: #111111 !important;
}

body.light .service-row span,
body.light .contact-cta p,
body.light .footer-text,
body.light .footer-socials a {
  color: rgba(0,0,0,0.55) !important;
}

/* Project kaarten — zie werk-sectie CSS hierboven */

/* Diensten lijnen */
body.light .services-list,
body.light .service-row {
  border-color: rgba(0,0,0,0.12) !important;
}

body.light .service-row p {
  color: rgba(0,0,0,0.65) !important;
}

/* Contact button */
body.light .btn {
  border-color: rgba(0,0,0,0.25) !important;
  color: #111111 !important;
}

body.light .btn:hover {
  background: #111111 !important;
  color: #ffffff !important;
}

/* Footer */
body.light .footer {
  border-top: 1px solid rgba(0,0,0,0.12) !important;
}

/* Belangrijk: voorkom donkere achtergrond van eerdere gradients */
body.light::before,
body.light::after {
  background: #f5f5f2 !important;
}

@media (max-width: 768px) {

  .nav {
    padding: 28px 24px;
    align-items: flex-start;
  }

  .logo img {
    height: 54px;
  }

  .menu {
    display: flex;
    gap: 26px;
  }

  .menu a {
    margin-left: 0;
    font-size: 13px;
    letter-spacing: 0.04em;
  }

  .hero {
    height: 100svh;
    min-height: 100svh;
    padding: 0 22px;
    justify-content: center;
    align-items: center;
    overflow: hidden;
  }

  .hero-content {
    width: 100%;
    max-width: 100%;
    text-align: center;
    transform: translateY(40px);
  }

  .hero-sub {
    left: 0 !important;
    font-size: 11px;
    letter-spacing: 0.28em;
    margin-bottom: 10px;
    text-align: center;
  }

  .hero-title {
    font-size: clamp(48px, 14.5vw, 68px);
    line-height: 0.92;
    letter-spacing: 0.02em;
    white-space: nowrap;
    text-align: center;
  }

  .hero-role {
    right: 0 !important;
    font-size: 10.5px;
    letter-spacing: 0.17em;
    line-height: 1.5;
    margin-top: 14px;
    text-align: center;
  }

.theme-switch {
  display: block;
  position: absolute;
  right: 22px;
  bottom: 105px;
  z-index: 50;
  transform: scale(0.9);
}

@media (max-width: 768px) {
  .socials {
    display: none !important;
  }
}