* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Poppins, sans-serif;
}

body {
  min-height: 100vh;
  background: linear-gradient(135deg, #1e3c72, #2a5298);
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  transition: 0.5s;
}

body.night {
  background: linear-gradient(135deg, #0f2027, #203a43);
}

/* Author */
.author {
  position: absolute;
  top: 20px;
  right: 20px;
  text-align: right;
}

.glow-name {
  animation: glow 2s infinite alternate;
}

@keyframes glow {
  from { text-shadow: 0 0 5px cyan; }
  to { text-shadow: 0 0 20px magenta; }
}

/* Social Icons */
.social-icons a {
  font-size: 32px;
  margin: 8px;
  color: white;
  transition: 0.4s;
}

.social-icons a:hover {
  color: #00ffe7;
  transform: scale(1.3) rotate(8deg);
}

.social-icons a:active {
  color: #ff00ff;
}

/* Container */
.weather-container {
  width: 90%;
  max-width: 400px;
  background: rgba(255,255,255,0.15);
  padding: 25px;
  border-radius: 20px;
  text-align: center;
  backdrop-filter: blur(15px);
  box-shadow: 0 0 25px cyan;
}

/* Buttons */
.btn {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  color: #000;
}

.animated-btn {
  background: linear-gradient(270deg, #00eaff, #ff00ff, #00ff88);
  background-size: 600% 600%;
  animation: gradientMove 3s ease infinite;
}

@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.btn:hover {
  transform: scale(1.05);
}

.btn:active {
  transform: scale(0.95);
}

/* Refresh Button */
.refresh-btn {
  background: linear-gradient(135deg, #ffcc00, #ff6600);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 5px #ffcc00; }
  50% { box-shadow: 0 0 20px #ff6600; }
  100% { box-shadow: 0 0 5px #ffcc00; }
}

.search-box {
  display: flex;
  gap: 10px;
}

.search-box input {
  flex: 1;
  padding: 10px;
  border-radius: 10px;
  border: none;
}

.weather-info img {
  width: 90px;
  animation: float 2s infinite ease-in-out;
}

@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0); }
}

.forecast {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-top: 10px;
}

.forecast div {
  background: rgba(255,255,255,0.2);
  padding: 10px;
  border-radius: 10px;
  min-width: 80px;
}
