* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
}

body {
  background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  font-family: 'Arial Black', sans-serif;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  position: relative;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

#root {
  width: 100%;
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.container {
  text-align: center;
  z-index: 10;
  position: relative;
  max-width: 100%;
  width: 100%;
}

.countdown-wrapper {
  perspective: 1000px;
  margin-bottom: 40px;
  padding: 0 20px;
}

.countdown-box {
  font-size: clamp(48px, 12vw, 120px);
  font-weight: bold;
  color: #fff;
  text-shadow: 0 0 20px rgba(255, 0, 255, 0.8), 
                0 0 40px rgba(0, 255, 255, 0.8),
                0 0 60px rgba(255, 255, 0, 0.8);
  letter-spacing: clamp(5px, 2vw, 10px);
  filter: drop-shadow(0 0 30px rgba(255, 0, 255, 0.6));
  word-break: break-word;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

@keyframes spin {
  0% { transform: rotateX(0deg) rotateY(0deg); }
  100% { transform: rotateX(360deg) rotateY(360deg); }
}

@keyframes wave {
  0%, 100% { transform: translateY(0px); }
  25% { transform: translateY(-20px); }
  50% { transform: translateY(0px); }
  75% { transform: translateY(20px); }
}

.wave-char {
  display: inline-block;
  animation: wave 4s linear infinite;
  will-change: transform;
}

.label {
  font-size: clamp(24px, 6vw, 36px);
  color: #fff;
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
  margin-bottom: 20px;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

.countdown-items {
  display: flex;
  gap: clamp(15px, 3vw, 30px);
  justify-content: center;
  margin-top: 20px;
  flex-wrap: wrap;
  padding: 0 20px;
}

.countdown-item {
  background: rgba(0, 0, 0, 0.3);
  padding: clamp(15px, 3vw, 30px) clamp(20px, 4vw, 30px);
  border-radius: 15px;
  border: 3px solid transparent;
  animation: borderGlow 2s ease-in-out infinite;
  backdrop-filter: blur(10px);
  min-width: clamp(80px, 20vw, 150px);
}

.countdown-item:nth-child(1) {
  border-color: #ff006e;
  animation: borderGlow 2s ease-in-out infinite;
}

.countdown-item:nth-child(2) {
  border-color: #00f5ff;
  animation: borderGlow 2.2s ease-in-out infinite;
}

.countdown-item:nth-child(3) {
  border-color: #ffbe0b;
  animation: borderGlow 2.4s ease-in-out infinite;
}

.countdown-item:nth-child(4) {
  border-color: #fb5607;
  animation: borderGlow 2.6s ease-in-out infinite;
}

@keyframes borderGlow {
  0%, 100% { box-shadow: 0 0 10px currentColor; }
  50% { box-shadow: 0 0 30px currentColor, inset 0 0 30px currentColor; }
}

.countdown-number {
  font-size: clamp(28px, 6vw, 48px);
  font-weight: bold;
  color: #fff;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}

.countdown-label {
  font-size: clamp(12px, 2.5vw, 18px);
  color: #fff;
  margin-top: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.new-year-message {
  font-size: clamp(36px, 10vw, 80px);
  color: #fff;
  text-shadow: 0 0 20px rgba(255, 0, 255, 0.8), 
                0 0 40px rgba(0, 255, 255, 0.8);
  animation: scaleIn 1s ease-out, 
             rainbow 2s linear infinite;
  font-weight: bold;
  letter-spacing: clamp(2px, 1vw, 5px);
  padding: 0 20px;
}

@keyframes scaleIn {
  0% { transform: scale(0); }
  100% { transform: scale(1); }
}

@keyframes rainbow {
  0% { color: #ff0000; text-shadow: 0 0 20px #ff0000; }
  16% { color: #ff7f00; text-shadow: 0 0 20px #ff7f00; }
  33% { color: #ffff00; text-shadow: 0 0 20px #ffff00; }
  50% { color: #00ff00; text-shadow: 0 0 20px #00ff00; }
  66% { color: #0000ff; text-shadow: 0 0 20px #0000ff; }
  83% { color: #4b0082; text-shadow: 0 0 20px #4b0082; }
  100% { color: #9400d3; text-shadow: 0 0 20px #9400d3; }
}

.stars {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: white;
  border-radius: 50%;
  animation: twinkle 3s infinite;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Footer Styles */
footer {
  width: 100%;
  text-align: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 100;
  position: relative;
}

footer p {
  color: #fff;
  font-size: clamp(12px, 2vw, 16px);
  margin: 0;
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

footer a {
  color: #ff006e;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}

footer a:hover {
  color: #00f5ff;
  text-shadow: 0 0 10px rgba(0, 245, 255, 0.8);
}

.visitor-counter {
  display: inline-block;
  margin-left: 15px;
  font-size: clamp(12px, 2vw, 16px);
  color: #00f5ff;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .countdown-items {
    gap: 10px;
  }

  .countdown-item {
    min-width: 70px;
    padding: 10px 15px;
  }

  .label {
    margin-bottom: 15px;
  }

  .countdown-wrapper {
    margin-bottom: 30px;
  }

  footer {
    padding: 15px 10px;
  }

  footer p {
    word-break: break-word;
  }

  .visitor-counter {
    display: block;
    margin-left: 0;
    margin-top: 10px;
  }
}

@media (max-width: 480px) {
  body {
    padding: 0;
  }

  #root {
    padding: 10px;
  }

  .countdown-items {
    gap: 8px;
  }

  .countdown-item {
    min-width: 60px;
    padding: 8px 10px;
  }

  .countdown-wrapper {
    margin-bottom: 20px;
  }

  .label {
    margin-bottom: 10px;
  }

  footer {
    padding: 10px 10px;
  }

  footer p {
    font-size: 11px;
  }
}
