/* css/connect-showcase.css - Dark Theme Version */

.connect-showcase-section {
    padding: 6rem 2rem;
    background-color: #121212; /* Dark, premium background */
    color: #f0f0f0;
    border-top: 1px solid #333;
}

.connect-showcase-section .section-title {
    color: #ffffff;
}

.connect-showcase-section .section-subtitle {
    color: #b3b3b3;
}

.showcase-eyebrow {
    display: block;
    text-align: center;
    color: #00aaff; /* Bright, techy accent color */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1rem;
}

.showcase-container {
    display: flex;
    gap: 3rem;
    max-width: 1200px;
    margin: 4rem auto 0 auto;
    min-height: 500px;
}

/* Left Side: Tabs */
.showcase-tabs {
    flex: 0 0 320px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.showcase-tab {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 8px;
    cursor: pointer;
    border: 1px solid transparent;
    background-color: #1f1f1f;
    transition: background-color 0.2s ease, transform 0.2s ease, border-left-color 0.2s ease;
    border-left: 3px solid transparent;
}

.showcase-tab:hover {
    background-color: #2a2a2a;
    transform: translateX(5px);
}

.showcase-tab.active {
    background-color: #2a2a2a;
    border-left-color: #00aaff; /* Use border to indicate active state */
    transform: translateX(5px);
}

.showcase-tab i {
    font-size: 1.5rem;
    color: #00aaff;
    width: 40px;
    text-align: center;
    flex-shrink: 0;
}

.tab-text h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
    color: #ffffff;
}

.tab-text p {
    margin: 0;
    font-size: 0.9rem;
    color: #a0a0a0;
    line-height: 1.4;
}

/* Right Side: Viewer */
.showcase-viewer {
    flex-grow: 1;
    position: relative; /* For stacking images */
    background-color: #1a1a1a;
    border-radius: 12px;
    border: 1px solid #333;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    display: flex; /* We will use flex to position text and image */
    overflow: hidden;
}

/* NEW: Text & Logo Content Area */
.viewer-text-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    z-index: 10; /* Make sure it's above the image wrapper */
    opacity: 0; /* Initially hidden */
    transition: opacity 0.4s ease;
    background: rgba(26, 26, 26, 0.7); /* Semi-transparent overlay */
    backdrop-filter: blur(5px);
}

/* When no tab is active, show the text content */
.showcase-tabs:not(:has(.active)) + .showcase-viewer .viewer-text-content {
    opacity: 1;
}

.viewer-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
}

.viewer-text-content h3 {
    font-size: 2rem;
    font-family: 'Montserrat', sans-serif;
    color: #fff;
    margin: 0 0 1rem 0;
}

.viewer-text-content p {
    color: #ccc;
    max-width: 450px;
    margin: 0 auto 2rem auto;
    line-height: 1.6;
}
/* Right Side: Viewer - No changes needed, but shown for context */
.showcase-viewer {
    flex-grow: 1;
    position: relative; /* For stacking images and text overlay */
    background-color: #1a1a1a;
    border-radius: 12px;
    border: 1px solid #333;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    display: flex;
    overflow: hidden;
}

/* REVISED: Image Wrapper now uses flexbox to center its content */
/* REVISED: Image Wrapper - This is now just a simple container. */
.viewer-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Padding is moved to the image rule to ensure centering is accurate */
}

/* REVISED: Showcase Image now uses a transform for perfect centering */
.showcase-image {
    position: absolute; /* Kept to allow images to stack */
    top: 50%;           /* Move the top edge to the vertical center */
    left: 50%;          /* Move the left edge to the horizontal center */

    /* Constrain the image size, leaving a 2rem "padding" on all sides */
    max-width: calc(100% - 4rem);
    max-height: calc(100% - 4rem);

    object-fit: contain; /* Ensures aspect ratio is maintained */
    border-radius: 6px;

    /*
      The translate(-50%, -50%) pulls the image back by half its own
      width and height, perfectly centering it. We combine it with your
      original scale animation.
    */
    transform: translate(-50%, -50%) scale(1.05);
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
}

.showcase-image.active {
    opacity: 1;
    /* The active state just changes the scale back to normal */
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
}

/* Initially hide the text content when a tab is active by default on load */
.showcase-tabs:has(.active) + .showcase-viewer .viewer-text-content {
    opacity: 0;
    pointer-events: none;
}


/* CTA Button */
.btn-showcase-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background-color: #00aaff;
    color: #121212;
    font-weight: 700;
    border: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-showcase-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 170, 255, 0.2);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .showcase-container {
        flex-direction: column;
        gap: 2rem;
    }
    .showcase-tabs {
        flex-direction: row;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 1rem;
        flex: 1 1 auto;
    }
    .showcase-tab {
        flex-direction: column;
        flex: 0 0 150px;
        text-align: center;
    }
    .showcase-viewer {
        height: 450px; /* Give a fixed height on mobile */
    }
}
/* css/connect-showcase.css (ADD THIS TO THE END) */

/* --- Showcase Final CTA --- */
.showcase-final-cta {
    text-align: center;
    margin-top: 4rem; /* More space above the button */
}

.btn-cta-primary-glow {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background-color: #00aaff; /* The bright, techy blue */
    color: #121212; /* Dark text for contrast */
    padding: 1rem 1.8rem;
    border-radius: 50px; /* Fully rounded ends */
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    border: 2px solid #00aaff;
    box-shadow: 0 0 15px rgba(0, 170, 255, 0.3), 0 0 25px rgba(0, 170, 255, 0.2);
    transition: all 0.3s ease;
}

.btn-cta-primary-glow:hover {
    background-color: #ffffff; /* Flips to white on hover */
    color: #007bff; /* Text becomes blue */
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 20px rgba(0, 170, 255, 0.4);
}

.cta-logo {
    width: 36px;
    height: 36px;
    transition: transform 0.3s ease;
}

.btn-cta-primary-glow:hover .cta-logo {
    transform: rotate(360deg); /* Fun spin on hover */
}

.cta-arrow {
    transition: transform 0.3s ease;
    font-size: 1rem;
}

.btn-cta-primary-glow:hover .cta-arrow {
    transform: translateX(5px);
}