/* --- Global Reset & Typography --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
}

body {
  background: #0f172a; /* Deep atmospheric dark base */
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  position: relative;
  color: #f8fafc;
}

/* --- Smooth Ambient Background Motion --- */
.bg-animation {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  filter: blur(80px);
  opacity: 0.7;
}

.circle {
  position: absolute;
  border-radius: 50%;
  animation: floatAround 20s infinite alternate ease-in-out;
}

.c1 {
  top: -10%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, #38bdf8, #0369a1);
  animation-duration: 25s;
}

.c2 {
  bottom: -10%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, #818cf8, #4338ca);
  animation-duration: 30s;
  animation-delay: -5s;
}

.c3 {
  top: 40%;
  left: 30%;
  width: 35vw;
  height: 35vw;
  background: radial-gradient(circle, #34d399, #047857);
  animation-duration: 20s;
  animation-delay: -10s;
}

@keyframes floatAround {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(10%, 15%) scale(1.1); }
  100% { transform: translate(-5%, -10%) scale(0.9); }
}

/* --- Glassmorphism UI Container --- */
.container {
  position: relative;
  z-index: 10;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 35px 30px;
  border-radius: 24px;
  width: 360px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

h1 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 25px;
  color: #ffffff;
  letter-spacing: -0.5px;
}

/* --- Upgraded Search Bar --- */
.search-box {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
}

input {
  flex: 1;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  color: #ffffff;
  font-size: 0.95rem;
  outline: none;
  transition: all 0.3s ease;
}

input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

input:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}

button {
  padding: 14px 22px;
  border: none;
  background: #38bdf8;
  color: #0f172a;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border-radius: 14px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.3);
}

button:hover {
  background: #7dd3fc;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(56, 189, 248, 0.4);
}

button:active {
  transform: translateY(0);
}

/* --- Weather Content Displays --- */
#city {
  font-size: 1.6rem;
  font-weight: 500;
  color: #ffffff;
}

.temp-container {
  margin: 15px 0 5px 0;
}

#temp {
  font-size: 3.5rem;
  font-weight: 300;
  color: #ffffff;
}

.description {
  font-size: 1rem;
  text-transform: capitalize;
  color: #94a3b8; /* Sleek muted gray-blue */
  margin-bottom: 25px;
  font-weight: 400;
  letter-spacing: 0.5px;
}

/* --- Two-Column Weather Grid --- */
.details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.detail-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: #e2e8f0;
}

.detail-card .icon {
  font-size: 1.3rem;
}