@charset "UTF-8";

@font-face {
  font-family: "Overlock";
  src: url(../fonts/Overlock/Overlock-Regular.ttf) format("truetype");
}
@font-face {
  font-family: "Caveat";
  src: url(../fonts/Caveat/Caveat.ttf) format("truetype");
}
@font-face {
  font-family: "MedievalSharp";
  src: url(../fonts/MedievalSharp/MedievalSharp-Regular.ttf) format("truetype");
}
@font-face {
  font-family: "Audiowide";
  src: url(../fonts/Audiowide/Audiowide-Regular.ttf) format("truetype");
}

:root {
  --primary-bg: #121212;
  --secondary-bg: #1e1e1e;
  --text-primary: #ffffff;
  --text-secondary: #b3b3b3;
  --accent: #7c4dff;
  --hover-accent: #9670ff;
  --card-bg: #252525;
  --transition: all 0.3s ease;
  --font0: "Overlock", sans-serif;
  --font1: "Caveat", sans-serif;
  --font2: "Audiowide", sans-serif;
  --font3: "MedievalSharp", sans-serif;
  --shadow: 0 0 15px var(--hover-accent);
}

* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--primary-bg);
  color: var(--text-primary);
  font-family: var(--font0);
  font-size: 1em;
  line-height: 1.5;
}

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

a:hover {
  text-decoration: underline;
}

.icon {
  width: 24px;
  height: auto;
  margin: 1rem;
  color: var(--text-primary);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 10px;
  text-align: center;
}

h1 {
  font-family: var(--font1);
  font-size: 5em;
}

h2 {
  font-family: var(--font2);
  font-size: 2em;
}

h3 {
  font-family: var(--font3);
  font-size: 1.5em;
}

/* Header  */
header {
  background-color: var(--secondary-bg);
  padding: 1rem;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

/*Nav*/
nav {
  width: 45%;
  margin: auto;
  align-items: center;
}

nav h1 {
  margin: 10px;
  font-size: 1em;
}

.perfil {
  display: flex;
  text-decoration: none;
  color: var(--text-primary);
}

.perfil:hover {
  text-decoration: underline;
}

.photo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

.nav-links {
  display: none; /* Menu oculto por padrão */
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--secondary-bg);
  border-top: 1px solid var(--accent);
  text-align: center;
  padding: 1rem;
}

.nav-links a {
  padding: 0.5rem;
}

.nav-links a {
  position: relative;
  padding: 0.5rem;
}

.nav-links a:hover {
  text-decoration: none;
}

.nav-links a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--accent);
  transition: var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

menu {
  display: flex;
  padding-right: 50px;
  width: 45%;
  flex: auto;
  justify-content: end;
}

menu button {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
}

/* Conteúdo */
main {
  margin: 50px;
}

section {
  display: grid;
  place-items: center;
  text-align: center;
  width: 100%;
  min-height: 75vh;
}

.portfolio {
  padding: 4rem 0;
}

.container-portfolio {
  display: flex;
  flex-direction: column;
}

.card {
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  align-items: center;
  text-align: justify;
  border-radius: 10px;
  padding: 1.5rem;
  margin: 10px auto;
  text-decoration: none;
  background: var(--card-bg);
  color: var(--text-primary);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.card-portfolio {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: auto;
  height: auto;
  margin: 25px;
}

.container-technologies {
  display: flex;
  flex-flow: column wrap;
}

.techFrame {
  width: 100%;
  height: auto;
  margin: 25px;
}

.tech-container {
  display: flex;
  flex-flow: row wrap;
  justify-content: space-between;
}

.tech-cards {
  display: auto;
  flex-direction: column;
  text-align: center;
  width: 125px;
  height: 125px;
}

.tech-cards p {
  text-align: center;
}

.img-card {
  width: 100%;
  height: 200px;
}

.img-card img,
.img-card source {
  width: 100%;
  height: 100%;
  border-radius: 8px;
}

.button {
  width: 100%;
  text-align: center;
}

.button a,
.button button {
  border-radius: 10px;
  margin: 10px;
  padding: 15px;
  background-color: var(--secondary-bg);
  color: var(--text-primary);
  text-decoration: none;
}

.button a:hover,
.button button:hover {
  box-shadow: var(--shadow);
  text-decoration: underline;
}

.button-link {
  margin-top: 25px;
  display: flex;
  justify-content: center;
}

.container-about-me {
  display: flex;
  flex-direction: column;
}

.person {
  margin: 25px;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  transition: var(--transition);
}

.person:hover {
  box-shadow: var(--shadow);
}

.text {
  text-align: justify;
}

.container-contact {
  display: flex;
  flex-wrap: wrap;
  max-height: 75vh;
}

.contact-options {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  width: 90%;
  height: auto;
  margin: 50px auto;
}

.contact-card {
  display: flex;
  flex-flow: column nowrap;
  align-items: center;
  flex: 1;
  min-width: 250px;
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  background-color: var(--secondary-bg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.contact-card:hover {
  color: var(--text-color);
  background-color: var(--background-color);
  transform: translateY(-5px);
}

.contact-card h3 {
  margin-bottom: 0.5rem;
}

.contact-card a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-card a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

main .icon {
  padding: 10px;
  border-radius: 50%;
}

main .icon:hover {
  border: 1px solid var(--accent);
  box-shadow: 0 0 15px var(--accent);
}

#menu-button {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
}

#accessibility {
  display: flex;
  flex-direction: row-reverse;
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

#accessibility button {
  margin: 10px;
  border: none;
  border-radius: 10px;
  background: var(--secondary-bg);
  transition: var(--transition);
}

#accessibility button:hover {
  box-shadow: var(--shadow);
}

#accessibility button:active {
  background-color: var(--primary-bg);
}

#accessibility button .icon {
  width: 24px;
}

#accessibility-button {
  border-radius: 10px 0 0 10px;
}

#accessibility-menu {
  display: none;
  flex-flow: column wrap;
}
