@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: black;
    color: rgb(255, 255, 255);
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 10%;
    background: transparent;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.548), green, rgba(0, 0, 0, 0.548));
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    /* border-radius: 100px; */
}

.logo {
    font-size: 25px;
    color: green;
    text-shadow: 5px 5px 10px black;
    text-decoration: none;
    font-weight: 600;
    pointer-events: none;
    opacity: 0;
    animation: slideTop 1s ease forwards;
    
}

.navbar a {
    display: inline-block;
    font-size: 18px;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    margin-left: 35px;
    opacity: 0;
    animation: slideTop .5s ease forwards;
    animation-delay: calc(.2s * var(--i));
}
.navbar a::after {
    content: '';
    width: 0;
    height: 2px;
    background: black;
    border-radius: 50%;
    position: absolute;
    left: 0;
    bottom: -3px;
    transition: 0.6s;
}

.navbar a:hover::after {
    width: 100%;
}

.navbar a:hover {
    background: linear-gradient(45deg, rgb(0, 0, 0), rgb(0, 0, 0));
    -webkit-text-fill-color: transparent;
    background-clip: border-box;
    -webkit-background-clip: text;
}

.home {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 70px 10% 0;
}

.home-content {
    max-width: 600px;
    padding: 50px;
    /* margin-left: -30px; */
}

.home-content h1 {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.2;
    opacity: 0;
    animation: slideRight 1s ease forwards;
    animation-delay: .7s;
}   

.home-content h3 {
    font-size: 32px;
    font-weight: 700;
    opacity: 0;
    animation: slideLeft 1s ease forwards;
    animation-delay: 1s;
}

.mu {
    margin-top: 50px;
}

.home-content h1, h3 {
    text-shadow: 5px 4px 10px green;
}

.home-content h3 span {
    color: rgb(0, 255, 0);
}

.home-content p {
    font-size: 16px;
    margin: 20px 0 0;
    text-align: left;
    opacity: 0;
    animation: slideLeft 1s ease forwards;
    animation-delay: 1.3s;
}

.home-sci a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: black;
    border: 2px solid green;
    border-radius: 50%;
    font-size: 20px;
    color: green;
    text-decoration: none;
    margin: 30px 15px 30px 0;
    opacity: 0;
    animation: zoomIn 1s ease forwards;
    animation-delay: 0.4s;
    
}

.home-sci a:hover {
    background: green;
    color: black;
    box-shadow: 0 0 20px green;
}

.btn-box {
    display: inline-block;
    padding: 12px 28px;
    background: green;
    border-radius: 40px;
    font-size: 16px;
    color: black;
    letter-spacing: 1px;
    text-decoration: none;
    font-weight: 600;
    opacity: 0;
    animation: zoomIn 1s ease forwards;
    animation-delay: 0.4s;
}

.btn-box:hover {
    box-shadow: 0 0 5px green,
    0 0 25px green, 0 0 50px green,
    0 0 100px green, 0 0 200px green;
}

.home-img {
    width: 410px;
    height: 410px;
    opacity: 0;
    animation: zoomIn 1s ease forwards, floatImage 4s ease-in-out infinite;
    animation-delay: 2.1s, 3.1s;
}

.home-img .glowing-circle {
    width: 100%;
    height: 100%;
   
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.home-img .glowing-circle::after {
    content: '';
    position: absolute;
    width: 380px;
    height: 380px;
    background-color:black;
    border-radius: 50%;
}

.glowing-circle span {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(black, rgba(0, 128, 0, 0.411));
    border-radius: 50%;
    animation: circleRotate 5s linear infinite;
}

.glowing-circle span:nth-child(1) {
    filter: blur(10px);
}

.image img {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%);
    max-width: 350px;
    object-fit: cover;
    border-radius: 50%;
}

.glowing-circle .image {
    position: relative;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    z-index: 1;
}

.navbar-1 a {
    font-size: 18px;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    margin-left: 50px;
    text-align-last: center;
}

.navbar-1 a.active, 
.navbar-1 a:hover {
    background: linear-gradient(45deg, rgb(0, 0, 0), rgb(0, 0, 0));
    -webkit-text-fill-color: transparent;
    background-clip: border-box;
    -webkit-background-clip: text;
}

canvas {
    position: fixed;
    top: auto;
    left: auto;
    background-color: black;
    z-index: -1;
    background-size: contain;
    background-blend-mode: multiply;
    background-size: auto;
    scroll-behavior: smooth;
}


/* ---------------------------About----------------------- */

.about {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 70px 10% 0;
    margin-top: 10% ;
}
    
.about-img img{
    padding: auto;
}

.about-content h3{
    font-size: 32px;
    font-weight: 700;
    opacity: 0;
    animation: slideLeft 1s ease forwards;
    animation-delay: 1s;
}

.about-content p{
    font-size: 16px;
    margin: 20px 0 0;
    text-align: left;
    opacity: 0;
    animation: slideLeft 1s ease forwards;
    animation-delay: 1.3s;
}

/* Animation */
@keyframes slideTop {
    0% {
        opacity: 0;
        transform: translateY(100px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }    
}

@keyframes slideRight {
    0% {
        opacity: 0;
        transform: translateX(-100px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }    
}

@keyframes slideLeft {
    0% {
        opacity: 0;
        transform: translateX(100px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }    
}

@keyframes zoomIn {
    0% {
        opacity: 0;
        transform: scale(0);
    }

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

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

    50% {
        transform: translateY(-24px);
    }

    100%{
        transform: translate(0);
    }
}

@keyframes circleRotate {
    0% {
        transform: rotate(0);
    }
    
    100% {
        transform: rotate(360deg);
    }
}

@keyframes fadeIn {
    0% {
      opacity: 0;
    }
    100% {
      opacity: 1;
    }
  }


  /* ======================================== */
/* === ESTILOS PARA A SEÇÃO JOURNEY/TIMELINE === */
/* ======================================== */

.journey {
    padding: 100px 10%;
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 48px;
    font-weight: 700;
    color: green; /* Mantendo a cor do seu h1 */
    text-shadow: 5px 4px 10px green;
    margin-bottom: 70px;
}

.timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

/* A linha central verde */
.timeline::after {
  content: '';
  position: absolute;
  width: 3px;
  background-color: green;
  box-shadow: 0 0 15px green;
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -1.5px;
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  width: 50%;
  box-sizing: border-box; /* Garante que padding não afete a largura */
}

/* Posiciona os itens na esquerda */
.timeline-item:nth-child(odd) {
  left: 0;
  padding-right: 30px; /* Espaçamento do centro */
}

/* Posiciona os itens na direita */
.timeline-item:nth-child(even) {
  left: 50%;
  padding-left: 30px; /* Espaçamento do centro */
}

.timeline-content {
  padding: 20px 30px;
  background: rgba(0, 0, 0, 0.5); /* Fundo translúcido para ver o matrix */
  border: 1px solid green;
  box-shadow: 0 0 20px rgba(0, 255, 0, 0.2);
  transition: box-shadow 0.3s ease;
}

.timeline-content:hover {
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.5);
}

.timeline-content h2 {
  font-size: 24px;
  color: green;
  text-shadow: 0 0 5px green;
  margin-top: 0;
  margin-bottom: 10px;
}

.timeline-content p {
    font-size: 16px;
    color: #fff;
    margin: 0;
    /* Resetando animações da home, caso herde */
    opacity: 1; 
    animation: none;
}

/* Ícone no centro */
.timeline-icon {
  position: absolute;
  width: 50px;
  height: 50px;
  top: 25px; /* Alinha com o topo do card */
  background: black;
  border: 2px solid green;
  border-radius: 50%;
  text-align: center;
  line-height: 48px;
  font-size: 20px;
  z-index: 10;
  color: green;
  box-shadow: 0 0 25px green;
  transition: all 0.3s ease;
}

.timeline-item:nth-child(odd) .timeline-icon {
  right: -25px;
}

.timeline-item:nth-child(even) .timeline-icon {
  left: -25px;
}

.timeline-item:hover .timeline-icon {
    transform: scale(1.1);
    box-shadow: 0 0 40px green, 0 0 60px green;
}

.timeline-content a {
    color: lime;
}

/* --- Responsividade para Telas Menores --- */
@media screen and (max-width: 768px) {
  .timeline::after {
    left: 31px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
    left: 0;
  }
  
  .timeline-item:nth-child(even) {
      left: 0;
  }

  .timeline-icon {
    left: 6px;
  }

  .timeline-item:nth-child(odd) .timeline-icon,
  .timeline-item:nth-child(even) .timeline-icon {
      left: 6px;
  }
}

#block-for-phone {
    display: none;
}


/* ======================================== */
/* === ESTILOS PARA A SEÇÃO ROADMAP/GRAFO === */
/* ======================================== */

.roadmap-section {
    padding: 100px 10%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.roadmap-container-star {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    grid-template-areas:
        "frontend backend db"
        "devops fundamentos cloud"
        ". . ."; /* Linha extra para espaçamento se necessário */
    gap: 100px;
    align-items: center;
    justify-items: center;
    width: 100%;
    max-width: 1200px;
    margin-top: 50px;
}

/* Posicionando cada nó na sua área designada */
#node-fundamentos { grid-area: fundamentos; }
#node-frontend   { grid-area: frontend; }
#node-backend    { grid-area: backend; }
#node-db         { grid-area: db; }
#node-devops     { grid-area: devops; }
#node-cloud      { grid-area: cloud; }


.roadmap-node {
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid green;
    border-radius: 15px;
    box-shadow: 0 0 25px rgba(0, 255, 0, 0.3);
    padding: 25px;
    width: 250px; /* Largura fixa para consistência */
    height: 200px; /* Altura fixa para consistência */
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    transition: all 0.3s ease;
    z-index: 10; /* Garante que os nós fiquem acima das linhas */
}

/* Destaque especial para o nó central */
#node-fundamentos {
    transform: scale(1.1);
    box-shadow: 0 0 40px rgba(0, 255, 0, 0.7);
    border-color: lime;
}

.roadmap-node:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 0 40px rgba(0, 255, 0, 0.6);
}

#node-fundamentos:hover {
    transform: scale(1.15) translateY(-5px); /* Efeito de hover um pouco diferente para o centro */
}


.roadmap-node i {
    font-size: 48px;
    color: green;
    text-shadow: 0 0 15px green;
    margin-bottom: 15px;
}

.roadmap-node h3 {
    font-size: 22px;
    color: #fff;
    margin-bottom: 10px;
    /* Resetando animações da home */
    opacity: 1;
    animation: none;
}

.roadmap-node p {
    font-size: 16px;
    color: #ccc;
    /* Resetando animações da home */
    opacity: 1;
    animation: none;
}

.roadmap-node-main {
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid lime;
    box-shadow: 0 0 50px rgba(0, 255, 0, 0.8);
    width: 400px;
    height: 400px;
    border-radius: 100%;
}

/* Ajustes para as linhas do LeaderLine não ficarem estranhas 
body {
    position: relative;
}

.leader-line {
    z-index: 9; /* Coloca as linhas atrás dos nós
}

/* Responsividade para o grafo
@media (max-width: 1200px) {
    .roadmap-container-star {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "fundamentos fundamentos"
            "frontend backend"
            "db devops"
            "cloud .";
        gap: 60px;
    }
}

@media (max-width: 768px) {
    .roadmap-container-star {
        display: flex;
        flex-direction: column;
        gap: 40px;
    }
    .roadmap-node {
        width: 80%;
    }
}
*/



@media screen and (max-width: 768px) and (orientation: portrait) {
    #block-for-phone {
        position: absolute;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: black;
        color: white;
        padding: 1em;
        z-index: 9999;
    }

    #block-for-phone img {
        filter: invert(1);
        max-width: 100px;
        margin-bottom: 1em;
    }
}