/* ========================================
   VENSYSCO CHRISTMAS THEME 2025
   ======================================== */

/* CSS Custom Properties for Christmas Colors */
:root {
  --xmas-red: #c41e3a;
  --xmas-red-dark: #8b0000;
  --xmas-green: #228b22;
  --xmas-green-dark: #006400;
  --xmas-gold: #ffd700;
  --xmas-snow: #fffafa;
  --xmas-silver: #c0c0c0;
}

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

.snowflake {
  position: absolute;
  top: -20px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  animation: snowfall linear infinite;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
  user-select: none;
}

.snowflake.small {
  font-size: 0.6rem;
  opacity: 0.7;
}

.snowflake.medium {
  font-size: 1rem;
  opacity: 0.85;
}

.snowflake.large {
  font-size: 1.4rem;
  opacity: 1;
}

@keyframes snowfall {
  0% {
    transform: translateY(-20px) rotate(0deg);
  }
  100% {
    transform: translateY(100vh) rotate(360deg);
  }
}

/* ========================================
   FESTIVE BANNER
   ======================================== */
.christmas-banner {
  background: linear-gradient(135deg, var(--xmas-red) 0%, var(--xmas-red-dark) 50%, var(--xmas-green-dark) 100%);
  color: white;
  text-align: center;
  padding: 12px 20px;
  position: relative;
  z-index: 1001;
  font-weight: 500;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.christmas-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 200%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  animation: banner-shimmer 3s infinite;
}

@keyframes banner-shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

.christmas-banner-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.christmas-banner-content span {
  font-size: 1.1rem;
}

.christmas-banner-content .xmas-emoji {
  font-size: 1.4rem;
  animation: bounce 1s ease-in-out infinite;
}

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

.christmas-banner .banner-close {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.christmas-banner .banner-close:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: translateY(-50%) scale(1.1);
}

/* ========================================
   SANTA HAT ON LOGO
   ======================================== */
.santa-hat-wrapper {
  position: relative;
  display: inline-block;
}

.santa-hat {
  position: absolute;
  top: -22px;
  left: -8px;
  font-size: 1.8rem;
  transform: rotate(-25deg);
  z-index: 10;
  filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.3));
  animation: hat-wobble 3s ease-in-out infinite;
}

@keyframes hat-wobble {
  0%, 100% { transform: rotate(-25deg); }
  50% { transform: rotate(-20deg); }
}

/* ========================================
   FLOATING CHRISTMAS DECORATIONS
   ======================================== */
.floating-decorations {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9998;
  overflow: hidden;
}

.decoration {
  position: absolute;
  font-size: 2rem;
  animation: float-decoration linear infinite;
  opacity: 0.8;
}

@keyframes float-decoration {
  0% {
    transform: translateY(-50px) rotate(0deg);
  }
  100% {
    transform: translateY(calc(100vh + 50px)) rotate(360deg);
  }
}

/* ========================================
   TWINKLING STARS IN HERO
   ======================================== */
.hero-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(2px 2px at 20px 30px, var(--xmas-gold), transparent),
    radial-gradient(2px 2px at 40px 70px, white, transparent),
    radial-gradient(2px 2px at 50px 160px, var(--xmas-silver), transparent),
    radial-gradient(2px 2px at 90px 40px, var(--xmas-gold), transparent),
    radial-gradient(2px 2px at 130px 80px, white, transparent),
    radial-gradient(2px 2px at 160px 120px, var(--xmas-silver), transparent),
    radial-gradient(2px 2px at 200px 50px, var(--xmas-gold), transparent),
    radial-gradient(2px 2px at 250px 90px, white, transparent),
    radial-gradient(2px 2px at 300px 130px, var(--xmas-silver), transparent),
    radial-gradient(2px 2px at 350px 30px, var(--xmas-gold), transparent),
    radial-gradient(2px 2px at 400px 70px, white, transparent),
    radial-gradient(2px 2px at 450px 100px, var(--xmas-silver), transparent);
  background-repeat: repeat;
  background-size: 500px 200px;
  animation: twinkle 4s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
  opacity: 0.6;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 0.3; }
}

/* ========================================
   CHRISTMAS LIGHTS BORDER
   ======================================== */
.pricing-card.featured {
  position: relative;
  overflow: visible;
}

.pricing-card.featured::before {
  content: '💡🔴🟢🔵🟡💡🔴🟢🔵🟡💡';
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.9rem;
  letter-spacing: 3px;
  animation: lights-blink 1.5s ease-in-out infinite;
  white-space: nowrap;
}

@keyframes lights-blink {
  0%, 100% { opacity: 1; filter: brightness(1); }
  50% { opacity: 0.7; filter: brightness(1.3); }
}

/* ========================================
   FESTIVE BUTTON ACCENTS
   ======================================== */
.btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '✨';
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9rem;
  animation: sparkle 2s ease-in-out infinite;
}

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

/* ========================================
   CHRISTMAS CARD ACCENTS
   ======================================== */
.service-card,
.pricing-card,
.feature-card {
  border-top: 3px solid transparent;
  background-image: linear-gradient(white, white), 
                    linear-gradient(90deg, var(--xmas-red), var(--xmas-green));
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

.service-card:hover,
.pricing-card:hover,
.feature-card:hover {
  box-shadow: 0 8px 30px rgba(196, 30, 58, 0.2);
}

/* ========================================
   SECTION DECORATIONS
   ======================================== */
.section-title::before {
  content: '🎄 ';
}

.section-title::after {
  content: ' 🎄';
}

/* ========================================
   FOOTER FESTIVE TOUCH
   ======================================== */
.footer {
  position: relative;
}

.footer::before {
  content: '🎅 Happy Holidays from Vensysco Cloud! 🎁';
  display: block;
  text-align: center;
  padding: 15px;
  background: linear-gradient(90deg, var(--xmas-green-dark), var(--xmas-red-dark));
  color: white;
  font-weight: 500;
  letter-spacing: 1px;
}

/* ========================================
   ACCESSIBILITY: REDUCED MOTION
   ======================================== */
@media (prefers-reduced-motion: reduce) {
  .snowflake,
  .decoration,
  .santa-hat,
  .christmas-banner::before,
  .xmas-emoji,
  .pricing-card.featured::before,
  .btn-primary::after,
  .hero-section::after {
    animation: none !important;
  }
  
  .snowflake {
    display: none;
  }
  
  .decoration {
    display: none;
  }
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */
@media (max-width: 768px) {
  .christmas-banner-content span {
    font-size: 0.95rem;
  }
  
  .santa-hat {
    font-size: 1.4rem;
    top: -18px;
    left: -5px;
  }
  
  .snowflake.large {
    font-size: 1rem;
  }
  
  .pricing-card.featured::before {
    content: '💡🔴🟢🔵🟡💡';
    font-size: 0.7rem;
  }
}

@media (max-width: 480px) {
  .christmas-banner {
    padding: 10px 40px 10px 15px;
  }
  
  .christmas-banner-content {
    gap: 8px;
  }
  
  .xmas-emoji {
    display: none;
  }
}
