/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap");

/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 3.5rem;

  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  --first-color: hsl(189, 70%, 20%);
  --first-color-alt: hsl(189, 66%, 47%);
  --first-color-light: rgb(169, 217, 225);
  --first-color-lighten: hsl(189, 100%, 97%);
  --second-color: hsl(189, 70%, 20%);
  --title-color: hsl(189, 57%, 28%);
  --text-color: hsl(0, 0%, 0%);
  --text-color-light: hsl(0, 0%, 100%);
  --border-color: hsl(189, 99%, 98%);
  --body-color: #fff;
  --container-color: #fff; 

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: 'Poppins', sans-serif;
  --biggest-font-size: 2.25rem;
  --h1-font-size: 1.5rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1rem;
  --normal-font-size: .938rem;
  --small-font-size: .813rem;
  --smaller-font-size: .75rem;

  /*========== Font weight ==========*/
  --font-medium: 500;
  --font-semi-bold: 600;

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
}

/* Responsive typography */
@media screen and (min-width: 1024px) {
  :root {
    --biggest-font-size: 4rem;
    --h1-font-size: 2.25rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: .875rem;
    --smaller-font-size: .813rem;
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--body-color);
  color: var(--text-color);
  transition: .3s; /* For animation dark mode */
}

h1, h2, h3 {
  color: var(--title-color);
  font-weight: var(--font-semi-bold);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

input,
button {
  font-family: var(--body-font);
  outline: none;
  border: none;
}

/*=============== THEME ===============*/
.change-theme {
  font-size: 1.25rem;
  color: hsl(188, 71%, 12%);
  cursor: pointer;
  transition: .3s;
}

.change-theme:hover {
  color: var(--first-color);
}

/*========== Variables Dark theme ==========*/
body.dark-theme {
  --first-color: hsl(189, 66%, 62%);
  --first-color-light: rgb(0, 0, 0);
  --second-color: rgb(169, 217, 225);
  --title-color: hsl(228, 8%, 95%);
  --text-color: hsl(0, 0%, 100%);
  --border-color: hsl(228, 16%, 14%);
  --body-color: hsl(228, 12%, 8%);
  --container-color: hsl(228, 16%, 12%);
}

/*========== 
    Color changes in some parts of 
    the website, in dark theme 
==========*/
.dark-theme .nav-menu,
.dark-theme .home_img,
.dark-theme .scrollup {
  box-shadow: none;
}

.dark-theme .change-theme {
  color: var(--first-color);
}

.dark-theme::-webkit-scrollbar {
  background-color: hsl(228, 4%, 15%);
}

.dark-theme::-webkit-scrollbar-thumb {
  background-color: hsl(228, 4%, 25%);
}

.dark-theme::-webkit-scrollbar-thumb:hover {
  background-color: hsl(228, 4%, 35%);
}

.dark-theme .testimonial_info {
  background: radial-gradient(circle, #4bb98f 10%, transparent 11%),radial-gradient(circle at bottom left, #fc9c2e 5%, transparent 6%),radial-gradient(circle at bottom right, #fc9c2e 5%, transparent 6%),radial-gradient(circle at top left, #fc9c2e 5%, transparent 6%),radial-gradient(circle at top right, #fc9c2e 5%, transparent 6%);
  background-size: 10em 15em;
  background-color: #000;
  opacity: 1;
}

.dark-theme .testimonial_card {
  background-color: var(--first-color);
}

.dark-theme .nav {
  background-color: var(--border-color);
}

.dark-theme .about_data {
  background-color: var(--second-color);
}

.dark-theme .about_title,
.dark-theme .about_description {
  color: var(--first-color-light);
}

.dark-theme .experience_img-container {
  background-color: var(--second-color);
}

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
  max-width: 1024px;
  margin-left: 1.5rem;
  margin-right: 1.5rem;
}

.grid {
  display: grid;
}

.section {
  padding: 4.5rem 0 2rem;
}

.section_title {
  font-size: var(--h1-font-size);
  margin-bottom: 1rem;
  color: var(--text-color);
  text-align: center;
}

.section_title span {
  color: var(--first-color);
}

.section_subtitle {
  display: block;
  font-size: var(--small-font-size);
  color: var(--second-color);
}

.main {
  overflow: hidden; /* For the animations ScrollReveal*/
}

/*=============== HEADER & NAV ===============*/
.header {
  position: fixed;
  top: -1;
  left: 0;
  right: 0;
  width: 100%;
  background-color: transparent;
  z-index: var(--z-fixed);
  transition: .4s; /* For animation dark mode */
}

.nav {
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0;
  padding: 0 1rem;
  background-color: var(--text-color-light);
}

.nav_logo {
  color: var(--first-color);
  display: inline-flex;
  align-items: center;
  column-gap: .25rem;
  font-weight: var(--font-medium);
  transition: .3s;
}

.nav_logo i {
  font-size: 1rem;
}

.nav_logo:hover {
  color: var(--first-color);
}

.nav_none {
  display: none;
}

@media screen and (max-width: 1023px) {
  .nav_menu {
    position: fixed;
    bottom: 1.5rem;
    background-color: var(--container-color);
    box-shadow: 0 8px 24px hsla(189, 66%, 45%, .15);
    width: 90%;
    left: 0;
    right: 0;
    margin: 0 auto;
    padding: 1.30rem 3rem;
    border-radius: 1.25rem;
    transition: .4s;
  }

  .nav_list {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .nav_link {
    color: var(--text-color);
    display: flex;
    padding: .5rem;
    border-radius: 50%;
  }

  .nav_link i {
    font-size: 1.25rem;
  }

  .nav_link span {
    display: none;
  }

  .nav_button {
    display: none;
  }
}

/* Change background header */
.scroll-header {
  background-color: var(--body-color);
  box-shadow: 0 1px 4px hsla(228, 4%, 15%, .1);
}

.scroll-header .nav_logo {
  color: var(--first-color);
}

.scroll-header .change-theme {
  color: var(--title-color);
}

/* Active link */
.active-link {
  background: linear-gradient(101deg,
              hsl(189, 66%, 53%),
              hsl(189, 66%, 47%));
  color: #fff;
  box-shadow: 0 4px 8px hsla(189, 66%, 45%, .25);
}


/*=============== HOME ===============*/
.home {
  padding-top: 0;
}

.home_container {
  padding-top: 4rem;
  row-gap: 3.5rem;
}

.home_title {
  color: var(--text-color);
}

.home_title span {
  color: var(--first-color);
}

.home_title {
  font-size: var(--biggest-font-size);
  line-height: 120%;
  margin-bottom: 1.25rem;
}

.home_description {
  color: var(--text-color);
  margin-bottom: 2rem;
}

.home_img {
  margin-top: 3rem;
}

.home_img img {
  height: 310px;
}

/*=============== BUTTON ===============*/
.button {
  display: inline-block;
  background: linear-gradient(101deg,
              hsl(189, 56%, 33%),
              hsl(189, 66%, 47%));
  color: #fff;
  padding: 14px 20px;
  border-radius: .5rem;
  font-size: var(--normal-font-size);
  font-weight: var(--font-medium);
  box-shadow: 0 4px 8px hsla(189, 66%, 25%, .25);
  transition: .3s;
  cursor: pointer;
}

.button:hover {
  box-shadow: 0 4px 12px hsla(189, 66%, 25%, .25);
}

.nav_button {
  display: none;
}

/*=============== EXPERIENCE ===============*/
.experience_container {
  padding: 1rem 0 5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.experience_card {
  width: 270px;
  height: 200px;
  background-color: var(--container-color);
  padding: .5rem .5rem 1.5rem;
  border-radius: 1rem;
  margin: 0 auto;
  border: 3px solid var(--first-color);
  box-shadow: 0 12px 16px hsla(189, 66%, 45%, .1);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: .4s;
}

.experience_data {
  padding: 0 1rem 0 .5rem;
  text-align: center;
  position: relative;
}

.experience_title {
  font-size: var(--h2-font-size);
  margin-bottom: .75rem;
  color: var(--text-color);
}

.experience_img-container {
  border: 1px solid none;
  background-color: var(--first-color-light);
  width: 3.5rem;
  aspect-ratio: 1;
  border-radius: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: -4.2rem;
  left: 5.5rem;
}
.experience_img {
  width: 2.1rem;
  
}

.experience_description {
  font-size: var(--small-font-size);
  color: var(--text-color);
}

/*=============== ABOUT ===============*/
.about {
  padding-top: 0;
}

.about_container {
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about_data {
  width: 100%;
  padding: 5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-content: center;
  background: var(--first-color-light);
}

.about_title {
  color: var(--text-color);
  font-size: var(--h1-font-size);
  line-height: 120%;
  margin-bottom: 1.25rem;
}

.about_title span {
  color: var(--text-color-light);
}

.about_description {
  color: var(--text-color);
  margin-bottom: 2rem;
}

.about_img {
  aspect-ratio: 1;
}

/*=============== TESTIMONIAL ===============*/
.testimonial {
  margin-bottom: 1.5rem;
}

.testimonial_container {
  margin: 0;
}

.testimonial_info {
  background: radial-gradient(circle, #4bb98f 10%, transparent 11%),radial-gradient(circle at bottom left, #fc9c2e 5%, transparent 6%),radial-gradient(circle at bottom right, #fc9c2e 5%, transparent 6%),radial-gradient(circle at top left, #fc9c2e 5%, transparent 6%),radial-gradient(circle at top right, #fc9c2e 5%, transparent 6%);
  background-size: 10em 15em;
  background-color: #ffffff;
  opacity: 1;
  display: flex;
  flex-direction: column;
  gap: 3rem;
  padding: 2rem 0 0 0;
}

.testimonial_card {
  background-color: var(--first-color-light);
  margin: 0 .5rem;
  padding: 1rem 2rem;
  border-radius: 1.5rem;
}

.testimonial_card-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.testimonial_data {
  padding: 0;
}

.testimonial_description {
  font-size: var(--normal-font-size);
  margin-bottom: 2.5rem;
  margin-top: 0;
}

.testimonial_artist {
  font-size: var(--h3-font-size);
  font-weight: var(--font-semi-bold);
}

/*=============== CTA ===============*/
.cta {
  padding: 2rem 0;
  position: relative;
  background-color: hsla(188, 46%, 22%, 0.801);
}

.cta_image{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-image: url(../img/635263a5506ca3ace3723758_jislofexchange-cta-bg.jpg);
  background-size: cover;
  background-position: 50% 50%;
}

.cta_info {
  text-align: center;
}

.cta_title {
  color: var(--text-color-light);
  text-align: center;
  font-size: 1.7rem;
  font-weight: var(--font-semi-bold);
  margin-bottom: 1rem;
}

.cta_title span {
  color: var(--text-color-light);
}

.cta_button {
  background-color: white;
  color: var(--first-color);
  display: inline-block;
  margin-bottom: .5rem;
  padding: 14px 20px;
  border-radius: .5rem;
  font-size: var(--normal-font-size);
  font-weight: var(--font-medium);
  box-shadow: 0 4px 8px hsla(189, 66%, 25%, .25);
  transition: .3s;
  cursor: pointer;
}


/*=============== FOOTER ===============*/
footer {
  background-color: var(--first-color-light);
}

.footer_container {
  row-gap: 2.5rem;
}

.footer_logo {
  color: var(--first-color);
  font-size: var(--h3-font-size);
  font-weight: var(--font-semi-bold);
  display: inline-flex;
  align-items: center;
  column-gap: .25rem;
  margin-bottom: .75rem;
}

.footer_logo i {
  font-size: 1.25rem;
}

.footer_description,
.footer_link {
  font-weight: var(--font-medium);
  font-size: var(--small-font-size);
}

.footer_content,
.footer_links {
  display: grid;
}

.footer_content {
  grid-template-columns: repeat(2, max-content);
  gap: 2.5rem 4rem;
}

.footer_title {
  font-size: var(--h3-font-size);
  margin-bottom: 1rem;
}

.footer_links {
  row-gap: .5rem;
}

.footer_link {
  color: var(--text-color);
  transition: .3sw;
}

.footer_link:hover {
  color: var(--title-color);
}

.footer_social {
  display: flex;
  column-gap: 1rem;
}

.footer_social-link {
  font-size: 1.25rem;
  color: var(--text-color);
  transition: .3s;
}

.footer_social-link:hover {
  color: var(--title-color);
}

.footer_info,
.footer_privacy {
  display: flex;
}

.footer_info {
  padding-bottom: 8rem;
  margin-top: 5.5rem;
  flex-direction: column;
  text-align: center;
  row-gap: 1.5rem;
  border-top: 2px solid var(--border-color);
  padding-top: 3rem;
}

.footer_copy,
.footer_privacy {
  font-size: var(--smaller-font-size);
  font-weight: var(--font-medium);
  color: var(--text-color);
}

.footer_privacy {
  justify-content: center;
  column-gap: 1.25rem;
}


/*=============== SCROLL BAR ===============*/
::-webkit-scrollbar {
  width:  .6rem;
  border-radius: .5rem;
  background-color: hsl(228, 8%, 76%);
}

::-webkit-scrollbar-thumb {
  background-color: hsl(228, 8%, 64%);
  border-radius: .5rem;
}

::-webkit-scrollbar-thumb:hover {
  background-color: hsl(228, 8%, 54%);
}

/*=============== SCROLL UP ===============*/

.scrollup {
  position: fixed;
  right: 1rem;
  bottom: -30%;
  background-color: var(--container-color);
  box-shadow: 0 8px 12px hsla(228, 66%, 45%, .1);
  display: inline-flex;
  padding: .35rem;
  border-radius: .25rem;
  color: var(--title-color);
  font-size: 1.25rem;
  z-index: var(--z-tooltip);
  transition: .3s;
}

.scrollup:hover {
  transform: translateY(-.25rem);
  color: var(--first-color);
}

/* Show Scroll Up*/
.show-scroll {
  bottom: 8rem;
}


/*=============== BREAKPOINTS ===============*/
/* For small devices */
@media screen and (max-width: 350px) {
  .container {
    margin-left: 1rem;
    margin-right: 1rem;
  }

  .section {
    padding: 3.5rem 0 1rem;
  }

  .home {
    padding-bottom: 0;
  }

  .contact_card {
    grid-template-columns: repeat(1, 180px);
    justify-content: center;
  }

  .active-link {
    padding: .7rem 1rem;
  }
}


/* For medium devices */
@media screen and (min-width: 576px) {
  .nav_menu {
    width: 342px;
  }

  .home_img img {
    width: 80%;
  }

  .footer_content {
    grid-template-columns: repeat(3, max-content);
  }

  .active-link {
    padding: .6rem 1.2rem;
  }

}

@media screen and (min-width: 767px) {
  .home_container {
    grid-template-columns: repeat(2, 1fr);
    padding-top: 3rem;
    justify-content: center;
    align-items: center;
  }

  .section {
    padding: 0 1rem;
  }

  .home_img img {
    width: 100%;
    height: auto;
  }

  .logos {
    margin-bottom: 0;
    padding-top: 2rem;
  }
  
  .experience {
    padding-top: 2rem;
    padding-bottom: 0;
  }

  .experience_container {
    flex-direction: row;
    gap: .5rem;
  }

  .about {
    padding-top: .5rem;
  }

  .about_container {
    flex-direction: row;
  }

  .about_img {
    max-width: 50%;
  }

  .testimonial {
    padding-top: 1rem;
  }

  .testimonial_info {
    flex-direction: row;
    gap: .5rem;
  }

  .cta {
    padding: 2rem 0;
  } 

  .section {
    padding: 3rem 0 1rem;
  }

  .footer_container {
    grid-template-columns: repeat(2, max-content);
    justify-content: space-between;
  }

  .footer_info {
    padding-bottom: 8.5rem;
  }
  
}

/* For large devices */
@media screen and (min-width: 1023px) { 
  .section {
    padding: 4.5rem 0 1rem;
  }

  .container {
    margin: 0 auto;
  }

  .section_title {
    font-size: 2.25rem;
  }

  .section_subtitle {
    font-size: var(--normal-font-size);
  }

  .nav {
    height: calc(var(--header-height) + 1.5rem);
    padding: 0 5rem;
  }

  .nav_menu {
    width: initial;
  }

  .nav_list {
    display: flex;
    column-gap: 3rem;
  }

  .nav_link {
    color: var(--text-color);
  }

  .nav_link i {
    display: none;
  }

  .nav_button {
    display: inline-block;
  }

  .nav_btn {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
  }

  .active-link {
    background: none;
    box-shadow: none;
    color: var(--first-color);
    font-weight: var(--font-medium);
  }

  .change-theme {
    margin: 0 2rem;
    color: var(--text-color);
  }

  .scroll-header .nav_link,
  .scroll-header .change-theme {
    color: var(--text-color);
  }

  .scroll-header .active-link {
    color: var(--first-color);
  }

  .home {
    padding: 0 2rem;
    padding-bottom: 0;
  }

  .home_container {
    justify-content: center;
    padding-top: 5rem;
    column-gap: 2rem;
  }

  .home_img img {
    height: auto;
  }

  .experience_container {
    justify-content: center;
  }

  .cta {
    padding: 2.5rem 0 2rem;
  }

  .footer {
    padding: 1.5rem 1rem 0;
  }

  .footer_container {
    margin-bottom: 2rem;
  }

  .footer_content {
    grid-template-columns: repeat(4, max-content);
  }

  .footer_title {
    margin-bottom: 1.5rem;
  }

  .footer_links {
    row-gap: 1rem;
  }

  .footer_info {
    flex-direction: row;
    justify-content: space-between;
    padding-bottom: 2rem;
  }

  .scrollup {
    display: none;
  }

  .show-scroll {
    bottom: 3rem;
    right: 3rem;
  }

  .active-link {
    padding: 0;
  }
}

/* For 2K & 4K resolutions */
@media screen and (min-width: 2048px){
  body {
    zoom: 1.5;
  }
}

@media screen and (min-width: 3840px){ 
  body {
    zoom: 2;
  }
}