/* Imports */

@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&display=swap");

/* Variables and dark/light mode control */

:root {
  --main-bg-color: #02111b;
  --main-emphasis-color: #fe9000;
  --main-text-color: #fbf5f3;
  --main-box-color: #3c1281;
  --secondary-box-color: #2a1749;
  --thirdly-box-color: #230c46;
}
body {
  background-image: url(../img/background0night.gif),
    url(../img/background1night.png);
  background-repeat: no-repeat, repeat;
}

@media (prefers-color-scheme: light) {
  :root {
    --main-bg-color: #fbf5f3;
    --main-text-color: #02111b;
    --main-emphasis-color: #7b16be;
    --main-box-color: #e65864;
    --secondary-box-color: #a15259;
    --thirdly-box-color: #685355;
  }

  body {
    background-image: url(../img/background0day.gif),
      url(../img/background1day.png);
    background-repeat: no-repeat, repeat;
  }
}

/* Main CSS*/

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "JetBrains Mono", monospace;

  /*Hide scrollbar*/
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */

  scroll-behavior: smooth;
}
/* Hide scrollbar for Chrome, Safari and Opera */
*::-webkit-scrollbar {
  display: none;
}

body {
  color: var(--main-text-color);
  background-size: contain;
}

header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  padding: 20px 10%;
  background-color: var(--main-box-color);

  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;

  z-index: 1000;
  animation: fade-from-left 0.6s ease-out 100ms;
}

.logo {
  font-size: 25px;
  color: var(--main-emphasis-color);
  text-decoration: none;
  font-weight: 600;
}

.nav a {
  font-size: 18px;
  color: var(--main-text-color);
  text-decoration: none;
  font-weight: 500;
  margin-left: 35px;
  transition: 0.3s;
  width: fit-content;
}

.nav a:hover,
.nav a.active {
  color: var(--main-emphasis-color);
}

main {
  display: grid;
  padding: 5% 10%;
  gap: 100px;
  justify-items: center;
}

section {
  height: min-content;
  width: 100%;
  display: flex;
  flex-direction: column;

  padding: 0 3%;
  border-radius: 100px;

  margin-bottom: 2%;

  min-width: fit-content;

  background: var(--main-box-color);
  border-radius: 3px;
  padding: 4%;
  border-radius: 30px;
}

section h1 {
  font-size: 56px;
  font-weight: 700;
  text-align: center;
}

section h3 {
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  color: var(--main-emphasis-color);
}

section p {
  font-size: 18px;
  font-weight: 500;
  margin-top: 3%;
  text-align: left;
}

section a {
  color: var(--main-text-color);
  font-weight: 500;
  text-decoration: none;
  transition: 0.5s;
  text-align: left;
}

section a:hover {
  color: var(--main-emphasis-color);
}

article h3 {
  text-align: left;
}

#skills {
  align-items: center;
}

#skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  width: fit-content;
  gap: 20px;
}

#skills-grid article {
  display: flex;
  flex-wrap: wrap;
  width: fit-content;
  align-items: center;
  justify-content: center;
}

#skills-grid article h3 {
  margin-right: 20px;
  width: 10vw;
  text-align: right;
}

.progress-var {
  justify-self: right;
}
#home {
  margin-top: 20vw;
}

.social-networks {
  display: flex;
  justify-content: baseline;
  justify-content: center;

  padding: 2% 0;
}

.social-networks i,
.social-networks a {
  font-size: 20px;
  margin-right: 30px;
  text-decoration: none;
  color: var(--main-text-color);
  transition: 0.6s;
}

.social-networks i:hover,
.social-networks a:hover {
  color: var(--main-emphasis-color);
}

.carousel {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.left-arrow-carousel,
.right-arrow-carousel {
  font-size: xxx-large;
  color: var(--main-text-color);
  cursor: pointer;
}

.left-arrow-carousel:hover,
.right-arrow-carousel:hover {
  color: var(--main-emphasis-color);
}

.image-container-carousel {
  background-color: var(--thirdly-box-color);
  border-radius: 8px;
  padding: 4%;
  width: 40vw;
}

.carousel-container {
  background-color: var(--secondary-box-color);
  padding: 4%;
}

.img-carousel {
  width: 30vw;
  aspect-ratio: 16 / 9;
}

@media (max-width: 800px) {
  header {
    flex-direction: column;
    justify-content: center;
  }

  body {
    background-size: contain;
  }
}

.dots-container-carousel {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

.dots-container-carousel p,
.dots-container-carousel .active {
  font-size: 100px;
  margin-top: -40px;
  color: var(--main-text-color);
}

.dots-container-carousel .active {
  color: var(--main-emphasis-color);
}

/* Keyframes */

@keyframes fade-from-left {
  from {
    position: fixed;
    width: 50%;
    opacity: 0;

    left: -50%;
  }

  to {
    position: fixed;
    width: 100%;
    opacity: 1;
    right: 0;
  }
}
