/* ===========================================================
   WeatherSphere Pro 4.0
   Premium Responsive Weather Dashboard
   Author : Aditi Singh
=========================================================== */

/* ===========================================================
   GOOGLE FONT
=========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* ===========================================================
   CSS VARIABLES
=========================================================== */

:root{

    --bg:#050816;
    --bg-secondary:#0d1324;

    --card:rgba(255,255,255,.06);

    --card-hover:rgba(255,255,255,.12);

    --border:rgba(255,255,255,.08);

    --text:#ffffff;

    --text-light:#d4d4d4;

    --text-muted:#8e97ab;

    --primary:#60a5fa;

    --secondary:#8b5cf6;

    --success:#10b981;

    --warning:#facc15;

    --danger:#ef4444;

    --radius:22px;

    --shadow:0 20px 60px rgba(0,0,0,.45);

    --transition:.35s ease;

}

/* ===========================================================
   RESET
=========================================================== */

*{

    margin:0;

    padding:0;

    box-sizing:border-box;

}

html{

    scroll-behavior:smooth;

}

body{

    font-family:'Poppins',sans-serif;

    background:var(--bg);

    color:var(--text);

    overflow-x:hidden;

    line-height:1.6;

    min-height:100vh;

}

/* ===========================================================
   SCROLLBAR
=========================================================== */

::-webkit-scrollbar{

    width:10px;

}

::-webkit-scrollbar-track{

    background:#08111f;

}

::-webkit-scrollbar-thumb{

    background:#2e3d56;

    border-radius:100px;

}

::-webkit-scrollbar-thumb:hover{

    background:#4f6a8d;

}

/* ===========================================================
   LINKS
=========================================================== */

a{

    text-decoration:none;

    color:inherit;

}

button{

    cursor:pointer;

    border:none;

    outline:none;

    font-family:inherit;

}

input{

    font-family:inherit;

}

/* ===========================================================
   LOADER
=========================================================== */

#loader{

    position:fixed;

    inset:0;

    background:#050816;

    display:flex;

    justify-content:center;

    align-items:center;

    z-index:99999;

    transition:.5s;

}

.loader-wrapper{

    text-align:center;

}

.loader-globe{

    width:90px;

    height:90px;

    border-radius:50%;

    border:6px solid rgba(255,255,255,.08);

    border-top:6px solid var(--primary);

    animation:spin 1s linear infinite;

    margin:auto;

}

.loader-wrapper h1{

    margin-top:25px;

    font-size:2rem;

    letter-spacing:2px;

}

.loader-wrapper p{

    margin-top:10px;

    color:var(--text-muted);

}

/* ===========================================================
   WEATHER BACKGROUND
=========================================================== */

#weather-background{

    position:fixed;

    inset:0;

    z-index:-2;

    overflow:hidden;

    background:
    radial-gradient(circle at top,#14213d,#050816 70%);

}

.gradient-overlay{

    position:absolute;

    inset:0;

    background:
    linear-gradient(
    rgba(5,8,22,.2),
    rgba(5,8,22,.8));

}

/* ===========================================================
   STARS
=========================================================== */

.stars{

    position:absolute;

    inset:0;

    background-image:
    radial-gradient(white 1px,transparent 1px);

    background-size:50px 50px;

    opacity:.25;

    animation:starsMove 120s linear infinite;

}

/* ===========================================================
   CLOUDS
=========================================================== */

.clouds{

    position:absolute;

    width:200%;

    height:100%;

    background:
    url("https://www.transparenttextures.com/patterns/cloudy-day.png");

    opacity:.08;

    animation:cloudMove 80s linear infinite;

}

/* ===========================================================
   RAIN
=========================================================== */

.rain{

    position:absolute;

    inset:0;

    opacity:0;

    pointer-events:none;

}

.rain.active{

    opacity:1;

}

.rain::before{

    content:"";

    position:absolute;

    width:100%;

    height:100%;

    background-image:
    linear-gradient(transparent 50%,rgba(255,255,255,.3) 50%);

    background-size:2px 18px;

    animation:rainFall .35s linear infinite;

}

/* ===========================================================
   GLASS CARD
=========================================================== */

.glass-card{

    background:var(--card);

    backdrop-filter:blur(18px);

    border:1px solid var(--border);

    border-radius:var(--radius);

    padding:25px;

    box-shadow:var(--shadow);

    transition:var(--transition);

}

.glass-card:hover{

    background:var(--card-hover);

    transform:translateY(-6px);

}

/* ===========================================================
   NAVBAR
=========================================================== */

.navbar{

    position:sticky;

    top:0;

    z-index:1000;

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:18px 6%;

    background:rgba(5,8,22,.75);

    backdrop-filter:blur(25px);

    border-bottom:1px solid rgba(255,255,255,.05);

}

.logo{

    display:flex;

    align-items:center;

    gap:12px;

    font-size:1.5rem;

    font-weight:700;

}

.logo i{

    font-size:2rem;

    color:var(--primary);

}

nav ul{

    display:flex;

    list-style:none;

    gap:30px;

}

nav a{

    color:var(--text-light);

    transition:.3s;

}

nav a:hover{

    color:white;

}

.nav-actions{

    display:flex;

    gap:15px;

}

.nav-actions button{

    width:46px;

    height:46px;

    border-radius:50%;

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

    color:white;

    display:grid;

    place-items:center;

    transition:.3s;

}

.nav-actions button:hover{

    background:var(--primary);

}

/* ===========================================================
   HERO
=========================================================== */

.hero{

    min-height:90vh;

    display:grid;

    grid-template-columns:1.2fr .8fr;

    gap:60px;

    align-items:center;

    padding:70px 6%;

}

.badge{

    display:inline-flex;

    padding:8px 18px;

    border-radius:100px;

    background:rgba(96,165,250,.15);

    color:var(--primary);

    margin-bottom:20px;

    font-size:.85rem;

}

.hero h1{

    font-size:4rem;

    line-height:1.2;

    margin-bottom:25px;

}

.hero h1 span{

    color:var(--primary);

}

.hero p{

    max-width:650px;

    color:var(--text-light);

    margin-bottom:35px;

    font-size:1.05rem;

}
/* ===========================================================
   SEARCH SECTION
=========================================================== */

.search-container{

    display:flex;

    gap:15px;

    align-items:center;

    margin-bottom:35px;

    flex-wrap:wrap;

}

.search-box{

    flex:1;

    min-width:280px;

    display:flex;

    align-items:center;

    gap:15px;

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

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

    border-radius:18px;

    padding:16px 20px;

    transition:.3s;

}

.search-box:hover{

    border-color:var(--primary);

}

.search-box:focus-within{

    border-color:var(--primary);

    box-shadow:0 0 20px rgba(96,165,250,.18);

}

.search-box input{

    flex:1;

    border:none;

    outline:none;

    background:transparent;

    color:white;

    font-size:1rem;

}

.search-box input::placeholder{

    color:#9aa6bf;

}

/* ===========================================================
   BUTTONS
=========================================================== */

.primary-btn{

    background:linear-gradient(135deg,#3b82f6,#2563eb);

    color:white;

    padding:15px 26px;

    border-radius:16px;

    font-weight:600;

    transition:.35s;

}

.primary-btn:hover{

    transform:translateY(-3px);

    box-shadow:0 15px 35px rgba(59,130,246,.35);

}

.secondary-btn{

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

    color:white;

    padding:15px 24px;

    border-radius:16px;

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

    transition:.35s;

}

.secondary-btn:hover{

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

}

.hero-buttons{

    display:flex;

    gap:18px;

    flex-wrap:wrap;

    margin-top:15px;

}

.primary-btn,
.secondary-btn{

    display:flex;

    align-items:center;

    gap:10px;

}

/* ===========================================================
   HERO WEATHER CARD
=========================================================== */

.hero-weather-card{

    padding:35px;

    text-align:center;

}

.weather-icon{

    font-size:5rem;

    margin-bottom:15px;

}

.hero-weather-card h2{

    font-size:4rem;

    font-weight:700;

}

.hero-weather-card h3{

    margin-top:8px;

    font-size:1.6rem;

}

.hero-weather-card p{

    color:var(--text-light);

    margin-top:10px;

}

.mini-stats{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:18px;

    margin-top:35px;

}

.mini-stats div{

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

    border-radius:18px;

    padding:18px;

}

.mini-stats span{

    font-size:.8rem;

    color:var(--text-muted);

}

.mini-stats h4{

    margin-top:10px;

    font-size:1.3rem;

}

/* ===========================================================
   LIVE TIME
=========================================================== */

.live-time{

    padding:0 6% 60px;

}

.live-time .glass-card{

    text-align:center;

}

.live-time h1{

    font-size:3rem;

    margin:12px 0;

}

.live-time p{

    color:var(--text-light);

}

/* ===========================================================
   DASHBOARD
=========================================================== */

.dashboard{

    padding:0 6% 80px;

}

.dashboard-grid{

    display:grid;

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

    gap:25px;

}

/* ===========================================================
   CARD HEADER
=========================================================== */

.card-header{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:20px;

}

.card-header h2{

    font-size:1.25rem;

}

.card-header span{

    color:var(--text-muted);

    font-size:.85rem;

}

/* ===========================================================
   CURRENT WEATHER CARD
=========================================================== */

.current-weather{

    grid-column:span 2;

}

.current-main{

    display:flex;

    justify-content:space-between;

    align-items:center;

    gap:35px;

    flex-wrap:wrap;

}

.weather-display{

    display:flex;

    align-items:center;

    gap:25px;

}

.weather-emoji{

    font-size:6rem;

}

.weather-display h1{

    font-size:4rem;

}

.weather-display h3{

    margin:10px 0;

}

.weather-display p{

    color:var(--text-light);

}

.weather-extra{

    display:flex;

    flex-direction:column;

    gap:18px;

}

.metric{

    display:flex;

    gap:15px;

    align-items:center;

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

    border-radius:18px;

    padding:15px 18px;

}

.metric span{

    font-size:2rem;

    color:var(--primary);

}

.metric p{

    font-size:.82rem;

    color:var(--text-muted);

}

.metric h3{

    margin-top:4px;

}

/* ===========================================================
   AQI
=========================================================== */

.aqi-wrapper{

    display:flex;

    flex-direction:column;

    align-items:center;

    justify-content:center;

}

.aqi-wrapper h1{

    font-size:3.5rem;

}

.progress-circle{

    margin-top:25px;

}

.progress-circle svg{

    width:140px;

    height:140px;

    transform:rotate(-90deg);

}

.progress-circle circle{

    fill:none;

    stroke-width:10;

    stroke:#1f2937;

}

#aqiCircle{

    stroke:#22c55e;

    stroke-linecap:round;

    stroke-dasharray:314;

    stroke-dashoffset:314;

}

/* ===========================================================
   UV BAR
=========================================================== */

.progress-bar{

    width:100%;

    height:10px;

    background:#1f2937;

    border-radius:100px;

    overflow:hidden;

    margin-top:20px;

}

#uvBar{

    width:0;

    height:100%;

    background:linear-gradient(
        90deg,
        #22c55e,
        #facc15,
        #ef4444);

}

/* ===========================================================
   SUN GRID
=========================================================== */

.sun-grid{

    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:20px;

    margin-top:15px;

}

.sun-grid div{

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

    border-radius:18px;

    padding:20px;

    text-align:center;

}

.sun-grid span{

    font-size:2rem;

    color:#facc15;

}

/* ===========================================================
   HIGHLIGHTS
=========================================================== */

#highlights{

    margin-top:70px;

}

.section-title{

    margin-bottom:35px;

}

.section-title h2{

    font-size:2rem;

    margin-bottom:10px;

}

.section-title p{

    color:var(--text-light);

}

.highlights-grid{

    display:grid;

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

    gap:22px;

}

.highlight-card{

    text-align:center;

}

.highlight-card span{

    font-size:3rem;

    color:var(--primary);

}

.highlight-card h3{

    margin:20px 0 10px;

}

.highlight-card h2{

    font-size:2rem;

}

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

.hourly-scroll{

    display:flex;

    gap:18px;

    overflow-x:auto;

    padding-bottom:12px;

    scroll-behavior:smooth;

}

.hourly-scroll::-webkit-scrollbar{

    height:8px;

}

.hour-card{

    min-width:130px;

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

    border-radius:18px;

    padding:20px;

    text-align:center;

    transition:.3s;

}

.hour-card:hover{

    transform:translateY(-6px);

}

/* ===========================================================
   7 DAY FORECAST
=========================================================== */

.forecast-grid{

    display:grid;

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

    gap:20px;

}

.forecast-card{

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

    border-radius:20px;

    padding:22px;

    text-align:center;

    transition:.35s;

}

.forecast-card:hover{

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

    transform:translateY(-8px);

}

.forecast-card h3{

    margin-bottom:15px;

}

.forecast-card .emoji{

    font-size:3rem;

    margin:15px 0;

}

.forecast-card h2{

    margin-top:10px;

}
/* ===========================================================
   ANALYTICS
=========================================================== */

.analytics-section{

    margin-top:80px;

}

.analytics-grid{

    display:grid;

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

    gap:25px;

}

.chart-card{

    min-height:420px;

}

.chart-card canvas{

    width:100%!important;

    height:320px!important;

}

/* ===========================================================
   WEATHER MAP
=========================================================== */

#map{

    margin-top:80px;

}

#weatherMap{

    width:100%;

    height:600px;

    border-radius:20px;

    overflow:hidden;

}

/* ===========================================================
   FAVORITES
=========================================================== */

#favorites{

    margin-top:80px;

}

.favorites-toolbar{

    display:flex;

    justify-content:flex-end;

    margin-bottom:25px;

}

.favorites-grid{

    display:grid;

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

    gap:22px;

}

.favorite-card{

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

    border-radius:20px;

    padding:25px;

    transition:.35s;

    cursor:pointer;

}

.favorite-card:hover{

    transform:translateY(-8px);

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

}

.favorite-card h3{

    margin-bottom:12px;

}

.favorite-card p{

    color:var(--text-light);

}

/* ===========================================================
   SEARCH HISTORY
=========================================================== */

#history{

    margin-top:80px;

}

.history-list{

    display:flex;

    flex-wrap:wrap;

    gap:15px;

}

.history-item{

    padding:12px 22px;

    border-radius:50px;

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

    transition:.3s;

    cursor:pointer;

}

.history-item:hover{

    background:var(--primary);

}

/* ===========================================================
   WORLD WEATHER
=========================================================== */

#worldWeather{

    margin-top:80px;

}

.world-grid{

    display:grid;

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

    gap:22px;

}

.world-card{

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

    border-radius:20px;

    padding:24px;

    text-align:center;

    transition:.35s;

}

.world-card:hover{

    transform:translateY(-8px);

}

/* ===========================================================
   WEATHER TIPS
=========================================================== */

#weatherTips{

    margin-top:80px;

}

.tips-grid{

    display:grid;

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

    gap:24px;

}

.tip-card{

    text-align:center;

}

.tip-card span{

    font-size:3rem;

    color:var(--primary);

    margin-bottom:20px;

    display:block;

}

.tip-card p{

    color:var(--text-light);

    margin-top:18px;

}

/* ===========================================================
   WEATHER ALERTS
=========================================================== */

#alerts{

    margin-top:80px;

}

#alertContainer{

    border-left:5px solid var(--warning);

}

.alert-danger{

    border-left-color:var(--danger);

}

.alert-success{

    border-left-color:var(--success);

}

/* ===========================================================
   SETTINGS
=========================================================== */

#settings{

    margin-top:80px;

}

.settings-grid{

    display:grid;

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

    gap:24px;

}

.setting-card{

    display:flex;

    justify-content:space-between;

    align-items:center;

}

.toggle-group{

    display:flex;

    gap:12px;

}

.toggle-group button{

    padding:10px 18px;

    border-radius:10px;

    background:#1f2937;

    color:white;

}

.toggle-group button.active{

    background:var(--primary);

}

.switch{

    position:relative;

    width:60px;

    height:32px;

}

.switch input{

    display:none;

}

.slider{

    position:absolute;

    inset:0;

    border-radius:30px;

    background:#374151;

    cursor:pointer;

}

.slider::before{

    content:"";

    position:absolute;

    width:24px;

    height:24px;

    left:4px;

    top:4px;

    border-radius:50%;

    background:white;

    transition:.35s;

}

.switch input:checked + .slider{

    background:var(--primary);

}

.switch input:checked + .slider::before{

    transform:translateX(28px);

}

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

#about{

    margin-top:90px;

}

.about-card{

    text-align:center;

}

.about-card p{

    max-width:900px;

    margin:25px auto;

    color:var(--text-light);

}

.about-features{

    display:grid;

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

    gap:18px;

    margin-top:35px;

}

.feature{

    display:flex;

    align-items:center;

    gap:12px;

    justify-content:center;

}

.feature span:first-child{

    color:var(--success);

}

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

footer{

    margin-top:100px;

    background:#07111f;

    border-top:1px solid rgba(255,255,255,.06);

}

.footer-container{

    display:grid;

    grid-template-columns:2fr 1fr 1fr;

    gap:40px;

    padding:60px 6%;

}

.footer-links{

    display:flex;

    flex-direction:column;

    gap:15px;

}

.footer-links a{

    color:var(--text-light);

}

.footer-links a:hover{

    color:white;

}

.footer-social{

    display:flex;

    flex-direction:column;

    gap:15px;

}

.footer-social a{

    font-size:1.5rem;

}

.footer-bottom{

    text-align:center;

    padding:20px;

    border-top:1px solid rgba(255,255,255,.05);

    color:var(--text-muted);

}

/* ===========================================================
   FLOATING BUTTONS
=========================================================== */

.floating-btn{

    position:fixed;

    right:25px;

    width:58px;

    height:58px;

    border-radius:50%;

    border:none;

    display:grid;

    place-items:center;

    background:var(--primary);

    color:white;

    box-shadow:0 20px 45px rgba(0,0,0,.4);

    z-index:500;

    transition:.35s;

}

.floating-btn:hover{

    transform:translateY(-6px);

}

#scrollTopBtn{

    bottom:100px;

}

#refreshBtn{

    bottom:30px;

}

.secondary{

    background:var(--secondary);

}

/* ===========================================================
   TOAST
=========================================================== */

.toast{

    position:fixed;

    bottom:35px;

    left:50%;

    transform:translateX(-50%) translateY(120px);

    background:#111827;

    padding:15px 28px;

    border-radius:14px;

    transition:.35s;

    z-index:9999;

}

.toast.show{

    transform:translateX(-50%) translateY(0);

}

/* ===========================================================
   MODAL
=========================================================== */

.modal{

    position:fixed;

    inset:0;

    background:rgba(0,0,0,.7);

    display:none;

    justify-content:center;

    align-items:center;

    z-index:99999;

}

.modal-content{

    width:min(500px,90%);

    background:#0d1324;

    border-radius:22px;

    padding:35px;

    text-align:center;

}

.close-modal{

    float:right;

    font-size:2rem;

    cursor:pointer;

}

/* ===========================================================
   OFFLINE BANNER
=========================================================== */

#offlineBanner{

    position:fixed;

    top:-80px;

    left:50%;

    transform:translateX(-50%);

    background:#ef4444;

    color:white;

    padding:15px 25px;

    border-radius:0 0 14px 14px;

    transition:.35s;

    z-index:99999;

}

#offlineBanner.show{

    top:0;

}

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

@media(max-width:1100px){

.hero{

grid-template-columns:1fr;

text-align:center;

}

.current-weather{

grid-column:auto;

}

.current-main{

justify-content:center;

}

.analytics-grid{

grid-template-columns:1fr;

}

.footer-container{

grid-template-columns:1fr;

text-align:center;

}

}

@media(max-width:768px){

nav{

display:none;

}

.hero h1{

font-size:2.8rem;

}

.dashboard-grid{

grid-template-columns:1fr;

}

.highlights-grid{

grid-template-columns:1fr;

}

.forecast-grid{

grid-template-columns:repeat(2,1fr);

}

.world-grid{

grid-template-columns:repeat(2,1fr);

}

.tips-grid{

grid-template-columns:1fr;

}

.settings-grid{

grid-template-columns:1fr;

}

.about-features{

grid-template-columns:1fr;

}

.mini-stats{

grid-template-columns:1fr;

}

}

@media(max-width:500px){

.hero{

padding:40px 20px;

}

.dashboard{

padding:30px 20px;

}

.live-time{

padding:20px;

}

.hero h1{

font-size:2.2rem;

}

.weather-display{

flex-direction:column;

text-align:center;

}

.forecast-grid{

grid-template-columns:1fr;

}

.world-grid{

grid-template-columns:1fr;

}

#weatherMap{

height:350px;

}

.floating-btn{

width:50px;

height:50px;

}

}
/* ===========================================================
   WeatherSphere Pro 4.0
   style.css — Part 4 (Final)
=========================================================== */

/* ===========================================================
   WEATHER ANIMATIONS
=========================================================== */

.snow.active,
.fog.active,
.lightning.active,
.clouds.active{

    opacity:1;

}

/* Snow */

.snow{

    position:absolute;

    inset:0;

    opacity:0;

    pointer-events:none;

}

.snow::before{

    content:"";

    position:absolute;

    inset:0;

    background-image:
        radial-gradient(circle,#fff 2px,transparent 2px);

    background-size:35px 35px;

    animation:snowFall 18s linear infinite;

    opacity:.45;

}

/* Fog */

.fog{

    position:absolute;

    inset:0;

    opacity:0;

    background:
    linear-gradient(
        rgba(255,255,255,.05),
        rgba(255,255,255,.12),
        rgba(255,255,255,.05));

    backdrop-filter:blur(10px);

    animation:fogMove 20s linear infinite alternate;

}

/* Lightning */

.lightning{

    position:absolute;

    inset:0;

    opacity:0;

    pointer-events:none;

}

.lightning.active{

    animation:lightningFlash 8s infinite;

}

/* ===========================================================
   DAY / NIGHT THEMES
=========================================================== */

body.day{

    --bg:#dbeafe;

    --bg-secondary:#bfdbfe;

    --text:#111827;

    --text-light:#374151;

    --text-muted:#6b7280;

    --card:rgba(255,255,255,.70);

    --card-hover:rgba(255,255,255,.85);

    --border:rgba(255,255,255,.50);

}

body.day .navbar{

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

}

body.day footer{

    background:#dbeafe;

}

body.day .search-box input{

    color:#111827;

}

body.day nav a{

    color:#374151;

}

/* ===========================================================
   CARD ANIMATIONS
=========================================================== */

.glass-card{

    animation:fadeUp .8s ease both;

}

.forecast-card:hover,
.favorite-card:hover,
.world-card:hover,
.tip-card:hover,
.highlight-card:hover{

    transform:translateY(-8px) scale(1.02);

}

.metric:hover{

    transform:translateX(5px);

}

button{

    transition:all .3s ease;

}

button:active{

    transform:scale(.96);

}

/* ===========================================================
   SHIMMER LOADING
=========================================================== */

.loading{

    position:relative;

    overflow:hidden;

}

.loading::after{

    content:"";

    position:absolute;

    inset:0;

    background:

    linear-gradient(
    90deg,

    transparent,

    rgba(255,255,255,.08),

    transparent);

    animation:shimmer 1.6s infinite;

}

/* ===========================================================
   ICON ANIMATIONS
=========================================================== */

.weather-emoji{

    animation:floatIcon 4s ease-in-out infinite;

}

.logo i{

    animation:rotateCloud 12s linear infinite;

}

/* ===========================================================
   HOVER EFFECTS
=========================================================== */

a:hover{

    transition:.3s;

}

.glass-card:hover{

    border-color:rgba(96,165,250,.30);

}

.favorite-card:hover h3,

.forecast-card:hover h3,

.world-card:hover h3{

    color:var(--primary);

}

/* ===========================================================
   SELECTION
=========================================================== */

::selection{

    background:#60a5fa;

    color:white;

}

/* ===========================================================
   FOCUS
=========================================================== */

button:focus-visible,

input:focus-visible,

a:focus-visible{

    outline:3px solid #60a5fa;

    outline-offset:3px;

}

/* ===========================================================
   KEYFRAMES
=========================================================== */

@keyframes spin{

    to{

        transform:rotate(360deg);

    }

}

@keyframes starsMove{

    from{

        transform:translateY(0);

    }

    to{

        transform:translateY(-1000px);

    }

}

@keyframes cloudMove{

    from{

        transform:translateX(0);

    }

    to{

        transform:translateX(-50%);

    }

}

@keyframes rainFall{

    from{

        background-position:0 0;

    }

    to{

        background-position:0 40px;

    }

}

@keyframes snowFall{

    from{

        transform:translateY(-50px);

    }

    to{

        transform:translateY(120vh);

    }

}

@keyframes fogMove{

    from{

        transform:translateX(-30px);

    }

    to{

        transform:translateX(30px);

    }

}

@keyframes lightningFlash{

    0%,92%,100%{

        opacity:0;

    }

    93%{

        opacity:.9;

        background:white;

    }

    94%{

        opacity:0;

    }

    95%{

        opacity:.8;

    }

}

@keyframes shimmer{

    from{

        transform:translateX(-100%);

    }

    to{

        transform:translateX(100%);

    }

}

@keyframes floatIcon{

    0%,100%{

        transform:translateY(0);

    }

    50%{

        transform:translateY(-12px);

    }

}

@keyframes rotateCloud{

    from{

        transform:rotate(0);

    }

    to{

        transform:rotate(360deg);

    }

}

@keyframes fadeUp{

    from{

        opacity:0;

        transform:translateY(30px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}

/* ===========================================================
   UTILITY CLASSES
=========================================================== */

.hidden{

    display:none !important;

}

.flex{

    display:flex;

}

.grid{

    display:grid;

}

.center{

    display:flex;

    align-items:center;

    justify-content:center;

}

.text-center{

    text-align:center;

}

.w-100{

    width:100%;

}

.mt-1{margin-top:10px;}
.mt-2{margin-top:20px;}
.mt-3{margin-top:30px;}
.mt-4{margin-top:40px;}

.mb-1{margin-bottom:10px;}
.mb-2{margin-bottom:20px;}
.mb-3{margin-bottom:30px;}
.mb-4{margin-bottom:40px;}

/* ===========================================================
   PRINT
=========================================================== */

@media print{

    body{

        background:white;

        color:black;

    }

    .navbar,

    footer,

    .floating-btn,

    .toast,

    .modal,

    #loader{

        display:none !important;

    }

}

/* ===========================================================
   ACCESSIBILITY
=========================================================== */

@media (prefers-reduced-motion:reduce){

    *{

        animation:none !important;

        transition:none !important;

        scroll-behavior:auto !important;

    }

}
