/* Soul's Digital Metamorphosis Section */
.souls-digital-metamorphosis {
    position: relative;
    padding: 6rem 0;
    background: linear-gradient(135deg, rgba(157, 0, 255, 0.05) 0%, rgba(10, 10, 10, 0.95) 100%);
    overflow: hidden;
    z-index: 1;
}

.metamorphosis-bg-cosmos {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(157, 0, 255, 0.08) 0%, transparent 60%);
    z-index: -1;
}

.metamorphosis-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(157, 0, 255, 0.1);
    border: 2px solid rgba(157, 0, 255, 0.3);
    border-radius: 50px;
    padding: 1rem 2rem;
    color: #9d00ff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2rem;
}

.metamorphosis-badge i {
    margin-right: 0.8rem;
    font-size: 1.2rem;
    animation: butterflyFloat 3s ease-in-out infinite;
}

@keyframes butterflyFloat {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(5deg); }
}

.metamorphosis-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 2rem;
}

.metamorphosis-title .title-line-1,
.metamorphosis-title .title-line-2 {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    font-size: 3rem;
}

.metamorphosis-title .title-line-3 {
    display: block;
    background: linear-gradient(45deg, #9d00ff, #ffcc00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    font-size: 3.5rem;
    animation: metamorphosisGlow 3s ease-in-out infinite;
}

@keyframes metamorphosisGlow {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.3) drop-shadow(0 0 20px #9d00ff); }
}

.metamorphosis-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

.metamorphosis-spiral {
    position: relative;
    z-index: 2;
}

.transformation-core {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 4rem 0;
    z-index: 3;
}

.core-energy {
    position: relative;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 2rem;
}

.core-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.energy-rings {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    pointer-events: none;
}

.ring {
    position: absolute;
    border: 2px solid rgba(157, 0, 255, 0.3);
    border-radius: 50%;
    animation: ringRotate 6s linear infinite;
}

.ring.ring-1 {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    animation-delay: 0s;
}

.ring.ring-2 {
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    animation-delay: 2s;
}

.ring.ring-3 {
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    animation-delay: 4s;
}

@keyframes ringRotate {
    from { transform: rotate(0deg); opacity: 0.3; }
    to { transform: rotate(360deg); opacity: 0.7; }
}

.core-mantra {
    text-align: center;
    z-index: 4;
}

.sanskrit-text {
    display: block;
    font-size: 1.5rem;
    color: #ffcc00;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.translation {
    display: block;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
}

.transformation-phases {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    margin-top: 4rem;
    position: relative;
    z-index: 2;
}

.phase-container {
    position: relative;
}

.phase-connector {
    position: absolute;
    left: 50%;
    top: -2rem;
    transform: translateX(-50%);
    width: 2px;
    height: 4rem;
    background: linear-gradient(to bottom, transparent, #9d00ff, transparent);
    z-index: 1;
}

.connector-line {
    width: 100%;
    height: 100%;
    background: inherit;
}

.connector-pulse {
    position: absolute;
    top: 50%;
    left: -2px;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: #9d00ff;
    border-radius: 50%;
    animation: connectorPulse 2s ease-in-out infinite;
}

@keyframes connectorPulse {
    0%, 100% { transform: translateY(-50%) scale(1); opacity: 0.5; }
    50% { transform: translateY(-50%) scale(1.5); opacity: 1; }
}

.phase-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(157, 0, 255, 0.1);
    border-radius: 25px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    z-index: 2;
}

.phase-card:hover {
    transform: translateY(-10px);
    border-color: rgba(157, 0, 255, 0.3);
    box-shadow: 0 20px 40px rgba(157, 0, 255, 0.1);
}

.phase-energy-field {
    position: absolute;
    top: -30px;
    left: -30px;
    right: -30px;
    bottom: -30px;
    z-index: -1;
    pointer-events: none;
}

.energy-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #9d00ff;
    border-radius: 50%;
    animation: particleFloat 4s ease-in-out infinite;
}

.energy-particle.particle-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.energy-particle.particle-2 {
    top: 60%;
    right: 15%;
    animation-delay: 1s;
}

.energy-particle.particle-3 {
    bottom: 30%;
    left: 20%;
    animation-delay: 2s;
}

@keyframes particleFloat {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.3; }
    50% { transform: translateY(-20px) scale(1.2); opacity: 0.8; }
}

.phase-visual {
    position: relative;
    width: 100%;
    height: 250px;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.phase-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.phase-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.darkness-overlay {
    background: linear-gradient(45deg, rgba(255, 0, 60, 0.2), rgba(157, 0, 255, 0.2));
}

.awakening-overlay {
    background: linear-gradient(45deg, rgba(123, 104, 238, 0.2), rgba(255, 204, 0, 0.2));
}

.mastery-overlay {
    background: linear-gradient(45deg, rgba(0, 255, 157, 0.2), rgba(255, 204, 0, 0.2));
}

.phase-emotion-indicator {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(157, 0, 255, 0.9);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
}

.phase-content {
    position: relative;
    z-index: 3;
}

.phase-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(157, 0, 255, 0.1);
    border: 1px solid rgba(157, 0, 255, 0.2);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    color: #9d00ff;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.phase-badge i {
    margin-right: 0.5rem;
}

.phase-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2rem;
}

.phase-story {
    margin-bottom: 2rem;
}

.story-emotion {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    margin-bottom: 2rem;
    font-style: italic;
    font-size: 1.1rem;
}

.story-pain h4,
.story-transformation h4 {
    color: #ff003c;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    font-family: 'Orbitron', sans-serif;
}

.pain-points {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pain-points li {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
}

.pain-points li i {
    margin-right: 1rem;
    color: #ff003c;
    font-size: 1rem;
    flex-shrink: 0;
}

.phase-wisdom {
    background: rgba(157, 0, 255, 0.05);
    border-left: 4px solid #9d00ff;
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 2rem;
}

.phase-wisdom i {
    color: #9d00ff;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: block;
}

.phase-wisdom p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    line-height: 1.7;
    font-style: italic;
    margin: 0;
}

/* Metamorphosis CTA */
.metamorphosis-cta {
    background: rgba(157, 0, 255, 0.05);
    border: 2px solid rgba(157, 0, 255, 0.2);
    border-radius: 25px;
    padding: 3rem;
    margin-top: 4rem;
}

.cta-transformation-container h3 {
    color: #9d00ff;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    font-family: 'Orbitron', sans-serif;
}

.cta-transformation-container p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    line-height: 1.7;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.metamorphosis-transform-btn {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(45deg, #9d00ff, #ffcc00);
    color: #000;
    padding: 2rem 3rem;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
}

.metamorphosis-transform-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(157, 0, 255, 0.3);
    color: #000;
}

.metamorphosis-transform-btn i:first-child {
    margin-right: 1rem;
    font-size: 1.5rem;
}

.metamorphosis-transform-btn i:last-child {
    margin-left: 1rem;
    font-size: 1.2rem;
}

.btn-metamorphosis-energy {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    animation: metamorphosisEnergyPulse 2s ease-in-out infinite;
}

@keyframes metamorphosisEnergyPulse {
    0%, 100% { opacity: 0; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.02); }
}

.transformation-promise {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffcc00;
    font-size: 1.1rem;
    font-weight: 600;
    font-style: italic;
}

.transformation-promise i {
    margin-right: 1rem;
    font-size: 1.5rem;
    animation: lotusBloom 4s ease-in-out infinite;
}

@keyframes lotusBloom {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(10deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .metamorphosis-title {
        font-size: 2.5rem;
    }
    
    .metamorphosis-title .title-line-1,
    .metamorphosis-title .title-line-2 {
        font-size: 2.2rem;
    }
    
    .metamorphosis-title .title-line-3 {
        font-size: 2.5rem;
    }
    
    .core-energy {
        width: 150px;
        height: 150px;
    }
    
    .phase-card {
        padding: 2rem;
    }
    
    .phase-visual {
        height: 200px;
    }
    
    .phase-title {
        font-size: 1.5rem;
    }
    
    .transformation-promise {
        flex-direction: column;
        text-align: center;
    }
    
    .transformation-promise i {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
}
