/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* GLOBAL */
body {
  font-family: Arial, Helvetica, sans-serif;
  background-color: #0f172a;
  color: #f1f5f9;
  overflow-x: hidden;
}

/* RESTART BUTTON */
.top-dev-nav {
  position: fixed;
  top: calc(32px + env(safe-area-inset-top, 0px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  font-family: monospace;
  font-size: 30px;
  width: max-content;
  max-width: calc(100% - 32px);
  text-align: center;
}
.dev-button {
  display: inline-block;
  cursor: pointer;
  font-family: monospace;
  line-height: 1.2;
  opacity: 1;
  transform: scale(1);
  transition:
    opacity 0.6s cubic-bezier(0.4, 0.0, 0.2, 1),
    transform 0.6s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.dev-button.is-fading {
  opacity: 0;
  transform: scale(0.96);
}
.name       { color: #38bdf8; }
.code-green { color: #22c55e; }
.dev-button:hover { opacity: 0.9; }

/* PROFILBILD */
.profile-image {
  width: 160px;
  height: 160px;
  object-fit: cover;
  object-position: center 30%;
  border-radius: 50%;
  margin-bottom: 30px;
  border: 3px solid #3b82f6;
  box-shadow: 0 0 25px rgba(59, 130, 246, 0.4);
}

/* HERO SECTION */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 140px 20px 120px;
  overflow: hidden;
  background-color: #0f172a;
  pointer-events: none;
}

/* Particles Layer */
#tsparticles {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* Content Layer */
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
  width: min(100%, 820px);
  pointer-events: all;
}
.hero-name {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.18em 0.28em;
  font-size: clamp(3rem, 10vw, 6rem);
  font-weight: 900;
  letter-spacing: clamp(0.04em, 0.3vw, 0.12em);
  line-height: 0.95;
  margin-bottom: 20px;
  text-transform: uppercase;
  text-wrap: balance;
}

.hero-word {
  display: inline-flex;
}

.hero-letter {
  display: inline-block;
  opacity: 0;
  transform-origin: bottom center;
  animation: hero-letter-in 0.6s ease-out forwards;
}

@keyframes hero-letter-in {
  0%   { transform: translateY(10px); opacity: 0; }
  40%  { transform: translateY(-12px); opacity: 1; }
  70%  { transform: translateY(0); }
  100% { transform: translateY(0); opacity: 1; }
}
.hero-role {
  max-width: 44rem;
  margin: 0 auto 40px;
  font-size: clamp(0.82rem, 1.8vw, 1rem);
  letter-spacing: clamp(0.2em, 1vw, 0.375em);
  line-height: 1.6;
  text-transform: uppercase;
  color: #cbd5e1;
  text-wrap: balance;
}

.continue-button {
  position: fixed;          
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  
  width: clamp(52px, 14vw, 64px);
  height: clamp(52px, 14vw, 64px);
  border-radius: 50%;
  border: 2px solid #ffffff;
  background: rgba(0, 0, 0, 0.4);
  color: #ffffff;
  font-size: clamp(24px, 7vw, 32px);          
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  z-index: 2;

  box-shadow: 0 0 12px rgba(255, 255, 255, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;

  /* idle up‑and‑down animation */
  animation: float-arrow 1.6s ease-in-out infinite;
}

.continue-button:hover {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.6);
  transform: translateX(-50%) translateY(-4px) scale(1.05);
}

@keyframes float-arrow {
  0%   { transform: translateX(-50%) translateY(0); }
  50%  { transform: translateX(-50%) translateY(-8px); }
  100% { transform: translateX(-50%) translateY(0); }
}

@media (max-width: 900px) {
  .hero {
    padding-top: 132px;
    padding-bottom: 112px;
  }

  .hero-name {
    font-size: clamp(2.8rem, 12vw, 4.8rem);
  }

  .hero-role {
    letter-spacing: clamp(0.18em, 0.9vw, 0.3em);
  }
}

@media (max-width: 640px) {
  .top-dev-nav {
    top: calc(18px + env(safe-area-inset-top, 0px));
    font-size: 16px;
    max-width: calc(100% - 24px);
  }

  .dev-button {
    overflow-wrap: anywhere;
  }

  .profile-image {
    width: 120px;
    height: 120px;
    margin-bottom: 22px;
  }

  .hero {
    min-height: 100svh;
    padding: 118px 16px 92px;
  }

  .hero-name {
    gap: 0.12em 0.22em;
    margin-bottom: 16px;
    font-size: clamp(2.35rem, 14vw, 3.75rem);
    letter-spacing: 0.06em;
  }

  .hero-role {
    margin-bottom: 0;
    font-size: 0.78rem;
    letter-spacing: 0.22em;
    line-height: 1.7;
  }

  .continue-button {
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 420px) {
  .top-dev-nav {
    font-size: 14px;
  }

  .profile-image {
    width: 96px;
    height: 96px;
  }

  .hero {
    padding: 104px 14px 88px;
  }

  .hero-name {
    gap: 0.1em 0.18em;
    font-size: clamp(2rem, 15vw, 3rem);
    line-height: 1;
  }

  .hero-role {
    font-size: 0.72rem;
    letter-spacing: 0.18em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-letter,
  .continue-button {
    animation: none;
  }

  .dev-button,
  .continue-button {
    transition: none;
  }
}
