@import url("https://fonts.googleapis.com/css2?family=Averia+Sans+Libre:wght@400;700&display=swap");

:root {
  --color-purple: #7e65e9;
  --color-platin: #e5e4e2;
  --color-black: #000000;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Averia Sans Libre", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  opacity: 0;
  transition: opacity 1s ease;
  background-color: var(--color-purple);
}

body.loaded {
  opacity: 1;
}

li,
a,
button {
  font-weight: 600;
  font-size: 16px;
  color: var(--color-black);
  text-decoration: none;
  text-transform: uppercase;
}

header {
  position: sticky;
  top: 0;
  z-index: 999;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 30px 10%;
  background-color: var(--color-platin);
  transition: all 0.3s ease;
  border-bottom-left-radius: 25%;
  border-bottom-right-radius: 25%;
}

.logo {
  cursor: pointer;
  color: var(--color-platin);
  margin-right: auto;
}

.nav__links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__links li {
  display: inline-block;
  padding: 0 20px;
}

.nav__links li a {
  position: relative;
  color: var(--color-black);
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav__links li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0%;
  height: 2px;
  background-color: var(--color-purple);
  transition: width 0.3s ease;
}

.nav__links li a:hover {
  color: var(--color-purple);
}

.nav__links li a:hover::after {
  width: 100%;
}

.nav__links li a.active {
  color: var(--color-purple);
}

.nav__links li a.active::after {
  width: 100%;
}

.contact {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 50px;
  border: none;
  margin-left: 20px;
  font-weight: 600;
  font-size: 16px;
  text-transform: uppercase;
  color: var(--color-platin);
  background-color: var(--color-purple);
  cursor: pointer;
  outline: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(126, 101, 233, 0.4);
}

.contact:hover {
  box-shadow: 0 6px 20px rgba(126, 101, 233, 0.6),
    0 0 30px rgba(126, 101, 233, 0.4);
  transform: scale(1.05);
  filter: brightness(90%);
}

.section {
  height: 80vh;
  padding: 80px 10%;
  color: var(--color-platin);
  background-color: var(--color-purple);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.section h2 {
  font-size: 36px;
  margin-bottom: 20px;
}

.section p,
.section ul {
  font-size: 18px;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

.home {
  background-color: var(--color-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 102vh;
  padding: 0 20px;
}

.home__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: 800px;
}

.home__avatar {
  width: 320px;
  height: 320px;
  object-fit: contain;
  border-radius: 50%;
  box-shadow: 0 10px 30px var(--color-platin);
  margin-bottom: 10px;
  transition: transform 0.3s ease;
}

.home__avatar:hover {
  transform: scale(1.05);
}

.home__container h1 {
  font-size: 48px;
  color: var(--color-platin);
}

.highlight {
  color: var(--color-black);
}

.home__container p {
  font-size: 20px;
  color: var(--color-platin);
  line-height: 1.5;
}

.home__button {
  margin-top: 10px;
  display: inline-block;
  padding: 12px 30px;
  border-radius: 50px;
  background-color: var(--color-platin);
  color: var(--color-purple);
  font-weight: bold;
  font-size: 16px;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s ease;
}

.home__button:hover {
  background-color: var(--color-black);
  color: var(--color-platin);
}

.typing {
  font-size: 20px;
  color: var(--color-platin);
  height: 28px;
}

.cursor {
  display: inline-block;
  background-color: var(--color-platin);
  width: 2px;
  animation: blink 0.7s steps(2, start) infinite;
  margin-left: 0;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

.scroll-down {
  font-size: 24px;
  color: var(--color-platin);
  margin-top: 30px;
  animation: bounce 2s infinite;
  text-decoration: none;
  transition: color 0.3s ease;
}

.scroll-down:hover {
  color: var(--color-black);
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(10px);
  }
}

.footer {
  background-color: var(--color-black);
  color: var(--color-platin);
  padding: 20px 10px;
  text-align: center;
  border-top-left-radius: 35%;
  border-top-right-radius: 35%;
}

.footer-content {
  max-width: 800px;
  margin: 0 auto;
}

.footer p {
  margin-bottom: 10px;
  font-size: 14px;
}

.social-icons a {
  color: var(--color-platin);
  margin: 0 10px;
  display: inline-block;
  transition: transform 0.3s ease;
}

.social-icons a:hover {
  transform: scale(1.2);
}

.social-icons img {
  width: 24px;
  height: 24px;
  filter: brightness(100);
}
