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

body {
  font-family: "Poppins", sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #333;
  position: relative;
  overflow-x: hidden;
}

/* Animated background particles */
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="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"><animate attributeName="cy" values="20;80;20" dur="3s" repeatCount="indefinite"/></circle><circle cx="40" cy="40" r="1.5" fill="rgba(255,255,255,0.08)"><animate attributeName="cy" values="40;10;40" dur="2.5s" repeatCount="indefinite"/></circle><circle cx="60" cy="60" r="2.5" fill="rgba(255,255,255,0.12)"><animate attributeName="cy" values="60;5;60" dur="4s" repeatCount="indefinite"/></circle><circle cx="80" cy="30" r="1.8" fill="rgba(255,255,255,0.1)"><animate attributeName="cy" values="30;90;30" dur="3.5s" repeatCount="indefinite"/></circle></svg>') repeat;
  z-index: -1;
  animation: float 20s infinite linear;
}

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

/* Header */
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 1rem 2rem;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.logo {
  font-size: 1.8rem;
  color: white;
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  from { filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5)); }
  to { filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.8)); }
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  text-decoration: none;
  color: white;
  font-size: 1rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.nav-links a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.nav-links a:hover::before {
  left: 100%;
}

.nav-links a:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Hero Section */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 120px 10%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  backdrop-filter: blur(10px);
  min-height: 70vh;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="rgba(255,255,255,0.1)"><polygon points="0,0 1000,0 1000,100"/></svg>') no-repeat center bottom;
  z-index: -1;
}

.hero-content {
  max-width: 50%;
  padding-left: 5%;
  animation: slideInLeft 1s ease-out;
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-50px); }
  to { opacity: 1; transform: translateX(0); }
}

.hero-content h1 {
  font-size: 2.8rem;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  line-height: 1.2;
  margin-bottom: 20px;
}

.highlight {
  background: linear-gradient(45deg, #ff6b6b, #feca57, #48dbfb, #0abde3);
  background-size: 400% 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: rainbow 3s ease-in-out infinite;
  font-weight: bold;
}

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

.hero-content p {
  font-size: 1.3rem;
  margin: 15px 0;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.check-btn {
  background: linear-gradient(45deg, #ff6b6b, #feca57);
  color: white;
  padding: 15px 30px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
  position: relative;
  overflow: hidden;
}

.check-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s;
}

.check-btn:hover::before {
  left: 100%;
}

.check-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 25px rgba(255, 107, 107, 0.6);
}

/* Enhanced Slideshow */
.slideshow-container {
  position: relative;
  width: 400px;
  height: 300px;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  animation: slideInRight 1s ease-out;
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(50px); }
  to { opacity: 1; transform: translateX(0); }
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  filter: brightness(1.1) contrast(1.1);
}

.slide.active {
  opacity: 1;
}

.slideshow-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
  border-radius: 20px;
}

/* Weather Section - FIXED */
.weather-container {
  text-align: center;
  margin: 100px auto;
  width: 90%;
  max-width: 500px;
  padding: 40px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-radius: 25px;
  transition: all 0.3s ease;
  animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.weather-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.weather-header {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  backdrop-filter: blur(10px);
}

#day {
  font-size: 1.3rem;
  font-weight: 600;
  color: white;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

#date {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 400;
}

.weather-container input {
  width: 85%;
  padding: 15px 20px;
  margin-bottom: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 25px;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.weather-container input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.weather-container input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.weather-container button {
  padding: 15px 30px;
  background: linear-gradient(45deg, #667eea, #764ba2);
  color: white;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
  position: relative;
  overflow: hidden;
}

.weather-container button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.weather-container button:hover::before {
  left: 100%;
}

.weather-container button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.6);
}

/* FIXED WEATHER INFO CONTAINER */
.weather-info {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 25px;
  margin-top: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  min-height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  transition: all 0.5s ease;
  word-wrap: break-word;
  overflow-wrap: break-word;
  position: relative;
}

/* Weather info when data is loaded */
.weather-info.has-data {
  color: white;
  text-align: center;
  min-height: auto;
  padding: 30px;
}

/* Weather display layout */
.weather-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  width: 100%;
}

.weather-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.weather-icon {
  width: 60px;
  height: 60px;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.temperature {
  font-size: 2.5rem;
  font-weight: 700;
  color: #feca57;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.weather-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  width: 100%;
  margin-top: 15px;
}

.weather-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 12px;
  border-radius: 12px;
  backdrop-filter: blur(5px);
  text-align: center;
}

.weather-item strong {
  color: #48dbfb;
  font-weight: 600;
  display: block;
  margin-bottom: 5px;
}

.location-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: white;
  margin-bottom: 10px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.weather-condition {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  text-transform: capitalize;
  margin-bottom: 15px;
}

/* About Section */
.about {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 100px 10%;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  margin: 100px 0;
}

.about-content {
  max-width: 50%;
  padding-left: 5%;
  animation: slideInLeft 1s ease-out;
}

.about-content h1 {
  font-size: 2.8rem;
  font-weight: 700;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  line-height: 1.3;
  margin-bottom: 20px;
}

.about-content .highlight {
  color: #48dbfb;
  background: linear-gradient(45deg, #48dbfb, #0abde3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.about-content p {
  font-size: 1.3rem;
  margin: 15px 0;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.btn {
  background: linear-gradient(45deg, #48dbfb, #0abde3);
  color: white;
  padding: 15px 30px;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(72, 219, 251, 0.4);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 25px rgba(72, 219, 251, 0.6);
}

.about-image {
  flex: 1;
  display: flex;
  justify-content: center;
  animation: slideInRight 1s ease-out;
}

.about-image img {
  width: 100%;
  max-width: 400px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  filter: brightness(1.1) contrast(1.1);
}

.about-image img:hover {
  transform: scale(1.05) rotate(2deg);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

/* Footer */
footer {
  text-align: center;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  padding: 30px 0;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 15px;
}

.social-icons img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: all 0.3s ease;
  filter: brightness(1.2);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.social-icons img:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  filter: brightness(1.4);
}

.footer-text {
  font-size: 1rem;
  font-weight: 600;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 120px 5% 60px;
  }

  .hero-content {
    max-width: 100%;
    padding-left: 0;
    margin-bottom: 40px;
  }

  .slideshow-container {
    width: 100%;
    max-width: 350px;
  }

  .about {
    flex-direction: column;
    text-align: center;
    padding: 80px 5%;
  }

  .about-content {
    max-width: 100%;
    padding-left: 0;
    margin-bottom: 40px;
  }

  .weather-container {
    width: 95%;
    margin: 80px auto;
    padding: 30px 20px;
  }

  .weather-details {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .weather-main {
    flex-direction: column;
    gap: 15px;
  }

  .nav-links {
    gap: 1rem;
  }

  .nav-links a {
    padding: 8px 16px;
    font-size: 0.9rem;
  }
}

/* Loading animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}