/* 🌍 Global Styles */
body {
  font-family: "Poppins", sans-serif;
  margin: 0;
  padding: 0;
  background: url("https://images.unsplash.com/photo-1501973801540-537f08ccae7b") no-repeat center center/cover;
  color: #fff;
  transition: background 0.8s ease-in-out;
}

/* Overlay */
.overlay {
  position: fixed;
  top:0; left:0;
  width:100%; height:100%;
  background: rgba(0,0,0,0.55);
  z-index: -1;
}

/* Containers */
.container {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(12px);
  padding: 30px;
  border-radius: 20px;
  text-align: center;
  width: 85%;
  max-width: 800px;
  margin: 80px auto;
  box-shadow: 0 8px 25px rgba(0,0,0,0.4);
  animation: fadeIn 1.2s ease-in-out;
}

h1, h2 {
  margin-bottom: 15px;
}

/* Navbar */
.navbar {
  text-align:center;
  padding:15px;
  background: rgba(0,0,0,0.6);
  position: sticky;
  top:0;
  z-index: 100;
}
.navbar a {
  color:#fff;
  margin:0 15px;
  text-decoration:none;
  font-weight:bold;
  transition: color 0.3s ease;
}
.navbar a:hover {
  color:#ffd700;
}
.navbar a.active {
  color:#ffd700;
}

/* Buttons */
button {
  padding: 12px 18px;
  border:none;
  border-radius:12px;
  background:#ff9800;
  color:#fff;
  font-size:15px;
  font-weight:bold;
  cursor:pointer;
  transition: all 0.3s ease;
}
button:hover {
  background:#e67e22;
  transform: scale(1.05);
}

input, textarea {
  padding: 12px;
  border-radius: 12px;
  border: none;
  width: 85%;
  font-size: 16px;
  margin: 8px 0;
}
textarea {
  resize: none;
}
form button {
  width: 92%;
  margin-top: 10px;
}

/* Gallery/Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  cursor: pointer;
  transition: transform 0.4s ease, box-shadow 0.4s ease, opacity 0.6s ease;
  opacity: 0;
  animation: fadeIn 1s forwards;
}
.grid img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0,0,0,0.6);
}

/* Weather Data Cards */
.details {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.card {
  background: rgba(0,0,0,0.4);
  padding: 12px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.label {
  font-weight: bold;
  color: #ffeb3b;
}

/* 🌙 Night Mode */
body.night .overlay {
  background: rgba(0,0,0,0.7);
}
body.night .container {
  background: rgba(0,0,0,0.4);
  color: #eee;
}
body.night h1, body.night h2 {
  color: #ffd700;
}

/* 🔥 Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

