* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
  }
  
  body {
    /* background: linear-gradient(to bottom, #00aaff, #87ceeb); */
    animation: gradientChange 10s ease-in infinite; /* 10-second cycle, smooth transition */
    height: 100vh;
    margin: 0;
    background-size: 400% 400%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  @keyframes gradientChange {
    0% {
      background: linear-gradient(to bottom, #00aaff, #87ceeb); /* Initial gradient */
    }
    50% {
      background: linear-gradient(to bottom, #87ceeb, #00aaff); /* Midpoint gradient */
    }
    100% {
      background: linear-gradient(to bottom, #00aaff, #87ceeb); /* Back to initial */
    }
  }
  
  
  #bgVideo {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.4;
    filter: blur(8px);
    transition: all 0.8s ease-in-out;
  }
  
  .card {
    width: 90%;
    max-width: 470px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(15px);
    color: #fff;
    border-radius: 30px;
    padding: 40px 35px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.45);
  }
  
  .search {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 30px;
  }
  
  .search input {
    border: none;
    outline: none;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 15px 25px;
    height: 60px;
    border-radius: 30px;
    flex: 1;
    font-size: 18px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
  }
  
  .search input::placeholder {
    color: rgba(255, 255, 255, 0.7);
  }
  
  .search input:focus {
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
  }
  
  .search button {
    border: none;
    outline: none;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  .search button:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
  }
  
  .search button img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
  }
  
  .weather-icon {
    width: 170px;
    margin: 30px auto;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
  }
  
  @keyframes float {
    0% {
      transform: translateY(0px);
    }
    50% {
      transform: translateY(-10px);
    }
    100% {
      transform: translateY(0px);
    }
  }
  
  .weather h1 {
    font-size: 80px;
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    margin: 0;
    background: linear-gradient(135deg, #00c6ff, #0072ff);
    -webkit-background-clip: text; 
    background-clip: text;        
    -webkit-text-fill-color: transparent;
    color: #000; 
    -webkit-text-stroke: 0.5px #000; 
 
  }
  
  .weather h2 {
    font-size: 45px;
    font-weight: 500;
    margin-top: -10px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.15);
    letter-spacing: 1px;
    color: #f0f0f0;
  }
  
  .details {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    margin-top: 50px;
  }
  
  .col {
    display: flex;
    align-items: center;
    text-align: left;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    transition: all 0.3s ease;
  }
  
  .col:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
  }
  
  .col img {
    width: 40px;
    margin-right: 10px;
    filter: brightness(0) invert(1);
  }
  
  .humidity,
  .wind {
    font-size: 28px;
    font-weight: 600;
    margin-top: -6px;
    color: #f0f0f0;
  }
  
  .col p {
    font-size: 14px;
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.7);
  }
  
  .weather {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
  }
  
  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .error {
    background: rgba(255, 9, 9, 0.526);
    color: #fff;
    padding: 15px;
    border-radius: 15px;
    margin-top: 15px;
    display: none;
    animation: shake 0.5s ease-in-out;
  }
  
  @keyframes shake {
    0%,
    100% {
      transform: translateX(0);
    }
    25% {
      transform: translateX(-5px);
    }
    75% {
      transform: translateX(5px);
    }
  }
  
  .loading {
    color: #fff;
    font-size: 16px;
    margin-top: 15px;
    display: none;
    animation: pulse 1.5s ease-in-out infinite;
  }
  
  @keyframes pulse {
    0% {
      opacity: 0.6;
    }
    50% {
      opacity: 1;
    }
    100% {
      opacity: 0.6;
    }
  }
  
  /* Responsive Design */
  @media (max-width: 480px) {
    .card {
      padding: 30px 20px;
    }
  
    .weather h1 {
      font-size: 60px;
    }
  
    .weather h2 {
      font-size: 35px;
    }
  
    .details {
      flex-direction: column;
      gap: 15px;
    }
  
    .col {
      width: 100%;
      justify-content: center;
    }
  }
  
  