/* style.css */

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

body{
    font-family:'Poppins',sans-serif;
    height:100vh;
    overflow:hidden;
    background:linear-gradient(135deg,#0f172a,#111827,#1e293b);
    display:flex;
    justify-content:center;
    align-items:center;
    color:white;
    position:relative;
}

/* Background Floating Circles */

.background-animation span{
    position:absolute;
    border-radius:50%;
    background:rgba(255,255,255,0.05);
    animation:float 12s linear infinite;
    bottom:-150px;
}

.background-animation span:nth-child(1){
    width:120px;
    height:120px;
    left:10%;
    animation-duration:18s;
}

.background-animation span:nth-child(2){
    width:80px;
    height:80px;
    left:30%;
    animation-duration:12s;
}

.background-animation span:nth-child(3){
    width:150px;
    height:150px;
    left:55%;
    animation-duration:20s;
}

.background-animation span:nth-child(4){
    width:100px;
    height:100px;
    left:75%;
    animation-duration:15s;
}

.background-animation span:nth-child(5){
    width:60px;
    height:60px;
    left:90%;
    animation-duration:10s;
}

@keyframes float{
    0%{
        transform:translateY(0) rotate(0deg);
        opacity:0;
    }

    10%{
        opacity:1;
    }

    100%{
        transform:translateY(-120vh) rotate(360deg);
        opacity:0;
    }
}

/* Main Card */

.container{
    width:90%;
    max-width:700px;
    text-align:center;
    padding:60px 40px;
    border-radius:24px;
    background:rgba(255,255,255,0.08);
    backdrop-filter:blur(10px);
    box-shadow:0 20px 50px rgba(0,0,0,0.4);
    border:1px solid rgba(255,255,255,0.1);
    z-index:2;
    animation:fadeIn 1.2s ease;
}

@keyframes fadeIn{
    from{
        opacity:0;
        transform:translateY(20px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}

/* Gears */

.gear-area{
    position:relative;
    width:120px;
    height:120px;
    margin:0 auto 30px;
}

.gear{
    position:absolute;
    font-size:70px;
    color:#60a5fa;
}

.gear1{
    left:0;
    top:20px;
    animation:spin 8s linear infinite;
}

.gear2{
    right:0;
    top:0;
    font-size:55px;
    color:#93c5fd;
    animation:spinReverse 6s linear infinite;
}

@keyframes spin{
    from{
        transform:rotate(0deg);
    }
    to{
        transform:rotate(360deg);
    }
}

@keyframes spinReverse{
    from{
        transform:rotate(360deg);
    }
    to{
        transform:rotate(0deg);
    }
}

/* Text */

h1{
    font-size:48px;
    margin-bottom:20px;
    font-weight:700;
}

p{
    font-size:18px;
    color:#d1d5db;
    line-height:1.8;
    margin-bottom:40px;
}

/* Loading Dots */

.loader{
    display:flex;
    justify-content:center;
    gap:10px;
    margin-bottom:30px;
}

.loader span{
    width:14px;
    height:14px;
    border-radius:50%;
    background:#60a5fa;
    animation:bounce 1.2s infinite ease-in-out;
}

.loader span:nth-child(2){
    animation-delay:0.2s;
}

.loader span:nth-child(3){
    animation-delay:0.4s;
}

@keyframes bounce{
    0%,80%,100%{
        transform:scale(0);
    }
    40%{
        transform:scale(1);
    }
}

/* Progress Bar */

.progress-bar{
    width:100%;
    height:10px;
    background:rgba(255,255,255,0.1);
    border-radius:30px;
    overflow:hidden;
    margin-bottom:25px;
}

.progress{
    height:100%;
    width:40%;
    background:linear-gradient(90deg,#60a5fa,#2563eb);
    border-radius:30px;
    animation:loading 3s infinite ease-in-out;
}

@keyframes loading{
    0%{
        margin-left:-40%;
    }

    100%{
        margin-left:100%;
    }
}

/* Footer */

.footer{
    font-size:14px;
    color:#9ca3af;
    letter-spacing:1px;
}

/* Mobile */

@media(max-width:600px){

    h1{
        font-size:34px;
    }

    p{
        font-size:16px;
    }

    .container{
        padding:40px 25px;
    }
}