/**
 * Dell Soft Technologies - Festive Diwali Theme Decorations
 * Authentic Marigold Toran, Animated Akash Kandils (Sky Lanterns), and Floating 5% OFF Diya Badge
 */

/* ==========================================================================
   1. TORAN & KANDIL CONTAINER (FIXED WITH STICKY HEADER - DOES NOT SCROLL AWAY)
   ========================================================================== */
header.elementor-location-header,
header[data-elementor-type="header"],
.site-header {
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 999999 !important;
  background-color: #ffffff !important;
  width: 100% !important;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.08) !important;
}

.dell-diwali-decorations {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 270px;
  pointer-events: none;
  z-index: 99999;
  overflow: hidden;
}

/* Seamless repeating marigold flower garland (झेंडू-आंब्याची पाने तोरण) */
.dell-diwali-toran {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 54px;
  background-image: url('../assets/img/diwali-toran-tile.png');
  background-repeat: repeat-x;
  background-position: center top;
  background-size: 360px 54px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.12));
  z-index: 10;
  pointer-events: none;
}

/* Twinkling micro fairy lights along the toran garland */
.dell-diwali-lights {
  position: absolute;
  top: 8px;
  left: 0;
  width: 100%;
  height: 20px;
  display: flex;
  justify-content: space-around;
  pointer-events: none;
  z-index: 11;
}

.dell-diwali-bulb {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fef08a;
  box-shadow: 0 0 6px 2px rgba(253, 224, 71, 0.85);
  animation: diwaliBulbTwinkle 2.5s infinite ease-in-out;
}

.dell-diwali-bulb:nth-child(2n) {
  background: #fed7aa;
  box-shadow: 0 0 6px 2px rgba(251, 146, 60, 0.85);
  animation-delay: 0.6s;
  animation-duration: 3s;
}

.dell-diwali-bulb:nth-child(3n) {
  background: #fecdd3;
  box-shadow: 0 0 6px 2px rgba(244, 63, 94, 0.85);
  animation-delay: 1.2s;
  animation-duration: 2.2s;
}

.dell-diwali-bulb:nth-child(4n) {
  background: #bbf7d0;
  box-shadow: 0 0 6px 2px rgba(74, 222, 128, 0.85);
  animation-delay: 1.8s;
  animation-duration: 2.8s;
}

@keyframes diwaliBulbTwinkle {
  0%, 100% { opacity: 0.35; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.25); filter: brightness(1.3); }
}

/* ==========================================================================
   2. AKASH KANDIL (TRADITIONAL DIWALI SKY LANTERNS)
   ========================================================================== */
.dell-diwali-kandil-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  pointer-events: none;
  z-index: 12;
}

.dell-diwali-kandil {
  position: absolute;
  top: 0;
  width: 115px;
  height: 255px;
  transform-origin: 50% 0%;
  filter: drop-shadow(0 8px 18px rgba(185, 28, 28, 0.28));
  pointer-events: none;
  will-change: transform;
}

/* Left Kandil */
.dell-diwali-kandil-left {
  left: 36px;
  animation: kandilSwayLeft 4.6s ease-in-out infinite alternate;
}

/* Right Kandil */
.dell-diwali-kandil-right {
  right: 36px;
  animation: kandilSwayRight 5.2s ease-in-out infinite alternate-reverse;
}

/* Realistic physics pendulum swaying animations */
@keyframes kandilSwayLeft {
  0% { transform: rotate(-4.5deg); }
  50% { transform: rotate(1deg); }
  100% { transform: rotate(4deg); }
}

@keyframes kandilSwayRight {
  0% { transform: rotate(4deg); }
  50% { transform: rotate(-1deg); }
  100% { transform: rotate(-4.5deg); }
}

/* Inner Diya flame flickering */
.dell-kandil-flame {
  transform-origin: 60px 105px;
  animation: kandilFlamePulse 1.8s ease-in-out infinite alternate;
}

@keyframes kandilFlamePulse {
  0% {
    transform: scale(0.96) rotate(-1.5deg);
    opacity: 0.92;
  }
  50% {
    transform: scale(1.08, 1.15) rotate(1.5deg);
    opacity: 1;
    filter: drop-shadow(0 0 4px #fef08a);
  }
  100% {
    transform: scale(0.98, 0.95) rotate(-1deg);
    opacity: 0.94;
  }
}

/* Streaming tassels waving */
.dell-kandil-tassels {
  animation: tasselsWave 3.5s ease-in-out infinite alternate;
  transform-origin: 60px 155px;
}

@keyframes tasselsWave {
  0% { transform: skewX(-1.5deg); }
  100% { transform: skewX(2deg); }
}

/* ==========================================================================
   3. FLOATING 5% OFF DIYA BADGE
   ========================================================================== */
.dell-diwali-badge {
  position: fixed;
  right: 24px;
  bottom: 160px;
  z-index: 999999;
  background: linear-gradient(135deg, #9a3412 0%, #ea580c 45%, #c2410c 100%);
  color: #ffffff;
  padding: 10px 16px 10px 12px;
  border-radius: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 6px 20px rgba(234, 88, 12, 0.45), 0 0 14px rgba(251, 191, 36, 0.4);
  border: 1.5px solid rgba(254, 240, 138, 0.6);
  cursor: pointer;
  text-decoration: none !important;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
  pointer-events: auto;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  overflow: hidden;
}

.dell-diwali-badge::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.25) 0%, transparent 60%);
  opacity: 0.6;
  pointer-events: none;
  animation: badgeShine 4s linear infinite;
}

@keyframes badgeShine {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.dell-diwali-badge:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 10px 28px rgba(234, 88, 12, 0.6), 0 0 24px rgba(251, 191, 36, 0.75);
  border-color: #fef08a;
}

.dell-diwali-badge-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dell-diwali-badge-text-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.dell-diwali-badge-title {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  text-transform: uppercase;
}

.dell-diwali-badge-sub {
  font-size: 10px;
  font-weight: 600;
  color: #fef08a;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.dell-diya-flame-anim {
  transform-origin: 25px 18px;
  animation: diyaFlameFlicker 1.4s ease-in-out infinite alternate;
}

@keyframes diyaFlameFlicker {
  0% {
    transform: scale(0.95, 0.95) rotate(-2deg);
    opacity: 0.92;
  }
  50% {
    transform: scale(1.1, 1.2) rotate(2.5deg);
    opacity: 1;
  }
  100% {
    transform: scale(0.98, 0.9) rotate(-1.5deg);
    opacity: 0.94;
  }
}

/* ==========================================================================
   4. RESPONSIVE DESIGN (TABLETS & MOBILE)
   ========================================================================== */
@media (max-width: 1024px) {
  .dell-diwali-toran {
    height: 48px;
    background-size: 320px 48px;
  }
  .dell-diwali-kandil {
    width: 95px;
    height: 215px;
  }
  .dell-diwali-kandil-left {
    left: 18px;
  }
  .dell-diwali-kandil-right {
    right: 18px;
  }
}

@media (max-width: 768px) {
  .dell-diwali-toran {
    height: 38px;
    background-size: 250px 38px;
  }
  .dell-diwali-kandil {
    width: 75px;
    height: 170px;
  }
  .dell-diwali-kandil-left {
    left: 8px;
  }
  .dell-diwali-kandil-right {
    right: 8px;
  }
  .dell-diwali-badge {
    right: 16px;
    bottom: 145px;
    padding: 8px 12px 8px 10px;
    border-radius: 32px;
    gap: 8px;
  }
  .dell-diwali-badge-title {
    font-size: 13px;
  }
  .dell-diwali-badge-sub {
    font-size: 9px;
  }
}

@media (max-width: 480px) {
  /* On very small phone screens, scale gracefully so text is clear */
  .dell-diwali-kandil {
    width: 60px;
    height: 135px;
    opacity: 0.92;
  }
  .dell-diwali-kandil-left {
    left: 4px;
  }
  .dell-diwali-kandil-right {
    right: 4px;
  }
}



/* ==========================================================================
   5. GRAND DIWALI 80% OFF POPUP MODAL
   ========================================================================== */
.dell-diwali-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99999999;
  background: rgba(10, 10, 28, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.dell-diwali-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.dell-diwali-modal-box {
  position: relative;
  max-width: 480px;
  width: 100%;
  border-radius: 24px;
  background: linear-gradient(150deg, #1e0938 0%, #4a0d2e 50%, #160424 100%);
  border: 2px solid #facc15;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.65), 0 0 40px rgba(234, 88, 12, 0.45), inset 0 0 25px rgba(250, 204, 21, 0.12);
  color: #ffffff;
  text-align: center;
  overflow: hidden;
  transform: scale(0.85) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.dell-diwali-modal-backdrop.active .dell-diwali-modal-box {
  transform: scale(1) translateY(0);
}

/* Close button */
.dell-diwali-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
  padding: 0;
}

.dell-diwali-modal-close:hover {
  background: rgba(239, 68, 68, 0.8);
  border-color: #ef4444;
  transform: rotate(90deg);
}

/* Mini Toran along modal top */
.dell-diwali-modal-toran {
  width: 100%;
  height: 38px;
  background-image: url('../assets/img/diwali-toran-tile.png');
  background-repeat: repeat-x;
  background-size: 250px 38px;
  position: relative;
  z-index: 10;
}

/* Mini Kandils hanging on modal */
.dell-modal-kandil {
  position: absolute;
  top: 15px;
  width: 48px;
  height: 108px;
  z-index: 12;
  pointer-events: none;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
}

.dell-modal-kandil-l {
  left: 14px;
  animation: kandilSwayLeft 4.5s ease-in-out infinite alternate;
}

.dell-modal-kandil-r {
  right: 14px;
  animation: kandilSwayRight 5s ease-in-out infinite alternate-reverse;
}

/* Modal inner content */
.dell-diwali-modal-content {
  padding: 10px 24px 22px;
  position: relative;
  z-index: 15;
}

.dell-modal-festive-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 20px;
  background: rgba(254, 240, 138, 0.15);
  border: 1px solid rgba(254, 240, 138, 0.45);
  color: #fef08a;
  font-size: 12px;
  font-weight: 700;
  margin-top: 4px;
  letter-spacing: 0.3px;
}

.dell-diwali-modal-title {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 1.5px;
  color: #ffffff;
  margin: 10px 0 4px;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

/* Big 80% OFF Graphic */
.dell-diwali-discount-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 10px auto;
  padding: 10px 20px;
  background: radial-gradient(ellipse at center, rgba(234, 88, 12, 0.3) 0%, transparent 75%);
}

.dell-discount-diya {
  flex-shrink: 0;
  filter: drop-shadow(0 0 12px rgba(250, 204, 21, 0.6));
}

.dell-discount-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 0.95;
}

.dell-discount-flat {
  font-size: 13px;
  font-weight: 800;
  color: #fdba74;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.dell-discount-num {
  font-size: 52px;
  font-weight: 900;
  color: #fef08a;
  text-shadow: 0 0 22px rgba(250, 204, 21, 0.85), 0 3px 8px rgba(0, 0, 0, 0.6);
  letter-spacing: -1px;
}

.dell-diwali-modal-desc {
  font-size: 13.5px;
  color: #f3f4f6;
  line-height: 1.55;
  margin: 0 8px 16px;
}

.dell-diwali-modal-desc strong {
  color: #fef08a;
}

/* Coupon Box */
.dell-diwali-coupon-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1.5px dashed #facc15;
  border-radius: 12px;
  padding: 10px 14px;
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.dell-coupon-label {
  font-size: 11px;
  font-weight: 700;
  color: #fdba74;
  letter-spacing: 0.5px;
}

.dell-coupon-code-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dell-coupon-code {
  font-size: 17px;
  font-weight: 900;
  color: #fef08a;
  letter-spacing: 2px;
  user-select: all;
}

.dell-coupon-copy-btn {
  background: #facc15;
  color: #1e1b4b;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s;
}

.dell-coupon-copy-btn:hover {
  background: #fef08a;
  transform: scale(1.05);
}

.dell-coupon-copy-btn.copied {
  background: #22c55e;
  color: #ffffff;
}

/* Modal Actions */
.dell-diwali-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.dell-modal-btn-wa {
  width: 100%;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: #ffffff !important;
  padding: 13px 20px;
  border-radius: 30px;
  font-weight: 800;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none !important;
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.45);
  transition: transform 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.dell-modal-btn-wa:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(34, 197, 94, 0.65);
}

.dell-modal-btn-call {
  color: #fef08a !important;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  transition: opacity 0.2s;
}

.dell-modal-btn-call:hover {
  opacity: 0.85;
}

.dell-diwali-modal-footer {
  margin-top: 4px;
}

.dell-diwali-dismiss-link {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
  padding: 4px 8px;
  transition: color 0.2s;
}

.dell-diwali-dismiss-link:hover {
  color: #ffffff;
}

@media (max-width: 480px) {
  .dell-diwali-modal-box {
    border-radius: 18px;
  }
  .dell-discount-num {
    font-size: 42px;
  }
  .dell-modal-kandil {
    display: none;
  }
  .dell-diwali-modal-title {
    font-size: 20px;
  }
}
