/* Special effects layer — additive only. Does not modify any existing
   selectors in style.css / responsive.css, so the original design/structure
   is untouched. */

html {
  scroll-behavior: smooth;
}

/* Bouncing scroll indicator - shows only while there is more content below */
#scrollHint {
  position: fixed;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  color: rgba(255,255,255,0.85);
  font-size: 1.4rem;
  text-shadow: 0 2px 6px rgba(0,0,0,0.6);
  animation: fxBounce 1.6s ease-in-out infinite;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
@keyframes fxBounce {
  0%, 100% { transform: translate(-50%, 0); }
  50%      { transform: translate(-50%, 10px); }
}

/* Enhanced, smoother profile photo hover (replaces the abrupt scale-only hover) */
.profile img {
  transition: transform 0.6s cubic-bezier(.22,1,.36,1), filter 0.6s ease;
}
.profile img:hover {
  transform: scale(1.12) rotate(1.5deg);
  filter: brightness(1.08) saturate(1.15);
}
.profileMain {
  transition: transform 0.6s cubic-bezier(.22,1,.36,1), box-shadow 0.6s ease;
}
.profileMain:hover {
  transform: scale(1.06);
  box-shadow: 0 0 35px rgba(255,255,255,0.35), var(---boxShadowInset--color);
}

#fxCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

header, #social {
  position: relative;
  z-index: 1;
}

/* Entrance animation for the profile photo + name block */
.profileMain, .pName {
  opacity: 0;
  animation: fxFadeUp 0.8s ease forwards;
}
.pName { animation-delay: 0.15s; }

/* Staggered entrance for each link button, driven by a CSS variable
   set from JS (--fx-i = index of the link) */
.socialICon a {
  opacity: 0;
  animation: fxFadeUp 0.6s ease forwards;
  animation-delay: calc(0.25s + (var(--fx-i, 0) * 0.06s));
  position: relative;
  overflow: hidden;
}

@keyframes fxFadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Glow sweep on hover, layered on top of the existing hover scale effect */
.socialICon a::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.55), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
  pointer-events: none;
}
.socialICon a:hover::after {
  left: 125%;
}

/* Subtle pulse ring around the profile photo */
.profileMain {
  position: relative;
}
.profileMain::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.55);
  animation: fxPulseRing 2.6s ease-out infinite;
}
@keyframes fxPulseRing {
  0%   { transform: scale(0.92); opacity: 0.9; }
  70%  { transform: scale(1.25); opacity: 0; }
  100% { transform: scale(1.25); opacity: 0; }
}

#appFabBtn {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 20;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: none;
  background: var(---titelText2--color, #fcc100);
  color: #240a0a;
  font-size: 1.3rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.35);
  transition: transform 0.3s ease;
}
#appFabBtn:hover { transform: scale(1.08); }

#appModalOverlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
}
#appModalOverlay.hidden { display: none; }
#appModalBox {
  position: relative;
  background: #fff;
  color: #222;
  width: 340px;
  max-width: 90vw;
  border-radius: 14px;
  padding: 1.5rem;
  text-shadow: none;
}
#appModalBox h3 { margin: 0 0 0.8rem; }
#appModalBox p { font-size: 0.9rem; line-height: 1.5; margin: 0 0 1rem; }
#appInstallBtn {
  width: 100%;
  padding: 0.7rem;
  border: none;
  border-radius: 8px;
  background: #063c33;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 0.6rem;
}
#appManualSteps { font-size: 0.85rem; color: #555; line-height: 1.6; }
#appModalClose {
  position: absolute;
  top: 10px;
  right: 14px;
  border: none;
  background: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: #999;
}

/* ---------- Send-a-message floating button + modal ---------- */
#msgFabBtn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 20;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: none;
  background: var(---btn--color, #e306f3);
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.35);
  transition: transform 0.3s ease;
}
#msgFabBtn:hover { transform: scale(1.08); }

#msgModalOverlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
}
#msgModalOverlay.hidden { display: none; }

#msgModalBox {
  position: relative;
  background: #fff;
  color: #222;
  width: 340px;
  max-width: 90vw;
  border-radius: 14px;
  padding: 1.5rem;
  text-shadow: none;
}
#msgModalBox h3 { margin: 0 0 1rem; }
#msgModalBox input, #msgModalBox textarea {
  width: 100%;
  padding: 0.6rem 0.7rem;
  margin-bottom: 0.7rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
}
#msgModalBox button#msgSendBtn {
  width: 100%;
  padding: 0.7rem;
  border: none;
  border-radius: 8px;
  background: #063c33;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}
#msgModalClose {
  position: absolute;
  top: 10px;
  right: 14px;
  border: none;
  background: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: #999;
}
#msgStatus { font-size: 0.85rem; margin-top: 0.6rem; text-align: center; }

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .profileMain, .pName, .socialICon a, .profileMain::before {
    animation: none !important;
    opacity: 1 !important;
  }
}
