/*=============== GOOGLE FONTS ===============*/
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Rubik:ital,wght@0,300..900;1,300..900&display=swap');


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

  --first-color: #242424;
  --first-color-alt: #EFEEEC;
  --text-color: #242424;
  --text-color--light: #666563;
  --body-color: #ffffff;

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --title-font: "Rubik", sans-serif;
  --body-font: "Montserrat", sans-serif;
  --h1-font-size: 2.5rem;
  --h2-font-size: 2rem;
  --h3-font-size: 1.25rem;
  --h4-font-size: 1rem;
  --normal-font-size: .875rem;
  --small-font-size: 0.75rem;
  --button-font-size: 1.125rem;

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

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

/*========== Responsive typography==========*/
@media screen and (min-width: 1150px) {
  :root {
    --h1-font-size: 3rem;
    --h2-font-size: 2.25rem;
    --h3-font-size: 1.75rem;
    --h4-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: 0.875rem;
    --button-font-size: 1.125rem;
  }
}

/*=============== 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);
}

h1, h2, h3 {
  line-height: 100%;
  font-family: var(--title-font);
  font-weight: var(--font-semi-bold);
}

p {
  line-height: 160%;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

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

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
  max-width: 1200px;
  margin-inline: 1.5rem;
}

.grid {
  display: grid;
  gap: 1rem;
}

.section {
  padding-block: 1.5rem;
}

.main {
  overflow: hidden;
  flex: 1 1 auto;
}

.wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/*=============== HEADER & NAV ===============*/
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(128, 128, 128, 0.36); 
  z-index: 10;
  display: none;
}

.header {
  position: fixed;
  width: 100%;
  bottom: 0;
  left: 0;
  background-color: transparent;
  z-index: var(--z-fixed);
}

.nav {
  position: relative;
  height: var(--header-height);
  display: flex;
  justify-content: end;
  align-items: center;
}

.logo {
  display: none;
}

.nav__close,
.toggle {
  display: inline-flex;
  cursor: pointer;
}

@media screen and (max-width: 1024px) {
  .nav__menu {
    position: fixed;
    bottom: 1rem;
    right: -100%;
    background-color: var(--body-color);
    width: 90%;
    height: 284px;
    padding: 2rem;
    transition: right .4s;
    border-radius: 16px;
  }
}

.toggle {
  background-color: var(--body-color);
  border: 2px solid var(--first-color-alt);
  padding: 1rem;
  border-radius: 100%;
}

.nav__list {
  display: flex;
  flex-direction: column;
  row-gap: 2rem;
}

.nav__link {
  color: var(--text-color);
  font-size: var(--h3-font-size);
  font-family: var(--title-font);
  color: var(--first-color);
  text-transform: uppercase;
  transition: all .3s;
}

.nav__link:hover {
  color: var(--text-color--light);
}

.nav__close {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
}

.show-menu {
  right: 1rem;
}

.nav__btn {
  background-color: var(--first-color);
  color: var(--body-color);
  padding: 16px;
  font-family: var(--title-font);
  font-weight: var(--font-medium);
  font-size: var(--button-font-size);
  border-radius: 16px;
  text-align: center;
  width: 174px;
  transition: all .3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav__btn:hover {
  background-color: #000;
}

/*=============== HOME ===============*/
.top__container {
  text-align: center;
  justify-content: center;
  padding: 12px 24px;
  border: 1px solid var(--text-color);
  border-radius: 1rem;
  justify-self: center; 
  max-width: 300px;
  margin: 0 auto;
}

.top__container__title {
  color: var(--first-color);
  text-transform: uppercase;
  font-weight: var(--font-medium);
}

.location__data {
  display: flex;
  align-items: center;
  gap: 4px;
  justify-self: center;
}

.location__text {
  font-family: var(--body-font);
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
}

.image__container {
  margin-top: 2rem;
  text-align: center;
  justify-content: center;
}

.main__image {
  width: 80px;
  border-radius: 100%;
  justify-self: center;
  border: 4px solid var(--first-color-alt);
}

.main__title {
  font-size: var(--h1-font-size);
  text-transform: uppercase;
  font-weight: var(--font-medium);
  color: var(--text-color--light);
}

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

.cases__home__container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.case__card {
  border: 2px solid var(--first-color-alt);
  border-radius: 1rem;
  padding: 16px;
  color: var(--text-color);
  transition: all .3s;
  align-content: space-between;
  max-width: 380px;
}

.case__card:hover {
  background-color: var(--first-color-alt);
}

.case__title {
  font-family: var(--title-font);
  font-weight: var(--font-medium);
  font-size: var(--h4-font-size);
}

.case__description {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  font-weight: var(--font-regular);
  color: var(--text-color--light);
}

.case__image__card {
  border-radius: 8px;
}

.cta__container {
  padding: 40px 0;
  text-align: center;
  justify-content: center;
  border-radius: 16px;
  background: linear-gradient(to bottom, #EFEEEC, #F6F6F6);
}

.cta__title {
  text-transform: uppercase;
  font-family: var(--title-font);
  font-weight: var(--font-medium);
  font-size: var(--h2-font-size);
  line-height: 100%;
}

.main__button {
  background-color: var(--first-color);
  color: var(--body-color);
  padding: 16px;
  width: 174px;
  justify-self: center;
  font-family: var(--title-font);
  font-weight: var(--font-medium);
  font-size: var(--button-font-size);
  border-radius: 16px;
  text-align: center;
  transition: all .3s;
}

.main__button:hover {
  background-color: #000;
}

/*=============== FOOTER ===============*/

.footer {
  padding-bottom: 4rem;
}

.footer__container {
  justify-content: center;
  margin-bottom: 2rem;
}

.footer__data,
.social__link {
  font-size: var(--small-font-size);
  color: var(--text-color);
}

.socials {
  display: flex;
  gap: 1rem;
  justify-content: center;
}


/*=============== ABOUT ===============*/
.video-container {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.video-thumb {
  display: block;
  width: 100%;
  border-radius: 1rem;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.video-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  backdrop-filter: blur(10px);
  background-color: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
  z-index: 100;
}

.video-popup-inner {
  width: 90%;
  max-width: 800px;
  aspect-ratio: 16/9;
  position: relative;
}

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

.skillset__container {
  text-align: center;
  margin-top: 40px;
}

.skillset__container h2 {
  color: #dbdad9;
}

.skillset {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

.skill {
  width: 56px;
}

.resume__title {
  color: var(--first-color);
  font-size: var(--h4-font-size);
  text-transform: uppercase;
}

.resume__card {
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--text-color--light);
}

.resume__card__title {
  color: var(--first-color);
  text-transform: uppercase;
}

.resume__card__subtitle {
  font-weight: var(--font-medium);
  font-family: var(--normal-font-size);
}

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


/*=============== WORK ===============*/

.case__study__list {
  list-style: disc;
  margin-left: 16px;
  line-height: 1.5;
}

.case__btns {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

/*=============== CONTACT ===============*/
.contact__container {
  gap: 3rem;
}

.contact__heading {
  text-transform: uppercase;
  font-size: var(--small-font-size);
}

.contact__link {
  font-size: var(--h4-font-size);
  color: var(--text-color);
  transition: all .3s;
}

.contact__link:hover {
  color: var(--text-color--light);
}

/*=============== BREAKPOINTS ===============*/
/* For small devices */
@media screen and (max-width: 320px){

}

@media screen and (max-width: 375px){

}

@media screen and (min-width: 376px) and (max-width: 425px){

}

@media screen and (min-width: 426px) and (max-width: 554px){

}

@media screen and (min-width: 553px) and (max-width: 767px){

}

/* For medium devices */
@media screen and (min-width: 768px){

  .about__container,
  .footer__container,
  .case__study__data {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
  }

  .socials {
    justify-self: end;
  }

  .top__home__container {
    margin-top: 4rem;
  }

  .case__oder {
    order: 1;
  }

  .btn {
    justify-self: start;
  }



}




/* For large devices */

@media screen and (min-width: 1024px){

  .header {
    width: 100%;
    top: 0;
    height: 4rem;
    left: 0;
    background-color: var(--body-color);
  }

  .nav {
    justify-content: space-between;
    height: 4rem;
  }

  .logo {
    display: initial;
  }

  .nav__logo {
    font-family: var(--title-font);
    text-transform: uppercase;
    color: var(--first-color);
    font-size: var(--h4-font-size);
    font-weight: var(--font-bold);
    transition: all .3s;
  }

  .nav__logo:hover {
    color: var(--text-color--light);
  }

  .nav__menu {
    width: initial;
    display: flex;
    align-items: center;
    gap: 2rem;
  }

  .nav__close,
  .toggle{
    display: none;
  }

  .nav__list {
    flex-direction: row;
    padding: 0;
    gap: 2rem;
  }

  .nav__link {
    color: var(--text-color);
    font-size: var(--normal-font-size);
    font-weight: var(--font-medium);
  }

  .nav__btn {
    padding: 8px;
    width: 160px;
  }

  .footer {
    padding-bottom: 0rem;
  }

}

@media screen and (min-width: 1200px){
  .container {
    margin-inline: auto;
  }
}