/* Importação de fontes do Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@400;700&family=Montserrat:wght@400;700&display=swap");

:root {
  --primary-color: #00bcd4; /* Azul ciano */
  --secondary-color: #ff4081; /* Rosa vibrante */
  --dark-bg: #1a1a2e; /* Azul escuro quase preto */
  --light-bg: #22223b; /* Azul mais claro para seções */
  --text-color: #e0e0e0; /* Cinza claro para texto */
  --heading-color: #ffffff; /* Branco para títulos */
  --card-bg: #2c2c4a; /* Fundo de card */
  --border-color: #4a4e69; /* Cor da borda */
}

/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Montserrat", sans-serif;
  background-color: var(--dark-bg);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden; /* Evita scroll horizontal */
}

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

/* Links globais */
a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--secondary-color);
}

/* Botões */
.btn-primary {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--heading-color);
  padding: 12px 25px;
  border-radius: 5px;
  font-weight: bold;
  text-transform: uppercase;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-block;
  background-color: transparent;
  color: var(--primary-color);
  padding: 8px 15px;
  border: 1px solid var(--primary-color);
  border-radius: 5px;
  font-size: 0.9em;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--heading-color);
}

/* Header e Navegação */
header {
  background-color: var(--light-bg);
  padding: 20px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.logo {
  font-family: "Roboto Mono", monospace;
  font-size: 1.8em;
  font-weight: bold;
  color: var(--heading-color);
}

.logo span {
  color: var(--primary-color);
}

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

nav ul li {
  margin-left: 30px;
}

nav ul li a {
  color: var(--text-color);
  font-weight: bold;
  font-size: 1.1em;
  transition: color 0.3s ease, border-bottom 0.3s ease;
  padding-bottom: 5px;
}

nav ul li a:hover {
  color: var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
}

/* Hero Section */
.hero-section {
  display: flex;
  justify-content: center;
  align-items: center;
  height: calc(100vh - 80px); /* Ajuste para a altura do header */
  text-align: center;
  background: linear-gradient(135deg, var(--dark-bg) 0%, var(--light-bg) 100%);
  padding: 20px;
  gap: 50px;
}

.hero-content {
  text-align: left;
  max-width: 600px;
}

.hero-content h1 {
  font-family: "Roboto Mono", monospace;
  font-size: 3.5em;
  color: var(--heading-color);
  margin-bottom: 15px;
}

.hero-content h1 .highlight {
  color: var(--primary-color);
}

.hero-content p {
  font-size: 1.5em;
  color: var(--text-color);
  margin-bottom: 30px;
}

.hero-image img {
  border-radius: 50%;
  width: 350px;
  height: 350px;
  object-fit: cover;
  border: 5px solid var(--primary-color);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
  transition: transform 0.3s ease;
}

.hero-image img:hover {
  transform: scale(1.05);
}

.social-links {
  margin-top: 20px;
  margin-bottom: 30px;
}

.social-links a {
  font-size: 2.5em;
  color: var(--text-color);
  margin: 0 15px;
  transition: color 0.3s ease, transform 0.2s ease;
}

.social-links a:hover {
  color: var(--primary-color);
  transform: translateY(-5px);
}

/* Seções Gerais */
section {
  padding: 80px 0;
  background-color: var(--light-bg);
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

section:nth-of-type(odd) {
  background-color: var(--dark-bg);
}

section h2 {
  font-family: "Roboto Mono", monospace;
  font-size: 2.8em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

section h2::after {
  content: "";
  width: 80px;
  height: 4px;
  background-color: var(--secondary-color);
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

/* About Section */
.about-section p {
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto 20px auto;
  text-align: justify;
}

.about-section p strong {
  color: var(--primary-color);
}

/* Skills Section */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.skill-category {
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-category:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.skill-category h3 {
  font-family: "Roboto Mono", monospace;
  color: var(--secondary-color);
  font-size: 1.8em;
  margin-bottom: 20px;
  text-align: center;
}

.skill-category ul {
  list-style: none;
  padding: 0;
}

.skill-category ul li {
  font-size: 1.1em;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  color: var(--text-color);
}

.skill-category ul li i {
  color: var(--primary-color);
  margin-right: 10px;
  font-size: 1.2em;
}

/* Projects Section */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.project-card {
  background-color: var(--card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid var(--border-color);
}

.project-card h3 {
  font-family: "Roboto Mono", monospace;
  color: var(--primary-color);
  font-size: 1.5em;
  padding: 15px;
}

.project-card p {
  padding: 0 15px 15px;
  font-size: 0.95em;
  color: var(--text-color);
}

.project-links {
  padding: 15px;
  display: flex;
  justify-content: flex-start;
  gap: 10px;
  border-top: 1px solid var(--border-color);
}

/* Contact Section */
.contact-section p {
  text-align: center;
  margin-bottom: 40px;
  font-size: 1.1em;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background-color: var(--card-bg);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: var(--primary-color);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  background-color: var(--dark-bg);
  color: var(--text-color);
  font-size: 1em;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 8px rgba(0, 188, 212, 0.5);
}

.form-group textarea {
  resize: vertical;
}

.contact-form .btn-primary {
  width: 100%;
  padding: 15px;
  font-size: 1.1em;
}

/* Footer */
footer {
  background-color: var(--light-bg);
  color: var(--text-color);
  padding: 30px 0;
  text-align: center;
  border-top: 1px solid var(--border-color);
}

footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

footer p {
  font-size: 0.9em;
}

.footer-social-links a {
  color: var(--text-color);
  font-size: 1.8em;
  margin: 0 10px;
  transition: color 0.3s ease;
}

.footer-social-links a:hover {
  color: var(--primary-color);
}

/* Responsividade */
@media (max-width: 768px) {
  nav {
    flex-direction: column;
    align-items: flex-start;
  }

  nav ul {
    margin-top: 20px;
    flex-direction: column;
    width: 100%;
    text-align: center;
  }

  nav ul li {
    margin: 10px 0;
  }

  .hero-section {
    flex-direction: column-reverse;
    height: auto;
    padding-top: 50px;
    padding-bottom: 50px;
  }

  .hero-content {
    text-align: center;
    margin-top: 30px;
  }

  .hero-content h1 {
    font-size: 2.5em;
  }

  .hero-content p {
    font-size: 1.2em;
  }

  .hero-image img {
    width: 250px;
    height: 250px;
  }

  section h2 {
    font-size: 2em;
  }

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

  .contact-form {
    padding: 25px;
  }

  footer .container {
    flex-direction: column;
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .logo {
    font-size: 1.5em;
  }

  .hero-content h1 {
    font-size: 2em;
  }

  .hero-content p {
    font-size: 1em;
  }

  .social-links a {
    font-size: 2em;
    margin: 0 10px;
  }

  .btn-primary {
    padding: 10px 20px;
    font-size: 0.9em;
  }

  section {
    padding: 50px 0;
  }

  section h2 {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
}
