/* Обнуление */
@import url("null.css");
@import url("modal.css");
@import url("social-icon.css");
@import url("we-youtube.css");
@import url("porfolio.css");
@import url("header.css");

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}
/* *{
    border: solid 1px #ff1919;
} */
body {
    position: relative;
    background: linear-gradient(135deg, #5a0068 -4%, #df5f90 4.87%, #2d0349 20.26%, #000 27%, #2d0349 53%, #a10d77 78.5%, #df5f90 100%);
    height: 100%;
    margin: 0;
    font-family: "Montserrat", sans-serif;
    font-weight: 400;
    color: white;
    font-size: 32px;
    overflow-x: hidden;
    overflow-y: hidden;
}

.container{
    max-width: 1340px;
    margin: 0 auto;
}
section{
    z-index: 1000;
}
.header {
    margin: 25px auto 60px;
    max-width: 1340px;
    width: 100%;
    height: 100px;
    /* padding: 35px 35px; */
    background: linear-gradient(85deg, rgba(19, 1, 49, 0.26), rgba(205, 125, 240, 0.26), transparent 197%);
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 25px;
    position: fixed; /* Фиксируем хэдер на странице */
    top: 0;
    left: 50%; /* Смещаем в центр страницы */
    transform: translateX(-50%); /* Выравниваем по центру */
    z-index: 1000;
    transition: transform 0.3s ease; /* Плавная анимация скрытия */
    backdrop-filter: blur(10px);
}


.nav_menu {
    height: 100%;
    display: flex;
    justify-content: space-between;
    color: #fff;
    font-size: 24px;
    align-items: center;
}

.main{
    border-radius: 40px;
    max-width: 1340px;
    
    backdrop-filter: blur(30px);
    background-image: url("../img/main-img.webp");
    background-repeat: no-repeat;
    background-position: right bottom;
    background-size: auto 575px;

    padding: 42px 70px 100px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    
    background-color: rgba(255, 255, 255, 0.4);
    opacity: 0.85;
    margin-top: 185px;
    margin-bottom: 200px;
}



/* Шрифт для логотипа */
.logo .michroma-regular {
    font-family: "Michroma", sans-serif;
    font-weight: 400;
    font-style: normal;
    color: white;
    font-size: 64px;
    letter-spacing: 0.2em;
    text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.55);
}
.logo{
    margin: 0 auto 49px;
}
.main-desc {
    width: 100%;
    color: #E8C7FE;
    font-size: 32px;
    margin-bottom: 70px;
}


.statistics{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    max-width: 635px;
    width: 100%;
    font-size: 32px;
    line-height: 41px;
    color: #fff;
    margin-bottom: 70px;
}
.btn-main{
    border-radius: 25px;
    width: 350px;
    height: 60px;
    background: rgba(69, 47, 92, 0.5);
    font-family: var(--font-family);
    font-size: 24px;
    color: #dbcee5;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.5s ease-in-out;
}
.btn-main:hover{
    background: rgba(69, 47, 92, 1);    
}
.about-us{
    display: flex;
    flex-direction: column;
    row-gap: 20px;
}
.about-group{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    column-gap: 20px;
}
.about-text{
    width: 50%;
    /* height: 300px; */
    /* overflow-y: auto; */
}
.about-text h3{
    margin-bottom: 23px;
    font-size: 40px;
}
.about-text p{
    color: #B3B3B3;
    line-height: 1.2;
}
.about-img{
    width: 50%;
    height: auto;
    background-size: cover;
    object-fit: cover;
    border-radius: 5px;
}


/* PORTFOLIO SECTION STYLE */
.portfolio{
    margin-bottom: 170px;
}
.portfolio h3 {
    margin-bottom: 86px;
    text-align: center;
    font-weight: 400;
    font-size: 36px;
    color: #ffffff;
}
.content h3 {
    font-weight: 560;
    color: black;
    margin: 0 0 8px;
    font-size: 20px;
}

.content p {
    color: black;
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}
.portfolio-group{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 82px;
}
.portfolio-tab{
    cursor: pointer;
    background: #452F5C;
    color: #ce98d7;
    width: 326px;
    height: 70px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.35);
    transition:background 0.5s, all 0.3s ease-in-out;
}
.portfolio-tab.tabs--active{
    border: 2px solid #b065ff;
    box-shadow: 0 -2px 19px 6px rgba(176, 101, 255, 0.3);
    transform: translateY(-7px);
    color: #ffffff;
}
.portfolio-tab:hover{
    border: 2px solid #5d3161;
    transform: translateY(-5px);
    box-shadow: 0 -2px 19px 2px rgba(176, 101, 255, 0.3);
}
.portfolio-tab:active{
    border: 2px solid #d074d8;
    transform: scale(0.95);
    color: #8d6bb1;
    background: #352842;
}
.portfolio-img-group {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 колонки одинаковой ширины */
    gap: 15px; /* Расстояние между изображениями */
    justify-items: center; /* Выравнивание изображений по центру */
}

.portfolio-img-group img {
    width: 100%; /* Изображения будут растягиваться на ширину ячеек */
    height: auto; /* Сохранение пропорций изображений */
    border-radius: 8px; /* Скругление углов изображений */
    object-fit: cover; /* Заполнение ячеек изображениями без искажения пропорций */
}
.portfolio-content {
    position: absolute;
    pointer-events: none; /* Отключаем взаимодействие с фоном */
    z-index: -1;    
    transition: opacity 0.5s ease, transform 0.5s ease-in-out;
    opacity: 0; /* Начальная прозрачность */
}
  
.portfolio-content.contents--active {
    transition: opacity 0.2s ease-in-out, transform 0.3s ease-in-out;
    position: relative;
    display: block; /* Показываем активный контент */
    opacity: 1; /* Полная непрозрачность */
    pointer-events: auto; /* Отключаем взаимодействие с фоном */
    z-index: 100;    

}

.partners h3{
    margin-bottom: 52px;
    text-align: center;
    font-weight: 400;
    font-size: 48px;
    color: #ffffff;
    text-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}

.message{
    margin-bottom: 170px;
}
.message div{
    margin: 0 auto;
    padding: 50px 120px;
    text-align: center;
    width: 100%;
    border-radius: 5px;
    background: rgba(217, 217, 217, 0.3);
    font-size: 20px;
}
.footer{
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}
.footer address{
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    font-weight: 500;
}
.footer address a:first-child{
    justify-self: end;
}
main, section {
    margin-bottom: 155px;
}
