/* =======================
   Root Variabelen
   ======================= */
:root {
  --primary: #612ca5;
  --primary-dark: #5edebc;
  --secondary: #4b5563;
  --light: #f3f4f6;
  --dark: #1f2937;
  --accent: #5edebc;
  --comet-color: #9b59ff;
  --comet-core: #80dcfd;
  --tail-length: 360px;
  --duration: 1800ms;

  /* Licht thema */
  --bg: #f0fffd;
  --card: #ffffff;
  --text: #0f1721;
  --muted: #55607a;
  --accent-contrast: #ffffff;

  /* Donker thema */
  --bg-dark: #0b1020;
  --card-dark: #0f1726;
  --text-dark: #e6eef8;
  --muted-dark: #9aa6c2;
  --accent-dark: #5edebc;
  --accent-contrast-dark: #0b1020;

  /* Animatie + maat */
  --transition-fast: 200ms;
  --transition-slow: 350ms;
  --radius: 12px;
  --toggle-size: 48px;

  /* Hero kleuren */
  --bg-color: #fff;
  --text-color: #222;
  --bg-color-hero: #ffffff;
  --text-color-hero: #222222;
}

html[data-theme="dark"] {
  --bg: #0b1020;
  --card: #0f1726;
  --text: #e6eef8;
  --muted: #9aa6c2;
  --accent: #5edebc;
  --accent-contrast: #0b1020;
  --bg-color: #1a1a1a;
  --text-color: #f0f0f0;
  --bg-color-hero: #1e1e1e;
  --text-color-hero: #f0f0f0;
}

/* =======================
   Algemene Stijlen
   ======================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
	max-width: 100%;
  line-height: 1.6;
  color: var(--dark);
  background-color: var(--light);
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: background-color 0.5s ease, color 0.5s ease; 
	overflow-x: hidden;
}

body {
  scrollbar-width: none; /* Firefox */
}
body::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

body, html {
  width: 100%;
  overflow-x: visible !important;
  overflow-y: visible !important;
	overflow: visible !important;
}




#hero {
  background-color: var(--bg-color-hero);
  color: var(--text-color-hero);
}

/* canvas voor sterren */
#stars {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  overflow-x: hidden;
  pointer-events: none;
  z-index: 0;
}
html[data-theme="dark"] #stars {
  opacity: 1;
  transition: opacity 0.5s;
}
html:not([data-theme="dark"]) #stars {
  opacity: 0;
}

/* =======================
   Komeet (alleen dark mode)
   ======================= */
/* Verberg standaard de komeet en sparks */
.comet-wrap,
.comet,
.spark {
  display: none !important;
}
/* Toon alleen in dark mode */
html[data-theme="dark"] .comet-wrap,
html[data-theme="dark"] .comet,
html[data-theme="dark"] .spark {
  display: block !important;
}

html[data-theme="dark"] .comet-wrap {
  contain: layout paint;
}

/* Komeet container positie in dark mode */
html[data-theme="dark"] .comet-wrap {
  position: absolute;
  top: 24vh;
  left: -15vw;
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 10;
}
/* Komeet kern */
.comet {
  position: absolute;
  left: 0;
  top: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--comet-core), var(--comet-color));
  box-shadow: 0 0 18px rgba(177, 86, 238, 0.5), 0 0 40px rgba(155,89,255,0.18);
  z-index: 2;
  animation: fly-right var(--duration, 1600ms) cubic-bezier(.18,.82,.21,1);
}
/* Staart van de komeet */
.comet::before {
  content: '';
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  height: 6px;
  width: var(--tail-length, 360px);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(214,184,255,0.0) 0%, rgba(214,184,255,0.25) 20%, rgba(155,89,255,0.5) 50%, rgba(155,89,255,0.05) 95%);
  filter: blur(6px);
  opacity: 0.95;
  z-index: 1;
}
/* Sparkles/deeltjes voor de staart */
.spark {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--comet-color);
  box-shadow: 0 0 14px rgba(155,89,255,0.6);
  opacity: 0.9;
  pointer-events: none;
  z-index: 0;
  animation: spark-fade 1.2s linear forwards;
}
/* Animaties */
@keyframes fly-right {
  0%   { transform: translateX(-40vw) translateY(0) rotate(-12deg); opacity: 0; }
  8%   { opacity: 1; }
  48%  { opacity: 1; }
  100% { transform: translateX(120vw) translateY(20px) rotate(8deg); opacity: 0; }
}
@keyframes spark-fade {
  0%   { opacity: 1; }
  80%  { opacity: 0.7; }
  100% { opacity: 0; transform: scale(0.7);}
}
/* Responsief voor komeet */
@media (max-width:640px){
  .comet { width:14px; height:14px }
  .comet::before{ height:5px }
}

/* =======================
   Theme Toggle
   ======================= */
.toggle-wrap{
  display:inline-grid;
  grid-auto-flow:column;
  gap:12px;
  align-items:center;
}
.theme-toggle{
  order: 3;
  margin-left: 1rem;
  width: var(--toggle-size);
  height: calc(var(--toggle-size) / 2);
  padding:1px;
  border-radius:999px;
  background: color-mix(in srgb, var(--muted), transparent 40%);
  border: none;
  display: flex;
  align-items: center;
  position: relative;
  cursor: pointer;
  transition: background var(--transition-fast) ease;
}
.theme-toggle:focus{
  outline: 3px solid color-mix(in srgb, var(--accent), transparent 60%);
  outline-offset: 4px;
}
.knob {
  width: calc(var(--toggle-size) / 2);
  height: calc(var(--toggle-size) / 2);
  border-radius: 50%;
  background: var(--light);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  color: var(--primary);
}
.theme-toggle[aria-pressed="true"] .knob {
  background: var(--primary-dark);
  transform: translateX(calc(var(--toggle-size) / 2));
}
:root[data-theme='dark'] .knob{
  transform: translateX(calc(var(--toggle-size) / 2));
  background: var(--accent);
  color: var(--accent-contrast);
}
.muted{ color:var(--muted); }

/* =======================
   Buttons & Links
   ======================= */
a {
  text-decoration: none;
  color: var(--primary);
  transition: all 0.3s ease;
}
a:hover {
  color: var(--primary-dark);
}
.btn {
  display: inline-block;
  padding: 12px 28px;
  background-color: var(--primary);
  color: white;
  border-radius: 5px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}
.btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  color: white;
}
.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}
.btn-outline:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  color: white;
}

/* =======================
   Containers & Layout
   ======================= */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}
section {
  padding: 80px 0;
}
.section-title {
  text-align: center;
  margin-bottom: 50px;
  font-size: 2.5rem;
  color: var(--dark);
  position: relative;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--primary);
  border-radius: 2px;
}

/* =======================
   Header & Navigatie
   ======================= */
header {
	
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
	max-width: 100vw;
	
  z-index: 999;
  background-color: rgba(255, 255, 255, 0.95);
  border-bottom: #5edebc 2px solid;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  padding: 15px 0;
  transition: all 0.3s ease;
}
header.sticky {
  padding: 10px 0;
}
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}
.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
}
.nav-menu {
  display: flex;
  list-style: none;
}
.nav-item {
  margin-left: 30px;
}
.nav-link {
  color: var(--dark);
  font-weight: 500;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width 0.3s ease;
}
.nav-link:hover::after {
  width: 100%;
}
.hamburger {
  display: none;
	position: absolute;
	top: 1rem;
	right: 1rem;
	z-index: 1000;
  cursor: pointer;
	position: absolute;
	top:1.5rem;
	right: 2rem;
	z-index: 1000;
}
.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: var(--accent-dark);
  transition: all 0.3s ease;
}

/* =======================
   Hero Sectie
   ======================= */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #e4fafb 15%, #c9bcec 100%);
  position: relative;
  overflow: hidden;
}
.hero-content {
  max-width: 600px;
  z-index: 1;
}
.hero-title {
  font-size: 3.5rem;
  margin-bottom: 20px;
  color: var(--dark);
  line-height: 1.2;
  font-weight: 700;
}
.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 30px;
  color: var(--secondary);
  font-weight: 500;
  line-height: 1.4;
}

.hero-buttons {
  display: flex;
  gap: 15px;
}
.hero-image {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 45%;
  z-index: 0;
}
.hero-image path {
  animation: pulseShadow 3s ease-in-out infinite;
  transform: scale(1.01);
}
@keyframes pulseShadow {
  0% { filter: drop-shadow(0px 4px 8px rgba(0, 0, 0, 0.3)); }
  50% { filter: drop-shadow(0px 6px 12px rgba(0, 0, 0, 0.5)); }
  100% { filter: drop-shadow(0px 4px 8px rgba(0, 0, 0, 0.3)); }
}

/* =======================
   Over Mij Sectie
   ======================= */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.about-image {
  border-radius: 80px;
  border: 5px solid transparent;
  background: linear-gradient(135deg, #612ca5 0%, #5edebc 100%);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}
.about-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}
.about-image:hover img {
  transform: scale(1.05);
}
.about-text h3 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--dark);
}
.skills {
  margin-top: 30px;
}
.skill-item {
  margin-bottom: 15px;
}
.skill-name {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
  font-weight: 500;
}
.skill-bar {
  height: 10px;
  background-color: #e5e7eb;
  border-radius: 5px;
  overflow: hidden;
}
.skill-progress {
  height: 100%;
  background-color: var(--primary-dark);
  border-radius: 5px;
  position: relative;
  width: 0;
  transition: width 1s ease;
}

/* =======================
   Projecten Sectie
   ======================= */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}
.project-card {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}
.project-image {
  height: 200px;
  overflow: hidden;
}
.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  filter: brightness(0.9);
}
.project-card:hover .project-image img {
  transform: scale(1.1);
}
.project-info {
  padding: 20px;
}
.project-title {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--dark);
}
.project-description {
  color: var(--secondary);
  margin-bottom: 15px;
}
.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 15px;
}
.tech-tag {
  background-color: var(--light);
  color: var(--primary);
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}
.project-links {
  display: flex;
  gap: 15px;
}

/* =======================
   Contact Sectie
   ======================= */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 25px;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
}
.contact-icon {
  width: 50px;
  height: 50px;
  background-color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
}
i {
  font-size: 24px;
  color: var(--primary-dark);
  margin-right: 0px;
}
.contact-text h4 {
  margin-bottom: 5px;
  color: var(--dark);
}
.contact-form {
  display: none;
  background-color: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.form-group {
  margin-bottom: 20px;
}
.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--dark);
}
.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

/* =======================
   Footer
   ======================= */
footer {
  background-color: var(--dark);
  color: white;
  padding: 50px 0 20px;
}
.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}
.footer-logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: white;
  margin-bottom: 15px;
  display: inline-block;
}
.footer-about {
  margin-bottom: 20px;
}
.social-links {
  display: flex;
  gap: 15px;
}
.social-link {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}
.social-link:hover {
  background-color: var(--primary);
  transform: translateY(-5px);
}
.footer-heading {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: white;
  position: relative;
  padding-bottom: 10px;
}
.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--primary);
}
.footer-links {
  list-style: none;
}
.footer-links li {
  margin-bottom: 10px;
}
.footer-links a {
  color: #d1d5db;
  transition: all 0.3s ease;
}
.footer-links a:hover {
  color: white;
  padding-left: 5px;
}
.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #9ca3af;
  font-size: 0.9rem;
}

/* =======================
   Top Button
   ======================= */
#topBtn{
  position: fixed;
  right: clamp(1rem, 2vw, 2rem);
	left: auto;
	inset-inline-end: 2rem;
  max-inline-size: 3.6rem;
	max-width: 100%;
	overflow: hidden;
	box-sizing: content-box;
	overflow-x: hidden;
  bottom: 2rem;
  z-index: 1000;
  width: 2rem;
  height: 3.6rem;
  border-radius: 999px;
  border: none;
  background: rgba(225, 225, 225, 0.1);
  color: white;
  font-size: 1.6rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  cursor: pointer;
	pointer-events: auto;
  transform: translateY(16px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 240ms ease, transform 240ms ease, visibility 240ms;
}


#topBtn:focus {
  outline: 3px solid rgba(255, 255, 255, 0.25);
  outline-offset: 3px;
}
#topBtn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
@media (max-width:420px){
  #topBtn{ right: 1rem; bottom: 1rem; width:3.2rem; height:3.2rem; font-size:1.4rem; }
}
@media (max-width: 768px) {
  #topBtn {
    right: 1rem;
    bottom: 1.5rem;
	width: 3.2rem;
	  height: 3.2rem;
	  font-size: 1.4rem;
  }
}


/* =======================
   Responsive Design
   ======================= */
@media (max-width: 992px) {
  .hero-title { font-size: 2.8rem; }
  .about-content,
  .contact-container { grid-template-columns: 1fr; }
  .hero-image { width: 50%; opacity: 0.5; }
}
@media (max-width: 768px) {
  .hamburger { display: block; }
  .hamburger.active .bar:nth-child(2) { opacity: 0; }
  .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    gap: 0;
    flex-direction: column;
    background-color: white;
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    padding: 20px 0;
  }
  .nav-item { margin: 16px 0; }
  .nav-menu.active { left: 0; }
  .hero-title { font-size: 2.5rem; }
  .hero-subtitle { font-size: 1.2rem; }
  .hero-buttons { flex-direction: column; gap: 10px; }
  .btn { width: 100%; text-align: center; }
  .section-title { font-size: 2rem; }
  .hero-image { display: none; }
}
@media (max-width: 480px) {
  .hero-title { font-size: 2rem; }
  .section-title { font-size: 1.8rem; }
  .project-card { max-width: 100%; }
}

/* =======================
   Dark Mode Specifiek
   ======================= */
html[data-theme="dark"] body,
html[data-theme="dark"] .background,
html[data-theme="dark"] .text,
html[data-theme="dark"] .container,
html[data-theme="dark"] .section,
html[data-theme="dark"] .section-title,
html[data-theme="dark"] header,
html[data-theme="dark"] .nav-container,
html[data-theme="dark"] .hero-subtitle,
html[data-theme="dark"] .container .hero-content,
html[data-theme="dark"] .hero,
html[data-theme="dark"] .hero-content,
html[data-theme="dark"] .hero-title,
html[data-theme="dark"] .hero-subtitle,
html[data-theme="dark"] #home,
html[data-theme="dark"] .about-content,
html[data-theme="dark"] .contact-container,
html[data-theme="dark"] .contact-form,
html[data-theme="dark"] .form-control,
html[data-theme="dark"] .form-label,
html[data-theme="dark"] .form-control:hover,
html[data-theme="dark"] .form-control:focus,
html[data-theme="dark"] footer,
html[data-theme="dark"] .footer-content,
html[data-theme="dark"] .footer-links a,
html[data-theme="dark"] .copyright,
html[data-theme="dark"] #projects,
html[data-theme="dark"] .projects-grid,
html[data-theme="dark"] .project-card,
html[data-theme="dark"] .project-info,
html[data-theme="dark"] .project-title,
html[data-theme="dark"] .project-description,
html[data-theme="dark"] .project-tech .tech-tag,
html[data-theme="dark"] .project-section,
html[data-theme="dark"] .contact-info .contact-item,
html[data-theme="dark"] .contact-info .contact-item .contact-text h4,
html[data-theme="dark"] .contact-info .contact-item .contact-text p,
html[data-theme="dark"] .contact-icon,
html[data-theme="dark"] .about-text h3,
html[data-theme="dark"] .about-text p,
html[data-theme="dark"] .skill-name,
html[data-theme="dark"] .skill-bar,
html[data-theme="dark"] .navbar,
html[data-theme="dark"] .nav-menu,
html[data-theme="dark"] .nav-link,
html[data-theme="dark"] main,
html[data-theme="dark"] .projects,
html[data-theme="dark"] .about,
html[data-theme="dark"] .contact,
html[data-theme="dark"] .logo,
html[data-theme="dark"] .card,
html[data-theme="dark"] section {
  background-color: #1e1e1e !important;
  color: #f0f0f0 !important;
}
html[data-theme="dark"] .card {
  background-color: #1e1e1e;
  color: #f0f0f0;
}
html[data-theme="dark"] .projects-section {
  background-color: #1e1e1e !important;
  color: #f0f0f0 !important;
}
html[data-theme="dark"] .hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color:#1e1e1e;
  pointer-events: none;
}

.grecaptcha-badge {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  position: absolute !important;
	transform: scale(0.8); /* Pas eventueel aan tot het past */
  transform-origin: bottom right;
  right: 10px !important;
  bottom: 10px !important;
  z-index: 9999;
}


iframe[src*="google.com/recaptcha"] {
  max-width: 100%;
  display: block;
}




