*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

:root {
    --whiteblue: #8d4326;
    --bg:         #0c0c0c;
    --surface:    #141414;
    --card:       #1a1a1a;
    --border:     #252525;
    --orange:     #f05a22;
    --text:       #e0e0e0;
    --muted:      #777;
    --white:      #ffffff;
    --grey:       #1b1b1b;
    --radius:     12px;

    --heading:    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%;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}
/*NAVIGATION*/
.navbar-top {
    display: flex;    /*změní prvek na flex kontejner*/
    align-items: center;  /*zarovná flex prvky na střed podél vedlejší osy*/
    justify-content: center; /* pracuje jenom v display flex*/
    gap: 200px;
    padding: 10px 80px;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px); /*ROZMAZANE*/
    background: rgba(12,12,12,0.88);
    border-bottom: 1px solid var(--border);
}

.nav-logo {
    font-size: 30px;
    font-weight: 700;
    color: var(--whiteblue);
    text-decoration: none;
    letter-spacing: .1em;
}

.nav {
    display: flex;
    justify-content: center;
    gap: 60px;
}   
.nav li {
    list-style: none;
}
.nav a {
    text-decoration: none;
    color: var(--muted);
    transition: color .2s; /*plynule přechod*/
    font-size: 18px;
}
.nav a:hover {
    color: var(--white);
}

/*HERO*/
.hero {
    padding: 40px 0 120px 0;
    margin-bottom: 140px;
}
.hero-container {
    display: flex;
    max-width: 1280px;
    width: 100%;
    align-items: center;
    gap: 40px;
}
.hero-text h2 {
    font-size: 70px;
    color: var(--whiteblue);
}
.first{
    font-size: 20px;
}
.second{
    font-size: 28px;
}
.hero-block {
    max-width: 1280px;
    width: 100%;
}
.hero-image {
    max-width: 520px;
    width: 100%;
}
.hero-image img {
    width: 100%;
    height: auto;
    filter: grayscale(100%);

}
/* SOCIALS */
.socials {
    display: flex;
    gap: 14px;
    margin: 30px 0;
}

.instagram,
.linkedin,
.globe,
.behance,
.instagram-bottom {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background-color: var(--grey);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.instagram:hover,
.linkedin:hover,
.globe:hover,
.behance:hover,
.instagram-bottom:hover {
    transform: translateY(-6px);
    border-color: var(--orange);
}

.instagram a,
.linkedin a,
.globe a,
.behance a,
.instagram-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(--whiteblue);
    color: #fff;
    text-decoration: none;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s;
}

.hireme-btn:hover {
    opacity: .85; /*pruhlednost*/
    transform: translateY(-3px); /*posune nahoru*/
}

/* EXPERIENCE BLOCK */
.exp-container {
    width: 100%;
    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-text {
    padding-right: 0;
    text-align: center;
}
.exp-text span {
    color: var(--whiteblue);
    font-size: var(--fs-6);
    font-weight: 700;
    display: block;
}
.exp-text p {
    color: var(--text);
    font-size: 14px;
}
.devider {
    width: 1px;
    height: 50px;
    background-color: var(--muted);
}
/*SERVICES*/
.services {
    margin-bottom: 140px;
}
.main-text {
    text-align: center;
}
.main-text h2 {
    margin-bottom: 20px;
    font-size: var(--heading);
    color: var(--text);
}
.main-text p {
    margin-bottom: 60px;
    font-size: 16px;
}
.services-blocks {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    justify-content: center;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}
.service-block {
    width: 100%;
    max-width: 360px;
    background-color: var(--grey);
    border-radius: 16px;
    padding: 28px 24px;
    transition: border-color .25s, transform .25s;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
}
.service-block:hover {
    border-color: var(--orange);
    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(--orange);
    margin-bottom: 10px;
}
.service-block p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
}
/*ABOUT ME*/
.aboutme {
    margin-bottom: 140px;
}
.about-text {
    text-align: center;
    margin-bottom: 40px;
    font-size:     20px;
}
.about-text h2 {
    margin-bottom: 18px;
    font-size: var(--heading);
    color: var(--text);
}
.about-container {
    max-width: 1300px;
    width: 100%;
    margin-bottom: 80px;
    display: flex;
    gap: 100px;
    align-items: flex-start;
}
.about-container img {
    width: 100%;
    max-width: 400px;
    height: 700px;
    border-radius: var(--radius);
    filter: grayscale(100%);
    object-fit: cover;
}
.about-container p {
    padding: 200px 0 200px;
    max-width: 630px;
    width: 100%;
    line-height: 1.9;
    font-size: 15px;
    font-size: 20px;
}
/*PORTFOLIO*/
.portfolio-container {
    margin-bottom: 100px;
}
.portfolio-container h2 {
    text-align: center;
    font-size: var(--heading);
    color: var(--text);
    margin-bottom: 40px;
}
.portfolio-block{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
}
.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-text{
    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(--orange);
    letter-spacing: .1em;
}

.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: color .2s;
}

.linki a:hover {
    color: var(--text);
}

.contacts {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
    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(--orange);
}

.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-container{
        flex-direction: column;
        text-align: center;
    }
    .socials{
        justify-content: center;
    }
    /*ABOUT ME*/
    .about-container{
        flex-direction: column;
        align-items: center;
    }
    .about-container img{
        order: 1;
    }
    .about-container p{
        order: 2;
    }
}
/*ADAPTIVE PHONE*/
@media (max-width: 430px) {
    /* NAVBAR */
    .navbar-top {
        gap: 0;
        justify-content: space-between;
        padding: 10px 20px;
    }
    .nav {
        display: none;
    }

    /* HERO */
    .hero-block {
        text-align: center;
    }
    .hero-container {
        flex-direction: column; /*směr flex prvku*/
    }
    .hero-text h2 {
        font-size: 50px;
    }
    .hero-text {
        order: 1;
    }
    .socials {
        order: 2;
        justify-content: center;
    }
    .button {
        order: 3;
        margin-top: 30px;
    }
    .hero-image {
        width: 100%;
    }
    .exp-container {
        margin: 40px auto;
    }

    /* ABOUT ME */
    .about-text {
        margin-bottom: 40px;
    }
    .about-text h2 {
        font-size: var(--fs-6);
    }
    .about-container {
        flex-direction: column;
        margin-bottom: 40px;
        gap: 24px;
    }
    .about-container img {
        max-width: 100%;
        order: 1;
    }
    .about-container p {
        font-size: 14px;
        order: 2;
    }
    /*PORTFOLIO*/
    /* FOOTER */
    footer {
        padding: 24px 20px;
    }
    .linki {
        gap: 20px;
    }
    .contacts {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
}