/* ============================================================
   parallax.css  —  src/pages/style/parallax.css
   ============================================================ */

/* ── Variables ────────────────────────────────────────────── */
:root {
  --ph: 180vh;
}

/* ── Wrapper ──────────────────────────────────────────────── */
.parallax-wrapper {
  margin-top: -68px;
  position: relative;
  width: 100vw !important;
  max-width: 100vw !important;
  left: 50%;
  margin-left: -50vw;
  padding-top: 0px;          /* ← push content back down so image isn't clipped */
  height: var(--ph);
  overflow: hidden;
  background: #04081a;
  transition: opacity 0.1s linear;
  box-sizing: border-box;
  z-index: 1;                 /* ← sits below navbar (z-index: 100) naturally */
}

/* ── Each layer ───────────────────────────────────────────── */
.parallax-layer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  will-change: transform;
  transform: translateY(0px);
}

/* ALL layers: cover full width, anchor to center top */
.parallax-layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  user-select: none;
  pointer-events: none;
}

/* ── Stick / prop — absolute bottom-right corner ── */
/* .parallax-stick {
  position: absolute;
  inset: unset;
  top: 37%;                   
  left: 50%;
  transform: translateX(-50%) rotate(-8deg);
  width: 85%;
  z-index: 10;
  display: block;
  pointer-events: none;
}

.parallax-stick img {
  width: 100%;
  height: auto;
  mix-blend-mode: screen;
  opacity: 0.95;
  display: block;
} */

/* ── Parallax title ───────────────────────────────────────────── */
.parallax-title {
  position: absolute;     /* ← back to absolute */
  top: 40vh;              /* ← visually centered accounting for navbar */
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #e8dfc4;
  pointer-events: none;
  z-index: 20;
  text-shadow: 0 2px 24px rgba(0,0,0,.75), 0 0 60px rgba(0,0,0,.5);
}

.parallax-title h1 {
  font-family: 'Georgia', serif;
  font-size: clamp(2rem, 6vw, 5rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  margin: 0 0 .4em;
}

.parallax-title p {
  font-family: 'Georgia', serif;
  font-size: clamp(.85rem, 2vw, 1.2rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: .8;
  margin: 0;
}

/* rules to not overlap */
    /* Background — full cover */
    #p-bg img {
        object-fit: cover;
        object-position: center top;
    }

    /* 
    //Building1 — tall tower, center-left, screen to remove black
    #p-b1 {
        justify-content: center;
        align-items: flex-start;
    }

    #p-b1 img {
        width: 35%;
        height: auto;
        object-fit: contain;
        object-position: center top;
        mix-blend-mode: screen;
        margin-left: -10%;
    }

    // Building2 — wide block, center, screen to remove black
    #p-b2 {
        justify-content: center;
        align-items: flex-end;
    }

    #p-b2 img {
        width: 60%;
        height: auto;
        object-fit: contain;
        object-position: center bottom;
        mix-blend-mode: screen;
    } */

    /* Middle — transparent center, full cover */
    #p-mid img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center top;
    }

    /* Front layer — transparent center, full cover */
    #p-front img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center top;
    }

/* ── Scroll cue ───────────────────────────────────────────── */
.parallax-scroll-cue {
  position: fixed;        /* ← was absolute, now sticks to viewport */
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  animation: bounce 2s ease-in-out infinite;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.parallax-scroll-cue {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.parallax-scroll-cue span {
  display: block;
  width: 28px;
  height: 28px;
  border-right: 4px solid rgba(212, 48, 48, 0.3);
  border-bottom: 4px solid rgba(232, 223, 196, 0.3);
  transform: rotate(45deg);
  margin-top: -18px;
  animation: arrowGlow 1.2s ease-in-out infinite;
}

.parallax-scroll-cue span:first-child {
  margin-top: 0;
  animation-delay: 0s;
}

.parallax-scroll-cue span:nth-child(2) {
  animation-delay: 0.2s;
}

.parallax-scroll-cue span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes arrowGlow {
  0%, 100% {
    border-color: rgba(212, 48, 48, 0.2) rgba(232, 223, 196, 0.2);
    filter: none;
  }
  50% {
    border-right-color: rgba(212, 48, 48, 1);
    border-bottom-color: rgba(232, 223, 196, 1);
    filter: drop-shadow(0 0 6px rgba(212, 48, 48, 0.8))
            drop-shadow(0 0 12px rgba(232, 223, 196, 0.4));
  }
}
/* ── Neon glow ambient effect ── */
.parallax-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  mix-blend-mode: screen;     /* ← this is the key, makes it additive like real light */

  background: radial-gradient(
    ellipse 35% 25% at 52% 18%,   /* was 28%, now 18% — moves it up */
    rgba(80, 255, 80, 0.35) 0%,
    transparent 65%
  );

  animation: neonPulse 3s ease-in-out infinite;
}

.parallax-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  mix-blend-mode: screen;     /* ← same here */

  background:
    radial-gradient(ellipse 18% 35% at 7% 28%,  rgba(255, 60, 60, 0.3) 0%, transparent 70%),
    conic-gradient(from 30deg at 2% 30%, transparent 0deg, rgba(255, 0, 0, 0.25) 20deg, rgba(101, 2, 2, 0.1) 35deg, transparent 50deg),
    radial-gradient(ellipse 18% 25% at 93% 20%, rgba(60, 220, 255, 0.3) 0%, transparent 70%);

  animation: neonPulse 4s ease-in-out infinite reverse;
}

@keyframes neonPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0);   opacity: 1; }
  50%       { transform: translateX(-50%) translateY(8px); opacity: .5; }
}

/* ── Reduced-motion ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .parallax-layer { transform: none !important; }
  .parallax-scroll-cue { display: none; }
}

/* ── Mobile/Small screen view ───────────────────────────────────────── */
@media (max-width: 768px) {
  :root {
    --ph: 120vh;   /* slightly shorter on mobile */
  }

  /* Fix the black gap — remove the negative margin on mobile */
  .parallax-wrapper {
    top: 0;
    margin-top: -68px;
  }

  /* Re-center the title on mobile */
  .parallax-title {
    align-items: center;
    justify-content: center;
    padding: 0 1.5rem;
    top: 0;
    bottom: 0;
  }

  .parallax-title h1 {
    font-size: clamp(1.8rem, 9vw, 3rem);
    text-align: center;
  }

  .parallax-title p {
    font-size: clamp(0.7rem, 3.5vw, 1rem);
    letter-spacing: 0.06em;
    text-align: center;
  }
}