/* ==========================================================================
   WORKFLOW SECTION
   ========================================================================== */
.workflow-section {
    padding: 80px 0;
    background-color: #ffffff;
    overflow: hidden;
}

/* Headers Row */
.workflow-headers-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 45px;
}

.step-header-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.step-icon {
    width: 32px;
    height: 32px;
    color: #3B82F6;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}
.step-icon svg {
    width: 100%;
    height: 100%;
}

.step-title h3 {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 4px 0;
}
.step-title p {
    font-size: 14px;
    color: #6B7280;
    margin: 0;
}

/* Visuals Row */
.workflow-visuals-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.workflow-visual-col {
    width: auto;
    flex: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

.flow-arrow-col {
    width: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    z-index: 5;
}

.flow-chevron-arrow {
    overflow: visible;
}

.flow-chevron-arrow .chevron {
    opacity: 0.2;
    animation: chevron-pulse 1.5s infinite;
}

.flow-chevron-arrow .chevron-1 {
    animation-delay: 0s;
}
.flow-chevron-arrow .chevron-2 {
    animation-delay: 0.2s;
}
.flow-chevron-arrow .chevron-3 {
    animation-delay: 0.4s;
}

@keyframes chevron-pulse {
    0% { opacity: 0.2; transform: translateX(0); }
    30% { opacity: 1; transform: translateX(4px); }
    100% { opacity: 0.2; transform: translateX(0); }
}

/* Step 1: Talk Visual */
.talk-visual-wrap {
    position: relative;
    width: 320px;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 60px;
}



/* Blue Glowing Ripples (Reduced Opacity by 30%, No Shadows) */
/* Animated Audio Visualizer */
.audio-visualizer {
    position: absolute;
    top: calc(50% + 55px);
    left: 50%;
    transform: translate(-50%, -50%);
    width: 460px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    z-index: 0;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 25%, black 75%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, black 25%, black 75%, transparent 100%);
}

.audio-visualizer span {
    width: 2.5px;
    height: 40px;
    background: rgba(67, 120, 255, 0.5);
    border-radius: 2px;
    animation: eq-play 1s ease-in-out infinite alternate;
}

.audio-visualizer span:nth-child(even) { animation-duration: 1.1s; animation-delay: -0.2s; }
.audio-visualizer span:nth-child(odd) { animation-duration: 0.9s; animation-delay: -0.5s; }
.audio-visualizer span:nth-child(3n) { animation-duration: 1.3s; animation-delay: -0.8s; }
.audio-visualizer span:nth-child(5n) { animation-duration: 0.8s; animation-delay: -0.3s; }
.audio-visualizer span:nth-child(7n) { animation-duration: 1.2s; animation-delay: -0.6s; }

@keyframes eq-play {
    0% { transform: scaleY(0.2); opacity: 0.3; }
    100% { transform: scaleY(1.5); opacity: 0.8; }
}

.talk-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 2;
    transform: translateY(60px);
}

/* Transcript Badge */
.transcript-badge {
    position: absolute;
    background: #ffffff;
    border-radius: 14px;
    padding: 14px 16px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
    border: 1px solid #F3F4F6;
    display: flex;
    flex-direction: column;
    width: 290px;
    z-index: 4;
}
.badge-left {
    left: 50%;
    top: -135px;
    transform: translate(-50%, 60px);
}
.transcript-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #666;
    font-weight: 500;
}
.recording-dot {
    width: 8px;
    height: 8px;
    background-color: #ff3b30;
    border-radius: 50%;
    animation: blink-dot 1.5s infinite;
}
@keyframes blink-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}
.transcript-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.transcript-line {
    font-size: 13px;
    color: #374151;
    margin: 0;
    line-height: 1.4;
}
.transcript-line {
    font-size: 12.5px;
    color: #374151;
    margin: 0;
    line-height: 1.4;
    display: flex;
    align-items: flex-start;
    gap: 6px;
}
.speaker-badge {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}
.badge-a {
    background-color: #DBEAFE;
    color: #1D4ED8;
}
.badge-b {
    background-color: #DCFCE7;
    color: #15803D;
}
.speaker-text {
    flex: 1;
}

/* Step 2: Transcribe Visual & Top-to-Bottom Light Blue Gradient Emphasis */
.step-2-gradient-wrap {
    position: relative;
    /* Soft vertical stripe gradient, cyan to blue-green, fading completely to transparent (white) at top and bottom */
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(217, 240, 250, 0.7) 25%, rgba(205, 230, 255, 0.9) 50%, rgba(217, 240, 250, 0.7) 75%, rgba(255, 255, 255, 0) 100%);
    padding: 60px 64px;
    margin: -36px -24px; /* Extend it vertically and horizontally to ensure a smooth wide fade without pushing surrounding content */
}

.phone-visual-wrap {
    position: relative;
    width: 260px;
    aspect-ratio: 375 / 812;
    display: flex;
    justify-content: center;
    align-items: center;
}

.transcribe-phone-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 28px;
    box-shadow: 0 20px 40px rgba(67, 120, 255, 0.12);
    border: 1px solid #E5E7EB;
}

.phone-img-1 {
    animation: switch-phone-1 4.5s ease-in-out infinite;
}

.phone-img-2 {
    animation: switch-phone-2 4.5s ease-in-out infinite;
}

/* Floating Confirmation Badge (Bottom Right of Phone Screen) */
.confirm-badge {
    position: absolute;
    bottom: -10px;
    right: -45px;
    width: 210px;
    background: #ffffff;
    border-radius: 18px;
    padding: 12px 14px;
    box-shadow: 0 12px 32px rgba(67, 120, 255, 0.18);
    border: 1px solid rgba(229, 231, 235, 0.9);
    z-index: 12;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.confirm-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.comu-dots-logo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    width: 16px;
    height: 16px;
    padding: 3px;
    background-color: #3B82F6;
    border-radius: 50%;
}
.comu-dots-logo span {
    background-color: #ffffff;
    border-radius: 50%;
}

.confirm-wave-bars {
    display: flex;
    align-items: center;
    gap: 2px;
}
.confirm-wave-bars span {
    width: 2px;
    height: 10px;
    background-color: #93C5FD;
    border-radius: 1px;
    animation: confirm-bar-anim 1s ease-in-out infinite alternate;
}
.confirm-wave-bars span:nth-child(2) { height: 14px; animation-delay: 0.2s; }
.confirm-wave-bars span:nth-child(4) { height: 12px; animation-delay: 0.4s; }

@keyframes confirm-bar-anim {
    0% { transform: scaleY(0.5); }
    100% { transform: scaleY(1.1); }
}

.confirm-question {
    font-size: 11.5px;
    font-weight: 700;
    color: #111827;
    line-height: 1.35;
}

.confirm-reply-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    background-color: #F3F4F6;
    border-radius: 20px;
    padding: 6px 10px;
    font-size: 9.5px;
    color: #374151;
}

/* Voice Input Simulation Overlay (Positioned precisely over the search/input pill) */
.voice-input-overlay {
    position: absolute;
    bottom: 34.6%;
    left: 11.2%;
    width: 66%;
    height: 3.8%;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    padding: 0 8px;
    gap: 6px;
    z-index: 10;
    pointer-events: none;
    animation: overlay-fade 4.5s ease-in-out infinite;
}

.voice-wave-icon {
    display: flex;
    align-items: center;
    gap: 2px;
    height: 12px;
}

.voice-wave-icon span {
    width: 2px;
    background-color: #4378FF;
    border-radius: 2px;
    animation: wave-bar 0.8s ease-in-out infinite alternate;
}
.voice-wave-icon span:nth-child(1) { height: 6px; animation-delay: 0s; }
.voice-wave-icon span:nth-child(2) { height: 12px; animation-delay: 0.2s; }
.voice-wave-icon span:nth-child(3) { height: 8px; animation-delay: 0.4s; }

@keyframes wave-bar {
    0% { transform: scaleY(0.4); }
    100% { transform: scaleY(1.2); }
}

.typing-text {
    font-size: 9.8px;
    color: #1F2937;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    letter-spacing: -0.2px;
    animation: typing-effect 4.5s steps(30, end) infinite;
    display: inline-block;
}

.typing-text::before {
    content: "Generate Product Positioning PPT...";
}

/* Sequential Entrance Animation (Staggered Fade-In from Left to Right) */
.step-header-item,
.workflow-visual-col {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.flow-arrow-col {
    opacity: 0;
    transform: translateX(-15px) scale(0.8);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* When section is triggered into view */
.workflow-section.animated-in .step-header-1,
.workflow-section.animated-in .step-vis-1 {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.1s;
}

.workflow-section.animated-in .step-arrow-1 {
    opacity: 1;
    transform: translateX(0) scale(1);
    transition-delay: 0.5s;
}

.workflow-section.animated-in .step-header-2,
.workflow-section.animated-in .step-vis-2 {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.7s;
}

.workflow-section.animated-in .step-arrow-2 {
    opacity: 1;
    transform: translateX(0) scale(1);
    transition-delay: 2.3s;
}

.workflow-section.animated-in .step-header-3,
.workflow-section.animated-in .step-vis-3 {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 2.5s;
}

@keyframes typing-effect {
    0%, 5% { width: 0; }
    35%, 48% { width: 100%; }
    49% { width: 100%; }
    50%, 100% { width: 0; }
}

@keyframes overlay-fade {
    0%, 48% { opacity: 1; visibility: visible; }
    52%, 100% { opacity: 0; visibility: hidden; }
}

@keyframes switch-phone-2 {
    0%, 48% { opacity: 1; transform: scale(1); }
    52%, 95% { opacity: 0; transform: scale(0.96); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes switch-phone-1 {
    0%, 48% { opacity: 0; transform: scale(0.96); }
    52%, 95% { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(0.96); }
}

.floating-anim {
    animation: float-up-down 4s ease-in-out infinite;
}
@keyframes float-up-down {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Step 3: Create Visual (Clean Vertical Stack, 16:9 Ratio) */
.create-cards-wrap {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 300px;
}

.ppt-card {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(67, 120, 255, 0.12);
    border: 1px solid rgba(229, 231, 235, 0.6);
    overflow: visible;
    opacity: 0;
    transform: translateX(-100px) scale(0.8);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}



.carousel-pagination-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.carousel-pagination-dots .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: #D1D5DB;
    transition: background-color 0.2s ease;
}

.carousel-pagination-dots .dot.active {
    background-color: #3B82F6;
    width: 8px;
    height: 8px;
}

.workflow-section.animated-in .card-back {
    opacity: 0.8;
    transform: translateX(0) scale(0.8);
    transition-delay: 2.6s;
    z-index: 1;
}

.workflow-section.animated-in .card-mid {
    opacity: 1;
    transform: translateX(0) scale(1.2);
    transition-delay: 2.5s;
    z-index: 10;
    box-shadow: 0 16px 40px rgba(0,0,0,0.1);
}

.workflow-section.animated-in .card-front {
    opacity: 0.8;
    transform: translateX(0) scale(0.8);
    transition-delay: 2.7s;
    z-index: 1;
}
.ppt-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(67, 120, 255, 0.2);
}

.ppt-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

.card-arrow-btn {
    position: absolute;
    right: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    border: 1px solid #E5E7EB;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4378FF;
    z-index: 5;
}
.card-arrow-btn svg { width: 14px; height: 14px; stroke-width: 2px; }

/* Responsive */
@media (max-width: 992px) {
    .workflow-headers-row {
        display: none;
    }
    .workflow-visuals-row {
        flex-direction: column;
        gap: 48px;
    }
    .flow-arrow-col {
        transform: rotate(90deg);
        width: 100%;
        margin: -10px 0;
    }
    .badge-left {
        left: 50%;
        transform: translate(-50%, 0);
        top: -30px;
        flex-direction: row;
        width: 90%;
        gap: 12px;
    }
    .create-cards-wrap {
        width: 280px;
    }
}
