@charset "UTF-8";

@font-face {
  font-family: "Caveat";
  src: url(../fonts/Caveat/Caveat.ttf) format("truetype");
}
@font-face {
  font-family: "Knewave";
  src: url(../fonts/Knewave/Knewave.ttf) format("truetype");
}
@font-face {
  font-family: "Henny Penny";
  src: url(../fonts/Henny_Penny/HennyPenny.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;
  --font1: "Caveat", sans-serif;
  --font2: Arial, Helvetica, sans-serif;
  --font3: "Knewave", system-ui;
  --font4: "Henny Penny", system-ui;
  --shadow: 0 0 25px rgba(124, 77, 255, 0.2);
}

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

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

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

a:hover {
  text-decoration: underline;
}

.icon {
  width: 24px;
  height: 24px;
}

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;
  font-family: var(--font3);
  font-weight: normal;
}

.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;
  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 {
  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;
  font-family: var(--font2);
}

main .icon {
  width: 48px;
  height: 48px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 10px;
}

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

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

h3 {
  font-size: 1.5em;
}

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 {
  background: var(--card-bg);
  border-radius: 10px;
  padding: 1.5rem;
  margin: 10px auto;
  transition: var(--transition);
  cursor: pointer;
  text-align: justify;
  text-decoration: none;
  color: var(--text-primary);
}

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

.card-portfolio {
  width: 100%;
  height: auto;
  margin: 25px;
}

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

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

.tech-container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}

.tech-cards {
  text-align: center;
  width: 125px;
  height: 125px;
}

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

.img-card {
  width: 100%;
  height: auto;
  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 {
  width: 100%;
  height: 100%;
  border-radius: 50px;
  margin: 10px;
}

.text {
  text-align: justify;
}

.container-participation {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: auto;
}

footer section {
  text-align: center;
  padding: 50px;
  margin: 0;
  min-height: auto;
}

footer h2 {
  margin: 50px;
}

footer a:hover {
  text-decoration: none;
}

footer .container {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: space-evenly;
  width: 100%;
}

footer .icon {
  width: 48px;
  height: 48px;
}

.container-contact {
  display: flex;
  flex-wrap: wrap;
}

footer iframe.contactFrame {
  width: 100%;
  height: 75vh;
  margin: 25px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

@media (min-width: 990px) {
  body {
    font-size: 1.15em;
  }

  section {
    padding: 50px;
  }

  main {
    margin: 100px;
  }

  #menu-button {
    display: none;
  }

  nav h1 {
    font-size: 1.5em;
  }

  .nav-links {
    display: flex;
    position: static;
    background: none;
    border: none;
    padding: 0;
    flex-direction: row;
  }

  main .container {
    overflow: auto;
  }

  .container-portfolio {
    width: 95%;
    flex-direction: row;
    justify-content: space-around;
  }

  .card-portfolio {
    min-width: 500px;
    max-width: 750px;
  }

  .container-technologies {
    flex: auto;
    flex-direction: row;
    justify-content: space-between;
  }

  .techFrame {
    width: 45%;
  }

  .tech-container {
    width: 45%;
  }

  .tech-cards {
    margin: 10px auto;
    padding: 25px;
  }

  menu button {
    display: none;
  }

  .container-about-me {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .person {
    width: 20%;
    margin: 25px;
  }

  .text {
    width: 60%;
    margin: 25px;
  }

  .container-participation {
    flex-direction: row;
    justify-content: space-around;
  }

  .card-participation {
    min-width: 400px;
  }
}
