/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #a3aedf 0%, #d2b6ef 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}
body {
    background: url('https://images.unsplash.com/photo-1503264116251-35a269479413?auto=format&fit=crop&w=1600&q=80') no-repeat center center/cover;
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
}
body {
    background: linear-gradient(-45deg, #89CFF0, #4facfe, #00f2fe, #43e97b);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
body {
    background: linear-gradient(135deg, #89CFF0, #E0F6FF);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
}


.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styles */
.header {   
    margin-bottom: 32px;
}

.header-content {
    display: block;
    
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 20px 32px;
    border: 1px solid rgba(255, 255, 255, 0.2);

}
.header-content > div{
    margin-left: auto;
    margin-right: auto;
}
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    font-size: 32px;
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.logo h1 {
    color: white;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.search-container {
    display: flex;
    width: 31%;
    align-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 2px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.search-container:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.search-input {
    background: transparent;
    border: none;
    padding: 10px 18px;
    color: black;
    font-size: 16px;
    width: 300px;
    outline: none;
}

.search-input::placeholder {
    padding-top: 20px;
    color: rgba(255, 255, 255, 0.7);
}

.search-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: inline-block;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 18px;
}

.search-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Main Content */
    .main-content {
        max-width: 100%;
    margin: 0 auto;
    padding: 20px;
    
}

/* Current Weather Card */
.current-weather {
    background:transparent;
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 32px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.current-weather:hover {
    transform: translateY(-4px);
}

.location-info {
    margin-bottom: 24px;
}

.city-name {
    font-size: 32px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 4px;
}

.date-time {
    color: #718096;
    font-size: 16px;
    font-weight: 500;
}

.weather-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.temperature-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.temperature {
    font-size: 80px;
    font-weight: 300;
    color: #2d3748;
    line-height: 1;
}

.weather-description .condition {
    font-size: 24px;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 4px;
}

.weather-description .feels-like {
    font-size: 16px;
    color: #718096;
}

.weather-icon .icon-large {
    font-size: 120px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.weather-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.detail-item:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
}

.detail-icon {
    font-size: 24px;
}

.detail-info {
    display: flex;
    flex-direction: column;
}

.detail-label {
    font-size: 14px;
    color: #718096;
    font-weight: 500;
}

.detail-value {
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
}

/* Section Titles */
.section-title {
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width:100%;

}

/* Hourly Forecast */
.hourly-forecast {
    width:100%;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
margin-top: 5%;
margin-bottom: 5%;

}


.hourly-scroll {
    max-width: 90%;
    display: flex;
    flex-direction: row;
    gap: 16px;
    overflow-x: scroll;

    padding-bottom: 8px;
    

}

.hourly-scroll::-webkit-scrollbar {
    height: 6px;
}

.hourly-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.hourly-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.hourly-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 100px;
    padding: 16px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: black;

}

.hourly-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
}

.hour {
    font-size: 14px;
    color: black;
    font-weight: 500;
}

.hourly-icon {
    font-size: 32px;
}

.hourly-temp {
    font-size: 18px;
    font-weight: 600;
    color: rgb(255, 255, 2);
}

/* Weekly Forecast */
.weekly-forecast {
    background: transparent;
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.weekly-forecast .section-title {
    color: #2d3748;
    text-shadow: none;
}

.forecast-list {
    display: grid;
    grid-template-columns: 1fr ;
    flex-direction: column;
    gap: 12px;
}

.forecast-item {
    display: grid;
  grid-template-columns: 2fr 2fr 1fr;
    
    align-items: center;
    gap: 20px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    transition: all 0.3s ease;
    
}

.forecast-item:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateX(8px);
}

.day {
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
}

.forecast-weather {
    display: flex;
    align-items: center;
    gap: 12px;
}

.forecast-icon {
    font-size: 28px;
}

.forecast-desc {
    font-size: 16px;
    color: #4a5568;
    font-weight: 500;
}

.forecast-temps {
    display: flex;
    gap: 12px;
    align-items: center;
}

.temp-high {
    font-size: 18px;
    font-weight: 700;
    color: #2d3748;
}

.temp-low {
    font-size: 16px;
    font-weight: 500;
    color: #718096;
}


/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 16px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }
    
    .search-input {
        width: 250px;
    }
    
    .current-weather {
        padding: 24px;
    }
    
    .weather-main {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .temperature-section {
        flex-direction: column;
        gap: 12px;
    }
    
    .temperature {
        font-size: 64px;
    }
    
    .weather-details {
        grid-template-columns: 1fr;
    }
    
    .forecast-item {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 12px;
    }
    
    .forecast-weather {
        justify-content: center;
    }
    
    .info-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 24px;
    }
    
    .city-name {
        font-size: 28px;
    }
    
    .temperature {
        font-size: 56px;
    }
    
    .weather-description .condition {
        font-size: 20px;
    }
    
    .section-title {
        font-size: 20px;
    }
}

/* Animation for page load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.current-weather,
.hourly-forecast,
.weekly-forecast,
.info-card {
    animation: fadeInUp 0.6s ease forwards;
}

.hourly-forecast {
    animation-delay: 0.1s;
}

.weekly-forecast {
    animation-delay: 0.2s;
}

.info-cards .info-card:first-child {
    animation-delay: 0.3s;
}

.info-cards .info-card:last-child {
    animation-delay: 0.4s;
}


  .footer {
    background-color:transparent;
    color: #fff;
    padding: 40px 20px 20px;
    font-family: 'Segoe UI', sans-serif;
    margin-top: 10%;
    border-radius: 20px;
  }

  .footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    max-width: 1200px;
    margin: auto;
    margin-top: 20px;
  }

  .footer-about, .footer-links, .footer-contact {
    flex: 1 1 250px;
  }

  .footer h3 {
    margin-bottom: 15px;
    font-size: 18px;
    color: black;
  }

  .footer p, .footer li, .footer a {
    color:#333;
    font-size: 14px;
    line-height: 1.6;
  }

  .footer a {
    text-decoration: none;
    transition: color 0.3s;
  }

  .footer a:hover {
    color: #fff;
  }

  .footer-links ul {
    list-style: none;
    padding: 0;
  }

  .footer-links li {
    margin-bottom: 8px;
  }

  .footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    font-size: 13px;
    color: #888;
  }

  @media (max-width: 768px) {
    .footer-container {
      flex-direction: column;
      text-align: center;
    }
  }