/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* BODY */
body {
  font-family: Arial, sans-serif;
  color: #e2e8f0;

  background-color: #020617;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* HEADER */
header {
  text-align: center;
  padding: 100px 20px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
}

header h1 {
  font-size: 3rem;
  margin-bottom: 10px;
}

header p {
  color: #a78bfa;
}

/* SECTIONS */
section {
  padding: 80px 20px;
  max-width: 1100px;
  margin: auto;
}

h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

/* LOGOS FULL WIDTH */
.logos-section {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 100px 0;
}

.logos-mask {
  overflow: hidden;
  padding: 30px 0;

  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    black 20%,
    black 80%,
    transparent
  );
  mask-image: linear-gradient(
    to right,
    transparent,
    black 20%,
    black 80%,
    transparent
  );
}

.logos-track {
  display: flex;
  align-items: center;
  gap: 120px; /* melhor preenchimento */
  width: fit-content;
  animation: scroll 25s linear infinite;
}

.logos-mask:hover .logos-track {
  animation-play-state: paused;
}

/* TECH CARD */
.tech-card {
  width: 110px;
  height: 110px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 18px;
  position: relative;

  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(139, 92, 246, 0.2);

  backdrop-filter: blur(10px);

  transition: 0.4s;
  overflow: hidden;

  isolation: isolate;
}

.tech-card img {
  width: 55px;
  z-index: 2;
  position: relative;
  transition: 0.3s;
}

/* GLOW */
.tech-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;

  background: conic-gradient(
    from 0deg,
    transparent,
    #7c3aed,
    transparent,
    #3b82f6,
    transparent
  );

  animation: rotateGlow 4s linear infinite;

  opacity: 0;
  transition: 0.4s;

  z-index: 0;
}

.tech-card::after {
  content: "";
  position: absolute;
  inset: 2px;
  background: #020617;
  border-radius: 16px;
  z-index: 1;
}

/* HOVER */
.tech-card:hover {
  transform: translateY(-6px) scale(1.03);
}

.tech-card:hover::before {
  opacity: 1;
}

.tech-card:hover img {
  transform: scale(1.1);
}

/* ANIMAÇÕES */
@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-50% - 60px));
  }
}

@keyframes rotateGlow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* PROJETOS */
.projetos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.card {
  background: rgba(255, 255, 255, 0.03);
  padding: 20px;
  border-radius: 16px;
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-5px);
}

.tech span {
  display: inline-block;
  margin-right: 10px;
  color: #a78bfa;
}

/* LINKS */
.links a {
  display: inline-block;
  margin-top: 10px;
  color: #3b82f6;
  text-decoration: none;
}

.links a:hover {
  text-decoration: underline;
}

/* CONTATO */
section a {
  display: inline-block;
  margin-right: 15px;
  margin-top: 10px;
  color: #e2e8f0;
  text-decoration: none;
}

section a:hover {
  color: #a78bfa;
}

/* FOOTER */
footer {
  text-align: center;
  padding: 40px;
  color: #64748b;
}
