*{
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    box-sizing: border-box;
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><circle cx="16" cy="16" r="8" fill="%23f5576c"/><circle cx="16" cy="16" r="6" fill="%23f093fb" opacity="0.6"/></svg>') 16 16, auto;
}

body{
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    min-height: 100vh;
    transition: background 1.5s cubic-bezier(0.23, 1, 0.320, 1);
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.05;
}

/* Professional Animated Backgrounds - Subtle */
body.sunny {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
}

body.sunny::before {
    background: radial-gradient(circle at 85% 15%, rgba(33, 150, 243, 0.1) 0%, transparent 30%);
    animation: sunMove 12s ease-in-out infinite;
}

@keyframes sunMove {
    0%, 100% { transform: translateX(0) translateY(0); }
    50% { transform: translateX(20px) translateY(15px); }
}

/* Rainy Weather - Professional Gray */
body.rain {
    background: linear-gradient(135deg, #eceff1 0%, #cfd8dc 100%);
}

body.rain::before {
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 2px,
        rgba(100, 150, 200, 0.3) 2px,
        rgba(100, 150, 200, 0.3) 4px
    );
    animation: rainFall 0.5s linear infinite;
}

@keyframes rainFall {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

/* Cloudy Weather - Drifting Clouds */
body.clouds {
    background: linear-gradient(180deg, #e0e0e0 0%, #bdc3c7 100%);
}

body.clouds::before {
    background: 
        radial-gradient(circle at 20% 30%, rgba(230, 245, 250, 0.6) 0%, transparent 20%),
        radial-gradient(circle at 60% 50%, rgba(230, 245, 250, 0.5) 0%, transparent 25%),
        radial-gradient(circle at 80% 20%, rgba(230, 245, 250, 0.55) 0%, transparent 22%);
    animation: cloudDrift 15s ease-in-out infinite;
}

@keyframes cloudDrift {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(50px); }
}

/* Snowy Weather - Falling Snow */
body.snow {
    background: linear-gradient(180deg, #f0f8ff 0%, #e8f4f8 100%);
}

body.snow::before {
    background: 
        radial-gradient(circle at 10% 20%, rgba(230, 245, 250, 0.8) 1px, transparent 1px),
        radial-gradient(circle at 80% 80%, rgba(230, 245, 250, 0.8) 1.5px, transparent 1.5px),
        radial-gradient(circle at 50% 50%, rgba(230, 245, 250, 0.8) 1px, transparent 1px),
        radial-gradient(circle at 90% 10%, rgba(230, 245, 250, 0.8) 1.2px, transparent 1.2px);
    background-size: 200px 200px;
    animation: snowFall 4s linear infinite;
}

@keyframes snowFall {
    0% { transform: translateY(-200px); }
    100% { transform: translateY(100vh); }
}

/* Misty/Hazy - Floating Mist */
body.mist {
    background: linear-gradient(180deg, #b0e0e6 0%, #a8d8ea 100%);
}

body.mist::before {
    background: 
        radial-gradient(ellipse at 0% 0%, rgba(200, 230, 255, 0.4) 0%, transparent 50%),
        radial-gradient(ellipse at 100% 100%, rgba(200, 230, 255, 0.4) 0%, transparent 50%);
    animation: mistWave 8s ease-in-out infinite;
}

@keyframes mistWave {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.1); }
}

/* Drizzle Weather - Light Rain Particles */
body.drizzle {
    background: linear-gradient(180deg, #6c5ce7 0%, #a29bfe 100%);
}

body.drizzle::before {
    background: 
        radial-gradient(circle at 10% 20%, rgba(200, 200, 255, 0.6) 2px, transparent 2px),
        radial-gradient(circle at 80% 80%, rgba(200, 200, 255, 0.6) 1.5px, transparent 1.5px),
        radial-gradient(circle at 50% 50%, rgba(200, 200, 255, 0.6) 2px, transparent 2px);
    background-size: 300px 300px;
    animation: drizzleFall 2s linear infinite;
}

@keyframes drizzleFall {
    0% { transform: translateY(-100px); }
    100% { transform: translateY(100vh); }
}

/* Thunderstorm - Lightning Flash */
body.thunder {
    background: linear-gradient(180deg, #0a0a0a 0%, #1a1a2e 100%);
}

body.thunder::before {
    background: linear-gradient(90deg, transparent 0%, rgba(100, 150, 255, 0.3) 50%, transparent 100%);
    animation: lightning 4s ease-in-out infinite;
}

@keyframes lightning {
    0%, 10%, 15%, 100% { opacity: 0; }
    12%, 13% { opacity: 0.8; }
    14% { opacity: 0.2; }
}

.card{
    width: 95%;
    max-width: 600px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    margin: 20px auto;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.4), 0 4px 16px rgba(118, 75, 162, 0.3);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    position: relative;
    z-index: 10;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
    .card {
        margin: 15px auto;
        padding: 25px 15px;
        width: 90%;
    }
}

@media (max-width: 480px) {
    .card {
        margin: 10px auto;
        padding: 20px 15px;
        width: 95%;
        border-radius: 10px;
    }
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12), 0 8px 24px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.search{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

@media (max-width: 480px) {
    .search {
        gap: 5px;
    }
}

.search input{
    border: 2px solid rgba(255, 255, 255, 0.3);
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    padding: 12px 18px;
    height: 48px;
    border-radius: 8px;
    flex: 1;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: none;
    font-weight: 500;
    min-width: 150px;
    backdrop-filter: blur(10px);
}

@media (max-width: 480px) {
    .search input {
        height: 44px;
        padding: 10px 14px;
        font-size: 13px;
        min-width: 120px;
    }
}

.search input:focus {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
    transform: none;
}

.search input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search button {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(245, 87, 108, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .search button {
        width: 50px;
        height: 50px;
    }
}

.search button:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 12px 32px rgba(0, 254, 186, 0.3);
}

.search button:active {
    transform: scale(0.95);
}

.search button img{
    width: 16px;
    transition: transform 0.3s ease;
}

.search button:hover img {
    transform: scale(1.2);
}

.search {
    position: relative;
}

.error {
    color: #ffeb3b;
    font-size: 16px;
    margin-top: 15px;
    display: none;
    font-weight: 500;
    animation: slideDown 0.4s ease;
    text-shadow: 0 2px 8px rgba(255, 235, 59, 0.5);
}

.error.show {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    width: calc(100% - 76px);
    background: rgba(102, 126, 234, 0.95);
    color: #ffffff;
    list-style: none;
    margin: 5px 0 0 0;
    border-radius: 12px;
    max-height: 200px;
    overflow-y: auto;
    display: none;
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.4);
    animation: popIn 0.3s cubic-bezier(0.23, 1, 0.320, 1);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

@media (max-width: 480px) {
    .suggestions {
        width: calc(100% - 60px);
        max-height: 150px;
    }
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.suggestions.active {
    display: block;
}

.suggestions li {
    padding: 12px 20px;
    cursor: pointer;
    font-size: 14px;
    border-bottom: 1px solid #ddd;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.suggestions li span:first-child {
    flex: 1;
}

.suggestion-type {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin-left: 8px;
}

.suggestions li:last-child {
    border-bottom: none;
}

.suggestions li:hover {
    background: linear-gradient(90deg, rgba(240, 147, 251, 0.3), rgba(245, 87, 108, 0.3));
    transform: translateX(5px);
    padding-left: 25px;
}

.weather-icon{
    width: 170px;
    height: 170px;
    margin-top: 30px;
    animation: float 3s ease-in-out infinite;
    object-fit: contain;
    display: block;
}

@media (max-width: 768px) {
    .weather-icon {
        width: 130px;
        height: 130px;
        margin-top: 20px;
    }
}

@media (max-width: 480px) {
    .weather-icon {
        width: 100px;
        height: 100px;
        margin-top: 15px;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.weather h1{
    font-size: 80px;
    font-weight: 500;
    animation: slideInDown 0.6s ease;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin: 0;
    color: #ffeb3b;
}

@media (max-width: 768px) {
    .weather h1 {
        font-size: 60px;
    }
}

@media (max-width: 480px) {
    .weather h1 {
        font-size: 45px;
    }
}

.weather h2{
    font-size: 45px;
    font-weight: 400;
    margin-top: -10px;
    animation: slideInUp 0.6s ease 0.1s both;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: #ffffff;
}

@media (max-width: 768px) {
    .weather h2 {
        font-size: 35px;
    }
}

@media (max-width: 480px) {
    .weather h2 {
        font-size: 28px;
        margin-top: -5px;
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.details{
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 20px;
    margin-top: 50px;
    gap: 20px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .details {
        padding: 0 10px;
        margin-top: 35px;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .details {
        padding: 0;
        margin-top: 25px;
        gap: 10px;
    }
}

.col{
    display: flex;
    align-items: center;
    text-align: left;
    transition: all 0.3s ease;
    padding: 15px;
    border-radius: 12px;
    animation: fadeInUp 0.6s ease 0.2s both;
    flex: 1;
    min-width: 150px;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

@media (max-width: 768px) {
    .col {
        min-width: 130px;
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .col {
        min-width: 120px;
        padding: 10px;
        flex: 1 1 45%;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.col:hover {
    background: rgba(240, 147, 251, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(240, 147, 251, 0.3);
}

.col img{
    width: 40px;
    margin-right: 10px;
    transition: transform 0.3s ease;
}

@media (max-width: 480px) {
    .col img {
        width: 32px;
        margin-right: 8px;
    }
}

.col:hover img {
    transform: scale(1.2) rotate(10deg);
}

.humidity, .wind{
    font-size: 28px;
    margin-top: -6px;
    font-weight: 600;
    color: #ffeb3b;
}

@media (max-width: 768px) {
    .humidity, .wind {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .humidity, .wind {
        font-size: 20px;
    }
}

.weather{
    display: none !important;
}

.weather.active {
    display: block !important;
}

.forecast {
    display: none;
    background: rgba(255, 255, 255, 0.1);
    margin-top: 20px;
    padding: 25px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.6s ease 0.3s both;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.forecast.active {
    display: block;
}

.forecast h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .forecast h3 {
        font-size: 18px;
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    .forecast h3 {
        font-size: 16px;
    }
}

.forecast-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 15px;
}

@media (max-width: 768px) {
    .forecast-container {
        grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .forecast-container {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
        gap: 10px;
    }
}

.forecast-item {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3), rgba(118, 75, 162, 0.3));
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.forecast-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.5);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.5), rgba(118, 75, 162, 0.5));
}

.forecast-item img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin-bottom: 8px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 480px) {
    .forecast-item img {
        width: 40px;
        height: 40px;
    }
}

.forecast-item .day {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 5px;
}

@media (max-width: 480px) {
    .forecast-item .day {
        font-size: 12px;
    }
}

.forecast-item .temp {
    font-size: 16px;
    font-weight: 700;
    color: #ffeb3b;
    margin-bottom: 3px;
}

@media (max-width: 480px) {
    .forecast-item .temp {
        font-size: 14px;
    }
}

.forecast-item .condition {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
    text-transform: capitalize;
}

@media (max-width: 480px) {
    .forecast-item .condition {
        font-size: 10px;
    }
}