/* Kinetic Scroll Video Widget */
.ksv-widget {
    width: 100%;
    position: relative;
}

.ksv-section {
    position: relative;
    min-height: 100vh;
}

.ksv-container {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    background: #000;
}

.ksv-backgrounds {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.ksv-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.ksv-bg-image.active {
    opacity: 1;
}

.ksv-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.7) 100%);
    z-index: 5;
}

.ksv-content-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 0 5% 8%;
    pointer-events: none;
    z-index: 10;
}

.ksv-title-section {
    flex: 0 0 40%;
}

.ksv-title {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
    overflow: hidden;
    color: #fff;
}

.ksv-title span {
    display: block;
    transform: translate(0, 100%);
}

.ksv-title.animate span {
    animation: ksvReveal 0.8s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

@keyframes ksvReveal {
    0% {
        transform: translate(0, 100%);
    }
    100% {
        transform: translate(0, 0);
    }
}

.ksv-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.3rem);
    color: #ddd;
    font-weight: 300;
    line-height: 1.6;
    max-width: 500px;
    opacity: 0;
    transform: translateY(20px);
}

.ksv-subtitle.animate {
    animation: ksvSubtitleReveal 1s cubic-bezier(0.77, 0, 0.175, 1) 0.4s forwards;
}

@keyframes ksvSubtitleReveal {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.ksv-services-section {
    flex: 0 0 50%;
    display: flex;
    align-items: flex-end;
    position: relative;
    min-height: 300px;
}

.ksv-service-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    opacity: 1;
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 2;
}

.ksv-service-group.ksv-hidden {
    opacity: 0;
    pointer-events: none;
    z-index: 1;
}

.ksv-service-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    opacity: 0;
    transform: translateX(50px);
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    cursor: pointer;
}

.ksv-service-group:not(.ksv-hidden) .ksv-service-item {
    opacity: 1;
    transform: translateX(0);
}

.ksv-service-group:not(.ksv-hidden) .ksv-service-item:nth-child(1) {
    transition-delay: 0.2s;
}

.ksv-service-group:not(.ksv-hidden) .ksv-service-item:nth-child(2) {
    transition-delay: 0.4s;
}

.ksv-service-group:not(.ksv-hidden) .ksv-service-item:nth-child(3) {
    transition-delay: 0.6s;
}

.ksv-service-group:not(.ksv-hidden) .ksv-service-item:nth-child(4) {
    transition-delay: 0.8s;
}

.ksv-service-group:not(.ksv-hidden) .ksv-service-item:nth-child(5) {
    transition-delay: 1.0s;
}

.ksv-service-item:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.ksv-service-item h3 {
    font-size: clamp(0.9rem, 1.2vw, 1.1rem);
    font-weight: 500;
    text-align: center;
    line-height: 1.4;
    margin: 0;
    color: #fff;
}

/* Progress Indicator */
.ksv-progress-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    width: 100%;
    max-width: 1200px;
    padding: 0 2rem;
}

.ksv-progress-line {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.ksv-progress-step {
    width: 40px;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.ksv-progress-step.active {
    background: rgba(255, 255, 255, 1);
    width: 60px;
    height: 4px;
}

.ksv-progress-step:hover {
    background: rgba(255, 255, 255, 0.6);
}

@media (max-width: 968px) {
    .ksv-content-overlay {
        flex-direction: column;
        justify-content: flex-end;
        gap: 3rem;
        padding: 0 5% 8%;
    }

    .ksv-title-section,
    .ksv-services-section {
        flex: 1;
        width: 100%;
    }

    .ksv-service-group {
        grid-template-columns: 1fr;
    }

    .ksv-title-section {
        text-align: center;
    }

    .ksv-subtitle {
        margin: 0 auto;
    }

    .ksv-progress-indicator {
        bottom: 20px;
        padding: 0 1rem;
    }

    .ksv-progress-step {
        width: 30px;
        height: 2px;
    }

    .ksv-progress-step.active {
        width: 50px;
        height: 3px;
    }
}

