/* Animated Tabs / Process Section Styles */
.process-tabs {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    background: rgba(17, 17, 17, 0.6);
    /* bg-[#11111198] */
    padding: 0.25rem;
    border-radius: 0.75rem;
    /* rounded-xl */
    backdrop-filter: blur(4px);
    /* backdrop-blur-sm */
    width: fit-content;
    margin: 0 auto 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.tab-btn {
    position: relative;
    padding: 0.375rem 1rem;
    /* px-3 py-1.5 */
    font-size: 0.875rem;
    /* text-sm */
    font-weight: 500;
    color: #fff;
    border-radius: 0.5rem;
    /* rounded-lg */
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.2s;
    outline: none;
    z-index: 2;
    /* Above the pill */
}

/* Sliding Pill */
.tab-pill {
    position: absolute;
    top: 0.25rem;
    /* Matches container padding */
    left: 0;
    height: calc(100% - 0.5rem);
    background: rgba(255, 255, 255, 0.1);
    /* React code uses bg-[#111111d1] but on top of dark bg it might be lighter or darker. 
       The React code has `bg-[#111111d1]` which is dark. 
       But the text is white. Let's start with a subtle light highlight or dark tint. 
       Actually the React code active tab has a specific background. 
       Let's use a subtle white tint for visibility against the dark container. */
    background: rgba(255, 255, 255, 0.15);
    border-radius: 0.5rem;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(4px);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    pointer-events: none;
}

.process-content-wrapper {
    position: relative;
    background: rgba(17, 17, 17, 0.6);
    /* bg-[#11111198] */
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.75rem;
    /* rounded-xl */
    padding: 1.5rem;
    /* p-4 */
    backdrop-filter: blur(4px);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    min-height: 240px;
    /* min-h-60 */
    overflow: hidden;
}

/* Animations for content */
.tab-content {
    display: none;
    /* Hidden by default */
    opacity: 0;
    transform: scale(0.95) translateX(-10px);
    filter: blur(10px);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.4s ease;
    width: 100%;
}

.tab-content.active {
    display: block;
    /* We will use a separate class for the 'entering' state to trigger animation */
}

.tab-content.animate-in {
    opacity: 1;
    transform: scale(1) translateX(0);
    filter: blur(0);
}

/* Process Tabs Mobile Fix */
@media (max-width: 768px) {
    .process-tabs {
        flex-direction: column;
        width: 100%;
        padding: 0.25rem;
        gap: 0.25rem;
    }

    .tab-btn {
        width: 100%;
        text-align: center;
    }

    .tab-pill {
        display: none;
    }

    .process-content-wrapper {
        padding: 1rem;
        min-height: 200px;
    }
}
