
@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');
*{
    margin: 0;
    padding: 0;
    font-family: 'poppins', sans-serif;
    box-sizing: border-box;
}
body{
    background: black;
}
.hero{
    width: 100%;
    min-height: 100vh;
    background: linear-gradient(45deg, #08001f,  #30197d);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.container{
    width: 800px;
    height: 180px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    /* background: red ; */
}
.clock {
    width: 100%;
    height: 100%;
    background: rgba(235, 0, 255, 0.1); /* semi-transparent background */
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;

    /* 🔁 Fix: Add both filters */
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);

    /* 🔁 Fix: Ensure it renders on a separate layer */
    will-change: transform;
    transform: translateZ(0);
    isolation: isolate;

    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.container::before{
    content: "";
    width: 180px;
    height: 180px;
    background: #f41b75;
    border-radius: 5px;
    position: absolute;
    left: -50px;
    top: -50px;
    border-radius: 5px;
    z-index: -1;

}
.container::after{
    content: "";
    width: 180px;
    height: 180px;
    background: #419aff;
    border-radius: 50%;
    position: absolute;
    right: -50px;
    bottom: -50px;
    z-index: -1;

}

.clock span{
    font-size: 80px;
    width: 110px;
    display: inline-block;
    text-align: center;
    position: relative;
}

.clock span::after{
    font-size: 16px;
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
}
#hrs::after{
    content: 'HOURS';
}
#min::after{
    content: 'MINS';
}
#sec::after{
    content: 'SEC';
}

@media (max-width: 786px){
   
    *{
    margin: 0;
    padding: 0;
    font-family: 'poppins', sans-serif;
    box-sizing: border-box;
}

    body{
    background: black;
}
.hero{
    width: 100%;
    min-height: 100vh;
    background: linear-gradient(45deg, #08001f,  #30197d);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.container{
    /* min-width: 100px; */
    width: 250px;
    height: 80px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    /* background: red ; */
}
.clock {
    width: 100%;
    height: 100%;
    background: rgba(235, 0, 255, 0.1); /* semi-transparent background */
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;

    /* 🔁 Fix: Add both filters */
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);

    /* 🔁 Fix: Ensure it renders on a separate layer */
    will-change: transform;
    transform: translateZ(0);
    isolation: isolate;

    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.container::before{
    content: "";
    width: 80px;
    height: 80px;
    background: #f41b75;
    border-radius: 5px;
    position: absolute;
    left: -50px;
    top: -50px;
    border-radius: 5px;
    z-index: -1;

}
.container::after{
    content: "";
    width: 80px;
    height: 80px;
    background: #419aff;
    border-radius: 50%;
    position: absolute;
    right: -50px;
    bottom: -50px;
    z-index: -1;

}
.clock span{
    font-size: 30px;
    width: 110px;
    display: inline-block;
    text-align: center;
    position: relative;
}

.clock span::after{
    font-size: 13px;
    position: absolute;
    bottom: -16px;
    left: 59%;
    transform: translateX(-50%);
}
#hrs::after{
    content: 'HOURS';
}
#min::after{
    content: 'MINS';
}
#sec::after{
    content: 'SEC';
}
}
@supports not (backdrop-filter: blur(1px)) {
    .clock {
        background: rgba(235, 0, 255, 0.2); /* Solid fallback */
    }
}
