* { box-sizing: border-box; margin: 0; padding: 0; }
body {
      font-family: 'Segoe UI', sans-serif;
      background: linear-gradient(to bottom right, #d0f0f0, #f8ffff); /* Light teal-like background */
      color: #333;
      padding: 40px 20px;
      display: flex;
      flex-direction: column;
      align-items: center;
      overflow-x: hidden;
    }


    h1 {
      font-size: 48px;
      margin-bottom: 20px;
      text-align: center;
      background: linear-gradient(to right, #1d3557, #457b9d); /* More professional gradient */
      color: transparent;
      -webkit-background-clip: text;
      background-clip: text;
      font-weight: bold;
      text-shadow: 2px 2px 8px rgba(0,0,0,0.1);
    }

    .search-box {
      display: flex;
      width: 100%;
      max-width: 500px;
      margin-top: 20px;
    }

    .search-box input {
      flex: 1;
      padding: 14px;
      font-size: 16px;
      border: none;
      border-radius: 8px 0 0 8px;
    }

    .search-box button {
      padding: 14px 20px;
      background: linear-gradient(to right, #434343, #000000);
      color: white;
      border: none;
      border-radius: 0 8px 8px 0;
      font-size: 16px;
      cursor: pointer;
      transition: transform 0.3s ease;
    }

    .search-box button:hover {
      transform: scale(1.05);
    }

    .modal {
      position: fixed;
      top: 0; left: 0;
      width: 100%; height: 100%;
      background: rgba(0,0,0,0.4);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 1000;
    }

    .modal-content {
      background: #ffe6f0; /* Light pink background */
      color: #333;
      padding: 30px;
      border-radius: 16px;
      text-align: center;
      max-width: 400px;
      box-shadow: 0 20px 40px rgba(0,0,0,0.2);
      animation: fadeSlide 1s ease-out;
    }

    .modal-content input {
      padding: 10px;
      margin-top: 10px;
      width: 80%;
      font-size: 16px;
      border-radius: 5px;
      border: 1px solid #ccc;
    }

    .modal-content button {
      margin-top: 15px;
      padding: 10px 20px;
      background: linear-gradient(to right, #11998e, #38ef7d);
      border: none;
      color: white;
      font-size: 16px;
      border-radius: 6px;
      cursor: pointer;
    }

    #welcomeHeading {
      display: none;
      font-size: 36px;
      background: linear-gradient(to right, #56ccf2, #2f80ed);
      color: transparent;
      background-clip: text;
      -webkit-background-clip: text;
      font-weight: 700;
      animation: fadeSlide 1.2s ease-out forwards;
      opacity: 0;
      margin-bottom: 20px;
      text-align: center;
      text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    @keyframes fadeSlide {
      from {
        opacity: 0;
        transform: translateY(30px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .section-title {
      font-size: 24px;
      margin-top: 40px;
      margin-bottom: 15px;
      border-bottom: 2px dashed #0072ff;
      padding-bottom: 5px;
    }

    .forecast-container {
      margin-top: 40px;
      width: 100%;
      max-width: 1200px;
    }

    .cards-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
      gap: 20px;
    }

    .card {
      perspective: 1000px;
    }

    .card-inner {
      position: relative;
      width: 100%;
      height: 230px;
      transition: transform 0.8s;
      transform-style: preserve-3d;
    }

    .card:hover .card-inner {
      transform: rotateY(180deg);
    }

    .card-front, .card-back {
      position: absolute;
      width: 100%;
      height: 100%;
      border-radius: 12px;
      backface-visibility: hidden;
      padding: 15px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    }

    .card-front {
      background: linear-gradient(to right, #6a11cb, #2575fc);
      color: white;
    }

    .card-back {
      transform: rotateY(180deg);
      background: linear-gradient(to right, #ffe259, #ffa751);
      color: #333;
    }

    .card img {
      width: 60px;
      height: 60px;
      margin-bottom: 10px;
    }

    .error {
      color: #ff6b6b;
      margin-top: 15px;
    }