/* Join Revolution Section */
.join-revolution-section {
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 100%);
    padding: 120px 20px;
    position: relative;
    overflow: hidden;
}

/* Background accent */
.join-revolution-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(53, 67, 240, 0.1) 0%, transparent 70%);
    transform: rotate(-45deg);
    pointer-events: none;
}

.revolution-join-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    text-align: center;
}

/* Titles */
.join-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #3543F0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.join-subtitle {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: #fbbf24;
    font-weight: 600;
    margin-bottom: 4rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Transformation Container */
.transformation-container {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 3rem;
    margin-bottom: 4rem;
    backdrop-filter: blur(10px);
}

.transform-title {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    margin-bottom: 2rem;
}

/* Transformation Grid */
.transformation-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

/* Transform Cards - Barometer Style */
.transform-card {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 0;
    min-height: 100px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
}

.transform-card:nth-child(1) { animation-delay: 0.1s; }
.transform-card:nth-child(2) { animation-delay: 0.2s; }
.transform-card:nth-child(3) { animation-delay: 0.3s; }
.transform-card:nth-child(4) { animation-delay: 0.4s; }

/* Barometer Container */
.barometer-container {
    display: flex;
    align-items: center;
    height: 100%;
    position: relative;
    padding: 20px 30px;
}

/* Progress Bar Background */
.progress-bar-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.1) 0%, rgba(239, 68, 68, 0.05) 50%, rgba(34, 197, 94, 0.05) 50%, rgba(34, 197, 94, 0.1) 100%);
    border-radius: 20px;
    transition: all 0.8s ease;
}

/* Progress Bar Fill */
.progress-bar-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.2) 0%, rgba(34, 197, 94, 0.2) 100%);
    border-radius: 20px;
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Icons Container */
.icons-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    z-index: 2;
    position: relative;
}

/* Before Side (X) */
.before-side {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    opacity: 1;
    transition: opacity 0.6s ease;
}

/* After Side (Check) */
.after-side {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    justify-content: flex-end;
    opacity: 0.3;
    transition: opacity 0.6s ease;
}

/* Icon Wrapper */
.icon-wrapper {
    position: relative;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    transition: all 0.6s ease;
}

.icon-wrapper.x-wrapper {
    background: rgba(255, 51, 51, 0.3);
    border: 2px solid rgba(255, 51, 51, 0.8);
    box-shadow: 
        0 0 30px rgba(255, 0, 0, 0.8),
        0 0 20px rgba(255, 51, 51, 0.6),
        inset 0 0 20px rgba(255, 107, 107, 0.5);
}

.icon-wrapper.check-wrapper {
    background: rgba(34, 197, 94, 0.2);
    position: relative;
}

/* Pulsing glow for checkmark */
.icon-wrapper.check-wrapper::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    animation: pulse-glow 2s ease-in-out infinite;
}

/* X and Check Icons */
.x-icon,
.check-icon {
    width: 40px;
    height: 40px;
    transition: all 0.6s ease;
}

/* Text */
.before-text {
    font-size: 1.25rem;
    font-weight: 800;
    color: #ff3333;
    text-shadow: 
        0 0 10px #ff0000,
        0 0 20px #ff0000,
        0 0 30px #ff0000,
        0 0 40px #ff6666;
    letter-spacing: 0.02em;
}

.after-text {
    font-size: 1.375rem;
    font-weight: 700;
    color: #22c55e;
    text-shadow: 0 0 15px rgba(34, 197, 94, 0.4);
}

/* Center Divider */
.center-divider {
    position: absolute;
    left: 50%;
    top: 20%;
    bottom: 20%;
    width: 2px;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-50%);
}

/* Default state - no animation */
.transform-card .progress-bar-fill {
    width: 0%;
}

.transform-card .before-side {
    opacity: 1;
    transition: all 0.6s ease;
}

.transform-card .after-side {
    opacity: 0.3;
    transition: all 0.6s ease;
}

.transform-card .icon-wrapper.check-wrapper {
    transform: scale(1);
    transition: all 0.6s ease;
}

.transform-card .icon-wrapper.check-wrapper::before {
    opacity: 0;
}

/* Hover State - Trigger full transformation */
.transform-card:hover .progress-bar-fill {
    width: 100%;
}

.transform-card:hover .progress-bar-bg {
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.05) 0%, rgba(34, 197, 94, 0.15) 100%);
}

.transform-card:hover .before-side {
    opacity: 0.3;
}

.transform-card:hover .after-side {
    opacity: 1;
}

.transform-card:hover .icon-wrapper.check-wrapper {
    transform: scale(1.1);
    background: rgba(34, 197, 94, 0.3);
    box-shadow: 0 0 30px rgba(34, 197, 94, 0.6);
}

.transform-card:hover .icon-wrapper.check-wrapper::before {
    opacity: 1;
}

/* Hover effect for X icon - pulse/glow on hover */
.transform-card:hover .icon-wrapper.x-wrapper {
    animation: pulse-red 1.5s ease-in-out infinite;
}

.transform-card:hover .before-text {
    animation: glow-text 1.5s ease-in-out infinite;
}

/* Active State (when auto-triggered by scroll) */
.transform-card.active .progress-bar-fill {
    width: 100%;
}

.transform-card.active .progress-bar-bg {
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.05) 0%, rgba(34, 197, 94, 0.15) 100%);
}

.transform-card.active .before-side {
    opacity: 0.3;
}

.transform-card.active .after-side {
    opacity: 1;
}

.transform-card.active .icon-wrapper.check-wrapper {
    transform: scale(1.1);
    background: rgba(34, 197, 94, 0.3);
    box-shadow: 0 0 30px rgba(34, 197, 94, 0.6);
}

.transform-card.active .icon-wrapper.check-wrapper::before {
    opacity: 1;
}

/* Auto-animate on scroll */
@keyframes autoTransform {
    0%, 20% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
    80%, 100% {
        opacity: 1;
    }
}

/* Founding Benefits */
.founding-benefits {
    margin-bottom: 4rem;
}

.benefits-title {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 3rem;
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Benefit Items - Illuminated Style */
.benefit-item {
    background: linear-gradient(135deg, #3543F0 0%, #4553e0 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 10px 30px rgba(53, 67, 240, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.benefit-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.benefit-item:hover::before {
    opacity: 1;
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 15px 40px rgba(53, 67, 240, 0.4),
        0 0 30px rgba(53, 67, 240, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.benefit-item:nth-child(1) { animation-delay: 0.5s; }
.benefit-item:nth-child(2) { animation-delay: 0.6s; }
.benefit-item:nth-child(3) { animation-delay: 0.7s; }
.benefit-item:nth-child(4) { animation-delay: 0.8s; }

.benefit-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 0 20px rgba(255, 255, 255, 0.2),
        inset 0 0 15px rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.benefit-icon::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    animation: pulse-white 2s ease-in-out infinite;
}

.benefit-icon svg {
    width: 30px;
    height: 30px;
    stroke: #ffffff;
    stroke-width: 2.5;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
}

.benefit-item:hover .benefit-icon {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 
        0 0 30px rgba(255, 255, 255, 0.3),
        inset 0 0 20px rgba(255, 255, 255, 0.15);
}

.benefit-item p {
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.4;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* CTA Section */
.revolution-cta {
    margin-top: 3rem;
}

.cta-button.primary {
    background: linear-gradient(135deg, #22c55e 0%, #4ade80 100%);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.2);
    padding: 20px 50px;
    font-size: 1.25rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 
        0 10px 30px rgba(34, 197, 94, 0.4),
        0 0 30px rgba(74, 222, 128, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.cta-button.primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.cta-button.primary:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 15px 40px rgba(34, 197, 94, 0.5),
        0 0 40px rgba(74, 222, 128, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.cta-button.primary:hover::before {
    left: 100%;
}

.cta-button.primary:active {
    transform: translateY(-1px);
}

.cta-subtext {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 1rem;
    font-style: italic;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse-glow {
    0% {
        transform: scale(1);
        opacity: 0;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 0;
    }
}

@keyframes pulse-red {
    0% {
        box-shadow: 
            0 0 30px rgba(255, 0, 0, 0.8),
            0 0 20px rgba(255, 51, 51, 0.6),
            inset 0 0 20px rgba(255, 107, 107, 0.5);
    }
    50% {
        box-shadow: 
            0 0 50px rgba(255, 0, 0, 1),
            0 0 35px rgba(255, 51, 51, 0.8),
            inset 0 0 30px rgba(255, 107, 107, 0.7);
        transform: scale(1.05);
    }
    100% {
        box-shadow: 
            0 0 30px rgba(255, 0, 0, 0.8),
            0 0 20px rgba(255, 51, 51, 0.6),
            inset 0 0 20px rgba(255, 107, 107, 0.5);
    }
}

@keyframes glow-text {
    0% {
        text-shadow: 
            0 0 10px #ff0000,
            0 0 20px #ff0000,
            0 0 30px #ff0000,
            0 0 40px #ff6666;
    }
    50% {
        text-shadow: 
            0 0 20px #ff0000,
            0 0 30px #ff0000,
            0 0 40px #ff0000,
            0 0 50px #ff6666,
            0 0 60px #ff3333;
    }
    100% {
        text-shadow: 
            0 0 10px #ff0000,
            0 0 20px #ff0000,
            0 0 30px #ff0000,
            0 0 40px #ff6666;
    }
}

@keyframes pulse-blue {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 0.5;
    }
}

@keyframes pulse-white {
    0% {
        transform: scale(1);
        opacity: 0.4;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 0.4;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .join-revolution-section {
        padding: 80px 20px;
    }
    
    .transformation-container {
        padding: 2rem 1.5rem;
    }
    
    .transformation-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .transform-card {
        padding: 1rem;
        grid-template-columns: 1fr auto 1fr;
        min-height: 120px;
        overflow: visible;
    }
    
    .barometer-container {
        padding: 15px 20px;
        overflow: visible;
        height: auto;
        min-height: 80px;
    }
    
    .icons-container {
        overflow: visible;
        width: 100%;
        position: relative;
    }
    
    .before-side, .after-side {
        overflow: visible;
        position: relative;
    }
    
    .icon-wrapper {
        overflow: visible !important;
    }
    
    .check-wrapper, .x-wrapper {
        overflow: visible !important;
        position: relative;
        z-index: 10;
    }
    
    .transform-card p {
        font-size: 0.875rem;
    }
    
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .benefit-icon {
        width: 56px;
        height: 56px;
    }
    
    .benefit-icon svg {
        width: 28px;
        height: 28px;
    }
    
    .cta-button.primary {
        padding: 16px 40px;
        font-size: 1.125rem;
    }
}

@media (max-width: 480px) {
    .join-title {
        font-size: 2rem;
    }
    
    .join-subtitle {
        font-size: 1.25rem;
    }
    
    .transform-card {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        text-align: center;
    }
    
    .before-side,
    .after-side {
        text-align: center;
    }
    
    .arrow-divider {
        transform: rotate(90deg);
    }
}