* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Georgia', serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
}

.container {
  text-align: center;
  background: rgba(255, 255, 255, 0.95);
  padding: 60px 40px;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  max-width: 800px;
  width: 90%;
  position: relative;
  overflow: hidden;
}

.container::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 182, 193, 0.1) 0%, transparent 70%);
  animation: rotate 20s linear infinite;
  z-index: -1;
}

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

.hearts {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 24px;
  color: #ff6b9d;
  opacity: 0.7;
}

h1 {
  font-size: 3.5em;
  color: #2c3e50;
  margin-bottom: 10px;
  font-weight: 300;
  letter-spacing: 2px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.subtitle {
  font-size: 1.3em;
  color: #7f8c8d;
  margin-bottom: 40px;
  font-style: italic;
}

.wedding-date {
  font-size: 2.2em;
  color: #e74c3c;
  margin-bottom: 50px;
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.countdown {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.time-unit {
  background: linear-gradient(145deg, #ff6b9d, #e74c3c);
  color: white;
  padding: 25px 20px;
  border-radius: 15px;
  min-width: 120px;
  box-shadow: 0 10px 30px rgba(231, 76, 60, 0.3);
  transform: translateY(0);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.time-unit::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: rotate(45deg);
  transition: all 0.6s;
}

.time-unit:hover::before {
  animation: shimmer 1.5s ease-in-out;
}

@keyframes shimmer {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.time-unit:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 15px 40px rgba(231, 76, 60, 0.4);
}

.time-unit.big-day {
  min-width: auto;
  padding: 30px 40px;
}
.time-unit.big-day .number {
  font-size: 2em;
}

.number {
  font-size: 2.5em;
  font-weight: bold;
  display: block;
  margin-bottom: 5px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.label {
  font-size: 1em;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.9;
}

.message {
  font-size: 1.4em;
  color: #34495e;
  margin-top: 30px;
  font-style: italic;
  opacity: 0;
  animation: fadeIn 2s ease-in-out 1s forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.decorative-line {
  width: 100px;
  height: 2px;
  background: linear-gradient(to right, #ff6b9d, #e74c3c);
  margin: 20px auto;
  border-radius: 1px;
}

@media (max-width: 768px) {
  .container {
    padding: 40px 20px;
  }

  h1 {
    font-size: 2.5em;
  }

  .wedding-date {
    font-size: 1.8em;
  }

  .countdown {
    gap: 15px;
  }

  .time-unit {
    min-width: 100px;
    padding: 20px 15px;
  }

  .number {
    font-size: 2em;
  }
}

.floating-hearts {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.heart {
  position: absolute;
  color: #ff6b9d;
  opacity: 0.3;
  animation: float 6s ease-in-out infinite;
}

.heart:nth-child(1) { left: 10%; animation-delay: 0s; }
.heart:nth-child(2) { left: 20%; animation-delay: 1s; }
.heart:nth-child(3) { right: 10%; animation-delay: 2s; }
.heart:nth-child(4) { right: 20%; animation-delay: 3s; }

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0.3; }
  50% { transform: translateY(-20px) rotate(180deg); opacity: 0.6; }
}
