/* Reset default styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(to right, #b9c0be, #9face6);
  color: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  scroll-behavior: smooth;
}

/* Navigation Bar */
header {
  background: rgba(0, 0, 0, 0.2);
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(5px);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav h2 {
  font-size: 1.5rem;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

nav ul li a:hover {
  color: #ffea00;
}

/* Hamburger menu (hidden by default) */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.menu-toggle span {
  height: 3px;
  width: 25px;
  background: white;
  margin: 4px 0;
  border-radius: 5px;
  transition: 0.3s;
}

/* Hero Section */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3rem 1rem;
  background: url("assets/background.jpg") no-repeat center center/cover;
  animation: fadeIn 1.5s ease;
}

/* Search Section */
.search-area {
  background: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 15px;
  backdrop-filter: blur(8px);
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  text-align: center;
  margin-bottom: 2rem;
}

.search-area h1 {
  margin-bottom: 1rem;
}

.search-area input {
  padding: 10px;
  border-radius: 10px;
  border: none;
  outline: none;
  width: 250px;
  margin-right: 10px;
}

.btns button {
  padding: 10px 15px;
  margin: 0.5rem;
  border: none;
  border-radius: 10px;
  background-color: #ffffffcc;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s;
}

.btns button:hover {
  background-color: #fff;
}

/* Weather Card */
.weather-card {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  width: 300px;
  animation: slideUp 1s ease-in-out;
  box-shadow: 0 0 15px rgba(0,0,0,0.2);
}

.weather-card img {
  width: 100px;
  height: 100px;
}

.hidden {
  display: none;
}

/* Footer */
footer {
  text-align: center;
  padding: 1rem;
  background-color: rgba(0, 0, 0, 0.2);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Navbar */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  nav ul {
    flex-direction: column;
    gap: 10px;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(10px);
    text-align: center;
    display: none;
    padding: 1rem 0;
  }

  nav ul.active {
    display: flex;
  }

  nav ul li {
    margin: 10px 0;
  }

  .search-area input {
    width: 100%;
    margin-bottom: 1rem;
  }

  .weather-card {
    width: 90%;
  }
}

/* Forecast Cards */
.forecast-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  padding: 2rem 1rem;
}

.forecast-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1rem;
  width: 180px;
  text-align: center;
  backdrop-filter: blur(6px);
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  animation: slideUp 1s ease;
}

.forecast-card img {
  width: 60px;
  height: 60px;
}

/* Video Background */
.video-background, .background {
  position: fixed;
  top: 0;
  left: 0;
  width: auto;
  height: auto;
  z-index: -1;
  opacity: 1.3;
  filter: blur(2px) brightness(0.7);
}
