@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:'Inter',sans-serif;
    background:#f8f8f8;
    color:#111;
}

header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding: 0px 70px;
}

.logo h2{
    font-size:38px;
    letter-spacing:8px;
}

.logo span{
    font-size:14px;
    letter-spacing:5px;
}

nav{
    display:flex;
    gap:40px;
}

nav a{
    text-decoration:none;
    color:#111;
    font-weight:500;
}

nav .active{
    border-bottom:2px solid #111;
    padding-bottom:10px;
}

.header-right{
    display:flex;
    align-items:center;
    gap:20px;
}

.header-right a{
    color:#111;
    font-size:18px;
}

.status{
    margin-left:20px;
    display:flex;
    align-items:center;
    gap:10px;
    font-size:13px;
}

.status span{
    width:10px;
    height:10px;
    background:#111;
    border-radius:50%;
}

main{
    display:grid;
    grid-template-columns: 38% 62%;
    gap:50px;
    padding: 40px 70px 0px;
}

.hero h1{
    font-size: 46px;
    line-height:0.95;
    font-weight:900;
    margin-bottom:30px;
}

.hero p{
    letter-spacing:5px;
    color:#555;
}

.about,
.skills,
.contact{
    margin-top: 40px;
}

.about h2,
.skills h2,
.contact h2,
.projects-header h2{
    margin-bottom:25px;
    font-size: 22px;
}

.about p{
    margin-bottom: 16px;
    line-height:1.8;
    color:#444;
}

.cv-btn{
    margin-top:20px;
    padding:15px 30px;
    border:1px solid #111;
    background:white;
    cursor:pointer;
    display:flex;
    gap:10px;
    align-items:center;
}

.skill-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:30px;
}

.skill{
    text-align:center;
}

.skill i{
    font-size:45px;
    margin-bottom:10px;
}

.contact-list{
    display:grid;
    gap:20px;
}

.contact-list div{
    display:flex;
    align-items:center;
    gap:12px;
}

.projects-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:30px;
}

.project-card img{
    width:100%;
    height:250px;
    object-fit:cover;
    border-radius:15px;
}

.project-card h3{
    margin-top:15px;
    font-size: 19px;
}

.project-card p{
    margin:10px 0;
    color:#555;
}

.project-card span{
    letter-spacing:4px;
    font-size:13px;
    font-weight:700;
}

.stats{
    margin-top:60px;
    display:grid;
    grid-template-columns:repeat(4,1fr);
    border:1px solid #ddd;
    border-radius:15px;
    overflow:hidden;
}

.stat{
    text-align:center;
    padding:40px;
    background:white;
}

.stat i{
    font-size:30px;
    margin-bottom:15px;
}

.stat h3{
    font-size:45px;
}

.quote{
    margin-top:70px;
    text-align:center;
}

.quote span{
    font-size:70px;
    color:#ccc;
}

.quote p{
    font-size:24px;
    letter-spacing:4px;
}

footer{
    color:#777;
}

#topBtn{
    position:fixed;
    right:40px;
    bottom:40px;
    width:55px;
    height:55px;
    border:none;
    border-radius:50%;
    background:#111;
    color:white;
    cursor:pointer;
    display:none;
}

.bg-elements{
    position:fixed;
    width:100%;
    height:100%;
    pointer-events:none;
    overflow:hidden;
}

.bg-elements span{
    position:absolute;
    color:#e5e5e5;
    font-weight:700;
    transform:rotate(-30deg);
}

.bg-elements span:nth-child(1){top:100px;left:50px;}
.bg-elements span:nth-child(2){top:150px;left:400px;}
.bg-elements span:nth-child(3){top:120px;left:800px;}
.bg-elements span:nth-child(4){top:200px;left:1100px;}
.bg-elements span:nth-child(5){top:450px;left:500px;}
.bg-elements span:nth-child(6){top:700px;left:700px;}
.bg-elements span:nth-child(7){top:550px;left:900px;}
.bg-elements span:nth-child(8){top:850px;left:350px;}

@media(max-width:1200px){

    main{
        grid-template-columns:1fr;
    }

    .hero h1{
        font-size:70px;
    }

    .projects-grid{
        grid-template-columns:1fr;
    }

    .stats{
        grid-template-columns:repeat(2,1fr);
    }

}



.skills-grid{
    display:grid;
    grid-template-columns:repeat(6,1fr);
    gap:50px;
    margin-top:30px;
}

.skill-card{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    text-align:center;
    cursor:pointer;
    transition:.3s;
}

.skill-card i{
    font-size:58px;
    color:#111;
    margin-bottom:15px;
}

.skill-card span{
    font-size:16px;
    font-weight:500;
    letter-spacing:1px;
    color:#111;
}

.skill-card:hover{
    transform:translateY(-5px);
}

.skill-card:hover i{
    transform:scale(1.1);
    transition:.3s;
}

@media(max-width:992px){
    .skills-grid{
        grid-template-columns:repeat(3,1fr);
    }
}

@media(max-width:576px){
    .skills-grid{
        grid-template-columns:repeat(2,1fr);
    }
}


.contact-section{
    margin-top:60px;
}

.section-title{
    font-size: 22px;
    text-transform:uppercase;
    margin-bottom:35px;
    position:relative;
}

.section-title::after{
    content:'';
    position:absolute;
    left:0;
    bottom:-12px;
    width:40px;
    height:2px;
    background:#111;
}

.contact-grid{
    display:grid;
    grid-template-columns:repeat(2, minmax(250px, 1fr));
    gap:28px 80px;
    max-width:700px;
}

.contact-item{
    display:flex;
    align-items:center;
    gap:18px;
    font-size: 16px;
    color:#111;
}

.contact-item i{
    width: 18px;
    font-size: 18px;
    text-align:center;
    flex-shrink:0;
}

.contact-item span{
    font-weight:400;
}

.contact-item:hover{
    transform:translateX(5px);
    transition:.3s ease;
}

@media (max-width:768px){

    .contact-grid{
        grid-template-columns:1fr;
        gap:20px;
    }

    .contact-item{
        font-size:18px;
    }

}


.stats-section{
    margin-top:60px;
}

.stats-container{
    display:grid;
    grid-template-columns:repeat(4, 1fr);

    background:#fff;
    border:1px solid #dcdcdc;
    border-radius:12px;
    overflow:hidden;
}

.stat-card{
    display:flex;
    align-items:flex-start;
    gap:20px;

    padding:28px 35px;

    position:relative;
}

.stat-card:not(:last-child)::after{
    content:'';
    position:absolute;
    top:25px;
    right:0;
    width:1px;
    height:65px;
    background:#e3e3e3;
}

.stat-card i{
    font-size:42px;
    color:#111;
    margin-top:5px;
}

.stat-content h3{
    font-size: 31px;
    line-height:1;
    margin-bottom:12px;
    color:#111;
}

.stat-content p{
    font-size:18px;
    line-height:1.5;
    text-transform:uppercase;
    letter-spacing:0.5px;
    color:#222;
}

@media(max-width:1200px){

    .stats-container{
        grid-template-columns:repeat(2,1fr);
    }

    .stat-card:nth-child(2)::after{
        display:none;
    }
}

@media(max-width:768px){

    .stats-container{
        grid-template-columns:1fr;
    }

    .stat-card::after{
        display:none;
    }

    .stat-card{
        border-bottom:1px solid #e5e5e5;
    }

    .stat-card:last-child{
        border-bottom:none;
    }

    .stat-content h3{
        font-size:42px;
    }
}


.footer{
    padding: 0 70px 0px;
    display:grid;
    grid-template-columns:1fr auto 1fr;
    align-items:center;
    position:relative;
    margin-top: 150px;
}

.footer-left{
    font-size: 16px;
    color:#444;
}

.footer-center{
    display:flex;
    align-items:center;
    gap:45px;
}

.quote-mark{
    font-size:70px;
    color:#bcbcbc;
    line-height:1;
    font-weight:700;
}

.footer-quote{
    font-size: 16px;
    line-height:1.9;
    letter-spacing:8px;
    text-transform:uppercase;
    color:#222;
    text-align:left;
}

.footer-right{
    display:flex;
    justify-content:flex-end;
}

.back-top{
    display:flex;
    align-items:center;
    gap:15px;

    text-decoration:none;
    color:#111;

    font-size:16px;
    letter-spacing:3px;
    text-transform:uppercase;
    transition:.3s;
}

.back-top i{
    font-size:18px;
}

.back-top:hover{
    transform:translateY(-3px);
}

@media(max-width:1200px){

    .footer{
        grid-template-columns:1fr;
        gap:35px;
        text-align:center;
    }

    .footer-center{
        justify-content:center;
        flex-wrap:wrap;
    }

    .footer-right{
        justify-content:center;
    }

    .footer-quote{
        text-align:center;
        letter-spacing:4px;
    }

}

.project-card img{
    width:100%;
    height:280px;
    object-fit:cover;
    border-radius:18px;
    transition:.3s;
}

.project-card:hover img{
    transform:scale(1.03);
}

.section-header h2{
    font-size:56px;
    font-weight:800;
    margin-bottom:15px;
}

.line{
    width:50px;
    height:2px;
    background:#111;
    margin-bottom:40px;
}

.project-card-single img{
    width:100%;
    max-width:780px;
    display:block;
    margin:0 auto 40px;
}

.project-content h3{
    font-size:48px;
    font-weight:700;
    margin-bottom:20px;
}

.project-content p{
    font-size:24px;
    line-height:1.7;
    color:#666;
    max-width:700px;
    margin:0 auto 35px;
}

.project-stack{
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:20px;
}

.project-stack span{

    font-size:18px;
    font-weight:700;
    letter-spacing:4px;

    color:#111;
}

@media(max-width:768px){

    .project-card-single{
        padding:30px;
    }

    .project-content h3{
        font-size:34px;
    }

    .project-content p{
        font-size:18px;
    }

    .project-stack{
        gap:12px;
    }

    .project-stack span{
        font-size:14px;
        letter-spacing:2px;
    }

}



.navbar{
    display:flex;
    gap:40px;
    align-items:center;
}

.navbar a{
    display:flex;
    align-items:center;
    gap:10px;

    text-decoration:none;
    color:#111;

    font-size:18px;
    font-weight:500;

    padding-bottom:10px;
    transition:.3s;
}

.navbar a i{
    font-size:16px;
}

.navbar a.active{
    border-bottom:2px solid #111;
}

.navbar a:hover{
    transform:translateY(-2px);
}



/* =========================================
   FLOATING TECH — INDEX
   Движение снизу вверх
   ========================================= */

.floating-tech {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: 100vh;

    overflow: hidden;
    pointer-events: none;

    z-index: -1;
}

.tech-word {
    position: absolute;

    bottom: -120px;
    left: 0;

    color: #e9e9e9;
    font-weight: 800;
    white-space: nowrap;

    pointer-events: none;
    user-select: none;

    animation: floatingTechUp linear forwards;
}

@keyframes floatingTechUp {

    0% {
        transform: translateY(0) rotate(-18deg);
        opacity: 0;
    }

    10% {
        opacity: 0.7;
    }

    50% {
        opacity: 0.7;
    }

    90% {
        opacity: 0.7;
    }

    100% {
        transform: translateY(calc(-100vh - 250px)) rotate(-18deg);
        opacity: 0;
    }
}

.contact-item a {
    color: inherit;
    text-decoration: none;
}

.contact-item a:visited {
    color: inherit;
}

.contact-item a:hover {
    color: inherit;
    text-decoration: none;
}