:root{
    --primary:#00d4ff;
    --secondary:#7c3aed;
    --dark:#07111f;
    --card:#101b2d;
    --text:#dbeafe;
    --light:#94a3b8;
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Poppins',sans-serif;
    background:
    radial-gradient(circle at top left,#0f172a,#020617 45%),
    radial-gradient(circle at bottom right,#111827,#020617 40%);
    color:white;
    overflow-x:hidden;
}

/* SCROLLBAR */

::-webkit-scrollbar{
    width:10px;
}

::-webkit-scrollbar-track{
    background:#07111f;
}

::-webkit-scrollbar-thumb{
    background:linear-gradient(var(--primary),var(--secondary));
    border-radius:20px;
}

/* ANIMATED BACKGROUND */

.bg-animation span{
    position:absolute;
    display:block;
    width:20px;
    height:20px;
    background:rgba(255,255,255,0.05);
    animation:animate 25s linear infinite;
    bottom:-150px;
    border-radius:50%;
}

.bg-animation span:nth-child(1){
    left:10%;
    width:80px;
    height:80px;
    animation-delay:0s;
}

.bg-animation span:nth-child(2){
    left:20%;
    width:20px;
    height:20px;
    animation-delay:2s;
    animation-duration:12s;
}

.bg-animation span:nth-child(3){
    left:70%;
    width:50px;
    height:50px;
    animation-delay:4s;
}

.bg-animation span:nth-child(4){
    left:40%;
    width:60px;
    height:60px;
    animation-duration:18s;
}

.bg-animation span:nth-child(5){
    left:85%;
    width:30px;
    height:30px;
    animation-delay:1s;
}

@keyframes animate{

    0%{
        transform:translateY(0) rotate(0deg);
        opacity:0;
    }

    10%{
        opacity:1;
    }

    100%{
        transform:translateY(-1200px) rotate(720deg);
        opacity:0;
    }
}

.container{
    width:95%;
    max-width:1400px;
    margin:auto;
    padding:40px 0;
    position:relative;
    z-index:10;
}

.cv{
    display:grid;
    grid-template-columns:350px 1fr;
    gap:30px;
}

/* LEFT SIDE */

.left{
    background:rgba(16,27,45,0.8);
    border:1px solid rgba(255,255,255,0.08);
    backdrop-filter:blur(15px);
    border-radius:30px;
    padding:35px;
    position:sticky;
    top:20px;
    height:fit-content;
    box-shadow:0 20px 50px rgba(0,0,0,0.4);
}

.profile{
    text-align:center;
}

.avatar{
    width:150px;
    height:150px;
    margin:auto;
    border-radius:50%;
    background:linear-gradient(135deg,var(--primary),var(--secondary));
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:55px;
    font-weight:800;
    margin-bottom:20px;
    position:relative;
    animation:float 4s ease-in-out infinite;
    box-shadow:0 0 50px rgba(0,212,255,0.5);
}

.avatar::after{
    content:"";
    position:absolute;
    inset:-8px;
    border-radius:50%;
    border:2px solid rgba(255,255,255,0.2);
    animation:spin 10s linear infinite;
}

@keyframes spin{
    100%{
        transform:rotate(360deg);
    }
}

@keyframes float{
    50%{
        transform:translateY(-10px);
    }
}

.profile h1{
    font-size:32px;
    margin-bottom:8px;
}

.profile h3{
    color:var(--primary);
    font-weight:400;
    margin-bottom:25px;
}

.download{
    display:inline-block;
    padding:14px 28px;
    border-radius:50px;
    background:linear-gradient(135deg,var(--primary),var(--secondary));
    text-decoration:none;
    color:white;
    font-weight:600;
    transition:0.4s;
}

.download:hover{
    transform:translateY(-5px) scale(1.03);
    box-shadow:0 15px 40px rgba(0,212,255,0.4);
}

.section{
    margin-top:40px;
}

.section-title-cv{
    font-size:18px;
    margin-bottom:20px;
    position:relative;
    padding-left:18px;
}

.section-title-cv::before{
    content:"";
    position:absolute;
    left:0;
    top:5px;
    width:6px;
    height:22px;
    border-radius:20px;
    background:linear-gradient(var(--primary),var(--secondary));
}

.contact-item{
    margin-bottom:18px;
    color:var(--text);
    font-size:14px;
    line-height:1.7;
}

.contact-item span{
    color:var(--primary);
    margin-right:10px;
}

.skill{
    margin-bottom:18px;
}

.skill-name{
    margin-bottom:8px;
    font-size:14px;
}

.bar{
    width:100%;
    height:10px;
    border-radius:20px;
    background:#1e293b;
    overflow:hidden;
}

.progress{
    height:100%;
    border-radius:20px;
    background:linear-gradient(90deg,var(--primary),var(--secondary));
    animation:grow 2s ease;
}

@keyframes grow{
    from{
        width:0;
    }
}

/* RIGHT SIDE */

.right{
    display:flex;
    flex-direction:column;
    gap:25px;
}

.card{
    background:rgba(16,27,45,0.75);
    border:1px solid rgba(255,255,255,0.08);
    backdrop-filter:blur(14px);
    border-radius:28px;
    padding:35px;
    transition:0.5s;
    opacity:0;
    transform:translateY(40px);
}

.card.show{
    opacity:1;
    transform:translateY(0);
}

.card:hover{
    transform:translateY(-8px);
    box-shadow:0 20px 60px rgba(0,0,0,0.4);
}

.card h2{
    font-size:28px;
    margin-bottom:20px;
    background:linear-gradient(to right,var(--primary),#ffffff);
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
}

.card p{
    line-height:1.9;
    
}

.tags{
    /*display:flex;*/
    /*flex-wrap:wrap;*/
    /*gap:12px;*/
}
.tags-left{
    display:flex;
    flex-wrap:wrap;
    gap:2px;
}

.tag{
    margin: 2px 0px;
    text-indent: -11px;
    padding:0px 13px;
    border-radius:5px;
    background:rgba(0,212,255,0.08);
    border:1px solid rgba(0,212,255,0.2);
    transition:0.4s;
    cursor:pointer;
    font-size:14px;
}

.tag-left{
    padding: 0px 7px;
    border-radius:40px;
    background:rgba(0,212,255,0.08);
    border:1px solid rgba(0,212,255,0.2);
    transition:0.4s;
    cursor:pointer;
    font-size:14px;
}

.tag:hover{
    background:linear-gradient(135deg,var(--primary),var(--secondary));
    transform:translateY(-4px);
}

.timeline{
    position:relative;
    margin-left:10px;
}

.timeline::before{
    content:"";
    position:absolute;
    left:0;
    top:0;
    width:2px;
    height:100%;
    background:rgba(255,255,255,0.1);
}

.timeline-item{
    position:relative;
    padding-left:35px;
    margin-bottom:35px;
}

.timeline-item::before{
    content:"";
    position:absolute;
    left:-8px;
    top:8px;
    width:18px;
    height:18px;
    border-radius:50%;
    background:linear-gradient(var(--primary),var(--secondary));
    box-shadow:0 0 20px rgba(0,212,255,0.7);
}

.timeline-item h3{
    margin-bottom:6px;
    font-size:21px;
}


.timeline-item span{
    color:var(--primary);
    font-size:14px;
}

.timeline-item p{
    margin-top:12px;
    color: var(--text-primary);
}

.references{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:20px;
}

.ref{
    background:rgba(255,255,255,0.03);
    border-radius:20px;
    padding:25px;
    transition:0.4s;
}

.ref:hover{
    transform:translateY(-5px);
    background:rgba(255,255,255,0.05);
}

.ref h4{
    color:var(--text-primary);
    margin-bottom:10px;
}

/* MOBILE */

@media(max-width:1100px){

    .cv{
        grid-template-columns:1fr;
    }

    .left{
        position:relative;
        top:0;
    }
}

@media(max-width:700px){

    .references{
        grid-template-columns:1fr;
    }

    .card{
        padding:25px;
    }

    .profile h1{
        font-size:28px;
    }
}
