body {
    letter-spacing: -0.01em;
    background-color: #050505; 
    color: white;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: 
        radial-gradient(circle at 50% -20%, rgba(0, 242, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(0, 140, 255, 0.05) 0%, transparent 40%);
    pointer-events: none;
    z-index: -1;
}

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

body::after {
    content: "";
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: url('https://grainy-gradients.vercel.app/noise.svg');
    opacity: 0.02;
    pointer-events: none;
    z-index: 100;
}

.card-node {
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.card-node:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 242, 255, 0.1);
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #050505;
}

::-webkit-scrollbar-thumb {
    background: #1a1a1a;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #00f2ff;
}

#process .group::after {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0, 242, 255, 0.05) 50%,
        transparent 100%
    );
    background-size: 100% 200%;
    animation: scanline 3s linear infinite;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

#process .group:hover::after {
    opacity: 1;
}

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

.mo-modal-overlay {
    position: fixed;
    bottom: 30px; 
    right: 30px;  
    width: auto;
    height: auto;
    background: transparent; 
    display: none; 
    z-index: 9999;
    pointer-events: none; 
}

.mo-card {
    pointer-events: auto; 
    background-color: rgba(13, 13, 13, 0.9); /* Transparence pour voir le fond */
    backdrop-filter: blur(12px); /* EFFET FLOU (très important pour l'aesthetic) */
    width: 92vw; /* Plus large sur mobile */
    max-width: 380px;
    padding: 30px 25px; /* Plus d'espace interne */
    border-radius: 24px;
    position: relative;
    border: 1px solid rgba(0, 242, 255, 0.4); /* Bordure plus lumineuse */
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7);
    text-align: center; /* Centré pour le mobile */
    transform: translateX(120%); 
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.mo-card.slide-in {
    transform: translateX(0);
}

.mo-card h2 {
    font-size: 26px;
    margin: 10px 0;
    color: #00f2ff;
    font-weight: 900;
    text-transform: uppercase;
}

.mo-card p {
    font-size: 15px;
    margin-bottom: 20px;
    color: #a0a0a0;
}

.mo-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #222;
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    transition: 0.3s ease;
}

.mo-close-btn:hover {
    background: #ff4444;
    transform: rotate(90deg); 
}

.mo-btn-portfolio {
    background: #00f2ff;
    color: black;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: bold;
    display: inline-block;
    text-decoration: none;
    transition: 0.3s;
}

.mo-btn-portfolio span {
    display: inline-block;
    transition: transform 0.3s ease;
}

.mo-btn-portfolio:hover span {
    transform: translateX(5px); 
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.form-input-name-custom {
    padding: 1.25rem;
    font-size: 0.875rem;
}

@media (max-width: 480px) {
    /* Évite que le texte touche les bords de l'écran */
    section {
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
    }

    /* Réduction de la taille des titres pour que ça ne "casse" pas */
    h1 { font-size: 42px !important; }
    h2 { font-size: 32px !important; }

    /* On force les boutons du Hero à s'empiler proprement */
    .hero-btns-container {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-btns-container a {
        width: 100%;
        text-align: center;
    }
}