/* How ProveAIble Works Section */
.how-proveaible-section {
    background: linear-gradient(180deg, #070b1f 0%, #0a0e27 50%, #070b1f 100%);
    padding: 40px 20px 60px;
    position: relative;
    overflow: hidden;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
}

/* Background pattern with enhanced effects */
.how-proveaible-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(139, 92, 246, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 50%, rgba(59, 130, 246, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(168, 85, 247, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

/* Animated gradient orb */
.how-proveaible-section::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1000px;
    height: 1000px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    animation: pulseGlow 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pulseGlow {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.8;
    }
}

.how-proveaible-container {
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.how-proveaible-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

/* Main Title with Animated Gradient */
.how-proveaible-title {
    font-size: clamp(3.5rem, 10vw, 7rem);
    font-weight: 900;
    line-height: 1.1;
    margin: 0 0 2rem 0;
    background: linear-gradient(135deg, 
        #ffffff 0%, 
        #8B5CF6 20%, 
        #3B82F6 40%, 
        #10B981 60%,
        #8B5CF6 80%, 
        #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientShift 6s ease infinite;
    filter: drop-shadow(0 0 40px rgba(139, 92, 246, 0.5));
    letter-spacing: -0.02em;
    display: block;
    width: 100%;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Subtitle with Enhanced Glow */
.how-proveaible-subtitle {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    letter-spacing: -0.01em;
    text-shadow: 
        0 0 30px rgba(139, 92, 246, 0.6),
        0 0 60px rgba(139, 92, 246, 0.4),
        0 0 90px rgba(139, 92, 246, 0.2);
    animation: fadeInUp 1s ease 0.3s both;
    display: block;
    width: 100%;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Interactive Demo Container */
.demo-interface {
    background: #1a1a1a;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Demo Header with Tabs */
.demo-header {
    background: #2a2a2a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 2rem;
}

.demo-tabs {
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: center;
}

.demo-tab {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    border-radius: 8px;
}

.demo-tab:hover {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.05);
}

.demo-tab.active {
    color: #ffffff;
    background: rgba(53, 67, 240, 0.2);
}

.demo-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background: #3543F0;
}

/* Split Screen Demo */
.demo-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 500px;
    position: relative;
}

/* Before Side (Chaos) */
.demo-before {
    background: #0f0f0f;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.demo-label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    z-index: 10;
}

.demo-label.after {
    background: rgba(16, 185, 129, 0.9);
}

/* Chaos Visualization */
.chaos-files {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 4rem 1rem 1rem;
}

.chaos-file {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    transform: translateY(20px) rotate(var(--rotate, 0deg));
    animation: dropIn 0.5s ease forwards;
    animation-delay: var(--delay, 0s);
}

.chaos-file:nth-child(1) { --rotate: -5deg; --delay: 0.1s; }
.chaos-file:nth-child(2) { --rotate: 3deg; --delay: 0.2s; }
.chaos-file:nth-child(3) { --rotate: -3deg; --delay: 0.3s; }
.chaos-file:nth-child(4) { --rotate: 4deg; --delay: 0.4s; }
.chaos-file:nth-child(5) { --rotate: -2deg; --delay: 0.5s; }
.chaos-file:nth-child(6) { --rotate: 2deg; --delay: 0.6s; }

.file-icon {
    font-size: 2rem;
}

.file-name {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
}

/* After Side (Organized) */
.demo-after {
    background: #0f0f0f;
    padding: 2rem;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

/* Organized Folders */
.organized-folders {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 4rem 1rem 1rem;
}

.organized-folder {
    background: rgba(53, 67, 240, 0.1);
    border: 1px solid rgba(53, 67, 240, 0.3);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    transform: translateX(20px);
    animation: slideIn 0.5s ease forwards;
    animation-delay: var(--delay, 0s);
    transition: all 0.3s ease;
}

.organized-folder:nth-child(1) { --delay: 0.7s; }
.organized-folder:nth-child(2) { --delay: 0.9s; }
.organized-folder:nth-child(3) { --delay: 1.1s; }
.organized-folder:nth-child(4) { --delay: 1.3s; }

.organized-folder:hover {
    transform: translateX(10px);
    background: rgba(53, 67, 240, 0.2);
}

.folder-icon {
    font-size: 2.5rem;
}

.folder-info {
    flex: 1;
}

.folder-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.25rem;
}

.folder-count {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Transformation Arrow */
.demo-arrow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #2a2a2a;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    border: 2px solid #3543F0;
}

.demo-arrow svg {
    width: 24px;
    height: 24px;
    color: #3543F0;
    animation: arrowPulse 2s ease infinite;
}

/* Feature Details */
.demo-features {
    background: #1a1a1a;
    padding: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.feature-item {
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
    animation-delay: var(--delay, 0s);
}

.feature-item:nth-child(1) { --delay: 1.5s; }
.feature-item:nth-child(2) { --delay: 1.6s; }
.feature-item:nth-child(3) { --delay: 1.7s; }
.feature-item:nth-child(4) { --delay: 1.8s; }

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.feature-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

/* Animations */
@keyframes dropIn {
    to {
        opacity: 1;
        transform: translateY(0) rotate(var(--rotate, 0deg));
    }
}

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes arrowPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Tab Content Variations */
.demo-content[data-tab="timeline"] .chaos-files,
.demo-content[data-tab="communication"] .chaos-files,
.demo-content[data-tab="professional"] .chaos-files {
    display: none;
}

.demo-content[data-tab="timeline"] .organized-folders,
.demo-content[data-tab="communication"] .organized-folders,
.demo-content[data-tab="professional"] .organized-folders {
    display: none;
}

/* Responsive Design */
@media (max-width: 968px) {
    .demo-content {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .demo-after {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .demo-arrow {
        top: auto;
        bottom: -30px;
        left: 50%;
        transform: translateX(-50%) rotate(90deg);
    }
    
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .how-proveaible-section {
        padding: 30px 20px 60px;
        min-height: 50vh;
    }
    
    .how-proveaible-title {
        font-size: clamp(2.5rem, 12vw, 4rem);
        margin-bottom: 1.5rem;
    }
    
    .how-proveaible-subtitle {
        font-size: clamp(1.5rem, 6vw, 2rem);
        margin-bottom: 3rem;
    }
    
    .how-proveaible-section::after {
        width: 600px;
        height: 600px;
    }
    
    .demo-tabs {
        gap: 1rem;
        flex-wrap: wrap;
    }
    
    .demo-tab {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    .chaos-files {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .demo-before,
    .demo-after {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .demo-header {
        padding: 1rem;
    }
    
    .demo-tabs {
        gap: 0.5rem;
    }
    
    .demo-tab {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }
}