/* ============================================================
   ALPEREN DOGAN — PORTFOLIO
   Stijl: Apple-achtig, strak, veel witruimte, subtiele glow.
   Thema's worden gestuurd via [data-theme="dark"|"light"] op <html>.
   Pas kleuren centraal aan via de CSS-variabelen hieronder.
   ============================================================ */

/* ---------- THEMA: DARK (standaard) ---------- */
:root,
[data-theme="dark"] {
  --bg:            #07080d;
  --bg-alt:        #0c0e16;
  --surface:       rgba(255, 255, 255, 0.04);
  --surface-brd:   rgba(255, 255, 255, 0.09);
  --text:          #f4f6fb;
  --text-soft:     #a7adbe;
  --text-faint:    #6c7184;

  --accent:        #7c5cff;   /* paars */
  --accent-2:      #2d8cff;   /* blauw */
  --accent-soft:   rgba(124, 92, 255, 0.16);

  --nav-bg:        rgba(8, 9, 14, 0.7);
  --shadow:        0 20px 60px rgba(0, 0, 0, 0.45);

  --glow-1:        rgba(124, 92, 255, 0.55);
  --glow-2:        rgba(45, 140, 255, 0.45);
  --glow-3:        rgba(168, 85, 247, 0.40);
}

/* ---------- THEMA: LIGHT ---------- */
[data-theme="light"] {
  --bg:            #ffffff;
  --bg-alt:        #f5f6fa;
  --surface:       rgba(10, 12, 30, 0.025);
  --surface-brd:   rgba(10, 12, 30, 0.09);
  --text:          #0d0f1a;
  --text-soft:     #4b5063;
  --text-faint:    #8a8fa3;

  --accent:        #6d4aff;
  --accent-2:      #1f7bff;
  --accent-soft:   rgba(109, 74, 255, 0.10);

  --nav-bg:        rgba(255, 255, 255, 0.72);
  --shadow:        0 18px 50px rgba(20, 25, 60, 0.10);

  --glow-1:        rgba(124, 92, 255, 0.28);
  --glow-2:        rgba(45, 140, 255, 0.22);
  --glow-3:        rgba(168, 85, 247, 0.18);
}

/* ---------- RESET / BASIS ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px; /* ruimte onder vaste nav bij ankers */
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Zachte overgang bij thema-wissel */
  transition: background-color 0.4s ease, color 0.4s ease;
  overflow-x: hidden;
}

h1, h2, h3 {
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
}

p { margin: 0; }

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Accent gradient-tekst */
.gradient-text {
  background: linear-gradient(110deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ============================================================
   KNOPPEN
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
  will-change: transform;
}

.btn--primary {
  background: linear-gradient(120deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #fff;
  box-shadow: 0 10px 30px -8px var(--glow-1);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -8px var(--glow-1);
}

.btn--ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--surface-brd);
}
.btn--ghost:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.btn--full { width: 100%; }

/* ============================================================
   NAVIGATIE
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background-color 0.4s ease;
}
/* Subtiele rand zodra je scrollt (toegevoegd via JS) */
.nav.is-scrolled { border-bottom-color: var(--surface-brd); }

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav__logo {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.nav__links {
  display: flex;
  gap: 30px;
}
.nav__links a {
  font-size: 0.94rem;
  color: var(--text-soft);
  font-weight: 500;
  transition: color 0.2s ease;
}
.nav__links a:hover { color: var(--text); }

/* Container rechts in de nav (toggle + hamburger) */
.nav__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Thema-toggle knop */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--surface-brd);
  color: var(--text);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}
.theme-toggle:hover {
  transform: rotate(-15deg) scale(1.05);
  border-color: var(--accent);
}
/* Toon het juiste icoon per thema */
[data-theme="dark"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: none; }

/* ---------- HAMBURGER-KNOP (mobiel) ---------- */
.nav__burger {
  display: none;            /* standaard verborgen, alleen op mobiel zichtbaar */
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0 9px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--surface-brd);
  cursor: pointer;
}
.nav__burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.2s ease;
}
/* Animatie naar een "X" wanneer het menu open is */
.nav.is-open .nav__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__burger span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Donkere overlay achter het open mobiele menu */
.nav__overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.nav__overlay.is-open { opacity: 1; visibility: visible; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 0 80px;
  overflow: hidden;
}

/* Bewegende glow-blobs op de achtergrond */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.85;
}
.blob--1 {
  width: 520px; height: 520px;
  background: var(--glow-1);
  top: -120px; left: 50%;
  transform: translateX(-60%);
  animation: float1 16s ease-in-out infinite;
}
.blob--2 {
  width: 420px; height: 420px;
  background: var(--glow-2);
  bottom: -100px; left: 15%;
  animation: float2 20s ease-in-out infinite;
}
.blob--3 {
  width: 380px; height: 380px;
  background: var(--glow-3);
  top: 30%; right: 8%;
  animation: float3 18s ease-in-out infinite;
}

@keyframes float1 {
  0%, 100% { transform: translateX(-60%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(40px); }
}
@keyframes float2 {
  0%, 100% { transform: translateY(0) translateX(0); }
  50%      { transform: translateY(-50px) translateX(40px); }
}
@keyframes float3 {
  0%, 100% { transform: translateY(0) translateX(0); }
  50%      { transform: translateY(40px) translateX(-30px); }
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.hero__eyebrow {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 26px;
}

.hero__title {
  font-size: clamp(2.6rem, 7vw, 5rem);
  font-weight: 800;
}

.hero__subtitle {
  margin: 26px auto 0;
  max-width: 620px;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--text-soft);
}

.hero__cta {
  margin-top: 38px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  color: var(--text-faint);
  animation: bounce 2.2s ease-in-out infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(8px); }
}

/* ============================================================
   SECTIES (generiek)
   ============================================================ */
.section {
  padding: 110px 0;
  position: relative;
}
.section--alt { background: var(--bg-alt); }

.section__label {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section__title {
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  font-weight: 800;
  max-width: 720px;
}

.section__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}
.section__head .section__title { margin: 0 auto; }

.section__intro {
  margin-top: 18px;
  color: var(--text-soft);
  font-size: 1.1rem;
}

/* ============================================================
   OVER MIJ
   ============================================================ */
.over {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 64px;
  align-items: center;
}
.over__text p { color: var(--text-soft); margin-top: 18px; }
.over__text .section__title { margin-top: 4px; margin-bottom: 4px; }

.over__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--surface-brd);
  border-radius: 18px;
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.stat-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.stat-card__value {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.stat-card__label { font-size: 0.9rem; color: var(--text-soft); }

/* ============================================================
   KAARTEN (diensten)
   ============================================================ */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--surface-brd);
  border-radius: 22px;
  padding: 36px 30px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: var(--shadow);
}
.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  margin-bottom: 22px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  box-shadow: 0 10px 24px -8px var(--glow-1);
}
.card__title { font-size: 1.3rem; font-weight: 700; margin-bottom: 12px; }
.card__text { color: var(--text-soft); font-size: 1rem; }

/* ============================================================
   WERKWIJZE / TIJDLIJN
   ============================================================ */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}
.timeline__step {
  position: relative;
  padding: 30px 24px;
  background: var(--surface);
  border: 1px solid var(--surface-brd);
  border-radius: 20px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.timeline__step:hover { transform: translateY(-5px); border-color: var(--accent); }
.timeline__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-weight: 800;
  font-size: 1.05rem;
  color: #fff;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  margin-bottom: 18px;
}
.timeline__title { font-size: 1.12rem; font-weight: 700; margin-bottom: 10px; }
.timeline__text { color: var(--text-soft); font-size: 0.96rem; }

/* ============================================================
   PORTFOLIO
   ============================================================ */
.portfolio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.project {
  background: var(--surface);
  border: 1px solid var(--surface-brd);
  border-radius: 22px;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.project:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: var(--shadow);
}
/* Gekleurde placeholder-visuals (geen externe afbeeldingen nodig) */
.project__visual {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.85);
  position: relative;
}
.project__visual::after {
  /* subtiele ruis/overlay voor diepte */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.18), transparent 60%);
}
.project__visual span { position: relative; z-index: 1; }
/* Screenshot vult de visual netjes zodra je een <img> toevoegt */
.project__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
}
.project__visual--a { background: linear-gradient(135deg, #7c5cff, #2d8cff); }
.project__visual--b { background: linear-gradient(135deg, #c026d3, #7c5cff); }
.project__visual--c { background: linear-gradient(135deg, #2d8cff, #06b6d4); }

.project__body { padding: 24px 24px 28px; }
.project__title { font-size: 1.18rem; font-weight: 700; margin-bottom: 8px; }
.project__text { color: var(--text-soft); font-size: 0.96rem; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact__intro p { color: var(--text-soft); margin-top: 18px; }
.contact__intro .section__title { margin-bottom: 4px; }

.contact__direct {
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact__direct a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 500;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--surface-brd);
  transition: transform 0.2s ease, border-color 0.2s ease;
  width: fit-content;
}
.contact__direct a:hover { transform: translateX(4px); border-color: var(--accent); }
.contact__direct svg { color: var(--accent); flex-shrink: 0; }

/* Formulier */
.contact__form {
  background: var(--surface);
  border: 1px solid var(--surface-brd);
  border-radius: 24px;
  padding: 34px;
}
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-soft);
}
.field input,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--surface-brd);
  color: var(--text);
  font-family: inherit;
  font-size: 0.98rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field textarea { resize: vertical; }

/* Honeypot-veld: volledig onzichtbaar voor echte bezoekers */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin-top: 14px;
  font-size: 0.92rem;
  color: var(--accent);
  min-height: 1.2em;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--surface-brd);
  background: var(--bg-alt);
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}
.footer__copy { color: var(--text-soft); font-size: 0.92rem; }
.footer__links { display: flex; gap: 22px; }
.footer__links a {
  color: var(--text-soft);
  font-size: 0.92rem;
  transition: color 0.2s ease;
}
.footer__links a:hover { color: var(--accent); }

/* ============================================================
   SCROLL-ANIMATIES (reveal)
   Elementen met .reveal faden/sliden in zodra ze in beeld komen.
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .over,
  .contact { grid-template-columns: 1fr; gap: 40px; }
  .cards,
  .portfolio { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr 1fr; }
}

/* ---------- MOBIELE NAVIGATIE (hamburger) ---------- */
@media (max-width: 820px) {
  /* Hamburger wordt zichtbaar */
  .nav__burger { display: flex; }

  /* Het menu wordt een paneel dat van rechts inschuift */
  .nav__links {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 95;
    height: 100vh;
    width: min(78vw, 320px);
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 80px 32px;
    background: var(--bg-alt);
    border-left: 1px solid var(--surface-brd);
    box-shadow: var(--shadow);
    /* Standaard uit beeld geschoven */
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .nav.is-open .nav__links { transform: translateX(0); }

  .nav__links a {
    font-size: 1.15rem;
    padding: 10px 0;
  }
}

@media (max-width: 640px) {
  .section { padding: 80px 0; }
  .over__cards { grid-template-columns: 1fr 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .contact__form { padding: 26px; }
}

/* ============================================================
   TOEGANKELIJKHEID: respecteer "reduce motion"
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
