@font-face {
    font-family: "ZTBrosOskon90s";
    src: url("assets/ZTBrosOskon90s-Regular.otf") format("opentype");
}
@font-face {
    font-family: "Delight-Medium";
    src: url("assets/Delight-Medium.otf") format("opentype");
}
@font-face {
    font-family: "Delight-Bold";
    src: url("assets/Delight-Bold.otf") format("opentype");
}
@font-face {
    font-family: "Avenir-Book-Oblique";
    src: url("assets/Avenir Book Oblique.otf") format("opentype");
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
}
img {
    pointer-events: none;
}
html {
    -webkit-text-size-adjust: none !important;
}
body {
    font-family: Arial, sans-serif;
    background-color: #f24d28;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    user-scalable: no;
    cursor: none;
}

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f24d28;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition:
        opacity 0.8s ease,
        visibility 0.8s ease;
    padding: 0 2vw;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-logo {
    font-family: "ZTBrosOskon90s", Arial, sans-serif;
    font-size: clamp(40px, 10vw, 180px);
    color: #151515;
    transform: scaleY(1.3) scaleX(1.2);
    opacity: 0;
    animation: logoFadeIn 2s ease forwards;
    text-align: center;
}

@keyframes logoFadeIn {
    0% {
        opacity: 0;
        transform: scaleY(1.3) scaleX(1.2) translateY(50px);
    }
    100% {
        opacity: 1;
        transform: scaleY(1.3) scaleX(1.2) translateY(0px);
    }
}

.site-container {
    width: 1400px;
    height: 1000px;
    position: relative;
    transform-origin: center center;
    transition:
        transform 0.2s ease-out,
        opacity 1s ease;
    z-index: 1;
    opacity: 0;
}

.site-container.show {
    opacity: 1;
}

.Cursor {
    pointer-events: none;
    position: fixed;
    display: block;
    mix-blend-mode: difference;
    top: 0;
    left: 0;
    z-index: 1000;
    filter: url("#goo");
}
.Cursor span {
    position: absolute;
    display: block;
    width: 26px;
    height: 26px;
    border-radius: 20px;
    background-color: white;
    transform-origin: center center;
}

.main {
    width: 1400px;
    height: 800px;
    background-color: #f24d28;
    position: relative;
    z-index: 2;
}
.main-margin-box {
    width: 100%;
    height: 100%;
    border: 2px solid #151515;
    display: flex;
    flex-direction: column;
    position: relative;
}
.a-star {
    position: absolute;
    top: -50px;
    left: -49px;
    z-index: 1;
}
.a-star img {
    width: 100px;
    height: 100px;
}
.b-star {
    position: absolute;
    bottom: -103px;
    right: -99px;
    z-index: 3;
}
.b-star img {
    width: 200px;
    height: 200px;
}
.box-top {
    height: 150px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    border-bottom: 2px solid #151515;
}
.logo p {
    transform: scaleY(1.3);
    transform: scaleX(1.2);
    padding-left: 50px;
    font-family: "ZTBrosOskon90s", Arial, sans-serif;
    font-size: 120px;
    color: #151515;
    line-height: 0.9;
    position: relative;
    top: 14px;
}
.logo-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    height: 80px;
}
.en-ua-box {
    background-color: #151515;
    padding: 5px 16px;
    border-radius: 70px;
    cursor: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}
.en-ua-box.ua-active {
    background-color: #fcefea;
    border-color: #151515;
}
.en-ua-box p {
    font-family: "Delight-Medium", Arial, sans-serif;
    font-size: 16px;
    color: #fcefea;
    transition: color 0.3s ease;
}
.en-ua-box.ua-active p {
    color: #151515;
}
.year-2025 p {
    font-family: "Avenir-Book-Oblique", Arial, sans-serif;
    font-size: 42px;
    color: #151515;
    transform: scaleY(1.5);
    font-style: italic;
    letter-spacing: -3px;
    padding-right: 7px;
    height: 73px;
}
.mid-box {
    flex: 1;
    display: flex;
    position: relative;
}
.left-side-menu {
    width: 300px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 30px;
    gap: 2px;
    flex-shrink: 0;
}
.button {
    font-family: Arial, sans-serif;
    font-weight: bold;
    font-size: 28px;
    color: #151515;
    text-decoration: none;
    line-height: 1.2;
    cursor: none;
    transition: color 0.3s ease;
}
.button:hover,
.button.active-button {
    color: #fcefea;
}
.right-side-picture {
    width: 350px;
    border-left: 2px solid #151515;
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
}
.right-side-picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.2);
}
.left-side-bottom-time {
    position: absolute;
    bottom: 20px;
    left: 30px;
    font-family: "Delight-Medium", Arial, sans-serif;
    font-size: 16px;
    color: #151515;
}
#content-panel {
    position: absolute;
    top: 30px;
    left: 300px;
    right: 380px;
    bottom: 60px;
    border: 2px solid #151515;
    background-color: #f24d28;
    padding: 25px;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.98);
    transition:
        opacity 0.4s ease-out,
        transform 0.4s ease-out;
    overflow-y: auto;
}
#content-panel::-webkit-scrollbar {
    display: none;
}
#content-panel {
    scrollbar-width: none;
    -ms-overflow-style: none;
}
#content-panel.active {
    opacity: 1;
    pointer-events: all;
    transform: scale(1);
}
#content-panel h2 {
    font-family: "Delight-Bold", Arial, sans-serif;
    font-size: 29.5px;
    color: #151515;
    margin-bottom: 20px;
}
#content-body p {
    font-family: "Arial Narrow", Arial, sans-serif;
    font-size: 17.5px;
    color: #151515;
    line-height: 1.4; /* Reduced line spacing for English */
    margin-bottom: 1em;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: auto;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 15;
}

.scroll-indicator.visible {
    opacity: 1;
}

.scroll-indicator svg {
    animation: bounce 2s infinite;
    filter: drop-shadow(0 2px 4px rgba(21, 21, 21, 0.3));
}

@keyframes bounce {
    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(4px);
    }
    60% {
        transform: translateY(2px);
    }
}

.lang-animated {
    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
}
.lang-animated.text-fade-out {
    opacity: 0;
    transform: translateY(10px);
}

.lang-ua #content-body p {
    margin-bottom: 0.8em;
    line-height: 1.3; /* Tighter line spacing for Ukrainian */
    font-size: 17.5px;
}

.lang-ua .skills-grid {
    gap: 8px 30px;
}

.lang-ua .skills-grid h3 {
    margin-top: 12px;
    margin-bottom: 6px;
}

.lang-ua .skill-category p {
    line-height: 1.4; /* Tighter line spacing for Ukrainian */
    font-size: 17.5px;
    margin-bottom: 0.4em;
}

.lang-ua .service-item {
    margin-bottom: 12px;
}

.lang-ua .service-item p {
    margin-bottom: 0.6em;
    line-height: 1.3; /* Tighter line spacing for Ukrainian */
    font-size: 17.5px;
}

.lang-ua .service-item li {
    line-height: 1.4; /* Tighter line spacing for Ukrainian */
    margin-bottom: 3px;
    font-size: 17.5px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px 20px;
}
.skills-grid h3 {
    font-family: "Delight-Bold", Arial, sans-serif;
    font-size: 19.5px;
    color: #151515;
    margin-top: 15px;
    margin-bottom: 8px;
}
.skill-category p {
    font-family: "Arial Narrow", Arial, sans-serif;
    font-size: 17.5px;
    color: #151515;
    line-height: 1.4;
    margin-bottom: 0.6em;
}
.skill-category p:last-child {
    margin-bottom: 0;
}
.skill-category p strong {
    font-family: "Delight-Medium", Arial, sans-serif;
    display: block;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.service-item {
    margin-bottom: 15px;
}

.service-item h3 {
    font-family: "Delight-Bold", Arial, sans-serif;
    font-size: 19.5px;
    color: #151515;
    margin-bottom: 8px;
}

.service-item p {
    font-family: "Arial Narrow", Arial, sans-serif;
    font-size: 17.5px;
    color: #151515;
    line-height: 1.4; /* Reduced line spacing for English */
    margin-bottom: 0.5em;
}

.service-item ul {
    list-style-type: disc;
    padding-left: 20px;
    margin-top: 8px;
}

.service-item li {
    font-family: "Arial Narrow", Arial, sans-serif;
    font-size: 17.5px;
    color: #151515;
    line-height: 1.4; /* Reduced line spacing for English */
    margin-bottom: 4px;
}

.copyright-section {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    justify-content: center;
    align-items: center;
}
.c-star {
    position: relative;
}
.c-star img {
    width: 250px;
    height: auto;
    filter: brightness(0) saturate(100%) invert(95%) sepia(4%) saturate(1312%)
        hue-rotate(315deg) brightness(115%) contrast(99%);
}
.copyright-text {
    position: absolute;
    text-align: center;
    z-index: 5;
    color: #151515;
}
.copyright-text p {
    font-family: "Arial Narrow", Arial, sans-serif;
    font-size: 12px;
    line-height: 1.4;
    font-weight: bold;
}
.project-list .project-item:not(:last-child) {
    margin-bottom: 15px;
}
.project-list h3 {
    font-family: "Delight-Bold", Arial, sans-serif;
    font-size: 19.5px;
    color: #151515;
    margin-bottom: 5px;
}
.contact-list {
    list-style: none;
    padding: 0;
}
.contact-list li {
    margin-bottom: 8px;
}
.content-link {
    font-family: "Delight-Bold", Arial, sans-serif;
    font-size: 19.5px;
    color: #151515;
    text-decoration: none;
    transition: color 0.3s ease;
    cursor: none;
}
.content-link:hover {
    color: #fcefea;
}

body > * {
    position: relative;
}
