* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --main-bg__lightblue: #94d9ea;
  --left-bg__darkblue: #00324a;
  --image-frame: #002333;
  --right-bg__light: #f7f7f7;
  --title-white: #f7f7f7ec;
  --secondary-title: #94d9ea;
  --progress-success: #2d9cdb;
  --progress-bg: #2f81ed5b;
  --general-label: #718096;
  --right-title: #0f639b;
  --left-title: #1d4e89;
  --links: #2580b5;
}

body[data-theme="alternate"] {
  --main-bg__lightblue: #f7f7f7;
  --left-bg__darkblue: #49494b;
  --image-frame: #d1bfa7;
  --right-bg__light: #9f9d9e79;
  --title-white: #f7f7f7ec;
  --secondary-title: #b6b6b6;
  --progress-success: #b59f83;
  --progress-bg: #2f81ed5b;
  --general-label: #718096;
  --right-title: #be8d7d;
  --left-title: #786c5d;
  --links: #2580b5;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: var(--main-bg__lightblue);
  display: flex;
  align-items: center;
  justify-content: center;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  width: 100%;
  text-align: center;
}

.main-content {
  /* min-height: calc(100vh - 0.01rem); */
  /* width: 80%; */
  max-width: 80rem;
  margin: 2rem auto;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  box-shadow: rgba(0, 0, 0, 0.25) 0px 14px 28px,
    rgba(0, 0, 0, 0.22) 0px 10px 10px;
}

.section-extras {
  padding: 1.5rem 1.5rem;
}

.left-section {
  grid-column: span 2;
  height: 100%;
  background-color: var(--left-bg__darkblue);
  overflow: hidden;
}

.right-section {
  grid-column: span 5;
  height: 100%;
  background-color: var(--right-bg__light);
}

/* Left Section - General */

.category-title {
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--title-white);
  padding: 2rem 0;
  text-align: center;
}

/* Left Section - Profile  */
.profile {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #002333;
}

.profile__image-container {
  position: relative;
  width: 12rem;
  height: 12rem;
  border-radius: 50%;
  border: 0.5rem solid var(--image-frame);
  overflow: hidden;
}

.profile__image {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile__name {
  font-size: 1.8rem;
  color: var(--title-white);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 1rem;
}

.profile__profession {
  font-size: 1.2rem;
  color: var(--secondary-title);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

/* Left Section - Contact-Info */

.contact-info .ul-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-info ul li {
  padding: 0.4rem 0;
  display: flex;
  align-items: center;
  color: var(--general-label);
  font-size: 1.1rem;
  line-height: 1rem;
}

.contact-info ul li a {
  color: var(--links);
}

.contact-info ul li .i-container {
  margin-right: 0.5rem;
  width: 1.5rem;
}

.contact-info ul li i {
  /* Font Awesome Icons */
  padding-right: 1rem;
  font-size: 1.1rem;
  color: #2cd9db;
}

/* Left Section - Skills */

.skills ul li {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  padding: 0.4rem 0;
  justify-content: center;
  align-items: center;
}

.skill-title {
  color: var(--general-label);
}

.progress-bar {
  width: 100%;
  height: 0.4rem;
  background-color: var(--progress-bg);
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 0.8rem;

  /* Veritically centers position relative item */
  top: 50%;
  transform: translateY(-50%);
}

.progress {
  height: 100%;
  position: absolute;
  left: 0;
  background-color: var(--progress-success);
}

.js-progress {
  width: 70%;
}

/* Left Section - References */

/* Right Section - Technical Skills */

.tech-skill-title::after {
  content: ":";
}

/* Right Section - Experience */

.experience {
  margin-top: 2rem;
}

.general-text {
  line-height: 1.4rem;
  color: #718096;
}

.right-section-title {
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--right-title);
  margin-bottom: 1.2rem;
  position: relative;
}

.right-section-title:after {
  content: "";
  position: absolute;
  width: 70%;
  height: 0.2rem;
  background-color: var(--progress-success);
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.tl-entry {
  display: grid;
  grid-template-columns: 30% 70%;
  gap: 0.25rem;
  /* margin-bottom: 1.5rem; */
}

.tl-left-title {
  letter-spacing: 1px;
  font-size: 1.1rem;
  color: var(--left-title);
  text-transform: uppercase;
  line-height: 1.4rem;
}

.tl-right-title,
.right-title {
  letter-spacing: 1px;
  font-size: 1.1rem;
  color: var(--right-title);
  text-transform: uppercase;
  line-height: 1.4rem;
  margin-bottom: 1rem;
}

ul.tl-right-list {
  list-style-type: disc;
  padding-left: 1.1rem;
}

.tl-right-list-item {
  font-size: 0.9rem;
}

/* Timeline Bars */

.tl-right-content {
  border-left: 1px solid #cccccc;
  padding-left: 2rem;
  position: relative;
}

.tl-right-content {
  padding-bottom: 2rem;
}

.tl-right-title:before {
  content: "";
  position: absolute;
  width: 0.7rem;
  height: 0.7rem;
  background-color: var(--progress-success);
  border-radius: 50%;
  transform: translateX(-50%);
  left: 0;
}

.visibility-hidden {
  visibility: hidden;
}

/* Media Queries */

@media screen and (max-width: 83em) {
  .main-content {
    grid-template-columns: repeat(1, 1fr);
    margin: 0;
  }
  .right-section-title::after {
    width: 62%;
  }
}

@media screen and (max-width: 54em) {
  .right-section-title::after {
    display: none;
  }

  .tl-entry {
    grid-template-columns: repeat(1, 1fr);
  }

  .tl-right-title:before {
    display: none;
  }

  .tl-right-content {
    padding-left: 0;
    border-left: none;
  }
}
