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

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Inter',sans-serif;
    background:#040816;
    color:white;
    overflow-x:hidden;
}

.gradient-bg{
    position:fixed;
    width:100%;
    height:100%;
    background:
            radial-gradient(circle at 20% 20%, rgba(45,85,255,0.25), transparent 35%),
            radial-gradient(circle at 80% 30%, rgba(132,0,255,0.18), transparent 35%),
            radial-gradient(circle at 50% 80%, rgba(0,255,170,0.12), transparent 40%);
    z-index:-3;
}

.noise{
    position:fixed;
    width:100%;
    height:100%;
    background-image:url("https://grainy-gradients.vercel.app/noise.svg");
    opacity:0.08;
    z-index:-2;
}

#particles{
    position:fixed;
    width:100%;
    height:100%;
    overflow:hidden;
    z-index:-1;
}

.particle{
    position:absolute;
    width:4px;
    height:4px;
    background:white;
    border-radius:50%;
    opacity:0.15;
    animation:floatParticle linear infinite;
}

@keyframes floatParticle{
    from{
        transform:translateY(100vh);
    }
    to{
        transform:translateY(-100px);
    }
}

.header{
    position:fixed;
    width:100%;
    top:0;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:24px 8%;
    backdrop-filter:blur(18px);
    background:rgba(0,0,0,0.15);
    z-index:100;
}

.logo{
    font-size:24px;
    font-weight:800;
    letter-spacing:3px;
}

nav{
    display:flex;
    gap:35px;
}

nav a{
    color:white;
    text-decoration:none;
    opacity:0.8;
    transition:0.3s;
}

nav a:hover{
    opacity:1;
}

.hero{
    min-height:auto;
    display:grid;
    grid-template-columns:1.1fr 0.9fr;
    align-items:center;
    gap:60px;

    padding-top:140px;
    padding-bottom:80px;

    padding-left:8%;
    padding-right:8%;

    max-width:1600px;
    margin:auto;
}

.hero-left{
    max-width:720px;
}

.badge{
    display:inline-block;
    padding:12px 22px;
    border-radius:40px;
    border:1px solid rgba(255,255,255,0.12);
    background:rgba(255,255,255,0.04);
    margin-bottom:30px;
    color:#8fa7ff;
}

.hero h1{
    font-size:64px;
    line-height:1.05;
    margin-bottom:28px;
    font-weight:800;
}

.hero-description{
    color:#b8c0da;
    line-height:1.8;
    font-size:20px;
    max-width:650px;
}

.hero-person{
    margin-top:40px;
}

.hero-person h3{
    font-size:28px;
    margin-bottom:10px;
}

.hero-person p{
    color:#aab2d0;
    line-height:1.7;
}

.contacts{
    margin-top:28px;
    display:flex;
    flex-direction:column;
    gap:12px;
}

.contacts a{
    color:#7fa3ff;
    text-decoration:none;
    font-size:18px;
}

.hero-buttons{
    margin-top:45px;
    display:flex;
    gap:20px;
}

.btn-primary,
.btn-secondary{
    padding:18px 30px;
    border-radius:16px;
    text-decoration:none;
    transition:0.35s;
    font-weight:600;
}

.btn-primary{
    background:linear-gradient(135deg,#4f6cff,#7a5cff);
    color:white;
    box-shadow:0 10px 30px rgba(79,108,255,0.35);
}

.btn-primary:hover{
    transform:translateY(-4px) scale(1.02);
}

.btn-secondary{
    border:1px solid rgba(255,255,255,0.12);
    color:white;
    background:rgba(255,255,255,0.03);
}

.glass-card{
    width:480px;
    background:rgba(255,255,255,0.06);
    border:1px solid rgba(255,255,255,0.1);
    backdrop-filter:blur(24px);
    border-radius:30px;
    overflow:hidden;
    box-shadow:0 20px 80px rgba(0,0,0,0.45);
}

.window-buttons{
    display:flex;
    gap:10px;
    padding:18px;
    background:rgba(255,255,255,0.03);
}

.window-buttons span{
    width:12px;
    height:12px;
    border-radius:50%;
    background:#666;
}

pre{
    padding:40px;
    color:#8cffbc;
    line-height:2;
    font-size:16px;
}

.floating{
    animation:floating 6s ease-in-out infinite;
}

@keyframes floating{
    0%{
        transform:translateY(0px);
    }
    50%{
        transform:translateY(-18px);
    }
    100%{
        transform:translateY(0px);
    }
}

.features,
.services,
.portfolio,
.about,
.contact{
    padding:80px 8%;
    max-width:1600px;
    margin:auto;
}
.features{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:30px;
}

.feature-card,
.service-card,
.project-card,
.about-box,
.contact-card{
    background:rgba(255,255,255,0.05);
    border:1px solid rgba(255,255,255,0.08);
    border-radius:28px;
    padding:35px;
    backdrop-filter:blur(20px);
    transition:0.4s;
}

.feature-card:hover,
.service-card:hover,
.project-card:hover{
    transform:translateY(-8px);
    border-color:rgba(120,140,255,0.45);
}

.section-title{
    font-size:52px;
    font-weight:800;
    margin-bottom:60px;
}

.services-grid,
.portfolio-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
    gap:30px;
}

.service-card h3,
.project-card h3{
    margin-bottom:18px;
    font-size:24px;
}

.service-card p,
.project-card p,
.feature-card p,
.about-box p,
.contact-card p{
    color:#b6bed8;
    line-height:1.8;
}

.project-card img{
    width:100%;
    height:240px;
    object-fit:cover;
    border-radius:18px;
    margin-bottom:22px;
}

.about-box h2,
.contact-card h2{
    font-size:46px;
    margin-bottom:28px;
}

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

footer{
    text-align:center;
    padding:50px;
    color:#6d7697;
    line-height:1.8;
}

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

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

@media(max-width:1100px){

    .hero{
        grid-template-columns:1fr;
        text-align:center;
        padding-top:120px;
    }

    .hero-left{
        margin:auto;
    }

    .hero-buttons{
        justify-content:center;
    }

    .contacts{
        align-items:center;
    }

    .glass-card{
        width:100%;
        max-width:650px;
    }

    .about-me-container{
        grid-template-columns:1fr;
    }

}

@media(max-width:768px){

    nav{
        display:none;
    }

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

    .section-title{
        font-size:38px;
    }

    .about-box h2,
    .contact-card h2{
        font-size:34px;
    }

    .contact-buttons{
        flex-direction:column;
    }

}

.about-me-section{
    padding:80px 8%;
    max-width:1600px;
    margin:auto;
}

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

.about-me-container{
    display:grid;
    grid-template-columns:1.1fr 0.9fr;
    gap:40px;
    align-items:start;
}

.small-tag{
    display:inline-block;
    padding:10px 18px;
    border-radius:40px;
    background:rgba(255,255,255,0.05);
    border:1px solid rgba(255,255,255,0.08);
    margin-bottom:24px;
    color:#8fa7ff;
    font-size:14px;
    letter-spacing:1px;
}

.about-left h2{
    font-size:56px;
    line-height:1.1;
    margin-bottom:30px;
    font-weight:800;
}

.about-left p{
    color:#b8c0da;
    line-height:1.9;
    margin-bottom:22px;
    font-size:17px;
}

.profile-card{
    position:relative;
    background:rgba(255,255,255,0.05);
    border:1px solid rgba(255,255,255,0.08);
    border-radius:26px;
    max-width:420px;
    margin:auto;
    overflow:hidden;
    backdrop-filter:blur(20px);
    margin-bottom:30px;
    transition:0.4s;
}

.profile-card:hover{
    transform:translateY(-8px);
}

.profile-glow{
    position:absolute;
    width:300px;
    height:300px;
    background:radial-gradient(circle,rgba(88,110,255,0.35),transparent 70%);
    top:-120px;
    right:-120px;
}

.profile-card img{
    width:100%;
    height:320px;
    object-fit:cover;
    object-position:center top;
    filter:contrast(1.05) brightness(0.92);
}

.profile-info{
    padding:30px;
}

.profile-info h3{
    font-size:30px;
    margin-bottom:12px;
}

.profile-info span{
    color:#91a6ff;
    line-height:1.6;
}

.mini-cards{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:20px;
}

.mini-card{
    background:rgba(255,255,255,0.05);
    border:1px solid rgba(255,255,255,0.08);
    border-radius:24px;
    padding:24px;
    backdrop-filter:blur(18px);
    transition:0.35s;
}

.mini-card:hover{
    transform:translateY(-6px);
    border-color:rgba(120,140,255,0.4);
}

.mini-card h4{
    margin-bottom:12px;
    font-size:20px;
}

.mini-card p{
    color:#b8c0da;
    line-height:1.7;
    font-size:15px;
}

@media(max-width:1100px){

    .about-me-container{
        grid-template-columns:1fr;
    }

    .about-left h2{
        font-size:42px;
    }

}

@media(max-width:700px){

    .mini-cards{
        grid-template-columns:1fr;
    }

    .about-left h2{
        font-size:34px;
    }

}

.profile-card{
    position:relative;
    overflow:hidden;
}

.profile-card::after{
    content:"";
    position:absolute;
    inset:0;
    background:
            linear-gradient(
                    to top,
                    rgba(0,0,0,0.45),
                    rgba(0,0,0,0.05)
            );
    pointer-events:none;
}

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

.profile-card img{
    transition:1.2s ease;
}