/* ============================================
   VIDEO INTEGRATION STYLES
   Teanbris Studio — Service Card Videos + Brand Reel
   ============================================ */

/* ============================================
   4-Column Video-Backed Service Cards
   ============================================ */
.services-grid--4col {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.4rem;
}

@media (max-width: 1100px) {
    .services-grid--4col {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .services-grid--4col {
        grid-template-columns: 1fr;
    }
}

/* Video-backed card */
.service-card--video {
    position: relative;
    overflow: hidden;
    min-height: 420px;
    padding: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: all 0.5s var(--ease-smooth);
}

.card-video-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.card-video-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.42;
    transform: scale(1.03);
    transition: opacity 0.8s var(--ease-smooth), transform 1s var(--ease-smooth);
    filter: brightness(0.52) contrast(1.12) saturate(1.2);
}

.service-card--video:hover .card-video-bg video {
    opacity: 0.88;
    transform: scale(1.08);
}

.card-video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(5, 5, 5, 0.42) 0%,
            rgba(5, 5, 5, 0.22) 30%,
            rgba(5, 5, 5, 0.5) 60%,
            rgba(5, 5, 5, 0.88) 100%);
    z-index: 1;
    pointer-events: none;
    transition: background 0.5s var(--ease-smooth);
}

.service-card--video:hover .card-video-overlay {
    background: linear-gradient(180deg,
            rgba(5, 5, 5, 0.1) 0%,
            rgba(5, 5, 5, 0.05) 30%,
            rgba(5, 5, 5, 0.35) 60%,
            rgba(5, 5, 5, 0.82) 100%);
}

.card-content-inner {
    position: relative;
    z-index: 2;
    padding: 2.2rem 1.8rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: flex-end;
}

.card-content-inner h3 {
    font-size: 1.25rem;
    margin-bottom: 0.6rem;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.card-video-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
    font-weight: 300;
    opacity: 0.82;
    transform: translateY(0);
    transition: all 0.5s var(--ease-out);
}

.service-card--video:hover .card-video-desc {
    opacity: 0.98;
    transform: translateY(0);
}

.service-card--video .service-list {
    margin-bottom: 1rem;
}

.service-card--video .service-list li {
    font-size: 0.82rem;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

.service-card--video .tech-stack-mini {
    margin-bottom: 1rem;
}

.service-card--video .card-link {
    font-size: 0.82rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    align-self: flex-start;
    padding-bottom: 3px;
    letter-spacing: 0.01em;
    transition: all 0.3s var(--ease-smooth);
    color: var(--text-secondary);
}

.service-card--video .card-link:hover {
    color: var(--text-primary);
    border-bottom-color: var(--text-primary);
}

.service-card--video:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.05);
}

/* ============================================
   Brand Reel — Zoomed Logo Video (crop watermarks)
   Force 16:9 ratio, scale up slightly to hide edges
   ============================================ */
.brand-reel__video--zoomed {
    /* Scale up ~15% to crop out watermark edges */
    transform: scale(1.15);
    transform-origin: center center;
}

/* When playing, the zoomed video should also show */
.brand-reel__video--zoomed.is-playing {
    opacity: 0.55;
}
