/*
═══════════════════════════════════════════════════════════════════
  NOVILISYA QUANTUM - ANIMATIONS PHOTO FONDATEUR HOLOGRAPHIQUE
  Animations super IA dignes d'une autre planète 🚀
═══════════════════════════════════════════════════════════════════
*/

/* Container photo avec effet 3D */
.founder-image-container {
    position: relative;
    width: 220px;
    height: 220px;
    margin: 0 auto 30px;
    border-radius: 50%;
    overflow: visible !important; /* Pour voir les effets qui débordent */
    perspective: 1000px;
    animation: founderFloat 6s ease-in-out infinite;
}

/* Animation de flottement */
@keyframes founderFloat {
    0%, 100% {
        transform: translateY(0px) rotateZ(0deg);
    }
    25% {
        transform: translateY(-15px) rotateZ(1deg);
    }
    50% {
        transform: translateY(0px) rotateZ(0deg);
    }
    75% {
        transform: translateY(-10px) rotateZ(-1deg);
    }
}

/* Image principale avec effet holographique */
.founder-image-quantum {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    position: relative;
    z-index: 2;
    border: 3px solid rgba(139, 92, 246, 0.8);
    box-shadow: 
        0 0 30px rgba(139, 92, 246, 0.6),
        0 0 60px rgba(6, 182, 212, 0.4),
        inset 0 0 20px rgba(139, 92, 246, 0.2);
    animation: founderGlow 3s ease-in-out infinite;
    transition: all 0.3s ease;
}

/* Animation de lueur pulsante */
@keyframes founderGlow {
    0%, 100% {
        box-shadow: 
            0 0 30px rgba(139, 92, 246, 0.6),
            0 0 60px rgba(6, 182, 212, 0.4),
            inset 0 0 20px rgba(139, 92, 246, 0.2);
        filter: brightness(1) saturate(1.2);
    }
    50% {
        box-shadow: 
            0 0 50px rgba(139, 92, 246, 0.8),
            0 0 100px rgba(6, 182, 212, 0.6),
            inset 0 0 30px rgba(139, 92, 246, 0.3);
        filter: brightness(1.1) saturate(1.4);
    }
}

/* Overlay holographique avec effet glitch */
.founder-hologram-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(6, 182, 212, 0.1) 50%,
        transparent 70%
    );
    background-size: 200% 200%;
    animation: hologramShine 4s linear infinite;
    z-index: 3;
    pointer-events: none;
    mix-blend-mode: screen;
}

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

/* Ligne de scan verticale qui traverse */
.founder-scan-line {
    position: absolute;
    top: -10%;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(6, 182, 212, 0.8),
        rgba(251, 191, 36, 0.6),
        rgba(6, 182, 212, 0.8),
        transparent
    );
    box-shadow: 
        0 0 10px rgba(6, 182, 212, 0.8),
        0 0 20px rgba(251, 191, 36, 0.4);
    animation: scanLine 4s linear infinite;
    z-index: 4;
    pointer-events: none;
}

@keyframes scanLine {
    0% {
        top: -10%;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        top: 110%;
        opacity: 0;
    }
}

/* Particules quantiques qui orbitent autour */
.founder-particles {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    z-index: 1;
    pointer-events: none;
}

.founder-particles::before,
.founder-particles::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(6, 182, 212, 1), transparent);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.8);
}

/* Particule 1 - orbite clockwise */
.founder-particles::before {
    animation: orbitClockwise 8s linear infinite;
}

/* Particule 2 - orbite counter-clockwise */
.founder-particles::after {
    animation: orbitCounterClockwise 6s linear infinite;
    background: radial-gradient(circle, rgba(251, 191, 36, 1), transparent);
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.8);
}

@keyframes orbitClockwise {
    0% {
        transform: rotate(0deg) translateX(130px) rotate(0deg);
    }
    100% {
        transform: rotate(360deg) translateX(130px) rotate(-360deg);
    }
}

@keyframes orbitCounterClockwise {
    0% {
        transform: rotate(0deg) translateX(150px) rotate(0deg);
    }
    100% {
        transform: rotate(-360deg) translateX(150px) rotate(360deg);
    }
}

/* Effet hover sur la carte fondateur */
.founder-quantum-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.founder-quantum-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
        0 20px 50px rgba(139, 92, 246, 0.3),
        0 0 100px rgba(6, 182, 212, 0.2);
}

.founder-quantum-card:hover .founder-image-quantum {
    transform: scale(1.05);
    box-shadow: 
        0 0 50px rgba(139, 92, 246, 0.8),
        0 0 100px rgba(6, 182, 212, 0.6),
        inset 0 0 30px rgba(139, 92, 246, 0.3);
}

/* Cercles énergétiques qui pulsent */
.founder-frame::before,
.founder-frame::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
}

.founder-frame::before {
    width: 240px;
    height: 240px;
    border: 2px solid rgba(139, 92, 246, 0.4);
    animation: energyPulse1 3s ease-out infinite;
}

.founder-frame::after {
    width: 240px;
    height: 240px;
    border: 2px solid rgba(6, 182, 212, 0.4);
    animation: energyPulse2 3s ease-out infinite 1.5s;
}

@keyframes energyPulse1 {
    0% {
        width: 220px;
        height: 220px;
        opacity: 1;
    }
    100% {
        width: 340px;
        height: 340px;
        opacity: 0;
    }
}

@keyframes energyPulse2 {
    0% {
        width: 220px;
        height: 220px;
        opacity: 1;
    }
    100% {
        width: 360px;
        height: 360px;
        opacity: 0;
    }
}

/* Effet de données binaires qui défilent */
.founder-info-quantum::before {
    content: '01001110 01001111 01010110 01001001';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Courier New', monospace;
    font-size: 8px;
    color: rgba(6, 182, 212, 0.3);
    letter-spacing: 2px;
    animation: binaryScroll 10s linear infinite;
    white-space: nowrap;
    pointer-events: none;
}

@keyframes binaryScroll {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(0);
    }
    10%, 90% {
        opacity: 0.5;
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
}

/* Hexagones énergétiques */
.founder-image-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 260px;
    height: 260px;
    background: transparent;
    border: 1px solid rgba(139, 92, 246, 0.2);
    clip-path: polygon(
        50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%
    );
    animation: hexagonRotate 20s linear infinite;
    z-index: 0;
}

@keyframes hexagonRotate {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Effet glitch subtil sur hover */
.founder-quantum-card:hover .founder-image-quantum {
    animation: founderGlow 3s ease-in-out infinite, subtleGlitch 0.3s ease-in-out 1;
}

@keyframes subtleGlitch {
    0%, 100% {
        transform: translate(0, 0) scale(1.05);
    }
    25% {
        transform: translate(-2px, 2px) scale(1.05);
    }
    50% {
        transform: translate(2px, -2px) scale(1.05);
    }
    75% {
        transform: translate(-1px, -1px) scale(1.05);
    }
}

/* Effet de lumière qui tourne autour */
.founder-frame {
    position: relative;
}

.founder-frame::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, rgba(251, 191, 36, 1), transparent 70%);
    box-shadow: 0 0 20px rgba(251, 191, 36, 1);
    border-radius: 50%;
    animation: lightOrbit 5s linear infinite;
    z-index: 10;
}

@keyframes lightOrbit {
    0% {
        transform: translate(-50%, -50%) rotate(0deg) translateX(140px);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg) translateX(140px);
    }
}

/* Responsive - désactiver animations lourdes sur mobile */
@media (max-width: 768px) {
    .founder-particles::before,
    .founder-particles::after,
    .founder-frame::after {
        display: none;
    }
    
    .founder-image-container::before {
        animation: hexagonRotate 30s linear infinite; /* Plus lent sur mobile */
    }
}

/* Effet subtil de distorsion au hover */
.founder-quantum-card:hover .founder-hologram-overlay {
    animation: hologramShine 2s linear infinite, hologramDistort 0.5s ease-in-out infinite;
}

@keyframes hologramDistort {
    0%, 100% {
        filter: hue-rotate(0deg);
    }
    50% {
        filter: hue-rotate(10deg);
    }
}

/* Badge Quantum Founder avec glow */
.founder-badge {
    position: relative;
    overflow: visible;
}

.founder-badge::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle,
        rgba(139, 92, 246, 0.3) 0%,
        transparent 70%
    );
    filter: blur(10px);
    z-index: -1;
    animation: badgeGlow 2s ease-in-out infinite;
}

@keyframes badgeGlow {
    0%, 100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.2);
    }
}
