/* Imports */
@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+Mono:ital,wght@0,100..700;1,100..700&display=swap");

/* Universal box-sizing and margin/padding reset */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Remove list styles */
ul,
ol {
  list-style: none;
}

/* Remove link underline */
a {
  text-decoration: none;
  color: inherit;
}

/* Make images responsive */
img {
  max-width: 100%;
  height: auto;
}

/* Color variables */
:root {
  --primary-color: #313c4d;
  --secundary-color: #0e1319;
  --third-color: #7989a3;
  --background-color: #0d1117;
  --bg-color-secundary: #141a21;

  --text-color: #fafafa;
}

.roboto-mono {
  font-family: "Roboto Mono", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue",
    sans-serif;
}

.subtitle {
  font-weight: 500;
  font-size: 38px;

  width: fit-content;
}

body {
  background-color: var(--background-color);
  color: var(--text-color);
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue",
    sans-serif;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
}

section {
  overflow-x: clip;
}

button {
  background: var(--primary-color);
  border: none;
  cursor: pointer;
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue",
    sans-serif;
  color: var(--text-color);
}

a img {
  vertical-align: middle;
}

/* 
>>>>>>>>>>
Header
<<<<<<<<<<
*/
#header-section {
  position: fixed;
  z-index: 999;

  width: 100%;
  height: 70px;
  padding: 0 2rem;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.1);

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

  backdrop-filter: blur(5px);
}

#header-section p {
  font-size: 24px;
  font-weight: 500;
}

.h-contact-container {
  display: flex;
  gap: 14px;
}

.h-contact-container a img {
  height: 38px;
}

/*
>>>>>>>>>>
Main
<<<<<<<<<<
*/
body {
  background-color: var(--background-color);
  background-image: linear-gradient(#ffffff08 1px, transparent 1px),
    linear-gradient(90deg, #ffffff08 1px, transparent 1px);
  background-size: 140px 140px;
}

.oval {
  position: absolute;
  z-index: -1;

  filter: blur(60px);

  background-color: var(--primary-color);
  border-radius: 100%;
  opacity: 0.6;
}

#oval0 {
  background-color: var(--third-color);

  left: 0;
  top: -60px;

  filter: blur(80px);

  height: 70px;
  width: 100%;
}

#oval1 {
  transform: rotate(130deg);

  left: 10%;
  top: 20rem;

  height: 100px;
  width: 600px;
}

#oval2 {
  transform: rotate(45deg);

  right: 0;
  top: 40rem;

  height: 100px;
  width: 1000px;
}

#oval3 {
  background-color: var(--third-color);

  opacity: 0.3;

  right: 50%;
  transform: translateX(50%) rotate(-10deg);
  bottom: 0rem;
  height: 100px;
  width: calc(100% + 100rem);
}

#main-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  height: 75svh;
  margin-top: 70px;
}

.m-title-container {
  max-width: 900px;
}

.m-title-container h1 {
  font-size: 64px;
  letter-spacing: -1px;
  line-height: 80px;
  margin: 0 1rem;
}

.m-title-container p {
  font-size: 24px;
  font-weight: 300;

  opacity: 0.4;
}

/*
>>>>>>>>>>
My experience
<<<<<<<<<<
*/
#my-experience-section {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  width: 100%;
}

.me-nav-container {
  display: flex;
  justify-content: space-between;

  box-shadow: 0 0 10px var(--primary-color);

  border: 1px solid var(--primary-color);
  margin-bottom: 2rem;
  margin-top: 1rem;
}

.me-navigation-btn {
  background-color: transparent;
  font-size: 18px;
  opacity: 0.2;
  transition: all 300ms ease-in-out;
  padding: 0.5rem 1rem;
  width: 200px;
}

.me-navigation-btn:hover {
  background-color: var(--primary-color);
  opacity: 1;
  box-shadow: 0 0 10px var(--primary-color);

}

.me-n-active {
  opacity: 1;
    background-color: var(--primary-color);

}

.me-section {
  display: none;
}

.me-active {
  display: block;
}

.me-experience {
  flex-direction: column;
  gap: 20px;
}

.me-experience h2 {
  margin-bottom: 2rem;
}

.me-container {
  z-index: 1;
  position: relative;
  overflow: hidden;

  width: 65%;
  min-width: 400px;
  padding: 1.5rem 2rem;

  background: linear-gradient(
    180deg,
    rgba(49, 60, 77, 20%) 0%,
    rgba(14, 19, 25, 1) 100%
  );

  border: 0.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
}

.me-e-container {
  display: flex;
  margin-top: 2rem;
  margin-bottom: 4rem;
}

.odd-project {
  flex-direction: row-reverse;
}

.odd-project .me-e-information {
  margin-left: 0;
  margin-right: 2rem;
}

.finished,
.in-progress {
  z-index: 100;
  background-color: #7989a3;
  border-radius: 10px 2px 8px 0;
  padding: 0.2rem 1.2rem;
}

.in-progress {
  background-color: var(--primary-color);
}

.me-e-c-container {
  width: 350px;
  height: 350px;
  position: relative;
}

.me-e-c-img {
  min-width: 350px;
  min-height: 350px;
  object-fit: cover;
  border-radius: 10px;
  outline: 0.5px rgba(255, 255, 255, 0.2) solid;
  filter: brightness(0.7);
}

.me-e-c-placeholder {
  display: block;
  background: linear-gradient(135deg, var(--primary-color), var(--bg-color-secundary));
}

.me-e-status {
  position: absolute;
  left: 0;
}

.project-title {
  font-size: 22px;
  font-weight: 500;
}

.me-e-information {
  margin-left: 2rem;
}

.me-e-information div {
  margin-bottom: 2rem;
}

.me-e-i-text p {
  opacity: 0.6;
  font-weight: 200;
}

.tech-img-container {
  text-align: center;
  color: var(--primary-color);
  font-weight: bold;
}

.me-e-t-images {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.me-e-t-images img {
  width: 42px;
  height: 42px;
}

.me-e-i-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.me-e-i-links a {
  width: 140px;
  padding: 0.4rem;
  display: flex;
  align-items: center;
  border-radius: 1000px;
  font-size: 18px;
  font-weight: 200;
}

#no-projects {
  margin: 2rem 0;
  opacity: 0.6;
  font-weight: 400;
}

#gh-link {
  background: #000;
}

#gh-link img {
  width: 32px;
  height: 32px;
  margin-right: 1rem;
}

#more-link {
  border: 1px var(--primary-color) solid;
  justify-content: center;
  transition: all 200ms ease-in-out;
}

#more-link:hover {
  background-color: #313c4d30;
}

#me-e-btn-more {
  font-size: 16px;
  padding: 0.6rem 1rem;
  border-radius: 10px;
}

.bottom-particles {
  z-index: -1;

  position: absolute;
  bottom: 0;
  left: 0;

  width: 100%;
  height: 100vh;

  pointer-events: none;
}

.bubble {
  position: absolute;
  bottom: 0;

  width: 0.3rem;
  height: 0.3rem;

  background-color: var(--text-color);

  animation-name: blow;
  animation-timing-function: ease-out;
  animation-iteration-count: infinite;
}

@keyframes blow {
  0% {
    transform: translateY(0) scale(1);
    opacity: 0;
  }
  10% {
    opacity: 0.5;
  }
  100% {
    transform: translateY(-100vh) scale(0.1);
    opacity: 0;
  }
}

/*
>>>>>>>>>>
My professional experience
<<<<<<<<<<
*/
#my-professional-experience-section {
  display: flex;
  justify-content: center;
  margin-bottom: 4rem;
  background-color: #020202;
  padding: 2rem 0 6rem 0;
}

.mpe-container {
  min-width: 400px;
  display: flex;
  justify-content: center;
  flex-direction: column;
}

.mpe-container h2 {
  text-align: center;
  font-size: 2rem;
}

.mpe-list {
  position: relative;
  padding: 0 8rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  row-gap: 4rem; 
  margin-bottom: 3rem;
  width: 100%;
  
}

.mpe-list::before {
  content: "";
  height: 100%;
  background-color: var(--third-color);
  width: 3px;
  top: 0;
  position: absolute;
  left: 4rem;
  opacity: 50%;
}

.mpe-l-l-dot {
  border-radius: 100%;

  padding: .5rem;
  position: absolute;
  left: 2.55rem;
  border: 1rem solid var(--bg-color-secundary);
  background-color: var(--primary-color);
}

.mpe-l-l-dot::before {
    content: '';
  position: absolute;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  backdrop-filter: blur(10px);
  z-index: -1;
}

.mpe-l-l-desc h3 {
  font-size: 30px;
  line-height: 2rem;
  margin-bottom: .2rem;
}

.mpe-l-l-desc h4 {
  margin-bottom: 1rem;
}

.mpe-l-l-desc p {
  line-height: 1.4rem;
}

.mpe-l-l-d-date {
  height: 48px;
  display: flex;
  align-items: center;
}

/*
>>>>>>>>>>
About me
<<<<<<<<<<
*/
#about-me-section {
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;

  padding: 6rem 0;
  padding-bottom: 10rem;
  margin-top: -6rem;
  border-top: 0.5px rgba(255, 255, 255, 0.1) solid;

  background-color: var(--bg-color-secundary);
}

.am-container {
  min-width: 400px;
  max-width: 65%;
  margin-top: 3rem;
}

.am-container h2 {
  margin: 2rem 0;
}

.am-container p {
  font-weight: 300;
  font-size: 20px;

  color: #72767a;
}

.highlight-text-1 {
  font-weight: 400;

  color: var(--text-color);
  opacity: 0.8;
}

.highlight-text-2 {
  color: var(--text-color);
  opacity: 0.6;
}

.am-contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;

  margin-top: 4rem;

  max-width: 100%;
  height: 500px;
  gap: 20px;
}

.am-c {
  position: relative;

  cursor: pointer;

  display: flex;
  justify-content: center;
  align-items: center;

  border-radius: 10px;
  outline: 0.5px rgba(255, 255, 255, 0.2) solid;
  box-shadow: 0 0 10px rgba(49, 60, 77, 0.3);

  background-repeat: no-repeat;
  background-size: cover;

  transition: all 240ms ease-in-out;
}

.am-c:hover {
  transform: translateY(-4px);

  box-shadow: 0 2px 10px rgba(49, 60, 77, 0.7);
  outline: 0.5px rgba(255, 255, 255, 0.3) solid;
}

.am-c::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  background-color: #313c4d40;
  z-index: 1;
}

.am-c p {
  color: var(--text-color);
  font-size: 32px;
  font-weight: 500;
  z-index: 2;
}

#am-c-linkedIn {
  grid-column: 1;
  grid-row: 1 / 3;
  background-image: url("./assets/img/linkedin.png");
}

#am-c-gitHub {
  grid-column: 2;
  grid-row: 1;
  background-image: url("./assets/img/github.png");
  background-position: center;
}

#am-c-cv {
  grid-column: 2;
  grid-row: 2;
  background-image: url("./assets/img/resume.png");
}

/*
>>>>>>>>>>
Skills
<<<<<<<<<
*/
.am-skills-container {
  margin-top: 4rem;
}

.am-skills-container h2 {
  margin-bottom: 1rem;
}

.am-s-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  gap: 50px;
}

.am-s-container img {
  width: 82px;
}

/*
>>>>>>>>>>
Footer
<<<<<<<<<<
*/
#footer {
  display: flex;
  justify-content: center;

  height: 50px;

  background-color: #000;
  box-shadow: 0 -10px 70px 50px #000;
}

#f-text {
  opacity: 0.8;
}

/*
>>>>>>>>>>
Responsive
<<<<<<<<<<
*/
@media (max-width: 1400px) {
  .me-e-container {
    flex-direction: column;
  }

  .me-e-information {
    margin-top: 1rem;
    margin-left: 0;
  }

  .odd-project .me-e-information {
    margin-right: 0;
  }
}

@media (max-width: 850px) {
  .subtitle {
    font-size: 30px;
  }

  .m-title-container h1 {
    font-size: 50px;
    line-height: 50px;
  }

  .m-title-container p {
    font-size: 18px;
  }

  .me-e-c-container {
    width: 100%;
  }

  .me-e-c-img {
    min-width: 100%;
    max-height: 350px;
  }

  #am-c-linkedIn {
    grid-column: 1 / 3;
    grid-row: 1;
  }

  #am-c-gitHub {
    grid-column: 1;
    grid-row: 2;
  }

  #am-c-cv {
    grid-column: 2;
    grid-row: 2;
  }
}

@media (max-width: 500px) {
  .subtitle {
    font-size: 26px;
  }

  #header-section {
    padding: 0 1rem;
  }

  #header-section p {
    font-size: 18px;
    font-weight: 500;
  }

  .h-contact-container a img {
    height: 30px;
  }

  #main-section {
    height: 85svh;
  }

  .m-title-container h1 {
    font-size: 38px;
    line-height: 60px;
  }

  .m-title-container p {
    font-size: 16px;
  }

  #about-me-section {
    padding: 6rem 1.5rem;
  }

  .me-container {
    width: 100%;
    min-width: 0;
    max-width: none;
  }

  .me-navigation-btn {
    width: 140px;
  }

  .mpe-list {
    padding: 0 4rem;
  }

  .mpe-list::before {
    left: 1rem;
  }

  .mpe-l-l-dot {
    left: -.35rem;
  }

  .am-container {
    min-width: 0;
    max-width: none;
  }
}
