* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}
body {
    height: 100vh;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #74ebd5, #ACB6E5);
    overflow: hidden;
}
/* Floating weather icons in background */
.float-icon {
    position: absolute;
    width: 80px;
    height: 80px;
    opacity: 0.6;
    animation: floatIcons 20s linear infinite;
}
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #74ebd5, #ACB6E5);
    z-index: -1;
}
.clouds {
    position: absolute;
    top: 20%;
    left: -200px;
    width: 200%;
    height: 200px;
    background: url('https://icon-icons.com/icon/sun-day-weather-symbol/73146') repeat-x;
    background-size: contain;
    animation: moveClouds 60s linear infinite;
    opacity: 0.6;
}
.clouds2 {
    top: 50%;
    animation-duration: 100s;
    opacity: 0.4;
}
@keyframes moveClouds {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
@keyframes floatIcons {
    0% { transform: translateY(0) translateX(0) rotate(0deg); }
    50% { transform: translateY(-40px) translateX(30px) rotate(180deg); }
    100% { transform: translateY(0) translateX(0) rotate(360deg); }
}
.container {
    width: 90%;
    max-width: 500px;
    background: rgba(255, 255, 255, 0.2);
    padding: 20px;
    border-radius: 20px;
    backdrop-filter: blur(15px);
    text-align: center;
    color: #fff;
    position: relative;
    z-index: 10;
}
.app-title {
    font-size: 2rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.4);
}
.search-section input {
    width: 80%;
    padding: 12px;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    margin-bottom: 15px;
    outline: none;
    text-align: center;
}
.btn-group {
    display: flex;
    justify-content: center;
    gap: 15px;
}
.btn-group button {
    padding: 10px 20px;
    font-size: 16px;
    color: #fff;
    background: #007BFF;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn-group button:hover {
    background: #0056b3;
    transform: scale(1.05);
}
.weather-card {
    margin-top: 25px;
    background: rgba(255, 255, 255, 0.15);
    padding: 20px;
    border-radius: 15px;
    animation: fadeIn 1s ease-in-out;
}
.weather-info img {
    width: 120px;
    height: 120px;
    margin: 10px 0;
    transition: transform 0.3s ease;
}
.weather-info img:hover {
    transform: rotate(10deg) scale(1.1);
}
.weather-info h2 {
    font-size: 1.8rem;
}
.weather-info p {
    font-size: 1rem;
    margin-bottom: 10px;
}
.weather-info h3 {
    font-size: 1.5rem;
    margin-top: 10px;
}
@media (max-width: 600px) {
    .container {
        padding: 15px;
    }
    .search-section input {
        width: 100%;
    }
    .btn-group button {
        width: 100%;
        padding: 12px;
    }
    .btn-group {
        flex-direction: column;
    }
}
@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Existing CSS remains same as previous version */
.icon-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}
.icon {
    width: 120px;
    height: 120px;
    margin: 10px 0;
    transition: transform 0.3s ease;
}

/* Animations for different weather types */
.sun-animation {
    animation: spin 10s linear infinite;
}
.cloud-animation {
    animation: float 6s ease-in-out infinite;
}
.rain-animation {
    animation: shake 1s ease-in-out infinite;
}
.snow-animation {
    animation: fall 3s linear infinite;
}

/* Keyframes */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-5px); }
}
@keyframes fall {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(15px); opacity: 0.7; }
}
