@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

html {
  scroll-behavior: smooth;
}

:root[data-theme="light"] {
  --bottom: #f5f5f5;
  --main-text: #1a1a1a;
  --highlight-color: #4f46e5;
  --hovers: #6366f1;
  --inset-shadow: #0000003e;
  --text-color-projects: #f4f4f4;
}

:root[data-theme="dark"] {
  --bottom: #1e1e2e;
  --main-text: #d1d5db;
  --highlight-color: #6366f1;
  --hovers: #818cf8;
  --inset-shadow: #bbbbbb87;
  --text-color-projects: #dce0e7;
}
header {
  width: 100%;
  height: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
  background-color: var(--bottom);
  box-shadow: 0 0 12px var(--inset-shadow);
}

header .desktop__nav {
  height: 100%;
  width: 100%;
  padding: 0 20px;
  max-width: 1280px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

header .desktop__nav h1 a {
  font-family: "Poppins", sans-serif;
  font-weight: 900;
  text-decoration: none;
  color: var(--highlight-color);
  font-weight: bold;
  font-size: 2rem;
}

header .desktop__nav ul {
  display: flex;
  gap: 1.3rem;
}

header .desktop__nav ul li {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

header .desktop__nav ul li a {
  font-family: "Poppins", sans-serif;
  font-weight: bold;
  text-decoration: none;
  color: var(--main-text);
  padding: 0.8rem;
  border-radius: 1.3rem;
  transition: 0.3s;
}

.desktop__nav .contact__header {
  position: relative;
  border-radius: 1rem;
}

.desktop__nav .contact__header a {
  position: relative;
  overflow: hidden;
  border: 0.2rem solid var(--highlight-color);
  color: var(--highlight-color);
  font-weight: bold;
  transition: all 0.2s;
}
.bg__animation {
  position: absolute;
  background-color: var(--highlight-color);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 6rem;
  height: 6rem;
  z-index: -1;
  transition: transform 0.3s ease-in-out;
}

.desktop__nav .contact__header a:hover {
  color: var(--bottom);
}

.desktop__nav .contact__header a:hover .bg__animation {
  border-radius: 1rem;
  transform: translate(-50%, -50%) scale(1);
}

header .desktop__nav ul li:not(.contact__header) a:hover {
  color: var(--bottom);
  background-color: var(--hovers);
}

header .mobile__nav {
  display: none;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 1.5rem;
}

header .mobile__nav h1 a {
  font-family: "Poppins", sans-serif;
  font-weight: 900;
  text-decoration: none;
  color: var(--bottom);
  background-color: var(--highlight-color);
  font-weight: bold;
  font-size: 1.2em;
  border-radius: 0.4rem;
  width: 3rem;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile__menu {
  font-size: 2rem;
  cursor: pointer;
  color: var(--highlight-color);
  border: 0;
  background-color: transparent;
}

.mobile__list {
  position: absolute;
  top: 5rem;
  left: 0;
  width: 100%;
  padding: 1.3rem;
  background-color: var(--bottom);
  box-shadow: 0 0 0.8rem var(--inset-shadow);
  display: flex;
  flex-direction: column;
  transform: scaleY(0);
  transform-origin: top;
  gap: 1.3rem;
  transition: all 0.3s ease-in-out;
}

.show__list {
  transform: scaleY(1);
}

.mobile__list li {
  list-style: none;
}

.mobile__list li a {
  font-family: "Poppins", sans-serif;
  font-weight: bold;
  width: 100%;
  display: flex;
  text-decoration: none;
  color: var(--main-text);
  padding: 0.4rem;
  border-radius: 1rem;
  transition: 0.3s;
}
.mobile__list .contact__header {
  color: var(--main-text);
  border-radius: solid 2px var(--highlight-color);
}

.mobile__list li a:hover {
  background-color: var(--hovers);
  color: var(--bottom);
}

#home,
#projects,
#skills,
#contact {
  min-height: 100dvh;
}

.observer__animation {
  opacity: 0;
  transform: translateX(-90%);
  transition: opacity 0.7s ease-in-out, transform 0.7s ease-in-out;
}

.show {
  opacity: 1;
  transform: translateX(0);
}

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

  header .mobile__nav {
    display: flex;
  }
}
