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

body {
  font-family: system-ui, -apple-system, sans-serif;
  min-height: 100vh;
  transition: background-color 2s ease, color 2s ease;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.container {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  position: relative;
}

.clock-wrapper {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 600px;
  transform-style: preserve-3d;
  animation: float 6s ease-in-out infinite;
}

.clock {
  text-align: center;
}

.theme-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeUp 1s ease 0.1s forwards;
}

.date {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  opacity: 0;
  animation: fadeUp 1s ease 0.2s forwards;
}

.time {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s ease 0.3s forwards;
}

.quote {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 3rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s ease 0.4s forwards;
}

.temperature {
  font-size: 1.5rem;
  font-weight: 600;
}

.location {
  font-size: 1rem;
  opacity: 0.8;
}

.additional-info {
  display: flex;
  justify-content: space-around;
  margin-top: 1.5rem;
  opacity: 0;
  animation: fadeUp 1s ease 0.6s forwards;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.info-item i {
  font-size: 1.2rem;
}

/* Theme: Dawn (5-8) */
.theme-dawn {
  background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 99%, #fad0c4 100%);
  color: #654321;
}

.theme-dawn::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 208, 196, 0.3) 0%, transparent 50%);
  pointer-events: none;
}

/* Theme: Morning (8-11) */
.theme-morning {
  background: linear-gradient(135deg, #A1DEFF 0%, #5BB5FF 50%, #38A0FF 100%);
  color: #1a365d;
}

.theme-morning .clock-wrapper {
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.1),
    0 4px 16px rgba(255, 255, 255, 0.1);
}

.theme-morning::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='50' cy='50' r='40' fill='rgba(255,255,255,0.05)'/%3E%3C/svg%3E") 0 0/100px 100px repeat,
    radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.3) 0%, transparent 60%);
  animation: morningAmbience 120s linear infinite;
  pointer-events: none;
}

.theme-morning .theme-icon {
  color: #FFD700;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

.theme-morning .time {
  background: linear-gradient(to right, #1a365d, #2b4f82);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.theme-morning .quote {
  color: #1a365d;
  font-weight: 500;
}

@keyframes morningAmbience {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 100px 100px;
  }
}

/* Theme: Noon (11-14) */
.theme-noon {
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FF8C00 100%);
  color: #1a1a1a;
}

.theme-noon .clock-wrapper {
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.1),
    0 0 50px rgba(255, 215, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.theme-noon::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.4) 0%, transparent 60%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.1) 2px, transparent 2px, transparent 10px);
  animation: noonShimmer 10s linear infinite;
  pointer-events: none;
}

.theme-noon .theme-icon {
  color: #FF4500;
  text-shadow: 0 0 30px rgba(255, 69, 0, 0.6);
  animation: sunPulse 4s ease-in-out infinite;
}

.theme-noon .time {
  background: linear-gradient(to right, #1a1a1a, #4a4a4a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.theme-noon .quote {
  color: #1a1a1a;
  font-weight: 500;
  text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.2);
}

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

@keyframes sunPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

/* Theme: Afternoon (14-17) */
.theme-afternoon {
  background: linear-gradient(45deg, #fa709a 0%, #fee140 100%);
  color: #2c3e50;
}

.theme-afternoon::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 30% 70%, rgba(254, 225, 64, 0.3) 0%, transparent 60%),
    radial-gradient(circle at 70% 30%, rgba(250, 112, 154, 0.3) 0%, transparent 60%);
  pointer-events: none;
}

/* Theme: Evening (17-20) */
.theme-evening {
  background: linear-gradient(to right, #434343 0%, #000000 100%);
  color: #ffffff;
}

.theme-evening::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 80%, rgba(255, 166, 0, 0.2) 0%, transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(255, 69, 0, 0.2) 0%, transparent 40%);
  pointer-events: none;
}

/* Theme: Night (20-5) */
.theme-night {
  background: linear-gradient(to bottom, #0f2027, #203a43, #2c5364);
  color: #ffffff;
}

.theme-night::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(1px 1px at 50% 50%, #fff, rgba(0,0,0,0)),
    radial-gradient(1px 1px at 40% 30%, #fff, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 30% 70%, #fff, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 70% 60%, #fff, rgba(0,0,0,0));
  background-size: 550px 550px, 350px 350px, 250px 250px, 150px 150px;
  pointer-events: none;
  opacity: 0.3;
}

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

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .time {
    font-size: 3rem;
  }
  
  .quote {
    font-size: 1rem;
  }
  
  .clock-wrapper {
    padding: 1.5rem;
  }
  
  .theme-icon {
    font-size: 2rem;
  }
  
  .additional-info {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }
}