/* ============================================================
   stijndv.cc — Material 3 Expressive
   Font: Plus Jakarta Sans · Icons: Material Symbols
   ============================================================ */

/* 1. GOOGLE FONTS IMPORT */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200');


/* 2. CUSTOM PROPERTIES — M3 TOKENS */
:root {
  /* — Color — */
  --md-sys-color-primary:                  #1a4a8a;
  --md-sys-color-on-primary:               #ffffff;
  --md-sys-color-primary-container:        #d4e3ff;
  --md-sys-color-on-primary-container:     #001b3d;

  --md-sys-color-secondary:                #535f70;
  --md-sys-color-on-secondary:             #ffffff;
  --md-sys-color-secondary-container:      #d7e3f7;
  --md-sys-color-on-secondary-container:   #0f1d2b;

  --md-sys-color-surface:                  #f8f9ff;
  --md-sys-color-surface-container-lowest: #ffffff;
  --md-sys-color-surface-container-low:    #f2f4fc;
  --md-sys-color-surface-container:        #edf1fb;
  --md-sys-color-surface-container-high:   #e3e8f5;
  --md-sys-color-surface-container-highest:#dde2ee;

  --md-sys-color-on-surface:               #191c22;
  --md-sys-color-on-surface-variant:       #42474f;
  --md-sys-color-outline:                  #72787f;
  --md-sys-color-outline-variant:          #c2c7d0;
  --md-sys-color-error:                    #ba1a1a;

  /* — Shape — */
  --md-sys-shape-extra-small:  4px;
  --md-sys-shape-small:        8px;
  --md-sys-shape-medium:       16px;
  --md-sys-shape-large:        24px;
  --md-sys-shape-extra-large:  28px;
  --md-sys-shape-full:         9999px;

  /* — Elevation (box-shadows) — */
  --md-sys-elevation-1: 0 1px 2px rgba(0,0,0,.08), 0 1px 3px 1px rgba(0,0,0,.06);
  --md-sys-elevation-2: 0 1px 2px rgba(0,0,0,.10), 0 2px 6px 2px rgba(0,0,0,.08);
  --md-sys-elevation-3: 0 4px 8px 3px rgba(0,0,0,.08), 0 1px 3px rgba(0,0,0,.10);

  /* — Motion — */
  --md-sys-motion-easing-emphasized: cubic-bezier(0.2, 0, 0, 1.0);
  --md-sys-motion-duration-short:    200ms;
  --md-sys-motion-duration-medium:   300ms;
  --md-sys-motion-duration-long:     500ms;

  /* — Typography — */
  --md-sys-typescale-font: 'Plus Jakarta Sans', system-ui, sans-serif;
}


/* 3. RESET & BASE */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--md-sys-typescale-font);
  background-color: var(--md-sys-color-surface);
  color: var(--md-sys-color-on-surface);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}


/* 4. TYPOGRAPHY UTILITIES */
.display-large {
  font-size: clamp(2.5rem, 7vw, 3.5625rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.25px;
}

.display-medium {
  font-size: clamp(2rem, 5vw, 2.8125rem);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: 0;
}

.display-small {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 600;
  line-height: 1.22;
}

.headline-large {
  font-size: clamp(1.625rem, 4vw, 2rem);
  font-weight: 600;
  line-height: 1.25;
}

.headline-medium {
  font-size: clamp(1.375rem, 3vw, 1.75rem);
  font-weight: 600;
  line-height: 1.29;
}

.title-large {
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.27;
}

.title-medium {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.15px;
}

.body-large {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.5px;
}

.body-medium {
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.43;
  letter-spacing: 0.25px;
}

.label-large {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.43;
  letter-spacing: 0.1px;
}

.label-medium {
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.33;
  letter-spacing: 0.5px;
}


/* 5. LAYOUT */
.container {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 24px;
}

section {
  padding-block: 96px;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--md-sys-color-primary);
  margin-bottom: 12px;
}

.section-title {
  color: var(--md-sys-color-on-surface);
  margin-bottom: 40px;
}


/* 6. COMPONENTS */

/* — Material Symbol icon utility — */
.material-symbols-rounded {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
  line-height: 1;
  user-select: none;
}


/* — Navbar — */
.navbar {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 100;
  transition:
    background-color var(--md-sys-motion-duration-medium) var(--md-sys-motion-easing-emphasized),
    box-shadow var(--md-sys-motion-duration-medium) var(--md-sys-motion-easing-emphasized);
}

.navbar--scrolled {
  background-color: var(--md-sys-color-surface-container);
  box-shadow: var(--md-sys-elevation-1);
}

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

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.navbar__logo img {
  height: 36px;
  width: 36px;
  border-radius: var(--md-sys-shape-small);
  object-fit: contain;
}

.navbar__logo-text {
  font-size: 1rem;
  font-weight: 700;
  color: var(--md-sys-color-on-surface);
  letter-spacing: -0.3px;
}

.navbar__nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.navbar__link {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.1px;
  color: var(--md-sys-color-on-surface-variant);
  padding: 8px 16px;
  border-radius: var(--md-sys-shape-full);
  transition:
    color var(--md-sys-motion-duration-short) ease,
    background-color var(--md-sys-motion-duration-short) ease;
}

.navbar__link:hover {
  color: var(--md-sys-color-primary);
  background-color: var(--md-sys-color-primary-container);
}

/* Hamburger (mobile only) */
.navbar__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: var(--md-sys-shape-small);
  cursor: pointer;
  transition: background-color var(--md-sys-motion-duration-short) ease;
}

.navbar__hamburger:hover {
  background-color: var(--md-sys-color-surface-container-high);
}

.navbar__hamburger span {
  display: block;
  height: 2px;
  background-color: var(--md-sys-color-on-surface);
  border-radius: 2px;
  transition: transform var(--md-sys-motion-duration-medium) var(--md-sys-motion-easing-emphasized),
              opacity var(--md-sys-motion-duration-short) ease;
  transform-origin: center;
}

.navbar--open .navbar__hamburger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.navbar--open .navbar__hamburger span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.navbar--open .navbar__hamburger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav panel */
.navbar__mobile-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 16px 20px;
  background-color: var(--md-sys-color-surface-container);
  border-top: 1px solid var(--md-sys-color-outline-variant);
}

.navbar__mobile-nav .navbar__link {
  display: block;
  padding: 12px 16px;
}

.navbar--open .navbar__mobile-nav {
  display: flex;
}


/* — Buttons — */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: var(--md-sys-shape-full);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.1px;
  line-height: 1.43;
  position: relative;
  overflow: hidden;
  transition:
    box-shadow var(--md-sys-motion-duration-short) var(--md-sys-motion-easing-emphasized),
    transform var(--md-sys-motion-duration-short) var(--md-sys-motion-easing-emphasized),
    background-color var(--md-sys-motion-duration-short) ease;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}

.btn-filled {
  background-color: var(--md-sys-color-primary);
  color: var(--md-sys-color-on-primary);
}

.btn-filled:hover {
  box-shadow: var(--md-sys-elevation-2);
  transform: scale(1.02);
}

.btn-tonal {
  background-color: var(--md-sys-color-secondary-container);
  color: var(--md-sys-color-on-secondary-container);
}

.btn-tonal:hover {
  box-shadow: var(--md-sys-elevation-1);
  transform: scale(1.02);
}

/* Ripple */
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--ripple-x, 50%) var(--ripple-y, 50%),
    rgba(255,255,255,0.35) 0%,
    transparent 60%);
  opacity: 0;
  transform: scale(0);
  transition: transform 0.4s ease, opacity 0.4s ease;
  pointer-events: none;
}

.btn.ripple-active::after {
  opacity: 1;
  transform: scale(2.5);
  transition: transform 0.4s ease, opacity 0s;
}

/* Icon button */
.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--md-sys-shape-full);
  color: var(--md-sys-color-on-surface-variant);
  transition:
    background-color var(--md-sys-motion-duration-short) ease,
    color var(--md-sys-motion-duration-short) ease;
}

.btn-icon:hover {
  background-color: var(--md-sys-color-surface-container-highest);
  color: var(--md-sys-color-on-surface);
}

.btn-icon .material-symbols-rounded {
  font-size: 22px;
}


/* — Chips — */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: var(--md-sys-shape-small);
  background-color: var(--md-sys-color-surface-container-high);
  color: var(--md-sys-color-on-surface-variant);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.1px;
  border: 1px solid var(--md-sys-color-outline-variant);
  transition:
    background-color var(--md-sys-motion-duration-short) ease,
    border-color var(--md-sys-motion-duration-short) ease;
  cursor: default;
  user-select: none;
}

.chip:hover {
  background-color: var(--md-sys-color-surface-container-highest);
  border-color: var(--md-sys-color-outline);
}

.chip .material-symbols-rounded {
  font-size: 18px;
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 20;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Status chip (in cards) */
.chip-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--md-sys-shape-full);
  background-color: var(--md-sys-color-secondary-container);
  color: var(--md-sys-color-on-secondary-container);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.chip-status--dot::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--md-sys-color-primary);
}


/* — Cards — */
.card {
  background-color: var(--md-sys-color-surface-container-low);
  border-radius: var(--md-sys-shape-large);
  box-shadow: var(--md-sys-elevation-1);
  overflow: hidden;
  transition:
    box-shadow var(--md-sys-motion-duration-medium) var(--md-sys-motion-easing-emphasized),
    transform var(--md-sys-motion-duration-medium) var(--md-sys-motion-easing-emphasized);
}

.card:hover {
  box-shadow: var(--md-sys-elevation-3);
  transform: translateY(-4px);
}

.card__body {
  padding: 24px;
}

.card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--md-sys-shape-medium);
  background-color: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-primary);
  margin-bottom: 20px;
}

.card__icon .material-symbols-rounded {
  font-size: 28px;
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 28;
}

.card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.card__title {
  color: var(--md-sys-color-on-surface);
}

.card__description {
  color: var(--md-sys-color-on-surface-variant);
  margin-bottom: 20px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}


/* — Empty state — */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 64px 24px;
  text-align: center;
  color: var(--md-sys-color-on-surface-variant);
}

.empty-state__icon {
  font-size: 48px;
  color: var(--md-sys-color-outline);
  font-variation-settings: 'FILL' 0, 'wght' 200, 'GRAD' -25, 'opsz' 48;
}

.empty-state__text {
  font-size: 1rem;
  font-weight: 500;
  color: var(--md-sys-color-outline);
}


/* 7. SECTIONS */

/* — Hero — */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: 0;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: var(--md-sys-color-surface);
  overflow: hidden;
}

/* Gradient mesh blobs */
.hero__bg::before,
.hero__bg::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: blob-drift 20s ease-in-out infinite alternate;
}

.hero__bg::before {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #d4e3ff 0%, transparent 70%);
  top: -100px;
  left: -100px;
  animation-delay: 0s;
}

.hero__bg::after {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #dce8f8 0%, transparent 70%);
  bottom: -80px;
  right: -80px;
  animation-delay: -10s;
}

.hero__blob-mid {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #e8f0fe 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.45;
  top: 40%;
  left: 55%;
  transform: translate(-50%, -50%);
  animation: blob-drift 25s ease-in-out infinite alternate-reverse;
  pointer-events: none;
  z-index: 0;
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 720px;
  padding-inline: 24px;
  padding-top: 80px;
}

.hero__greeting {
  color: var(--md-sys-color-on-surface);
  margin-bottom: 20px;
}

.hero__greeting em {
  font-style: normal;
  color: var(--md-sys-color-primary);
}

.hero__subtitle {
  color: var(--md-sys-color-on-surface-variant);
  margin-bottom: 40px;
  max-width: 480px;
  margin-inline: auto;
  margin-bottom: 40px;
}

.hero__cta {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Scroll indicator */
.hero__scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--md-sys-color-outline);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  animation: scroll-hint-fade 3s ease-in-out 1s both;
}

.hero__scroll-hint .material-symbols-rounded {
  font-size: 24px;
  animation: chevron-bounce 2s ease-in-out infinite;
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}


/* — About — */
#about {
  background-color: var(--md-sys-color-surface-container-lowest);
}

.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.about__text-block {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about__bio {
  color: var(--md-sys-color-on-surface-variant);
  max-width: 480px;
}

.about__side {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-top: 20px;
}

.about__interests-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--md-sys-color-outline);
  margin-bottom: 12px;
}


/* — Projects — */
#projects {
  background-color: var(--md-sys-color-surface);
}


/* — Contact / Footer — */
#contact {
  background-color: var(--md-sys-color-surface-container);
  padding-block: 64px;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  text-align: center;
}

.footer__heading {
  color: var(--md-sys-color-on-surface);
  margin-bottom: 8px;
}

.footer__sub {
  color: var(--md-sys-color-on-surface-variant);
  max-width: 340px;
}

.footer__links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer__divider {
  width: 1px;
  height: 32px;
  background-color: var(--md-sys-color-outline-variant);
}

.footer__copy {
  color: var(--md-sys-color-outline);
}


/* 8. ANIMATIONS */

/* Scroll entry — base state (hidden) */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity var(--md-sys-motion-duration-long) var(--md-sys-motion-easing-emphasized),
    transform var(--md-sys-motion-duration-long) var(--md-sys-motion-easing-emphasized);
  transition-delay: calc(var(--stagger-index, 0) * 60ms);
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Blob animation */
@keyframes blob-drift {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(40px, -30px) scale(1.05); }
  66%  { transform: translate(-20px, 40px) scale(0.95); }
  100% { transform: translate(30px, 20px) scale(1.03); }
}

/* Scroll hint */
@keyframes chevron-bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(8px); }
}

@keyframes scroll-hint-fade {
  0%   { opacity: 0; transform: translateX(-50%) translateY(8px); }
  30%  { opacity: 1; transform: translateX(-50%) translateY(0); }
  80%  { opacity: 1; }
  100% { opacity: 0.6; }
}


/* 9. RESPONSIVE */

@media (max-width: 768px) {
  section {
    padding-block: 72px;
  }

  .navbar__nav {
    display: none;
  }

  .navbar__hamburger {
    display: flex;
  }

  .about__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about__side {
    padding-top: 0;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  section {
    padding-block: 56px;
  }

  .container {
    padding-inline: 16px;
  }

  .hero__content {
    padding-inline: 16px;
  }

  .hero__scroll-hint {
    bottom: 24px;
  }

  .footer__links {
    flex-direction: column;
    gap: 8px;
  }

  .footer__divider {
    display: none;
  }
}
