@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;700&display=swap');

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

body {
  font-family: 'Poppins', sans-serif;
  overflow-x: hidden;
  background-color: #1a1a2e;
}

.hero {
  padding: 0 50px;
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-around;
  color: white;
  overflow: hidden;
}

.info {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

/* Blurred background layer */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* background: url('./images/rain.jpeg') no-repeat center center/cover; */
  filter: blur(8px); 
  z-index: -1;
  transition: background-image 1s ease-in-out; 
  background-size: cover;
}

/* Background image classes */
.hero.clear-d::before { background-image: url('./images/clear-d.jpeg'); }
.hero.clouds-d::before { background-image: url('./images/clouds-d.jpeg'); }
.hero.rain-d::before { background-image: url('./images/rain-d.jpeg'); }
.hero.snow-d::before { background-image: url('./images/snow-d.jpeg'); }

.hero.clear-n::before { background-image: url('./images/clear-n.jpeg'); }
.hero.clouds-n::before { background-image: url('./images/clouds-n.jpeg'); }
.hero.rain-n::before { background-image: url('./images/rain-n.jpeg'); }
.hero.snow-n::before { background-image: url('./images/snow-n.jpeg'); }


.temprature {
  font-size: 110px; 
  font-weight: 700; 
  text-shadow: 4px 4px 10px rgba(0, 0, 0, 0.3);
}

.location {
  text-align: center;
  width: 500px;
  font-size: 40px;
  font-weight: 500;
  font-style: italic;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

#map {
  border-radius: 15px;
  height: 400px;
  width: 550px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.time-icon {
  position: absolute;
  top: 20px;
  left: 30px;
  font-size: 50px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.extra-info {
  margin-top: 40px;
  padding: 25px 35px;
  width: fit-content;
  
  background-color: rgba(255, 255, 255, 0.15); 
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2); 
  
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px; 
  font-size: 20px;
  font-weight: 500;

  /* width; */
}

.name{
  font-style: italic;
  font-size: 15px 35px;
  position: absolute;
  right: 10px;
  bottom: 10px;
  color: white;
  text-shadow: 2px 2px black;
}

@media (max-width: 1150px) {
  .temprature{
    font-size: 60px;
  }
  .hero {
    flex-direction: column;
    justify-content: center;
    gap: 50px;
  }

  #map{
    width: 250px;
    height: 250px;
  }
}

/* ✅ Added phone screen font adjustments */
@media (max-width: 600px) {
  .temprature {
    font-size: 50px;
  }

  .location {
    font-size: 22px;
  }

  .extra-info {
    font-size: 16px;
    padding: 15px;
  }

  .time-icon {
    font-size: 35px;
  }

  .name {
    font-size: 12px;
  }
  #map{
    width: 200px;
    height: 200px;
  }
}
