/* ============================================
   SPYDEY OFFICIAL — Hero Section
   hero.css | Cinematic Full-Viewport Hero
   ============================================ */

/* === HERO SECTION === */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: var(--nav-height) 0 0;
}

/* === CINEMATIC SPOTLIGHT LIGHT BEAMS === */
.hero-light-beams {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.hero-beam {
  position: absolute;
  transform-origin: top center;
  filter: blur(25px);
  will-change: transform, opacity;
}

/* Beam 1: Soft broad left beam */
.hero-beam-1 {
  top: -10%;
  left: 10%;
  width: 280px;
  height: 120%;
  background: linear-gradient(180deg, rgba(230, 57, 70, 0.15) 0%, rgba(230, 57, 70, 0.03) 55%, transparent 90%);
  transform: rotate(-18deg);
  clip-path: polygon(20% 0%, 80% 0%, 100% 100%, 0% 100%);
  animation: beamSwayLeft 16s ease-in-out infinite alternate, beamPulse 8s ease-in-out infinite;
}

/* Beam 2: Dynamic sweeping right beam */
.hero-beam-2 {
  top: -15%;
  right: 8%;
  width: 340px;
  height: 130%;
  background: linear-gradient(180deg, rgba(230, 57, 70, 0.17) 0%, rgba(230, 57, 70, 0.03) 60%, transparent 95%);
  transform: rotate(22deg);
  clip-path: polygon(15% 0%, 85% 0%, 100% 100%, 0% 100%);
  animation: beamSwayRight 14s ease-in-out infinite alternate, beamPulse 7s ease-in-out infinite 1s;
}

/* Beam 3: Intense narrow sharp center-left beam */
.hero-beam-3 {
  top: -5%;
  left: 38%;
  width: 150px;
  height: 110%;
  background: linear-gradient(180deg, rgba(230, 57, 70, 0.2) 0%, rgba(230, 57, 70, 0.04) 50%, transparent 85%);
  transform: rotate(-8deg);
  clip-path: polygon(25% 0%, 75% 0%, 100% 100%, 0% 100%);
  animation: beamSwayCenterLeft 12s ease-in-out infinite alternate, beamPulse 6s ease-in-out infinite 2s;
}

/* Beam 4: Soft ambient thin right-center beam */
.hero-beam-4 {
  top: -8%;
  right: 32%;
  width: 190px;
  height: 115%;
  background: linear-gradient(180deg, rgba(230, 57, 70, 0.12) 0%, rgba(230, 57, 70, 0.02) 65%, transparent 90%);
  transform: rotate(12deg);
  clip-path: polygon(20% 0%, 80% 0%, 100% 100%, 0% 100%);
  animation: beamSwayCenterRight 18s ease-in-out infinite alternate, beamPulse 9s ease-in-out infinite 0.5s;
}

/* Animations for light beams */
@keyframes beamSwayLeft {
  0% { transform: rotate(-18deg) translateX(0); }
  100% { transform: rotate(-14deg) translateX(25px); }
}

@keyframes beamSwayRight {
  0% { transform: rotate(22deg) translateX(0); }
  100% { transform: rotate(18deg) translateX(-30px); }
}

@keyframes beamSwayCenterLeft {
  0% { transform: rotate(-8deg) translateX(0); }
  100% { transform: rotate(-11deg) translateX(-10px); }
}

@keyframes beamSwayCenterRight {
  0% { transform: rotate(12deg) translateX(0); }
  100% { transform: rotate(15deg) translateX(15px); }
}

@keyframes beamPulse {
  0%, 100% { opacity: 0.65; }
  50% { opacity: 1; }
}

/* === BACKGROUND SPLIT TEXT === */
.hero-bg-text {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.hero-bg-text-left,
.hero-bg-text-right {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-heading);
  font-size: clamp(8rem, 15vw, 18rem);
  font-weight: 700;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.04);
  line-height: 0.85;
  white-space: nowrap;
  user-select: none;
}

.hero-bg-text-left {
  left: -3%;
  writing-mode: vertical-lr;
  letter-spacing: 15px;
}

.hero-bg-text-right {
  right: -3%;
  writing-mode: vertical-rl;
  letter-spacing: 15px;
}

[data-theme='light'] .hero-bg-text-left,
[data-theme='light'] .hero-bg-text-right {
  -webkit-text-stroke-color: rgba(0, 0, 0, 0.04);
}

/* === HERO CONTENT === */
.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 32px;
  padding: 40px 24px;
}

/* === HERO IMAGE CONTAINER === */
.hero-image-wrapper {
  perspective: 1200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image-container {
  position: relative;
  will-change: transform;
  transition: transform var(--transition-slow);
}

.hero-image {
  width: clamp(260px, 35vw, 420px);
  height: auto;
  border-radius: var(--radius-lg);
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 20px 60px rgba(230, 57, 70, 0.25));
  transition: filter var(--transition-smooth);
}

.hero-image-container:hover .hero-image {
  filter: drop-shadow(0 25px 80px rgba(230, 57, 70, 0.35));
}

/* Cinematic glowing halo around portrait image */
.hero-image-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 95%;
  height: 95%;
  background: radial-gradient(circle, rgba(230, 57, 70, 0.28) 0%, rgba(230, 57, 70, 0.06) 45%, transparent 70%);
  filter: blur(35px);
  z-index: 1;
  border-radius: 50%;
  animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.65; transform: translate(-50%, -50%) scale(1); }
  50%      { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
}

/* === HERO TEXT === */
.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 3.5rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 8px;
  line-height: 1.2;
  color: var(--text-primary);
}

.hero-title span {
  color: var(--accent-red);
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.5vw, 1.2rem);
  font-weight: 300;
  font-style: italic;
  color: var(--text-secondary);
  letter-spacing: 1px;
  margin-top: -16px;
}

/* === PLATFORM ICONS === */
.hero-platforms {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 8px;
}

.hero-platform-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  transition: all var(--transition-smooth);
  color: var(--text-muted);
  font-size: 1.4rem;
}

.hero-platform-icon img {
  width: 24px;
  height: 24px;
  filter: grayscale(100%) brightness(0.6);
  transition: filter var(--transition-smooth);
}

.hero-platform-icon:hover {
  transform: translateY(-4px) scale(1.1);
  border-color: var(--accent-red);
  background: var(--accent-red-subtle);
  box-shadow: 0 8px 24px var(--accent-red-glow);
  color: var(--accent-red);
}

.hero-platform-icon:hover img {
  filter: grayscale(0%) brightness(1);
}

/* === MARQUEE (Background) === */
.hero-marquee {
  position: absolute;
  bottom: 60px;
  left: 0;
  right: 0;
  overflow: hidden;
  white-space: nowrap;
  z-index: 0;
  pointer-events: none;
}

.hero-marquee-track {
  display: inline-flex;
  animation: marqueeScroll 25s linear infinite;
  will-change: transform;
}

.hero-marquee-text {
  font-family: var(--font-heading);
  font-size: clamp(10rem, 20vw, 22rem);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-primary);
  opacity: 0.03;
  white-space: nowrap;
  padding-right: 80px;
  user-select: none;
  line-height: 1;
}

[data-theme='light'] .hero-marquee-text {
  opacity: 0.04;
}

@keyframes marqueeScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* === SCROLL INDICATOR === */
.hero-scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.5;
  animation: scrollBounce 2s ease-in-out infinite;
}

.hero-scroll-indicator span {
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--text-muted);
}

.hero-scroll-indicator-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent-red), transparent);
}

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

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .hero-bg-text-left,
  .hero-bg-text-right {
    font-size: clamp(6rem, 12vw, 14rem);
  }

  .hero-image {
    width: clamp(220px, 40vw, 360px);
  }

  .hero-title {
    letter-spacing: 6px;
  }
}

@media (max-width: 768px) {
  .hero {
    padding-top: var(--nav-height);
    min-height: 100vh;
    min-height: 100dvh;
  }

  .hero-bg-text-left,
  .hero-bg-text-right {
    font-size: 6rem;
    opacity: 0.5;
  }

  .hero-content {
    gap: 24px;
    padding: 24px 16px;
  }

  .hero-image {
    width: clamp(200px, 55vw, 300px);
  }

  .hero-title {
    letter-spacing: 4px;
  }

  .hero-subtitle {
    margin-top: -8px;
  }

  .hero-platforms {
    gap: 16px;
  }

  .hero-platform-icon {
    width: 42px;
    height: 42px;
  }

  .hero-marquee {
    bottom: 40px;
  }

  .hero-scroll-indicator {
    bottom: 16px;
  }
}

@media (max-width: 480px) {
  .hero-bg-text-left {
    display: none;
  }

  .hero-bg-text-right {
    display: none;
  }

  .hero-image {
    width: clamp(180px, 65vw, 260px);
  }

  .hero-title {
    letter-spacing: 3px;
    font-size: 1.6rem;
  }

  .hero-subtitle {
    font-size: 0.9rem;
  }

  .hero-platforms {
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-platform-icon {
    width: 38px;
    height: 38px;
  }

  .hero-scroll-indicator {
    display: none;
  }
}
