
:where([class^="ri-"])::before {
    content: "\f3c2";
}

body {
    font-family: 'Space Grotesk', sans-serif;
    /*cursor: none;*/
}

.gradient-bg {
    background: linear-gradient(135deg, #0066CC, #00AAFF);
}

.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.glow {
    animation: glow 2s infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 5px #00AAFF, 0 0 10px #00AAFF;
    }

    to {
        text-shadow: 0 0 10px #0066CC, 0 0 20px #0066CC;
    }
}

.floating {
    animation: float 3s infinite ease-in-out;
}

@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-10px) rotate(2deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}




 strong,em{
    font-family: "Felix titling";
    color: rgb(0, 255, 242);
  }
   h1,h2{
    color: rgb(255, 230, 0);
   }


#hero p {
    font-size: 20px;
    line-height: 2;
   margin-bottom: 20px;
}

.hexagon {
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.progress-circle {
    transform: rotate(-90deg);
}

input,
textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: #00AAFF;
    box-shadow: 0 0 10px rgba(0, 170, 255, 0.5);
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.neon-border {
    box-shadow: 0 0 5px #00AAFF, 0 0 10px #00AAFF, inset 0 0 5px #00AAFF;
}

.project-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 102, 204, 0.2);
}

.skill-card {
    transition: transform 0.5s ease;
    transform-style: preserve-3d;
}

.skill-card:hover {
    transform: rotateY(10deg) rotateX(10deg);
}

.social-btn {
    transition: all 0.3s ease;
}

.social-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 170, 255, 0.4);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #00AAFF;
    transition: width 0.3s ease;
  
}

.nav-link:hover::after {
    width: 100%;
}

.card {
    width: 100%;
    position: absolute;
    display: flex;
    place-content: center;
    place-items: center;
    overflow: hidden;
   
    inset: 2px;
    padding: 10px;
  }
  
 
.card img{
   
     border-radius: 20px;
}
  .card::before {
    content: '';
    position: absolute;
    width: 100px;
    background-image: linear-gradient(180deg, rgb(0, 183, 255), rgb(48, 255, 255));
    height: 130%;
    animation: rotBGimg 3s linear infinite;
    transition: all 0.2s linear;
    
  }
  
  @keyframes rotBGimg {
    from {
      transform: rotate(0deg);
    }
  
    to {
      transform: rotate(360deg);
    }
  }
  
  .card::after {
    content: '';
    position: absolute;
    background: #07182E;
    ;
    inset: 5px;
    border-radius: 15px;
  }  
   .card:hover:before {
    background-image: linear-gradient(180deg, rgb(255, 0, 43), rgb(230, 2, 70));
    animation: rotBGimg 3.5s linear infinite;
  } 
  
  .contact {
    --green: #04eecf;
    font-size: 15px;
    padding: 0.7em 2.7em;
    letter-spacing: 0.06em;
    position: relative;
    font-family: inherit;
    border-radius: 0.6em;
    overflow: hidden;
    transition: all 0.3s;
    line-height: 1.4em;
    border: 2px solid var(--green);
    background: linear-gradient(to right, rgba(27, 253, 156, 0.1) 1%, transparent 40%,transparent 60% , rgba(27, 253, 156, 0.1) 100%);
    color: var(--green);
    box-shadow: inset 0 0 10px rgba(27, 253, 156, 0.4), 0 0 9px 3px rgba(27, 253, 156, 0.1);
  }
  
  .contact:hover {
    color: #26fdf2;
    box-shadow: inset 0 0 10px rgba(27, 253, 156, 0.6), 0 0 9px 3px rgba(4, 200, 235, 0.2);
  }
  
  .contact:before {
    content: "";
    position: absolute;
    left: -4em;
    width: 4em;
    height: 100%;
    top: 0;
    transition: transform .4s ease-in-out;
    background: linear-gradient(to right, transparent 1%, rgba(8, 201, 191, 0.1) 40%,rgba(5, 226, 189, 0.1) 60% , transparent 100%);
  }
  
  .contact:hover:before {
    transform: translateX(15em);
  }

  .projet {
    --glow-color: rgb(11, 231, 231);
    --glow-spread-color: rgba(20, 201, 214, 0.589);
    --enhanced-glow-color: rgb(231, 206, 255);
    --btn-color: rgba(100, 61, 136, 0);
    border: .25em solid var(--glow-color);
    padding: 1em 3em;
    color: var(--glow-color);
    font-size: 15px;
    font-weight: bold;
    background-color: var(--btn-color);
    border-radius: 1em;
    outline: none;
    box-shadow: 0 0 1em .25em var(--glow-color),
           0 0 4em 1em var(--glow-spread-color),
           inset 0 0 .75em .25em var(--glow-color);
    text-shadow: 0 0 .5em var(--glow-color);
    position: relative;
    transition: all 0.3s;
   }
   
   .projet::after {
    pointer-events: none;
    content: "";
    position: absolute;
    top: 120%;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: var(--glow-spread-color);
    filter: blur(2em);
    opacity: .7;
    transform: perspective(1.5em) rotateX(35deg) scale(1, .6);
   }
   
   .projet:hover {
    color: rgb(7, 30, 238);
    background-color: var(--glow-color);
    box-shadow: 0 0 1em .25em var(--glow-color),
           0 0 4em 2em var(--glow-spread-color),
           inset 0 0 .75em .25em var(--glow-color);
   }
   
   .projet:active {
    box-shadow: 0 0 0.6em .25em var(--glow-color),
           0 0 2.5em 2em var(--glow-spread-color),
           inset 0 0 .5em .25em var(--glow-color);
   }
   #competences {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
   }
.chart-container {
    position: relative;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 2.5rem 1.5rem;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    width: 90%;
    max-width: 950px;
    height: 70vh;
    min-height: 480px;
    text-align: center;
    margin: 0 auto;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.chart-container:hover {
    border-color: rgba(0, 170, 255, 0.3);
    box-shadow: 0 25px 50px -12px rgba(0, 170, 255, 0.15);
}

/* Custom cursor styling */
.custom-cursor {
    width: 10px;
    height: 10px;
    background-color: #00AAFF;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    mix-blend-mode: difference;
    transition: transform 0.15s ease-out, background-color 0.2s ease, width 0.2s ease, height 0.2s ease;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 12px #00AAFF, 0 0 24px #00AAFF;
}

.custom-cursor-ring {
    width: 32px;
    height: 32px;
    border: 2px solid #00AAFF;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.08s ease-out, width 0.2s ease, height 0.2s ease, border-color 0.2s ease;
    box-shadow: 0 0 8px rgba(0, 170, 255, 0.3);
}

/* Hover active state for links and buttons */
.custom-cursor.hovered {
    width: 16px;
    height: 16px;
    background-color: #00ffcc;
    box-shadow: 0 0 15px #00ffcc, 0 0 30px #00ffcc;
}

.custom-cursor-ring.hovered {
    width: 50px;
    height: 50px;
    border-color: #00ffcc;
    background-color: rgba(0, 255, 204, 0.05);
    box-shadow: 0 0 12px rgba(0, 255, 204, 0.4);
}

/* Hide default cursor on desktop */
@media (min-width: 1025px) {
    body, a, button, input, textarea, .social-btn, .project-card {
        cursor: none !important;
    }
}

/* Hide custom cursor on mobile touch screens */
@media (max-width: 1024px) {
    .custom-cursor, .custom-cursor-ring {
        display: none !important;
    }
    body {
        cursor: auto !important;
    }
    .chart-container {
        height: auto;
        min-height: 380px;
        padding: 1.5rem 1rem;
    }
}

/* GSAP Scroll Reveal utility */
.reveal-hidden {
    opacity: 0 !important;
    transform: translateY(40px);
}

/* --- Styles pour l'expérience 3D --- */
.panel-3d {
    background: rgb(15, 23, 42); /* Fond opaque au lieu de transparent */
    border: 1px solid rgba(0, 170, 255, 0.3);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 0 30px rgba(0, 170, 255, 0.1);
    color: white;
    overflow-y: auto;
    height: 100%;
    pointer-events: auto; /* INDISPENSABLE pour cliquer, scroller et taper ! */
}

/* Forcer l'affichage mobile (1 colonne) pour le téléphone en 3D (400px de large) */
#contact.panel-3d .lg\:grid-cols-2,
#contact.panel-3d .md\:grid-cols-2 {
    grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
}

#contact.panel-3d {
    padding: 20px; /* Moins de padding pour l'écran de téléphone */
}


.panel-3d::-webkit-scrollbar {
    width: 6px;
}
.panel-3d::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.5);
    border-radius: 4px;
}
.panel-3d::-webkit-scrollbar-thumb {
    background: #00AAFF;
    border-radius: 4px;
}
