body{
    font-family: "Poppins", cursive;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #82bffb, #dab3ff);
    box-sizing: border-box;
    /* height: 100%; */
}
.navbar{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 30px;
    background: linear-gradient(135deg, #6a0dad, #00aaff);
}
.logo h1{
    color: white;
    font-size: 2rem;
}
.mobile-menu{
    display: none;
}
.nav-mobile-links{
    display: none;
}
.nav-links{
    list-style: none;
    display: flex;
    gap: 20px;
}
.nav-links li{
    display: inline;
    padding: 0 30px;
}
.nav-links a{
    text-decoration: none;
    color: white;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}
.nav-links a:hover {
  color: #f0f0f0;
}
/* card */
.container{
    margin: 50px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    /* height: 100vh; */
}
.card{
    /* margin: 5px; */
    width: 350px;
    padding: 30px;
    backdrop-filter: blur(20px);
    border-radius: 20px;
    /* background-color: black; */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.logo{
    color: rgb(255, 255, 255);
}
.search-section{
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}
input[type="search"]{
    padding: 9px 18px;
    font-size: 18px;
    font-family: "Poppins", cursive;
    border: none;
    color: white;
    border-radius: 20px 0 0 20px;
    background: linear-gradient(135deg, #a0cdf9, #e8d1fe);
}
input[type="search"]::placeholder{
    color: white;
}
input[type="search"]:focus{
    outline: none;
}
.search-section #get-weather-btn{
    padding: 9px 18px;
    font-size: 18px;
    font-family: "Poppins", cursive;
    border: none;
    color: white;
    border-radius: 0 20px 20px 0;
    background-color: #4b1eff;
}
.temp-box{
    display: flex;
    flex-direction: column;
    /* justify-content: center; */
    align-items: center;
    width: 260px;
    height: 260px;
    padding: 20px;
    box-shadow: 0 8px 25px rgba(185, 185, 185, 0.1);
    border-radius: 20px;
    background: linear-gradient(135deg, #b7d8fa, #d8adff);
}
#city-text{
    font-size: 25px;
    padding: 10px;
    font-weight: 500;
    margin: 0;
}
img{
    width: 90px;
    height: 90px;
}
.temp-part{
    padding: 5px 0;
    display: flex;
    justify-content: center;
    gap: 30px;
}
#temperature{
    margin: 0;
    font-size: 35px;
    padding: 10px 20px 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-weight: 600;
}
#temperature #feels-like{
    font-size: 11px;
    font-weight: 300;
    opacity: 0.7;
}
#weather{
    margin: 0;
    font-weight: 600;
}
.weather-details{
    display: flex;
    justify-content: space-between;
    gap: 20px;
}
.weather-details p{
    color: rgba(0,0,0,0.8);
    font-weight: 300;
}
.weather-details span{
    color: black;
    font-weight: 600;
}
.toggle-section {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 15px 0;
}
.toggle {
  position: relative;
  width: 40px;
  height: 20px;
  margin-right: 10px;
}

.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  transition: 0.4s;
}

.slider::before {
  content: "";
  position: absolute;
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: 0.4s;
}

.toggle input:checked + .slider::before {
  transform: translateX(20px);
}

.unit-label {
  font-weight: 500;
}
#quote{
    color: #fff;
}
.hidden{
    display: none;
}
#recent-cities{
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    font-size: 10px;
    row-gap: 10px;
    column-gap: 2px;
}
#recent-cities li{
    list-style-type: none;
    background-color: #fff;
    padding: 5px 8px;
    border-radius: 15px;
}
#recent-cities li:hover{
    background-color: #d2c4e5;
}
.home-hero {
  text-align: center;
  color: #fff;
  padding: 80px 20px;
  background: linear-gradient(135deg, #6a0dad, #00aaff);
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-content {
  max-width: 700px;
}

.hero-content h1 {
  font-size: 2.8rem;
  margin-bottom: 15px;
  font-weight: 700;
}

.hero-content p {
  font-weight: 300;
  font-size: 1.2rem;
  line-height: 1.6;
  opacity: 0.95;
  margin-bottom: 25px;
}

.hero-btn {
  display: inline-block;
  text-decoration: none;
  color: #fff;
  background-color: #4b1eff;
  padding: 10px 25px;
  border-radius: 25px;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.hero-btn:hover {
  background-color: #3211b3;
}

.home-footer {
  text-align: center;
  color: #fff;
  padding: 40px 20px;
  background: linear-gradient(135deg, #82bffb, #dab3ff);
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 10px;
}

.footer-socials a {
  color: white;
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.footer-socials a:hover {
  color: #ffe5f0;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }
}


/* about */
.about-hero {
  text-align: center;
  color: #fff;
  padding: 60px 20px 40px;
  background: linear-gradient(135deg, #6a0dad, #00aaff);
}

.about-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.about-hero p {
  font-weight: 300;
  font-size: 1.2rem;
  opacity: 0.9;
}

.about-section {
  display: flex;
  justify-content: center;
  padding: 50px 20px;
}

.about-container {
  max-width: 900px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.about-box {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  padding: 25px 30px;
  border-radius: 15px;
  color: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.about-box h2 {
  color: #ffffff;
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.about-box p,
.about-box li {
  color: #7d6478;
  font-weight: 300;
  line-height: 1.6;
}

.about-box ul {
  padding-left: 20px;
}

.about-footer {
  text-align: center;
  color: #fff;
  padding: 40px 20px;
  background: linear-gradient(135deg, #82bffb, #dab3ff);
  font-style: italic;
}
/* Contact */

.contact-hero {
  text-align: center;
  color: #fff;
  padding: 60px 20px 40px;
  background: linear-gradient(135deg, #6a0dad, #00aaff);
}

.contact-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.contact-hero p {
  font-weight: 300;
  font-size: 1.2rem;
  opacity: 0.9;
}

.contact-section {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 60px 20px;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 900px;
  gap: 40px;
}

.contact-form,
.contact-info {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  padding: 30px;
  border-radius: 15px;
  color: #715b71;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-form:hover,
.contact-info:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.contact-form h2,
.contact-info h2 {
  margin-bottom: 15px;
  font-size: 1.4rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 15px;
}

.form-group label {
  margin-bottom: 5px;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  font-family: "Poppins", cursive;
  border: none;
  border-radius: 10px;
  padding: 10px;
  font-size: 16px;
  background: linear-gradient(135deg, #b7d8fa, #d8adff);
  color: #000;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(0, 0, 0, 0.6);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.4);
}

.btn-submit {
  border: none;
  background-color: #4b1eff;
  color: white;
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 20px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-submit:hover {
  background-color: #3415b3;
}

.contact-info p {
  margin: 8px 0;
  font-weight: 300;
}

.contact-info i {
  margin-right: 10px;
  color: #fff;
}

.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 15px;
}

.social-icons a {
  color: white;
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: #ffebf0;
}

.contact-footer {
  text-align: center;
  color: #fff;
  padding: 40px 20px;
  background: linear-gradient(135deg, #82bffb, #dab3ff);
  font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
  .contact-container {
    grid-template-columns: 1fr;
  }
}

#name, #email, #message{
    color: #fff;
}
#name::placeholder, #email::placeholder, #message::placeholder{
    color: #fff;
}
/* Responsive Mobile and Tablet Menu*/

@media (max-width: 480px){
  .card{
    width: 75%;
  }
  .logo h1{
    font-size: 1.5rem;
  }
  .search-section input[type="search"]{
    width: 175px;
    font-size: 16px;
  }
  .temp-box{
    width: 220px;
    height: 220px;
  }
  #city-text{
    font-size: 20px;
  }
  .temp-part{
    gap: 15px;
  }
  #weatherIcon{
    width: 70px;
    height: 70px;
  }
  #temperature{
    font-size: 28px;
  }
  #weather{
    font-size: 14px;
  }
  .weather-details p{
    font-size: 12px;
  }
  #recent-cities{
    font-size: 9px;
  }
  #quote{
    font-size: 14px;
  }
  .hidden{
    font-size: 14px;
  }

}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
}
  .mobile-menu {
    display: block;
    cursor: pointer;
    width: 32px;
    height: 26px;
    background-image: url('assets/menu-icon.png');
    background-size: contain;
    background-repeat: no-repeat;
    transition: transform 0.3s ease;
    z-index: 1001;
  }

  /* Change icon when active */
  .mobile-menu.active {
    background-image: url('assets/close-icon.png');
  }

  .nav-mobile-links {
    position: fixed;
    top: -20px;
    right: -100%;
    height: 100vh;
    width: 70%;
    background: linear-gradient(135deg, #6a0dad, #00aaff);
    list-style: none;
    padding: 100px 20px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    transition: right 0.4s ease;
    z-index: 1000;
  }

  .nav-mobile-links li {
    text-align: center;
  }

  .nav-mobile-links a {
    text-decoration: none;
    color: white;
    font-size: 1.3rem;
    font-weight: 500;
  }

  .nav-mobile-links a:hover {
    color: #f0f0f0;
  }

  /* Active state */
  .nav-mobile-links.active {
    right: 0;
  }
}

/* Extra small devices */
@media (max-width: 480px) {
  .nav-mobile-links {
    width: 85%;
  }
}

/* contact section's responsive fix */
@media (max-width:480px){
  .contact-form, .contact-info{
    padding: 20px;
  }
  .contact-form h2, .contact-info h2{
    font-size: 1.1rem;
  }
  .form-group input, .form-group textarea{
    font-size: 14px;
  }
  .btn-submit{
    font-size: 14px;
    padding: 8px 16px;
  }
}