/* This site was custom designed by Sitethreesixty.com and is actively managed by Sitethreesixty.com */
/* ================================
   CHRISTMAS ANIMATIONS
   Fun festive effects for light-show page
   ================================ */
body {
  min-height: 100vh;
  background: linear-gradient(
    120deg,
    #1a472a,
    #2d5a3d,
    #8b1538,
    #5c1a1a,
    #1a472a
  );
  background-size: 300% 300%;
  animation: christmasGradient 6s ease infinite;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.15) 0 2px, transparent 3px),
    radial-gradient(circle at 70% 60%, rgba(255,215,0,0.12) 0 3px, transparent 4px),
    radial-gradient(circle at 40% 80%, rgba(255,255,255,0.1) 0 2px, transparent 3px);
  background-size: 200px 200px;
  pointer-events: none;
  animation: sparkleMove 60s linear infinite;
}

@keyframes sparkleMove {
  from { transform: translateY(0); }
  to { transform: translateY(-200px); }
}

@keyframes christmasGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ================================
   SNOWFALL EFFECT
   ================================ */
.snowfall {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  overflow: hidden;
}

.snowflake {
  position: absolute;
  top: -20px;
  color: #fff;
  font-size: 1rem;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
  animation: snowfall linear infinite;
  opacity: 0.8;
}

@keyframes snowfall {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotate(360deg);
    opacity: 0.3;
  }
}

/* Different snowflake sizes and speeds */
.snowflake:nth-child(5n) { font-size: 1.2rem; animation-duration: 10s; }
.snowflake:nth-child(5n+1) { font-size: 0.8rem; animation-duration: 14s; }
.snowflake:nth-child(5n+2) { font-size: 1rem; animation-duration: 12s; }
.snowflake:nth-child(5n+3) { font-size: 0.6rem; animation-duration: 16s; }
.snowflake:nth-child(5n+4) { font-size: 1.4rem; animation-duration: 8s; }

/* ================================
   TWINKLING CHRISTMAS LIGHTS
   ================================ */
.christmas-lights {
  position: fixed;
  top: 70px;
  left: 0;
  width: 100%;
  height: 60px;
  z-index: 9998;
  pointer-events: none;
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  padding: 0 20px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, transparent 100%);
}

.light-string {
  display: flex;
  gap: 30px;
  position: relative;
}

.light-bulb {
  width: 12px;
  height: 18px;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  position: relative;
  animation: twinkle ease-in-out infinite;
  box-shadow: 0 0 10px currentColor, 0 0 20px currentColor, 0 0 30px currentColor;
}

.light-bulb::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background: #333;
  border-radius: 2px;
}

/* Wire connecting bulbs */
.light-bulb::after {
  content: '';
  position: absolute;
  top: -2px;
  left: 12px;
  width: 30px;
  height: 2px;
  background: #1a1a1a;
  z-index: -1;
}

.light-bulb:last-child::after {
  display: none;
}

/* Light colors */
.light-bulb.red { color: #ff0000; background: radial-gradient(circle at 30% 30%, #ff6666, #ff0000); }
.light-bulb.green { color: #00ff00; background: radial-gradient(circle at 30% 30%, #66ff66, #00cc00); }
.light-bulb.blue { color: #0066ff; background: radial-gradient(circle at 30% 30%, #66aaff, #0066ff); }
.light-bulb.gold { color: #ffd700; background: radial-gradient(circle at 30% 30%, #ffec80, #ffd700); }
.light-bulb.white { color: #ffffff; background: radial-gradient(circle at 30% 30%, #ffffff, #dddddd); }

/* Twinkle animation with different timing */
@keyframes twinkle {
  0%, 100% { opacity: 1; filter: brightness(1); }
  50% { opacity: 0.5; filter: brightness(0.6); }
}

.light-bulb:nth-child(5n) { animation-duration: 1.5s; animation-delay: 0s; }
.light-bulb:nth-child(5n+1) { animation-duration: 2s; animation-delay: 0.3s; }
.light-bulb:nth-child(5n+2) { animation-duration: 1.8s; animation-delay: 0.1s; }
.light-bulb:nth-child(5n+3) { animation-duration: 2.2s; animation-delay: 0.5s; }
.light-bulb:nth-child(5n+4) { animation-duration: 1.6s; animation-delay: 0.2s; }

/* ================================
   CHRISTMAS LIGHT DIVIDERS
   ================================ */
.light-divider {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 30px 0;
  position: relative;
  overflow: hidden;
}

.light-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 3px;
  background: #1a1a1a;
  transform: translateY(-50%);
  z-index: 0;
}

.light-divider .bulb {
  width: 16px;
  height: 22px;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  position: relative;
  animation: twinkle ease-in-out infinite;
  z-index: 1;
}

.light-divider .bulb::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  background: #333;
  border-radius: 2px;
}

.light-divider .bulb.red {
  background: radial-gradient(circle at 30% 30%, #ff6666, #ff0000);
  box-shadow: 0 0 15px #ff0000, 0 0 30px #ff0000;
}
.light-divider .bulb.green {
  background: radial-gradient(circle at 30% 30%, #66ff66, #00cc00);
  box-shadow: 0 0 15px #00ff00, 0 0 30px #00ff00;
}
.light-divider .bulb.blue {
  background: radial-gradient(circle at 30% 30%, #66aaff, #0066ff);
  box-shadow: 0 0 15px #0066ff, 0 0 30px #0066ff;
}
.light-divider .bulb.gold {
  background: radial-gradient(circle at 30% 30%, #ffec80, #ffd700);
  box-shadow: 0 0 15px #ffd700, 0 0 30px #ffd700;
}
.light-divider .bulb.white {
  background: radial-gradient(circle at 30% 30%, #ffffff, #dddddd);
  box-shadow: 0 0 15px #ffffff, 0 0 30px #ffffff;
}

.light-divider .bulb:nth-child(5n+1) { animation-duration: 1.5s; animation-delay: 0s; }
.light-divider .bulb:nth-child(5n+2) { animation-duration: 2s; animation-delay: 0.2s; }
.light-divider .bulb:nth-child(5n+3) { animation-duration: 1.8s; animation-delay: 0.4s; }
.light-divider .bulb:nth-child(5n+4) { animation-duration: 2.2s; animation-delay: 0.1s; }
.light-divider .bulb:nth-child(5n) { animation-duration: 1.6s; animation-delay: 0.3s; }

@media (max-width: 768px) {
  .light-divider {
    gap: 12px;
    padding: 20px 0;
  }

  .light-divider .bulb {
    width: 12px;
    height: 16px;
  }
}

/* ================================
   PARALLAX SECTIONS
   ================================ */
.parallax-section {
  position: relative;
  overflow: hidden;
}

.parallax-bg {
  position: absolute;
  top: -50%;
  left: 0;
  width: 100%;
  height: 200%;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: -1;
}

/* Fallback for mobile (no fixed attachment) */
@media (max-width: 768px) {
  .parallax-bg {
    background-attachment: scroll;
    top: 0;
    height: 100%;
  }
}

/* ================================
   GLOWING TEXT EFFECT
   ================================ */
.glow-text {
  animation: text-glow 2s ease-in-out infinite alternate;
}

@keyframes text-glow {
  from {
    text-shadow:
      0 0 10px var(--christmas-red),
      0 0 20px var(--christmas-red),
      0 0 30px var(--christmas-red);
  }
  to {
    text-shadow:
      0 0 20px var(--christmas-green),
      0 0 40px var(--christmas-green),
      0 0 60px var(--christmas-green);
  }
}

/* ================================
   FESTIVE SPARKLE EFFECT
   ================================ */
.sparkle {
  position: relative;
}

.sparkle::before,
.sparkle::after {
  content: '✦';
  position: absolute;
  font-size: 0.8rem;
  animation: sparkle-float 3s ease-in-out infinite;
  color: var(--christmas-gold);
}

.sparkle::before {
  top: -10px;
  left: -15px;
  animation-delay: 0s;
}

.sparkle::after {
  top: -5px;
  right: -15px;
  animation-delay: 1.5s;
}

@keyframes sparkle-float {
  0%, 100% {
    transform: translateY(0) scale(1);
    opacity: 0.5;
  }
  50% {
    transform: translateY(-10px) scale(1.2);
    opacity: 1;
  }
}

/* ================================
   CHRISTMAS IMAGE GALLERY
   ================================ */
.christmas-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 40px 0;
}

.christmas-gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.christmas-gallery-item:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 40px rgba(255, 0, 0, 0.3);
}

.christmas-gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

/* ================================
   HERO PARALLAX WITH CHRISTMAS OVERLAY
   ================================ */
.light-show-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.light-show-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(139, 0, 0, 0.85) 0%,
    rgba(0, 100, 0, 0.75) 50%,
    rgba(139, 0, 0, 0.85) 100%
  );
  z-index: 1;
}

.light-show-hero .container {
  position: relative;
  z-index: 2;
}

/* ================================
   MOBILE ADJUSTMENTS
   ================================ */
@media (max-width: 768px) {
  .christmas-lights {
    top: 56px;
    height: 40px;
  }

  .light-bulb {
    width: 8px;
    height: 12px;
  }

  .light-string {
    gap: 20px;
  }

  .snowflake {
    font-size: 0.8rem;
  }
}

/* ================================
   SANTA SLEIGH ANIMATION
   ================================ */
#santa {
  position: fixed;
  top: 600px;
  right: -300px;
  font-size: 2.5rem;
  z-index: 9997;
  animation: fly 15s linear infinite;
  pointer-events: none;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

@keyframes fly {
  0% {
    right: -300px;
    top: 600px;
    opacity: 0;
  }
  5% {
    opacity: 1;
  }
  25% {
    top: 640px;
  }
  50% {
    top: 580px;
  }
  65% {
    opacity: 1;
    top: 620px;
  }
  80% {
    opacity: 0;
  }
  100% {
    right: 110%;
    top: 600px;
    opacity: 0;
  }
}

/* ================================
   FIREWORKS CANVAS
   ================================ */
#fireworks {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9996;
}

/* ================================
   CHRISTMAS COUNTDOWN
   ================================ */
.countdown-wrapper {
  text-align: center;
  padding: 30px 20px;
  position: relative;
  z-index: 10;
}

.countdown-title {
  font-size: var(--text-2xl);
  color: var(--color-white);
  margin-bottom: 20px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

#countdown {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.countdown-item {
  background: linear-gradient(135deg, #c41e3a 0%, #8b0000 100%);
  color: var(--color-white);
  padding: 20px 25px;
  border-radius: var(--radius-lg);
  min-width: 90px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(196, 30, 58, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.countdown-item span {
  display: block;
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  line-height: 1;
  margin-bottom: 5px;
}

#christmas-message {
  margin-top: 20px;
  font-size: var(--text-xl);
  color: var(--color-white);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

#christmas-message.celebrate {
  font-size: var(--text-3xl);
  animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* ================================
   MOBILE COUNTDOWN ADJUSTMENTS
   ================================ */
@media (max-width: 768px) {
  #santa {
    font-size: 1.8rem;
    top: 500px;
  }

  .countdown-title {
    font-size: var(--text-xl);
  }

  .countdown-item {
    padding: 15px 18px;
    min-width: 70px;
  }

  .countdown-item span {
    font-size: var(--text-2xl);
  }

  #countdown {
    gap: 10px;
  }
}

/* ================================
   SNOW ACCUMULATION EFFECT
   SVG wave drifts grow upward from footer into CTA section
   Triggered by IntersectionObserver via .snow-active class
   ================================ */
.page-light-show .footer {
  position: relative;
}

.page-light-show .footer .container {
  position: relative;
  z-index: 1;
}

.snow-drift {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: calc(100% + 300px);
  z-index: 0;
  clip-path: inset(100% 0 0 0);
}

.snow-active .snow-drift {
  animation: snow-accumulate 45s ease-out forwards;
}

@keyframes snow-accumulate {
  from { clip-path: inset(100% 0 0 0); }
  to { clip-path: inset(0 0 0 0); }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .snowflake,
  .light-bulb,
  .glow-text,
  .sparkle::before,
  .sparkle::after,
  #santa,
  #christmas-message.celebrate {
    animation: none;
  }

  .snowfall {
    display: none;
  }

  #santa {
    display: none;
  }

  #fireworks {
    display: none;
  }

  .snow-drift {
    animation: none;
    clip-path: inset(0 0 0 0);
  }
}

/* This site was custom designed by Sitethreesixty.com and is actively managed by Sitethreesixty.com */
