/* ==========================================================================
   HOME PAGE (index.html) SPECIFIC STYLES
   ========================================================================== */

/* ==========================================================================
   1. Hero Section & Logo Presentation
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(
      circle at 50% 50%,
      rgba(43, 5, 13, 0.45) 0%,
      rgba(15, 2, 5, 0.85) 60%,
      #050002 100%
    ),
    #050002;
  text-align: center;
  overflow: hidden;
  padding: 100px 1.5rem 5rem;
  perspective: 1000px;
}

.musical-led-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.88;
}

/* Hanging LED Festoon Garland (Top Border) */
.led-festoon-strand {
  position: absolute;
  top: 76px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-around;
  padding: 0 10px;
  z-index: 2;
  pointer-events: none;
}

.led-bulb {
  width: 10px;
  height: 14px;
  border-radius: 50% 50% 40% 40%;
  position: relative;
  background: #333;
  animation: bulbMusicPulse 1.8s ease-in-out infinite alternate;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.8);
}

.led-bulb::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 4px;
  background: #222;
  border-radius: 2px;
}

.led-bulb.b-gold {
  background: #ffd700;
  box-shadow:
    0 0 12px #ffcf33,
    0 0 25px rgba(255, 207, 51, 0.8);
  animation-delay: 0.1s;
}
.led-bulb.b-saffron {
  background: #ff2a4b;
  box-shadow:
    0 0 12px #ff0838,
    0 0 25px rgba(255, 42, 75, 0.8);
  animation-delay: 0.35s;
}
.led-bulb.b-green {
  background: #00ff88;
  box-shadow:
    0 0 12px #00e676,
    0 0 25px rgba(0, 255, 136, 0.8);
  animation-delay: 0.6s;
}
.led-bulb.b-cyan {
  background: #00e5ff;
  box-shadow:
    0 0 12px #00b0ff,
    0 0 25px rgba(0, 229, 255, 0.8);
  animation-delay: 0.85s;
}
.led-bulb.b-pink {
  background: #ff007f;
  box-shadow:
    0 0 12px #f50057,
    0 0 25px rgba(255, 0, 127, 0.8);
  animation-delay: 1.1s;
}

@keyframes bulbMusicPulse {
  0% {
    opacity: 0.3;
    transform: scale(0.9);
    filter: brightness(0.6);
  }
  50% {
    opacity: 1;
    transform: scale(1.15);
    filter: brightness(1.4);
  }
  100% {
    opacity: 0.5;
    transform: scale(0.95);
    filter: brightness(0.8);
  }
}

/* Signature Musical Lighting Badge */
.hero-lighting-badge {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(30, 3, 8, 0.8);
  backdrop-filter: blur(10px);
  border: 1.5px solid var(--color-gold);
  color: var(--color-gold-light);
  padding: 6px 18px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.8),
    0 0 15px rgba(255, 207, 51, 0.3);
  margin-bottom: 1.5rem;
  animation: badgeBeatPulse 2.4s ease-in-out infinite alternate;
}

@keyframes badgeBeatPulse {
  0% {
    box-shadow: 0 0 10px rgba(255, 207, 51, 0.2);
    border-color: rgba(255, 207, 51, 0.5);
  }
  100% {
    box-shadow:
      0 0 25px rgba(255, 140, 0, 0.6),
      0 0 40px rgba(255, 207, 51, 0.4);
    border-color: var(--color-gold);
  }
}

/* Mini Audio Equalizer Bar Animation */
.music-equalizer-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 14px;
}

.music-equalizer-bars i {
  width: 3px;
  background: var(--color-gold);
  border-radius: 2px;
  animation: eqBarJump 1.2s ease-in-out infinite alternate;
}

.music-equalizer-bars i:nth-child(1) {
  height: 40%;
  animation-delay: 0.1s;
}
.music-equalizer-bars i:nth-child(2) {
  height: 90%;
  animation-delay: 0.35s;
}
.music-equalizer-bars i:nth-child(3) {
  height: 60%;
  animation-delay: 0.2s;
}
.music-equalizer-bars i:nth-child(4) {
  height: 100%;
  animation-delay: 0.45s;
}

@keyframes eqBarJump {
  0% {
    height: 20%;
    opacity: 0.5;
  }
  100% {
    height: 100%;
    opacity: 1;
    background: var(--color-orange);
  }
}

/* Properly Scaled Hero Logo */
.hero-bg-image {
  position: relative;
  width: 90%;
  max-width: 660px;
  height: auto;
  max-height: 60vh;
  object-fit: contain;
  object-position: center center;
  z-index: 2;
  transform-style: preserve-3d;
  will-change: transform, opacity, filter;
  animation:
    ganesha3DEntrance 1.6s cubic-bezier(0.16, 1, 0.3, 1) forwards,
    ganesha3DFloat 6s ease-in-out infinite alternate 1.6s;
  transition:
    transform 0.4s ease-out,
    filter 0.4s ease-out;
}

.hero-bg-image:hover {
  transform: translate3d(0, -8px, 50px) rotateX(3deg) scale(1.03);
  filter: drop-shadow(0 0 45px rgba(255, 207, 51, 0.85)) brightness(1.08);
}

@keyframes ganesha3DEntrance {
  0% {
    opacity: 0;
    transform: translate3d(0, 40px, -400px) rotateX(15deg) scale(0.7);
    filter: drop-shadow(0 0 10px rgba(255, 207, 51, 0.1)) brightness(0.6);
  }
  65% {
    opacity: 1;
    transform: translate3d(0, -10px, 50px) rotateX(-3deg) scale(1.04);
    filter: drop-shadow(0 0 55px rgba(255, 207, 51, 0.8)) brightness(1.15);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotateX(0deg) scale(1);
    filter: drop-shadow(0 0 35px rgba(255, 207, 51, 0.5)) brightness(1);
  }
}

@keyframes ganesha3DFloat {
  0% {
    transform: translate3d(0, 0, 0) rotateX(0deg) rotateY(0deg);
    filter: drop-shadow(0 0 28px rgba(255, 207, 51, 0.45));
  }
  50% {
    transform: translate3d(0, -12px, 30px) rotateX(2.5deg) rotateY(-2deg);
    filter: drop-shadow(0 0 42px rgba(255, 207, 51, 0.7));
  }
  100% {
    transform: translate3d(0, -6px, 15px) rotateX(-2deg) rotateY(2deg);
    filter: drop-shadow(0 0 32px rgba(255, 140, 0, 0.55));
  }
}

/* Animated Centered Bouncing Scroll Down Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-shadow:
    0 2px 10px rgba(0, 0, 0, 0.9),
    0 0 12px rgba(255, 207, 51, 0.5);
  cursor: pointer;
  user-select: none;
  animation: heroBounce 2s ease-in-out infinite;
}

.scroll-indicator:hover {
  color: var(--color-gold);
}

@keyframes heroBounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translate(-50%, 0);
  }
  40% {
    transform: translate(-50%, -10px);
  }
  60% {
    transform: translate(-50%, -5px);
  }
}

/* ==========================================================================
   2. Festive Stage Light Beams
   ========================================================================== */
.festival-lighting-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.light-beam {
  position: absolute;
  top: -10px;
  height: 90%;
  transform-origin: top center;
  mix-blend-mode: screen;
  filter: blur(28px);
  opacity: 0.35;
  clip-path: polygon(44% 0%, 56% 0%, 100% 100%, 0% 100%);
  animation: beamStageSway 8s ease-in-out infinite alternate;
}

.beam-saffron-left {
  left: 3%;
  width: 220px;
  --beam-angle: -18deg;
  transform: rotate(var(--beam-angle));
  background: linear-gradient(
    180deg,
    rgba(255, 110, 20, 0.75) 0%,
    rgba(255, 140, 40, 0.35) 45%,
    rgba(255, 110, 20, 0) 100%
  );
  animation-duration: 7s;
}

.beam-pink-left {
  left: 18%;
  width: 240px;
  --beam-angle: -10deg;
  transform: rotate(var(--beam-angle));
  background: linear-gradient(
    180deg,
    rgba(255, 30, 110, 0.7) 0%,
    rgba(236, 72, 153, 0.3) 50%,
    rgba(255, 30, 110, 0) 100%
  );
  animation-duration: 9.5s;
  animation-delay: 1.5s;
}

.beam-blue-left {
  left: 32%;
  width: 200px;
  --beam-angle: -4deg;
  transform: rotate(var(--beam-angle));
  background: linear-gradient(
    180deg,
    rgba(30, 144, 255, 0.6) 0%,
    rgba(56, 189, 248, 0.25) 50%,
    rgba(30, 144, 255, 0) 100%
  );
  animation-duration: 8s;
  animation-delay: 3s;
}

.beam-gold-center {
  left: 50%;
  margin-left: -150px;
  width: 300px;
  --beam-angle: 0deg;
  transform: rotate(var(--beam-angle));
  background: linear-gradient(
    180deg,
    rgba(255, 215, 0, 0.5) 0%,
    rgba(255, 190, 30, 0.2) 40%,
    rgba(255, 215, 0, 0) 100%
  );
  opacity: 0.25;
  animation-duration: 6s;
  animation-delay: 0.5s;
}

.beam-green-right {
  left: 64%;
  width: 210px;
  --beam-angle: 5deg;
  transform: rotate(var(--beam-angle));
  background: linear-gradient(
    180deg,
    rgba(16, 185, 129, 0.65) 0%,
    rgba(52, 211, 153, 0.25) 50%,
    rgba(16, 185, 129, 0) 100%
  );
  animation-duration: 8.5s;
  animation-delay: 2s;
}

.beam-purple-right {
  left: 76%;
  width: 230px;
  --beam-angle: 12deg;
  transform: rotate(var(--beam-angle));
  background: linear-gradient(
    180deg,
    rgba(168, 85, 247, 0.7) 0%,
    rgba(192, 132, 252, 0.3) 50%,
    rgba(168, 85, 247, 0) 100%
  );
  animation-duration: 10s;
  animation-delay: 1s;
}

.beam-amber-right {
  left: 88%;
  width: 220px;
  --beam-angle: 18deg;
  transform: rotate(var(--beam-angle));
  background: linear-gradient(
    180deg,
    rgba(255, 160, 0, 0.7) 0%,
    rgba(251, 191, 36, 0.3) 45%,
    rgba(255, 160, 0, 0) 100%
  );
  animation-duration: 7.5s;
  animation-delay: 2.5s;
}

@keyframes beamStageSway {
  0% {
    opacity: 0.22;
    transform: rotate(calc(var(--beam-angle, 0deg) - 2.5deg)) scaleX(0.95);
  }
  50% {
    opacity: 0.45;
    transform: rotate(calc(var(--beam-angle, 0deg) + 2.5deg)) scaleX(1.05);
  }
  100% {
    opacity: 0.28;
    transform: rotate(var(--beam-angle, 0deg)) scaleX(1);
  }
}

/* ==========================================================================
   3. Animated Heritage Intro Image
   ========================================================================== */
.intro-image-wrapper {
  position: relative;
  max-width: 420px; /* Reduced from 560px for a balanced vertical layout */
  margin: 0 auto;
  padding: 8px;
  border-radius: var(--radius-lg);
  background: linear-gradient(
    135deg,
    rgba(255, 207, 51, 0.7) 0%,
    rgba(255, 42, 75, 0.4) 50%,
    rgba(255, 140, 0, 0.7) 100%
  );
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.7),
    0 0 28px rgba(255, 207, 51, 0.35);
  animation: introFramePulse 4s ease-in-out infinite alternate;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.intro-image-wrapper:hover {
  transform: translateY(-6px) scale(1.02);
}

@keyframes introFramePulse {
  0% {
    box-shadow:
      0 14px 35px rgba(0, 0, 0, 0.65),
      0 0 20px rgba(255, 207, 51, 0.25);
  }
  100% {
    box-shadow:
      0 20px 50px rgba(0, 0, 0, 0.85),
      0 0 40px rgba(255, 140, 0, 0.5),
      0 0 65px rgba(255, 207, 51, 0.35);
  }
}

.intro-aura-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 95%;
  height: 95%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 207, 51, 0.4) 0%,
    rgba(255, 140, 0, 0.25) 45%,
    rgba(255, 42, 75, 0.15) 70%,
    transparent 85%
  );
  filter: blur(35px);
  z-index: 0;
  pointer-events: none;
  animation: introAuraBreathe 5s ease-in-out infinite alternate;
}

@keyframes introAuraBreathe {
  0% {
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 0.5;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.15);
    opacity: 0.9;
  }
}

.intro-image-box {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #190307;
  border: 1.5px solid var(--color-gold);
  z-index: 1;
  aspect-ratio: 9 / 16; /* Updated from 4 / 3 to vertical mobile/poster ratio */
  width: 100%;
}

.intro-heritage-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition:
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.6s ease;
}
.intro-image-wrapper:hover .intro-heritage-img {
  transform: scale(1.05);
  filter: brightness(1.08) contrast(1.02);
}

.intro-shimmer-sweep {
  position: absolute;
  top: 0;
  left: -150%;
  width: 65%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.15) 30%,
    rgba(255, 235, 140, 0.45) 50%,
    rgba(255, 255, 255, 0.7) 60%,
    transparent 100%
  );
  transform: skewX(-25deg);
  pointer-events: none;
  z-index: 2;
  transition: left 0.8s ease;
}

.intro-image-wrapper:hover .intro-shimmer-sweep {
  left: 200%;
}

.intro-corner-accent {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2.5px solid var(--color-gold);
  z-index: 3;
  pointer-events: none;
  filter: drop-shadow(0 0 6px rgba(255, 207, 51, 0.8));
}
.intro-corner-tl {
  top: 4px;
  left: 4px;
  border-right: none;
  border-bottom: none;
  border-radius: 6px 0 0 0;
}
.intro-corner-tr {
  top: 4px;
  right: 4px;
  border-left: none;
  border-bottom: none;
  border-radius: 0 6px 0 0;
}
.intro-corner-bl {
  bottom: 4px;
  left: 4px;
  border-right: none;
  border-top: none;
  border-radius: 0 0 0 6px;
}
.intro-corner-br {
  bottom: 4px;
  right: 4px;
  border-left: none;
  border-top: none;
  border-radius: 0 0 6px 0;
}

/* ==========================================================================
   4. Impact Statistics Banner & Counter Cards
   ========================================================================== */
.stats-banner {
  background: linear-gradient(
    135deg,
    #2b050d 0%,
    #8a3d00 50%,
    #2b050d 100%
  ) !important;
  color: #fff !important;
  position: relative !important;
  overflow: hidden !important;
  border-top: 3px solid var(--color-gold) !important;
  border-bottom: 3px solid var(--color-gold) !important;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.7) !important;
}

.stat-item {
  text-align: center !important;
  padding: 2rem 1.5rem !important;
  background: rgba(43, 5, 13, 0.75) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-radius: var(--radius-md) !important;
  border: 1.5px solid var(--color-border) !important;
  box-shadow: var(--shadow-sm) !important;
  transition:
    transform var(--transition-normal),
    border-color var(--transition-normal),
    box-shadow var(--transition-normal) !important;
}

.stat-item:hover {
  transform: translateY(-6px) !important;
  border-color: var(--color-gold) !important;
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.8),
    0 0 20px var(--color-gold-glow) !important;
}

.stat-number {
  font-size: 3.2rem !important;
  font-weight: 900 !important;
  color: var(--color-gold) !important;
  line-height: 1.1 !important;
  margin-bottom: 0.5rem !important;
  font-family: var(--font-english) !important;
  text-shadow: 0 0 20px rgba(255, 207, 51, 0.55) !important;
}

.stat-label {
  font-size: 1.05rem !important;
  color: var(--color-cream) !important;
  font-weight: 700 !important;
}

/* Responsive Media Queries */
@media (max-width: 768px) {
  .hero-section {
    padding: 80px 1rem 4.5rem;
  }
  .hero-bg-image {
    max-width: 320px;
    max-height: 48vh;
  }
  .light-beam {
    filter: blur(18px);
    opacity: 0.3;
  }
  .beam-saffron-left,
  .beam-amber-right {
    width: 140px;
  }
  .beam-pink-left,
  .beam-purple-right {
    width: 150px;
  }
  .beam-blue-left,
  .beam-green-right {
    display: none;
  }
  .stat-number {
    font-size: 2.5rem !important;
  }
}

/* 1. Perspective container to enable true 3D depth */
.hero-logo-wrapper {
  position: relative;
  z-index: 4;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1200px;
  margin: 1rem auto 2.5rem;
}

/* 2. Increased base size and smooth transition properties */
.ganesh-logo {
  width: 500px;
  max-width: 88vw;
  height: auto;
  transform-style: preserve-3d;
  transition:
    transform 0.5s cubic-bezier(0.25, 1, 0.5, 1),
    filter 0.5s ease-out;
  cursor: pointer;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.9))
    drop-shadow(0 0 20px rgba(255, 207, 51, 0.45));
}

/* 3. 3D Pop & Illuminating Aura on Hover */
.hero-logo-wrapper:hover .ganesh-logo {
  transform: translateZ(60px) translateY(-10px) scale(1.06);
  filter: drop-shadow(0 0 35px rgba(255, 191, 0, 0.9))
    drop-shadow(0 0 65px rgba(255, 60, 0, 0.6))
    drop-shadow(0 20px 35px rgba(0, 0, 0, 0.8));
}

.logo-ambient-led-halo {
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 191, 0, 0.32) 0%,
    rgba(255, 60, 0, 0.18) 45%,
    transparent 70%
  );
  filter: blur(40px);
  z-index: -1;
  pointer-events: none;
  animation: ledHaloRhythm 3.2s ease-in-out infinite alternate;
}

@keyframes ledHaloRhythm {
  0% {
    transform: scale(0.9);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.18);
    opacity: 0.95;
    filter: blur(50px);
  }
  100% {
    transform: scale(1);
    opacity: 0.7;
  }
}
