*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins',sans-serif;
}

html{
    scroll-behavior:smooth;
}

body{
    background:#0d0d0d;
    color:#fff;
    overflow-x:hidden;
}

header{
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:40px 80px;
}

.hero{
    width:100%;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:60px;
}

.left{
    flex:1;
}

.left h3{
    font-size:24px;
    color:#ddd;
}

.left h1{
    font-size:60px;
    color:#bb86fc;
    margin:10px 0;
}

.left h2{
    font-size:30px;
    margin-bottom:20px;
}

.left p{
    font-size:18px;
    line-height:30px;
    color:#ddd;
}

button{
    margin-top:20px;
    padding:12px 28px;
    background:#7b2cbf;
    color:white;
    border:none;
    outline:none;
    border-radius:30px;
    cursor:pointer;
    font-size:16px;
    transition:.3s;
}

button:hover{
    background:#9d4edd;
    transform:translateY(-4px);
    box-shadow:0 0 20px #bb86fc;
}

/* PHOTO */

.right{
    flex:1;
    display:flex;
    justify-content:center;
    align-items:center;
}

.right img{
    width:340px;
    height:340px;
    border-radius:50%;
    object-fit:cover;
    object-position:center;
    border:5px solid #bb86fc;
    box-shadow:0 0 25px #bb86fc;
    transition:.4s;
}

.right img:hover{
    transform:scale(1.05);
    box-shadow:0 0 40px #bb86fc;
}
/* SECTIONS */

section{
    padding:80px;
}

section h1{
    text-align:center;
    color:#bb86fc;
    font-size:40px;
    margin-bottom:35px;
}

/* ABOUT */

.about-box{
    width:80%;
    margin:auto;
    background:#1a1a1a;
    padding:30px;
    border-radius:15px;
    line-height:30px;
    font-size:18px;
    box-shadow:0 0 15px rgba(187,134,252,.3);
    transition:.3s;
}

.about-box:hover{
    box-shadow:0 0 30px rgba(187,134,252,.7);
}

/* SKILLS */

.skill{
    width:80%;
    margin:auto;
}

.skill p{
    margin:15px 0 8px;
    font-weight:bold;
}

.bar{
    width:100%;
    height:15px;
    background:#333;
    border-radius:20px;
    overflow:hidden;
    margin-bottom:20px;
}

.bar div{
    height:100%;
    background:#bb86fc;
    border-radius:20px;
    animation:fillBar 2s ease;
}

.html{width:95%;}
.css{width:90%;}
.js{width:80%;}
.python{width:85%;}
.cpp{width:70%;}
.ai{width:75%;}
.office{width:90%;}
.powerbi{width:80%;}
.excel{width:85%;}
.frontend{width:90%;}
.figma{width:75%;}
.cisco{width:80%;}
.communication{width:95%;}
.teamwork{width:90%;}
.problem{width:85%;}

@keyframes fillBar{
    from{width:0;}
}

/* PROJECTS */

.project-container{
    width:90%;
    margin:auto;
    display:flex;
    justify-content:center;
    gap:25px;
    flex-wrap:wrap;
}

.project-card{
    width:300px;
    background:#1a1a1a;
    padding:25px;
    border-radius:15px;
    text-align:center;
    box-shadow:0 0 15px rgba(187,134,252,.3);
    transition:.3s;
}

.project-card:hover{
    transform:translateY(-12px) scale(1.03);
    box-shadow:0 0 35px rgba(187,134,252,.9);
}

.project-card h2{
    color:#bb86fc;
    margin-bottom:15px;
}

.project-card p{
    line-height:26px;
}

/* EDUCATION */

.edu-card{
    width:80%;
    margin:25px auto;
    background:#1a1a1a;
    padding:25px;
    border-radius:15px;
    border-left:5px solid #bb86fc;
    box-shadow:0 0 15px rgba(187,134,252,.3);
    transition:.3s;
}

.edu-card:hover{
    transform:translateY(-5px);
    box-shadow:0 0 30px rgba(187,134,252,.7);
}

.edu-card h2{
    color:#bb86fc;
    margin-bottom:10px;
}

.edu-card h3{
    margin-bottom:10px;
}

/* ACHIEVEMENTS */

.achievement-container{
    width:90%;
    margin:auto;
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:25px;
}

.achievement-card{
    width:300px;
    background:#1a1a1a;
    padding:25px;
    border-radius:15px;
    border-left:5px solid #bb86fc;
    box-shadow:0 0 15px rgba(187,134,252,.3);
    transition:.3s;
}

.achievement-card:hover{
    transform:translateY(-8px);
    box-shadow:0 0 30px rgba(187,134,252,.7);
}

.achievement-card h2{
    color:#bb86fc;
    margin-bottom:15px;
}

.achievement-card p{
    line-height:26px;
}

/* CONTACT */

.contact-box{
    width:70%;
    margin:auto;
    background:#1a1a1a;
    padding:35px;
    border-radius:15px;
    text-align:center;
    box-shadow:0 0 15px rgba(187,134,252,.3);
}

.contact-buttons{
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:15px;
    margin-top:20px;
}

/* FOOTER */

footer{
    margin-top:60px;
    background:#111;
    text-align:center;
    padding:30px;
    border-top:2px solid #bb86fc;
}

footer h2{
    color:#bb86fc;
    margin-bottom:10px;
}
/* ========================= */
/* ANIMATIONS */
/* ========================= */

.left{
    animation:slideLeft 1s ease;
}

.right{
    animation:slideRight 1s ease;
}

@keyframes slideLeft{
    from{
        opacity:0;
        transform:translateX(-60px);
    }
    to{
        opacity:1;
        transform:translateX(0);
    }
}

@keyframes slideRight{
    from{
        opacity:0;
        transform:translateX(60px);
    }
    to{
        opacity:1;
        transform:translateX(0);
    }
}

.left h1{
    animation:glowText 2s infinite alternate;
}

@keyframes glowText{
    from{
        text-shadow:0 0 10px #bb86fc;
    }
    to{
        text-shadow:0 0 25px #bb86fc;
    }
}

/* ========================= */
/* SIDE NAVIGATION */
/* ========================= */

.side-nav{
    position:fixed;
    right:20px;
    top:50%;
    transform:translateY(-50%);
    display:flex;
    flex-direction:column;
    gap:12px;
    z-index:999;
}

.side-nav a{
    text-decoration:none;
    color:white;
    background:#1a1a1a;
    padding:12px 20px;
    border-radius:30px;
    transition:.3s;
    box-shadow:0 0 10px rgba(187,134,252,.3);
}

.side-nav a:hover{
    background:#7b2cbf;
    box-shadow:0 0 20px #bb86fc;
}

/* ========================= */
/* SCROLL REVEAL */
/* ========================= */

.reveal{
    opacity:0;
    transform:translateY(60px);
    transition:.8s;
}

.reveal.active{
    opacity:1;
    transform:translateY(0);
}

/* ========================= */
/* BACKGROUND ANIMATION */
/* ========================= */

.background-animation{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    z-index:-1;
    overflow:hidden;
}

.background-animation span{
    position:absolute;
    width:20px;
    height:20px;
    border-radius:50%;
    background:rgba(187,134,252,.2);
    bottom:-150px;
    animation:animate 20s linear infinite;
}

.background-animation span:nth-child(1){left:10%;width:40px;height:40px;}
.background-animation span:nth-child(2){left:30%;animation-duration:18s;}
.background-animation span:nth-child(3){left:50%;width:30px;height:30px;}
.background-animation span:nth-child(4){left:70%;animation-duration:22s;}
.background-animation span:nth-child(5){left:85%;width:45px;height:45px;}
.background-animation span:nth-child(6){left:95%;animation-duration:16s;}

@keyframes animate{
    from{
        transform:translateY(0) rotate(0deg);
        opacity:1;
    }
    to{
        transform:translateY(-1000px) rotate(720deg);
        opacity:0;
    }
}

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

::-webkit-scrollbar{
    width:8px;
}

::-webkit-scrollbar-track{
    background:#111;
}

::-webkit-scrollbar-thumb{
    background:#bb86fc;
    border-radius:20px;
}

::-webkit-scrollbar-thumb:hover{
    background:#9d4edd;
}

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

@media(max-width:768px){

.hero{
    flex-direction:column-reverse;
    text-align:center;
    gap:40px;
}

.left,
.right{
    width:100%;
}

.right img{
    width:260px;
    height:260px;
}

section{
    padding:50px 20px;
}

.about-box,
.skill,
.edu-card,
.contact-box{
    width:100%;
}

.side-nav{
    display:none;
}

.contact-buttons{
    flex-direction:column;
    align-items:center;
}
}
button:focus,
button:active{
    outline:none;
    border:none;
    box-shadow:none;
}
.achievement-card img{
    width:100%;
    height:180px;
    object-fit:cover;
    border-radius:10px;
    margin-bottom:15px;
    border:2px solid #bb86fc;
    transition:.3s;
}

.achievement-card img:hover{
    transform:scale(1.03);
    box-shadow:0 0 20px #bb86fc;
}
.status{
    margin-top:20px;
    font-size:17px;
    color:#bb86fc;
    font-weight:600;
    text-shadow:0 0 10px rgba(187,134,252,.5);
}
.about-info{
    display:flex;
    justify-content:center;
    gap:20px;
    flex-wrap:wrap;
    margin-top:30px;
}

.info-card{
    width:220px;
    background:#222;
    padding:20px;
    border-radius:12px;
    text-align:center;
    border:2px solid #bb86fc;
    transition:.3s;
}

.info-card:hover{
    transform:translateY(-8px);
    box-shadow:0 0 20px #bb86fc;
}
#topBtn{
    display:none;
    position:fixed;
    bottom:20px;
    right:20px;
    z-index:999;
    background:#7b2cbf;
    color:white;
    border:none;
    width:50px;
    height:50px;
    border-radius:50%;
    font-size:22px;
    cursor:pointer;
    transition:.3s;
}
#topBtn:hover{
    background:#9d4edd;
    box-shadow:0 0 20px #bb86fc;
    transform:translateY(-5px);
}
#imageModal{
    display:none;
    position:fixed;
    z-index:9999;
    left:0;
    top:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.9);
    justify-content:center;
    align-items:center;
    cursor:pointer;
}

#imageModal img{
    max-width:90%;
    max-height:90%;
    border:4px solid #bb86fc;
    border-radius:10px;
    box-shadow:0 0 30px #bb86fc;
    animation:zoom .3s ease;
}

@keyframes zoom{
    from{
        transform:scale(0.7);
        opacity:0;
    }
    to{
        transform:scale(1);
        opacity:1;
    }
}
