/* =========================================
   ANIMATION D'INTRODUCTION KPTUR
   Style Holographique & Néon Violet
   ========================================= */

/* Conteneur principal de l'intro - Z-index suprême */
#kptur-intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0a0a0a; /* Noir profond */
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    perspective: 1000px; /* Pour effets 3D */
}

/* Grille de fond subtile pour effet "digital" */
.intro-grid-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    background-image: 
        linear-gradient(rgba(168, 85, 247, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(168, 85, 247, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    transform: perspective(500px) rotateX(60deg) translateY(-100px) translateZ(-200px);
    animation: gridMove 20s linear infinite;
    opacity: 0.3;
    pointer-events: none;
}

@keyframes gridMove {
    0% { transform: perspective(500px) rotateX(60deg) translateY(0) translateZ(-200px); }
    100% { transform: perspective(500px) rotateX(60deg) translateY(50px) translateZ(-200px); }
}

/* Conteneur du Logo pour l'animation */
.intro-logo-container {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Effet de lueur derrière le logo */
.intro-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.4) 0%, rgba(126, 34, 206, 0.1) 50%, transparent 70%);
    filter: blur(20px);
    border-radius: 50%;
    opacity: 0; /* Animé par GSAP */
    pointer-events: none;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Le Logo Image Kptur */
.intro-logo-img {
    width: 300px; /* Taille initiale large */
    height: auto;
    object-fit: contain;
    opacity: 0; /* Animé par GSAP */
    filter: drop-shadow(0 0 20px rgba(168, 85, 247, 0.5));
    position: relative;
    z-index: 11;
}

/* Cercle rotatif autour du logo */
.intro-ring {
    position: absolute;
    width: 350px; /* Plus grand que l'image */
    height: 350px;
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-top: 1px solid rgba(168, 85, 247, 0.9);
    border-radius: 50%;
    opacity: 0;
    top: 50%;
    left: 50%;
    margin-top: -175px; /* Moitié de la hauteur */
    margin-left: -175px; /* Moitié de la largeur */
}

.intro-ring-2 {
    position: absolute;
    width: 400px;
    height: 400px;
    border: 1px dashed rgba(168, 85, 247, 0.2);
    border-radius: 50%;
    opacity: 0;
    top: 50%;
    left: 50%;
    margin-top: -200px;
    margin-left: -200px;
}

/* Slogan */
.intro-tagline {
    margin-top: 2rem;
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 4px;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(20px);
    text-align: center;
    background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.5), transparent);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    position: relative;
    z-index: 12;
}

/* Particules */
.intro-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: #a855f7;
    border-radius: 50%;
    opacity: 0;
}

/* Classe pour cacher le scroll pendant l'intro */
body.intro-active {
    overflow: hidden;
}

/* Onde de choc sur la navbar */
.navbar-ripple-effect {
    position: absolute;
    top: 50%;
    left: 50px; /* Ajuster selon la position du logo */
    width: 10px;
    height: 10px;
    background: rgba(168, 85, 247, 0.8);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    pointer-events: none;
    z-index: 100;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.8);
}
