/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Unbounded:wght@200..900&display=swap");

/*=============== VARIABLES CSS ===============*/
:root {
  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  --main-font: hsl(0, 0%, 95%);
  --lighter-font: hsl(0, 0%, 85%);
  --highlight-color: hsla(57, 90%, 61%, 0.931);
  --bg-color: hsl(0, 0%, 0%);
  --bg-card: hsl(0, 0%, 15%);
  --header-color: rgb(79, 93, 115);
  --radial-bg: radial-gradient(
    rgba(42, 136, 122, 0.9) 50%,
    rgba(0, 78, 100, 1)
  );

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: "Khand", sans-serif;
  --body-font-size: clamp(1rem, 1.15rem + 1vw, 2rem);
  --h2-font-size: clamp(1.3rem, 1.35rem + 1.4vw, 2.8rem);
  --h3-font-size: clamp(1.2rem, 1.3rem + 1.2vw, 2.4rem);
  --small-font-size: clamp(0.7rem, 0.8rem + 0.7vw, 1.8rem);
  --text-shadow: -2px 3px var(--bg-color);
}

/*=============== BASE ===============*/
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  color: var(--main-font);
  background-color: var(--bg-color);
  font-size: var(--body-font-size);
}

.bold {
  font-weight: 700;
}

h2 {
  font-size: var(--h2-font-size);
}

a {
  text-decoration: none;
  color: var(--highlight-color);
}

li a {
  text-decoration: none;
  color: var(--main-font);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

nav {
  margin: 40px auto;
  padding: 20px;
  height: 80px;
  width: 80dvw;
  border: 2px solid white;
  border-radius: 10px;
  display: flex;
  align-items: center;
  text-align: center;
  background-image: var(--radial-bg);
  text-shadow: var(--text-shadow);
}

nav ul {
  display: flex;
  width: 100%;
  list-style: none;
  align-items: center;
  line-height: 1.5rem;
  gap: 0 35px;
}

nav ul li:last-child {
  margin-left: auto;
  margin-right: 2%;
}

/*=============== CARD ===============*/
.card_home {
  max-width: 1120px;
  height: 100dvh;
  margin-inline: auto;
  display: grid;
  place-items: center;
}

.card__article {
  position: relative;
  width: 70dvw;
  min-height: 35dvh;
  border: 8px solid var(--main-font);
  border-radius: 5rem;
  padding: 2rem 1rem 1.5rem;
  text-align: center;
  overflow: hidden;
  /*  background-color: var(--bg-card); */
  background-image: var(--radial-bg);
}

.card__data,
.card__actions {
  position: relative;
  z-index: 10;
  color: var(--main-font);
}

.card__perfil {
  width: 30%;
  max-width: 250px;
  border: 4px solid var(--main-font);
  border-radius: 50%;
  margin: 0 auto 0.5rem;
}

.card__name {
  font-size: var(--h2-font-size);
  font-weight: 600;
  /* text-shadow: var(--text-shadow); */
}

.card__description {
  font-size: var(--small-font-size);
  color: var(--lighter-font);
  font-weight: 400;
  margin-bottom: 1.75rem;
}

.card__actions {
  display: grid;
  justify-content: center;
}

.card__button {
  width: 48px;
  height: 48px;
  border: none;
  outline: none;
  border-radius: 50%;
  background-color: var(--radial-bg);
  color: var(--main-font);
  font-size: 1.5rem;
  box-shadow: 0 4px 8px hsla(150, 62%, 8%, 0.7);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 10;
}

.card__more,
.card__close {
  position: absolute;
  transition:
    opacity 0.1s,
    transform 0.4s;
}

.card__close {
  opacity: 0;
}

.card__menu {
  padding: 0.35rem 1rem;
  border-radius: 4rem;
  box-shadow: 0 4px 12px hsla(150, 62%, 8%, 0.7);
  display: flex;
  column-gap: 5rem;
  position: absolute;
  justify-self: center;
  align-self: center;
  width: 48px;
  transition: width 0.5s;
}

.card__icons {
  display: flex;
  column-gap: 0.5rem;
}

.card__icons a {
  display: block;
  z-index: 20;
  color: var(--main-font);
}

.card__icon {
  position: relative;
  font-size: 1.25rem;
  cursor: pointer;
  transform: scale(0);
  pointer-events: none;
  opacity: 0;
  transition: transform 0.4s;
}

.tooltip {
  position: absolute;
  bottom: 120%; /* above icon */
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-card);
  color: var(--main-font);
  border: 1px solid var(--main-font);
  padding: 6px 10px;
  border-radius: 5px;
  font-size: 14px;
  white-space: nowrap;
  opacity: 0; /* hidden */
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.lang-select {
  margin-top: 15px;
  text-shadow: var(--text-shadow);
}

[data-i18n]:not(.tooltip) {
  white-space: normal;
}

.card__icon:hover .tooltip {
  opacity: 1;
}

.card__icons:nth-child(1) .card__icon:nth-child(2) {
  transition-delay: 0.2s;
}

.card__icons:nth-child(1) .card__icon:nth-child(1) {
  transition-delay: 0.4s;
}

.card__icons:nth-child(2) .card__icon:nth-child(1) {
  transition-delay: 0.2s;
}

.card__icons:nth-child(2) .card__icon:nth-child(2) {
  transition-delay: 0.4s;
}

/* ============TOGGLED MENU ICONS============= */
.show-menu {
  width: 212px;
}

.show-menu .card__icon {
  opacity: 1;
  transform: scale(1);
  pointer-events: initial;
}

.show-icon .card__more {
  opacity: 0;
  transform: rotate(90deg);
}

.show-icon .card__close {
  opacity: 1;
  transform: rotate(90deg);
}

/* CSS FOR THE ABOUT ME SECTION */

.about-me-section {
  border: 1px solid var(--main-font);
  min-height: 100dvh;
  width: 96dvw;
  margin: 0 auto;
  gap: 0.2rem;
  background-image: var(--radial-bg);
}

.about-me-div {
  width: 100%;
  height: 100%;
  padding: 20px;
}
.about-me-div h2 {
  text-shadow: var(--text-shadow);
}

/* CSS FOR THE RESUME SECTION */

.resume-section {
  border: 1px solid var(--main-font);
  width: 96dvw;
  height: auto;
  padding: 20px;
  margin: 0 auto;
  font-size: var(--small-font-size);
}

.resume-container {
  display: grid;
  height: auto;
  width: 100%;
  grid-template-rows: 100%;
  grid-template-columns: 2fr 3fr;
  column-gap: 0.5rem;
}

.resume-item1 {
  border: 0.5px solid var(--main-font);
  padding-top: 10%;
  background-color: var(--header-color);
  color: var(--main-font);
  border-radius: 5px;
}

.resume-item1 svg {
  display: inline-block;
  width: 15px;
}

.resume-item1 > img {
  max-inline-size: 50%;
  margin: 0 auto;
  display: block;
  height: auto;
  border-radius: 50%;
  border: 3px solid var(--main-font);
}

.resume-item1 > h2 {
  margin-left: 20px;
  margin-top: 20px;
  font-size: var(--h3-font-size);
}

.resume-span {
  display: block;
  background-color: var(--main-font);
  margin: 5px auto 10px 20px;
  width: 80%;
  height: 2px;
}

.resume-item1 a,
.resume-item1 a:link {
  color: var(--main-font);
  margin-left: 20px;
}

.resume-item1 > p {
  margin-left: 20px;
}

.second-row-font {
  color: var(--lighter-font);
  margin-left: 20px;
}

.resume-item1 li {
  margin-left: 20px;
  list-style: none;
}

.certifications-ul > li {
  list-style: disc;

  margin-left: 30px;
}

li span {
  position: relative;
  left: -5px;
}

.resume-item2 {
  border: 1px solid var(--main-font);
  padding-top: 12%;
}

.resume-item2 > h2,
.resume-item2 > h3,
.resume-item2 > p,
.resume-item2 > span {
  margin-left: 20px;
}

.resume-item2 > span {
  display: block;
}

.work-experience {
  margin-top: 82px;
}

.resume-item2-span {
  display: block;
  background-color: black;
  margin: 4px auto 10px 20px;
  width: 80%;
  height: 2px;
}

.resume-item2 > ul {
  margin: 0 0 15px 50px;
  line-height: 1.2;
  margin-right: 10px;
}

/* CSS FOR THE WORK SECTION */

.work-section {
  border: 1px solid var(--main-font);
  height: auto;
  width: 96dvw;
  margin: 0 auto;
  gap: 0.2rem;
  padding: 20px;
  background-image: var(--radial-bg);
}

.work-section h2 {
  margin-bottom: 30px;
  text-shadow: var(--text-shadow);
}

.work-section h3 {
  text-shadow: var(--text-shadow);
  text-transform: uppercase;
  font-weight: bold;
}

.card_container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.card_work {
  position: relative;
  height: 400px;
  width: 340px;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px hsla(150, 62%, 16%, 0.2);
  border: 8px solid var(--main-font);
  border-radius: 5.5rem;
  text-align: center;
  padding: 0 5px;
  overflow: hidden;
  font-size: var(--small-font-size);
}

.card_work:last-child {
  margin-bottom: 40px;
}
.card_work a {
  position: absolute;
  inset: 0;
  display: block;
  z-index: 1;
}

.card__bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  transition: transform 0.5s ease;
}

/* THIS CORRECTS IMAGES NOT FULLY EXPANDING */
.general_translations,
.ost_translations {
  height: 100%;
}

.card__bg:hover {
  transform: scale(1.2);
}

/* CSS FOR THE CONTACT SECTION */

.contact-section {
  border: 1px solid var(--main-font);
  min-height: 100dvh;
  width: 96dvw;
  margin: 0 auto;
  gap: 0.2rem;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.contact-message {
  text-align: center;
  margin: 90px auto 0;
  max-width: 80%;
}

.c-message-title {
  font-size: var(--h2-font-size);
}

.form-wrapper {
  margin-top: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.form-container {
  border: 2px solid var(--main-font);

  margin: 0 auto;
  height: auto;
  width: 60dvw;
  display: grid;
  align-items: center;
  background: var(--highlight-color);
}

.form {
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 2px solid var(--main-font);

  margin: 0 auto;
  height: 98%;
  width: 99%;
  background-color: var(--bg-color);
}

.form-input {
  display: block;
  width: 100%;
  height: 35px;
  padding-left: 10px;
  font-size: var(--small-font-size);
}

form textarea {
  resize: vertical;
  width: 100%;
  min-height: 180px;
  padding: 5px 0 0 10px;
  font-size: var(--small-font-size);
}

form button {
  margin-top: 5px;
  height: 50px;
  font-size: var(--small-font-size);
  color: var(--main-font);
  font-weight: 700;
  border: 4px solid var(--main-font);
  background: var(--radial-bg);
}

form button:hover {
  cursor: pointer;
}

/* ====CSS for ACADEMIC TRANSLATIONS AND GENERAL TRANSLATIONS ==== */

.academic_translations {
  background-color: rgb(20, 19, 19);
  color: var(--main-font);
}

.work_titles {
  font-size: var(--h2-font-size);
  line-height: 2rem;
}

.academic_translations img {
  cursor: pointer;
}

.academic_title {
  text-align: center;
  width: 80dvw;
  margin: 30px auto;
}

.sample__text {
  text-align: center;
  margin: 20px 0;
  font-size: var(--small-font-size);
}

.sample_container {
  display: grid;
  width: 90dvw;
  margin: 0 auto;
  grid-auto-columns: 1fr;
  justify-content: center;
  gap: 0.5rem 0;
}

.container__header {
  display: grid;
  align-content: center;
  justify-content: center;
  border: 2px rgb(255, 255, 255) solid;
  width: 100%;
  height: 65px;
  text-shadow: var(--text-shadow);
  background-image: var(--radial-bg);
}

.container__header_smaller {
  display: grid;
  align-content: center;
  justify-content: center;
  border: 2px rgb(255, 255, 255) solid;
  width: 100%;
  height: 65px;
  margin-bottom: 10px;
  text-shadow: var(--text-shadow);
  background-image: var(--radial-bg);
}

.video_sample {
  grid-column: 1 / -1;
  width: 100%;
  min-width: 0;
  margin-bottom: 20px;
}

.video_sample video {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal img {
  max-width: 95%;
  max-height: 95%;
}

table {
  width: 90dvw;
  margin: 20px auto;
  font-size: var(--small-font-size);
}

table,
tr,
th,
td {
  border: 1px solid var(--main-font);
  padding: 5px;
}

th {
  background-image: var(--radial-bg);
  text-shadow: var(--text-shadow);
}

td:nth-child(3),
td:nth-child(4) {
  text-align: center;
}

/* CSS FOR FLOATING WHATSAPP LOGO */

.whatsapp {
  position: fixed;
  right: 35px;
  bottom: 35px;
  z-index: 99999;
  max-width: 100vw;
  max-height: 100vh;
}

.whatsapp-logo {
  width: 60px;
  height: auto;
  background: white;
  border-radius: 50%;
  padding: 7px;
  box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s ease;
}

.whatsapp-logo:hover {
  transform: scale(1.3);
}

/* ============BREAKPOINTS============= */
/* For small Devices */
/* @media (min-width: 330px) {
  .card__article {
    min-width: 70dvw;
  }
} */

@media (min-width: 768px) {
  /* Tablet */

  /* HOME SECTION */

  .card__article {
    max-width: 60dvw;
    min-height: 50dvh;
    align-content: center;
  }

  /* RESUME SECTION */

  .resume-section-title {
    font-size: var(--h2-font-size);
  }

  .sample_container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-content: center;
    gap: 0.6rem;
  }

  .container__header {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1024px) {
  /* Desktop */

  /* HOME SECTION */

  .card__article {
    max-width: 50dvw;
  }

  /* WORK SECTION */

  .card_work {
    height: 500px;
    width: 380px;
  }

  .work_titles {
    line-height: 2.2rem;
  }

  /* CONTACT SECTION */
}

@media (min-width: 1280px) {
  /* Large desktop */

  .card__article {
    max-width: 40dvw;
  }

  /* WORK SECTION */

  .card_work {
    height: 560px;
    width: 25%;
  }
}
