/* ===== Reset & Basis ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --bg: #0f172a;
  --bg-card: #1e293b;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --border: #334155;
  --success: #22c55e;
  --radius: 12px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background: linear-gradient(180deg, #1e1b4b 0%, var(--bg) 55%, var(--bg) 100%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Navbar ===== */
.navbar {
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.logo img {
  height: 36px;        /* pas dit aan voor groter/kleiner logo */
  width: auto;
  display: block;
  border-radius: 6px;  /* optioneel: afgeronde hoeken */
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

/* ===== Hero ===== */
.hero {
  padding: 6rem 0 4rem;
  text-align: center;
  background: transparent;
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #a5b4fc, #c4b5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s, transform 0.15s;
}

.btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* ===== Features ===== */
.features {
  padding: 4rem 0;
}

.features h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2.5rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  transition: transform 0.2s, border-color 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
}

.feature-card .icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ===== API Demo ===== */
.api-demo {
  padding: 3rem 0 5rem;
  text-align: center;
}

.api-demo h2 {
  margin-bottom: 0.5rem;
}

.api-demo p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.api-result {
  margin-top: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: left;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.9rem;
  color: #a5b4fc;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  min-height: 60px;
  white-space: pre-wrap;
  display: none;
}

.api-result.show {
  display: block;
}

/* ===== Page content ===== */
.page {
  flex: 1;
  padding: 3rem 0 5rem;
  background: transparent;
}

.page h1 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.page h2 {
  font-size: 1.4rem;
  margin: 2rem 0 0.75rem;
}

.page p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.checklist {
  list-style: none;
  margin: 1rem 0 1.5rem;
}

.checklist li {
  padding: 0.4rem 0;
  padding-left: 1.75rem;
  position: relative;
  color: var(--text-muted);
}

.checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: bold;
}

.code-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.9rem;
  color: #a5b4fc;
  margin: 1rem 0;
  overflow-x: auto;
}

/* ===== Contact form ===== */
.contact-form {
  max-width: 500px;
  margin-top: 2rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #64748b;
}

.form-result {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: 8px;
  display: none;
}

.form-result.success {
  display: block;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid var(--success);
  color: var(--success);
}

.form-result.error {
  display: block;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid #ef4444;
  color: #f87171;
}

/* ===== 404 ===== */
.error-page {
  text-align: center;
  padding-top: 6rem;
}

.error-page h1 {
  font-size: 6rem;
  font-weight: 800;
  background: linear-gradient(135deg, #a5b4fc, #c4b5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

/* ===== Footer ===== */
footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: auto;
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
  .hero h1 {
    font-size: 2rem;
  }

  .nav-links {
    gap: 1rem;
  }

  .error-page h1 {
    font-size: 4rem;
  }
}

/* ===== Full-page Hero (Home) ===== */
.hero-full {
  min-height: calc(100vh - 140px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 0;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-name {
  font-size: clamp(3.5rem, 10vw, 6.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.6rem;
  background: linear-gradient(135deg, #a5b4fc, #c4b5fd, #e9d5ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title {
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0;
  letter-spacing: -0.01em;
}

.hero-spacer {
  height: 2.5rem;
}

/* ===== Fade-up animations ===== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-up {
  opacity: 0;
  animation: fadeUp 0.7s ease-out forwards;
  animation-delay: var(--delay, 0s);
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .animate-fade-up {
    opacity: 1;
    animation: none;
    transform: none;
  }
}

/* ===== Socials ===== */
.socials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
  max-width: 800px;
}

.social-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.25rem;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
}

.social-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  background: #1e293b;
}

.social-icon {
  font-size: 2.2rem;
  margin-bottom: 0.75rem;
}

.social-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}

.social-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}





/* ===== Home: tekst links, logo RECHTS MIDDEN ===== */
.hero-full {
  min-height: calc(100vh - 140px);
  display: flex;
  align-items: center;
  padding: 2rem 0 3rem;
  position: relative;
  overflow: visible;
  width: 100%;
}

.hero-row {
  display: flex;
  align-items: center;          /* verticaal midden */
  justify-content: space-between;
  width: 100%;
  max-width: none;              /* volle breedte */
  margin: 0;
  padding: 0 3vw 0 4vw;
  gap: 2rem;
  box-sizing: border-box;
}

.hero-text {
  flex: 0 1 520px;
  text-align: left;
  max-width: 520px;
  z-index: 2;
}

.hero-name {
  font-size: clamp(4rem, 12vw, 7.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #f0abfc, #c4b5fd, #a5b4fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0;
  letter-spacing: -0.01em;
}

.hero-desc {
  margin-top: 1.75rem;
  margin-bottom: 2rem;
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 420px;
}

.hero-text .btn {
  margin-top: 0;
}

/* Logo: rechts midden, helemaal in beeld */
.hero-logo-wrap {
  flex: 0 0 auto;
  margin-left: auto;            /* duwt naar rechts */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  padding-right: 1vw;
}

.hero-logo {
  width: min(460px, 38vw);
  height: min(460px, 38vw);
  object-fit: cover;
  border-radius: 50%;
  opacity: 0.45;
  filter: drop-shadow(0 0 50px rgba(192, 132, 252, 0.3));
  display: block;
  user-select: none;
  pointer-events: none;
}

@media (max-width: 800px) {
  .hero-row {
    flex-direction: column;
    align-items: flex-start;
    padding: 0 1.25rem;
  }
  .hero-logo-wrap {
    margin-left: 0;
    align-self: center;
    padding-right: 0;
    margin-top: 1.5rem;
  }
  .hero-logo {
    width: min(280px, 70vw);
    height: min(280px, 70vw);
    opacity: 0.35;
  }
  .hero-name {
    font-size: clamp(3.2rem, 14vw, 5rem);
  }
}

/* ===== Projecten ===== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
}

.project-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #1e1b4b;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-image-placeholder {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  opacity: 0.4;
}

.project-image.no-image .project-image-placeholder {
  display: flex;
}

.project-body {
  padding: 1.25rem 1.35rem 1.5rem;
}

.project-body h2 {
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.project-body p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ===== Projecten titel + intro ===== */
.projects-title {
  font-size: clamp(3.2rem, 10vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin: 0 0 1.5rem;
  background: linear-gradient(135deg, #f0abfc, #c4b5fd, #a5b4fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.projects-intro {
  background: rgba(30, 27, 75, 0.6);
  border: 1px solid rgba(192, 132, 252, 0.35);
  border-radius: 14px;
  padding: 1.5rem 1.75rem;
  margin-bottom: 2.75rem;
  max-width: 720px;
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.08);
}

.projects-intro p {
  margin: 0;
  color: #e2e8f0;
  font-size: 1.1rem;
  line-height: 1.75;
}
