* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    position: relative;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow: hidden;
    color: #fff;

    background:
        linear-gradient(135deg,
            #0f0c29 0%,
            #302b63 45%,
            #24243e 100%);

    position: relative;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: .55;
    z-index: -1;
}

.blob-1 {
    width: 350px;
    height: 350px;
    background: #ff00cc;
    top: -120px;
    left: -120px;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: #00dbde;
    bottom: -150px;
    right: -150px;
}

.blob-3 {
    width: 280px;
    height: 280px;
    background: #8b5cf6;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.container {
    width: 100%;
    max-width: 520px;
}

.weather-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(35px);
    -webkit-backdrop-filter: blur(35px);

    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 35px;
    padding: 30px;

    box-shadow:
        0 15px 50px rgba(0, 0, 0, .25),
        inset 0 1px 0 rgba(255, 255, 255, .1);

    transition: .4s ease;
}

.weather-card:hover {
    transform: translateY(-3px);
}

.title {
    text-align: center;
    margin-bottom: 25px;
}

.title h1 {
    font-size: 2rem;
    font-weight: 800;

    background:
        linear-gradient(135deg,
            #ffffff,
            #d8b4fe);

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.title p {
    color: #d1d5db;
    margin-top: 5px;
}

.search-box {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 10px;
}

.search-box input {
    width: 80%;
    flex: 1;
    padding: 20px;
    border: none;
    outline: none;
    color: white;
    background: rgba(255, 255, 255, .08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 18px;
}

.search-box input::placeholder {
    color: #d1d5db;
}

.search-box button {
    width: 80%;
    padding: 5px 10px;
    border: none;
    cursor: pointer;
    padding: 16px 22px;
    border-radius: 18px;
    color: white;
    font-weight: 600;

    background:
        linear-gradient(135deg,
            #8b5cf6,
            #ec4899);

    transition: .3s;
}

.search-box button:hover {
    transform: translateY(-2px);
    box-shadow:
        0 10px 25px rgba(236, 72, 153, .35);
}

.loading {
    text-align: center;
    margin-top: 20px;
    color: #d1d5db;
    display: none;
}

.error {
    text-align: center;
    margin-top: 20px;
    color: #ff8a8a;
    display: none;
}

.weather {
    display: none;
    text-align: center;
    margin-top: 25px;
    animation: fadeIn .6s ease;
}

.weather img {
    width: 130px;
}

.temperature {
    font-size: 5rem;
    font-weight: 800;

    background:
        linear-gradient(135deg,
            #ffffff,
            #d8b4fe);

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.city {
    font-size: 1.6rem;
    font-weight: 700;
    margin-top: 10px;
}

.condition {
    margin-top: 8px;
    color: #d1d5db;
}

.local-time {
    margin-top: 6px;
    color: #94a3b8;
    font-size: .9rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media(max-width:520px) {
    .weather-card {
        padding: 22px;
    }

    .temperature {
        font-size: 4rem;
    }

    .city {
        font-size: 1.4rem;
    }

    .search-box button {
        padding: 16px;
    }
}
