/* =========================
   RESET
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #F6F4F8;
  color: #2D2D2D;
  line-height: 1.6;
}

/* =========================
   CONTAINER
========================= */
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* =========================
   HEADER
========================= */
header {
  background: #ffffff;
  padding: 20px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav h3 {
  font-weight: 700;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
}

nav a {
  text-decoration: none;
  color: #2D2D2D;
  font-weight: 500;
  position: relative;
  transition: 0.3s;
}

nav a::after {
  content: "";
  width: 0;
  height: 2px;
  background: #7B4DFF;
  position: absolute;
  left: 0;
  bottom: -5px;
  transition: 0.3s;
}

nav a:hover::after {
  width: 100%;
}



/* =========================
   HERO
========================= */
.hero {
  position: relative;
  padding: 120px 0;
  min-height: 100vh;
  /* ocupa a altura inteira da tela */

  background:
    radial-gradient(circle at 75% 55%, rgba(123, 77, 255, 0.20), transparent 60%),
    #F6F4F8;


  width: 100%;
}


.hero::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: 120px;
  top: 50%;
  transform: translateY(-50%);
  background: radial-gradient(circle,
      rgba(123, 77, 255, 0.25) 0%,
      rgba(123, 77, 255, 0.1) 40%,
      transparent 70%);
  filter: blur(50px);
  border-radius: 50%;
  pointer-events: none;
}

/* garante que o texto fique acima */
.hero .container {
  
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 42px;
  margin-top: 60px;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero h1 span {
  color: #7B4DFF;
}


.hero p {
  color: #6B6B6B;
  margin-bottom: 30px;
  max-width: 600px;
}

.hero-img {
  width: 200px;
  display: block;
  margin-top: 20px;
  margin-left: auto;
}

.hero-brain {
  position: absolute;
  right: 50px;
  top: -105%;
  width: clamp(220px, 28vw, 340px);

  transform: translateY(0);
  width: 340px;
  animation: floatBrain 6s ease-in-out infinite;
}
/*responsivo*/


@media (max-width: 900px){

.hero-brain{
  right: 10px;
  width: 280px;
  top: -90%;
}

}

@media (max-width: 600px){

.hero-brain{
  position: relative;

  right: auto;
  top: 40px;

  margin: auto;
  width: 220px;
}

}


.mini-site {
  position: absolute;

  top: 260px;
  right: 20px;
  width: 140px;
  height: 110px;
  opacity: 0;
  transform: scale(0.7);

  /* transparência */
  background: rgba(15, 15, 26, 0.18);

  /* efeito vidro */
  backdrop-filter: blur(4px);

  border-radius: 10px;

  border: 1px solid rgba(255, 255, 255, 0.12);

  /* brilho holográfico */
  box-shadow:
    0 0 20px rgba(123, 77, 255, 0.45),
    0 0 50px rgba(123, 77, 255, 0.2);

  animation:
    floatBrain 6s ease-in-out infinite,
    showSite 0.6s ease forwards;

  animation-delay: 0s, 3s;
}

/*responsivo*/
@media (max-width: 900px){

.mini-site{
  width: 130px;
  height: 90px;
}

}

@media (max-width: 600px){

.mini-site{
  width: 100px;
  height: 70px;
}

}

/*CEREBRO COLORIDO*/
@keyframes colorBrain {

  0% {
    clip-path: inset(100% 0 0 0);
  }

  100% {
    clip-path: inset(0 0 0 0);
  }

}

/*APARECIMENTO MINI SITE*/
@keyframes aparecerSite {

  0% {
    opacity: 0;
    transform: translateY(40px) scale(0.8);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

}

/*CONSTRUCAO MINI SITE*/
.mini-header {
  height: 20px;
  background: linear-gradient(90deg, #6c63ff, #8b7bff);
  width: 0%;
  animation: buildHeader 0.6s forwards;
  animation-delay: 3.5s;
}

@keyframes buildHeader {
  to {
    width: 100%;
  }
}

.mini-hero {
  height: 50px;
  background: #1b1b2e;
  margin: 10px;
  border-radius: 6px;

  width: 0%;
  animation: buildHero 0.8s forwards;
  animation-delay: 4s;
}

@keyframes buildHero {
  to {
    width: 90%;
  }
}

.mini-button {
  height: 20px;
  width: 0%;
  background: #6c63ff;
  margin: 10px;
  border-radius: 6px;

  animation: buildButton 0.6s forwards;
  animation-delay: 4.6s;
}

@keyframes buildButton {
  to {
    width: 60%;
  }
}


.hero-img::before {
  content: "";
  position: absolute;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(120, 80, 255, 0.35), transparent 70%);
  filter: blur(40px);
  z-index: -1;
}

/* elemento interno que realmente flutua */
.hero-brain::after {
  content: "";
  position: absolute;
  inset: 0;
  animation: floatBrain 6s ease-in-out infinite;
}




/* duas imagens exatamente no mesmo lugar */
.brain-bw,
.brain-color {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}

/* preto e branco */
.brain-bw {
  filter: grayscale(100%);
}

/* colorida que será revelada */
.brain-color {
  clip-path: inset(100% 0 0 0);
  animation: colorBrain 3s ease forwards;
}


/*CODIGO DIGITANDO*/
.code-overlay {
  position: absolute;
  top: 230px;
  right: 95px;
  width: 140px;

  font-family: Consolas, monospace;
  font-size: 15px;
  line-height: 1.3;

  text-shadow: 0 0 6px rgba(123, 77, 255, 0.25);

  animation:
    floatBrain 6s ease-in-out infinite,
    hideCode 1s ease forwards;

  animation-delay: 0s, 3s;
}


/*responsivo*/
@media (max-width: 900px){

.code-overlay{
  top: 180px;
  right: 60px;
  font-size: 13px;
}

}

@media (max-width: 600px){

.code-overlay{
  top: 130px;
  right: 40px;
  font-size: 11px;
  width: 100px;
}

}


/* cores */

.bracket {
  color: #808080;
}

/* < > */
.tag {
  color: #569CD6;
}

/* tags */
.attr {
  color: #9CDCFE;
}

/* atributos */
.string {
  color: #CE9178;
}

/* strings */
.text {
  color: #d4d4d4;
}

/* texto normal */


/*codigo desaparecendo*/
@keyframes hideCode {

  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }

}

/*mini site aparecendo*/
@keyframes showSite {

  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.6);
  }

  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }

}

/*mini site sumindo*/
@keyframes hideSite {

  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }

}



/*efeito da cabeca flutuando*/
@keyframes floatBrain {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0px);
  }
}







/* =========================
   BUTTONS
========================= */
.btn-primary {
  background: #7B4DFF;
  color: #fff;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  transition: 0.3s;
}

.btn-primary:hover {
  background: #5E35D6;
  transform: translateY(-2px);
}

.btn-secondary {
  border: 2px solid #7B4DFF;
  color: #7B4DFF;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  margin-left: 15px;
  transition: 0.3s;
}

.btn-secondary:hover {
  background: #7B4DFF;
  color: #fff;
}

/* =========================
   SECTIONS
========================= */
.section {
  padding: 80px 0;
  animation: fadeUp 1s ease forwards;
}

.section h2 {
  text-align: center;
  margin-bottom: 50px;
  font-size: 32px;
}

/* =========================
   GRID
========================= */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* =========================
   CARDS
========================= */
.card {
  background: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(123, 77, 255, 0.1);
  transition: 0.4s;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease forwards;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(123, 77, 255, 0.2);
}

.card img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 20px;
}

/* =========================
   FORM
========================= */
form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 500px;
  margin: auto;
}

input,
textarea {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-family: 'Poppins', sans-serif;
}

textarea {
  resize: none;
}

/* =========================
   ANIMATIONS
========================= */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(25px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================
   RESPONSIVIDADE
========================= */

@media (max-width: 992px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero h1 {
    font-size: 34px;
  }
}

@media (max-width: 768px) {
  nav ul {
    display: none;
  }

  .hero {
    padding: 60px 0;
  }

  .hero h1 {
    font-size: 28px;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .btn-secondary {
    margin-left: 0;
    margin-top: 10px;
    display: inline-block;
  }
}

/* =========================
   SOBRE NÓS - VERSÃO FINAL
========================= */

.sobre-section {
  background: #ffffff;
  border-radius: 20px;
  max-width: 1100px;
  margin: 40px auto 0 auto;
  /* reduz espaço do topo */
  padding: 70px 40px;
  box-shadow: 0 15px 40px rgba(123, 77, 255, 0.08);
}

/* Título */
.sobre-section h2 {
  text-align: center;
  font-size: 32px;
  margin-bottom: 30px;
}

/* Texto central */
.sobre-texto {
  max-width: 720px;
  margin: 0 auto 60px auto;
  text-align: center;
}

.sobre-texto p {
  margin-bottom: 18px;
  color: #6B6B6B;
  font-size: 16px;
  line-height: 1.7;
}

/* Cards */
.sobre-card {
  text-align: center;
  padding: 30px;
  border-radius: 14px;
  transition: 0.3s ease;
}

.sobre-card:hover {
  transform: translateY(-6px);
}

/* Ícone */
.icone-roxo {
  width: 65px;
  height: 65px;
  margin: 0 auto 20px auto;
  background: rgba(123, 77, 255, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}

.icone-roxo svg {
  width: 28px;
  height: 28px;
  stroke: #7B4DFF;
  stroke-width: 2;
  fill: none;
  transition: 0.3s;
}

.sobre-card:hover .icone-roxo {
  background: #7B4DFF;
  transform: scale(1.1);
}

.sobre-card:hover .icone-roxo svg {
  stroke: #ffffff;
}

/* Título do card */
.sobre-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

/* Texto do card */
.sobre-card p {
  font-size: 14px;
  color: #6B6B6B;
  line-height: 1.6;
}

/* =========================
   RESPONSIVIDADE DO SOBRE
========================= */

@media (max-width: 992px) {
  .sobre-section {
    padding: 60px 30px;
  }
}

@media (max-width: 768px) {
  .sobre-section {
    margin: 20px auto 0 auto;
    padding: 50px 20px;
  }

  .sobre-texto {
    margin-bottom: 40px;
  }
}


/* =========================
   SERVIÇOS - VERSÃO PREMIUM
========================= */

.servicos-section {
  padding: 100px 20px;
  background: #f9f9ff;
  text-align: center;
}

.servicos-header {
  max-width: 700px;
  margin: 0 auto 60px auto;
}

.subtitulo-roxo {
  color: #7B4DFF;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  display: block;
  margin-bottom: 15px;
}

.servicos-header h2 {
  font-size: 32px;
  margin-bottom: 15px;
}

.servicos-header p {
  color: #6B6B6B;
  font-size: 16px;
}

/* GRID */
.servicos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}

/* CARDS */
.servico-card {
  background: #ffffff;
  padding: 40px 30px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(123, 77, 255, 0.08);
  transition: 0.3s ease;
  text-align: left;
}

.servico-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(123, 77, 255, 0.15);
}

/* Card destaque (central) */
.servico-card.destaque {
  background: linear-gradient(135deg, #7B4DFF, #5A2DFF);
  color: #ffffff;
}

.servico-card.destaque p,
.servico-card.destaque a {
  color: #ffffff;
}

/* Ícone */
.icone-servico {
  width: 60px;
  height: 60px;
  background: rgba(123, 77, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.servico-card.destaque .icone-servico {
  background: rgba(255, 255, 255, 0.2);
}

/* Título */
.servico-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

/* Texto */
.servico-card p {
  font-size: 14px;
  color: #6B6B6B;
  margin-bottom: 20px;
  line-height: 1.6;
}

/* Link */
.servico-card a {
  text-decoration: none;
  color: #7B4DFF;
  font-weight: 600;
  font-size: 14px;
  transition: 0.3s;
}

.servico-card a:hover {
  opacity: 0.7;
}

/* RESPONSIVO */

@media (max-width: 992px) {
  .servicos-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .servicos-grid {
    grid-template-columns: 1fr;
  }

  .servico-card {
    text-align: center;
  }
}

/* BOTÃO HAMBURGER */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: #2D2D2D;
  border-radius: 2px;
}

/* RESPONSIVO */
@media (max-width: 768px) {

  .menu-toggle {
    display: flex;
  }

  nav ul {
    position: absolute;
    top: 80px;
    right: 0;
    background: #ffffff;
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px 0;

    display: none;
    /* ESCONDE no mobile */
  }

  nav ul.active {
    display: flex;
    /* MOSTRA quando clicar */
  }
}


/* NOME ANIMADO */
.tech-name {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 700;

  background: linear-gradient(90deg, #7B2CBF, #C77DFF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  white-space: nowrap;
  overflow: hidden;

  border-right: 3px solid #C77DFF;

  width: 0;

  animation:
    typing 4s steps(25, end) forwards,
    blink 0.75s step-end infinite;
}

@keyframes typing {
  from {
    width: 0;
  }

  to {
    width: 25ch;
  }



  
  /* número de caracteres do nome */
}

@keyframes blink {
  50% {
    border-color: transparent;
  }

  100% {
    border-color: #C77DFF;
  }
}


@keyframes glowName {
  from {
    filter: drop-shadow(0 0 5px #7B2CBF);
  }

  to {
    filter: drop-shadow(0 0 25px #C77DFF);
  }
}


/* RESPONSIVO */
@media (max-width: 768px) {
  .tech-name {
    font-size: 40px;
  }

  .hero p {
    font-size: 16px;
  }
}

@media (max-width:600px){

.tech-name{
  font-size: clamp(22px, 7vw, 32px);
}

}


/* =========================
   HERO RESPONSIVO MOBILE
========================= */

@media (max-width:768px){

.hero{
  min-height:auto;
  padding:70px 0;
  text-align:center;
}

/* container vira coluna */
.hero .container{
  display:flex;
  flex-direction:column;
  align-items:center;
}

/* texto */
.hero p{
  margin-left:auto;
  margin-right:auto;
}

/* CÉREBRO */
.hero-brain{
  position:relative;

  top:auto;
  right:auto;

  order:3; /* força ficar abaixo de tudo */

  display:block;
  margin:40px auto 0 auto;

  width:220px;
}

/* código */
@media (max-width:768px){

.code-overlay{
  position:absolute;

  top:42%;
  left:50%;

  transform:translate(-50%, -50%);

  width:90px;
  font-size:11px;
}
}

/* mini site */
@media (max-width:768px){

.mini-site{
  position:absolute;

  top:52%;
  left:50%;

  transform:translate(-50%, -50%);

  width:100px;
  height:70px;
}

}

/* glow centralizado */
.hero::after{
  right:50%;
  transform:translate(50%,-50%);
  width:260px;
  height:260px;
}

}