*, *::before, *::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  font-size: 16px;
}

body,
button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  font-size: 100%;
  line-height: 1.5;
  color: inherit;
}

button,
input,
optgroup,
select,
textarea {
  appearance: none;
  background: none;
  border: none;
  cursor: inherit;
  outline: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

ul,
ol {
  list-style: none;
}

:focus {
  outline: 2px solid #4a5a7b; /* Novo destaque neutro */
  outline-offset: 2px;
}

body {
  overflow-x: hidden;
  font-family: 'Poppins', sans-serif;
  line-height: 1.7;
  color: #f5f5f5;
  background: linear-gradient(135deg, #121212 0%, #1d1d1d 100%); /* Novo fundo neutro */
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3, h4 {
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, #f5f5f5 0%, #bdbdbd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  -text-fill-color: transparent;
  text-shadow: 0 2px 8px rgba(0,0,0,0.18);
}


 .highlight {
  background: linear-gradient(90deg, #4a5a7b 0%, #3a4a6b 100%); /* Novo gradiente neutro */
  -webkit-background-clip: text;
  -moz-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  -moz-text-fill-color: transparent;
}

p {
  color: #cccccc;
  text-shadow: 0 1px 6px rgba(0,0,0,0.10);
}

a {
  text-decoration: none;
  color: inherit;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(90deg, #4a5a7b 0%, #3a4a6b 100%); /* Novo gradiente */
  color: white;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 25px rgba(74, 90, 123, 0.3); /* Mesmo tom do gradiente */
}

.btn-outline {
  background: transparent;
  border: 2px solid #4a5a7b; /* Cor neutra */
  color: #4a5a7b;
}

.btn-outline:hover {
  background: #4a5a7b;
  color: white;
}

.btn-small {
  padding: 8px 16px;
  font-size: 0.9rem;
  margin-top: 1rem;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 0;
  background: rgba(255, 255, 255, 0.03); /* Transparência sutil sobre fundo escuro */
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
}

.navbar.scrolled {
  padding: 1rem 0;
}

.container {
  justify-content: space-between;
  align-items: center;
}

.logo {
  background: linear-gradient(90deg, #376bd4 0%,  #556c8f  100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: unset;
  text-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

.nav-menu ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-menu a {
  font-weight: 500;
  position: relative;
  padding: 5px 0;
  color: #f5f5f5;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #4a5a7b, #3a4a6b); /* Gradiente neutro */
  transition: width 0.3s ease;
}

.nav-menu a:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #f5f5f5; /* Branco para contraste no fundo escuro */
  margin: 3px 0;
  transition: 0.3s;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 0;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #1d1d1d 0%, #121212 100%);
  color: #f5f5f5;
}

.hero-content {
  flex: 1;
  z-index: 10;
  animation: fadeInUp 1s ease-out;
}

.hero-content h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.btn-group {
  display: flex;
  gap: 1rem;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: float 6s ease-in-out infinite;
}

.hero-image img {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  object-fit: cover;
  border: 6px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.projects {
  padding: 6rem 0;
  background: linear-gradient(135deg, #1d1d1d 0%, #121212 100%);
  color: #f5f5f5;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 4rem;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #f5f5f5 0%, #bdbdbd 100%); /* Gradiente neutro */
  border-radius: 2px;
}

.section-title, .about h2, .projects h2, .contact h2 {
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.project-card {
  background: #1e1e1e; /* Fundo de cartão neutro */
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.project-img img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.project-card h3 {
  padding: 1.5rem;
  font-size: 1.5rem;
}

.project-card p {
  padding: 0 1.5rem 1.5rem;
  color: #aaa; /* Texto ligeiramente mais claro */
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0 1.5rem 1rem;
}

.tech-tags span {
  background: #2d2d2d;
  color: #a0b0d0;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid #3a4a6b;
}

.about {
  padding: 6rem 0;
  background: linear-gradient(135deg, #121212 0%, #1d1d1d 100%);
  color: #f5f5f5;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image img {
  width: 100%;
  border-radius: 15px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  animation: fadeInRight 1s ease-out;
}

.skills h4 {
  font-size: 1.5rem;
  margin: 2rem 0 1.5rem;
  color: #ddd;
}

.skill-bar {
  margin-bottom: 1.5rem;
}

.skill-bar span {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #ddd;
}

.progress {
  height: 8px;
  background: #333;
  border-radius: 4px;
  overflow: hidden;
}

.bar {
  height: 100%;
  background: linear-gradient(90deg, #4a5a7b, #3a4a6b);
  border-radius: 4px;
  animation: progressBar 1.5s ease-out forwards;
}

.contact {
  padding: 6rem 0;
  background: linear-gradient(135deg, #1d1d1d 0%, #121212 100%);
  text-align: center;
  color: #f5f5f5;
}

.contact .section-title {
  margin-bottom: 1rem;
  color: #f5f5f5;
}

.contact p {
  font-size: 1.2rem;
  color: #cccccc;
  margin-bottom: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.contact-methods {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.5rem 1.8rem;
  border-radius: 18px;
  background: rgba(40, 40, 40, 0.85);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
  transition: all 0.3s ease;
  text-decoration: none;
  color: #f5f5f5;
  width: 120px;
  height: 120px;
  justify-content: center;
  font-weight: 500;
  font-size: 0.95rem;
  border: 1px solid #3a4a6b;
}

.contact-item i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  transition: transform 0.3s ease;
}

.contact-item:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.32);
  background: rgba(60, 60, 60, 0.95);
}

.contact-item.whatsapp i {
  color: #25D366;
}

.contact-item.github i,
.contact-item.email i {
  color: #f5f5f5;
}

.contact-icons {
  display: flex;
  justify-content: center;
  gap: 2rem;
  font-size: 2rem;
}

.icon-link {
  color: #4a5a7b;
  transition: color 0.3s ease, transform 0.3s ease;
}

.icon-link:hover {
  color: #3a4a6b;
  transform: translateY(-5px);
}

footer {
  text-align: center;
  padding: 2rem 0;
  background: linear-gradient(90deg, #121212 0%, #1d1d1d 100%);
  color: #f5f5f5;
  font-size: 0.9rem;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

@keyframes progressBar {
  from { width: 0; }
}

@media (max-width: 992px) {
  .hero-content, .hero-image {
    flex: 1;
  }
  .hero-content h2 {
    font-size: 2.5rem;
  }
  .about-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .about-image {
    order: -1;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }
  .hero-content h2 {
    font-size: 2rem;
  }
  .hero-content p {
    font-size: 1.1rem;
  }
  .nav-menu {
    position: fixed;
    top: 80px; /* Mantém o menu abaixo do header */
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: rgba(20, 20, 20, 0.95);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* Alinha o menu logo abaixo do hambúrguer */
    transition: 0.5s;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    padding-top: 30px; /* Espaço extra abaixo do hambúrguer */
    z-index: 1099;
  }
  .nav-menu.active {
    left: 0;
  }
  .nav-menu ul {
    flex-direction: column;
    gap: 2rem;
    width: 100%;
    align-items: center;
  }
  .hamburger {
    display: flex;
    z-index: 1100;
    position: relative;
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }
  .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 576px) {
  .hero-content h2 {
    font-size: 1.8rem;
  }
  .btn-group {
    flex-direction: column;
    gap: 1rem;
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }
}
