/* Product Preview Section - Scroll Triggered */
.product-preview-section {
    height: 300vh;
    position: relative;
    background: var(--bg-deep);
}

.pp-sticky-wrapper {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    width: 100%;
}

.pp-container {
    display: flex;
    gap: 4rem;
    align-items: center;
    width: 100%;
    max-width: 1600px;
    /* Increased from 1400px for bigger visuals */
    margin: 0 auto;
    padding: 0 4rem;
    /* More horizontal padding */
}

/* Left Column: Text */
.pp-text-column {
    width: 35%;
    /* Reduced to give more space to visual */
    position: relative;
    z-index: 2;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pp-slides-wrapper {
    position: relative;
    height: 200px;
}

.pp-text-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
}

.pp-text-slide.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    transition-delay: 0.1s;
}

.pp-text-slide.prev {
    opacity: 0;
    transform: translateY(-20px);
    transition-delay: 0s;
}

.pp-label {
    font-family: var(--font-mono);
    color: var(--core-teal);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    display: block;
}

.pp-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.pp-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Progress Dots */
.pp-progress {
    display: flex;
    gap: 0.75rem;
    margin-top: 3rem;
}

.pp-dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: background 0.3s ease, transform 0.3s ease;
}

.pp-dot.active {
    background: var(--core-teal);
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(20, 184, 166, 0.4);
}

/* Right Column: Screenshot Frame */
.pp-visual-column {
    width: 65%;
    /* Increased width */
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

/* Hide mobile pairs on desktop */
.pp-mobile-pairs {
    display: none;
}

.browser-frame {
    width: 100%;
    max-width: 900px;
    background: rgba(13, 17, 23, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(94, 234, 212, 0.2);
    box-shadow:
        0 0 60px rgba(94, 234, 212, 0.15),
        0 30px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 600px;
}

.browser-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
    z-index: 5;
}

.traffic-lights {
    display: flex;
    gap: 8px;
}

.traffic-light {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.traffic-light.red {
    background: #FF5F56;
}

.traffic-light.yellow {
    background: #FFBD2E;
}

.traffic-light.green {
    background: #27C93F;
}

.browser-title {
    margin-left: 1rem;
    font-family: var(--font-main);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

.filmstrip-container {
    width: 100%;
    flex: 1;
    position: relative;
    background: #0d1117;
    overflow: hidden;
}

.filmstrip {
    display: flex;
    width: 300%;
    height: 100%;
    will-change: transform;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.filmstrip-slide {
    width: 33.333%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background: #0d1117;
    padding: 2rem;
    overflow-y: auto;
}

.filmstrip-slide img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}


/* Responsive */
@media (max-width: 1024px) {
    .pp-container {
        /* Keep row layout but reduce padding/gap */
        gap: 2rem;
        padding: 0 2rem;
    }

    .pp-text-column {
        width: 40%;
    }

    .pp-visual-column {
        width: 60%;
    }

    .pp-title {
        font-size: 2rem;
    }

    .product-preview-section {
        /* Ensure height is sufficient for scrolling */
        height: 300vh;
    }
}