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

/* Custom Properties, update these for your own design */

:root {
  --ff-primary: "Source Code Pro";
  --ff-secondary: "Source Code Pro";

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

  --clr-light: #fff;
  --clr-dark: #303030;
  --clr-accent: #16e0bd;

  --fs-h1: 3rem;
  --fs-h2: 2.25rem;
  --fs-h3: 1.25rem;
  --fs-body: 1rem;

  --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);
}

@media (min-width: 800px) {
  :root {
    --fs-h1: 3.25rem;
    --fs-h2: 3rem;
    --fs-h3: 1.25rem;
    --fs-body: 0.75rem;
  }
}

/* General styles */

/* endable this to add smooth scrolling */
/* html {
    scroll-behavior: smooth;
} */

html {
  scroll-behavior: smooth;
}

body {
  background: var(--clr-light);
  color: var(--clr-dark);
  margin: 0;
  font-family: var(--ff-primary);
  font-size: var(--fs-body);
  line-height: 1.6;
}

section {
  padding: 5em 2em;
}

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

strong {
  font-weight: var(--fw-bold);
}
/*
:focus {
  outline: 3px solid var(--clr-accent);
  outline-offset: 6px;
}

/* Buttons */

.btn {
  display: inline-block;
  padding: 0.5em 2.5em;
  background: var(--clr-accent);
  color: var(--clr-dark);
  text-decoration: none;
  cursor: pointer;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: var(--fw-bold);
  transition: transform 200ms ease-in-out;
  outline: 3px solid var(--clr-accent);
  outline-offset: 6px;
}

.btn:hover {
  transform: scale(1.1);
}

/* Typography */

h1,
h2,
h3 {
  line-height: 1;
  margin: 0;
}

h1 {
  font-size: var(--fs-h1);
}
h2 {
  font-size: var(--fs-h2);
}
h3 {
  font-size: var(--fs-h3);
}

.section_title_about,
.section_title_intro,
.section_title_explore {
  margin-bottom: 0.25em;
  max-height: 100%;
}

.section_title_intro {
  font-weight: var(--fw-reg);
}

.section_title_intro strong {
  display: block;
}

.section_subtitle {
  margin: 0;
  font-size: var(--fs-h3);
}

.section_subtitle_intro,
.section_subtitle_about {
  background: var(--clr-accent);
  padding: 0.25em 1em;
  font-family: var(--ff-secondary);
  margin-bottom: 1em;
  max-height: 35%;
}

.section_subtitle_work {
  color: var(--clr-accent);
  font-weight: var(--fw-bold);
  margin-bottom: 2em;
}

/* HEADER */

header {
  display: flex;
  justify-content: space-between;
  padding: 1em;
}

.logo {
  max-width: 250px;
}

.nav {
  position: fixed;
  background: var(--clr-dark);
  color: var(--clr-light);
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;

  transform: translateX(100%);
  transition: transform 250ms cubic-bezier(0.5, 0, 0.5, 1);
}

.nav_list {
  list-style: none;
  display: flex;
  height: 100%;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav_link {
  color: inherit;
  font-weight: var(--fw-bold);
  font-size: var(--fs-h2);
  text-decoration: none;
}

.nav_link:hover {
  color: var(--clr-accent);
}

.nav_toggle {
  padding: 0.5em;
  background: transparent;
  border: 0;
  cursor: pointer;
  position: absolute;
  right: 1em;
  top: 1em;
  z-index: 1000;
}

.nav_open .nav {
  transform: translateX(0);
}

.nav_open .nav_toggle {
  position: fixed;
}

.nav_open .hamburger {
  transform: rotate(0.625turn);
}

.nav_open .hamburger::before {
  transform: rotate(90deg) translateX(-6px);
}

.nav_open .hamburger::after {
  opacity: 0;
}

.hamburger {
  display: block;
  position: relative;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  background: var(--clr-accent);
  width: 2em;
  height: 3px;
  border-radius: 1em;
  transition: transform 250ms ease-in-out;
}

.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
}

.hamburger::before {
  top: 6px;
}
.hamburger::after {
  bottom: 6px;
}

/*  INTRO SECTION  */

.intro {
  position: relative;
}

.intro_img {
  box-shadow: var(--bs);
}

.section_subtitle_intro {
  display: inline-block;
}

@media (min-width: 600px) {
  .intro {
    display: grid;
    width: min-content;
    margin: 0 auto;
    grid-column-gap: 1em;
    grid-template-areas:
      "img title"
      "img subtitle";
    grid-template-columns: min-content max-content;
  }

  .intro_img {
    grid-area: img;
    min-width: 250px;
    position: relative;
    z-index: 2;
  }

  .section_subtitle_intro {
    align-self: start;
    grid-column: -1 / 1;
    grid-row: 2;
    text-align: right;
    position: relative;
    left: -1em;
    width: calc(100% + 1.5em);
  }
}

/*  MY WORK  */

.my_works {
  background-color: var(--clr-dark);
  background-image: url(images/education.jpg);
  background-size: cover;
  background-blend-mode: multiply;
  color: var(--clr-light);
  text-align: center;
}

.section_title_work {
  color: var(--clr-accent);
  position: relative;
}

.section_title_work::after {
  content: "";
  display: block;
  width: 2em;
  height: 1px;
  margin: 0.5em auto 1em;
  background: var(--clr-light);
  opacity: 0.25;
}

.works {
  margin-bottom: 3em;
}

.work {
  max-width: 300px;
  margin: 0 auto;
}

@media (min-width: 800px) {
  .works {
    display: flex;
    max-width: 1500px;
    margin-left: auto;
    margin-right: auto;
  }

  .work + .work {
    margin-left: 2em;
  }
}

/* ABOUT */

.about {
  max-width: 1000px;
  margin: 0 auto;
}

.about_img {
  box-shadow: var(--bs);
}

@media (min-width: 600px) {
  .about {
    display: grid;
    grid-template-columns: 1fr 300px;
    grid-template-areas:
      "title img"
      "subtitle img"
      "text img";
    grid-column-gap: 2em;
  }

  .section_title_about {
    grid-area: title;
  }

  .section_subtitle_about {
    grid-column: 1 / -1;
    grid-row: 2;
    position: relative;
    left: -1em;
    width: calc(100% + 2em);
    padding-left: 1em;
    padding-right: calc(200px + 4em);
  }

  .about_img {
    grid-area: img;
    position: relative;
    z-index: 2;
  }
}

/* Explore */

.explore {
  background-color: var(--clr-dark);
  color: var(--clr-light);
  text-align: center;
}

.section_subtitle_explore {
  color: var(--clr-accent);
  font-family: "Source Code Pro";
  margin-bottom: 1em;
}

.explore_list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.explore_item {
  background: var(--clr-dark);
  overflow: hidden;
  text-decoration: none;
}

.explore_img {
  transition: transform 750ms cubic-bezier(0.5, 0, 0.5, 1), opacity 250ms linear;
}

.explore_item:focus {
  position: relative;
  z-index: 2;
}

.explore_img:hover,
.explore_item:focus .explore_img {
  transform: scale(1.2);
  opacity: 0.5;
}

.explore_item h4 {
  color: var(--clr-light);
  margin: 0.5em;
  font-weight: normal;
}

/* FOOTER */

.footer {
  background: #111;
  color: var(--clr-accent);
  text-align: center;
  padding: 2.5em 0;
  font-size: var(--fs-h4);
  font-family: Source Code Pro;
}

.footer a {
  color: inherit;
  text-decoration: none;
}

.footer_link:hover,
.social_list_link:hover {
  opacity: 0.7;
}

.footer_link:hover {
  text-decoration: underline;
}

.social_list {
  list-style: none;
  display: flex;
  justify-content: center;
  margin: 2em 0 0;
  padding: 0;
}

.social_list_item {
  margin: 0 0.5em;
}

.social_list_link {
  padding: 0.5em;
}

/* PORTFOLIO PAGES */

.portfolio {
  max-width: 1000px;
  margin: 0 auto;
}

.portfolio_img {
  box-shadow: var(--bs);
}

@media (min-width: 600px) {
  .portfolio {
    display: grid;
    grid-template-columns: 1fr 300px;
    grid-template-areas:
      "title img"
      "subtitle img"
      "text img";
    grid-column-gap: 2em;
  }

  .section_title_portfolio {
    grid-area: title;
  }
}

.section_subtitle_research {
  display: inline-block;
  background: var(--clr-accent);
  padding: 0.25em 1em;
  font-family: var(--ff-secondary);
  margin-bottom: 1em;
}

@media (min-width: 600px) {
  .section_subtitle_research {
    align-self: start;
    grid-column: -1 / 1;
    grid-row: 2;
    text-align: right;
    position: relative;
    left: -1em;
    width: calc(100% + 1.5em);
  }
}

.section_subtitle_portfolio {
  align-self: start;
  grid-column: -1 / 1;
  grid-row: 2;
  text-align: left;
  position: relative;
  left: -1em;
  width: calc(100% + 1.5em);
}

.portfolio_img {
  grid-area: img;
  min-width: 250px;
  position: relative;
  z-index: 2;
  display: block;
  max-width: 100%;
}

.section_subtitle_portfolio {
  background: var(--clr-accent);
  padding: 0.25em 1em;
  font-family: var(--ff-secondary);
  margin-bottom: 1em;
}

.about_body a {
  color: var(--ff-primary);
}

.about_body a:hover {
  opacity: 0.7;
  text-decoration: underline;
  color: var(--ff-accent);
}

/*TEACHING*/

.teaching {
  max-width: 1000px;
  margin: 0 auto;
}

.teaching_img {
  box-shadow: var(--bs);
}

@media (min-width: 600px) {
  .teaching {
    grid-template-columns: 1fr 300px;
    grid-template-areas:
      "title img"
      "subtitle img"
      "text img";
    grid-column-gap: 2em;
  }

  .section_title_teaching {
    grid-area: title;
    margin-bottom: 0.25em;
  }
}

.section_subtitle_teaching {
  align-self: start;
  grid-column: -1 / 1;
  grid-row: 2;
  text-align: left;
  position: relative;
  left: -1em;
  width: calc(100% + 1.5em);
}

.teaching_img {
  grid-area: img;
  min-width: 250px;
  position: relative;
  z-index: 2;
}

.section_subtitle_teaching {
  background: var(--clr-accent);
  padding: 0.25em 1em;
  font-family: var(--ff-secondary);
  margin-bottom: 1em;
}

/*DIGITAL PAGE */

.digital_intro {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  margin-bottom: 4em;
}

.section_title_digital {
  margin-bottom: 0.25em;
  margin-right: 0.5em;
}

.section_title_digital {
  font-weight: var(--fw-reg);
}

.about_digital p {
  margin: 0;
  padding: 0;
  margin-left: 1em;
}

.about_digital {
  border-left: 8px solid var(--clr-accent);
}

@media (max-width: 600px) {
  .digital_intro {
    display: block;
  }

  .about_digital {
    margin: 2em 0em;
    border-left: none;
    border-top: 4px solid var(--clr-accent);
  }

  .about_digital p {
    margin-left: 0em;
    margin-top: 2em;
  }
}

.digital {
  max-width: 1000px;
  margin: 0 auto;
  padding-top: 1em;
}

@media (min-width: 600px) {
  .digital {
    display: grid;
    grid-template-columns: 1fr 300px;
    grid-template-areas:
      "title img"
      "subtitle img"
      "text img";
    grid-column-gap: 2em;
  }
}

.section_title_digital {
  grid-area: title;
  margin-bottom: 0;
}

.section_subtitle_digital {
  align-self: start;
  grid-column: -1 / 1;
  grid-row: 2;
  text-align: left;
  position: relative;
  left: -1em;
  width: calc(100% + 1.5em);
}

.digital_img {
  grid-area: img;
  min-width: 250px;
  position: relative;
  z-index: 2;
}

.digital_img {
  border: 2px solid #ddd; /* Gray border */
  border-radius: 4px; /* Rounded border */
  padding: 5px;
}

.digital_img:hover {
  box-shadow: 0 0 3px 2px rgba(0, 140, 186, 0.5);
}

.section_subtitle_digital {
  background: var(--clr-accent);
  padding: 0.25em 1em;
  font-family: var(--ff-secondary);
  margin-bottom: 1em;
}

/* --------------------- ----------------------- */
/* -----------------GEORESUME------------------ */
/* --------------------- ----------------------- */


body.georesume-body {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  margin: 0;
}

.georesume-title {
  font-family: system-ui, -apple-system, system-ui, "Helvetica Neue", Helvetica, Arial, sans-serif;
  width: 100%;
  text-align: center;
  padding-top: 30px;
  padding-bottom: 10px;
}

#map {
  height: 70%;
  width: 100%;
}

.resume-buttons {
  margin: 0 auto;
  display: flex;
}

.resume-buttons button {
  align-items: center;
  background-color: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: .25rem;
  box-shadow: rgba(0, 0, 0, 0.02) 0 1px 3px 0;
  box-sizing: border-box;
  color: rgba(0, 0, 0, 0.85);
  cursor: pointer;
  display: inline-flex;
  font-family: system-ui, -apple-system, system-ui, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: 600;
  justify-content: center;
  line-height: 1.25;
  margin: 0;
  min-height: 3rem;
  padding: calc(.875rem - 1px) calc(1.5rem - 1px);
  position: relative;
  text-decoration: none;
  transition: all 250ms;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  vertical-align: baseline;
  width: auto;
  margin: 0 auto;
  display: flex;
}

.resume-buttons button:hover,
.resume-buttons button:focus {
  border-color: rgba(0, 0, 0, 0.15);
  box-shadow: rgba(0, 0, 0, 0.1) 0 4px 12px;
  color: rgba(0, 0, 0, 0.65);
}

.resume-buttons button:hover {
  transform: translateY(-1px);
}

.resume-buttons button:active {
  background-color: #F0F0F1;
  border-color: rgba(0, 0, 0, 0.15);
  box-shadow: rgba(0, 0, 0, 0.06) 0 2px 4px;
  color: rgba(0, 0, 0, 0.65);
  transform: translateY(0);
}