@font-face {
  font-family: 'Principal_Font';
  src: url('../assets/fonts/SchibstedGrotesk.ttf') format('truetype');
}

:root{
  --background: #E1F3FF;
  --active: #bee9e8;
  --dark-blue: #1B4965;
  --light-blue: #3285b9;
  --blue: #62b6cb;
  --input-bg: #CAE9FF;
  --error: #eb3717;
  --error-bg: #eb371760;
  --success: #14e47c;
  --shadow: rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-thumb {
  background-color: var(--dark-blue);
  border-radius: 4px;
}

::-webkit-scrollbar-track {
  background-color: var(--back);
}

html,body {
  padding: 0;
  margin: 0;
  scrollbar-width: thin;
  scrollbar-color: var(--dark-blue) transparent;
  -ms-overflow-style: none;
  font-family: 'Principal_Font', sans-serif;
  color: var(--dark-blue);
  font-size: 20px;
}

.only-mobile {
  display: none;
}

.not-in-mobile {
  display: block;
}

a {
  all: unset;
}

#body-container {
  height: 100dvh;
  width: 100dvw;
  overflow-x: hidden;
}

.body-section {
  width: 100%;
  background: var(--background);
  padding: 30px 10px;
  box-sizing: border-box;
}

.content-section {
  display: grid;
  grid-template-rows: auto 1fr;
  max-height: 900px;
}

#home-section {
  display: grid;
  min-height: 100%;
  padding: 5px 8px;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr;
  gap: 10px;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  text-shadow: 2px 2px 5px var(--shadow);
}

h1 {
  font-weight: normal;
  font-size: 70px;
  padding-left: 30px;
}

.bold {
  font-weight: bold;
}

.home-item {
  padding: 0px 40px;
}

#last-name {
  margin-left: 80px;
}

.title {
  font-weight: bold;
}

#home-image-media {
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
  gap: 10px;
}

.image-container {
  max-height: 80dvh;
  display: flex;
  justify-content: center;
}

.shadow {
  box-shadow: 2px 2px 5px var(--shadow);
}
img {
  height: 100%;
  max-width: 100%;
  width: auto;
}
.principal-img {
  border-radius: 20px;
}

#home-social-media {
  text-align: center;
}

#social-media-container {
  margin-top: 10px;
  display: grid;
  align-items: center;
  justify-items: center;
  grid-template-columns: repeat(3, 1fr);
}
.social-media-item {
  height: 45px;
  width: 45px;
  cursor: pointer;
}
.section-title {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
}
.section-title--separator-content {
  display: flex;
  align-items: center;
}
.section-title--separator {
  content: " ";
  height: 1px;
  width: 100%;
  border: none;
  border-top: 1px dashed var(--dark-blue);
}

#company-card-container {
  padding: 100px 80px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
}
#company-card {
  background: linear-gradient(to bottom, var(--light-blue) 0%, var(--dark-blue) 100%);
  border-radius: 20px;
  color: white;
  height: 100%;
  padding: 20px;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr;
}

#company-web-img {
  padding: 40px;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
}
#company-web-img img {
  max-height: 500px;
  border-radius: 10px;
  transition: .3s;
  cursor: pointer;
}
#company-web-img img:hover {
  border-radius: 30px;
}
#company-web-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 50px;
}

#company-web-button-container {
  text-align: center;
}
#company-web-button {
  all: unset;
  background: var(--active);
  color: var(--dark-blue);
  padding: 10px;
  border-radius: 10px;
  transition: .3s;
  cursor: pointer;
}

#company-web-button:hover {
  background: var(--blue);
  border-radius: 20px;
}

#skills-container {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 80px 100px;
}

.skills-item {
  display: grid;
  gap: 10px;
  grid-template-columns: auto 1fr;
}

.skills-item img {
  height: 30px;
  width: 30px;
}

.skill-text {
  margin-top: 10px;
}

#projects-container {
  display: flex;
  gap: 50px;
  justify-content: center;
  align-items: center;
  padding: 30px 10px;
  box-sizing: border-box;
}

#projects-container img {
  max-height: 400px;
}

.project-item {
  height: 50dvh;
  width: 25dvw;
  background: linear-gradient(to bottom, var(--light-blue) 0%, var(--dark-blue) 100%);
  border-radius: 10px;
  display: grid;
  grid-template-rows: 1fr auto;
  text-align: center;
  cursor: pointer;
  color: var(--active);
}
.project-item:hover {
  background: linear-gradient(to bottom, var(--light-blue) 0%, var(--blue) 100%);
  color: var(--dark-blue) !important;
}

.project-title {
  padding: 50px 30px;
  font-weight: bold;
}

.project-img-container {
  display: flex;
  align-items: center;
  justify-content: center;
}
#gest-survey-img img {
  width: 80%;
  height: 40%;
}

.experience-item {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 20px;
  padding: 20px 80px;
}
.experience-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--dark-blue);
  padding-bottom: 10px;
  box-sizing: border-box;
}
.experience-date {
  display: flex;
  align-items: center;
  gap: 20px;
}
.tag-current {
  background: var(--active);
  color: var(--dark-blue);
  padding: 5px 10px;
  border-radius: 10px;
  box-sizing: border-box;
}
.experience-data {
  display: grid;
  grid-template-columns: 1fr 2fr;
  grid-template-rows: 1fr;
  align-items: center;
}

#contact-container {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr;
  align-items: center;
  padding: 50px;
}

#form-contact {
  display: grid;
  gap: 20px;
  grid-template-rows: 1fr 1fr auto 1fr;
  padding: 20px 50px;
}

.form-input {
  margin-top: 10px;
}
.form-input input, .form-input textarea {
  all: unset;
  width: 100%;
  border: 1px solid var(--dark-blue);
  background: var(--input-bg);
  border-radius: 5px;
  resize: none;
  padding: 10px;
  box-sizing: border-box;
}

.form-input--error, .form-input--error {
  border-color: var(--error) !important;
  background-color: var(--error-bg) !important;
}

#form-input-button {
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: center;
  align-items: center;
}

#form-button {
  all: unset;
  background: var(--dark-blue);
  color: white;
  padding: 10px 20px;
  border-radius: 10px;
  cursor: pointer;
  transition: .3s;
}

.form-button--disabled {
  transition: 0s !important;
  opacity: 0 !important;
  cursor: not-allowed !important;
}
.form-button--disabled:hover {
  border-radius: 10px !important;
  background: var(--dark-blue) !important;
}

#form-button:hover {
  border-radius: 20px;
  background-color: #26648b;
}

.alert-message--error {
  color: var(--error);
  font-weight: bold;
}
.alert-message--success {
  color: var(--success);
  font-weight: bold;
}

@media screen and (min-width: 2500px) {
  .body-section {
    padding: 5px 400px;
  }
}
@media screen and (min-height: 1000px) and (min-width: 1500px) {
  #company-card-container {
    padding: 100px 300px;
  }

  #company-card {
    max-height: 50dvh;
  }
}
@media screen and (min-height: 1000px) {
  .project-item {
    height: 35dvh;
  }
}
@media screen and (max-width: 600px) {
  :root {
    --shadow: rgba(0, 0, 0, 0.2);
  }
  .only-mobile {
    display: block;
  }
  .not-in-mobile {
    display: none;
  }
  html, body {
    font-size: 15px;
  }
  h1 {
    font-size: 50px;
  }
  #home-section{
    display: grid;
    grid-template-rows: auto 1fr;
    grid-template-columns: 1fr;
  }
  #home-image-container {
    height: 100%;
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 10px;
    align-items: center;
  }
  .social-media-item {
    height: 30px;
    width: 30px;
  }
  #company-card-container {
    padding: 40px 20px;
    box-sizing: border-box;
  }
  #company-card {
    grid-template-rows: 1fr 1fr !important;
    grid-template-columns: 1fr !important;
    max-height: 100dvh;
    overflow: hidden;
  }
  #company-web-img {
    padding: 0px 0px;
  }
  #company-web-img img {
    max-height: 300px;
  }
  #skills-container {
    grid-template-columns: 1fr;
    padding: 10px 20px;
  }
  .skills-item img {
    height: 20px;
    width: 20px;
  }
  #projects-container {
    display: flex;
    flex-direction: column;
    gap: 50px;
    justify-content: center;
    align-items: center;
  }
  .project-item {
    height: 40dvh;
    width: 50dvw;
  }
  .project-img-container img {
    max-height: 150px;
    max-width: 200px;
  }
  .experience-item {
    padding: 20px 10px;
  }
  .experience-title {
    max-width: 100px;
  }
  .experience-data {
    grid-template-rows: auto 1fr;
    grid-template-columns: 1fr;
    gap: 20px;
  }
  #contact-container {
    grid-template-rows: auto 1fr;
    grid-template-columns: 1fr;
    padding: 10px;
  }
  #form-contact {
    padding: 0px;
  }
}