*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --ff-primary: "Source Sans Pro", sans-serif;
  --ff-secondary: "Source Code Pro", monospace;

  --fw-reg: 300;
  --fw-semi-bold: 600;
  --fw-bold: 900;

  --clr-light: #fff;
  --clr-background: rgb(45, 45, 46);
  --clr-dark: #121212;
  --clr-profile: #0d183b;
  --clr-percent: #265ddc;
  --clr-percent-skills: #5b646879;
  --clr-accent: rgb(148, 172, 191);
  --clr-icons-text: #0070c2;
  --clr-link: rgb(98, 36, 146);
  --clr-link2: rgb(255, 255, 255);
  --clr-link3: rgb(158, 121, 21);
  --clr-accent-bg: rgba(43, 68, 65, 0.4);

  --clr-btn-svg: rgb(226, 59, 21);

  --fs-h1: 2.8rem;
  --fs-h2: 1.6rem;
  --fs-h3: 1.4rem;
  --fs-h4: 1.2rem;
  --fs-body: 0.8rem;

  --bs:
    0.25em 0.25em 0.75em rgba(0, 0, 0, 0.25),
    0.125em 0.125em 0.25em rgba(0, 0, 0, 0.15);
}

body,
h1,
h2,
h3,
h4,
h5,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

.resume-body {
  background-color: var(--clr-background);
  background-image: url(./images/resume-background.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

@keyframes scaleUp {
  from {
    transform: perspective(500px) rotateX(12deg) scale(0.6);
    box-shadow: 0 0px 0px rgba(0, 0, 0, 0.4);
  }
  to {
    transform: perspective(500px) rotateX(0deg) scale(1);
    box-shadow: 0 -305px 205px rgba(0, 0, 0, 0.6);
  }
}

@media (min-width: 900px) {
  .container-resume {
    position: relative;
    width: 100%;
    max-width: 1050px;
    min-height: 1050px;
    background: var(--clr-light);
    margin: 3rem;
    display: grid;
    grid-template-columns: 1fr 2fr;
    box-shadow: 0 35px 55px rgba(0, 0, 0, 0.6);
    transform: perspective(500px) rotateX(12deg) scale(0.6);
    animation: scaleUp 3.6s ease-in-out 900ms forwards; /* Animation duration, timing function, and delay */
  }
}

.profile-text {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid rgba(255, 255, 255, 0.3);
}

.profile-text .imagebox {
  position: relative;
  width: 15rem;
  height: 15rem;
  border-radius: 50%;
  overflow: hidden;
}

.profile-text .imagebox img {
  position: absolute;
  top: 5px;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-text h2 {
  color: var(--clr-light);
  font-size: var(--fs-h2);
  margin-top: 1rem;
  text-align: center;
  text-transform: uppercase;
  line-height: 1.4em;
}

.profile-text h2 span {
  font-size: var(--fs-h4);
  font-weight: var(--fw-reg);
  text-transform: capitalize;
}

.contact-info {
  padding-top: 2rem;
}

.text > .links {
  color: var(--clr-link2);
  font-size: 0.925rem;
}
.title {
  color: var(--clr-light);
  text-transform: uppercase;
  font-weight: var(--fw-semi-bold);
  letter-spacing: 1px;
  margin-bottom: 1.25rem;
}

.contact-info ul {
  position: relative;
  padding-left: 5px;
}

.contact-info ul li {
  position: relative;
  list-style: none;
  margin: 10px 0;
  cursor: pointer;
}
.contact-info ul li .icon {
  display: inline-block;
  width: 2rem;
  font-size: var(--fs-h3);
  color: var(--clr-icons-text);
}
.contact-info ul li span {
  color: var(--clr-light);
  font-weight: var(--fw-reg);
}

.contact-info.education li {
  margin-bottom: 1rem;
  line-height: 1.2;
}

.contact-info.education h5 {
  color: var(--clr-icons-text);
  font-weight: var(--fw-semi-bold);
}

.contact-info.education h4:nth-child(2) {
  color: var(--clr-light);
  font-weight: 500;
}

.contact-info.education h4 {
  color: var(--clr-light);
  font-weight: var(--fw-reg);
}

.contact-info.language .percent {
  position: relative;
  width: 100%;
  height: 6px;
  display: block;
  background: rgba(187, 37, 37, 0.8);
  margin-top: 5px;
}

.contact-info.language .percent div {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: var(--clr-percent);
}

.container-resume .left-side-background {
  background-image: url(./images/resume-left-side-background.png);
  background-size: cover;
  background-position: center;
  background-repeat: repeat;
  box-shadow: 0 35px 55px rgba(11, 7, 7, 0.9);
}
.container-resume .left-side {
  border-left: 2.5rem solid #ffffff;
  position: relative;
  backdrop-filter: brightness(0.3);
  padding: 2.5rem 1.6rem 1.6rem 1.6rem;
}

.container-resume .right-side {
  position: relative;
  background: var(--clr-light);
  padding: 2.5rem 2.5rem 2.5rem 1rem;
}

.about-resume {
  margin-bottom: 2rem;
  line-height: 1.2;
  position: relative;
}

.about-resume:last-child {
  margin-bottom: 0;
}

.title2 {
  color: var(--clr-light);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
  background-color: rgba(12, 12, 12, 0.9);
  padding: 0.5rem 2rem;
  border-radius: 20px;
  text-align: left;
  width: fit-content;
}

p {
  color: var(--clr-dark);
}

h3 {
  font-size: 1.2rem;
  letter-spacing: 0.1rem;
  font-weight: 700;
  color: var(--clr-dark);
}

h4 {
  font-size: 1.1rem;
  letter-spacing: 0.1rem;
  font-weight: 600;
  color: var(--clr-dark);
}

.date-launched h5 {
  color: rgba(47, 45, 42, 0.939);
  min-width: 150px;
}

.hyperlink {
  text-decoration: none;
  color: var(--clr-link);
  font-weight: var(--fw-bold);
  font-size: 1.2rem;
}

.about-resume .box {
  display: flex;
  flex-direction: column;
  margin: 20px 0;
  padding-left: 1.5rem;
}
.about-skills .box {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: 150px 1fr;
  justify-content: center;
  align-items: center;
}

.about-skills .box h4 {
  text-transform: uppercase;
  font-weight: var(--fw-semi-bold);
  color: var(--clr-light);
}

.about-skills .box .percent {
  position: relative;
  width: 100%;
  height: 10px;
  background: var(--clr-percent-skills);
}

.about-skills .box .percent div {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: var(--clr-percent);
}

.tools ul {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.tools ul li {
  list-style: none;
  color: var(--clr-profile);
  font-weight: var(--fw-semi-bold);
  margin: 0.6rem 0;
}

#resume {
  padding: 0.6rem 1.2rem;
  text-decoration: none;
  border: rgb(80, 76, 76) 2px solid;
  border-radius: 35px;
  letter-spacing: 2px;
  color: #0d183b;
  box-shadow: none;
  margin: 1.5rem 5% 5% 5%;
  font-size: 1.4rem;
  align-self: center;
  font-weight: var(--fw-semi-bold);
  transition: all 350ms;
}

#resume:hover {
  background: rgba(80, 76, 76, 0.2);
  border: var(--clr-link3) 2px solid;
  color: var(--clr-link3);
  box-shadow: 10px 12px 10px -3px rgba(0, 0, 0, 0.5);
}

.limited-text {
  max-height: 72px;
  max-width: 600px; /* Add this line to limit the width */
  overflow: hidden;
}

.limited-text.expanded {
  max-height: none;
}

.about-resume > .limited-text,
.about-resume > .read-more-button {
  margin-left: 1.5rem;
}

.read-more-button {
  margin-top: 5px;
  display: block;
  cursor: pointer;
  background-color: rgb(135, 124, 124);
  box-shadow: inset 5px 5px 10px -3px rgba(0, 0, 0, 0.5);

  color: white;
  transition: all 700ms ease-out;
}

/* Additional Professional Experience  */
.read-more-button:hover {
  background-color: rgb(135, 124, 124);
  box-shadow: 10px 10px 10px -3px rgba(0, 0, 0, 0.7);
  transform: scale(1.1);
  transition: all 700ms ease-out;
}

.additional-experience .accordion-toggle {
  margin-left: 1.5rem;
}

.accordion-content {
  display: none;
  overflow: hidden;
}

.accordion-content.is-open {
  display: block;
}

.additional-experience .accordion-content .box:first-child {
  margin-top: 1rem;
}

/* Additional Professional Experience End */

@media (max-width: 900px) {
  .container-resume {
    margin: 10px;
    grid-template-columns: repeat(1, 1fr);
  }
  .tools ul {
    grid-template-columns: repeat(3, 1fr);
  }
  .container-resume .left-side-background {
    background-image: url(./images/resume-left-side-background-small-screen.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }
  .container-resume .left-side {
    border-left: none;
    position: relative;
    background-color: rgba(0, 0, 0, 0.1);
    padding: 2.5rem;
  }

  .limited-text {
    max-height: 94px;
    max-width: 80vw; /* Add this line to limit the width */
    overflow: hidden;
  }

  .text > .links {
    color: var(--clr-link2);
    font-size: 1.3rem;
  }
  .contact-info ul li .icon {
    display: inline-block;
    width: 2rem;
    font-size: var(--fs-h3);
    color: var(--clr-icons-text);
  }
}

@media (max-width: 600px) {
  .about-resume .box {
    flex-direction: column;
  }
  .about-resume .box .date-launched {
    margin-bottom: 5px;
  }

  .tools ul {
    grid-template-columns: repeat(2, 1fr);
  }
  .text > .links {
    color: var(--clr-link2);
    font-size: 1.2rem;
  }
  .contact-info ul li .icon {
    display: inline-block;
    width: 1.5rem;
    font-size: var(--fs-h3);
    color: var(--clr-icons-text);
  }
  .title2 {
    letter-spacing: 2px;
    margin-bottom: 10px;
    background-color: rgba(12, 12, 12, 0.9);
    padding: 0.5rem 2rem;
    margin-left: 1.5rem;
    border-radius: 0px;
    text-align: left;
    width: fit-content;
  }
}

.resume-nav {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1rem;
}

.back-home {
  text-decoration: none;
  font-size: 0.9rem;
  color: #16314b;
  font-weight: 600;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.back-home:hover {
  opacity: 1;
}
