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

body {
      font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
      min-height: 100vh;
      display: flex;
      justify-content: center;
      align-items: center;
      background: linear-gradient(-45deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #f5576c 75%, #4facfe 100%);
      background-size: 400% 400%;
      animation: gradientShift 12s ease infinite;
      overflow-x: hidden;
      padding: 20px;
    }

@keyframes gradientShift {
      0% { background-position: 0% 50%; }
      50% { background-position: 100% 50%; }
      100% { background-position: 0% 50%; }
    }
    
    
    .loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 20px;
    z-index: 1000;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    background: url('https://images.unsplash.com/photo-1470071459604-3b5ec3a7fe05?w=800&h=400&fit=crop') center/cover;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


.card {
      background: rgba(255, 255, 255, 0.08);
      backdrop-filter: blur(30px);
      border: 1px solid rgba(255, 255, 255, 0.18);
      border-radius: 24px;
      padding: 32px;
      width: 100%;
      max-width: 420px;
      min-height: 700px;
      box-shadow: 
        0 32px 64px rgba(31, 38, 135, 0.37),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
      transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
      position: relative;
      overflow: hidden;
    }

.card::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 1px;
      background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    }

.card:hover {
      transform: translateY(-8px);
      box-shadow: 
        0 48px 80px rgba(31, 38, 135, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }

.header {
      text-align: center;
      margin-bottom: 32px;
    }

.header h2 {
  animation: gradientText 2s ease infinite ,typing 2s steps(50, end) forwards;
    font-size: 2.8rem;
    font-weight: 900;
    background: url('https://images.unsplash.com/photo-1506905925346-21bda4d32df4?w=1200&h=800&fit=crop&crop=center') center/cover;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 3px;
    margin-bottom: 8px;
    position: relative;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
    }

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

@keyframes typing {
      from { width: 0; }
      to { width: 100%; }
    }

.search {
      display: flex;
      gap: 12px;
      margin-bottom: 32px;
      position: relative;
    }

.search input {
      flex: 1;
      height: 56px;
      border: none;
      border-radius: 16px;
      font-size: 16px;
      font-weight: 500;
      padding: 0 20px;
      background: rgba(255, 255, 255, 0.15);
      backdrop-filter: blur(10px);
      color: white;
      border: 1px solid rgba(255, 255, 255, 0.2);
      transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
      outline: none;
    }

.search input::placeholder {
      color: rgba(255, 255, 255, 0.7);
    }

.search input:focus {
      background: rgba(255, 255, 255, 0.25);
      border-color: rgba(255, 255, 255, 0.4);
      transform: translateY(-2px);
      box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
    }

.search button {
      width: 56px;
      height: 56px;
      border: none;
      border-radius: 16px;
      background: linear-gradient(135deg, #667eea, #764ba2);
      color: white;
      font-size: 18px;
      cursor: pointer;
      transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 8px 32px rgba(102, 126, 234, 0.4);
    }

.search button:hover {
      transform: translateY(-3px);
      box-shadow: 0 12px 40px rgba(102, 126, 234, 0.6);
    }

.search button:active {
      transform: translateY(0);
    }

.weather {
      display: none;
      animation: slideUpFade 0.6s cubic-bezier(0.23, 1, 0.320, 1);
    }

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

.location {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 32px;
      gap: 20px;
    }

.weatherinfo {
      text-align: center;
    }

.weathericon {
      width: 120px;
      height: 120px;
      filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.2));
      animation: float 3s ease-in-out infinite;
    }

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

.cloudy {
      color: rgba(255, 255, 255, 0.9);
      font-size: 24px;
      font-weight: 600;
      margin-top: 12px;
      text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }

.info {
      text-align: right;
    }

.date {
      color: rgba(255, 255, 255, 0.8);
      font-size: 16px;
      font-weight: 500;
      margin-bottom: 8px;
    }

.temp {
      color: white;
      font-size: 4rem;
      font-weight: 800;
      margin-bottom: 8px;
      text-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
      background: linear-gradient(135deg, #fff, rgba(255, 255, 255, 0.8));
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }

.cityy {
      color: rgba(255, 255, 255, 0.9);
      font-size: 28px;
      font-weight: 600;
      text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }

.details {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 16px;
      background: rgba(255, 255, 255, 0.1);
      backdrop-filter: blur(20px);
      border: 1px solid rgba(255, 255, 255, 0.15);
      border-radius: 20px;
      padding: 24px;
      margin-top: 24px;
      animation: scaleIn 0.5s cubic-bezier(0.23, 1, 0.320, 1) forwards;
    }

@keyframes scaleIn {
      from {
        opacity: 0;
        transform: scale(0.9);
      }
      to {
        opacity: 1;
        transform: scale(1);
      }
    }

.col {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 12px;
      border-radius: 12px;
      background: rgba(255, 255, 255, 0.05);
      transition: all 0.3s ease;
      opacity: 0;
      animation: fadeInUp 0.5s cubic-bezier(0.23, 1, 0.320, 1) forwards;
    }

.col:hover {
      background: rgba(255, 255, 255, 0.1);
      transform: translateY(-2px);
    }

.material-symbols-outlined {
      font-size: 32px !important;
      color: #667eea;
      filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    }

.font {
      flex: 1;
    }

.calc {
      font-weight: 700;
      font-size: 18px;
      color: white;
      margin-bottom: 4px;
    }

.property {
      font-weight: 500;
      font-size: 14px;
      color: rgba(255, 255, 255, 0.7);
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }

 /* Message Sections */
.sectionmessage, .errormessage {
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
      gap: 24px;
      animation: fadeInScale 0.6s cubic-bezier(0.23, 1, 0.320, 1);
    }

@keyframes fadeInScale {
      from {
        opacity: 0;
        transform: scale(0.8) translateY(40px);
      }
      to {
        opacity: 1;
        transform: scale(1) translateY(0);
      }
    }

.sectionmessage h1, .errormessage h1 {
      font-size: 2.5rem;
      font-weight: 800;
      color: white;
      text-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
      margin-bottom: 8px;
    }

.sectionmessage h3, .errormessage h3 {
      font-size: 1.25rem;
      font-weight: 500;
      color: rgba(255, 255, 255, 0.8);
      text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }

.message-img, .img {
      height: 200px;
      width: auto;
      filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.2));
      animation: gentle-bounce 2s ease-in-out infinite;
    }

@keyframes gentle-bounce {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(-8px); }
    }

/* Animation delays for staggered effect */
    .col:nth-child(1) { animation-delay: 0.1s; }
    .col:nth-child(2) { animation-delay: 0.2s; }
    .col:nth-child(3) { animation-delay: 0.3s; }
    .col:nth-child(4) { animation-delay: 0.4s; }
    .col:nth-child(5) { animation-delay: 0.5s; }

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

    /* Responsive Design */
@media (max-width: 480px) {
      body {
        padding: 12px;
      }

      .card {
        padding: 24px 20px;
        min-height: 640px;
      }

      .header h2 {
        font-size: 2rem;
      }

      .temp {
        font-size: 3rem;
      }

      .cityy {
        font-size: 24px;
      }

      .details {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 20px;
      }

      .col {
        padding: 16px 12px;
      }

      .material-symbols-outlined {
        font-size: 28px !important;
      }

      .weathericon {
        width: 100px;
        height: 100px;
      }

      .location {
        flex-direction: column;
        text-align: center;
        gap: 16px;
      }

      .info {
        text-align: center;
      }
    }

@media (min-width: 1024px) {
      .card {
        max-width: 480px;
        padding: 40px;
      }

      .details {
        grid-template-columns: repeat(3, 1fr);
      }

      .col:nth-last-child(-n+2) {
        grid-column: span 1;
      }

      .col:last-child {
        grid-column: 2;
      }
    }

@media (min-width: 1440px) {
      .card {
        max-width: 520px;
      }

      .details {
        grid-template-columns: repeat(5, 1fr);
      }

      .col:nth-last-child(-n+2) {
        grid-column: span 1;
      }

      .col:last-child {
        grid-column: auto;
      }
    }