/* Core Colours (sampled from the background photo: slate from the trees, steel from the sky, mist from the hairline tones) */
:root {
  --km-slate: #1b2733;
  --km-slate-soft: #3a4756;
  --km-steel: #3b5368;
  --km-mist: #8fa3b5;
  --km-paper: #e9eef2;
  --km-linkedin: #0a66c2;
}

/* Base */
html, body { height: 100%; margin: 0; padding: 0; }

body {
  background-color: var(--km-paper);
  color: var(--km-slate);
  font-family: 'Gabarito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Scene (background photo + ripple canvas) */
.scene { position: fixed; inset: 0; overflow: hidden; z-index: 0; }

.scene-image { display: block; height: 100%; width: 100%; object-fit: cover; object-position: center; }

.scene-canvas {
  position: absolute;
  inset: 0;
  display: block;
  height: 100%;
  width: 100%;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.scene-canvas.is-ready { opacity: 1; }

/* Fallback when WebGL isn't available: a slow drift across the photo */
.scene-drift .scene-canvas { display: none; }
.scene-drift .scene-image { animation: km-drift 60s ease-in-out infinite alternate; transform-origin: center; }

@keyframes km-drift {
  from { transform: scale(1); }
  to { transform: scale(1.08) translate(-1.5%, -1%); }
}

/* Panel (page content) */
.panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  padding: 2rem 1rem;
  text-align: center;
}

/* Frosted glass card that the name and button sit in (blurs the ripples passing beneath it) */
.panel-card {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  max-width: 100%;
  padding: 2.75rem 3.75rem 3rem;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 20px 60px rgba(27, 39, 51, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(18px) saturate(1.1);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
}

/* Heading: Manrope in steel blue with a short mist-coloured hairline beneath */
h1 {
  color: var(--km-steel);
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: clamp(2.5rem, 8.5vw, 5.25rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin: 0 0 1.25rem;
}

h1::after {
  content: '';
  display: block;
  width: 72px;
  height: 2px;
  margin: 1rem auto 0;
  background: var(--km-mist);
}

.panel-text { color: var(--km-slate-soft); font-size: 1.375rem; margin: 0 0 1.75rem; }

/* LinkedIn / primary button: frosted glass that fills LinkedIn blue on hover */
.btn-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background-color: rgba(255, 255, 255, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  box-shadow: 0 8px 28px rgba(27, 39, 51, 0.14);
  color: var(--km-slate);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.8rem 1.6rem;
  text-decoration: none;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.btn-linkedin i { color: var(--km-linkedin); font-size: 1.35rem; transition: color 0.18s ease; }

.btn-linkedin:hover { background-color: var(--km-linkedin); border-color: var(--km-linkedin); color: #fff; transform: translateY(-1px); }
.btn-linkedin:hover i { color: #fff; }
.btn-linkedin:focus-visible { outline: 3px solid var(--km-slate); outline-offset: 4px; }

/* Motion preferences */
@media (prefers-reduced-motion: reduce) {
  .scene-drift .scene-image { animation: none; }
  .btn-linkedin, .btn-linkedin i { transition: none; }
}

/* Responsive */
@media (max-width: 576px) {
  .panel-card { padding: 2rem 1.75rem 2.25rem; border-radius: 22px; }
  .btn-linkedin { font-size: 1.1rem; padding: 0.7rem 1.4rem; }
  .panel-text { font-size: 1.15rem; }
}
