/* ============================================
   JELGER PORTFOLIO — STYLE.CSS
   ============================================ */

/* ---------- CSS RESET & BASE ---------- */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Syne:wght@400;500;600;700;800&display=swap');

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Colors */
  --bg: #12151c;
  --bg-card: #1a1d24;
  --bg-secondary: #1e2128;
  --fg: #e0ebe9;
  --fg-muted: #7c838f;
  --primary: #03bcca;
  --primary-dark: #029aa6;
  --primary-glow: rgba(3, 188, 202, 0.15);
  --primary-glow-strong: rgba(3, 188, 202, 0.3);
  --border: #2a2d35;
  --gradient-end: #5de8d0;

  /* Fonts */
  --font-display: 'Syne', sans-serif;
  --font-body: 'Space Grotesk', sans-serif;

  /* Sizing */
  --nav-height: 64px;
  --radius: 0.75rem;
  --radius-lg: 1rem;
  --radius-full: 9999px;
}

html {
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.1;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

::selection {
  background: var(--primary-glow-strong);
  color: var(--fg);
}

/* Focus visible for keyboard nav */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- FULL-PAGE SECTION SYSTEM ---------- */
.section--fullpage {
  min-height: 100vh;
  width: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding: calc(var(--nav-height) + 2rem) 0 2rem;
  overflow: hidden;
}

/* Subtle separator between sections */
.section--fullpage + .section--fullpage::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary-glow-strong), transparent);
  pointer-events: none;
  z-index: 2;
}

/* ---------- UTILITY CLASSES ---------- */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding-left: clamp(1rem, 3vw, 2rem);
  padding-right: clamp(1rem, 3vw, 2rem);
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--gradient-end));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-subtle {
  background: linear-gradient(135deg, var(--fg) 30%, var(--primary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- SPARKLES CANVAS (full page) ---------- */
#sparkles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* Gradient accent line */
.gradient-line {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--gradient-end), transparent);
  border: none;
  margin: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ---------- SCROLL ANIMATIONS ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger children */
.stagger-children .fade-in:nth-child(1) { transition-delay: 0ms; }
.stagger-children .fade-in:nth-child(2) { transition-delay: 100ms; }
.stagger-children .fade-in:nth-child(3) { transition-delay: 200ms; }
.stagger-children .fade-in:nth-child(4) { transition-delay: 300ms; }
.stagger-children .fade-in:nth-child(5) { transition-delay: 400ms; }
.stagger-children .fade-in:nth-child(6) { transition-delay: 500ms; }

/* ---------- NAVBAR ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(18, 21, 28, 0.8);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar__logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.navbar__logo span {
  color: var(--primary);
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.navbar__links a {
  font-size: 0.875rem;
  color: var(--fg-muted);
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
}

.navbar__links a:hover {
  color: var(--fg);
}

.navbar__hamburger {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  position: relative;
}

.navbar__hamburger svg {
  width: 22px;
  height: 22px;
}

#icon-close {
  display: none;
}

/* Mobile menu */
.navbar__mobile {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0;
  z-index: 99;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: max-height 0.35s ease, opacity 0.3s ease, padding 0.35s ease;
  padding: 0 1rem;
}

.navbar__mobile.open {
  max-height: 320px;
  opacity: 1;
  pointer-events: auto;
  padding: 1rem 1rem 1.5rem;
  gap: 1.25rem;
}

.navbar__mobile a {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--fg-muted);
  transition: color 0.3s ease;
  padding: 0.25rem 0;
}

.navbar__mobile a:hover {
  color: var(--fg);
}

/* ---------- HERO SECTION ---------- */
.hero {
  padding-bottom: 3.5rem; /* Space for the marquee bar */
}

/* Animated background orbs */
.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  animation: float 8s ease-in-out infinite;
}

.hero__orb--1 {
  width: 400px;
  height: 400px;
  background: var(--primary-glow);
  top: 10%;
  right: -5%;
  animation-delay: 0s;
}

.hero__orb--2 {
  width: 250px;
  height: 250px;
  background: rgba(93, 232, 208, 0.08);
  bottom: 20%;
  right: 15%;
  animation-delay: -3s;
}

.hero__orb--3 {
  width: 180px;
  height: 180px;
  background: var(--primary-glow);
  top: 30%;
  left: 60%;
  animation-delay: -5s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(15px, -20px) scale(1.05); }
  66% { transform: translate(-10px, 15px) scale(0.95); }
}

/* Three.js Hero Canvas */
.hero__canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.hero__canvas canvas {
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 10;
}

.hero__subtitle {
  background: linear-gradient(90deg, var(--primary), var(--gradient-end));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.hero__title {
  font-weight: 800;
  font-size: clamp(3rem, 10vw, 9rem);
  letter-spacing: -0.03em;
  line-height: 0.9;
  margin-bottom: 1.5rem;
}

.hero__title span {
  display: block;
}

.hero__title .line-2 {
  margin-top: 0.1em;
}

.hero__description {
  max-width: 520px;
  color: var(--fg-muted);
  font-size: clamp(0.95rem, 0.5vw + 0.8rem, 1.15rem);
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-full);
  transition: all 0.3s ease;
}

.btn--primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--bg);
  box-shadow: 0 0 30px -10px var(--primary-glow-strong);
}

.btn--primary:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  transform: translateY(-3px);
  box-shadow: 0 0 40px -5px var(--primary-glow-strong), 0 0 60px -10px var(--primary-glow);
}

.btn--outline {
  border: 1px solid var(--border);
  color: var(--fg);
}

.btn--outline:hover {
  border-color: rgba(3, 188, 202, 0.5);
  transform: translateY(-3px);
  background: linear-gradient(135deg, rgba(3, 188, 202, 0.08), rgba(93, 232, 208, 0.04));
}

/* Marquee bar (contains scroll indicator + marquee text) */
.hero__marquee {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  border-top: 1px solid var(--border);
  padding: 0.85rem 0;
  overflow: hidden;
  z-index: 10;
  display: flex;
  align-items: center;
}

/* Scroll indicator inside marquee bar */
.hero__scroll {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--fg-muted);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: color 0.3s;
  flex-shrink: 0;
  padding: 0 1.5rem 0 1rem;
  border-right: 1px solid var(--border);
  margin-right: 1.5rem;
}

.hero__scroll:hover {
  color: var(--primary);
}

.hero__scroll svg {
  animation: bounce 2s infinite;
  flex-shrink: 0;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

.hero__marquee-inner {
  flex: 1;
  overflow: hidden;
}

.hero__marquee-track {
  display: flex;
  gap: 3rem;
  white-space: nowrap;
  animation: marquee 20s linear infinite;
  color: rgba(124, 131, 143, 0.3);
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.hero__marquee-track span {
  flex-shrink: 0;
}

/* ---------- DIENSTEN SECTION ---------- */
/* .diensten inherits full-page layout from .section--fullpage */

/* Three.js Diensten Canvas */
.diensten__canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.2;
  z-index: 0;
}

.diensten__header {
  position: relative;
  z-index: 1;
  margin-bottom: 3rem;
}

.section-label {
  background: linear-gradient(90deg, var(--primary), var(--gradient-end));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.section-title {
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-desc {
  max-width: 580px;
  color: var(--fg-muted);
  font-size: clamp(0.85rem, 0.3vw + 0.75rem, 1rem);
  line-height: 1.7;
}

.diensten__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.dienst-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  cursor: default;
  overflow: hidden;
}

.dienst-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3), 0 0 20px var(--primary-glow);
  border-color: rgba(3, 188, 202, 0.3);
}

/* Gradient accent on hover */
.dienst-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--gradient-end));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.dienst-card:hover::after {
  opacity: 1;
}

.dienst-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: var(--primary-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: background 0.3s ease;
}

.dienst-card:hover .dienst-card__icon {
  background: rgba(3, 188, 202, 0.2);
}

.dienst-card__icon svg {
  width: 22px;
  height: 22px;
  color: var(--primary);
}

.dienst-card__title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.dienst-card__desc {
  color: var(--fg-muted);
  font-size: 0.85rem;
  line-height: 1.7;
}

/* ---------- OVER MIJ SECTION ---------- */
/* .over-mij inherits full-page layout from .section--fullpage */

.over-mij__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

/* Visual panel */
.over-mij__visual {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.over-mij__photo {
  border-radius: var(--radius);
  overflow: hidden;
  border: none;
}

.over-mij__photo .model-viewer {
  width: 100%;
  aspect-ratio: 3 / 2;
  cursor: grab;
}

.over-mij__photo .model-viewer canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.over-mij__photo img {
  width: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 3 / 2;
}

.over-mij__stats {
  display: flex;
  flex-direction: row;
  gap: 1rem;
}

.stat-card {
  flex: 1;
  background: rgba(26, 29, 36, 0.85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}

.stat-card__label {
  color: var(--primary);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.stat-card__value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.75rem;
  background: linear-gradient(135deg, var(--fg), var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-card__sub {
  color: var(--fg-muted);
  font-size: 0.8rem;
  margin-top: 0.15rem;
}

/* Text side */
.over-mij__text p {
  color: var(--fg-muted);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.over-mij__text p:last-of-type {
  margin-bottom: 0;
}

.over-mij__paragraphs {
  margin-bottom: 2rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.skill-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.skill-item svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
  flex-shrink: 0;
}

/* ---------- 3D PRINT SECTION ---------- */
/* .print-section inherits full-page layout from .section--fullpage */

.print-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem;
  overflow: hidden;
}

.print-card__glow {
  position: absolute;
  top: -80px;
  right: -80px;
  width: 320px;
  height: 320px;
  background: linear-gradient(135deg, var(--primary-glow), rgba(93, 232, 208, 0.1));
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}

.print-card__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.print-card .section-desc {
  margin-bottom: 1.5rem;
}

.print-card .btn--primary {
  margin-bottom: 1.5rem;
}

.print-card__features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.feature-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  background: rgba(30, 33, 40, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
}

.feature-item__header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.feature-item__header svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
  flex-shrink: 0;
}

.feature-item__label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
}

.feature-item__desc {
  color: var(--fg-muted);
  font-size: 0.72rem;
}

/* Print section browser preview */
.print-card__visual {
  position: relative;
}

.print-card__visual .project__browser-body {
  aspect-ratio: 4 / 3;
}

/* ---------- PROJECT SECTIONS ---------- */
/* .project-section inherits full-page layout from .section--fullpage */

.project__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 5rem);
  align-items: center;
}

/* Reverse layout: text left, visual right */
.project-section--reverse .project__grid {
  direction: rtl;
}

.project-section--reverse .project__grid > * {
  direction: ltr;
}

/* Browser mockup visual */
.project__visual {
  position: relative;
}

.project__browser {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project__browser:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 30px var(--primary-glow);
}

.project__browser-dots {
  display: flex;
  gap: 6px;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
}

.project__browser-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
}

.project__browser-dots span:first-child { background: #ff5f57; }
.project__browser-dots span:nth-child(2) { background: #febc2e; }
.project__browser-dots span:nth-child(3) { background: #28c840; }

.project__browser-url {
  padding: 0.4rem 1rem;
  font-size: 0.7rem;
  color: var(--fg-muted);
  background: rgba(30, 33, 40, 0.5);
  border-bottom: 1px solid var(--border);
  letter-spacing: 0.05em;
}

.project__browser-body {
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-card));
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

/* Scaled iframe preview — interactive */
.project__iframe {
  width: 300%;
  height: 300%;
  border: none;
  transform: scale(0.3334);
  transform-origin: top left;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  pointer-events: auto;
  /* Edge compatibility */
  -ms-overflow-style: none;
  will-change: transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* Overlay — hidden on desktop, visible on mobile */
.project__iframe-overlay {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 5;
  cursor: pointer;
  background: transparent;
}

.project__placeholder {
  color: var(--primary);
  opacity: 0.25;
}

/* Text side */
.project__title {
  font-size: clamp(1.75rem, 4vw, 3rem);
}

.project__desc {
  color: var(--fg-muted);
  font-size: clamp(0.9rem, 0.3vw + 0.8rem, 1.05rem);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.project__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.project__tag {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  color: var(--fg-muted);
  background: rgba(30, 33, 40, 0.5);
  transition: border-color 0.3s ease, color 0.3s ease;
}

.project__tag:hover {
  border-color: rgba(3, 188, 202, 0.4);
  color: var(--primary);
}

/* ---------- PROJECT BUTTONS ROW ---------- */
.project__buttons {
  display: flex;
  gap: 0.75rem;
  align-items: stretch;
}

.project__buttons .btn {
  flex: 1;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
}

/* ---------- PROCESS MODAL ---------- */
.process-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.process-modal.active {
  opacity: 1;
  visibility: visible;
}

.process-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 14, 20, 0.85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.process-modal__container {
  position: relative;
  width: 92vw;
  max-width: 1200px;
  max-height: 88vh;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow:
    0 0 80px rgba(3, 188, 202, 0.08),
    0 40px 100px rgba(0, 0, 0, 0.5);
  transform: translateY(30px) scale(0.97);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.process-modal.active .process-modal__container {
  transform: translateY(0) scale(1);
}

/* Accent glow top edge */
.process-modal__container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--gradient-end), var(--primary));
  z-index: 5;
}

/* Close button */
.process-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(30, 33, 40, 0.8);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg-muted);
  transition: all 0.25s ease;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.process-modal__close:hover {
  color: var(--fg);
  border-color: var(--primary);
  background: rgba(3, 188, 202, 0.1);
  transform: rotate(90deg);
}

/* Grid layout */
.process-modal__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

/* Left: iframe browser preview */
.process-modal__preview {
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.process-modal__browser {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.process-modal__browser .project__browser-dots {
  display: flex;
  gap: 6px;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.process-modal__browser-url {
  padding: 0.4rem 1rem;
  font-size: 0.7rem;
  color: var(--fg-muted);
  background: rgba(30, 33, 40, 0.5);
  border-bottom: 1px solid var(--border);
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.process-modal__browser-body {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-card));
}

.process-modal__iframe {
  width: 200%;
  height: 200%;
  border: none;
  transform: scale(0.5);
  transform-origin: top left;
  position: absolute;
  top: 0;
  left: 0;
}

/* Right: process info */
.process-modal__info {
  padding: clamp(2rem, 4vw, 3rem);
  overflow-y: auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Scrollbar styling */
.process-modal__info::-webkit-scrollbar {
  width: 4px;
}

.process-modal__info::-webkit-scrollbar-track {
  background: transparent;
}

.process-modal__info::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

.process-modal__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
  width: fit-content;
}

.process-modal__badge svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.process-modal__badge--solo {
  background: rgba(3, 188, 202, 0.12);
  color: var(--primary);
  border: 1px solid rgba(3, 188, 202, 0.25);
}

.process-modal__badge--team {
  background: rgba(93, 232, 208, 0.1);
  color: var(--gradient-end);
  border: 1px solid rgba(93, 232, 208, 0.2);
}

.process-modal__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg);
}

.process-modal__text p {
  color: var(--fg-muted);
  font-size: clamp(0.88rem, 0.3vw + 0.78rem, 1rem);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.process-modal__text p:last-child {
  margin-bottom: 0;
}

.process-modal__skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.5rem;
}

.process-modal__skills span {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  background: var(--primary-glow);
  color: var(--primary);
  border: 1px solid rgba(3, 188, 202, 0.15);
  transition: all 0.25s ease;
}

.process-modal__skills span:hover {
  background: rgba(3, 188, 202, 0.2);
  border-color: rgba(3, 188, 202, 0.35);
}

/* Sanctus: image preview instead of iframe */
.process-modal__image-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Prevent body scroll when modal open */
body.modal-open {
  overflow: hidden;
}

/* ---------- SANCTUS FUSION SECTION ---------- */
.sanctus-section {
  overflow: hidden;
}

.sanctus__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 5rem);
  align-items: center;
}

/* Blurry preview card */
.sanctus__preview {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border);
  max-height: 400px;
}

.sanctus__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: blur(8px) brightness(0.6);
  transform: scale(1.1);
  transition: filter 0.4s ease, transform 0.4s ease;
}

.sanctus__preview:hover img {
  filter: blur(4px) brightness(0.5);
  transform: scale(1.15);
}

.sanctus__preview-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: #fff;
  z-index: 2;
  transition: transform 0.3s ease;
}

.sanctus__preview:hover .sanctus__preview-overlay {
  transform: scale(1.05);
}

.sanctus__preview-overlay svg {
  opacity: 0.9;
}

.sanctus__preview-overlay span {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.5vw, 1.3rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

/* Lightbox */
.sanctus__lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.sanctus__lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

/* Close button */
.sanctus__lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.3s, transform 0.3s;
}

.sanctus__lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

/* Lightbox nav buttons */
.sanctus__lightbox-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.3s, transform 0.3s;
}

.sanctus__lightbox-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-50%) scale(1.1);
}

.sanctus__lightbox-btn--prev {
  left: 1.5rem;
}

.sanctus__lightbox-btn--next {
  right: 1.5rem;
}

/* Lightbox image */
.sanctus__lightbox-img {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 80vw;
  max-height: 85vh;
}

.sanctus__lightbox-img img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  transform: scale(0.92);
  transition: transform 0.3s ease;
}

.sanctus__lightbox.active .sanctus__lightbox-img img {
  transform: scale(1);
}

/* Counter (1/5) */
.sanctus__lightbox-counter {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  font-family: var(--font-display);
  letter-spacing: 0.1em;
}

/* ---------- CONTACT SECTION ---------- */
.contact {
  text-align: center;
  padding-bottom: 0; /* Footer handles its own spacing now */
}

.contact__inner {
  max-width: 640px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.contact__desc {
  color: var(--fg-muted);
  font-size: clamp(0.9rem, 0.5vw + 0.7rem, 1.1rem);
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.hidden {
  display: none;
}

/* Contact form */
.contact-form {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group label {
  font-size: 0.8rem;
  color: var(--fg-muted);
  letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-group textarea {
  min-height: 120px;
}

.contact-form .btn--primary {
  align-self: center;
  margin-top: 0.5rem;
}

.contact-form .btn--primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Form feedback messages */
.form-feedback {
  text-align: center;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  animation: feedbackSlide 0.3s ease;
}

.form-feedback--success {
  background: rgba(46, 204, 113, 0.12);
  border: 1px solid rgba(46, 204, 113, 0.3);
  color: #2ecc71;
}

.form-feedback--error {
  background: rgba(231, 76, 60, 0.12);
  border: 1px solid rgba(231, 76, 60, 0.3);
  color: #e74c3c;
}

@keyframes feedbackSlide {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.contact__or {
  color: var(--fg-muted);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

.contact__mail-btn {
  margin-bottom: 2rem;
}

.contact__mail-btn .btn {
  font-size: 1.05rem;
  padding: 1rem 2rem;
}

.contact__mail-btn .btn:hover .btn__arrow {
  transform: translate(2px, -2px);
}

.btn__arrow {
  transition: transform 0.3s ease;
}

.contact__socials {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding-bottom: 2rem;
}

.social-link {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg-muted);
  transition: all 0.3s ease;
}

.social-link:hover {
  color: var(--primary);
  border-color: rgba(3, 188, 202, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 0 20px var(--primary-glow);
}

.social-link svg {
  width: 20px;
  height: 20px;
}

/* ---------- FOOTER ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  margin-top: auto;
  width: 100%;
  flex-shrink: 0;
}

.footer__gradient-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--gradient-end), transparent);
}

.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
}

.footer__logo span {
  color: var(--primary);
}

.footer__links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.footer__links a {
  font-size: 0.75rem;
  color: var(--fg-muted);
  transition: color 0.3s;
}

.footer__links a:hover {
  color: var(--fg);
}

.footer__copy {
  font-size: 0.75rem;
  color: var(--fg-muted);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .diensten__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .over-mij__grid {
    gap: 3rem;
  }

  .print-card {
    padding: 2rem;
  }

  .print-card__grid {
    gap: 2rem;
  }

  .process-modal__grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    flex: 0 0 auto;
    min-height: auto;
    overflow: visible;
  }

  .process-modal__container {
    max-height: 92vh;
    overflow-y: auto;
  }

  .process-modal__info {
    overflow-y: visible;
    min-height: auto;
  }

  .process-modal__preview {
    border-right: none;
    border-bottom: 1px solid var(--border);
    min-height: 280px;
    max-height: 40vh;
  }

  .process-modal__info {
    padding: 1.75rem;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 56px;
  }

  /* Allow internal scrolling on mobile when content overflows */
  html {
    scroll-snap-type: y proximity;
  }

  .section--fullpage {
    min-height: 100vh;
    height: auto;
    padding: calc(var(--nav-height) + 1.5rem) 0 1.5rem;
  }

  /* Navbar mobile */
  .navbar__links {
    display: none;
  }

  .navbar__hamburger {
    display: flex;
  }

  /* Hero */
  .hero {
    padding-bottom: 3rem;
  }

  .hero__scroll {
    font-size: 0.65rem;
    padding: 0 1rem 0 0.75rem;
    margin-right: 1rem;
  }

  /* Diensten */
  .diensten__grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .dienst-card {
    padding: 1.5rem;
  }

  .dienst-card__icon {
    width: 40px;
    height: 40px;
    margin-bottom: 1rem;
  }

  .dienst-card__icon svg {
    width: 18px;
    height: 18px;
  }

  /* Over mij */
  .over-mij__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .over-mij__stats {
    flex-direction: column;
  }

  /* Print */
  .print-card {
    padding: 1.5rem;
  }

  .print-card__grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .print-card__visual .project__browser-body {
    aspect-ratio: 16 / 9;
  }

  /* Sanctus Fusion */
  .sanctus__grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .sanctus__preview {
    aspect-ratio: 16 / 9;
  }

  .sanctus__lightbox-btn--prev { left: 0.75rem; }
  .sanctus__lightbox-btn--next { right: 0.75rem; }

  /* Projects */
  .project__grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .project-section--reverse .project__grid {
    direction: ltr;
  }

  .project__browser-body {
    aspect-ratio: 16 / 9;
  }

  .project__buttons {
    flex-direction: column;
  }

  /* Disable iframe interaction on mobile — prevents scroll trapping */
  .project__iframe {
    pointer-events: none;
  }

  .project__iframe-overlay {
    display: block;
  }

  /* Process modal mobile */
  .process-modal__container {
    width: 96vw;
    max-height: 94vh;
    border-radius: var(--radius);
  }

  .process-modal__close {
    top: 0.75rem;
    right: 0.75rem;
    width: 36px;
    height: 36px;
  }

  .process-modal__preview {
    min-height: 220px;
    max-height: 35vh;
  }

  .process-modal__iframe {
    width: 250%;
    height: 250%;
    transform: scale(0.4);
  }

  .process-modal__info {
    padding: 1.5rem;
    gap: 1rem;
  }

  .process-modal__title {
    font-size: 1.35rem;
  }

  /* Skills grid single column on small screens */
  .skills-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  .skill-item {
    font-size: 0.8rem;
  }

  /* Stat cards: more compact on mobile */
  .stat-card__value {
    font-size: 1.4rem;
  }

  .stat-card__sub {
    font-size: 0.72rem;
  }

  /* Contact */
  .contact {
    padding-bottom: 0;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer .container {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero__buttons {
    flex-direction: column;
  }

  .hero__buttons .btn {
    justify-content: center;
  }

  .sanctus__lightbox-close {
    top: 1rem;
    right: 1rem;
  }

  .print-card__features {
    grid-template-columns: 1fr;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .over-mij__stats {
    flex-direction: column;
  }
}

/* Ultra-wide screens */
@media (min-width: 2560px) {
  .container {
    max-width: 1400px;
  }

  .section--fullpage {
    padding: calc(var(--nav-height) + 3rem) 0 3rem;
  }
}

/* ---------- JELLY-BOT CHATBOT ---------- */
.jellybot {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 1000;
  font-family: var(--font-body);
}

/* Toggle button */
.jellybot__toggle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(3, 188, 202, 0.4), 0 0 40px rgba(3, 188, 202, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  z-index: 10;
}

.jellybot__toggle:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 30px rgba(3, 188, 202, 0.5), 0 0 50px rgba(3, 188, 202, 0.2);
}

.jellybot__icon-close {
  display: none;
}

/* Pulse animation when closed */
.jellybot__toggle::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: rgba(3, 188, 202, 0.3);
  animation: jellybot-pulse 2s ease-in-out infinite;
  z-index: -1;
}

.jellybot__toggle[aria-expanded="true"]::before {
  animation: none;
  opacity: 0;
}

@keyframes jellybot-pulse {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(1.25); opacity: 0; }
}

/* Chat window */
.jellybot__window {
  position: absolute;
  bottom: calc(100% + 1rem);
  right: 0;
  width: 380px;
  max-height: 520px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(3, 188, 202, 0.08);
  animation: jellybot-open 0.3s ease;
}

.jellybot__window[hidden] {
  display: none;
}

@keyframes jellybot-open {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Header */
.jellybot__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  background: linear-gradient(135deg, rgba(3, 188, 202, 0.1), rgba(93, 232, 208, 0.05));
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.jellybot__header-info {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.jellybot__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary-glow);
  flex-shrink: 0;
  object-fit: cover;
}

.jellybot__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--fg);
}

.jellybot__status {
  font-size: 0.7rem;
  color: var(--primary);
}

.jellybot__close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg-muted);
  transition: color 0.2s, background 0.2s;
}

.jellybot__close:hover {
  color: var(--fg);
  background: rgba(255, 255, 255, 0.05);
}

/* Messages */
.jellybot__messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 200px;
  max-height: 320px;
  scroll-behavior: smooth;
}

/* Custom scrollbar */
.jellybot__messages::-webkit-scrollbar {
  width: 4px;
}

.jellybot__messages::-webkit-scrollbar-track {
  background: transparent;
}

.jellybot__messages::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}

/* Message bubbles */
.jellybot__msg {
  max-width: 85%;
  padding: 0.7rem 1rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  line-height: 1.6;
  animation: jellybot-msg 0.3s ease;
}

@keyframes jellybot-msg {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.jellybot__msg--bot {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--fg);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.jellybot__msg--user {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--bg);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.jellybot__msg--bot p {
  margin: 0;
}

.jellybot__msg--bot strong {
  color: var(--primary);
}

/* Typing indicator */
.jellybot__typing {
  display: flex;
  gap: 4px;
  padding: 0.7rem 1rem;
  align-self: flex-start;
}

.jellybot__typing span {
  width: 6px;
  height: 6px;
  background: var(--fg-muted);
  border-radius: 50%;
  animation: jellybot-dot 1.4s ease-in-out infinite;
}

.jellybot__typing span:nth-child(2) { animation-delay: 0.2s; }
.jellybot__typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes jellybot-dot {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

/* Suggestions */
.jellybot__suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0 1rem 0.75rem;
  flex-shrink: 0;
}

.jellybot__suggestion {
  font-size: 0.72rem;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  color: var(--fg-muted);
  background: rgba(30, 33, 40, 0.5);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  white-space: nowrap;
}

.jellybot__suggestion:hover {
  border-color: rgba(3, 188, 202, 0.5);
  color: var(--primary);
  background: rgba(3, 188, 202, 0.08);
}

/* Input area */
.jellybot__input {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.jellybot__input input {
  flex: 1;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 0.6rem 1rem;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 0.85rem;
  transition: border-color 0.2s;
}

.jellybot__input input:focus {
  outline: none;
  border-color: var(--primary);
}

.jellybot__input input::placeholder {
  color: var(--fg-muted);
}

.jellybot__input button[type="submit"] {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s, box-shadow 0.2s;
}

.jellybot__input button[type="submit"]:hover {
  transform: scale(1.08);
  box-shadow: 0 0 15px rgba(3, 188, 202, 0.3);
}

/* Mobile responsive */
@media (max-width: 480px) {
  .jellybot {
    bottom: 1rem;
    right: 1rem;
  }

  .jellybot__window {
    width: calc(100vw - 2rem);
    max-height: 70vh;
    right: 0;
    bottom: calc(100% + 0.75rem);
  }

  .jellybot__toggle {
    width: 50px;
    height: 50px;
  }
}
