/* Reset e configurações básicas */
.bentogrid-section {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* Estilos da seção */
.bentogrid-section {
    background-color: #000000;
    color: #ffffff;
    font-family: 'Source Code Pro', monospace;
    min-height: 100vh;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    padding-top: 110px;
    padding-bottom: 180px;
}

/* Grade de fundo */
.bentogrid-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(80, 80, 80, 0.4) 1px, transparent 1px),
        linear-gradient(90deg, rgba(80, 80, 80, 0.4) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 1;
}

/* Animação de partículas */
.bentogrid-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.bentogrid-particle {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: float 15s infinite linear;
}

@keyframes float {
    0% {
        transform: translateY(0) translateX(0);
    }

    25% {
        transform: translateY(-20px) translateX(10px);
    }

    50% {
        transform: translateY(0) translateX(20px);
    }

    75% {
        transform: translateY(20px) translateX(10px);
    }

    100% {
        transform: translateY(0) translateX(0);
    }
}

/* Círculos animados */
.bentogrid-circles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 3;
}

.bentogrid-circle {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: pulse 8s infinite ease-in-out;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.3;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.6;
    }
}

/* Container principal */
.bentogrid-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.bentogrid-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.bentogrid-subtitle {
    font-family: 'Source Code Pro', monospace;
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #cccccc;
    letter-spacing: 1px;
}

/* Grid layout */
.bentogrid-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, 200px);
    gap: 20px;
}

.bentogrid-item {
    background-color: rgba(30, 30, 30, 0.8);
    border: 1px solid #444444;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.bentogrid-item:hover {
    background-color: rgba(50, 50, 50, 0.9);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
}

.bentogrid-item-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #ffffff;
    position: relative;
    z-index: 5;
}

.bentogrid-item-content {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.9rem;
    color: #cccccc;
    line-height: 1.5;
    position: relative;
    z-index: 5;
}

/* Primeiro card com animação atrás do texto */
.bentogrid-item-1 {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
    justify-content: flex-end;
    padding-bottom: 2rem;
}

/* Animação de ícones com órbitas visíveis apenas onde os ícones estão */
.bentogrid-tech-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.bentogrid-orbit {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.bentogrid-orbit-1 {
    width: 240px;
    height: 240px;
}

.bentogrid-orbit-2 {
    width: 320px;
    height: 320px;
}

.bentogrid-orbit-3 {
    width: 400px;
    height: 400px;
}

.bentogrid-icon-container {
    position: absolute;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
    z-index: 3;
}

.bentogrid-icon {
    font-size: 2.5rem;
    color: #ffffff;
    z-index: 2;
}

/* Linha 1 - 3 ícones - sentido horário */
.bentogrid-icon-1 {
    animation: orbit-clockwise-1 20s linear infinite;
}

.bentogrid-icon-2 {
    animation: orbit-clockwise-1 20s linear infinite;
    animation-delay: -6.66s;
}

.bentogrid-icon-3 {
    animation: orbit-clockwise-1 20s linear infinite;
    animation-delay: -13.33s;
}

@keyframes orbit-clockwise-1 {
    0% {
        transform: rotate(0deg) translateX(120px) rotate(0deg);
    }

    100% {
        transform: rotate(360deg) translateX(120px) rotate(-360deg);
    }
}

/* Linha 2 - 2 ícones - sentido anti-horário */
.bentogrid-icon-4 {
    animation: orbit-counterclockwise-2 25s linear infinite;
}

.bentogrid-icon-5 {
    animation: orbit-counterclockwise-2 25s linear infinite;
    animation-delay: -12.5s;
}

@keyframes orbit-counterclockwise-2 {
    0% {
        transform: rotate(0deg) translateX(160px) rotate(0deg);
    }

    100% {
        transform: rotate(-360deg) translateX(160px) rotate(360deg);
    }
}

/* Linha 3 - 2 ícones - sentido horário */
.bentogrid-icon-6 {
    animation: orbit-clockwise-3 30s linear infinite;
}

.bentogrid-icon-7 {
    animation: orbit-clockwise-3 30s linear infinite;
    animation-delay: -15s;
}

@keyframes orbit-clockwise-3 {
    0% {
        transform: rotate(0deg) translateX(200px) rotate(0deg);
    }

    100% {
        transform: rotate(360deg) translateX(200px) rotate(-360deg);
    }
}

.bentogrid-center-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    font-size: 2.5rem;
    color: #ffffff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
    z-index: 3;
}

/* Posicionamento específico dos itens */
.bentogrid-item-2 {
    grid-column: 3 / 4;
    grid-row: 1 / 2;
    position: relative;
    overflow: hidden;
}

.bentogrid-item-3 {
    grid-column: 4 / 5;
    grid-row: 1 / 3;
    position: relative;
    overflow: hidden;
}

.bentogrid-item-4 {
    grid-column: 1 / 2;
    grid-row: 3 / 4;
}

.bentogrid-item-5 {
    grid-column: 2 / 4;
    grid-row: 3 / 4;
}

.bentogrid-item-6 {
    grid-column: 4 / 5;
    grid-row: 3 / 4;
}

/* Animação do foguete */
.rocket-animation {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2.5rem;
    color: #ffffff;
    z-index: 4;
    animation: rocket-launch 4s infinite ease-in;
}

@keyframes rocket-launch {
    0% {
        bottom: -50px;
        transform: translateX(-50%) scale(0.8);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    50% {
        transform: translateX(-50%) scale(1);
    }

    90% {
        opacity: 1;
    }

    100% {
        bottom: 120%;
        transform: translateX(-50%) scale(1.2);
        opacity: 0;
    }
}

/* Efeito de propulsão do foguete */
.rocket-animation::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 20px;
    background: linear-gradient(to top, #ff6b00, #ffbb00, transparent);
    border-radius: 50% 50% 0 0;
    filter: blur(2px);
    animation: rocket-fire 0.2s infinite alternate;
}

@keyframes rocket-fire {
    0% {
        height: 20px;
        opacity: 0.8;
    }

    100% {
        height: 30px;
        opacity: 1;
    }
}

/* Animação do ícone UX para bentogrid-item-3 */
.ux-icon-animation {
    position: absolute;
    top: 20px;
    width: 48px;
    height: 48px;
    color: #ffffff;
    z-index: 5;
    animation: ux-roll 8s infinite;
}

@keyframes ux-roll {
    0% {
        left: -48px;
        transform: translateY(0) rotate(0deg);
    }

    20% {
        left: 50%;
        transform: translateY(0) rotate(720deg);
    }

    25% {
        left: 50%;
        transform: translateY(0) rotate(720deg);
    }

    45% {
        left: 50%;
        transform: translateY(0) rotate(720deg);
    }

    50% {
        left: 50%;
        transform: translateY(0) rotate(720deg);
    }

    70% {
        left: calc(100% + 48px);
        transform: translateY(0) rotate(1440deg);
    }

    75% {
        left: calc(100% + 48px);
        transform: translateY(0) rotate(1440deg);
    }

    95% {
        left: -48px;
        transform: translateY(0) rotate(2160deg);
    }

    100% {
        left: -48px;
        transform: translateY(0) rotate(2160deg);
    }
}

/* Estilos para a chuva binária */
.bentogrid_binary-rain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.binary-digitos {
    position: absolute;
    color: rgba(180, 180, 180, 0.4);
    font-family: 'Source Code Pro', monospace;
    font-size: 14px;
    font-weight: bold;
    user-select: none;
    animation: fall linear forwards;
}

@keyframes fall {
    0% {
        transform: translateY(-100px);
        opacity: 0;
    }

    5% {
        opacity: 1;
    }

    95% {
        opacity: 1;
    }

    100% {
        transform: translateY(calc(100% + 100px));
        opacity: 0;
    }
}

/* Garantir que o conteúdo fique acima da chuva binária */
.bentogrid-item-4 {
    position: relative;
}

.bentogrid-item-4 .bentogrid-item-title,
.bentogrid-item-4 .bentogrid-item-content {
    position: relative;
    z-index: 2;
}

/* Responsividade */
@media (max-width: 768px) {
    .bentogrid-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(6, auto);
    }

    .bentogrid-item-1,
    .bentogrid-item-2,
    .bentogrid-item-3,
    .bentogrid-item-4,
    .bentogrid-item-5,
    .bentogrid-item-6 {
        grid-column: 1;
        grid-row: auto;
    }

    .bentogrid-tech-icons {
        transform: scale(0.7);
    }

    .ux-icon-animation {
        width: 36px;
        height: 36px;
    }
}