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

/* Custom Properties */
:root {
  --ff-primary: "Source Sans Pro", sans-serif;
  --ff-secondary: "Source Code Pro", monospace;

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

  --clr-light: #fef9e7;
  --clr-dark: #303030;
  --clr-accent: #1b4f72;
  --clr-accent2: #3498db;

  --fs-h1: 3rem;
  --fs-h2: 2.25rem;
  --fs-h3: 1.5rem;
  --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: 4.5rem;
    --fs-h2: 3.75rem;
    --fs-h3: 2.5rem;
    --fs-body: 1rem;
  }
}

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

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

/* 

General styles 

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

/*  Intro section  */
.intro {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4em 2em;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 2em;
}

.intro__img {
  width: 100%;
  display: flex;
  align-items: center;
}

.profile__img {
  max-width: 100%;
  border-radius: 50%;
  box-shadow: var(--bs);
}

.intro__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.section__subtitle {
  box-shadow: var(--bs);
  font-size: 1.5rem;
}

strong {
  font-weight: var(--fw-bold);
  display: block;
}

.section__subtitle {
  background-color: var(--clr-accent);
  width: 100%;
  padding: 1em;
  color: var(--clr-light);
}

/* Navigation */
nav {
  margin-right: 1em;
}

nav ul {
  display: flex;
  justify-content: end;
  align-items: center;
}

nav ul li {
  list-style: none;
  text-decoration: none;
  transition: all 0.3s ease 0s;

  padding: 5px 10px;
}

nav ul li a {
  color: var(--clr-dark);
  text-decoration: none;
}

nav ul li a:hover {
  color: var(--clr-accent2);
}

/* Mobile Menu */

.open .bar1 {
  -webkit-transform: rotate(45deg);
  transform: translateY(15px) rotate(45deg);
}

.open .bar2 {
  transform: translateX(-40px);
  opacity: 0;
}

.open .bar3 {
  -webkit-transform: rotate(-45deg);
  transform: translateY(-14px) rotate(-45deg);
}

.open .mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.mobile-menu {
  display: none;
  font-size: 1.5rem;
}

.mobile-menu li {
  margin-bottom: 10px;
  display: block;
  width: 100%;
  padding: 10px;
}

.mobile-menu a {
  text-decoration: none;
  color: var(--clr-light);
}

.mobile-menu li:hover {
  background-color: var(--clr-accent3);
}

@media (max-width: 750px) {
  nav {
    display: none;
  }

  #hamburger-icon {
    position: fixed;
    cursor: pointer;
    padding: 1rem;
    background-color: var(--clr-accent);
    width: 100%;
  }

  #hamburger-icon div {
    width: 44px;
    height: 4px;
    background-color: var(--clr-light);
    margin: 10px 0;
    transition: 0.3s ease-in-out;
  }

  .mobile-menu {
    text-align: center;
    margin: 0;
    padding: 0;
  }

  .intro {
    padding: 5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .intro__img {
    display: flex;
    justify-content: center;
    margin-top: 5rem;
  }

  .profile__img {
    width: 100%;
    height: auto;
    max-width: 400px;
  }
}

/* 

MY WORK

*/

.work {
  max-width: 1200px;
  margin: 0 auto;
  padding: 7em 2em 5em 2em;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 2em;
}

.work__subtitle {
  background-color: var(--clr-accent);
  width: 100%;
  padding: 1em;
  color: var(--clr-light);
  box-shadow: var(--bs);
  font-size: 1.5rem;
  grid-column: span 2;
  text-align: center;
}

.mptc__img {
  display: block;
  max-width: 100%;
  border-radius: 0%;
  box-shadow: none;
}

.work__img {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.fui__img {
  display: block;
  max-width: 100%;
  border-radius: 0%;
  box-shadow: none;
  display: flex;
}

a {
  color: var(--clr-dark);
  text-decoration: none;
}

a:hover {
  color: var(--clr-accent2);
}

/* 

Contact

*/
.h2__contact {
  text-align: center;
  margin-top: 0.5em;
  grid-row: 1/2;
  grid-column: span 2;
}

.main-contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  justify-content: center;
  align-items: center;
  min-height: 75vh;
  padding: 4em 2em;
  grid-gap: 2em;
}

.contact__info {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  grid-row: 2/3;
}

.contact {
  grid-row: 2/3;
}

.input {
  color: var(--clr-dark);
  border-radius: 5px;
  border: 2px solid var(--clr-dark);
  transition: all 0.3s;
  padding: 15px;
  margin-bottom: 15px;
  width: 100%;
  box-sizing: border-box;
  outline: 0;
}

.input:focus {
  border: 2px solid var(--clr-accent2);
}

textarea {
  height: 150px;
  line-height: 150%;
  resize: vertical;
}

[type="submit"] {
  font-family: var(--ff-secondary);
  width: 100%;
  background-color: var(--clr-accent2);
  border-radius: 5px;
  font-size: 2rem;
  padding: 10px 0 10px 0;
  transition: all 0.3s;
  margin-top: -4px;
  font-weight: 700;
}

[type="submit"]:hover {
  background: var(--clr-accent);
}

.contact__img {
  width: 100%;
  height: auto;
  max-width: 500px;
  border-radius: 50%;
  box-shadow: var(--bs);
}

@media only screen and (max-width: 750px) {
  .main-contact {
    display: flex;
    flex-direction: column;
  }

  .h2__contact {
    font-size: 3.75rem;
  }
}

/*

Thank you Page

*/

.main-thx {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  justify-content: center;
  align-items: center;
  min-height: 100vh;

  margin-top: 5rem;
  text-align: center;
}

.h2-thx {
  grid-area: 1/3/2/11;
}

.h3-thx {
  grid-area: 2/3/2/11;
}

.h3-thx:hover {
  color: var(--clr-accent2);
}

.thx-a {
  text-decoration: none;
  color: var(--clr-dark);
}

.thx-a:hover {
  color: var(--clr-accent5);
}
