body {
    font-family: 'Inter', sans-serif;
    background-color: #141414;
    color: white;
    overflow-x: hidden;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
    overflow-y: hidden !important;
    /* Force hide vertical scroll on rows */
    padding-top: 40px !important;
    padding-bottom: 40px !important;
    margin-top: -40px !important;
    margin-bottom: -40px !important;
}

.stroke-text {
    -webkit-text-stroke: 2px rgba(255, 255, 255, 0.2);
    paint-order: stroke fill;
    color: #141414;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    z-index: 1;
    /* Цифра в самом низу */
}

/* Сама карточка должна быть выше цифр */
.group\/card>div:last-child {
    position: relative;
    z-index: 10;
    background-color: #141414;
    /* Плотный фон, чтобы ничего не просвечивало */
}

/* Ховер выводит карточку на самый верхний слой всего сайта */
.group\/card:hover {
    z-index: 100 !important;
}

.group\/card:hover .stroke-text {
    opacity: 0 !important;
    transform: scale(0.8);
}

.group-hover\/card\:translate-y-0,
.translate-y-4 {
    transform: none !important;
}

.card-overlay-content {
    transition: opacity 0.3s ease;
}

@keyframes slide-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-up {
    animation: slide-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

.delay-4 {
    animation-delay: 0.4s;
}

.hero-slide {
    transition: opacity 1s ease-in-out;
}

.slider-dot {
    transition: all 0.5s ease;
}

.animate-in {
    animation: slide-up 0.6s ease-out forwards;
}

::selection {
    background: #dc2626;
    color: white;
}

/* Chat animations */
@keyframes slide-in-right {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.chat-msg {
    animation: slide-in-right 0.4s ease-out forwards;
}

/* Video grid hover effects */
.cam-hover:hover .cam-overlay {
    opacity: 1;
}

/* Card Hover Fix */
.card-hover {
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.card-hover:hover {
    transform: scale(1.1) !important;
}

/* Internal scroll prevention */
.card-hover img,
.card-hover video {
    pointer-events: none;
    object-fit: cover;
    width: 100%;
    height: 100%;
}

/* Multi-cam expansion styles */
#video-grid.has-expanded .relative:not(.expanded-cam) {
    display: none;
}

#video-grid.has-expanded .expanded-cam {
    grid-column: span 2 !important;
    grid-row: span 2 !important;
    height: 100% !important;
}

.cam-focus-btn {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.relative:hover .cam-focus-btn {
    opacity: 1;
    transform: translateY(0);
}