/* Основные стили */
.video-slider-wrapper {
    height: 100vh;
    overflow: hidden;
}

.carousel,
.carousel-inner,
.carousel-item {
    height: 100%;
}

.carousel-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Оверлей для улучшения читаемости */
.carousel-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

/* Контент слайда */
.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
    padding: 0 20px;
    z-index: 10;
}

/* Анимация появления контента */
.carousel-item .slide-content {
    opacity: 0;
    transform: translate(-50%, -40%);
    transition: all 0.5s ease;
}

.carousel-item.active .slide-content {
    opacity: 1;
    transform: translate(-50%, -50%);
}

/* Стеклянная кнопка с эффектом блеска */
.btn-glass {
    position: relative;
    overflow: hidden;
    padding: 12px 30px;
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    transition: all 0.4s ease;
    color: white;
    border-radius: 10px;
}

.btn-glass-content {
    position: relative;
    z-index: 2;
}

.btn-glass::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to bottom right,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0) 45%,
            rgba(255, 255, 255, 0.2) 48%,
            rgba(255, 255, 255, 0.4) 50%,
            rgba(255, 255, 255, 0.2) 52%,
            rgba(255, 255, 255, 0) 55%,
            rgba(255, 255, 255, 0) 100%);
    transform: rotate(60deg);
    transition: all 0.7s ease;
}

.btn-glass:hover {
    transform: translateY(-3px);
    border-color: white;
    color: white;
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

.btn-glass:hover::before {
    left: 100%;
    top: 100%;
}

.btn-glass:active {
    transform: translateY(0);
    background: rgba(255, 255, 255, 0.05);
}

/* Навигационное меню */
.navbar {
    background: rgba(0, 0, 0, 0.3) !important;
    backdrop-filter: blur(5px);
    z-index: 100;
}

.navbar-brand {
    font-size: 1.8rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.nav-link {
    font-weight: 500;
    margin: 0 10px;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: white;
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

/* Элементы управления слайдером */
.carousel-control-prev,
.carousel-control-next {
    z-index: 20;
    width: 5%;
}

/* Индикаторы слайдов */
.carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    z-index: 15;
    display: flex;
    justify-content: center;
    padding: 0;
    margin: 0 0 40px 0;
    list-style: none;
}

.carousel-indicators button {
    width: 20px;
    height: 20px;
    margin: 0 8px;
    border: none;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicators button.active {
    background-color: white;
    transform: scale(1.2);
}

.carousel-indicators button:not(.active):hover {
    background-color: rgba(255, 255, 255, 0.7);
}

/* Кнопка прокрутки вниз */
.scroll-down-btn {
    z-index: 20;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    backdrop-filter: blur(5px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    animation: bounce 2s infinite, fadeIn 1s ease 2s forwards;
    opacity: 0;
}

.scroll-down-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(5px);
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-15px) translateX(-50%);
    }

    60% {
        transform: translateY(-7px) translateX(-50%);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Адаптация для мобильных */
@media (max-width: 992px) {
    .slide-content h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .video-slider-wrapper {
        height: 90vh;
    }

    .slide-content h2 {
        font-size: 2rem;
    }

    .slide-content p {
        font-size: 1rem;
    }

    .navbar {
        background: rgba(0, 0, 0, 0.7) !important;
    }

    .navbar-collapse {
        background: rgba(0, 0, 0, 0.9);
        padding: 20px;
        margin-top: 10px;
        border-radius: 5px;
    }

    .carousel-indicators {
        bottom: 15px;
    }

    .carousel-indicators button {
        width: 10px;
        height: 10px;
        margin: 0 5px;
    }

    .scroll-down-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .btn-glass {
        padding: 10px 24px;
        font-size: 0.9rem;
    }

    .carousel-item::after {
        background: rgba(0, 0, 0, 0.4);
    }
}