@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

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

body{
    font-family:'Poppins',sans-serif;
    background:#0f172a;
    color:white;
    overflow-x:hidden;
}

body::before{
    content:"";
    position:fixed;
    inset:0;
    background:
    radial-gradient(circle at top left,#2563eb33,transparent 30%),
    radial-gradient(circle at bottom right,#7c3aed33,transparent 30%);
    z-index:-1;
}

/* NAVBAR */
nav{
    position:fixed;
    top:20px;
    left:50%;
    transform:translateX(-50%);
    width:90%;
    padding:18px 40px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    background:rgba(255,255,255,0.05);
    backdrop-filter:blur(18px);
    border:1px solid rgba(255,255,255,0.08);
    border-radius:25px;
    z-index:1000;
}

.logo{
    font-size:24px;
    font-weight:700;
    background:linear-gradient(to right,#60a5fa,#c084fc);
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
}

nav ul{
    display:flex;
    gap:30px;
    list-style:none;
}

nav ul li a{
    text-decoration:none;
    color:#e2e8f0;
    font-weight:500;
    transition:.3s;
    position:relative;
}

nav ul li a:hover{
    color:#60a5fa;
}

nav ul li a::after{
    content:"";
    position:absolute;
    left:0;
    bottom:-6px;
    width:0%;
    height:2px;
    background:#60a5fa;
    transition:.3s;
}

nav ul li a:hover::after{
    width:100%;
}

/* HERO */
.hero{
    min-height:100vh;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    text-align:center;
    padding:140px 20px 80px;
}

.profile-img{
    width:260px;
    height:260px;
    object-fit:cover;
    border-radius:50%;
    border:5px solid rgba(255,255,255,0.1);
    box-shadow:
    0 0 30px #2563eb66,
    0 0 60px #7c3aed44;
    transition:.5s;
}

.profile-img:hover{
    transform:scale(1.05);
}

.hero h1{
    font-size:58px;
    margin-top:30px;
    font-weight:800;
}

.hero span{
    background:linear-gradient(to right,#60a5fa,#c084fc);
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
}

.typing-text{
    max-width:850px;
    margin-top:25px;
    color:#cbd5e1;
    line-height:2;
    font-size:18px;
}

.hero-btn{
    margin-top:35px;
    padding:15px 35px;
    border:none;
    border-radius:40px;
    background:linear-gradient(to right,#2563eb,#7c3aed);
    color:white;
    font-size:16px;
    font-weight:600;
    cursor:pointer;
    transition:.4s;
}

.hero-btn:hover{
    transform:translateY(-5px);
}

/* CONTENT */
.content{
    padding:120px 8%;
}

.section-title{
    text-align:center;
    font-size:42px;
    margin-bottom:60px;
    font-weight:700;
}

/* CARDS */
.social-boxes,
.contact-boxes,
.skill-container,
.timeline{
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:30px;
}

.social-card,
.contact-card,
.skill-card,
.timeline-card,
.certificate-card{
    width:280px;
    padding:30px;
    border-radius:25px;
    background:rgba(255,255,255,0.05);
    backdrop-filter:blur(10px);
    border:1px solid rgba(255,255,255,0.08);
    text-align:center;
    transition:.4s;
    text-decoration:none;
    color:white;
}

.social-card:hover,
.contact-card:hover,
.skill-card:hover,
.timeline-card:hover,
.certificate-card:hover{
    transform:translateY(-10px);
    box-shadow:0 15px 40px rgba(96,165,250,.2);
}

.social-card img,
.contact-card img{
    width:80px;
    height:80px;
    margin-bottom:20px;
}

/* CERTIFICATE */
.certificate-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:30px;
}

.certificate-card img{
    width:100%;
    border-radius:18px;
}

.certificate-card p{
    margin-top:15px;
}

/* POPUP CERTIFICATE */

.popup{
    display:none;
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.92);
    z-index:9999;

    justify-content:center;
    align-items:flex-start;

    overflow-y:auto;
    padding:40px 20px;

    backdrop-filter:blur(12px);
}

.popup-content{

    width:90%;
    max-width:1000px;

    border-radius:20px;

    animation:zoom .4s ease;
}

.close{
    position:fixed;
    top:20px;
    right:40px;

    font-size:50px;
    color:white;

    cursor:pointer;
    z-index:10000;
}

@keyframes zoom{

    from{
        transform:scale(.8);
        opacity:0;
    }

    to{
        transform:scale(1);
        opacity:1;
    }

}

/* RESPONSIVE */
@media(max-width:768px){

    nav{
        flex-direction:column;
        gap:15px;
        padding:20px;
    }

    nav ul{
        flex-wrap:wrap;
        justify-content:center;
    }

    .hero h1{
        font-size:38px;
    }

    .profile-img{
        width:200px;
        height:200px;
    }

}