/* ==========================================================================
   PARTNERSHIP VALUES SECTION (Site Matte Black Theme with Smooth Split Reveal)
   ========================================================================== */

:root {
    --pv-bg: #0a0a0a;
    --pv-surface: #111113;
    --pv-surface-glass: rgba(18, 18, 22, 0.88);
    --pv-surface-hover: #16161a;
    --pv-border: rgba(255, 255, 255, 0.08);
    --pv-border-hover: rgba(6, 182, 212, 0.45);
    --pv-accent: #06b6d4;
    --pv-accent-glow: rgba(6, 182, 212, 0.18);
    --pv-text-title: #f8fafc;
    --pv-text-muted: #a1a1aa;
    --pv-icon-bg: rgba(255, 255, 255, 0.05);
    --pv-icon-border: rgba(255, 255, 255, 0.1);
}

[data-theme="light"] {
    --pv-bg: #f8fafc;
    --pv-surface: #ffffff;
    --pv-surface-glass: rgba(255, 255, 255, 0.95);
    --pv-surface-hover: #f1f5f9;
    --pv-border: #e2e8f0;
    --pv-border-hover: rgba(6, 182, 212, 0.5);
    --pv-accent: #06b6d4;
    --pv-accent-glow: rgba(6, 182, 212, 0.15);
    --pv-text-title: #0f172a;
    --pv-text-muted: #64748b;
    --pv-icon-bg: #f1f5f9;
    --pv-icon-border: #e2e8f0;
}

/* Scroll Container (Desktop Sticky Track) */
.section-partnership-values {
    position: relative;
    background-color: var(--pv-bg);
    background-image: 
        radial-gradient(circle at 85% 15%, rgba(6, 182, 212, 0.07) 0%, transparent 55%),
        radial-gradient(circle at 15% 85%, rgba(99, 102, 241, 0.06) 0%, transparent 45%);
    width: 100%;
    overflow: visible;
    border-top: 1px solid var(--border);
}

@media (min-width: 992px) {
    .section-partnership-values {
        height: 250vh; /* Smooth multi-screen scroll track */
    }
}

/* Sticky Viewport Container */
.pv-sticky-viewport {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    padding: 60px 24px 100px 24px;
    overflow: hidden;
}

@media (min-width: 992px) {
    .pv-sticky-viewport {
        position: sticky;
        top: 0;
        height: 100vh;
        padding: 85px 24px 75px 24px; /* Ample top navbar clearance and generous bottom padding */
    }
}

/* Background Atmospheric Decorative Rays */
.pv-decor-rays {
    position: absolute;
    top: 0;
    right: 0;
    width: 650px;
    height: 650px;
    pointer-events: none;
    z-index: 1;
    opacity: 0.65;
}

.pv-decor-rays svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Inner Centered Container */
.pv-inner-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Header Section */
.pv-header {
    text-align: center;
    max-width: 820px;
    margin: 0 auto 24px auto;
}

.pv-title {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: clamp(1.9rem, 3.2vw, 2.75rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--pv-text-title);
    margin: 6px 0 12px 0;
}

.pv-desc {
    font-size: clamp(0.9rem, 1vw, 1.02rem);
    line-height: 1.6;
    color: var(--pv-text-muted);
    max-width: 640px;
    margin: 0 auto;
}

/* Stage - Three Columns that Split Open */
.pv-stage {
    display: flex;
    align-items: stretch;
    justify-content: center;
    width: 100%;
    position: relative;
    margin-top: 6px;
}

/* Left & Right Card Columns */
.pv-col-left,
.pv-col-right {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 340px;
    flex: 0 0 340px;
    box-sizing: border-box;
}

@media (min-width: 992px) {
    .pv-col-left {
        margin-right: 12px;
    }
    .pv-col-right {
        margin-left: 12px;
    }
}

/* Center Column - Expands from 0 to 340px */
.pv-col-center {
    width: calc(var(--reveal-progress, 0) * 340px);
    margin: 0 calc(var(--reveal-progress, 0) * 12px);
    opacity: var(--reveal-progress, 0);
    transform: scale(calc(0.9 + var(--reveal-progress, 0) * 0.1));
    overflow: hidden;
    display: flex;
    align-items: stretch;
    justify-content: center;
    border-radius: 18px;
    flex-shrink: 0;
    box-sizing: border-box;
    will-change: width, margin, opacity, transform;
}

/* Center Image Inner Wrap (Fixed anchor width so image reveals from center outward) */
.pv-img-wrap {
    width: 340px;
    height: 100%;
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid var(--pv-border);
    box-shadow: 0 24px 48px -15px rgba(0, 0, 0, 0.85);
    background-color: var(--pv-surface);
}

.pv-img-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 45%;
    display: block;
    transform: scale(1.02);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.pv-col-center:hover .pv-img-wrap img {
    transform: scale(1.06);
}

/* Card Styling */
.pv-card {
    background: var(--pv-surface-glass);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--pv-border);
    border-radius: 18px;
    padding: 24px 24px;
    box-sizing: border-box;
    height: 195px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    transition: border-color 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
    cursor: default;
    position: relative;
    overflow: hidden;
}

.pv-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
    opacity: 0.6;
}

.pv-card:hover {
    background: var(--pv-surface-hover);
    border-color: var(--pv-border-hover);
    transform: translateY(-3px);
    box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.7), 0 0 25px -5px var(--pv-accent-glow);
}

/* Card Icon Box */
.pv-icon-wrap {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--pv-icon-bg);
    border: 1px solid var(--pv-icon-border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: var(--pv-text-title);
    flex-shrink: 0;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

.pv-card:hover .pv-icon-wrap {
    background: rgba(6, 182, 212, 0.15);
    border-color: rgba(6, 182, 212, 0.4);
    color: var(--pv-accent);
    transform: scale(1.05);
}

.pv-icon-wrap svg {
    width: 19px;
    height: 19px;
    display: block;
}

/* Card Typography */
.pv-card-title {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.22rem;
    font-weight: 600;
    line-height: 1.25;
    color: var(--pv-text-title);
    margin: 0 0 8px 0;
    letter-spacing: -0.015em;
}

.pv-card-desc {
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--pv-text-muted);
    margin: 0;
}

/* Responsive Styles for Tablets and Mobile */
@media (max-width: 991px) {
    .section-partnership-values {
        height: auto !important;
        padding: 80px 0 110px 0;
    }

    .pv-sticky-viewport {
        position: relative !important;
        height: auto !important;
        min-height: auto !important;
        padding: 0 20px !important;
    }

    .pv-header {
        margin-bottom: 36px;
    }

    .pv-stage {
        flex-direction: column;
        align-items: center;
        max-width: 500px;
        gap: 16px;
    }

    .pv-col-left,
    .pv-col-right {
        width: 100%;
        flex: none;
        margin: 0 !important;
    }

    .pv-col-left {
        order: 1;
    }

    .pv-col-center {
        order: 2;
        width: 100% !important;
        max-width: 100% !important;
        height: 360px !important;
        margin: 8px 0 !important;
        opacity: 1 !important;
        transform: none !important;
    }

    .pv-img-wrap {
        width: 100% !important;
        min-height: auto !important;
        height: 100% !important;
    }

    .pv-col-right {
        order: 3;
    }

    .pv-card {
        height: auto;
        min-height: 160px;
        padding: 24px 22px;
    }

    .pv-decor-rays {
        width: 400px;
        height: 400px;
        opacity: 0.4;
    }
}

@media (max-width: 480px) {
    .pv-col-center {
        height: 290px !important;
    }
    .pv-card {
        padding: 20px 18px;
    }
    .pv-card-title {
        font-size: 1.15rem;
    }
}
