/* ========== Basis variabelen & thema ========== */
:root{
  /* Donker (default) */
  --bg:#0f1115; --panel:#151923; --text:#e9ecf3; --muted:#b5b9c6; --line:#262c3b;
  --accent:#6aa6ff; --ok:#52d196; --todo:#f5c15c;
  --wrap:1100px; --radius:16px; --shadow:0 10px 28px rgba(0,0,0,.28);
}

/* Licht thema via OS-voorkeur */
@media (prefers-color-scheme: light){
  :root{
    --bg:#f5f7fb; --panel:#ffffff; --text:#20222b; --muted:#5f6575; --line:#dfe3ee;
    --accent:#4c6ef5; --ok:#2fb17f; --todo:#e6b24d;
    --shadow:0 10px 28px rgba(0,0,0,.12);
  }
}

/* ========== Reset & basis ========== */
*{ box-sizing:border-box }
html,body{ margin:0; padding:0 }
body{
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
a{ color: inherit; text-decoration: none }

/* ========== Navigatie ========== */
.nav{
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 16px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.logo{ font-weight: 700 }
.menu{ display: flex; gap: .75rem; list-style: none; margin:0; padding:0 }
.menu a{
  padding:.45rem .8rem; border-radius:999px; transition: background .18s ease;
}
.menu a:hover{ background: color-mix(in oklab, var(--accent) 14%, transparent) }

/* ========== Profielfragment (hero) ========== */
.profile-hero{
  padding: 14px 0 28px;
  background:
    radial-gradient(1100px 380px at 50% -120px,
      color-mix(in oklab, var(--accent) 10%, transparent) 0,
      transparent 70%
    ),
    var(--bg);
}
.profile-intro{
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px 8px;
  display: flex; flex-wrap: wrap; gap: 20px;
  align-items: center; justify-content: center;
  text-align: center;
}

/* Avatar met draaiende ring (kleur iets feller/donkerder) */
.profile-avatar{
  --size:160px;
  --ring:8px;
  position:relative; display:inline-block;
  width:var(--size); height:var(--size);
  padding:var(--ring); border-radius:50%;
  transition: transform .45s ease; /* schaal ring + foto samen */
}
.profile-avatar:hover{ transform: scale(1.06) }

.profile-avatar .ring{
  position:absolute; inset:0; border-radius:50%;
  background: conic-gradient(
    from 0deg,
    #06132a 0%,
    #0b2753 22%,
    #174a92 48%,
    #0b2753 74%,
    #06132a 100%
  );
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - var(--ring)), #000 0);
          mask: radial-gradient(farthest-side, transparent calc(100% - var(--ring)), #000 0);
  filter: drop-shadow(0 6px 18px rgba(0,0,0,.35));
  will-change: transform;
  transform: rotate(0turn); /* JS start hierop door */
}

/* Fallback keyframes voor wanneer JS/WAAPI ontbreekt */
@keyframes spin { to { transform: rotate(1turn); } }

.profile-avatar img{
  position:relative; z-index:1; width:100%; height:100%;
  border-radius:50%; object-fit:cover; display:block;
}
@media (prefers-reduced-motion: reduce){
  .profile-avatar{ transition:none }
}


/* Tekst naast/bij avatar */
.profile-text h1{
  margin: 0 0 .6rem;
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  line-height: 1.2;
}
.profile-text h1 span{ color: var(--accent) }
.profile-text p{
  margin: 0 0 1.1rem;
  color: var(--muted);
  font-size: 1.05rem;
}
.cta{
  display:inline-block; background: var(--text); color: var(--bg);
  font-weight:600; padding:.7rem 1.6rem; border-radius:999px;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}
.cta:hover{ transform: translateY(-2px); box-shadow: 0 12px 24px rgba(0,0,0,.18) }

/* ========== Secties algemeen ========== */
.section{
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}
.section h2{
  margin: 12px 0; font-size: clamp(1.6rem, 2.6vw, 2rem);
  position: relative;
}
.section h2::after{
  content:""; display:block; width:64px; height:3px; margin-top:8px;
  background: linear-gradient(90deg, var(--accent), transparent);
  border-radius: 2px;
}

/* ========== Projecten + contact grid ========== */
.container{ max-width: var(--wrap); margin: 0 auto; padding: 20px }
.header-row{ margin-bottom: 10px }
.section-kop{ margin:0; font-size: clamp(28px, 3.2vw, 42px) }
.section-sub{ margin:.35rem 0 0; color: var(--muted) }

.cols{
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr 1fr minmax(260px, .85fr);
}
@media (max-width: 980px){ .cols{ grid-template-columns: 1fr } }

.kolom-kop{
  margin: 0 0 10px;
  font-size: clamp(20px, 2.2vw, 24px);
  position: relative; padding-bottom: 8px;
}
.kolom-kop::after{
  content:""; position:absolute; left:0; bottom:0;
  width:64px; height:3px; border-radius:2px;
  background: linear-gradient(90deg, var(--accent), transparent);
}
.kolom-kop.no-underline::after{ display:none }

/* ========== Cards ========== */
.card{
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  color: var(--text);
  box-shadow: var(--shadow);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.card:hover{
  transform: translateY(-3px);
  border-color: color-mix(in oklab, var(--accent) 45%, var(--line));
  box-shadow: 0 16px 36px rgba(0,0,0,.34);
}
.card + .card{ margin-top: 12px }

.card-head{
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-bottom: 8px;
}
.card-title{ margin:0; font-size: clamp(18px, 2vw, 22px) }
.card p{ margin:0; color: var(--muted); line-height: 1.65 }

/* Badges */
.badge{
  font-size: 12px; padding: 6px 10px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255,255,255,.04); color: var(--muted);
}
.badge-done{ color: var(--ok);   border-color: color-mix(in oklab, var(--ok) 55%, var(--line)) }
.badge-progress{ color: var(--accent); border-color: color-mix(in oklab, var(--accent) 60%, var(--line)) }
.badge-todo{ color: var(--todo); border-color: color-mix(in oklab, var(--todo) 60%, var(--line)) }

/* Contact aside */
.contact.card{ align-self: start; position: sticky; top: 16px }
.contact-list{ list-style: none; margin: 10px 0 0; padding: 0 }
.contact-list li{ margin-bottom: .55rem }
.contact-list a{ text-decoration: underline; text-underline-offset: 2px }

/* ========== Footer ========== */
.footer{
  text-align: center;
  padding: 24px 16px;
  color: var(--muted);
}
/* Buttons onder in */
  .discord-btn {
    background-color: #5865F2; /* Discord blauw */
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease;
  }

  .discord-btn:hover {
    background-color: #4752C4;
  }

  .discord-btn:active {
    background-color: #3C45A5;
  }

.contact-btn, .discord-btn {
  background-color: #5865F2;
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .2s ease;
  text-decoration: none;      /* zorgt dat <a> ook als knop oogt */
  display: inline-block;      /* idem */
}
.contact-btn:hover, .discord-btn:hover { background-color: #4752C4; }
.contact-btn:active, .discord-btn:active { background-color: #3C45A5; }
