body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  background-attachment: fixed;
  color: #fff;
  text-align: center;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  perspective: 1000px; /* For 3D effects */
  overflow-x: hidden;
}

.app-container {
  margin-top: 50px;
  max-width: 600px;
  width: 90%;
  padding: 30px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transform-style: preserve-3d;
  animation: slideIn 1s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-50px) rotateX(10deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotateX(0);
  }
}

h1 {
  font-size: 2.5em;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  from { text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); }
  to { text-shadow: 0 0 20px rgba(255, 255, 255, 0.8); }
}

input {
  padding: 15px;
  border: none;
  border-radius: 10px;
  width: calc(100% - 30px);
  margin-bottom: 15px;
  font-size: 16px;
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

input:focus {
  outline: none;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
  transform: scale(1.02);
}

button {
  padding: 15px 20px;
  margin: 5px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(45deg, #ff6b6b, #ffa500);
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: bold;
  box-shadow: 0 4px 15px rgba(255, 105, 107, 0.4);
  transform-style: preserve-3d;
}

button:hover {
  transform: translateY(-2px) rotateX(5deg);
  box-shadow: 0 8px 25px rgba(255, 105, 107, 0.6);
}

button:active {
  transform: translateY(0) rotateX(0);
}

.loading {
  font-size: 18px;
  margin-top: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.loading::after {
  content: '';
  width: 20px;
  height: 20px;
  border: 2px solid #fff;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-left: 10px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.hidden {
  display: none;
}

.weather-card {
  margin-top: 30px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  animation: cardAppear 0.8s ease-out;
  transform-style: preserve-3d;
}

@keyframes cardAppear {
  from {
    opacity: 0;
    transform: scale(0.9) rotateY(10deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotateY(0);
  }
}

.weather-card h2 {
  margin-bottom: 20px;
  font-size: 1.8em;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.weather-icon {
  width: 120px;
  height: 120px;
  margin: 10px 0;
  animation: float 3s ease-in-out infinite;
}

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

.weather-card p {
  margin: 10px 0;
  font-size: 1.1em;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.error {
  color: #ff6b6b;
  font-weight: bold;
  margin-top: 20px;
  padding: 15px;
  background: rgba(255, 0, 0, 0.1);
  border-radius: 10px;
  border: 1px solid rgba(255, 0, 0, 0.3);
  animation: shake 0.5s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

/* Background animation */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
  animation: moveClouds 20s linear infinite;
  z-index: -1;
}

@keyframes moveClouds {
  from { transform: translateX(-100px); }
  to { transform: translateX(100px); }
}

/* Responsive design */
@media (max-width: 768px) {
  .app-container {
    margin-top: 20px;
    padding: 20px;
  }
  h1 {
    font-size: 2em;
  }
  button {
    display: block;
    width: 100%;
    margin: 5px 0;
  }
  .weather-icon {
    width: 100px;
    height: 100px;
  }
  .weather-card {
    padding: 20px;
  }
}