@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap");

:root {
  --primary-color: #0077b5; /* Cor do LinkedIn */
  --secondary-color: #333;
  --background-color: #f4f7f6;
  --text-color: #555;
  --light-text-color: #f9f9f9;
  --card-background: #ffffff;
  --border-color: #ddd;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

h1,
h2,
h3 {
  color: var(--secondary-color);
  margin-bottom: 1rem;
  font-weight: 600;
}

h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--primary-color);
  display: inline-block;
}

p {
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: var(--primary-color);
}

header {
  background-color: var(--card-background);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--box-shadow);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

nav .logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--secondary-color);
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 2rem;
}

nav ul a {
  color: var(--secondary-color);
  font-weight: 400;
  transition: color 0.3s ease;
}

nav ul a:hover {
  color: var(--primary-color);
}

.section {
  padding: 40px 0;
}

.section h2 {
  margin: 0 auto 2rem;
}

#hero {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  padding: 100px 20px;
  background: linear-gradient(135deg, #e0f2f1, #c8e6c9);
  text-align: center;
}

.hero-content {
  flex: 1;
  min-width: 300px;
  text-align: left;
  margin-left: 100px;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.hero-content h2 {
  font-size: 1.5rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
  border: none;
}

.hero-image {
  flex: 1;
  min-width: 250px;
  text-align: center;
}

.hero-image img {
  border-radius: 50%;
  width: 200px;
  height: 200px;
  object-fit: cover;
  border: 5px solid var(--primary-color);
  box-shadow: var(--box-shadow);
}

.social-links img {
  height: 40px;
  margin-right: 10px;
  transition: transform 0.3s ease;
}

.social-links img:hover {
  transform: translateY(-5px);
}

#skills .skill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 20px;
  justify-items: center;
  text-align: center;
}

.skill-item {
  width: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background-color: var(--card-background);
  border-radius: 10px;
  box-shadow: var(--box-shadow);
  transition: transform 0.3s ease;
}

.skill-item:hover {
  transform: translateY(-10px);
}

.skill-item img {
  width: 60px;
  height: 60px;
  margin-bottom: 0.5rem;
}

.skill-item span {
  font-weight: 600;
  color: var(--secondary-color);
}

#projects .project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.project-card {
  background-color: var(--card-background);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: var(--box-shadow);
  transition: transform 0.3s ease;
}

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

.project-card h3 {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.project-description {
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.project-techs span {
  display: inline-block;
  background-color: #e0e0e0;
  color: #555;
  padding: 0.3rem 0.6rem;
  border-radius: 5px;
  font-size: 0.8rem;
  margin-right: 5px;
  margin-bottom: 5px;
}

.project-link {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.6rem 1.2rem;
  background-color: var(--primary-color);
  color: var(--light-text-color);
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.project-link:hover {
  background-color: #005f8e;
}

footer {
  text-align: center;
  padding: 1rem 0;
  background-color: var(--secondary-color);
  color: var(--light-text-color);
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  nav {
    flex-direction: column;
  }

  nav ul {
    margin-top: 1rem;
    justify-content: center;
  }

  nav ul li {
    margin: 0 1rem;
  }

  #hero {
    flex-direction: column-reverse;
    text-align: center;
  }

  .hero-content {
    text-align: center;
  }

  .hero-image {
    margin-bottom: 2rem;
  }
}
