* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', 'Segoe UI', sans-serif;
}
body {
  background: linear-gradient(135deg, #a1c4fd, #c2e9fb);
  color: #fff;
  min-height: 100vh;
  padding: 20px;
  transition: background 1s ease;
}
body.dark {
  background: linear-gradient(135deg, #141e30, #243b55);
}
.container {
  max-width: 520px;
  margin: 20px auto;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-radius: 35px;
  padding: 40px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.15);
}
h1 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 40px;
  font-weight: 600;
  letter-spacing: 2px;
  text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.location-selector {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 15px;
  margin-bottom: 25px;
}
.location-selector input, .location-selector select {
  padding: 18px;
  border: none;
  border-radius: 25px;
  background: rgba(255,255,255,0.85);
  color: #333;
  text-align: center;
  font-size: 16px;
  transition: all 0.4s;
}
.location-selector input:focus {
  outline: none;
  transform: scale(1.08);
  box-shadow: 0 0 20px rgba(255,255,255,0.6);
}
.search-btn {
  grid-column: 1 / -1;
  padding: 20px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border: none;
  border-radius: 50px;
  font-weight: bold;
  font-size: 20px;
  cursor: pointer;
  margin-top: 15px;
  box-shadow: 0 10px 30px rgba(102,126,234,0.5);
  transition: all 0.5s;
}
.search-btn:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(102,126,234,0.7);
}
.or-text {
  text-align: center;
  margin: 30px 0;
  font-size: 20px;
  opacity: 0.9;
}
.location-btn {
  text-align: center;
  padding: 20px;
  background: rgba(255,255,255,0.2);
  border-radius: 50px;
  cursor: pointer;
  font-size: 20px;
  font-weight: bold;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  transition: all 0.5s;
}
.location-btn:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}
.weather-info {
  text-align: center;
  margin: 50px 0;
}
.temp {
  font-size: 100px;
  font-weight: 300;
  line-height: 1;
  margin: 25px 0;
  text-shadow: 0 6px 25px rgba(0,0,0,0.4);
}
.description {
  font-size: 30px;
  text-transform: capitalize;
  margin: 20px 0;
  font-weight: 500;
}
.location {
  font-size: 24px;
  margin: 25px 0;
}
.details {
  display: flex;
  justify-content: space-around;
  margin: 40px 0;
  font-size: 18px;
}
.details div {
  background: rgba(255,255,255,0.15);
  padding: 20px;
  border-radius: 25px;
  min-width: 110px;
  backdrop-filter: blur(10px);
}
.extra-feature {
  margin: 30px 0;
  padding: 30px;
  background: rgba(255,255,255,0.12);
  border-radius: 30px;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 15px 40px rgba(0,0,0,0.3);
  text-align: center;
  transition: all 0.6s;
}
.extra-feature:hover {
  transform: translateY(-15px);
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}
.travel-planner {
  margin-top: 60px;
  padding: 40px;
  background: rgba(0,0,0,0.35);
  border-radius: 35px;
  text-align: center;
}
.check-btn {
  width: 100%;
  padding: 22px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border: none;
  border-radius: 50px;
  font-weight: bold;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 12px 35px rgba(102,126,234,0.5);
  transition: all 0.5s;
}
.check-btn:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(102,126,234,0.7);
}
#recommendation {
  margin-top: 35px;
  padding: 40px;
  border-radius: 30px;
  font-size: 24px;
  font-weight: 600;
  min-height: 160px;
  background: rgba(0,0,0,0.4);
  transition: all 0.7s;
}
.forecast-section h2 {
  text-align: center;
  margin: 50px 0 30px;
  font-size: 30px;
  font-weight: 600;
}
.hourly-forecast, .daily-forecast {
  display: flex;
  overflow-x: auto;
  gap: 25px;
  padding: 25px 0;
}
.hour-card, .day-card {
  min-width: 130px;
  background: rgba(255,255,255,0.18);
  border-radius: 30px;
  padding: 25px;
  text-align: center;
  backdrop-filter: blur(15px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.3);
  transition: all 0.5s;
}
.hour-card:hover, .day-card:hover {
  transform: translateY(-12px);
}
.theme-toggle {
  position: fixed;
  top: 30px;
  right: 30px;
  z-index: 9999;
  background: rgba(255,255,255,0.2);
  border: none;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  color: white;
  font-size: 32px;
  cursor: pointer;
  backdrop-filter: blur(20px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.4);
  transition: all 0.6s;
}
.theme-toggle:hover {
  transform: scale(1.25) rotate(360deg);
}
.hidden { display: none; }
.footer {
  text-align: center;
  margin: 50px 0 20px;
  opacity: 0.8;
  font-size: 18px;
}

/* ANIMATIONS */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(50px); }
  to { opacity: 1; transform: translateY(0); }
}
.extra-feature {
  animation: fadeIn 1s ease-out forwards;
  opacity: 0;
}
.extra-feature:nth-child(1) { animation-delay: 0.3s; }
.extra-feature:nth-child(2) { animation-delay: 0.6s; }
.extra-feature:nth-child(3) { animation-delay: 0.9s; }
.extra-feature:nth-child(4) { animation-delay: 1.2s; }
.extra-feature:nth-child(5) { animation-delay: 1.5s; }

@keyframes buttonPulse {
  0% { box-shadow: 0 0 0 0 rgba(102,126,234,0.7); }
  70% { box-shadow: 0 0 0 25px rgba(102,126,234,0); }
  100% { box-shadow: 0 0 0 0 rgba(102,126,234,0); }
}
.check-btn:hover, .search-btn:hover {
  animation: buttonPulse 2s infinite;
}