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

body {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #ffffff;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
}

.background-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  background-image: url('https://images.unsplash.com/photo-1519904981063-b0cf448d479e?auto=format&fit=crop&w=2000&q=80');
  background-position: center;
  background-size: cover;
  filter: brightness(0.3) blur(1px);
  transition: background-image 1s ease-in-out;
}

/* Animated particles background */
.background-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(2px 2px at 20px 30px, #ffffff, transparent),
    radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.8), transparent),
    radial-gradient(1px 1px at 90px 40px, #ffffff, transparent),
    radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,0.6), transparent),
    radial-gradient(2px 2px at 160px 30px, #ffffff, transparent);
  background-repeat: repeat;
  background-size: 200px 100px;
  animation: sparkle 20s linear infinite;
  opacity: 0.6;
}

@keyframes sparkle {
  from { transform: translateY(0px); }
  to { transform: translateY(-100px); }
}

/* Main Weather Card Styling */
.main-weather-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px) saturate(180%);
  border-radius: 24px;
  padding: 40px 35px;
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.08);
  width: 380px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.main-weather-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
}

/* Location Section */
.location {
  margin-bottom: 35px;
}

.location-timezone {
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 20px;
  color: #ffffff;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  opacity: 0.9;
}

.weather-icon-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 5px;
}

.weather-icon-image {
  width: 100px;
  height: 100px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

/* Temperature Section */
.temprature {
  text-align: center;
}

.degree-section {
  display: flex;
  justify-content: center;
  align-items: baseline;
  margin-bottom: 25px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.degree-section:hover {
  transform: scale(1.02);
}

.temprature-degree {
  font-size: 5.5rem;
  font-weight: 200;
  line-height: 1;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.temprature-unit {
  font-size: 2.2rem;
  font-weight: 300;
  color: #ffffff;
  opacity: 0.8;
  margin-left: 8px;
}

.temprature-description {
  font-size: 1.1rem;
  color: #ffffff;
  margin-bottom: 25px;
  font-weight: 400;
  text-transform: capitalize;
  opacity: 0.9;
}

.details-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 400;
}

.detail-label {
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  opacity: 0.7;
}

.detail-value {
  font-weight: 500;
  font-size: 1rem;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .main-weather-card {
    width: 90%;
    padding: 30px 25px;
  }
  
  .location-timezone {
    font-size: 1.2rem;
  }
  
  .temprature-degree {
    font-size: 4.5rem;
  }
  
  .temprature-unit {
    font-size: 1.8rem;
  }
  
  .weather-icon-image {
    width: 80px;
    height: 80px;
  }
  
  .details-section {
    gap: 10px;
  }
  
  .detail-item {
    font-size: 0.9rem;
  }
}



/* Search Bar */
.search-container {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.search-input {
  padding: 10px 15px;
  border-radius: 20px;
  border: none;
  outline: none;
  font-size: 1rem;
  width: 220px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.search-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 20px;
  background: #ffffff;
  color: #2a5298;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.search-btn:hover {
  background: #2a5298;
  color: #ffffff;
}
