@keyframes loading {
    from { transform: rotate(0); }
    to   { transform: rotate(360deg); }
}

@keyframes icon {
    0%   { transform: translateY(-10px); }
    50%  { transform: translateY(10px); }
    100% { transform: translateY(-10px); }
}

@keyframes arrow-left {
    from { transform: translateX(-17px) rotate(45deg); }
    to   { transform: translateX(-2px) rotate(45deg); }
}

@keyframes arrow-right {
    from { transform: translateX(15px) rotate(45deg); }
    to   { transform: translateX(0) rotate(45deg); }
}

@keyframes heading {
    from { opacity: 0; transform: scale(0.5); }
    to   { opacity: 1; transform: scale(1); }
}

@keyframes subheading {
    from { opacity: 0; transform: translateY(-15px); }
    to   { opacity: 1; transform: translateY(0); }
}


*,*::before,*::after {
    box-sizing: border-box;
    outline: none;
    margin: 0;
    padding: 0;
}

html {
    font-family: Roboto, sans-serif;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.5
}

@media(max-width: 700px) {
    html {
        font-size:15px
    }
}

body {
    background: #000000;
    margin: 0;
    padding: 0;
}

body:not(.loaded),body:not(.loaded) * {
    overflow: hidden;
    pointer-events: none;
    transition: none!important
}

body:not(.loaded) .wrapper * {
    animation-play-state: paused
}

body.loaded .loader {
    opacity: 0;
    visibility: hidden;
    display: none;
}

.loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background: #000000;
    pointer-events: none;
    user-select: none;
    z-index: 999;
    transition: all .5s ease
}

.loader__icon {
    height: 60px;
    width: 60px;
    border: solid 5px;
    border-color: #ff0000 rgba(255,255,255,.05) rgba(255,255,255,.05) rgba(255,255,255,.05);
    border-radius: 50%;
    animation: loading 1s linear infinite
}

.loader img {
    width: 100px;
    height: 100px
}

.header {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden
}

@media(max-width: 500px) {
    .header {
        min-height:auto;
        height: 500px
    }
}

.header__background {
    position: absolute;
    top:  -15%;
    left: -15%;
    background: hsl(0, 0%, 0%);
    background: linear-gradient(rgba(49, 38, 38, 0.75),rgba(36, 25, 25, 0.75));
    width:  120%;
    height: 120%;
    z-index: -1;
    transition: none
}

.header__container {
    max-width: 1100px;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
    width: 100%;
    line-height: 1.15;
    pointer-events: none;
    user-select: none
}

.header h1 {
    background: -webkit-linear-gradient(#ffffff,#fffdfd,#ff0000);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
    margin-left: -6px;
    color: #fff;
    font-size: 4.25rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5rem;
    animation: heading 2s ease both
}

@media(max-width: 700px) {
    .header h1 {
        font-size:3.5rem
    }
}

@media(max-width: 500px) {
    .header h1 {
        font-size:3rem
    }
}

.header .subheading {
    color: rgba(255, 255, 255, 0.75);
    font-size: .9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 5px;
    animation: subheading 2s ease .5s backwards running
}

@media(max-width: 700px) {
    .header .subheading {
        letter-spacing:6px
    }
}

@media(max-width: 500px) {
    .header .subheading {
        letter-spacing:2px
    }
}

.nav {
    position: absolute;
    bottom: -16px;
    left: 0;
    right: 0;
    width: 100%;
    height: 75px;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

@media(max-width: 700px) {
    .nav {
        display:none
    }
}

.nav__container {
    display: inline-block;
    width: auto;
    min-width: 100%;
    height: 100%;
}

.nav__content {
    background: #ac1c1c;
    padding: 0.75rem 1.25rem;
    border-radius: 1rem 1rem 0 0;
    display: inline-block;
    height: 100%;
    white-space: nowrap;
}

.nav__item {
    position: relative;
    margin: 0 1rem;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.25rem;
    text-align: center;
    transition: color .2s ease;
    display: inline-block;
}

.nav__item::after {
    content: '';
    position: absolute;
    background: #ffffff;
    height: 1.5px;
    width: 0;
    bottom: -5px;
    left: 0;
    right: 0;
    transition: width .2s ease
}

.nav__item:hover {
    color: #ffffff
}

.nav__item:hover::after {
    width: calc(96%)
}

.sections {
    background: #ac1c1c;
}


@media(min-width: 700px) {
    .sections {
        padding:2rem 0
    }
}

.section {
    margin: 1rem
}

@media(max-width: 700px) {
    .section {
        margin-left:0;
        margin-right: 0
    }
}

.section__container {
    max-width: 1200px;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto
}

.section__content {
    background: linear-gradient(180deg,#d11a1a,#ca2222);
    padding: 3rem 4rem;
    border-radius: 1rem;
    text-align: justify
}

@media(max-width: 700px) {
    .section__content {
        padding:2rem
    }
}

.section--about .section__content {
    color: rgba(0, 0, 0, 0.8);

}

.section--projects .block__subtitle,
.section--projects .block__description {
    text-align: left;
}

.section--projects .project__tag {
    display: inline-block;
    margin-right: 0.5rem;
}

.section--contact .section__content {
    background: #3f3737;
}

.experience {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 1rem
}

@media(max-width: 1000px) {
    .experience {
        grid-template-columns:1fr
    }
}

.services {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 1rem
}

.knowledge {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-gap: 3rem;
    text-align: center;
}

@media(min-width: 450px) and (max-width: 1000px){
    .knowledge {
        grid-template-columns: 1fr 1fr;
        grid-gap: 2rem;
    }
}


@media(max-width: 450px) {
    .knowledge {
        grid-template-columns: 1fr;
        grid-gap: 1.5rem;
    }
}

@media(max-width: 1000px) {
    .services {
        grid-template-columns:1fr
    }
}

.projects {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(350px,1fr));
    grid-gap: 1rem
}

@media(max-width: 700px) {
    .projects {
        grid-template-columns:1fr
    }
}

.contact {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(350px,1fr));
    grid-gap: 1rem;
    margin-top: 1rem
}

@media(max-width: 700px) {
    .contact {
        grid-template-columns:1fr
    }
}

.footer {
    padding-bottom: 1rem;
}

.footer--copyright {
    padding: 1rem;
    text-align: center;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    background-color: #ac1c1c;
}

.block {
    display: flex;
    flex-direction: column;
    background: rgba(0,0,0,.15);
    height: 100%;
    padding: 1.25rem 1.5rem;
    border-radius: .5rem
}

.block__image {
    position: relative;
    width: 100%;
    display: block;
    background-color: rgba(0,0,0,.2);
    background-size: cover;
    background-position: center 0%;
    background-repeat: no-repeat;
    margin-bottom: 1rem;
    border-radius: .5rem;
    overflow: hidden;
    transition: opacity .2s ease
}

.block__image::before {
    content: '';
    display: block;
    padding-top: calc(9/16 * 100%)
}

.block__image:not([data-status=loaded]) {
    pointer-events: none
}

.block__image>* {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%
}

.block__image__loader {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%
}

.block__image__loader__icon {
    height: 30px;
    width: 30px;
    border: solid 4px;
    border-color: #ff0000 rgba(0, 0, 0, 0.05) rgba(255,255,255,.05) rgba(255,255,255,.05);
    border-radius: 50%;
    animation: loading 2s linear infinite
}

.block__image[data-status=loaded] .block__image__loader {
    display: none
}

a.block__image:hover {
    opacity: .75
}

.block__image img {
    width: 100%;
    border-radius: .5rem
}

.block__logo {
    position: relative;
    margin: 0 auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    margin-top: 1rem;
    min-height: 5rem;
    max-height: 5rem;
    max-width: 5rem;
    min-width: 5rem;
    background-position: center 0%;
    background-repeat: no-repeat;
    margin-bottom: 1rem;
    border-radius: .5rem;
    overflow: hidden;
    transition: opacity .2s ease
}


@media(max-width: 500px) {
    .block__logo {
        position: relative;
        margin: 0 auto;
        display: block;
        margin-left: auto;
        margin-right: auto;
        width: 100%;
        margin-top: 1rem;
        min-height: 4rem;
        max-height: 4rem;
        max-width: 4rem;
        min-width: 4rem;
        background-position: center 0%;
        background-repeat: no-repeat;
        margin-bottom: 1rem;
        border-radius: .5rem;
        overflow: hidden;
        transition: opacity .2s ease
    }
}

.block__logo::before {
    content: '';
    display: block;
    padding-top: calc(9/16 * 100%)
}

.block__logo:not([data-status=loaded]) {
    pointer-events: none
}

.block__logo>* {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%
}

.block__logo__loader {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%
}

.block__logo__loader__icon {
    height: 30px;
    width: 30px;
    border: solid 4px;
    border-color: #ff000d rgba(255,255,255,.05) rgba(255,255,255,.05) rgba(255,255,255,.05);
    border-radius: 50%;
    animation: loading 2s linear infinite
}

.block__logo[data-status=loaded] .block__image__loader {
    display: none
}

a.block__logo:hover {
    opacity: .75
}

.block__logo img {
    width: 100%;
    border-radius: .5rem
}

.block__content {
    display: flex;
    align-items: center;
    margin-bottom: auto
}

.block__title {
    color: rgba(255,255,255,.85);
    font-size: .95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .15rem
}

.block__title a {
    color: rgba(255,255,255,.85);
    transition: color .25s ease
}

.block__title a:hover {
    color: #fff
}

.block__description {
    margin-right: .15rem;
    color: rgba(255,255,255,.6);
    font-size: .85rem;
    font-weight: 400;
    letter-spacing: .1rem
}

.block__link {
    margin-top: 1rem;
    margin-left: auto
}

.block__link a {
    position: relative;
    color: rgba(255,255,255,.65);
    font-size: .9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .25rem
}

.block__link a::after {
    content: '';
    position: absolute;
    background: #fff;
    height: 1.5px;
    width: 0;
    bottom: -5px;
    right: 3px
}

.block__link a:hover::after {
    width: calc(97%);
    left: 0;
    right: auto
}









@media(max-width: 500px) {
    
}





.block--hoverable {
    transition-duration: .5s
}

.block--hoverable:hover {
    background: rgba(255, 0, 0, 0.35)
}









.block--project {
    padding: 1.5rem
}

.block-project .block__content {
    display: block
}

.block--project .block__title {
    font-size: 1.2rem
}

.block--project .block__subtitle {
    color: rgba(255,255,255,.65);
    font-size: .9rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: .1rem
}

.block--project .block__description {
    margin-top: 1rem;
    font-size: .8rem
}

.project-preview {
    width: 1000px;
    max-height: 562px;
    border-radius: .5rem;
    overflow: hidden;
    overflow-y: visible
}

@media(max-width: 1000px) {
    .project-preview {
        width:780px;
        max-height: 450px
    }
}

@media(max-width: 800px) {
    .project-preview {
        width:580px;
        max-height: 337px
    }
}

@media(max-width: 600px) {
    .project-preview {
        width:380px;
        max-height: 600px;
        margin-top: -100px
    }
}

@media(max-width: 400px) {
    .project-preview {
        width:100%;
        max-height: 600px
    }
}

.project-preview img {
    max-width: 100%;
    height: auto;
    margin-bottom: -5px
}

.project-preview::-webkit-scrollbar {
    width: 12px
}

.project-preview::-webkit-scrollbar-track {
    background: #000000
}

.project-preview::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,.25);
    border: solid 4px #ff0000;
    border-radius: 12px
}

.project-preview::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,.5)
}

.project__tag {
    display: inline-block;
    color: white;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.15rem 0.5rem;
    border-radius: 0.25rem;
    margin: 0.25rem 0;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
}

.project__tag[lang-tag="php"] {
    background-color: #4F5B93;
}

.project__tag[lang-tag="dotnet"] {
    background-color: #AA1EF1; 
}

.project__tag[lang-tag="java"] {
    background-color: #EA6625; 
}

.project__tag[lang-tag="javascript"] {
    background-color: #f7df1e;
    color: black;
}

.project__tag[lang-tag="html"] {
    background-color: #e34c26;
}

.project__tag[lang-tag="css"] {
    background-color: #264de4;
}

.project__tag[lang-tag="blazor"] {
    background-color: #fd0410;
}

.project__tag[lang-tag="mysql"] {
    background-color: #0ea7ee;
}

.project__tag[lang-tag="mariadb"] {
    background-color: #0066CC;
}

.project__tag[lang-tag="docker"] {
    background-color: #0474a8;
}

.project__tag[lang-tag="kubernetes"] {
    background-color: #0eee51;
}

.project__tag[lang-tag="jenkins"] {
    background-color: #ee0e33;
}

.project__tag[lang-tag="wordpress"] {
    background-color: #37393a;
}

.container {
    max-width: 1100px;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto
}

h2 {
    position: relative;
    display: block;
    margin: 0 auto 1.75rem auto;
    color: #fff;
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    text-shadow: 2px 2px 1px #000;
    letter-spacing: .5rem;
    pointer-events: none;
    user-select: none;
    width: fit-content;
}

h2::before, h2::after {
    content: '';
    position: absolute;
    top: 14px;
    width: 10px;
    height: 10px;
    border: solid 4px rgba(255,255,255,.5);
}

h2::before {
    left: -32px;
    border-left: 0;
    border-bottom: 0;
    animation: arrow-left 2s ease-in-out infinite alternate;
}

h2::after {
    right: -32px;
    border-right: 0;
    border-top: 0;
    animation: arrow-right 2s ease-in-out infinite alternate;
}

@media(max-width: 700px) {
    h2 {
        font-size: 1.5rem;
    }

    h2::before, h2::after {
        display: none;
    }
}

p {
    margin: 0;
    color: rgba(255,255,255,.7);
    line-height: 1.75;
}

a {
    color: inherit;
    text-decoration: none
}

small {
    font-size: .75em;
    font-weight: 400;
    opacity: .75
}

::-webkit-scrollbar {
    width: 10px
}

::-webkit-scrollbar-track {
    background: rgb(31, 26, 26)
}

::-webkit-scrollbar-thumb {
    background: #d80b2d;
    border: solid 3px rgb(49, 39, 39);
    border-radius: 5px
}

::-webkit-scrollbar-thumb:hover {
    background: #d80b2d;
}

@media(max-width: 700px) {
    .nav {
        position: static;
        height: auto;
        display: flex;
        justify-content: center;
        padding: 1rem 0;
    }

    .nav__content {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        background: #ac1c1c;
        border-radius: 1rem;
        padding: 1rem;
    }

    .nav__item {
        display: block;
        width: 12rem;
        margin: 1rem;
        font-size: 1rem;
        letter-spacing: 0.1rem;
    }

    .section {
        margin: -1rem
    }
}