/* global */
:root {
  --primary-color: #7159c1;
  --secondary-color: #f2f2fa;
}

/* Animações */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

* {
  margin: 0;
  padding: 0;

  box-sizing: border-box;
}

::-webkit-scrollbar {
  width: 5px;
  height: 5px;
  transition: 0.3s;
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 10px;
}

::-webkit-scrollbar-track {
  background: #ddd;
  border-radius: 10px;
}

body {
  background: var(--secondary-color);
  font-family: "Roboto";

  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(
    circle,
    rgba(113, 89, 193, 0.25) 1.5px,
    transparent 1.5px
  );
  background-size: 25px 25px;
  z-index: 0;
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  width: 100vw;
  height: 100vh;
  right: -10%;
  transform: translateY(-50%);
  background: url("./assets/github.svg") no-repeat center / contain;
  opacity: 0.3;
  z-index: 0;
  pointer-events: none;
  animation: float 6s ease-in-out infinite;
}

.overlay {
  position: absolute;

  width: 100vw;
  min-height: 100vh;
  padding: 40px 100px;

  background: transparent;
  z-index: 1;
}

/* top container */

header {
  display: flex;
  align-items: center;
  animation: fadeInDown 0.8s ease-out;
}

header h3 {
  padding-left: 10px;
  font-weight: 400;
}

h1 {
  max-width: 500px;
  padding: 70px 0 30px;

  font-size: 2.4rem;
  letter-spacing: 1px;
  animation: fadeInDown 1s ease-out 0.2s backwards;
}

/* form area */

.container {
  max-width: 750px;
  animation: fadeInUp 1s ease-out 0.6s backwards;
}

.input-box {
  display: flex;
  animation: fadeInUp 1s ease-out 0.4s backwards;
}

.input-box input {
  flex: 1;
  height: 60px;
  padding: 0 5px 0 20px;

  border: 0;
  border-radius: 5px 0 0 5px;
  outline-color: var(--primary-color);

  font-size: 1.3rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(113, 89, 193, 0);
}

.input-box input:focus {
  box-shadow: 0 4px 12px rgba(113, 89, 193, 0.3);
  transform: translateY(-2px);
}

.input-box button {
  padding: 0 40px;

  background-color: var(--primary-color);
  outline-color: #7159c1dd;

  color: #fff;
  font-size: 1.2rem;

  border: 0;
  border-radius: 0 5px 5px 0;

  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(113, 89, 193, 0.2);
  position: relative;
  overflow: hidden;
}

.input-box button:hover {
  background-color: #7159c1dd;
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(113, 89, 193, 0.4);
}

.input-box button:active {
  transform: translateY(-1px);
}

.status {
  padding: 10px;
  margin-bottom: 80px;
  height: 10px;

  letter-spacing: 1px;
  color: #7159c1dd;
}

.status span {
  animation: slideInLeft 0.5s ease-out;
  display: inline-block;
}

/* list area */

.repositories-list {
  padding-bottom: 8px;
}

.repositories-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 15px 20px;
  margin-bottom: 8px;

  border-radius: 5px;
  border: 1px solid #fff;

  background: #fff;
  list-style: none;

  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 2px 8px rgba(113, 89, 193, 0.1);
  animation: fadeInUp 0.6s ease-out backwards;
}

.repositories-list li:nth-child(1) {
  animation-delay: 0s;
}

.repositories-list li:nth-child(2) {
  animation-delay: 0.1s;
}

.repositories-list li:nth-child(3) {
  animation-delay: 0.2s;
}

.repositories-list li:nth-child(n + 4) {
  animation-delay: 0.3s;
}

.repositories-list li:hover {
  transform: translateX(8px) scale(1.02);
  border-color: var(--primary-color);
  box-shadow: 0 8px 16px rgba(113, 89, 193, 0.25);
}

.repositories-list li a {
  display: flex;
  align-items: center;

  text-decoration: none;
  color: unset;
  font-size: 1rem;
}

.repositories-list li a img {
  width: 80px;
  border-radius: 50%;
  transition: all 0.4s ease;
  border: 3px solid transparent;
}

.repositories-list li:hover a img {
  border-color: var(--primary-color);
  transform: scale(1.1) rotate(5deg);
}

.repositories-list li a .list-content {
  flex: 1;
  padding-left: 20px;

  text-align: justify;
}

.repositories-list li a .list-content strong {
  display: block;
  padding-bottom: 5px;

  font-size: 1.3rem;
  transition: color 0.3s ease;
}

.repositories-list li:hover a .list-content strong {
  color: var(--primary-color);
}

.repositories-list li i {
  padding: 10px 10px 10px 30px;

  color: rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.3rem;
}

.repositories-list li:hover i {
  color: rgba(0, 0, 0, 0.9);
}

.repositories-list li i:hover {
  color: red;
  transform: scale(1.2) rotate(-10deg);
  animation: pulse 0.6s ease-in-out;
}

/* media queries */

@media (max-width: 1080px) {
  html {
    font-size: 93.75%;
  }
}

@media (max-width: 800px) {
  html {
    font-size: 85.5%;
  }
}

@media (max-width: 630px) {
  .overlay {
    padding: 40px 50px;
  }
  h1 {
    text-align: center;
  }
}

@media (max-width: 525px) {
  html {
    font-size: 82.75%;
  }
  .overlay {
    padding: 20px 30px;
  }
  .input-box input {
    height: 50px;
    width: 100px;
    padding-left: 10px;
  }
  .input-box input::placeholder {
    color: #fff;
  }
  .input-box button {
    padding: 0 20px;
    font-size: 14px;
  }
  .status {
    text-align: center;
  }
  .repositories-list li {
    flex-direction: column;
  }
  .repositories-list li a img {
    display: none;
  }
  .repositories-list li {
    padding: 15px 20px 15px 0;
  }
  .repositories-list li i {
    transform: translateY(8px);
    color: rgba(0, 0, 0, 0.9);
  }
}
