* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Outfit', sans-serif;
  background: #f9f9f9;
  color: #222;
  line-height: 1.6;
}

header {
  background: linear-gradient(to right, #2f80ed, #56ccf2);
  color: white;
  text-align: center;
  padding: 2rem 1rem;
}

header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

header .material-icons {
  font-size: 28px;
  vertical-align: middle;
}

header .social {
  margin-top: 1rem;
}

header .social a {
  color: white;
  margin: 0 10px;
  font-size: 26px;
  transition: transform 0.3s;
}

header .social a:hover {
  transform: scale(1.2);
}

.portfolio {
  max-width: 1000px;
  margin: auto;
  padding: 2rem 1rem;
  text-align: center;
}

.portfolio h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.card:hover {
  transform: translateY(-5px);
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.card span {
  display: block;
  padding: 1rem;
  font-weight: 600;
}

footer {
  text-align: center;
  padding: 1rem;
  background: #eee;
  font-size: 0.9rem;
}


.typewriter {
  overflow: hidden;
  border-right: 3px solid white;  /* o cursor */
  white-space: nowrap;
  margin: 0 auto;
  letter-spacing: 2px;
  width: 0;
  animation:
    typing 3s steps(40, end) forwards,
    blink 0.75s step-end 4,  /* pisca só algumas vezes */
    hide-cursor 0s 3s forwards; /* some após 3s */
}

/* Digitação */
@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

/* Cursor piscando */
@keyframes blink {
  50% { border-color: transparent; }
}

/* Some o cursor após digitar */
@keyframes hide-cursor {
  to { border-right: none; }
}
