/* ========================================
   PRODUCTS BLOCK - HORIZONTAL THREE-CARD LAYOUT
   ======================================== */

.products-section {
    position: relative;
    width: 100%;
    background: #000;
}

/* Section Title */
.products-title-container {
    position: absolute;
    top: 2rem;
    left: 2rem;
    z-index: 30;
}

.products-title-wrapper {
    position: relative;
    display: inline-block;
}

.products-title-accent {
    position: absolute;
    left: -1rem;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, white, rgba(255, 255, 255, 0.6));
    border-radius: 9999px;
}

.products-title {
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.75);
    border-radius: 0 0.5rem 0.5rem 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: none;
    margin: 0;
    letter-spacing: 0.025em;
}

@media (min-width: 768px) {
    .products-title {
        font-size: 27px;
    }
}

/* Products Container - Horizontal Flexbox */
.products-container {
    display: flex;
    flex-direction: row;
    width: 100%;
    min-height: 875px;
}

/* Individual Product Card */
.product-card {
    flex: 1;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

/* Video Background Layer */
.product-video-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.product-video-bg .product-poster,
.product-video-bg .product-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.product-video-bg .product-poster.active,
.product-video-bg .product-video.active {
    opacity: 1;
}

/* Gradient Overlay - Always visible, stronger on active (click) */
.product-gradient-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.95) 0%,
            rgba(0, 0, 0, 0.8) 25%,
            rgba(0, 0, 0, 0.55) 55%,
            rgba(0, 0, 0, 0.25) 100%);
    pointer-events: none;
    transition: background 0.4s ease;
}

/* Blur overlay for active state */
.product-card.active .product-gradient-overlay::before {
    content: "";
    position: absolute;
    inset: 0;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: -1;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.4s ease;
}

.product-card.active .product-gradient-overlay {
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.9) 0%,
            rgba(0, 0, 0, 0.75) 30%,
            rgba(0, 0, 0, 0.5) 60%,
            rgba(0, 0, 0, 0.3) 100%);
}

/* Divider between cards */
.product-divider {
    width: 2px;
    background: linear-gradient(to top,
            rgb(255, 255, 255) 0%,

            rgba(255, 255, 255, 0.05) 70%,
            transparent 100%);
    z-index: 10;
}

/* Logo Container (centered, default state) */
.product-logo-container {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
}

.product-logo {
    max-height: 200px;
    max-width: 400px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
    transition: transform 0.4s ease;
}

/* Logo hover animation - subtle scale pulse */
.product-card:hover .product-logo {
    animation: logo-pulse 2s ease-in-out infinite;
}

@keyframes logo-pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* When card is active, logo moves up and fades out */
.product-card.active .product-logo-container {
    transform: translateY(-80%);
    opacity: 0;
}

/* Stop animation when active */
.product-card.active .product-logo {
    animation: none;
}

/* ========================================
   EXPAND ARROW BUTTON
   ======================================== */
.product-expand-btn {
    position: absolute;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 15;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.2);
}

.product-expand-btn svg {
    width: 32px;
    height: 32px;
    transition: transform 0.3s ease;
}

.product-expand-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateX(-50%) scale(1.1);
}

/* Pulsing animation for arrow button */
.product-expand-btn {
    animation: arrow-pulse 2s ease-in-out infinite;
}

@keyframes arrow-pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.3);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(255, 255, 255, 0);
    }
}

/* Hide arrow button when expanded */
.product-card.active .product-expand-btn {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(20px);
}

/* Text Overlay (hidden by default, shown on click) */
.product-text-overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 2rem;
    padding-top: 10rem;
    padding-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity 0.4s ease,
        transform 0.4s ease;
    background: transparent;
    overflow: hidden;
}

.product-text-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    max-width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Description text with inline logo */
.product-description {
    color: white;
    font-size: 20px;
    line-height: 1.6;
    font-weight: 400;
    max-height: 80%;
    min-height: 0;
    overflow-y: auto;
    padding-right: 8px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.product-description ul {
    list-style-type: disc;
    padding-left: 1.25em;
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

.product-description ol {
    list-style-type: decimal;
    padding-left: 1.25em;
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

.product-description li {
    margin-bottom: 0.25em;
}

.product-description::-webkit-scrollbar {
    width: 4px;
}

.product-description::-webkit-scrollbar-track {
    background: transparent;
}

.product-description::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

/* Inline logo on first line with text */
.product-logo-inline {
    display: inline;
    max-width: 220px;
    width: auto;
    object-fit: contain;
    margin-right: 8px;
    vertical-align: text-bottom;
}

.product-description p {
    margin: 0;
    display: inline;
}

.product-description p:first-child {
    display: inline;
}

/* Button styling */
.product-button-wrapper {
    margin-top: 1.5rem;
    flex-shrink: 0;
}

.product-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    color: white;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s ease;
    background: transparent;
}

.product-button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.product-button svg {
    width: 12px;
    height: 12px;
}

/* Go button - more prominent */
.product-go-btn {
    padding: 0.75rem 1.5rem;
    font-size: 15px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.product-go-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
    transform: translateX(4px);
}

.product-go-btn svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.product-go-btn:hover svg {
    transform: translateX(4px);
}

/* ========================================
   CLICK-TOGGLE STATE (using .active class)
   ======================================== */

.product-card.active .product-text-overlay {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   RESPONSIVE - TABLET
   ======================================== */
@media (max-width: 1024px) {
    .products-container {
        min-height: 550px;
    }

    .product-text-overlay {
        padding: 1.5rem;
    }

    .product-description {
        font-size: 14px;
        min-height: 100px;
    }

    .product-logo-hover {
        height: 48px;
    }

    .product-expand-btn {
        width: 42px;
        height: 42px;
        bottom: 1.5rem;
    }

    .product-expand-btn svg {
        width: 20px;
        height: 20px;
    }
}

/* ========================================
   RESPONSIVE - MOBILE
   ======================================== */
@media (max-width: 768px) {
    .products-container {
        flex-direction: column;
        min-height: auto;
    }

    .product-card {
        min-height: 400px;
    }

    .product-divider {
        width: 100%;
        height: 2px;
        background: linear-gradient(to right,
                transparent 0%,
                rgba(255, 255, 255, 0.2) 20%,
                rgba(255, 255, 255, 0.663) 80%,
                transparent 100%);
    }

    .products-title {
        font-size: 1.5rem;
    }

    .product-text-overlay {
        padding: 1.25rem;
    }

    .product-description {
        font-size: 13px;
        line-height: 1.55;
        min-height: 80px;
    }

    .product-logo {
        max-height: 60px;
    }

    .product-logo-hover {
        height: 40px;
    }

    .product-expand-btn {
        width: 40px;
        height: 40px;
        bottom: 1rem;
    }

    .product-expand-btn svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    .products-title-container {
        top: 1rem;
        left: 1rem;
    }

    .products-title {
        font-size: 1.25rem;
        padding: 0.375rem 0.75rem;
    }

    .products-title-accent {
        left: -12px;
        width: 3px;
    }

    .product-card {
        min-height: 350px;
    }

    .product-text-overlay {
        padding: 1rem;
    }

    .product-description {
        font-size: 12px;
    }

    .product-expand-btn {
        width: 36px;
        height: 36px;
    }

    .product-expand-btn svg {
        width: 16px;
        height: 16px;
    }
}