body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    width: 100%;
    height: 100%;
    background-color: #000000;
    font-family: 'Chillax', sans-serif;

}

html {
    scroll-behavior: smooth;
}

#fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgb(0, 0, 0);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 2rem;
}


.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgb(0, 0, 0);
    transition: background 0.3s, backdrop-filter 0.3s;
    padding: 10px;
    text-align: center;
    z-index: 10;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.header.loaded {
    opacity: 1;
    transform: translateY(0);
}

.header nav {
    margin-top: 1%;
    display: flex;
    justify-content: space-between;
    align-items: center;

}

.header h1 {
    margin: 0;
    color: white;
    margin-left: 10%;
}

#mihov {
    transition: color 1s ease;
}

.header ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.header li {
    margin-left: 15px;
}

.header a {
    text-decoration: none;
    color: white;
}

#animated-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.header.scrolled {
    backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.5);
}


.menu-icon {
    display: none;
    flex-direction: column;
    cursor: pointer;
    position: relative;
    z-index: 15;
    margin: 0% 3% 0 0;
}

.menu-icon .bar {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 4px 0;
    transition: 0.3s;

}

#nav-list {
    display: flex;

}

#nav-list.active {
    transform: translateX(-100%);
}

#nav-list a {
    transition: all 0.6s ease;
}

#nav-list a:hover {
    color: rgb(241, 106, 80);
    transform: translateX(5px);
}

.header.scrolled {
    backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    .header #yovo {
        margin: 0;
        color: white;
        transition: color 1s ease;
        margin-left: 3%;
    }

    .menu-icon {
        display: flex;
    }

    #nav-list {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        list-style: none;
        margin: 0;
        padding: 0;
        position: fixed;
        top: 0;
        left: 100%;
        width: 100vw;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.9);
        transition: transform 0.4s ease-in-out;
        z-index: 5;
    }

    #nav-list.active {
        transform: translateX(-100%);
    }

    #nav-list li {
        margin: 25px 0;
    }

    #nav-list a {
        font-size: 24px;
    }

    .menu-icon.open .bar:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .menu-icon.open .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-icon.open .bar:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
}


#p-intro {
    text-align: left;
    font-family: 'Chillax', sans-serif;
    position: relative;
}


.intro li {
    line-height: 26px;
    list-style: none;
}








.reveal-text {
    opacity: 0;
    cursor: pointer;
    transition: all 0.6s ease;
}

.reveal-text:hover {
    color: rgb(241, 106, 80);
    transform: translateX(5px);
}

@keyframes clip-text {
    from {
        clip-path: inset(0 100% 0 0);
    }

    to {
        clip-path: inset(0 0 0 0);
    }
}

@keyframes text-revealer {

    0%,
    50% {
        transform-origin: 0 50%;
    }

    60%,
    100% {
        transform-origin: 100% 50%;
    }

    60% {
        transform: scaleX(1);
    }

    100% {
        transform: scaleX(0);
    }
}





.intro {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    background: linear-gradient(135deg, #000000, #000000e7);
    position: relative;
    font-family: 'Satoshi', sans-serif;
}


.intro h2 {
    font-size: 3em;
    transition: transform 0.2s ease;
}

.intro:hover h2 {
    transform: scale(1.05);
}



.navbar__menu-item {
    font-family: "Oswald", sans-serif;
    text-transform: uppercase;
    font-size: 4.4em;
    padding: 60px 20px;
    font-weight: 900;
    height: 100px;
    position: relative;
    cursor: pointer;
    text-align: center;
}

.navbar__menu-item-title {
    position: relative;
    color: transparent;
    -webkit-text-stroke: 0.01em white;
    transition: -webkit-text-stroke 0.5s ease, color 0.5s ease;
}

.navbar__menu-item:hover .navbar__menu-item-title {
    -webkit-text-stroke: none;
    color: white;
}

.navbar__menu-item-title::after {
    content: attr(data-menu-item-text);
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    font-weight: 900;
    -webkit-text-stroke: 0.012em rgb(0, 0, 0);
    color: transparent;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.menu-item-hover-image {
    width: 198px;
    height: 230px;
    position: absolute;
    top: 0;
    left: 0;
    background-size: cover;
    background-repeat: no-repeat;
    background-position-x: 75%;
    opacity: 0;
    transition: opacity 0.3s, transform 0.7s cubic-bezier(0.23, 1, 0.32, 1);
    margin: -115px 0 0 -99px;
    overflow: hidden;
    pointer-events: none;
    z-index: 2;
}

.navbar__menu-item:hover .menu-item-hover-image {
    opacity: 1;
}

.navbar__menu-item:hover .navbar__menu-item-title::after {
    opacity: 1;
    z-index: 3;
}





.about {
    padding: 50px 20px;
    color: wheat;
    text-align: left;
    margin: 0% 10% 10% 10%;
    display: grid;
    grid-template-columns: 50% 50%;
    place-items: center;
    font-family: 'Chillax', sans-serif;

}

.about p {
    margin-right: 10%;
}

.about p strong {
    color: rgb(241, 106, 80);
}

.about .icons {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}



@media (max-width: 768px) {
    .about {
        display: block;
    }

    #codepng {
        display: none;
    }
}



.experiencetab {
    padding: 50px 20px;
    color: black;
    text-align: left;
    margin: 0% 10% 10% 10%;
    font-family: 'Chillax', sans-serif;
}

.grid-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 10%;
    flex-grow: 1;
    flex-basis: 200;
}

.left-column,
.right-column {
    display: flex;
    flex-direction: column;
    gap: 5rem;
}

.right-column {
    margin-top: 10rem;
}

.box-grid {
    background-color: wheat;
    border: 1px solid #ddd;
    text-align: left;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 30px;
    width: 30rem;
    height: 20rem;
    opacity: 0;


}

.box-grid2 {
    background-color: wheat;
    border: 1px solid #ddd;
    text-align: right;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 30px;
    width: 30rem;
    height: 20rem;
    opacity: 0;
}

.box-grid-content {
    padding: 5%;

}

@media (max-width: 768px) {

    .box-grid,
    .box-grid2 {
        width: 20rem;
        height: 20rem;
        opacity: 1;
    }

    .right-column {
        margin-top: 1rem;
    }


    .experiencetab {
        padding: 20px 10px;
        /* Adjust padding for smaller screens */
        color: black;
        text-align: left;
        margin: 0 5% 5% 5%;
        /* Reduce margin for better fit on smaller screens */
        font-family: 'Chillax', sans-serif;
    }

    .grid-container {
        display: flex;
        flex-direction: column;
        /* Stack items vertically on mobile */
        justify-content: center;
        align-items: center;
        /* Center-align for better presentation */
        gap: 2rem;
        /* Reduce gap for compact layout */
    }

}



:root {
    --card-height: 40vw;
    --card-margin: 4vw;
    --card-top-offset: 1em;
    --numcards: 4;
    --outline-width: 0px;
}

#cards {
    padding-bottom: calc(var(--numcards) * var(--card-top-offset));
    margin-bottom: var(--card-margin);


}


#card_1 {
    --index: 1;

}

#card_2 {
    --index: 2;
}

#card_3 {
    --index: 3;
}

#card_4 {
    --index: 4;
}

.card {
    position: sticky;
    top: 0;
    padding-top: calc(var(--index) * var(--card-top-offset));
}

@supports (animation-timeline: works) {
    @scroll-timeline cards-element-scrolls-in-body {
        source: selector(body);
        scroll-offsets:
            selector(#cards) start 1,

            selector(#cards) start 0;
        start: selector(#cards) start 1;
        end: selector(#cards) start 0;
        time-range: 4s;
    }

    .card {
        --index0: calc(var(--index) - 1);
        --reverse-index: calc(var(--numcards) - var(--index0));
        --reverse-index0: calc(var(--reverse-index) - 1);
    }

    .card__content {
        transform-origin: 50% 0%;
        will-change: transform;

        --duration: calc(var(--reverse-index0) * 1s);
        --delay: calc(var(--index0) * 1s);

        animation: var(--duration) linear scale var(--delay) forwards;
        animation-timeline: cards-element-scrolls-in-body;
    }

    @keyframes scale {
        to {
            transform: scale(calc(1.1 - calc(0.1 * var(--reverse-index))));
        }
    }
}





main {
    width: 80vw;
    margin: 0 auto;
}

#cards {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(var(--numcards), auto);
    outline: calc(var(--outline-width) * 10) solid blue;
    gap: var(--card-margin);
    margin-left: 20%;
    margin-right: 20%;
    align-items: start;
    list-style: none;
}

@media (max-width: 768px) {
    #cards {
        margin-left: 1%;
        margin-right: 1%;
        padding-left: 0%;
    }
}

.card {
    padding-top: calc(var(--index) * var(--card-top-offset));
    box-sizing: border-box;
    top: 20vh;
}

.card__content {
    box-shadow: 0 0.2em 1em rgba(255, 255, 255, 0.1), 0 1em 2em rgba(255, 255, 255, 0.1);
    background: rgb(17, 17, 17);
    color: wheat;
    border-radius: 1em;
    overflow: hidden;
    display: grid;
    grid-template-areas: "text img";
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    font-family: 'Chillax', sans-serif;
}

@media (max-width: 768px) {
    .card__content {
        display: block;
    }
    
    .card__content>div {
        width: 100%;
        padding: 1.5em;
    }
    
    .card__content>figure {
        height: auto;
        overflow: visible;
    }
    
    .card__content>figure>img {
        height: auto;
        width: 100%;
        border-radius: 0 0 1em 1em;
    }
    
    .btn {
        padding: 0.65em 1.25em;
        font-size: 0.95em;
    }
}


.card__content img {
    border-radius: 20px;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}


.card__content strong {
    color: rgb(252, 218, 155);
}


.card__content>div {
    grid-area: text;
    width: 80%;
    place-self: center;
    text-align: left;

    display: grid;
    gap: 1em;
    place-items: start;
}

.card__content>figure {
    grid-area: img;
    overflow: hidden;
}

.card__content>figure>img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}



#preview {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#preview.active {
    display: flex;
    opacity: 1;
}

#previewImage {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

#previewImage:hover {
    transform: scale(1.05);
}

#close {
    color: white;
    position: absolute;
    top: 20px;
    right: 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    padding: 5px 10px;
}






p {
    font-family: sans-serif;
    font-weight: 300;
    line-height: 1.42;
}

.btn {
    background: rgb(241, 106, 80);
    color: rgb(255, 255, 255);
    text-decoration: none;
    display: inline-block;
    padding: 0.75em 1.5em;
    border-radius: 0.5em;
    margin-bottom: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(241, 106, 80, 0.3);
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: rgb(255, 130, 105);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(241, 106, 80, 0.5);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(241, 106, 80, 0.4);
}

aside {
    width: 50vw;
    margin: 0 auto;
    text-align: left;
}

aside p {
    margin-bottom: 1em;
}









.icon {
    font-size: 2em;
    margin: 0 15px;
    transition: transform 0.2s ease;
}

.icon:hover {
    transform: scale(1.2);
}

.projects {
    padding: 50px 20px;
    background: #000000;
}

.project-card {
    background: white;
    margin: 15px;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px gbar(0, 0, 0, 0.2);
    transition: transform 0.2s;
}

.project-card:hover {
    transform: translateY(-5px);
}



.contact {
    color: wheat;
    text-align: center;
    margin-bottom: 200px;
    margin-top: 10%;
}

.contact p {
    font-family: 'Chillax', sans-serif;
}

.contact h2 {
    font-size: xx-large;
}

#contactdir {
    display: grid;
    grid-template-columns: 50% 50%;

}

#pcontact1 {
    text-align: right;
    margin-right: 5%;
}

#pcontact2 {
    text-align: left;
    margin-left: 5%;
}

@media (max-width: 768px) {
    #pcontact1 {
        text-align: center;
        margin-right: 1%;
    }

    #pcontact2 {
        text-align: center;
        margin-left: 1%;
    }

    .contact {
        padding: 0% 5% 0% 5%;
    }

}


.footer {
    text-align: center;
    padding: 20px;
    background: rgb(17, 17, 17);
    color: rgb(241, 106, 80);
    font-family: 'Chillax', sans-serif;
    text-align: center;
    padding: 20px;
    position: relative;
    bottom: 0;
    left: 0;
    right: 0;
    border-radius: 30px 30px 0px 0px;
}

.footer p {
    font-family: 'Chillax', sans-serif;
}



.icon-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 80%;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .icon-item {
        margin: 0% 5% 0% 5%;
    }

    .icon-item p {
        text-align: center;
        font-size: 10px;
    }

    .icon-container {
        margin-left: 0%;
        margin-right: 0%;
        width: 100%;
    }
}




.icon-item {
    text-align: center;
    width: 14%;
    box-sizing: border-box;
    padding: 10px;
}

.icon {
    width: 50px;
    height: 50px;
    display: block;
    margin: 0 auto;
    transition: transform 0.2s ease-out;
}

.icon:hover {
    transform: scale(1.2);
}

.icon-item p {
    font-size: 12px;
    margin-top: 5px;
    color: rgb(241, 106, 80);
    text-align: center;
}










.fade-in-section {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-in-section.visible {
    opacity: 1;
    transform: translateY(0);
}



/* .fade-in-section2 {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-in-section2.visible {
    opacity: 1;
    transform: translateY(0);
} */


.fade-in-section3 {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 1.5s ease-out, transform 1s ease-out;
}

.fade-in-section3.visible {
    opacity: 1;
    transform: translateX(0);
}






.code-box {
    margin-top: 20px;
    width: 350px;
    background-color: #2d2d2d;
    border-radius: 8px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.3);
    color: #fff;
    font-size: 14px;
    overflow: hidden;
}

.window-controls {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 8px;
    background-color: #3b3b3b;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    gap: 8px;
}

.control-button {
    width: 20px;
    height: 20px;
    border-radius: 3px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    color: white;
    transition: background-color 0.2s ease, transform 0.2s ease;
}


.control-button:hover {
    transform: scale(1.2);
}

.close-button:hover {
    background-color: #ff2b22;
}

.minimize-button:hover {
    background-color: #4e4e4e;
}

.maximize-button:hover {
    background-color: #4e4e4e;
}

pre {
    margin: 0;
    padding: 16px;
    font-family: 'Courier New', Courier, monospace;
    color: #ffffff;
    line-height: 1.5;
}

code {
    color: wheat;
}

.red-text {
    color: rgb(253, 60, 102);
}

.blue-text {
    color: #5ad698;
}

code span.property {
    color: #ff79c6;
}

code span.value {
    color: #8be9fd;
}

code span.font-family {
    color: #ff5555;
}



@media (max-width: 768px) {
    .code-box {
        display: none;
    }
}




.experience {
    opacity: 0;
}



/* Boghala page start */

#bogalha-content {
    color: wheat;
    margin-top: 10%;
    text-align: center;
    font-family: 'Chillax', sans-serif;
}

#bogalha-content p {
    font-family: 'Chillax', sans-serif;
}

@media (max-width: 768px) {
    #bogalha-content {
        margin-top: 20%;
    }
}

#project {
    display: grid;
    grid-template-columns: 50% 50%;
}

.flex {
    display: flex;
}

.spanflex {
    display: unset;
}

.spanflex2 {
    display: flex;
}

.uktcdiv {
    display: flex;
}

#project1 {
    text-align: left;
    margin-left: 10%;
    display: grid;
}


#project2 {
    text-align: right;
    margin-right: 10%;
}

.project21 {
    display: none;
    text-align: left;
}

#project21 {
    display: unset;
}


#meinfo {
    background-color: rgb(17, 17, 17);
    margin: 0% 4% 3% 4%;
    border-radius: 6px;
    padding: 2% 30% 2% 30%;
}

#bogalha {
    display: grid;
    grid-template-columns: 50% 50%;
    padding: 0% 20% 0% 20%;
    margin-bottom: 3%;
}

#bogalha-left {
    text-align: left;
    margin-left: 5%;
}

#bogalha-right {
    text-align: right;
    margin-right: 5%;
}

#zadachi {
    background-color: rgb(17, 17, 17);
    margin: 0% 4% 3% 4%;
    border-radius: 6px;
    padding: 2% 5% 2% 5%;
}

.zad {
    display: grid;
    grid-template-columns: 50% 50%;
}



.zadLeft {
    text-align: left;
}

.zadRight {
    text-align: right;
}



#tasks-box {
    display: flex;
    flex-wrap: wrap;
    margin: 0% 2%;
    gap: 1%;
    justify-content: space-evenly;
}

.task {
    margin: 2% 2%;
    flex: 0 0 calc(25% - 4%);
    height: auto;
    box-sizing: border-box;
    flex-wrap: 1;
    flex-basis: 200px;
}

.task img {
    filter: invert(1);
}



#vpechetlenie {
    padding: 0% 20%;
    margin-bottom: 10%;
}



/* for mobile */

@media (max-width: 768px) {

    #project {
        display: block;
        align-items: center;
    }

    .erasum {
        font-size: 80%;
        text-align: right;
    }


    #erasum2 {
        width: 150px;
        height: 30%;
    }

    #erasum {
        width: 150px;
        height: 50%;
    }


    #project1 {
        margin: 0% 8% 0% 8%;
    }

    #project2 {
        display: none;
    }

    #project21 {
        display: grid;
        grid-template-columns: 50% 50%;
    }


    .uktcdiv img {
        width: 110px;

    }

    .project21 {
        display: unset;
    }

    .spanflex {
        text-align: center;
        display: block;
    }

    .uktcdiv {
        display: block;
    }

    .uktcdiv h4 {
        margin: 0;
    }

    #mobileyovo {
        text-align: center;
    }

    .spanflex2 {
        display: grid;
        grid-template-columns: 45% 55%;
    }


    #meinfo {
        padding: 5% 5%;
    }

    #bogalha {
        display: block;
        padding: 10% 10% 10% 10%; 
    }

    #bogalha-left,
    #bogalha-right {
        text-align: center;
        margin-left: 0%;
        margin-right: 0%;
    }

    #bogalha img{
        width: 250px;
    }


    #zadachi img{
        display: none;
    }
    .zad{
        display: block;
        margin: 15% 0%;
    }

    #vpechetlenie{
        padding: 0% 10%;
    }

    #project1{
        margin-bottom: 10%;
    }



}

/* Boghala page stop */