/* --- Product Scroll Section (BEM) --- */
.product-scroll {
    /* This section is 300% of the viewport height. 
       This creates the "track" for the user to scroll through. */
    height: 300vh;
    background-color: var(--color-bg-light); /* Light background */
    position: relative;
    font-family: var(--font-main);
    color: var(--color-text-dark);
}

.product-scroll__viewport {
    /* This keeps the content locked in view while scrolling the parent */
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(to bottom, var(--color-bg-light), var(--color-bg-light-grey));
}

/* Full Width Scroll Bar */
.product-scroll__scroll-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background-color: rgba(0,0,0,0.05);
    z-index: 100;
}

.product-scroll__scroll-fill {
    height: 100%;
    width: 0%;
    background-color: var(--color-primary);
    transition: width 0.1s linear;
    box-shadow: 0 0 10px var(--shadow-primary-glow);
}

.product-scroll__container {
    display: flex;
    width: 90%;
    max-width: var(--max-width);
    padding: 0;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

/* --- Images Column --- */
.product-scroll__image-column {
    flex: 1;
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1500px; /* Enhanced 3D depth */
}

.product-scroll__image {
    position: absolute;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    opacity: 0;
    transform: scale(0.8) rotateY(25deg) translateX(100px); /* Start state: pushed back */
    filter: blur(20px) brightness(0.5); /* Start state: blurred and dark */
    transition: all 1.2s cubic-bezier(0.19, 1, 0.22, 1); /* Ultra smooth easing */
    will-change: transform, opacity, filter;
}

/* Active State for Image */
.product-scroll__image.active {
    opacity: 1;
    transform: scale(1) rotateY(0deg) translateX(0);
    filter: blur(0px) brightness(1) drop-shadow(0 40px 80px var(--shadow-black-strong)); /* Pop out */
    z-index: 2;
}

/* --- Text Column --- */
.product-scroll__text-column {
    flex: 1;
    position: relative;
    height: 500px; /* Fixed height for text overlap */
    display: flex;
    align-items: center;
}

.product-scroll__content {
    position: absolute;
    top: 50%;
    transform: translateY(-40%);
    left: 10%; /* Indent slightly */
    right: auto;
    max-width: 600px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

/* Active State for Text */
.product-scroll__content.active {
    opacity: 1;
    transform: translateY(-50%);
    pointer-events: all;
    z-index: 2;
}

/* Staggered Text Animations */
.product-scroll__content .product-scroll__label,
.product-scroll__content .product-scroll__title,
.product-scroll__content .product-scroll__description,
.product-scroll__content .product-scroll__button {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

.product-scroll__content.active .product-scroll__label {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.1s;
}

.product-scroll__content.active .product-scroll__title {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

.product-scroll__content.active .product-scroll__description {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

.product-scroll__content.active .product-scroll__button {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
}

/* Typography & Elements */
.product-scroll__label {
    color: var(--color-text-grey-medium);
    font-size: 0.95rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.product-scroll__label-dot {
    background-color: var(--color-primary);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 15px var(--shadow-primary-glow);
}

.product-scroll__title {
    font-size: clamp(3rem, 5vw, 5rem); /* Massive responsive font */
    font-weight: 900;
    margin-bottom: var(--space-xl);
    color: var(--color-text-dark);
    letter-spacing: -2px;
    line-height: 1.05;
    text-shadow: 0 10px 30px var(--shadow-text-very-soft);
}

.product-scroll__description {
    color: var(--color-text-grey-dark);
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: var(--space-2xl);
    font-weight: 300;
    max-width: 90%;
}

/* Button */
.product-scroll__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--color-primary);
    padding: var(--space-md) var(--space-2xl);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    border: 2px solid var(--color-primary);
    border-radius: 50px; /* Rounded pill shape */
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    /* Accessibility: Minimum touch target size */
    min-height: 44px;
    min-width: 44px;
}

.product-scroll__button:hover {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    box-shadow: 0 15px 30px var(--shadow-primary-low);
    transform: translateY(-5px) scale(1.05);
}

/* Progress Indicator */
.product-scroll__progress {
    position: absolute;
    right: var(--space-2xl);
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    z-index: 10;
}

.product-scroll__dot {
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    background: transparent;
    padding: 0;
    margin: 0;
    border: none;
    /* Accessibility: Touch target size */
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* The visual dot is now a pseudo-element or we need to adjust the styling because the button itself is the touch target */
/* Let's make the button transparent and use a pseudo-element for the visual dot to keep the touch area large but the visual small */
.product-scroll__dot::before {
    content: '';
    display: block;
    width: 12px;
    height: 12px;
    border: 2px solid var(--color-border-light);
    border-radius: 50%;
    transition: all 0.4s ease;
}

.product-scroll__dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 12px;
    height: 12px;
    background-color: var(--color-primary);
    border-radius: 50%;
    transition: transform 0.4s ease;
}

.product-scroll__dot.active::before {
    border-color: var(--color-primary);
    transform: scale(1.5);
    box-shadow: 0 0 20px var(--shadow-primary-glow);
}

.product-scroll__dot.active::after {
    transform: translate(-50%, -50%) scale(1);
}

/* Responsive */
@media (max-width: 1024px) {
    .product-scroll__container {
        flex-direction: column-reverse;
        text-align: center;
        width: 100%;
        justify-content: center;
    }
    
    .product-scroll__text-column {
        padding-left: 0;
        justify-content: center;
        height: auto;
        min-height: 300px;
        width: 100%;
    }
    
    .product-scroll__content {
        left: 0;
        right: 0;
        margin: 0 auto;
        position: relative;
        transform: none !important;
        top: auto;
        display: none;
        padding: 0 var(--space-lg);
        width: 100%;
        max-width: 600px;
    }
    
    .product-scroll__content.active {
        display: flex;
        flex-direction: column;
        align-items: center;
        opacity: 1;
        transform: none;
    }
    
    .product-scroll__image-column {
        height: 350px;
        margin-bottom: var(--space-lg);
        width: 100%;
        flex: 0 0 auto;
    }
    
    .product-scroll__title {
        font-size: clamp(2.5rem, 6vw, 4rem);
        margin-bottom: var(--space-lg);
    }
    
    .product-scroll__progress {
        right: var(--space-lg);
        gap: var(--space-md);
    }
    
    .product-scroll__description {
        font-size: 1.1rem;
        margin-bottom: var(--space-xl);
    }
}

@media (max-width: 768px) {
    .product-scroll__progress {
        display: none; /* Hide dots on smaller screens to save space */
    }

    .product-scroll__image-column {
        height: 280px;
        margin-bottom: var(--space-md);
    }

    .product-scroll__title {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .product-scroll__description {
        font-size: 1rem;
        line-height: 1.6;
    }

    .product-scroll__label {
        margin-bottom: var(--space-sm);
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .product-scroll__image-column {
        height: 220px;
    }

    .product-scroll__content {
        padding: 0 var(--space-md);
    }

    .product-scroll__title {
        font-size: clamp(1.75rem, 10vw, 2.5rem);
        margin-bottom: var(--space-md);
    }

    .product-scroll__button {
        width: 100%;
        max-width: 320px;
        padding: var(--space-md) var(--space-lg);
    }
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .product-scroll__image,
    .product-scroll__content,
    .product-scroll__label,
    .product-scroll__title,
    .product-scroll__description,
    .product-scroll__button,
    .product-scroll__dot,
    .product-scroll__dot::before,
    .product-scroll__dot::after,
    .product-scroll__scroll-fill {
        transition: none !important;
        animation: none !important;
        transform: none !important;
        opacity: 1 !important;
        filter: none !important;
    }

    .product-scroll__image {
        opacity: 1;
        transform: none;
        filter: none;
    }

    .product-scroll__content {
        opacity: 1;
        transform: none;
    }

    .product-scroll__button:hover {
        transform: none;
    }
}