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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background-color: #0f172a;
  color: #e5e7eb;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.header {
  background-color: #020617;
  border-bottom: 1px solid #1e293b;
  position: sticky;
  top: 0;
  z-index: 10;
}

.navbar {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  color: #38bdf8;
  font-size: 1.4rem;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  color: #cbd5e1;
  font-weight: 500;
}

.nav-links a:hover {
  color: #38bdf8;
}

.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem;
  background: linear-gradient(135deg, #020617, #0f172a, #1e293b);
}

.hero-content {
  max-width: 900px;
  text-align: center;
}

.hero h2 {
  font-size: 3rem;
  color: #f8fafc;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1rem;
  color: #cbd5e1;
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.btn {
  padding: 0.8rem 1.4rem;
  border-radius: 8px;
  font-weight: bold;
  transition: 0.3s;
}

.btn.primary {
  background-color: #38bdf8;
  color: #020617;
}

.btn.primary:hover {
  background-color: #0ea5e9;
}

.btn.secondary {
  border: 1px solid #38bdf8;
  color: #38bdf8;
}

.btn.secondary:hover {
  background-color: #082f49;
}

.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.section h2 {
  font-size: 2rem;
  color: #38bdf8;
  margin-bottom: 1.5rem;
}

.section p {
  color: #cbd5e1;
  font-size: 1.05rem;
  text-align: justify;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.project-card {
  background-color: #1e293b;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 1.2rem;
  transition: 0.3s;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: #38bdf8;
}

.project-card h3 {
  color: #f8fafc;
  margin-bottom: 0.8rem;
  min-height: 2.6rem;
  font-size: 1.1rem;
}

.project-card p {
  color: #cbd5e1;
  margin-bottom: 0.8rem;
  flex: 1;
  min-height: 4.2rem;
  font-size: 0.95rem;
}

.project-card a {
  color: #38bdf8;
  font-weight: bold;
  margin-top: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 2.5rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  margin: 0.8rem 0;
  min-height: 2.3rem;
}

.tags span {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background-color: #0f172a;
  color: #93c5fd;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  list-style: none;
}

.skills-list li {
  background-color: #1e293b;
  border: 1px solid #334155;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  color: #e5e7eb;
}

.contact-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.contact-links a {
  color: #38bdf8;
  font-weight: bold;
}

.footer {
  text-align: center;
  padding: 2rem;
  background-color: #020617;
  border-top: 1px solid #1e293b;
  color: #94a3b8;
}

/* Responsividade */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero h2 {
    font-size: 2.2rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .hero-buttons {
    flex-direction: column;
  }
}