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

/* BODY */
body {
  font-family: 'Montserrat', sans-serif;
  background: #050816;
  color: #f8fafc;
  text-align: center;
  overflow-x: hidden;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* HEADER */
header {
  background: transparent;
  position: absolute;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  padding: 20px 50px;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* FOTO */
.profile-pic {
  width: 95px;
  height: 95px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #00e5b0;
  background-color: #111827;
  box-shadow:
    0 0 25px rgba(0, 229, 176, 0.25),
    0 0 60px rgba(0, 229, 176, 0.1);
  transition: 0.4s ease;
}

.profile-pic:hover,
.profile-pic:active {
  transform: scale(1.03);
}

/* LOGO */
.logo-text {
  font-size: 2.3rem;
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: 2px;
}

.logo-text span {
  color: #00e5b0;
  text-shadow: 0 0 20px rgba(0, 229, 176, 0.4);
}

/* SECTIONS */
section {
  padding: 100px 20px;
}

/* HOME */
#home {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(0,229,176,0.12), transparent 25%),
    radial-gradient(circle at bottom right, rgba(0,229,176,0.08), transparent 25%),
    linear-gradient(135deg, #050816, #0b1120);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* TITULO */
#typing {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 800;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  border-right: 3px solid #00e5b0;
  width: 0;
  animation:
    typing 2.5s steps(30, end) forwards,
    blink 0.7s step-end infinite;
}

/* SUBTITULO */
#home p {
  margin-top: 20px;
  font-size: 1.3rem;
  color: #94a3b8;
}

/* ANIMAÇÕES */
@keyframes typing {
  from {
    width: 0;
  }

  to {
    width: 23ch;
  }
}

@keyframes blink {
  50% {
    border-color: transparent;
  }
}

/* BOTÃO HOME */
.btn-home {
  margin-top: 35px;
  background: #00e5b0;
  color: #050816;
  border: none;
  padding: 15px 32px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.3s ease;
  box-shadow: 0 0 20px rgba(0,229,176,0.2);
}

.btn-home:hover,
.btn-home:active {
  background: #00c896;
  transform: translateY(-4px);
  box-shadow: 0 0 30px rgba(0,229,176,0.35);
}

/* ABOUT */
#about {
  background: #0b1120;
  border-top: 1px solid #111827;
}

#about h2 {
  font-size: 2.8rem;
  margin-bottom: 30px;
}

#about p {
  max-width: 900px;
  margin: 0 auto 30px;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #94a3b8;
}

#about h3 {
  margin-top: 50px;
  margin-bottom: 30px;
  color: #00e5b0;
  font-size: 2rem;
}

/* TIMELINE */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 25px;
  max-width: 900px;
  margin: auto;
  text-align: left;
}

/* EVENT */
.event {
  position: relative;
  background: #111827;
  padding: 25px;
  border-radius: 16px;
  border: 1px solid #1f2937;
  color: #e2e8f0;
  line-height: 1.7;
  cursor: pointer;
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
  will-change: transform;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  touch-action: manipulation;
}

.event:hover,
.event:active {
  transform: translateY(-6px) scale(1.01);
  border-color: #00e5b0;
  box-shadow:
    0 0 30px rgba(0,229,176,0.12),
    0 0 10px rgba(0,229,176,0.2);
}

.event[data-year]::before {
  content: attr(data-year);
  position: absolute;
  top: -14px;
  left: 20px;
  background: #00e5b0;
  color: #050816;
  font-weight: bold;
  padding: 6px 12px;
  border-radius: 30px;
  font-size: 0.9rem;
}

/* PROJECTS */
#projects {
  background: #050816;
}

#projects h2 {
  font-size: 2.8rem;
  margin-bottom: 30px;
}

/* FILTROS */
.projects-filter {
  margin-bottom: 40px;
}

.btn-projects-filter {
  padding: 12px 24px;
  border-radius: 10px;
  border: 1px solid #1f2937;
  background: #111827;
  color: #f8fafc;
  font-weight: 600;
  cursor: pointer;
  margin: 5px;
  transition: 0.3s ease;
}

.btn-projects-filter:hover,
.btn-projects-filter:active {
  background: #00e5b0;
  color: #050816;
  transform: translateY(-3px);
  box-shadow: 0 0 20px rgba(0,229,176,0.2);
}

/* GRID PROJETOS */
.portfolio-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 15px;
}

/* CARD PROJETO */
.project-card {
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  background: #111827;
  border-radius: 18px;
  padding: 20px;
  border: 1px solid #1f2937;
  overflow: hidden;
  position: relative;
  cursor: pointer;

  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;

  will-change: transform;

  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  touch-action: manipulation;
}

.project-card:hover,
.project-card:active {
  transform: translateY(-8px) scale(1.01);
  border-color: #00e5b0;
  box-shadow:
    0 0 30px rgba(0,229,176,0.12),
    0 0 10px rgba(0,229,176,0.2);
}

.project-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

.project-card h3 {
  margin-top: 20px;
  color: #00e5b0;
  font-size: 1.4rem;
  line-height: 1.3;
}

.project-card p {
  margin-top: 10px;
  color: #94a3b8;
  line-height: 1.7;
  word-break: break-word;
  overflow-wrap: break-word;
}

.project-card a {
  display: inline-block;
  margin-top: 20px;
  background: #00e5b0;
  color: #050816;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: bold;
  transition: 0.3s ease;
}

.project-card a:hover,
.project-card a:active {
  background: #00c896;
  box-shadow: 0 0 20px rgba(0,229,176,0.2);
}

/* CONTACT */
#contact {
  background: #0b1120;
  border-top: 1px solid #111827;
}

#contact h2 {
  font-size: 2.8rem;
  margin-bottom: 20px;
}

#contact p {
  color: #94a3b8;
  margin-bottom: 40px;
}

/* FORM */
.contact-container form {
  max-width: 650px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-container input,
.contact-container textarea {
  width: 100%;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid #1f2937;
  background: #111827;
  color: #f8fafc;
  font-size: 1rem;
  outline: none;
  transition: 0.3s ease;
}

.contact-container input:focus,
.contact-container textarea:focus {
  border-color: #00e5b0;
  box-shadow: 0 0 10px rgba(0,229,176,0.2);
}

.contact-container textarea {
  resize: none;
  min-height: 160px;
}

/* BOTÃO FORM */
.contact-container button {
  background: linear-gradient(135deg, #00e5b0, #00c896);
  color: #050816;
  border: none;
  padding: 16px;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s ease;
  box-shadow: 0 0 25px rgba(0,229,176,0.15);
}

.contact-container button:hover,
.contact-container button:active {
  transform: translateY(-4px);
  box-shadow: 0 0 30px rgba(0,229,176,0.35);
}

/* FOOTER */
.footer {
  background: #020617;
  padding: 50px 20px 20px;
  border-top: 1px solid #111827;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: auto;
}

.footer-section {
  flex: 1;
  min-width: 250px;
}

.footer-section h4 {
  color: #00e5b0;
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.footer-section p,
.footer-section a {
  color: #94a3b8;
  text-decoration: none;
  line-height: 1.8;
  transition: 0.3s ease;
}

.footer-section a:hover,
.footer-section a:active {
  color: #00e5b0;
}

.footer-rights {
  margin-top: 40px;
  color: #64748b;
  font-size: 0.9rem;
}

/* BOTÃO TOPO */
.btn-top {
  position: fixed;
  right: 30px;
  bottom: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  background: #00e5b0;
  color: #050816;
  font-size: 1.3rem;
  cursor: pointer;
  display: none;
  justify-content: center;
  align-items: center;
  box-shadow: 0 10px 20px rgba(0,229,176,0.2);
  transition: 0.3s ease;
  z-index: 999;
}

.btn-top:hover,
.btn-top:active {
  transform: translateY(-5px);
  background: #00c896;
}

/* FIX IOS */
.project-card,
.event {
  -webkit-tap-highlight-color: transparent;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* RESPONSIVO */
@media (max-width: 768px) {
  header {
    padding: 20px;
  }

  .logo-container {
    flex-direction: column;
    gap: 10px;
  }

  .profile-pic {
    width: 90px;
    height: 90px;
  }

  .logo-text {
    font-size: 1.8rem;
  }

  #typing {
    white-space: normal;
    border-right: none;
    width: 100%;
    animation: none;
  }

  section {
    padding: 80px 20px;
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
  }

  .project-card {
    max-width: 100%;
  }

  .btn-top {
    right: 15px;
    bottom: 90px;
  }
}