/* Modern Animations & Utilities */

:root {
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translate3d(40px, 0, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes pulse-soft {
    0% {
        box-shadow: 0 0 0 0 rgba(233, 69, 96, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(233, 69, 96, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(233, 69, 96, 0);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

/* Utility Classes */
.animate-fade-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
    /* meaningful start state */
}

.animate-fade-right {
    animation: fadeInRight 0.8s ease-out forwards;
    opacity: 0;
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.delay-400 {
    animation-delay: 0.4s;
}

.delay-500 {
    animation-delay: 0.5s;
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

.animate-pulse-soft {
    animation: pulse-soft 2s infinite;
}

/* Glassmorphism */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
}

.glass-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.95);
}

/* Decoratiive Elements */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    z-index: -1;
    opacity: 0.6;
}

.blob-1 {
    width: 300px;
    height: 300px;
    background: rgba(233, 69, 96, 0.2);
    top: -50px;
    right: -50px;
    animation: float 6s ease-in-out infinite;
}

.blob-2 {
    width: 250px;
    height: 250px;
    background: rgba(22, 33, 62, 0.15);
    bottom: -50px;
    left: -50px;
    animation: float 8s ease-in-out infinite reverse;
}

/* Layout Utilities */
.section-pattern {
    background-image: radial-gradient(#e0e0e0 1px, transparent 1px);
    background-size: 24px 24px;
}

.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hover-lift {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hover-lift:hover {
    transform: translateY(-5px) scale(1.02);
}

.sticky-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    transition: all 0.3s ease;
}

.sticky-nav.scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* ===== VIDEO SLIDER ===== */
.video-slider-wrapper {
    position: relative;
    width: 100%;
}

.video-slider {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 8px 4px 20px;
    scrollbar-width: none;
}

.video-slider::-webkit-scrollbar {
    display: none;
}

.video-card {
    flex: 0 0 calc(25% - 18px);
    scroll-snap-align: start;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    background: #000;
    aspect-ratio: 16 / 9;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.video-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 12px 40px rgba(233, 69, 96, 0.25);
}

.video-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.video-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(26, 26, 46, 0.85) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    transition: all 0.3s ease;
}

.video-card:hover .video-card-overlay {
    background: linear-gradient(180deg, rgba(233, 69, 96, 0.1) 0%, rgba(26, 26, 46, 0.9) 100%);
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    width: 64px;
    height: 64px;
    background: rgba(233, 69, 96, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 0 0 8px rgba(233, 69, 96, 0.2), 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.video-card:hover .video-play-btn {
    transform: translate(-50%, -50%) scale(1.15);
    background: rgba(233, 69, 96, 1);
    box-shadow: 0 0 0 12px rgba(233, 69, 96, 0.3), 0 8px 30px rgba(0, 0, 0, 0.4);
}

.video-play-btn svg {
    width: 24px;
    height: 24px;
    margin-left: 3px;
}

.video-card-title {
    color: white;
    font-weight: 700;
    font-size: 16px;
    z-index: 2;
}

.video-card-badge {
    display: inline-block;
    background: rgba(233, 69, 96, 0.85);
    color: white;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 8px;
    width: fit-content;
}

/* Slider Navigation Arrows */
.slider-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: white;
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    color: #1a1a2e;
}

.slider-nav-btn:hover {
    background: #e94560;
    color: white;
    box-shadow: 0 4px 25px rgba(233, 69, 96, 0.4);
    transform: translateY(-50%) scale(1.1);
}

.slider-nav-btn.prev {
    left: -24px;
}

.slider-nav-btn.next {
    right: -24px;
}

.slider-nav-btn svg {
    width: 20px;
    height: 20px;
}

/* Video Popup Modal */
.video-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.video-modal.active {
    display: flex;
}

.video-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    animation: modalFadeIn 0.3s ease;
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalSlideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 1;
    background: #000;
}

.video-modal-content video {
    width: 100%;
    display: block;
    border-radius: 20px;
}

.video-modal-close {
    position: absolute;
    top: -48px;
    right: 0;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2;
}

.video-modal-close:hover {
    background: #e94560;
    border-color: #e94560;
    transform: rotate(90deg);
}

.video-modal-title {
    color: white;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    padding: 16px;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    border-radius: 0 0 20px 20px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-modal-content:hover .video-modal-title {
    opacity: 1;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Video Slider Responsive */
@media (max-width: 1024px) {
    .video-card {
        flex: 0 0 calc(50% - 12px);
    }
    .slider-nav-btn.prev { left: -12px; }
    .slider-nav-btn.next { right: -12px; }
}

@media (max-width: 640px) {
    .video-card {
        flex: 0 0 calc(100% - 8px);
    }
    .video-slider { gap: 16px; }
    .slider-nav-btn {
        width: 36px;
        height: 36px;
    }
    .slider-nav-btn.prev { left: -8px; }
    .slider-nav-btn.next { right: -8px; }
    .video-play-btn {
        width: 48px;
        height: 48px;
    }
    .video-play-btn svg {
        width: 18px;
        height: 18px;
    }
    .video-modal-content {
        width: 95%;
        border-radius: 12px;
    }
    .video-modal-content video {
        border-radius: 12px;
    }
}