body {
  margin: 0;
  font-family: 'Oxygen', sans-serif;
  background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
  background-size: cover;
  background-attachment: fixed;
  color: #fff;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  transition: all 0.3s ease;
}

/* Light Theme */
body.light-theme {
  background: linear-gradient(135deg, #f5f7fa, #c3cfe2);
  color: #333;
}

body.light-theme .weather-main,
body.light-theme .forecast-card,
body.light-theme .hourly-card {
  background: rgba(255, 255, 255, 0.3);
  color: #333;
  border-color: rgba(100, 100, 100, 0.3);
}

body.light-theme .animated-bg {
  background: radial-gradient(circle at center, rgba(200, 200, 255, 0.4), rgba(255, 255, 255, 0.2));
}

/* Site Header */
.site-header {
  text-align: center;
  padding: 2rem 1rem 1rem 1rem;
  position: relative;
  z-index: 1;
}

.site-title {
  font-size: 2.8rem;
  font-weight: 700;
  margin: 0;
  background: linear-gradient(45deg, #00ffff, #ff00ff, #00ffff);
  background-size: 200% 200%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 3s ease-in-out infinite;
  text-shadow: 0 0 30px rgba(0, 255, 255, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.title-icon {
  font-size: 3.5rem;
  filter: drop-shadow(0 0 20px rgba(0, 255, 255, 0.8));
  animation: float 3s ease-in-out infinite;
}

.title-subtitle {
  font-size: 1rem;
  font-weight: 400;
  opacity: 0.8;
  color: #00ffff;
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
  margin-top: 0.5rem;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

body.light-theme .site-title {
  background: linear-gradient(45deg, #2196f3, #9c27b0, #2196f3);
  background-size: 200% 200%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.light-theme .title-subtitle {
  color: #2196f3;
  text-shadow: 0 0 10px rgba(33, 150, 243, 0.5);
}

/* Theme Switcher */
.theme-switcher {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1000;
}

.theme-btn {
  background: rgba(30, 30, 60, 0.7);
  border: 1px solid rgba(0, 255, 255, 0.5);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 1.5rem;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.theme-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

body.light-theme .theme-btn {
  background: rgba(255, 255, 255, 0.7);
  color: #333;
  border-color: rgba(100, 100, 100, 0.5);
}

/* Loading Spinner */
.spinner-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 12, 41, 0.9);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.spinner-overlay.show {
  opacity: 1;
  visibility: visible;
}

.spinner {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(0, 255, 255, 0.3);
  border-top: 4px solid #00ffff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

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

.spinner-overlay p {
  color: #00ffff;
  font-size: 1.1rem;
  text-shadow: 0 0 10px #00ffff;
}

.animated-bg {
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(0, 255, 255, 0.4), rgba(15, 12, 41, 0.8));
  filter: blur(120px);
  z-index: -2;
  opacity: 0.7;
}

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 1000 1000"><defs><radialGradient id="neon-glow" cx="50%" cy="50%" r="50%"><stop offset="0%" style="stop-color:%2300ffff;stop-opacity:0.3" /><stop offset="100%" style="stop-color:%23ff00ff;stop-opacity:0.1" /></radialGradient></defs><circle cx="500" cy="500" r="400" fill="url(%23neon-glow)" /></svg>') center/cover no-repeat;
  opacity: 0.3;
  pointer-events: none;
  animation: pulse 4s ease-in-out infinite alternate;
  z-index: -1;
}

@keyframes pulse {
  0% { opacity: 0.2; transform: scale(0.95); }
  100% { opacity: 0.4; transform: scale(1.05); }
}
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem 1rem 1rem;
  min-height: 60vh;
}
.weather-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(30, 30, 60, 0.4);
  border: 2px solid transparent;
  border-radius: 20px;
  box-shadow: 
    0 0 40px 10px rgba(0, 255, 255, 0.3),
    inset 0 0 20px rgba(255, 0, 255, 0.1);
  padding: 2rem;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(15px);
  position: relative;
  animation: cardGlow 3s ease-in-out infinite alternate;
  transition: all 0.3s ease;
  max-width: 500px;
  width: 100%;
}

/* Weather Details */
.weather-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
  width: 100%;
}

.detail-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(0, 0, 0, 0.2);
  padding: 0.8rem;
  border-radius: 10px;
  border: 1px solid rgba(0, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.detail-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 255, 255, 0.3);
}

.detail-label {
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
  opacity: 0.8;
}

.detail-value {
  font-size: 1.2rem;
  font-weight: bold;
  color: #00ffff;
}

/* Weather Alerts */
.weather-alerts {
  margin-top: 1rem;
  max-width: 500px;
  width: 100%;
}

.alert-item {
  background: rgba(255, 152, 0, 0.1);
  border: 1px solid rgba(255, 152, 0, 0.5);
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 0.5rem;
  backdrop-filter: blur(10px);
  animation: alertPulse 2s ease-in-out infinite;
}

@keyframes alertPulse {
  0%, 100% { box-shadow: 0 0 10px rgba(255, 152, 0, 0.5); }
  50% { box-shadow: 0 0 20px rgba(255, 152, 0, 0.8); }
}

/* Hourly Forecast */
.hourly-forecast {
  margin: 1rem 0;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hourly-forecast h3 {
  text-align: center;
  margin-bottom: 1rem;
  text-shadow: 0 0 10px cyan;
  font-size: 1.5rem;
}

.hourly-cards {
  display: flex;
  gap: 0.8rem;
  overflow-x: auto;
  padding: 1rem 0;
  max-width: 100%;
  width: 100%;
  justify-content: center;
  align-items: center;
}

.hourly-cards::-webkit-scrollbar {
  height: 6px;
}

.hourly-cards::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

.hourly-cards::-webkit-scrollbar-thumb {
  background: rgba(0, 255, 255, 0.5);
  border-radius: 3px;
}

.hourly-cards::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 255, 255, 0.7);
}

.hourly-card {
  min-width: 100px;
  background: rgba(30, 30, 60, 0.4);
  border: 1px solid rgba(0, 255, 255, 0.2);
  border-radius: 12px;
  padding: 1rem 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
  text-align: center;
}

.hourly-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
}

/* Site Footer */
.site-footer {
  margin-top: 3rem;
  padding: 2rem 1rem;
  background: rgba(15, 12, 41, 0.8);
  border-top: 2px solid rgba(0, 255, 255, 0.3);
  backdrop-filter: blur(20px);
  position: relative;
}

.footer-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.footer-text p {
  margin: 0.5rem 0;
  font-size: 1.1rem;
}

.footer-text strong {
  color: #00ffff;
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.heart {
  color: #ff1744;
  animation: heartbeat 1.5s ease-in-out infinite;
  filter: drop-shadow(0 0 5px #ff1744);
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

.footer-subtitle {
  opacity: 0.8;
  font-style: italic;
  margin-top: 0.5rem !important;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  background: rgba(0, 255, 255, 0.1);
  border: 1px solid rgba(0, 255, 255, 0.3);
  border-radius: 25px;
  color: #00ffff;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.footer-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(0, 255, 255, 0.4);
  background: rgba(0, 255, 255, 0.2);
}

.github-link:hover {
  border-color: rgba(255, 255, 255, 0.5);
  color: #ffffff;
}

.linkedin-link:hover {
  border-color: rgba(0, 119, 181, 0.8);
  color: #0077b5;
  box-shadow: 0 5px 20px rgba(0, 119, 181, 0.4);
}

.link-icon {
  font-size: 1.2rem;
}

.footer-bottom {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 255, 255, 0.2);
}

.footer-bottom p {
  opacity: 0.7;
  font-size: 0.9rem;
  margin: 0;
}

/* Light theme footer */
body.light-theme .site-footer {
  background: rgba(255, 255, 255, 0.8);
  border-top-color: rgba(33, 150, 243, 0.3);
  color: #333;
}

body.light-theme .footer-text strong {
  color: #2196f3;
  text-shadow: 0 0 10px rgba(33, 150, 243, 0.5);
}

body.light-theme .footer-link {
  background: rgba(33, 150, 243, 0.1);
  border-color: rgba(33, 150, 243, 0.3);
  color: #2196f3;
}

body.light-theme .footer-link:hover {
  background: rgba(33, 150, 243, 0.2);
  box-shadow: 0 5px 20px rgba(33, 150, 243, 0.4);
}

body.light-theme .footer-bottom {
  border-top-color: rgba(33, 150, 243, 0.2);
}

.weather-main:hover {
  transform: translateY(-5px);
  box-shadow: 
    0 0 60px 15px rgba(0, 255, 255, 0.4),
    inset 0 0 30px rgba(255, 0, 255, 0.2);
}

@keyframes cardGlow {
  0% { 
    border-image: linear-gradient(45deg, #00ffff, #ff00ff, #00ffff) 1;
    box-shadow: 0 0 40px 10px rgba(0, 255, 255, 0.3);
  }
  100% { 
    border-image: linear-gradient(45deg, #ff00ff, #00ffff, #ff00ff) 1;
    box-shadow: 0 0 50px 15px rgba(255, 0, 255, 0.4);
  }
}
.weather-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 20px rgba(0, 255, 255, 0.6));
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}
.weather-temp {
  font-size: 3rem;
  font-weight: bold;
  text-shadow: 0 0 20px cyan;
}
.weather-location {
  font-size: 1.5rem;
  margin-top: 0.5rem;
}
.search-bar {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
#city-input {
  padding: 0.7rem 1rem;
  border-radius: 10px;
  border: none;
  background: rgba(40, 40, 60, 0.7);
  color: #fff;
  font-size: 1rem;
  box-shadow: 0 0 10px cyan;
  outline: none;
}
#search-btn {
  padding: 0.7rem 1.2rem;
  border-radius: 10px;
  border: none;
  background: linear-gradient(90deg, #00c6ff, #0072ff);
  color: #fff;
  font-size: 1rem;
  font-weight: bold;
  box-shadow: 0 0 20px cyan;
  cursor: pointer;
  transition: box-shadow 0.3s;
}
#search-btn:hover {
  box-shadow: 0 0 40px 10px cyan;
}
.toast {
  position: fixed;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 0, 80, 0.9);
  color: #fff;
  padding: 1rem 2rem;
  border-radius: 10px;
  box-shadow: 0 0 20px #ff0050;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s;
  z-index: 1000;
}
.toast.show {
  opacity: 1;
  pointer-events: auto;
}
.forecast {
  margin: 2rem 0 0 0;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.forecast h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 10px cyan;
  font-size: 2rem;
}
.forecast-cards {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 1rem 0;
  justify-content: center;
  max-width: 100%;
  width: 100%;
}
.forecast-card {
  min-width: 160px;
  max-width: 180px;
  background: rgba(30, 30, 60, 0.5);
  border: 1px solid rgba(0, 255, 255, 0.3);
  border-radius: 15px;
  box-shadow: 
    0 0 20px rgba(0, 255, 255, 0.2),
    inset 0 0 10px rgba(255, 0, 255, 0.1);
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  position: relative;
  text-align: center;
}

.forecast-card:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 
    0 0 40px 10px rgba(0, 255, 255, 0.4),
    inset 0 0 20px rgba(255, 0, 255, 0.2);
  border-color: rgba(255, 0, 255, 0.6);
}

.forecast-icon {
  filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.5));
}
@media (max-width: 768px) {
  .site-header {
    padding: 1.5rem 0.5rem 0.5rem 0.5rem;
  }
  
  .site-title {
    font-size: 2.2rem;
  }
  
  .title-icon {
    font-size: 2.8rem;
  }
  
  .title-subtitle {
    font-size: 0.9rem;
  }
  
  .hero {
    padding: 1rem 0.5rem;
    min-height: 50vh;
  }
  
  .weather-main {
    padding: 1.5rem;
    margin-bottom: 1rem;
  }
  
  .weather-temp {
    font-size: 2.5rem;
  }
  
  .weather-location {
    font-size: 1.2rem;
  }
  
  .weather-details {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.8rem;
  }
  
  .search-bar {
    flex-direction: column;
    gap: 0.8rem;
    width: 100%;
    max-width: 300px;
  }
  
  #city-input, #search-btn {
    width: 100%;
    padding: 0.8rem 1rem;
  }
  
  .forecast-cards {
    gap: 0.8rem;
    padding: 0.5rem;
    justify-content: flex-start;
  }
  
  .forecast-card {
    min-width: 130px;
    max-width: 150px;
    padding: 1rem 0.8rem;
  }
  
  .hourly-cards {
    gap: 0.5rem;
    justify-content: flex-start;
  }
  
  .hourly-card {
    min-width: 80px;
    padding: 0.8rem 0.4rem;
  }
  
  .forecast h2, .hourly-forecast h3 {
    font-size: 1.5rem;
  }
  
  .theme-switcher {
    top: 0.5rem;
    right: 0.5rem;
  }
  
  .theme-btn {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }
  
  .footer-link {
    width: 200px;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .site-title {
    font-size: 1.8rem;
  }
  
  .title-icon {
    font-size: 2.2rem;
  }
  
  .title-subtitle {
    font-size: 0.8rem;
  }
  
  .weather-temp {
    font-size: 2rem;
  }
  
  .weather-main {
    padding: 1rem;
  }
  
  .forecast-card {
    min-width: 110px;
    max-width: 130px;
    padding: 0.8rem 0.5rem;
  }
  
  .weather-details {
    grid-template-columns: 1fr;
  }
  
  .hourly-card {
    min-width: 70px;
  }
  
  .footer-text p {
    font-size: 1rem;
  }
  
  .footer-link {
    width: 180px;
    padding: 0.7rem 1.2rem;
  }
}
