:root {
    --bg-color: #030c16;
    --second-bg-color: #0b101b;
    --text-color: white;
    --main-color: #00c8ffb3;
    --second-color: #007bff99;
}

.projetos-hero {
    position: relative;
    perspective: 1000px;
    margin: 0;
}

.projetos-hero_container {
    display: flex;
    justify-content: center;
    align-items: center;
    transform-style: preserve-3d;
    position: relative;
    z-index: 2;
    border-radius: 10px;
}

.projetos-hero_orbit {
    position: relative;
    width: clamp(280px, 60vw, 620px);
    height: clamp(280px, 60vw, 620px);
    aspect-ratio: 1 / 1; /* 🔥 garante círculo perfeito */
    display:flex;
    align-items:center;
    justify-content:center;
    perspective:800px;
}

.projetos-orbit_center {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.projetos-orbit_center::before {
    content:"";
    position: absolute;
    width: calc(70% + 60px);
    aspect-ratio: 1 / 1; /* 🔥 evita oval */
    border-radius: 50%;
    border: 2px solid rgba(0,200,255,0.35);
    box-shadow: 0 0 25px rgba(0,200,255,0.35),
                inset 0 0 25px rgba(0,200,255,0.15);
    animation: pulseOrbit 4s ease-in-out infinite;
}


@keyframes pulseOrbit{
    0%{
        transform:scale(1);
        opacity:.4;
    }

    50%{
        transform:scale(1.05);
        opacity:.8;
    }

    100%{
        transform:scale(1);
        opacity:.4;
    }
}

/* área onde orbitas serão calculadas */
.projetos-orbit {
    position:absolute;
    width:100%;
    height:100%;
    left:0; top:0;
    pointer-events:none; /* permite interagir com os links */
    z-index: 20;
}

/* wrapper central de cada item (está no centro do container) */
.projetos-orbit_item {
    position:absolute;
    left:50%;
    top:50%;
    width:0;
    height:0;
    pointer-events:none; /* o wrapper não recebe eventos; o <a> sim */
    transform-origin:center center;
}

/* os botões reais */
.projetos-orbit_item a{
    --size: clamp(5rem, 12vw, 8rem);
    font-size: clamp(0.5rem, 1.2vw, 1.1rem);
    padding: 6px;
    text-align: center;
    position:absolute;
    left:0; 
    top:0;
    width:var(--size);
    height:var(--size);
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    text-decoration:none;
    text-align: center;
    font-family: "Black Ops One", system-ui;
    color:#bfe8ff;
    background:rgba(0,140,255,0.18);
    border:1.5px solid rgba(0,140,255,0.5);
    backdrop-filter:blur(6px);
    box-shadow:
    0 0 10px rgba(0,123,255,0.35),
    inset 0 0 8px rgba(0,123,255,0.12);
    pointer-events:auto; /* o link recebe eventos */
    transition:transform .18s ease,background .18s ease,box-shadow .18s ease;
    transform-origin:center center;
    z-index: 30;
    /* centraliza visualmente depois dos cálculos JS (usa translate(-50%,-50) no final) */
    overflow: hidden;
    text-align: center;
    word-break: break-word;
    line-height: 1.1;
}

.projetos-orbit_item a:hover{
    background:rgba(0,170,255,0.45);
    color:#fff;
    transform:scale(1.12); /* atenção: scale combinado com a transform JS */
    box-shadow:
    0 0 22px rgba(0,200,255,0.7),
    0 0 48px rgba(0,200,255,0.35),
    inset 0 0 12px rgba(0,140,255,0.25);
}

/* aura energética (suave pulso) */
.projetos-orbit_item a::after{
    content:"";
    position:absolute;
    inset:0;
    border-radius:50%;
    pointer-events:none;
    box-shadow: 0 0 18px rgba(0,170,255,0.12);
    transition:box-shadow .5s ease;
}

.projetos-orbit_item a:hover::after{
    box-shadow: 0 0 36px rgba(0,200,255,0.35);
}

@media(max-width:1100px) {
        .projetos-hero_container {
        flex-direction: column;
        gap: 4rem;
    }

    .projetos-hero_container .hero-txt {
        width: 100%;
    }

    .projetos-hero_container .hero-txt p {
        text-align: center;
    }
}

@media(max-width:650px) {

    .projetos-hero_orbit {
        width: 100%;
    }

    .projetos-orbit_center::before {
        width: 70%;
    }


    
    .titulo {
        font-size: 2.5rem;
    }
}
