/**
 * PROPSZY INFOTECH — AI & Automation Solutions Stylesheet
 * Enterprise-grade dark theme, interactive workflow nodes, and glassmorphism UI
 */

/* ==========================================================================
   Ambient Glows & Canvas Accents
   ========================================================================== */
.ai-ambient-glow {
    position: absolute;
    width: 650px;
    height: 650px;
    border-radius: 50%;
    filter: blur(140px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.18;
}

.ai-grid-pattern {
    background-size: 40px 40px;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

.ai-dot-pattern {
    background-image: radial-gradient(rgba(56, 189, 248, 0.15) 1px, transparent 1px);
    background-size: 24px 24px;
}

/* ==========================================================================
   Glass Card & Border Gradients
   ========================================================================== */
.ai-glass-card {
    background: rgba(11, 15, 20, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.ai-glass-card:hover {
    border-color: rgba(56, 189, 248, 0.35);
    transform: translateY(-3px);
    box-shadow: 0 20px 40px -15px rgba(0, 102, 255, 0.15);
}

.ai-glass-card-active {
    border-color: rgba(56, 189, 248, 0.5) !important;
    background: rgba(14, 21, 32, 0.9) !important;
    box-shadow: 0 0 30px rgba(0, 102, 255, 0.25) !important;
}

/* ==========================================================================
   Interactive Workflow Connector Lines & Nodes
   ========================================================================== */
.ai-pulse-dot {
    position: relative;
}

.ai-pulse-dot::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: inherit;
    opacity: 0.5;
    animation: aiPulse 2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}

@keyframes aiPulse {
    0% { transform: scale(0.9); opacity: 0.8; }
    50% { transform: scale(1.8); opacity: 0; }
    100% { transform: scale(0.9); opacity: 0; }
}

.ai-flow-line {
    background: linear-gradient(90deg, #0066FF, #38BDF8, #8B5CF6);
    background-size: 200% 200%;
    animation: aiFlowShimmer 3s linear infinite;
}

@keyframes aiFlowShimmer {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

/* ==========================================================================
   Workflow Simulation Visuals
   ========================================================================== */
.workflow-step-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 9999px;
    font-family: ui-monospace, monospace;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.workflow-status-live {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34D399;
}

.workflow-status-ai {
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #38BDF8;
}

/* ==========================================================================
   FAQ Accordion Smooth Styles
   ========================================================================== */
.ai-faq-item {
    transition: all 0.3s ease;
}

.ai-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0, 1, 0, 1), opacity 0.3s ease, margin 0.3s ease;
    opacity: 0;
}

.ai-faq-item.active .ai-faq-answer {
    max-height: 600px;
    opacity: 1;
    margin-top: 1rem;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease, margin 0.3s ease;
}

.ai-faq-item.active .ai-faq-icon {
    transform: rotate(45deg);
    color: #38BDF8;
}

.ai-faq-item.active {
    border-color: rgba(56, 189, 248, 0.4);
    background: rgba(11, 15, 20, 0.95);
}

/* ==========================================================================
   Tab Triggers & Transitions
   ========================================================================== */
/* ==========================================================================
   Side-by-Side Step System & Visual Layers
   ========================================================================== */
.ai-step-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.ai-step-item:last-child {
    border-bottom: none;
}

.ai-step-item.active {
    border-color: rgba(56, 189, 248, 0.5);
    background: rgba(11, 15, 20, 0.6);
    border-radius: 16px;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    box-shadow: 0 10px 30px -10px rgba(0, 102, 255, 0.2);
}

.ai-step-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 0;
    transition: color 0.25s ease;
}

.ai-step-item.active .ai-step-header {
    padding-top: 1.25rem;
    padding-bottom: 0.5rem;
}

.ai-step-body {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease, padding 0.35s ease;
    padding-bottom: 0;
}

.ai-step-item.active .ai-step-body {
    max-height: 500px;
    opacity: 1;
    padding-bottom: 1.25rem;
}

.ai-step-toggle-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #A1A8B3;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.ai-step-item.active .ai-step-toggle-icon {
    transform: rotate(45deg);
    background: rgba(0, 102, 255, 0.25);
    border-color: rgba(56, 189, 248, 0.6);
    color: #38BDF8;
}

/* Cross-fading image visual layers for side-by-side showcase */
.ai-visual-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: scale(0.96);
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.ai-visual-layer.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

/* Window Mockup Frame with Chrome Toolbar */
.ai-window-frame {
    background: #080B10;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 25px 70px rgba(0, 102, 255, 0.18);
    position: relative;
}

.ai-window-chrome {
    height: 2.5rem;
    background: rgba(8, 11, 16, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.25rem;
    backdrop-filter: blur(12px);
.ai-tab-btn {
    transition: all 0.25s ease;
}

.ai-tab-btn.active {
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.25), rgba(56, 189, 248, 0.15));
    border-color: rgba(56, 189, 248, 0.6);
    color: #FFFFFF;
    box-shadow: 0 4px 20px rgba(0, 102, 255, 0.2);
}

.ai-workflow-content {
    display: none;
    animation: aiFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.ai-workflow-content.active {
    display: block;
}

@keyframes aiFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
