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

body{
    margin: 0;
    padding: 0;
    background: url('clouds.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh;
}   

.container{

    width: 90%;

    max-width: 1400px;

    min-height: 90vh;

    padding: 20px;

    border-radius: 30px;

    background: rgba(0,0,0,0.18);

    backdrop-filter: blur(10px);

    border: 1px solid rgba(255,255,255,0.12);

    box-shadow: 0 8px 32px rgba(0,0,0,0.25);

    margin: 20px auto;

    color: white;

    transition: 0.4s;
}

.top{

    display:flex;

    justify-content:space-between;

    align-items:center;
}

.logo{

    font-size:55px;

    color:#ffcc66;
}

#clock{

    font-size:45px;

    color:black;

    font-weight:bold;
}

.subtitle{

    text-align:center;

    margin-top:10px;

    margin-bottom:25px;

    font-size:28px;

    font-weight:bold;
}

.search-box{

    display:flex;

    gap:15px;

    justify-content:center;

    align-items:center;

    margin-bottom:30px;

    flex-wrap:wrap;
}

.search-box input{

    width:450px;

    padding:18px;

    border:none;

    outline:none;

    border-radius:40px;

    font-size:24px;
}

.search-box button{

    padding:18px 25px;

    border:none;

    border-radius:25px;

    background:rgba(255,255,255,0.25);

    color:white;

    font-size:22px;

    cursor:pointer;

    transition:0.3s;
}

.search-box button:hover{

    transform:scale(1.05);
}

.weather-main{

    display:flex;

    justify-content:space-between;

    align-items:center;

    gap:30px;

    overflow: hidden;
}

.left-side{

    width:35%;
    padding: 20px;
}

.weather-top{

    display:flex;

    align-items:center;

    gap:15px;
}

.weather-icon{

    width:80px;
}

.temp{

    font-size:80px;
}

.city{

    font-size:60px;

    margin-top:10px;
}

.condition{

    font-size:35px;

    margin-top:10px;
}

.humidity,
.wind,
.sunrise,
.sunset{

    margin-top:10px;

    font-size:25px;
}

.forecast{

    width:60%;

    display:grid;

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

    gap:20px;
}

.card{
    background: rgba(255,255,255,0.120);

    backdrop-filter: blur(12px);
    border-radius: 20px;
}


.card:hover{

    transform:translateY(-5px);
}

.card h3{

    margin-bottom:10px;

    font-size:30px;
}

.card img{

    width:70px;
}

.card p{

    font-size:28px;

    margin-top:10px;
}

#bgVideo{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

button{

    transition: 0.3s ease;

    cursor: pointer;
}

button:hover{

    transform: scale(1.08);

    background: rgba(255,255,255,0.25);

    box-shadow: 0 0 15px rgba(255,255,255,0.3);
}
#searchBtn:hover{

    transform: rotate(10deg) scale(1.1);
}
.card{

    animation: floatCard 3s ease-in-out infinite;
}

@keyframes floatCard{

    0%{

        transform: translateY(0px);
    }

    50%{

        transform: translateY(-10px);
    }

    100%{

        transform: translateY(0px);
    }
}
.card:nth-child(1){
    animation-delay: 0s;
}

.card:nth-child(2){
    animation-delay: 0.3s;
}

.card:nth-child(3){
    animation-delay: 0.6s;
}

.card:nth-child(4){
    animation-delay: 0.9s;
}

.card:nth-child(5){
    animation-delay: 1.2s;
}

.card:nth-child(6){
    animation-delay: 1.5s;
}

.loader{

    border: 6px solid rgba(255,255,255,0.2);

    border-top: 6px solid white;

    border-radius: 50%;

    width: 50px;

    height: 50px;

    animation: spin 1s linear infinite;

    margin: 20px auto;

    display: none;
}

@keyframes spin{

    0%{
        transform: rotate(0deg);
    }

    100%{
        transform: rotate(360deg);
    }
}

.weather-main{

    animation: fadeWeather 1s ease;
}

@keyframes fadeWeather{

    from{

        opacity: 0;

        transform: translateY(20px);
    }

    to{

        opacity: 1;

        transform: translateY(0px);
    }
}.weather-icon{

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

    filter: drop-shadow(0 0 15px rgba(255,255,255,0.4));
}

@keyframes weatherFloat{

    0%{

        transform: translateY(0px);
    }

    50%{

        transform: translateY(-12px);
    }

    100%{

        transform: translateY(0px);
    }
}

.weather-icon:hover{

    transform: scale(1.1);

    transition: 0.3s ease;
}