/* ==========================================
   PREMIUM WEATHER DASHBOARD
   STYLE.CSS
   Roshni Code Charm
========================================== */

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

html {
    scroll-behavior: smooth;
}

body {

    min-height: 100vh;

    background: linear-gradient(135deg,
            #4f46e5,
            #6d28d9,
            #3b82f6);

    overflow-x: hidden;

    color: #fff;

}

/* =========================
      Animated Background
========================= */

.bg-circle {

    position: fixed;

    border-radius: 50%;

    filter: blur(120px);

    z-index: -1;

}

.circle1 {

    width: 350px;
    height: 350px;

    background: #7c3aed;

    top: -100px;
    left: -120px;

}

.circle2 {

    width: 300px;
    height: 300px;

    background: #06b6d4;

    right: -80px;
    top: 150px;

}

.circle3 {

    width: 400px;
    height: 400px;

    background: #2563eb;

    bottom: -150px;
    left: 40%;

}

/* =========================
      Container
========================= */

.container {

    width: 92%;

    max-width: 1400px;

    margin: auto;

}

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

header {

    display: flex;

    justify-content: space-between;

    align-items: center;

    padding: 30px 0;

}

.logo {

    font-size: 28px;

    font-weight: 700;

}

nav {

    display: flex;

    gap: 35px;

}

nav a {

    color: white;

    text-decoration: none;

    font-weight: 500;

    transition: .3s;

}

nav a:hover {

    color: #FFD166;

}

/* =========================
      Hero
========================= */

.hero {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 40px;

    align-items: center;

    margin-top: 40px;

}

.hero h1 {

    font-size: 55px;

    margin-bottom: 20px;

    line-height: 1.2;

}

.hero p {

    font-size: 18px;

    opacity: .9;

    margin-bottom: 30px;

}

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

.search-box {

    display: flex;

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

    backdrop-filter: blur(20px);

    border-radius: 60px;

    overflow: hidden;

    box-shadow: 0 20px 50px rgba(0, 0, 0, .2);

}

.search-box input {

    flex: 1;

    padding: 18px 22px;

    border: none;

    outline: none;

    background: transparent;

    color: white;

    font-size: 17px;

}

.search-box input::placeholder {

    color: #ddd;

}

.search-box button {

    width: 75px;

    border: none;

    cursor: pointer;

    color: white;

    background: #7c3aed;

    font-size: 22px;

    transition: .3s;

}

.search-box button:hover {

    background: #5b21b6;

}

/* =========================
      Loading
========================= */

#loading {

    display: none;

    margin-top: 20px;

    color: #FFD166;

    font-weight: 600;

}

#error {

    margin-top: 20px;

    color: #ffb4b4;

    font-weight: 600;

}

/* =========================
      Hero Right
========================= */

.hero-right {

    display: flex;

    justify-content: center;

}

.hero-right img {

    width: 270px;

    animation: float 3s infinite ease-in-out;

}

@keyframes float {

    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0);
    }

}

/* =========================
      Weather Card
========================= */

.weather-card {

    margin-top: 50px;

    padding: 35px;

    border-radius: 25px;

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

    backdrop-filter: blur(20px);

    text-align: center;

    box-shadow: 0 15px 40px rgba(0, 0, 0, .2);

}

.weather-card h2 {

    font-size: 30px;

}

.weather-card h1 {

    font-size: 70px;

    margin: 15px 0;

}

.weather-card p {

    font-size: 22px;

    text-transform: capitalize;

}

/* =========================
      Section Title
========================= */

section h2 {

    font-size: 32px;

    margin-bottom: 30px;

}

/* ==========================================
        TODAY'S HIGHLIGHTS
========================================== */

.highlights {

    margin-top: 70px;

}

.highlight-grid {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));

    gap: 25px;

}

.card {

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

    backdrop-filter: blur(20px);

    border-radius: 25px;

    padding: 30px;

    text-align: center;

    transition: .35s;

    box-shadow: 0 15px 40px rgba(0, 0, 0, .18);

}

.card:hover {

    transform: translateY(-10px);

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

}

.card i {

    font-size: 42px;

    color: #FFD166;

    margin-bottom: 15px;

}

.card h3 {

    margin-bottom: 12px;

    font-size: 20px;

}

.card h2 {

    font-size: 32px;

}

/* ==========================================
          FORECAST
========================================== */

.forecast-section {

    margin-top: 70px;

}

.forecast-grid {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));

    gap: 20px;

}

.forecast-card {

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

    backdrop-filter: blur(20px);

    border-radius: 25px;

    padding: 25px;

    text-align: center;

    transition: .35s;

}

.forecast-card:hover {

    transform: translateY(-10px);

}

.forecast-card img {

    width: 90px;

    height: 90px;

}

.forecast-card h3 {

    margin-bottom: 10px;

}

.forecast-card h2 {

    margin: 12px 0;

}

.forecast-card p {

    text-transform: capitalize;

}

/* ==========================================
        EXTRA INFO
========================================== */

.extra-weather {

    margin-top: 70px;

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));

    gap: 25px;

}

.extra-card {

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

    backdrop-filter: blur(20px);

    border-radius: 25px;

    padding: 30px;

    text-align: center;

}

.extra-card i {

    font-size: 42px;

    color: #FFD166;

    margin-bottom: 15px;

}

.extra-card button {

    margin-top: 20px;

    padding: 14px 25px;

    border: none;

    border-radius: 40px;

    background: #7C3AED;

    color: white;

    cursor: pointer;

    font-size: 16px;

    transition: .3s;

}

.extra-card button:hover {

    background: #5B21B6;

}

/* ==========================================
        ABOUT
========================================== */

.about-section {

    margin-top: 80px;

}

.about-card {

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

    backdrop-filter: blur(20px);

    border-radius: 30px;

    padding: 45px;

    text-align: center;

}

.about-card p {

    margin: 20px 0;

    line-height: 1.8;

}

.tech-stack {

    display: flex;

    justify-content: center;

    flex-wrap: wrap;

    gap: 15px;

    margin-top: 25px;

}

.tech-stack span {

    padding: 10px 18px;

    border-radius: 40px;

    background: #7C3AED;

}

/* ==========================================
          FOOTER
========================================== */

footer {

    margin-top: 80px;

    padding: 40px 0;

    text-align: center;

}

.social-icons {

    display: flex;

    justify-content: center;

    gap: 18px;

    margin: 25px 0;

}

.social-icons a {

    width: 50px;

    height: 50px;

    border-radius: 50%;

    display: flex;

    justify-content: center;

    align-items: center;

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

    color: white;

    text-decoration: none;

    transition: .3s;

}

.social-icons a:hover {

    background: #FFD166;

    color: #111;

    transform: translateY(-5px);

}

.copyright {

    margin-top: 20px;

    color: #ddd;

}

/* ==========================================
        RESPONSIVE
========================================== */

@media(max-width:992px) {

    .hero {

        grid-template-columns: 1fr;

        text-align: center;

    }

    header {

        flex-direction: column;

        gap: 20px;

    }

}

@media(max-width:768px) {

    .hero h1 {

        font-size: 40px;

    }

    .weather-card h1 {

        font-size: 55px;

    }

    .search-box {

        flex-direction: column;

        border-radius: 25px;

    }

    .search-box button {

        width: 100%;

        padding: 18px;

    }

    nav {

        flex-wrap: wrap;

        justify-content: center;

    }

}

@media(max-width:500px) {

    .hero h1 {

        font-size: 32px;

    }

    .weather-card h1 {

        font-size: 45px;

    }

    .card {

        padding: 22px;

    }

    .about-card {

        padding: 30px 20px;

    }

}