
* {
    margin: 0 ;
    padding: 0;
    box-sizing: border-box;
}
:root {
    --og:         #a64d2a;
    --bg:         #0c0c0c;
    --border:     #252525;
    --text:       #d6cbcb;
    --muted:      #777;
    --grey:       #1b1b1b;
    --radius:     12px;

    --h2:    42px;
    --fs-def:     20px;
    --fs-6:       24px;
}
/*BASE*/
html {
    background-color: var(--bg);
    color: var(--muted);
    scroll-behavior: smooth;
}
.main-container {
    max-width: 1440px;
    width: 100%;
    padding: 0 24px;
    margin: 0 auto;
}
/*NAVIGATION*/
.navbar-top {
    white-space: nowrap;
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    padding: 10px 80px;
    position: sticky;
    top: 0;
    gap: 20px;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(12,12,12,0.88);
    border-bottom: 1px solid var(--border);
}
.hireme-btn-top{
    padding: 12px 40px;
    white-space: nowrap;
    background-color: var(--og);
    color: var(--text);
    text-decoration: none;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 15px;
}
.nav-logo {
    font-size: 30px;
    font-weight: 700;
    color: var(--og);
    text-decoration: none;
    letter-spacing: 2px;
}
.nav {
    display: flex;
    justify-content: center;
    gap: 30px;
}   
.nav li {
    list-style: none;
}
.nav a {
    text-decoration: none;
    color: var(--muted);
    transition: color .2s;
    font-size: 18px;
}
.nav a:hover {
    color: var(--text);
}
/*HERO*/
.hero {
    padding: 40px 0 120px 0; /**/
}
.hero-all {
    display: flex;
    align-items: center;
    gap: 40px;
}
.hero-txt h2 {
    font-size: 70px;
    color: var(--og);
    font-family:Space grotesk, sans-serif;
}
.first{
    font-size: 20px;
    margin-bottom: 5px;
}
.second{
    font-size: 28px;
    margin-bottom: 15px;
}
.hero-block {
    width: 100%;
}
.hero-image {
    max-width: 400px;
    width: 100%;
}
.hero-image img {
    width: 100%;
    filter: grayscale(50%);

}
/* SOCIALS */
.socials {
    display: flex;
    gap: 14px;
    margin: 30px 0;
}
.instagram,
.linkedin,
.github,
.instagram-bottom,
.linkedin-bottom,
.github-bottom {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--muted);
    background-color: var(--grey);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}
.instagram:hover,
.linkedin:hover,
.github:hover,
.github-bottom:hover,
.linkedin-bottom:hover,
.instagram-bottom:hover {
    transform: translateY(-6px);
}
.instagram a,
.linkedin a,
.globe a,
.instagram-bottom a,
.linkedin-bottom a,
.github-bottom a{
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}
/* HIRE ME BUTTON */
.button {
    margin-top: 60px;
}
.hireme-btn {
    display: inline-block;
    padding: 14px 36px;
    background-color: var(--og);
    color: var(--text);
    text-decoration: none;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 15px;
    transition: 0.3s;
}

.hireme-btn:hover {
    opacity: .85; 
    transform: translateY(-3px); 
}
/* EXPERIENCE BLOCK */
.exp-all {
    max-width: 320px;
    background-color: var(--grey);
    padding: 22px 28px;
    margin: 60px 0;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
}
.exp-block {
    display: flex;
    gap: 24px;
    align-items: center;
}
.exp-txt {
    text-align: center;
}
.exp-txt span {
    color: var(--og);
    font-size: var(--fs-6);
    font-weight: 700;
    display: block;
}
.exp-txt p {
    color: var(--text);
    font-size: 16px;
}
.devider {
    width: 1px;
    height: 50px;
    background-color: var(--muted);
}
/*SERVICES*/
.services {
    margin-bottom: 100px;
}
.main-txt {
    text-align: center;
}
.main-txt h2 {
    font-size: var(--h2);
    color: var(--text);
}
.main-txt p {
    margin-bottom: 60px;
    font-size: 20px;
    line-height: 1.6;
}
.services-blocks {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    justify-content: center;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}
.service-block {
    width: 100%;
    max-width: 360px;
    height: 240px;
    background-color: var(--grey);
    border-radius: 16px;
    padding: 28px 24px;
    transition: .25s;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
}
.service-block:hover {
    border-color: var(--og);
    transform: translateY(-4px);
}
.service-icon {
    width: 50px;
    height: 50px;
    background: rgba(240,90,34,0.10);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.service-block h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--og);
    margin-bottom: 10px;
}
.service-block p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
}
/*ABOUT ME*/
.aboutme {
    margin-bottom: 100px;
}
.about-txt {
    text-align: center;
    margin-bottom: 40px;
    font-size:     20px;
}
.about-txt h2 {
    font-size: var(--h2);
    color: var(--text);
}
.about-txt p{
    font-size: 20px;
    line-height: 1.6;
}
.about-container {
    max-width: 1300px;
    width: 100%;
    margin-bottom: 80px;
    display: flex;
    justify-content: center;
    gap: 100px;
}
.about-container img {
    width: 100%;
    max-width: 400px;
    border-radius: var(--radius);
    filter: grayscale(50%);
    object-fit: cover;
}
.about-container p {
    max-width: 630px;
    width: 100%;
    line-height: 1.9;
    font-size: 20px;
    font-family: Inter, sans-serif;
}
/*PORTFOLIO*/
.portfolio-container {
    margin-bottom: 100px;
}
.portfolio-block{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}
.portfolio-txt{
    text-align: center;
    margin-bottom: 40px;
}
.portfolio-txt h2{
    text-align: center;
    font-size: var(--h2);
    color: var(--text);
}
.portfolio-txt p{
    font-size: 20px;
    line-height: 1.6;
}
.project{
    max-width: 400px;
    width: 100%;
    height: 420px;
    background-color: var(--grey);
    border-radius: 30px;
}
.project a{
    text-decoration: none;
}
.project img{
    max-width: 100%;
    width: 100%;
    border-radius: 30px 30px 0 0;
    height: 370px;
    filter: grayscale(50%);
    object-fit: cover;
}
.project-txt{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}
.name{
    color: #777;
    font-size: 18px;
}
.language{
    color: #8d4326;
    font-size: 18px;
}
.project:hover{
    transform: scale(1.05);
    transition: 0.4s;
}
/*FOOTER*/
footer {
    width: 100%;
    background-color: var(--grey);
    padding: 40px 80px 20px 80px;
}
.footer-logo {
    margin-bottom: 30px;
    text-align: center;
}
.footer-web {
    text-decoration: none;
    font-size: 32px;
    font-weight: 700;
    color: var(--og);
    letter-spacing: 2px;
}
.footer-nav {
    text-align: center;
    margin-bottom: 30px;
}
.linki {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}
.linki a {
    text-decoration: none;
    color: var(--muted);
    transition: .2s;
}
.linki a:hover {
    color: var(--text);
}

.contacts {
    display: flex;
    gap: 40px;
    justify-content: center;
    margin-bottom: 30px;
}

.contacts a {
    text-decoration: none;
    color: var(--muted);
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color .2s;
}

.contacts a:hover {
    color: var(--og);
}

.bottom-line {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

hr {
    width: 100%;
    max-width: 600px;
    border-color: var(--border);
}

.copyright {
    text-align: center;
    font-size: 14px;
    color: var(--muted);
}
/* SOCIALS BOTTOM */
.socials-bottom {
    display: flex;
    gap: 14px;
    justify-content: center;
    margin-bottom: 30px;
}
/*ADAPTIVE TABLET*/

@media  (max-width:770px){
    /*NAVBAR*/
    .navbar-top{
        justify-content: space-between;
    }
    .nav{
        display: none;
    }
    /*HERO*/
    .hero-block {
        text-align: center;
    }
    .hero-all {
        flex-direction: column; 
    }
    .hero-txt h2 {
        font-size: 50px;
    }
    .hero-txt {
        order: 1;
    }
    .socials {
        order: 2;
        justify-content: center;
    }
    .button {
        order: 3;
        margin-top: 30px;
    }
    .hero-image {
        width: 100%;
    }
    .exp-all {
        margin: 40px auto;
    }
    /*ABOUT ME*/
    .about-container{
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .about-container img{
        order: 1;
    }
    .about-container p{
        order: 2;
    }
}
/*ADAPTIVE PHONE*/
@media (max-width: 560px) {
    /* NAVBAR */
    .navbar-top {
        gap: 0;
        padding: 10px 20px;
    }
    .nav {
        display: none;
    }

    /* HERO */
    .hero-block {
        text-align: center;
    }
    .hero-txt h2 {
        font-size: 50px;
    }
    .socials {
        justify-content: center;
    }
    .button {
        margin-top: 30px;
    }
    .hero-image {
        width: 100%;
    }
    .exp-all {
        margin: 40px auto;
    }

    /* ABOUT ME */
    .about-txt {
        margin-bottom: 40px;
    }
    .about-txt h2 {
        font-size: var(--fs-6);
    }
    .about-container {
        margin-bottom: 40px;
        gap: 24px;
    }
    .about-container img {
        max-width: 100%;
    }
    .about-container p {
        font-size: 14px;
    }
    /*SERVICES*/
    .main-txt h2{
        font-size: var(--fs-6);
    }
    .services-blocks{
        grid-template-columns: repeat(2, 1fr);
        margin: 0 auto;
        width: fit-content;
    }
    .service-block{
        max-width: 180px;
        padding: 20px;
    }
    .service-block p{
        line-height: 1.2;
    }
    /*PORTFOLIO*/
    .portfolio-block{
        flex-direction: column;
    }
    .project{
        max-width: 300px;
        height: 320px;
    }
    .project img{
        height: 280px;
        width: 100%;
    }
    .project-txt{
        padding: 5px 15px;
    }
    .name{
        font-size: 16px;
    }
    .language{
        font-size: 16px;
    }
    /* FOOTER */
    footer {
        padding: 24px 20px;
    }
    .linki {
        gap: 20px;
    }
    .contacts {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
}