* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  overflow: hidden;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  background: linear-gradient(120deg, #000428, #004e92);
  background-size: 400% 400%;
  animation: gradientMove 15s ease infinite;
}

@keyframes gradientMove {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

canvas#bg {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
}

.weather-container {
  z-index: 10;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(15px);
  padding: 30px 50px;
  border-radius: 25px;
  text-align: center;
  width: 380px;
  box-shadow: 0 0 40px rgba(0, 255, 255, 0.3);
  animation: float 6s ease-in-out infinite;
  transition: all 0.4s ease;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.greeting {
  font-size: 1.8em;
  margin-bottom: 10px;
  background: linear-gradient(45deg, #00ffff, #ff00ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.clock {
  font-size: 1.1em;
  color: #00ffff;
  margin-bottom: 20px;
}

.search-box {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.search-box input {
  padding: 10px;
  border: none;
  border-radius: 10px;
  width: 180px;
  outline: none;
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.search-box button {
  border: none;
  padding: 10px;
  border-radius: 10px;
  background: #00ffff;
  cursor: pointer;
  color: #000;
  transition: 0.3s;
}

.search-box button:hover {
  background: #fff;
}

.weather-box {
  line-height: 1.6;
}

.temp-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.temp-icon img {
  width: 70px;
  height: 70px;
  filter: drop-shadow(0 0 10px #00ffff);
}

.temp-icon h1 {
  font-size: 3em;
  color: #00ffff;
}

.details {
  margin-top: 10px;
  font-size: 0.95em;
  color: #ccc;
}

.forecast {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  margin-top: 15px;
}

.forecast-day {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 10px;
  width: 60px;
  text-align: center;
  margin: 5px;
  transition: 0.3s;
}

.forecast-day:hover {
  transform: scale(1.05);
  background: rgba(0, 255, 255, 0.2);
}

@media (max-width: 600px) {
  .weather-container {
    width: 90%;
    padding: 20px;
  }
  .temp-icon h1 {
    font-size: 2.2em;
  }
}
