* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background: linear-gradient(135deg, #4facfe, #00f2fe);
  color: white;
  text-align: center;
  overflow-x: hidden;
}

.navbar {
  display: flex;
  justify-content: space-between;
  padding: 20px 50px;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
}

.navbar .logo {
  font-size: 24px;
  font-weight: bold;
}

.navbar nav a {
  margin: 0 15px;
  text-decoration: none;
  color: white;
  font-weight: 500;
}

.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 80px 50px;
}

.hero-text {
  max-width: 50%;
  text-align: left;
}

.hero-text h1 {
  font-size: 48px;
  margin-bottom: 10px;
}

.hero-text p {
  font-size: 18px;
  margin-bottom: 20px;
}

.search-box {
  display: flex;
}

.search-box input {
  padding: 10px;
  width: 250px;
  border: none;
  border-radius: 25px 0 0 25px;
  outline: none;
}

.search-box button {
  padding: 10px 20px;
  border: none;
  border-radius: 0 25px 25px 0;
  background: #ff9800;
  color: white;
  cursor: pointer;
  transition: 0.3s;
}

.search-box button:hover {
  background: #e68900;
}

.hero-animation {
  position: relative;
}

.sun {
  width: 120px;
  animation: spin 20s linear infinite;
}

.cloud {
  width: 150px;
  position: absolute;
  top: 20px;
  left: -100px;
}

.floating {
  animation: float 6s ease-in-out infinite;
}

.rotate {
  animation: spin 20s linear infinite;
}

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

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Weather Card */
.weather-card {
  background: rgba(0,0,0,0.3);
  padding: 20px;
  margin: 30px auto;
  width: 300px;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.weather-card img {
  width: 80px;
}

.hidden {
  display: none;
}

/* Forecast Section */
.forecast {
  margin: 50px 0;
}

.forecast-cards {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.forecast-cards .card {
  background: rgba(255,255,255,0.2);
  padding: 15px;
  width: 120px;
  border-radius: 15px;
  transition: transform 0.3s;
}

.forecast-cards .card:hover {
  transform: scale(1.1);
}

footer {
  margin-top: 50px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.3);
}
