@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;700&display=swap');

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: #050508;
    color: #f3f4f6;
    overflow-x: hidden;
    cursor: default;
}

.font-mono {
    font-family: 'JetBrains Mono', monospace;
}

/* Curseur personnalisé futuriste */
#custom-cursor {
    pointer-events: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 30px;
    height: 30px;
    border: 1px solid rgba(0, 240, 255, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}
#custom-cursor::after {
    content: '';
    width: 4px;
    height: 4px;
    background-color: #00f0ff;
    border-radius: 50%;
}

/* Effet Glassmorphism poussé */
.glass-card {
    background: rgba(12, 12, 20, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.glass-card:hover {
    border-color: rgba(0, 240, 255, 0.3);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.15);
}

/* Grille animée en arrière-plan */
.bg-grid {
    background-size: 40px 40px;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
}

/* Barre de scroll personnalisée */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #050508;
}
::-webkit-scrollbar-thumb {
    background: #1e1e2f;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #00f0ff;
}

/* Projets : chaque carte bien séparée, surtout sur téléphone */
#projects .grid > .glass-card {
    border-top: 3px solid rgba(0, 240, 255, 0.55);
}
@media (max-width: 767px) {
    #projects .grid {
        row-gap: 3.5rem;
    }
    #projects .grid > .glass-card {
        border: 1px solid rgba(0, 240, 255, 0.25);
        border-top: 3px solid rgba(0, 240, 255, 0.7);
        box-shadow: 0 0 0 6px rgba(0, 0, 0, 0.35), 0 20px 50px rgba(0, 0, 0, 0.5);
    }
}
