/* XK Interactive - Video Hero Slideshow */
/* Stunning video background slideshow for homepage */

/* ===== VIDEO HERO CONTAINER ===== */
.video-hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.video-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(13, 17, 23, 0.7) 0%,
        rgba(13, 17, 23, 0.4) 50%,
        rgba(13, 17, 23, 0.7) 100%
    );
    z-index: 2;
    pointer-events: none;
}

/* ===== VIDEO BACKGROUND ===== */
.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.video-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.video-slide.active {
    opacity: 1;
}

.video-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* ===== HERO CONTENT OVERLAY ===== */
.video-hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: #F0F6FC;
    max-width: 800px;
    padding: 2rem;
    animation: heroContentFadeIn 1.5s ease-out 0.5s both;
}

.video-hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.video-hero-title .text-gradient {
    background: linear-gradient(135deg, #FF6B35 0%, #FFD23F 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.video-hero-subtitle {
    font-size: 1.4rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    color: rgba(240, 246, 252, 0.9);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.video-hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.video-hero-btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 2px solid transparent;
}

.video-hero-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.video-hero-btn:hover::before {
    left: 100%;
}

.video-hero-btn-primary {
    background: linear-gradient(135deg, #FF6B35 0%, #FFD23F 100%);
    color: #000;
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.3);
}

.video-hero-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(255, 107, 53, 0.4);
    color: #000;
    text-decoration: none;
}

.video-hero-btn-secondary {
    background: rgba(240, 246, 252, 0.1);
    color: #F0F6FC;
    border-color: rgba(240, 246, 252, 0.3);
}

.video-hero-btn-secondary:hover {
    background: rgba(240, 246, 252, 0.2);
    border-color: rgba(240, 246, 252, 0.5);
    transform: translateY(-3px);
    color: #F0F6FC;
    text-decoration: none;
}

/* ===== VIDEO CONTROLS ===== */
.video-controls {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(13, 17, 23, 0.8);
    padding: 1rem 1.5rem;
    border-radius: 50px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 107, 53, 0.2);
}

.video-indicators {
    display: flex;
    gap: 0.75rem;
}

.video-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 107, 53, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.video-indicator.active {
    background: #FF6B35;
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.6);
}

.video-indicator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-radius: 50%;
    transition: border-color 0.3s ease;
}

.video-indicator.active::before {
    border-color: rgba(255, 107, 53, 0.4);
    animation: indicatorPulse 2s ease-in-out infinite;
}

.video-play-pause {
    background: none;
    border: none;
    color: #F0F6FC;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.video-play-pause:hover {
    background: rgba(255, 107, 53, 0.2);
    color: #FF6B35;
}

.video-mute {
    background: none;
    border: none;
    color: #F0F6FC;
    font-size: 1rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.video-mute:hover {
    background: rgba(255, 107, 53, 0.2);
    color: #FF6B35;
}

/* ===== PROGRESS BAR ===== */
.video-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 107, 53, 0.2);
    z-index: 4;
}

.video-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #FF6B35 0%, #FFD23F 100%);
    width: 0%;
    transition: width 0.3s ease;
    position: relative;
}

.video-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 8px;
    height: 100%;
    background: #FFD23F;
    box-shadow: 0 0 10px rgba(255, 210, 63, 0.8);
}

/* ===== SCROLL INDICATOR ===== */
.scroll-indicator {
    position: absolute;
    bottom: 1rem;
    right: 2rem;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(240, 246, 252, 0.7);
    font-size: 0.9rem;
    animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-indicator i {
    font-size: 1.5rem;
}

/* ===== KEYFRAME ANIMATIONS ===== */
@keyframes heroContentFadeIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes indicatorPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.7;
    }
}

@keyframes scrollBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .video-hero-title {
        font-size: 2.5rem;
    }

    .video-hero-subtitle {
        font-size: 1.1rem;
    }

    .video-hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .video-hero-btn {
        padding: 0.875rem 1.75rem;
        font-size: 1rem;
    }

    .video-controls {
        bottom: 1rem;
        padding: 0.75rem 1rem;
        gap: 0.75rem;
    }

    .video-indicators {
        gap: 0.5rem;
    }

    .video-indicator {
        width: 10px;
        height: 10px;
    }

    .scroll-indicator {
        bottom: 0.5rem;
        right: 1rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .video-hero-content {
        padding: 1rem;
    }

    .video-hero-title {
        font-size: 2rem;
    }

    .video-hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .video-hero-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .video-controls {
        padding: 0.5rem 0.75rem;
        gap: 0.5rem;
    }
}

/* ===== ABOUT & SERVICES PAGE VIDEO STYLES ===== */
.about-video-container,
.services-video-container {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.video-wrapper {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.about-video,
.services-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.video-wrapper:hover .about-video,
.video-wrapper:hover .services-video {
    transform: scale(1.05);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(13, 17, 23, 0.6) 0%,
        rgba(13, 17, 23, 0.3) 50%,
        rgba(13, 17, 23, 0.6) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-wrapper:hover .video-overlay {
    opacity: 1;
}

.video-overlay .overlay-content {
    text-align: center;
    color: #F0F6FC;
    margin-bottom: 2rem;
}

.video-overlay .overlay-content h4 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #FF6B35 0%, #FFD23F 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.video-overlay .overlay-content p {
    font-size: 1.1rem;
    color: rgba(240, 246, 252, 0.8);
    margin: 0;
}

.video-play-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF6B35 0%, #FFD23F 100%);
    border: none;
    color: #000;
    font-size: 1.8rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.video-play-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #FFD23F 0%, #FF6B35 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-play-btn:hover::before {
    opacity: 1;
}

.video-play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.4);
}

.video-play-btn i {
    position: relative;
    z-index: 2;
    margin-left: 4px; /* Slight offset for visual centering */
}

/* Services highlights */
.services-highlights {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.highlight-item {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    color: #F0F6FC;
}

.highlight-item i {
    font-size: 1.2rem;
}

/* Responsive styles for video sections */
@media (max-width: 768px) {
    .video-wrapper {
        height: 300px;
    }

    .video-overlay .overlay-content h4 {
        font-size: 1.5rem;
    }

    .video-overlay .overlay-content p {
        font-size: 1rem;
    }

    .video-play-btn {
        width: 60px;
        height: 60px;
        font-size: 1.4rem;
    }

    .services-highlights {
        margin-top: 2rem;
    }

    .highlight-item {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .video-wrapper {
        height: 250px;
    }

    .video-overlay .overlay-content {
        margin-bottom: 1.5rem;
    }

    .video-overlay .overlay-content h4 {
        font-size: 1.3rem;
    }

    .video-play-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}
