/* Google Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Reset */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:'Poppins',sans-serif;
    background:#0b1120;
    color:#fff;
    overflow:hidden;
}

/* Animated Background */

.background{
    position:fixed;
    inset:0;
    z-index:-1;
    overflow:hidden;
}

.background span{
    position:absolute;
    width:220px;
    height:220px;
    border-radius:50%;
    background:rgba(59,130,246,.12);
    animation:float 18s linear infinite;
}

.background span:nth-child(1){top:5%;left:10%;}
.background span:nth-child(2){top:20%;right:10%;}
.background span:nth-child(3){bottom:15%;left:20%;}
.background span:nth-child(4){bottom:10%;right:25%;}
.background span:nth-child(5){top:45%;left:45%;}

@keyframes float{
    0%{transform:translateY(0) rotate(0);}
    50%{transform:translateY(-40px) rotate(180deg);}
    100%{transform:translateY(0) rotate(360deg);}
}

/* Pages */

.page{
    position:absolute;
    left:100%;
    top:0;
    width:100%;
    height:100vh;
    display:flex;
    justify-content:center;
    align-items:center;
    padding:40px;
    transition:.5s;
}

.page.active{
    left:0;
}

/* Card */

.card{
    width:90%;
    max-width:800px;
    max-height:85vh;
    overflow-y:auto;

    padding:35px;

    text-align:center;

    border-radius:20px;

    background:rgba(15,23,42,.75);

    backdrop-filter:blur(12px);

    border:1px solid rgba(96,165,250,.25);

    box-shadow:0 10px 25px rgba(0,0,0,.3);

    animation:fade .6s;
}

/* Image */

.card img{
    width:170px;
    height:170px;
    object-fit:cover;
    border-radius:50%;
    border:4px solid #60a5fa;
    margin-bottom:20px;
    transition:.3s;
}

.card img:hover{
    transform:scale(1.05);
}

/* Text */

h1{
    font-size:38px;
    margin-bottom:10px;
}

h2{
    color:#60a5fa;
    margin-bottom:15px;
}

h3{
    color:#93c5fd;
    margin-bottom:8px;
}

p{
    color:#ddd;
    line-height:1.8;
    margin-bottom:15px;
}

/* Button */

#enterBtn{
    margin-top:10px;
    padding:14px 30px;
    border:none;
    border-radius:30px;
    background:#2563eb;
    color:white;
    font-size:16px;
    cursor:pointer;
    transition:.3s;
}

#enterBtn:hover{
    background:#3b82f6;
    transform:translateY(-3px);
}

/* Navigation */

nav{
    position:fixed;
    right:25px;
    top:50%;
    transform:translateY(-50%);
    display:flex;
    flex-direction:column;
    gap:10px;
    z-index:100;
}

.menu{
    width:180px;
    padding:13px;
    border:none;
    border-radius:30px;
    background:white;
    color:#111;
    cursor:pointer;
    font-weight:600;
    transition:.3s;
    text-align:left;
}

.menu:hover{
    background:#60a5fa;
    color:white;
}

.menu.active{
    background:#2563eb;
    color:white;
}

/* Skills & Hobbies */

.skill{
    margin-top:15px;
    padding:18px;
    border-radius:15px;
    background:rgba(59,130,246,.12);
    transition:.3s;
}

.skill:hover{
    background:rgba(59,130,246,.25);
    transform:translateY(-4px);
}

/* Scrollbar */

.card::-webkit-scrollbar{
    width:8px;
}

.card::-webkit-scrollbar-thumb{
    background:#2563eb;
    border-radius:20px;
}

/* Responsive */

@media(max-width:900px){

    nav{
        top:auto;
        bottom:15px;
        left:50%;
        right:auto;
        transform:translateX(-50%);
        flex-direction:row;
        flex-wrap:wrap;
    }

    .menu{
        width:auto;
        font-size:14px;
        padding:12px 18px;
    }

    .card{
        width:95%;
    }

    h1{
        font-size:30px;
    }

    .card img{
        width:140px;
        height:140px;
    }

}

/* Fade */

@keyframes fade{
    from{
        opacity:0;
        transform:translateY(20px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}
a{
    color:#60a5fa;
    text-decoration:none;
    font-weight:600;
}

a:hover{
    color:#93c5fd;
    text-decoration:underline;
}