/* Global Styles */
body {
    margin: 0;
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    color: #FFFFFF;
    background-color: #191919;
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.container {
    width: 1000px;
    padding: 0 20px;
    box-sizing: border-box;
    overflow-x: hidden;

}

h1, h2 {
    font-weight: bold;
    margin-block-start: 0px;
    margin-block-end: 0px;
}


h3 {
    font-size: 18px;
    margin-block-start: 0px;
    margin-block-end: 0px;
    font-weight: 400;
}

p {
    margin: 10px 0;
    margin-block-start: 0px;
    margin-block-end: 0px;
    font-size: 24px;
}

a {
    color: #FFFFFF;
    text-decoration: none;

}

button, .button {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 24px;
    font-size: 24px;
    background-color: #282828;
    color: #ffffff;
    text-align: center;
    transition: background-color 0.2s ease-in, color 0.4s ease-in;
}

.buttons {
    padding-top: 28px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
/* Layout for Two Columns */
.two-column-layout {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 50px;
}

.case {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 14px;
    align-self: stretch;
    border-radius: 18px;
    background: #222222;
    padding: 24px;
}

.left-column {
    width: 356px;
}

.right-column {
    width: 602px;
    gap: 14px;
}

.right-column1 {
    width: 100%;
    gap: 14px;

}

header h1 {
    font-size: 38px;
}

header p {
    font-size: 28px;
}


.project {
    margin-bottom: 64px;
    display: block;
    border-radius: 0;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;

}


.project img {
    width: 100%;
    border-radius: 24px;
    margin-bottom: 14px;
    display: block;
    border-radius: 0; /* Начальный радиус углов изображения */
    transition: border-radius 0.3s ease;
}

/* About Section */


.about .two-column-layout {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px; /* Отступ между колонками */
}

.about .left-column {
    width: 356px;
}

.about .right-column {
    display: flex;
    width: 602px;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
}

.about .info {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.about .info div {
    flex: 1;
    margin-bottom: 20px;
}


/* Section Title Background */

.projects,
.about {
    position: relative;
    z-index: 1;
}

/* Ensure other elements stack above the background title */
.projects h2,
.about h2 {
    position: relative;
    font-size: 28px;
}

.projects h1,
.about h1 {
    position: relative;
    font-size: calc(4vw + 100px);

}

.project-video {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Чтобы видео корректно занимало пространство */
    border-radius: 24px; /* Сохраняем скругленные углы */
    transition: border-radius 0.3s ease, filter 0.3s ease; /* Объединение всех переходов */
    margin-bottom: 14px;
}

.project-video::-webkit-media-controls {
    display: none !important;
}

.project-video::-moz-media-controls {
    display: none !important;
}

.project-video::-ms-media-controls {
    display: none !important;
}

.button img {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}


.custom-underline {
    text-decoration: none;
    border-bottom: 0.5px solid #ffffff;
    transition: color 0.2s ease-in, border-color 0.2s ease-in; 
    color: inherit;
    outline: none; 
}

.custom-underline:hover {
    color: #ff9c42;
    border-color: #ff9c42;
}

.custom-underline:focus {
    outline: none; 
}



.paragraph {
    margin-top: 14px; 
}

.button:hover {
    background-color:#ff9c42;
}

@media (max-width: 430px) {
    .projects h2, .about h2, h2, header p, .paragraph {
        font-size: 24px;
    }

    header h1 {
        font-size: 38px;
    }


}

.footer {
    display: flex;
    align-items: center;
    justify-content: center; /* Центрирование по горизонтали */
    flex-wrap: wrap;
    padding-bottom: 40px;
}
.play-button {
    font-size: 24px; /* Увеличь, если нужно */
    width: 60px;
    height: 60px;
    line-height: 60px; /* Центрирование значка */
}


/* Responsive Design */
@media (max-width: 950px) {
    .container {
        width: 100%;
        padding: 14px;
    }

    .left-column,
    .right-column {
        width: 100%;
    }

    .two-column-layout {
        flex-direction: column;
        align-items: center;
        gap: 28px;
    }

    .about .info {
        flex-direction: row;
    }

    .about .info div {
        margin-right: 0;
        margin-bottom: 20px;
    }


    .about .left-column {
        width: 100%;
    }

    .about .right-column {
        width: 100%;
        box-sizing: border-box;
    }

    .right-column1 {
        display: flex;
        flex-direction: column-reverse;
    }

    .footer {
        display: flex;
        align-items: center;
        justify-content: center; /* Центрирование по горизонтали */
        flex-wrap: wrap;
        padding-bottom: 40px;
    }
}

.image-container img {
    display: block;
    border-radius: 14px;
    transition: opacity 0.3s ease;
    transition: border-radius 0.3s ease, filter 0.3s ease; /* Объединение всех переходов */
}

.project:hover .image-container img {
    filter: brightness(84%);
    border-radius: 34px;
}


@media (max-width: 740px) {

    .about .info {
        flex-direction: column;
    }    

}

.image-container {
    border-radius: 24px;

}

.tools, .education, .skills {
    gap: 8px;
    display: flex;
    flex-direction: column;

}



.image-container1 img {
    display: block;
    border-radius: 24px;
    cursor: none;

}

.circle-video {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    margin-top: 24px;
    overflow: hidden; 
    position: relative;
    transition: width 0.5s ease, height 0.5s ease;
    background-color: #222222;

}

.circle-video video {
    width: 100%; 
    height: 100%;
    object-fit: cover; 
    background-color: #222222;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px; /* Увеличим значок */
    color: #ffffff;
    border-radius: 50%;
    width: 80px; /* Увеличим кнопку */
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: opacity 0.3s ease;
    line-height: 80px; /* Совпадает с высотой кнопки */
}

.play-button:hover {
    background: rgba(0, 0, 0, 0.281);
}

.circle-video.fullscreen .play-button {
    display: none; /* Прячем кнопку после начала воспроизведения */
}

.case-low {
    display: grid;
    gap: 4px;
}
.h3-low {
    color:#777777;
    padding-left: 18px;
}

.project:focus .image-container img,
.project:active .image-container img {
    filter: brightness(84%);
    border-radius: 48px;
    outline: none; /* Убираем обводку */
}

.play-button:focus,
.play-button:active {
    background: rgba(0, 0, 0, 0.281);
    outline: none; /* Убираем стандартную обводку */
}


.projects-container {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    justify-content: space-between;
}
.projects-container {
    display: flex;
    flex-wrap: wrap;
    gap: 64px; /* Расстояние между элементами */
    justify-content: space-between;
}

/* Стили для каждого проекта */
.projects-container .design-project {
    flex: 1 1 calc(50% - 16px); /* Двухколоночная система */
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

/* Убираем фиксированную высоту, чтобы блоки подстраивались под содержимое */
.projects-container .design-project .image-container {
    width: 100%;
    max-height: 550px;
    overflow: hidden; /* Предотвращает выход изображений за границы */
}

/* Адаптивные стили для экранов меньше 550px */
@media (max-width: 550px) {
    .projects-container .design-project {
        flex: 1 1 100%; /* Растягивается на всю ширину */
    }
}