/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "JetBrains Mono", monospace;
  border-radius: 5px;
}

body {
  background: #210D3B;
  color: #DBCAFF;
  overflow-x: hidden;
}

/* ===== BACKGROUND ===== */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(157,90,246,0.25), transparent 40%),
    radial-gradient(circle at 80% 30%, rgba(99,102,241,0.2), transparent 45%);
  filter: blur(40px);
  z-index: -1;
}

/* ===== TERMINAL ===== */
.hero {
  padding: 100px 20px;
  display: flex;
  justify-content: center;
}

.terminal {
  background: rgba(15, 21, 53, 0.6);
  border: 2px solid #4C1D95;
  padding: 25px;
  width: min(700px, 90%);
  backdrop-filter: blur(12px);
  box-shadow: 0 0 30px rgba(157,90,246,0.2);
  position: relative;
  animation: float 6s infinite ease-in-out;
}

/* scanline */
.terminal::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    transparent,
    rgba(255,255,255,0.03),
    transparent
  );
  animation: scan 5s linear infinite;
}

.prompt {
  color: #9D5AF6;
}

.output {
  color: #FFB300;
}

/* ===== SEÇÕES ===== */
.section {
  max-width: 900px;
  margin: auto;
  padding: 50px 20px;
  animation: fadeUp 0.8s ease both;
}

.section h2 {
  color: #9D5AF6;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-bottom: 2px solid #4C1D95;
  padding-bottom: 10px;
}

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

.card {
  background: rgba(15, 21, 53, 0.7);
  border: 2px solid #4C1D95;
  padding: 20px;
  position: relative;
  transition: 0.3s;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow:
    0 0 25px rgba(157,90,246,0.3),
    0 0 60px rgba(99,102,241,0.2);
}

/* efeito neon passando */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(157,90,246,0.5),
    transparent
  );
  transform: translateX(-120%);
}

.card:hover::before {
  animation: shine 1s;
}

.card h3 {
  margin-bottom: 10px;
}

.card a {
  color: #FFB300;
  text-decoration: none;
}

/* ===== SKILLS ===== */
.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skills span {
  border: 1px solid #4C1D95;
  padding: 8px 12px;
  background: rgba(99,102,241,0.15);
  transition: 0.3s;
}

.skills span:hover {
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(157,90,246,0.3);
}

/* ===== CONTATO ===== */
footer {
    padding: 20px;
}

footer h2 {
  text-align: center;
  color: #9D5AF6;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-top: 2px solid #4C1D95;
  padding-top: 10px;
}

.social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

.social-icons a {
    width: 45px;
    height: 45px;
    border: 2px solid #4C1D95;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9D5AF6;
    font-size: 1.2rem;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.social-icons a:hover {
    color: #DBCAFF;
    transform: translateY(-5px) scale(1.1);
    box-shadow:
        0 0 15px rgba(157,90,246,0.5),
        0 0 30px rgba(99,102,241,0.3);
    border-color: #9D5AF6;
}

/* efeito neon passando */
.social-icons a::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(157,90,246,0.5),
        transparent
    );
    transform: translateX(-120%);
}

.social-icons a:hover::before {
    animation: shine 0.8s;
}

/* ===== ANIMAÇÕES ===== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes scan {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

@keyframes shine {
  to { transform: translateX(120%); }
}