/* =================== Global =================== */

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

body {
    font-family: "Poppins", sans-serif;
    background: #08111f;
    color: #fff;
}

a {
    text-decoration: none;
}

/* =================== Navbar =================== */

#nav {
    background: rgba(8, 17, 31, .75);
    backdrop-filter: blur(15px);
}

.navbar-brand h4 {
    margin: 0;
    font-weight: 700;
}

.navbar-brand small {
    color: #9ca3af;
}

.nav-link {
    color: #fff;
    border-radius: 30px;
    padding: 10px 22px !important;
    transition: .3s;
}

.nav-link:hover,
.nav-link.active {
    background: #0ea5e9;
    color: #fff !important;
}

/* =================== Header =================== */

#body {

    min-height: 100vh;

    padding: 80px 0;

    background:
        linear-gradient(rgba(0, 0, 0, .45), rgba(0, 0, 0, .45)),
        url("../images/pexels-photo-1118873.jpg");

    background-size: cover;
    background-position: center;
}

/* =================== Search =================== */

.search-box {

    position: relative;

}

.search-box input {

    height: 65px;

    border-radius: 50px;

    border: none;

    background: rgba(255, 255, 255, .12);

    backdrop-filter: blur(10px);

    color: #fff;

    padding-left: 25px;
    padding-right: 150px;
}

.search-box input::placeholder {

    color: #d1d5db;

}

.search-box input:focus {

    background: rgba(255, 255, 255, .15);

    color: #fff;

    box-shadow: 0 0 0 .2rem rgba(14, 165, 233, .25);

}

.search-box button {

    position: absolute;

    right: 7px;

    top: 50%;

    transform: translateY(-50%);

    height: 52px;

    padding: 0 30px;

    border: none;

    border-radius: 40px;

    background: #0ea5e9;

    color: #fff;

    font-weight: 600;

    transition: .3s;
}

.search-box button:hover {

    background: #0284c7;

    transform: translateY(-50%) scale(1.05);

}

/* =================== Cards =================== */

.weather-card {

    background: rgba(255, 255, 255, .10);

    backdrop-filter: blur(18px);

    border: 1px solid rgba(255, 255, 255, .12);

    border-radius: 25px;

    overflow: hidden;

    transition: .35s;
}

.weather-card:hover {

    transform: translateY(-10px);

    box-shadow: 0 20px 40px rgba(0, 0, 0, .35);

}

.card-header {

    background: rgba(255, 255, 255, .06);

    padding: 18px 25px;

    border: none;

    color: #d1d5db;

    font-weight: 600;
}

.card-body {

    padding: 35px;

}

/* =================== Today =================== */

#cityName {

    font-size: 30px;

    font-weight: 700;

}

#temp {

    font-size: 80px;

    font-weight: 700;

    margin-bottom: 0;
}

#condition {

    color: #38bdf8;

    font-size: 20px;

    font-weight: 600;

}

#icon {

    width: 120px;

    filter: drop-shadow(0 10px 20px rgba(255, 255, 255, .25));

}

#icon2,
#icon3 {

    width: 80px;

    margin: 20px auto;
}

/* =================== Details =================== */

.weather-details {

    display: flex;

    gap: 15px;

    margin-top: 25px;
}

.detail-box {

    flex: 1;

    background: rgba(255, 255, 255, .08);

    border-radius: 18px;

    padding: 18px;

    text-align: center;
}

.detail-box i {

    display: block;

    font-size: 22px;

    color: #38bdf8;

    margin-bottom: 10px;
}

.detail-box span {

    font-size: 15px;

    font-weight: 600;
}

/* =================== Forecast =================== */

.forecast-card {

    text-align: center;
}

.forecast-card h2 {

    font-size: 42px;

    margin-top: 10px;

    font-weight: 700;
}

.forecast-card h5 {

    color: #cbd5e1;

    margin-top: 10px;
}

#text2,
#text3 {

    color: #38bdf8;

    margin-top: 20px;

    font-size: 18px;

    font-weight: 600;
}

/* =================== Footer =================== */

footer {

    background: #08111f;

    padding: 70px 0;
}

footer input {

    height: 60px;

    border-radius: 40px;

    background: #162033;

    color: #fff;

    border: none;
}

footer input::placeholder {

    color: #9ca3af;
}

.social-icon {

    width: 50px;

    height: 50px;

    border-radius: 50%;

    display: inline-flex;

    justify-content: center;

    align-items: center;

    background: #162033;

    color: #38bdf8;

    margin-left: 10px;

    cursor: pointer;

    transition: .3s;
}

.social-icon:hover {

    background: #0ea5e9;

    color: #fff;

    transform: translateY(-5px);
}

footer p {

    color: #94a3b8;
}

/* =================== Responsive =================== */

@media(max-width:992px) {

    #temp {

        font-size: 60px;

    }

    .weather-card {

        margin-bottom: 20px;

    }

}

@media(max-width:768px) {

    .search-box button {

        position: static;

        transform: none;

        width: 100%;

        margin-top: 15px;

    }

    .search-box input {

        padding-right: 20px;

    }

    .weather-details {

        flex-direction: column;

    }

    #temp {

        font-size: 55px;

    }

    #icon {

        width: 90px;

    }

}