/* ═══════════════════════════════════════════════════════════
   DM TECH STUDIO — NAVRATRI FESTIVE ANIMATION EFFECTS
   Tasteful Navratri decorations inspired by Gujarati Garba
   and Dandiya nights:
   1. Playing Garba Men & Women Animation Sticker (Bottom-Left)
   2. Pair of decorated Dandiya sticks in corner with gentle sway (Bottom-Right)
   3. Delicate golden sparkles & drifting marigold petals (Canvas)
   ═══════════════════════════════════════════════════════════ */

/* 1. Playing Garba Men & Women Animation Sticker (Bottom-Left Corner) */
.navratri-garba-sticker {
  position: fixed;
  bottom: 20px;
  left: 24px;
  width: 108px;
  height: 92px;
  z-index: 95;
  pointer-events: auto;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.28s ease;
  filter: drop-shadow(0 0 1.5px #ffffff)
          drop-shadow(0 0 3px rgba(255, 255, 255, 0.9))
          drop-shadow(0 8px 18px rgba(0, 0, 0, 0.45));
}

.navratri-garba-sticker:hover {
  transform: translateY(-2px) scale(1.05);
  filter: drop-shadow(0 0 2px #ffffff)
          drop-shadow(0 0 8px rgba(251, 191, 36, 0.95))
          drop-shadow(0 10px 22px rgba(0, 0, 0, 0.55));
}

.navratri-garba-sticker.navratri-ready {
  opacity: 1;
  transform: translateY(0);
}

.garba-sticker-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: garbaStickerFloat 3.6s ease-in-out infinite;
}

.navratri-garba-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  display: block;
}

.garba-woman {
  transform-origin: 36px 88px;
  animation: womanGarbaDance 2.2s ease-in-out infinite alternate;
}

.garba-man {
  transform-origin: 82px 88px;
  animation: manGarbaDance 2.2s ease-in-out infinite alternate;
}

.dandiya-clash-sparkle {
  transform-origin: 60px 18px;
  animation: clashSparkle 2.2s ease-in-out infinite alternate;
}

@keyframes garbaStickerFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

@keyframes womanGarbaDance {
  0% {
    transform: rotate(-2.5deg) translateY(0);
  }
  100% {
    transform: rotate(2deg) translateY(-2.5px);
  }
}

@keyframes manGarbaDance {
  0% {
    transform: rotate(2.5deg) translateY(0);
  }
  100% {
    transform: rotate(-2deg) translateY(-2.5px);
  }
}

@keyframes clashSparkle {
  0%, 30% {
    opacity: 0.35;
    transform: translate(60px, 18px) scale(0.7);
  }
  100% {
    opacity: 1;
    transform: translate(60px, 18px) scale(1.4);
    filter: drop-shadow(0 0 6px #fbbf24);
  }
}

/* 2. Pair of Traditional Dandiya Sticks (Bottom-Right Corner) */
.navratri-dandiya-widget {
  position: fixed;
  bottom: 22px;
  right: 88px;
  width: 56px;
  height: 56px;
  z-index: 95;
  pointer-events: auto;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.28s ease;
  filter: drop-shadow(0 0 1.5px #ffffff)
          drop-shadow(0 0 2.5px rgba(255, 255, 255, 0.8))
          drop-shadow(0 6px 14px rgba(0, 0, 0, 0.35));
}

.navratri-dandiya-widget:hover {
  transform: translateY(-2px) scale(1.08);
  filter: drop-shadow(0 0 2px #ffffff)
          drop-shadow(0 0 8px rgba(251, 191, 36, 0.95))
          drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
}

.navratri-dandiya-widget.navratri-ready {
  opacity: 1;
  transform: translateY(0);
}

.navratri-dandiya-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-origin: 50% 82%;
  animation: navratriDandiyaSway 4.6s ease-in-out infinite alternate;
}

.navratri-dandiya-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  display: block;
}

@keyframes navratriDandiyaSway {
  0% {
    transform: rotate(-3.5deg);
  }
  50% {
    transform: rotate(3deg);
  }
  100% {
    transform: rotate(-3.5deg);
  }
}

/* 3. Canvas Festive Accents (Sparkles & Petals) */
.navratri-particles-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 85;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.navratri-particles-canvas.navratri-ready {
  opacity: 1;
}

/* ═══════════════════════════════════════════════════════════
   4. ANIMATED "HAPPY NAVRATRI" FESTIVE HEADING IN HEADER
   ═══════════════════════════════════════════════════════════ */
.navratri-festive-heading {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.92);
  margin: 0;
  width: max-content;
  max-width: calc(100vw - 32px);
  z-index: 102;
  pointer-events: auto;
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.navratri-festive-heading.navratri-ready {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.navratri-heading-inner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 18px 7px 14px;
  background: rgba(14, 17, 24, 0.90);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(245, 158, 11, 0.45);
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.40),
              0 0 20px rgba(245, 158, 11, 0.16),
              inset 0 1px 0 rgba(254, 240, 138, 0.28);
  animation: navratriHeadingGlow 3.6s ease-in-out infinite alternate;
  user-select: none;
}

@keyframes navratriHeadingGlow {
  0% {
    border-color: rgba(245, 158, 11, 0.38);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.40), 0 0 14px rgba(245, 158, 11, 0.14);
  }
  100% {
    border-color: rgba(251, 191, 36, 0.70);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.50), 0 0 24px rgba(251, 191, 36, 0.28);
  }
}

.navratri-heading-diya {
  font-size: 16px;
  line-height: 1;
  filter: drop-shadow(0 0 6px #f59e0b);
  animation: navratriDiyaPulse 2.4s ease-in-out infinite alternate;
}

@keyframes navratriDiyaPulse {
  0% { transform: scale(1); filter: drop-shadow(0 0 4px #f59e0b); }
  100% { transform: scale(1.16); filter: drop-shadow(0 0 10px #fbbf24); }
}

.navratri-heading-text {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.03em;
  background: linear-gradient(135deg, #ffffff 0%, #fef08a 40%, #fbbf24 80%, #f97316 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin: 0;
  white-space: nowrap;
}

.navratri-heading-sep {
  color: #fbbf24;
  font-size: 11px;
  line-height: 1;
  opacity: 0.8;
}

.navratri-heading-sub {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fbbf24;
  line-height: 1;
  white-space: nowrap;
}

.navratri-heading-close {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #94a3b8;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  cursor: pointer;
  margin-left: 2px;
  transition: all 0.2s ease;
  padding: 0;
  line-height: 1;
}

.navratri-heading-close:hover {
  background: rgba(245, 158, 11, 0.25);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.6);
  transform: scale(1.1);
}

/* Prevent hero content collision with fixed header on homepage */
.home-page .intro-hero .intro-content {
  padding-top: 108px;
}

/* 5. Responsive Adjustments */
@media (max-width: 1024px) {
  .navratri-heading-inner {
    padding: 6px 14px 6px 12px;
    gap: 8px;
  }
  .navratri-heading-text {
    font-size: 18px;
  }
  .navratri-heading-sub {
    font-size: 9.5px;
    letter-spacing: 0.12em;
  }
}

@media (max-width: 860px) {
  .navratri-garba-sticker {
    bottom: 16px;
    left: 14px;
    width: 84px;
    height: 72px;
  }
  .navratri-dandiya-widget {
    bottom: 20px;
    right: 86px;
    width: 46px;
    height: 46px;
  }
}

@media (max-width: 640px) {
  .navratri-heading-sep,
  .navratri-heading-sub {
    display: none;
  }
  .navratri-heading-inner {
    padding: 5px 12px 5px 10px;
    gap: 6px;
  }
  .navratri-heading-text {
    font-size: 15px;
  }
  .navratri-heading-diya {
    font-size: 14px;
  }
}

@media (max-width: 520px) {
  #mainNav {
    overflow: visible !important;
    padding-bottom: 8px !important;
  }
  .navratri-festive-heading {
    position: static !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
    order: 3 !important;
    width: 100% !important;
    margin: 6px auto 0 !important;
    justify-content: center !important;
  }
  .navratri-festive-heading.navratri-ready {
    transform: none !important;
  }
  .navratri-heading-inner {
    padding: 4px 10px 4px 8px;
    gap: 5px;
  }
  .navratri-heading-text {
    font-size: 13.5px;
  }
  .navratri-heading-diya {
    font-size: 13px;
  }
  .navratri-heading-close {
    width: 17px;
    height: 17px;
    font-size: 8px;
  }
  .home-page .intro-hero .intro-content {
    padding-top: 140px !important;
  }
  .navratri-garba-sticker {
    bottom: 14px;
    left: 10px;
    width: 74px;
    height: 64px;
  }
  .navratri-dandiya-widget {
    bottom: 18px;
    right: 82px;
    width: 40px;
    height: 40px;
  }
}

/* 6. Accessibility — Respect Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .garba-sticker-inner,
  .garba-woman,
  .garba-man,
  .dandiya-clash-sparkle,
  .navratri-dandiya-wrap,
  .navratri-heading-inner,
  .navratri-heading-diya {
    animation: none !important;
  }
  .navratri-particles-canvas {
    display: none !important;
  }
  .navratri-garba-sticker,
  .navratri-dandiya-widget,
  .navratri-festive-heading,
  .navratri-hero-durga {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ═══════════════════════════════════════════════════════════
   7. MAA DURGA DIVINE FESTIVE ARTWORK (Homepage Hero Only - Left Side)
   Refined silver-gray line-art with vibrant red accents and
   crystal-clear typography, positioned cleanly on the left.
   ═══════════════════════════════════════════════════════════ */

.navratri-hero-durga {
  position: absolute;
  top: 50%;
  left: 30px;
  transform: translateY(-50%);
  width: 410px;
  height: 750px;
  max-height: 85vh;
  background-image: url('img/navratri-durga-gray-dark.webp');
  background-repeat: no-repeat;
  background-position: center left;
  background-size: contain;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.28))
          drop-shadow(0 0 25px rgba(0, 0, 0, 0.9));
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity;
}

.navratri-hero-durga.navratri-ready {
  opacity: 0.92;
}

/* Responsive - Left-aligned on Desktop/Laptop, Centered on Tablet/Mobile */
@media (max-width: 1400px) {
  .navratri-hero-durga {
    left: 15px;
    width: 360px;
    height: 680px;
  }
}

@media (max-width: 1100px) {
  .navratri-hero-durga {
    left: 10px;
    width: 320px;
    height: 600px;
  }
  .navratri-hero-durga.navratri-ready {
    opacity: 0.82;
  }
}

@media (max-width: 992px) {
  .navratri-hero-durga {
    left: 50%;
    transform: translate(-50%, -50%);
    width: 310px;
    height: 550px;
    opacity: 0;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.25));
  }
  .navratri-hero-durga.navratri-ready {
    opacity: 0.40;
  }
}

@media (max-width: 480px) {
  .navratri-hero-durga {
    width: 270px;
    height: 480px;
    opacity: 0;
  }
  .navratri-hero-durga.navratri-ready {
    opacity: 0.34;
  }
}


