:root {
  /* Palet A — Tempel Kleuren Stenen */
  --stone-bg-900: #161810;
  --stone-bg-800: #1a1c14;
  --stone-ui-300: #a7b6c1;
  --stone-sep-600: #756656;
  --stone-acc-red: #A44E53;
  --stone-acc-blue: #495A8A;
  --stone-acc-moss: #686d4e;
  
  /* Tekst */
  --color-text-heading: #F5EDE9;
  --color-text-body: #EACEC4;
  --color-text-subtle: #9B8B79;
  
  /* Jungle Daglicht */
  --jungle-act: #75a421;
  --jungle-text: #135E46;
  --jungle-bg-warm: #E3C6AD;
  
  /* Magic Hour */
  --magic-cta: #FD5E53;
  --magic-bg: #4B3D60;
  --magic-hl: #FFE373;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
  background-color: var(--stone-bg-900);
  color: var(--color-text-body);
}

.font-serif {
  font-family: 'Playfair Display', serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--stone-bg-900);
}
::-webkit-scrollbar-thumb {
  background: var(--stone-acc-moss);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--magic-cta);
}

/* 3D Canvas */
#gl {
  display: block;
  width: 100%;
  height: 100%;
}

/* Loading Animation */
@keyframes spin {
  to { transform: rotate(360deg); }
}
.animate-spin {
  animation: spin 1s linear infinite;
}

/* Pulse Animation */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Fade Transitions */
.fade-in {
  animation: fadeIn 0.5s ease-in;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Glass Effect */
.glass {
  background: rgba(22, 24, 16, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Typography Scale */
.text-display {
  font-size: clamp(2.5rem, 8vw, 5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.text-title {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  line-height: 1.2;
}

/* Button Hover Glow */
.hover-glow:hover {
  box-shadow: 0 0 20px rgba(253, 94, 83, 0.4);
}

/* Audio Visualizer Bars */
.visualizer-bar {
  width: 4px;
  background: linear-gradient(to top, var(--magic-cta), var(--magic-hl));
  border-radius: 2px;
  transition: height 0.1s ease;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
/* Mobile Adjustments */
@media (max-width: 768px) {
  #welcome-screen > div {
    margin: 1rem;
    padding: 1.5rem;
  }
}

/* Wellness Page Animations */
@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Custom checkbox styling */
input[type="checkbox"] {
  appearance: none;
  background-color: transparent;
  margin: 0;
  font: inherit;
  color: currentColor;
  width: 1.25em;
  height: 1.25em;
  border: 2px solid #686d4e;
  border-radius: 0.25em;
  display: grid;
  place-content: center;
  cursor: pointer;
}

input[type="checkbox"]::before {
  content: "";
  width: 0.75em;
  height: 0.75em;
  transform: scale(0);
  transition: 120ms transform ease-in-out;
  box-shadow: inset 1em 1em #FD5E53;
  transform-origin: center;
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

input[type="checkbox"]:checked::before {
  transform: scale(1);
}

input[type="checkbox"]:focus {
  outline: 2px solid #FD5E53;
  outline-offset: 2px;
}
