/* ===== GLOBAL ===== */

html{
    scroll-behavior:smooth;
}

body{
    margin:0;
    font-family:Inter,sans-serif;
    color:#E5E7EB;
    background-color:#0B1220;
    background-image:
            linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
            linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size:40px 40px;
    animation:gridMove 30s linear infinite;
}

@keyframes gridMove{
    0%{background-position:0 0;}
    100%{background-position:40px 40px;}
}

/* ===== PROGRESS BAR ===== */

#progress{
    position:fixed;
    top:0;
    left:0;
    height:3px;
    width:0%;
    background:#22C55E;
    z-index:999;
}

/* ===== HEADER ===== */

header{
    position:sticky;
    top:0;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:14px 36px;
    background:#020617;
    backdrop-filter:blur(10px);
    z-index:100;
}

.logo{
    font-weight:600;
    font-size:16px;
    color:#E5E7EB;
    text-decoration:none;
    cursor:pointer;
    transition:color .2s;
}

.logo:hover{
    color:#22C55E;
    text-shadow:0 0 8px rgba(34,197,94,0.4);
}

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

nav a{
    margin-left:18px;
    text-decoration:none;
    color:#94A3B8;
    transition:color .2s;
}

nav a:hover{
    color:#22C55E;
}

nav a.active{
    color:#22C55E;
    font-weight:600;
}

.nav-icon{
    display:none;
    font-size:18px;
}
/* ===== LANGUAGE BUTTONS ===== */

.lang{
    display:flex;
    gap:6px;
}

.lang-btn{
    background:#0F172A;
    border:1px solid #1E293B;
    color:#94A3B8;
    padding:4px 10px;
    border-radius:6px;
    cursor:pointer;
    font-size:12px;
    transition:all .2s ease;
}

.lang-btn:hover{
    border-color:#22C55E;
    color:#E5E7EB;
}

.lang-btn.active{
    background:#16A34A;
    color:white;
}

/* ===== HERO ===== */

.hero{
    display:flex;
    justify-content:center;
    padding:60px 20px 30px;
}

.hero-card{
    position:relative;
    width:600px;
    background:#0B1220;
    border:1px solid rgba(34,197,94,0.3);
    border-radius:16px;
    padding:60px 30px 50px;
    text-align:center;
    box-shadow:0 0 30px rgba(34,197,94,0.15);
}

.hero-card::before{
    content:"";
    position:absolute;
    top:0;
    left:0;
    right:0;
    bottom:0;
    border-radius:16px;
    box-shadow:0 0 30px rgba(34,197,94,0.15);
    pointer-events:none;
}

/* ===== AVATAR ===== */

.avatar{
    width:240px;
    height:240px;
    border-radius:50%;
    object-fit:cover;
    object-position:center;
    border:2px solid rgba(34,197,94,0.5);
    box-shadow:0 0 12px rgba(34,197,94,0.2);
    margin-bottom:14px;
}

/* ===== HERO TEXT ===== */

.hero-card h1{
    margin:0;
    font-size:36px;
}

.title{
    color:#22C55E;
    font-size:18px;
    margin-top:6px;
}

.subtitle{
    max-width:440px;
    margin:10px auto;
    color:#94A3B8;
    line-height:1.5;
    font-size:14px;
}

/* ===== HERO BUTTONS ===== */

.hero-buttons{
    position:absolute;
    bottom:-20px;
    left:50%;
    transform:translateX(-50%);
    display:flex;
    gap:14px;
}

.button{
    background:#16A34A;
    padding:8px 18px;
    border-radius:8px;
    color:white;
    text-decoration:none;
    font-size:13px;
    transition:all .2s ease;
    cursor:pointer;
    display:inline-block;

}

.button:hover{
    background:#22C55E;
    transform:translateY(-1px);
    box-shadow:0 4px 10px rgba(34,197,94,.3);
}

.secondary{
    background:#1F2937;
}

.secondary:hover{
    background:#374151;
}

#about p {
    line-height: 1.9;
    font-size: 1.1rem;
    letter-spacing: 0.01em;
    margin-top: 24px;
}

/* ===== SECTIONS ===== */

section{
    max-width:1000px;
    margin:auto;
    padding:14px 20px;
}

section h2{
    margin-bottom:8px;
}

/* ===== TAGS ===== */

.tags{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-top:10px;
}

.tag{
    padding:6px 12px;
    background:#0F172A;
    border:1px solid #1E293B;
    border-radius:20px;
    font-size:13px;
    transition:.2s;
}

.tag:hover{
    border-color:#22C55E;
    transform:translateY(-1px);
}

/* ===== TIMELINE ===== */

.timeline{
    border-left:2px solid rgba(34,197,94,0.4);
    padding-left:24px;
    margin-top:10px;
}

.job{
    position:relative;
    margin-bottom:20px;
    transition:.2s;
}

.job:hover{
    transform:translateX(24px);
}

/* timeline dot */

.job-header{
    display:grid;
    grid-template-columns:1fr auto;
    align-items:center;
    margin-bottom:6px;
    position:relative;
}

.job-header h3{
    margin:0;
    font-size:18px;
    font-weight:600;
}

.job-header span{
    font-size:14px;
    color:#94A3B8;
    white-space:nowrap;
}

.job-header::before{
    content:"";
    position:absolute;
    left:-31px;
    top:50%;
    transform:translateY(-50%);
    width:10px;
    height:10px;
    background:#22C55E;
    border-radius:50%;
}

.job ul{
    margin:6px 0 4px 0;
    padding-left:16px;
    color:#94A3B8;
}

.stack{
    margin-top:6px;
    font-family:"JetBrains Mono", monospace;
    font-size:13px;
    color:#94A3B8;
}

/* ===== CONTACTS ===== */

.contacts{
    display:flex;
    flex-wrap:wrap;
    gap:14px 20px;
    margin-top:8px;
}

.contact{
    display:flex;
    align-items:center;
    gap:6px;
    color:#22C55E;
    text-decoration:none;
    font-weight:500;
    transition:.2s;
}

.contacts a:hover{
    color:#4ADE80;
}

.icon{
    width:16px;
    height:16px;
}

.contact:hover .icon{
    transform:scale(1.17);
}

/* ===== FOOTER ===== */

footer{
    text-align:center;
    padding:30px;
    color:#64748B;
    font-size:14px;
}

.cv{
    font-family:"Inter",sans-serif;
    width:100%;
    max-width:800px;
    margin:auto;
    padding:40px;
    background:white;
    color:#111;
    box-sizing:border-box;
}

.cv-header{
    display:flex;
    align-items:center;
    gap:24px;
    margin-bottom:24px;
}

.cv-avatar{
    width:120px;
    height:140px;
    object-fit:cover;
    border-radius:8px;
}

.cv-info{
    flex:1;
}

.cv-contacts{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:6px 18px;
    margin-top:10px;
    font-size:13px;
    color:#333;
}

.cv-contact{
    display:flex;
    align-items:center;
    gap:6px;
    white-space:nowrap;
}

.cv-icon{
    opacity:.7;
}

.cv-summary{
    margin:20px 0;
    line-height:1.7;
    font-size:14px;
    max-width:700px;
    word-break:break-word;
}

.cv-job{
    margin-top:18px;
    page-break-inside:avoid;
    break-inside:avoid;
}

.cv-job ul{
    margin:6px 0;
    padding-left:18px;
    page-break-inside:avoid;
}

.cv-job h3{
    display:flex;
    justify-content:space-between;
    font-size:16px;
    margin-bottom:6px;
}

.cv-stack{
    font-family:"JetBrains Mono",monospace;
    font-size:12px;
    color:#555;
}

.cv-experience{
    page-break-inside:auto;
}

.cv-skills{
    margin-top:24px;
    page-break-inside:avoid;
    break-inside:avoid;
}

.cv-tags{
    display:flex;
    flex-wrap:wrap;
    gap:6px;
    margin-top:8px;
    page-break-inside:auto;
    break-inside:auto;
}

.cv-tag{
    background:#f3f4f6;
    padding:4px 8px;
    border-radius:6px;
    font-size:11px;
    white-space:nowrap;
    page-break-inside:avoid;
    break-inside:avoid;
}

.cv-skills h2{
    font-size:18px;
    margin-bottom:10px;
}

#cv-template{
    position:absolute;
    left:-9999px;
    top:0;
}

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

@media (max-width:768px){
    nav{
        display:flex;
        gap:14px;
    }

    .nav-text{
        display:none;
    }

    .nav-icon{
        display:inline;
    }

    nav a{
        font-size:20px;
    }
    header{
        padding:12px 16px;
    }
    .hero-card{
        width:90%;
        padding:50px 20px 40px;
    }
    .hero-card h1{
        font-size:28px;
    }
    .avatar{
        width:100px;
        height:100px;
    }
    .hero-buttons{
        bottom:-18px;
    }
    .tags{
        gap:8px;
    }
}