/* Memorial for Vadim — Strict black & white + tasteful slow-wave parallax + big section scroll parallax */

html {
  scroll-behavior: smooth;
  scroll-padding-top: 4.5rem;
}

body {
  background-color: #000000;
  color: #f5f5f5;
  font-feature-settings: "ss02", "ss03";
  overflow-anchor: none;
}

/* === Navigation === */
nav {
  background-color: #0a0a0a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background-color 0.2s ease;
}

/* Language toggle — text only */
.lang-toggle {
  font-size: 13px;
  letter-spacing: 1px;
  color: #888;
}

.lang-toggle span {
  cursor: pointer;
  padding: 2px 6px;
  transition: all 0.15s ease;
  border-bottom: 1px solid transparent;
}

.lang-toggle span.active {
  color: #fff;
  border-bottom: 1px solid #fff;
  font-weight: 500;
}

.lang-toggle span:hover {
  color: #fff;
}

/* === Typography === */
h1, h2, h3 {
  font-feature-settings: "ss02", "ss03";
  letter-spacing: -0.025em;
}

/* === Thin line cards (hover only; scroll parallax moved to big section grids) === */
.memorial-card {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: border-color 0.2s ease, transform 0.2s cubic-bezier(0.23, 1, 0.32, 1);
}

.memorial-card:hover {
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-2px);
}

/* Filled cards (small things, video placeholders, stories) — improved borders + hover for card feel */
.parallax-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.parallax-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px -15px rgba(0, 0, 0, 0.3);
}

/* Big sections / grids: cohesive parallax scrolling for whole blocks (no per-card bobbing) */
.parallax-grid {
  transform: translateY(var(--section-y, 0px));
  will-change: transform;
}

/* === Minimal interactive elements (no button look) === */
.memorial-submit {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #f5f5f5;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: all 0.15s ease;
}

.memorial-submit:hover {
  border-color: #fff;
  color: #fff;
}

.audio-play {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #aaa;
  font-size: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 1px;
  transition: all 0.15s ease;
  background: transparent;
  cursor: pointer;
}

.audio-play:hover {
  color: #fff;
  border-bottom-color: #fff;
}

/* === Full-site Multilayer Parallax (Keith Clark technique) - Foundation ===
   Proper, careful implementation (incremental).
   Subtle B&W gradients. */

/* Global .parallax scroller rule disabled for now.
   We are using local .hero-parallax-local (and future per-section local wrappers)
   so the page flows normally and content below the hero is visible.
   The local wrappers provide the perspective + preserve-3d for the Keith Clark technique. */
.parallax {
  /* intentionally left neutral so it doesn't create a fixed 100vh scroller */
}

.parallax__group {
  position: relative;
  min-height: 100vh;
  transform-style: preserve-3d;
  overflow: hidden;
}

.parallax__layer {
  position: absolute;
  inset: 0;
  will-change: transform;
}

/* Deepest layer — moves slowest */
.parallax__layer--back {
  transform: translateZ(-2px) scale(3);
  background:
    radial-gradient(circle at 25% 30%, rgba(255,255,255,0.06) 0%, transparent 75%),
    radial-gradient(circle at 75% 70%, rgba(255,255,255,0.04) 0%, transparent 72%);
  z-index: 1;
}

/* Middle depth layer */
.parallax__layer--mid {
  transform: translateZ(-1px) scale(2);
  background:
    radial-gradient(circle at 70% 25%, rgba(255,255,255,0.07) 0%, transparent 76%),
    radial-gradient(circle at 25% 78%, rgba(255,255,255,0.05) 0%, transparent 78%);
  z-index: 2;
}

/* Local perspective wrapper for sections (multilayer depth without breaking page flow) */
.hero-parallax-local,
.parallax-local {
  perspective: 1px;
  height: 100%;
  transform-style: preserve-3d;
  overflow: hidden;
}

/* Make the depth layers more visible inside the hero (while keeping the good format the user liked) */
.hero-parallax-local .parallax__layer--back {
  background:
    radial-gradient(circle at 25% 30%, rgba(255,255,255,0.09) 0%, transparent 75%),
    radial-gradient(circle at 75% 70%, rgba(255,255,255,0.06) 0%, transparent 72%);
}

.hero-parallax-local .parallax__layer--mid {
  background:
    radial-gradient(circle at 70% 25%, rgba(255,255,255,0.10) 0%, transparent 76%),
    radial-gradient(circle at 25% 78%, rgba(255,255,255,0.07) 0%, transparent 78%);
}

/* Front layer — real content lives here */
.parallax__layer--front {
  transform: translateZ(0);
  z-index: 10;
}

/* === Other polish === */
iframe {
  border: none;
}

input, textarea {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f5f5f5;
  transition: all 0.15s ease;
}

input:focus, textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.03);
}

/* Hero — keep badge clear of fixed nav on mobile */
@media (max-width: 767px) {
  #hero {
    padding-top: 6rem;
    padding-bottom: 3rem;
    min-height: 88dvh;
    align-items: center;
  }

  #hero > .relative.z-20 {
    padding-bottom: 0.5rem;
  }

  .hero-badge {
    max-width: 100%;
    letter-spacing: 0.08em;
    line-height: 1.55;
    font-size: 0.65rem;
  }

  .hero-cta-link {
    width: 100%;
    max-width: 16rem;
    white-space: normal;
    word-break: break-word;
  }
}

/* Hero video background */
.hero-video {
  filter: grayscale(1) contrast(1.05) brightness(0.92);
}

/* Strong visible parallax orbs on top of the video */
.hero-parallax-orbs {
  z-index: 15;
  overflow: hidden;   /* important: clips the orbs so they don't leak when hero scrolls away */
  pointer-events: none;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  background: white;
  box-shadow: 
    0 0 20px 8px rgba(255,255,255,0.9),
    0 0 40px 16px rgba(255,255,255,0.6);
  will-change: transform;
}

/* Different sizes for variety */
.hero-orb.o1 { width: 7px;  height: 7px;  top: 20%; left: 12%; }
.hero-orb.o2 { width: 5px;  height: 5px;  top: 28%; right: 15%; }
.hero-orb.o3 { width: 9px;  height: 9px;  bottom: 25%; left: 18%; }
.hero-orb.o4 { width: 4px;  height: 4px;  bottom: 32%; right: 11%; }

/* High-contrast glowing orbs for obvious parallax (contained inside hero) */
.hero-parallax-layers .parallax-orb {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  box-shadow: 0 0 26px 12px rgba(255,255,255,0.6);
  pointer-events: none;
  z-index: 6;
}

/* Different sizes and starting positions */
.hero-parallax-layers .parallax-orb.orb-1 { width: 5px; height: 5px; top: 22%; left: 15%; }
.hero-parallax-layers .parallax-orb.orb-2 { width: 4px; height: 4px; top: 31%; right: 18%; }
.hero-parallax-layers .parallax-orb.orb-3 { width: 6px; height: 6px; bottom: 27%; left: 19%; }
.hero-parallax-layers .parallax-orb.orb-4 { width: 3.5px; height: 3.5px; bottom: 36%; right: 14%; }

/* Mobile menu */
#mobile-menu {
  background: #000;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
