/* Váriaveis de cores referente ao tema */
:root {
  --bg-color: #121212;
  --surface-color: #1e1e1e;
  --text-color: #e0e0e0;
  --accent: #8ab4f8;
  --accent-hover: #a6cbff;
  --gradient-stops: #ff4757, #ffc371;
}

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

body {
  font-family: "Segoe UI", Roboto, sans-serif;
  background: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1 {
  margin-bottom: 20px;
}

/* Cabeçalho e menu */
header {
  background: var(--surface-color);
}

.main-nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.main-nav a {
  color: var(--accent);
  text-decoration: none;
  padding: 0.5rem 0.8rem;
  border-radius: 0.3rem;
  transition: background 0.2s;
}

.main-nav a:hover,
.main-nav a:focus {
  background: var(--accent-hover);
  color: #000;
}

.main-nav a.active {
  text-decoration: underline 2px red;
  text-underline-offset: 4px;
}

/* Menu Mobile */
.mobile-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg-color);
  border-top: 1px solid #2a2a2a;
  display: none;
  justify-content: space-around;
  padding: 0.4rem 0;
}

.mobile-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--accent);
  gap: 0.15rem;
}

.mobile-nav svg {
  stroke-width: 1;
  width: 24px;
  height: 24px;
  transition: stroke 0.3s ease;
}

.mobile-nav a.active svg {
  stroke: var(--accent-hover);
}

/* Utilizado para melhorar o seo e a acessibilidade */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Rodapé */
.site-footer {
  background: var(--bg-color);
  border-top: 1px solid #2a2a2a;
  padding: 1rem;
  text-align: center;
  font-size: 0.875rem;
}

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

/* Botão/link para o CV */
.btn-cv-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--accent);
  transition: color 0.2s;
}

.btn-cv-icon:hover,
.btn-cv-icon:focus {
  color: var(--accent-hover);
}

.btn-cv-icon svg {
  transition: transform 0.2s;
}

.btn-cv-icon:hover svg {
  transform: translateX(4px);
}

/* Bloco dos ícones sociais */
.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  border: 2px solid var(--accent);
  color: var(--accent);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.social-links a:hover,
.social-links a:focus {
  background: var(--accent);
  color: #000;
}

.social-links svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: currentColor;
}

/* Responsivo */
@media (max-width: 480px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  .social-links {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  header {
    display: none;
  }

  .mobile-nav {
    display: flex;
  }

  header nav {
    display: none;
  }

  main,
  .content-wrapper {
    margin-bottom: 20px;
  }

  .copyrigth {
    display: none;
  }

  .site-footer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid #2a2a2a;
    border-top: none;
    padding: 0.5rem 1rem;
  }

  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
  }

  .social-links a {
    width: 1.8rem;
    height: 1.8rem;
    border-width: 1px;
  }

  .social-links svg {
    width: 1rem;
    height: 1rem;
  }

  .btn-cv-icon {
    font-size: 0.75rem;
    gap: 0.2rem;
  }

  .btn-cv-icon svg {
    width: 14px;
    height: 14px;
  }
}
