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

body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #00B4DB, #0083B0, #1e90ff);
    background-size: 200% 200%;
    animation: gradient 15s ease infinite;
    padding: 20px;
}

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

.container {
    position: relative;
    width: 100%;
    max-width: 400px;
    min-height: 105px;
    background: rgba(255, 255, 255, 0.15);
    padding: 28px 32px;
    overflow: hidden;
    border-radius: 30px;
    font-family: 'Poppins', sans-serif;
    transition: 0.6s ease-out;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.search-box {
    width: 100%;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    padding: 0 20px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(4px);
}

.search-box input {
    color: #fff;
    width: 80%;
    font-size: 20px;
    font-weight: 500;
    background: transparent;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.search-box input::placeholder {
    font-size: 18px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
}

.search-box button {
    cursor: pointer;
    width: 45px;
    height: 45px;
    color: #fff;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    font-size: 22px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.search-box button:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.search-box img {
    width: 25px;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
}

.search-box button:hover img {
    transform: scale(1.1);
}

.weather-box {
    text-align: center;
}

.weather-box .box {
    padding: 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(8px);
    transform: translateY(0);
    transition: all 0.3s ease;
}

.weather-box .box:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.weather-box img {
    width: 120px;
    margin: 20px 0;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
}

.weather-box img:hover {
    transform: scale(1.1);
}

.weather-box .temperature {
    position: relative;
    color: #fff;
    font-size: 4em;
    font-weight: 700;
    margin-top: 10px;
    text-shadow: 2px 4px 10px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #fff 0%, #f0f0f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.weather-box .temperature span {
    position: absolute;
    font-size: 0.5em;
    margin-left: 5px;
}

.weather-box .description {
    color: #fff;
    font-size: 22px;
    font-weight: 500;
    text-transform: capitalize;
    margin-top: 10px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.weather-details {
    width: 100%;
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    gap: 15px;
}

.weather-details .humidity,
.weather-details .wind {
    display: flex;
    align-items: center;
    width: 50%;
    min-height: 100px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.weather-details .humidity:hover,
.weather-details .wind:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.weather-details img {
    width: 30px;
    margin-right: 10px;
    filter: brightness(0) invert(1) drop-shadow(0 2px 5px rgba(0, 0, 0, 0.2));
}

.weather-details .text {
    color: #fff;
    width: calc(100% - 40px);
}

.weather-details span {
    font-size: 18px;
    font-weight: 600;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, #fff 0%, #f0f0f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.weather-details p {
    font-size: 14px;
    font-weight: 500;
    margin-top: 5px;
    color: rgba(255, 255, 255, 0.9);
}

.fadeIn {
    animation: fadeIn 0.5s ease forwards;
}

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