body {
    font-family: "Plus Jakarta Sans", monospace;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow: hidden;
    color: #fff;
    background: #111;
}

a {
    background-color: transparent;
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #00c8c8;
}

#motivationContainer {
    font-size: 60px;
    margin-bottom: 10px;
}

/* Header styling */
.header {
    display: block;
    width: 100%;
    background-color: #111;
    /*text-transform: uppercase;*/
    padding: 1rem 0;
}

.header .container-xxl {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Main nav styling */
.nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav__li {
    position: relative;
    padding: 15px;
}

.nav__li > a,
.nav__li > span {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.no-select {
    user-select: none;
}

/* Dropdown styling */
.subnav_ul {
    display: flex;
    flex-direction: column;
    list-style: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #222;
    border-radius: 5px;
    padding: 10px 0;
    min-width: 150px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
}


/* Show dropdown on hover */
.nav__li:hover .subnav_ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Submenu items */
.subnav_ul li {
    padding: 0;
}

.subnav_ul li a {
    display: block;
    padding: 15px;
    color: #fff;
    font-weight: normal;
    transition: background 0.3s ease;
}

.subnav_ul li:first-child a {
    border-radius: 5px 5px 0 0;
}

.subnav_ul li:last-child a {
    border-radius: 0 0 5px 5px;
}


.subnav_ul li a:hover {
    background-color: #00c8c8;
    color: #fff;
}

/* Additional icon styling for dropdown */
.nav__li > span i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

/* Rotate icon on hover */
.nav__li:hover > span i {
    transform: rotate(180deg);
}

/* SVG logo styling */
.image-container svg {
    width: 100px;
    height: auto;
}

canvas {
    display: block;
    vertical-align: bottom;
}

/* ---- particlesLib.js container ---- */
.logo {
    text-transform: uppercase;
    font-size: 20px;
    padding: 15px 0;
}

#particles-js {
    width: 100%;
    height: 100%;
    background-color: #111;
}

.main-banner {
    padding-top: 0;
    position: relative;
}

.main-banner__text {
    position: absolute;
    font-weight: 900;
    left: 50%; /* Начинаем текст с середины экрана */
    top: 50%;
    transform: translate(0, -50%); /* Вертикальное центрирование */
    width: 50%; /* Задаем ширину правой половины экрана */
    text-align: left; /* Текст выравнивается по левому краю */
    z-index: 2; /* Поверх `particles-js` */
    color: #fff; /* Цвет текста для контраста */
    font-size: 150px; /* Размер шрифта для видимости */
}

.w-100 {
    width: 100%;
}

.motivation {
    padding: 100px 0 0;
    font-size: 70px;
    font-weight: 500;
    background-color: #111111;
}

.motivation span {
    color: gray;
    transition: color .5s ease-out;
}

/* Дополнительный стиль для активного состояния */
.motivation span.active {
    color: #fff; /* Цвет при выделении */
    transition: color .5s ease-out;
}

.container-card {
    margin-bottom: 410px;
}

.cards .card.cases {
    background-color: #111;
}


.card {
    margin-bottom: 50px;
    font-size: 36px;
    border-radius: 10px;

    &:first-child {
        box-shadow: 0px 0px 30px 3px rgba(0, 0, 0, 0.05);
    }
}

.cases {
    /*height: 100vh;*/
    font-size: 350px;
    font-weight: 700;
    color: rgb(148, 148, 148, 0.2);
}

.case-img {
    border-radius: 10px;
}

.case-img img {
    max-width: 450px;
    width: 100%;
    padding: 50px 0;
    border-radius: 10px;
}

.case-title {
    text-align: center;
    font-size: 66px;
    font-weight: 700;
    text-transform: uppercase;
    padding-bottom: 20px;
}

.case-category {
    font-size: 20px;
    font-weight: 200;
    text-align: center;
    text-transform: uppercase;
    padding-bottom: 70px;
}

.case > .container {
    padding: 60px 0 100px 0;
    height: 100%;
}

.case {
    /*height: 100vh;*/
    /*padding-top: 50px;*/
}

.card {
    background-color: #1b1c1f;
}

.case-bg {
    background-position: center;
    background-size: cover; /* Начальный размер — покрыть весь блок */
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url(/img/bg-people.png);
    border-radius: 10px;
    transition: transform 0.3s ease; /* Плавный переход */
    cursor: url('./assets/img/design/arrow-diagonal.svg') 200 0, pointer;
}

.case-1 .case-bg {
    background-image: url(/img/img_1.png);
}

.case-1 {
    background-color: dimgray;
}

.case-2 {
    background-color: gray;
}

.case-2 .case-bg {
    background-image: url(/img/bg-people.png);
}

.case-3 {
    background-color: darkgray;
}

.case__inner {
    height: 100%;
}

:root {
    --framer-blockquote-font-size: 18px;
    --framer-font-size: 16px;
    --framer-font-size-scale: 1.2;
}

.case-bg:hover {
    /*background-size: 110%; !* Увеличение фона на 10% *!*/
    transform: scale(1.1);
}

.textItem {
    padding: 0;
    margin: 0;
}

.footer {
    transform: translateY(38px);
}

.footer-top {
    border-bottom: 1px solid #00c8c8;
    padding: 100px 0 50px;
}

.footer-top__text {
    font-size: 50px;
}

.footer-bot__text {
    text-transform: uppercase;
    font-size: 164px;
    display: block; /* Убедиться, что элемент занимает всю ширину */
    width: 100%; /* Растянуть элемент на всю ширину */
    text-align: justify; /* Выравнивание текста по ширине (опционально) */
    color: darkgray;
}

.footer-cat {
    display: flex;
    flex-direction: column;
}

.footer-cat__text {
    font-size: 20px;
    font-weight: 200;
    color: gray;
    margin-bottom: 10px;
}

.footer-cat__link {
    font-size: 17px;
    padding: 5px 0;
    align-items: self-end;
    width: fit-content;
}

.footer-cat__link i {
    height: fit-content;
    margin-left: 5px;
}


.wrapper {
    width: 100%;
    background: #000;
    overflow: hidden;
}

.box {
    position: absolute;
}

.boxes {
    position: relative;
}

.textItem {
    display: inline-block;
    font-size: 10vw;
    white-space: nowrap
}

.reveal-type {
    font-size: 8.375rem;
}

.about__title {
    font-size: 70px;
    margin-bottom: 30px;
    font-weight: 700;
}

.about__text {
    font-size: 40px;
    text-align: left;
}

.about-us__inner {
    color: #111111;
    background-color: #f4f4f4;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.about__author {
    margin-top: 25px;
    font-size: 27px;
    font-weight: 600;
}

.about_author__desc {
    font-size: 29px;
    font-weight: 300;
}

.about-us__inner h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #333;
}

.about-us__inner p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #555;
}

section {
    padding: 40px 0;
}

.about-container {
    display: flex;
    flex-direction: column; /* Располагаем элементы по вертикали */
    justify-content: space-between; /* Максимально раздвигаем элементы */
    height: 100%; /* Устанавливаем высоту контейнера */
}

.about__title,
.about__text {
    margin-bottom: 20px; /* Отступ между верхними элементами */
}

.services__inner .title {
    font-size: 320px;
    padding-top: 0;
    font-weight: 700;
    color: rgb(148, 148, 148, 0.2);
    position: absolute;
    top: 0;
    margin: auto;
    left: 0;
    right: 0;
    text-transform: uppercase;
    z-index: -1;
}

.services-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.services-list li {
    margin-bottom: 15px;
    font-size: 1rem;
    color: #444;
    text-align: left;
    line-height: 1.5;
}

.services-list li strong {
    color: #000;
}

.about-img {
    width: 100%;
    height: 625px;
    object-fit: cover;
    object-position: top;
    border-radius: 12px;
}

@import "https://unpkg.com/normalize.css";

*,
*:after,
*:before {
    box-sizing: border-box;
}

:root {
    --gap: 1rem;
    --card-width: clamp(280px, 20vw, 100vw);
    --card-aspect-ratio: 5 / 7;
    --card-height: calc(var(--card-width) * (7 / 5));
}

body {
    min-height: 100vh;
}

.gallery {
    display: grid;
    place-items: center;
    font-family: 'Google Sans', sans-serif, system-ui;
    overflow-x: hidden;
    justify-content: center;
    min-height: 100vh;
}

.grid {
    display: grid;
    justify-content: center;
    grid-template-columns: repeat(5, var(--card-width));
    gap: 1rem;
    /* overflow: hidden shouldn't break this? */
    overflow: hidden;
}

.grid-wrapper {
    /* overflow: hidden; */
}

.column {
    display: grid;
    gap: 1rem;
}

.column:not(:nth-of-type(3)) {
    animation: scale 1s linear both;
    animation-timeline: scroll(root);
}

.column:not(:nth-of-type(3)) img {
    animation: shrink 1s linear both;
    animation-timeline: scroll(root);
}

/* The distance is the number of cards minus 100vh */
.column:is(:nth-of-type(2), :nth-of-type(4)) {
    --origin: calc(var(--gap) * -1);
    --destination: calc(var(--card-height) * 1.5 + var(--gap));
}

.column:is(:nth-of-type(1), :nth-of-type(5)) {
    --origin: calc(var(--gap) * -2);
    --destination: calc(var(--card-height) * 3.4 + var(--gap));
}

@keyframes scale {
    0% {
        transform: translateY(var(--origin, 0%));
    }
    50% {
        filter: grayscale(1);
    }
    100% {
        transform: translateY(var(--destination, -50%));
        filter: grayscale(1);
    }
}

.gallery img {
    max-width: 100%;
    border: 0;
    padding: 0;
    max-height: 100%;
    width: 100%;
    aspect-ratio: 5 / var(--h, 7);
    background: hsl(0 0% 80%);
    object-fit: cover;
}

.services-col {
    padding-top: 40px;
    cursor: url('./assets/img/design/arrow-diagonal.svg') 200 0, pointer;
    border: 1px solid #1f1f1f;
    transition: filter 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease; /* Smooth transitions */
    border-radius: 20px;
    background-image: radial-gradient(farthest-side at top right, #1f1f1f, #141414);
}

.services-col:hover {

    background-image: radial-gradient(farthest-side at top right, #1f1f1f, #2c2c2c, #121212);
    border: 1px solid #3a3a3a;
}

.services-col:hover .services__img {
    filter: brightness(1.1); /* Brightens the image */
}

.services-col:hover .services__title {
    font-size: 45px;
}

.services__title {
    transition: 0.3s;
    font-size: 40px;
    margin-bottom: 10px;
    font-weight: 500;
    margin-left: 40px;
}

.services__inner {
    padding: 220px 0 0;
    position: relative;
}

.services__text {
    margin-bottom: 40px;
    font-weight: 200;
    margin-left: 40px;
}

.services__img {
    max-width: 100%;
    border-radius: 0 0 20px 20px;
}

.services__inner.row {
    column-gap: 40px;
    row-gap: 40px;
}
