/* FONTS */

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

/* VARIABLES */

:root {
  --primary-text-color: #1C0900;
  --secondary-text-color: #BFBFBF;
  --accent-color: #FFB600;
  --overlay-color: #09938b;
  --hyperlink-color: #1C0900;
  --hyperlink-alternate-color: rgb(0, 8, 225);
  --hover-color: #3ba7ff;
  --body-typeface: "Gantari", sans-serif;
  --heading-typeface: "Gantari", sans-serif;
  --background-color: #FFFFFF;
  --alt-background-color: rgb(255, 255, 255);
  --text-selection-background-color: #555555;
}

img,
svg {
  max-width: 100%;
  height: auto;
  vertical-align: top;
  object-fit: contain;
}

/* TYPOGRAPHY */

h1 {
  font-size: 4rem;
  font-family: var(--heading-typeface);
  margin-bottom: 1rem;
  font-weight: 600;
  color: var(--primary-text-color);
}

h2 {
  font-size: 2.5rem;
  font-family: var(--heading-typeface);
  margin-bottom: 1rem;
  font-weight: 600;
  color: var(--primary-text-color);
}

h3 {
  font-size: 1.5rem;
  font-family: var(--heading-typeface);
  margin-bottom: 1rem;
  font-weight: 600;
  color: var(--primary-text-color);
}

h4 {
  font-size: 1rem;
  font-family: var(--heading-typeface);
  margin-bottom: 1rem;
  font-weight: 400;
  color: var(--primary-text-color);
}

p {
  font-size: 1.25rem;
  font-family: var(--body-typeface);
  margin-bottom: 1rem;
  font-weight: 400;
  color: var(--primary-text-color);
  line-height: normal;
}

a {
  text-decoration: none;
}

a:link {
  color: var(--hyperlink-color);
  text-decoration: none;
}
a:visited {
  color: var(--hyperlink-color);
}
a:hover {
  color: var(--hover-color);
}
a:focus {
  outline: 1px solid var(--accent-color);
}
a:active {
  color: var(--hover-color); /* Tap on mobile */
}

/* DEMO REEL */

.hero-heading {
  display: flex;
  justify-content: center;
  margin: 1.5rem 5rem;
}

.hero-type {
  font-size: 2.5rem;
}

.demo-reel {
  position: relative;
  height: 75vh;
  margin-bottom: 3rem;
}

/* MASONRY */

.img {
  width: 100%;
}

.masonry {
  column-gap: 3.5rem;
}

.masonry .mItem {
  display: inline-block;
  width: 100%;
}

.mItem {
  margin-bottom: 1.5rem;
}

.mItem img {
  border-radius: 1rem;
}

/* PORTFOLIO */

.portfolio-intro {
  display: flex;
  justify-content: center;
}

.portfolio-title {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.portfolio-body {
  padding: 1rem;
}

/* SKETCHBOOK */

.sketchbook-intro {
  display: flex;
  justify-content: center;
}

.sketchbook-title {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.sketchbook-body {
  padding: 1rem;
}

/* ABOUT */

.about {
  display: grid;
  grid-gap: 3rem;
  padding: 1rem;
  flex: 1;
  grid-template-columns: 1fr;
}

.about-image img {
  border-radius: 5%;
}

.about-item-1 {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
}

.about-item-2 {
  grid-column: 1 / 2;
  grid-row: 2 / 3;
  padding-bottom: 1rem;
}

.about-subhead {
  margin: 2.5rem 0 1rem 0rem;
}

.awards-item {
  font-size: 1.25rem;
  font-family: var(--body-typeface);
  text-decoration: none;
  color: var(--primary-text-color);
}

/* TOP NAV */

.site-header {
  display: flex;
  flex-direction: row;
  padding: 2rem 1rem;
}

.logotype {
  font-size: 2rem;
  display: flex;
  justify-content: left;
  margin-bottom: 2rem;
}

.nav-list {
  display: none; /* hidden by default */
  position: fixed;
  top: 0;
  right: -100%; /* off-screen */
  height: 100vh;
  width: 70%;
  background: var(--hover-color);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: right 0.3s ease;
  z-index: 1000;
}

.nav--open .nav-list {
  right: 0; /* slide-in when open */
  display: flex;
}

.nav-link {
  display: inline-block;
  position: relative;
  cursor: pointer;
  font-size: 1rem;
  font-family: var(--heading-typeface);
  font-weight: 500;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.4s;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 0.25rem;
  bottom: -0.5rem;
  left: 0;
  background-color: var(--accent-color);
  transform: scaleX(0); /* Hide line by scaling to 0 */
  transform-origin: bottom right;
  transition: transform 0.3s ease-out;
}

.nav-link:hover::after {
  transform: scaleX(1); /* Show line on hover */
  transform-origin: bottom left;
}

.nav-item {
  transition: all 0.3s ease-in-out;
  margin: 1rem 0;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--accent-color);
}

.hamburger {
  display: block; /* mobile default = visible */
  cursor: pointer;
  position: absolute;
  top: 1rem;
  right: 2rem;
  z-index: 1001;
}

.bar {
  height: 2px;
  width: 2rem;
  background-color: #1C0900;
  margin: 5px 0;
  opacity: 0.8;
  transition: all 0.3s ease-in-out;
}

.hamburger--open .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger--open .bar:nth-child(2) {
  opacity: 0;
}

.hamburger--open .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* FOOTER */

.global-footer {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  background-color: #FFB600;
  margin-top: 3rem;
}

.socials-list {
  display: flex;
  gap: 1rem;
}

.fa {
  font-size: 1.5rem;
}

/* MEDIA QUERIES */

/* Small devices (phones, 320px and up) */

@media (min-width: 320px) {

  .masonry-portfolio {
    column-count: 1;
  }

  .masonry-sketchbook {
    column-count: 1;
  }

  .global-footer {
    display: flex;
    flex-direction: column;
    column-count: 1;
    column-gap: 2rem;
    background-color: #FFB600;
    padding: 1rem;
  }

  .global-footer :nth-child(1) {
    order: 2;
  }

  .global-footer :nth-child(2) {
    order: 3;
  }

  .global-footer :nth-child(3) {
    order: 1;
  }

  .socials-list {
    margin-bottom: 1.5rem;
  }

  .fineprint {
    font-size: 1rem;
  }

  /* ABOUT */

  .about-item-1 {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    padding-top: 1rem;
  }

  .about-item-2 {
    grid-column: 1 / 2;
    grid-row: 2 / 2;
    padding-top: 2rem;
  }

  .about-bio {
    font-size: 1.5rem;
    max-width: 90%;
    margin-bottom: 5rem;
  }

  .about-image {
    max-width: 100%;
  }

}


/* Medium devices (tablets, 768px and up) */

@media (min-width: 768px) {

.site-header {
  display: flex;
  flex-direction: column;
}

  .logotype {
    font-size: 4rem;
    justify-content: center;
  }

  /* TOP NAVIGATION*/

  /* hamburger hidden */
  .hamburger {
    display: none;
  }

  /* show nav-list horizontally */
  .nav-list {
    display: flex !important; /* force visible */
    position: static; /* remove mobile fixed positioning */
    flex-direction: row;
    justify-content: center;
    column-gap: 2rem;
    height: auto;
    width: auto;
    background: none;
    transition: none;
  }

  .nav-item {
    margin: 0;
  }

  .nav-link {
    color: black; /* or your desktop nav color */
    font-size: 1rem;
  }

  .portfolio-title {
    font-size: 4rem;
  }

  .masonry-portfolio {
    column-count: 2;
  }

  .sketchbook-title {
  font-size: 4rem;
  }

  .masonry-sketchbook {
    column-count: 2;
  }

  .global-footer {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 1.5rem 4rem;
  }

  .global-footer :nth-child(1) {
    order: 1;
  }

  .global-footer :nth-child(2) {
    order: 2;
  }

  .global-footer :nth-child(3) {
    order: 3;
  }

  .fineprint {
    font-size: 1rem;
  }

}

/* Large devices (desktops, 992px and up) */

@media (min-width: 992px) {

  .masonry-sketchbook {
    column-count: 3;
  }

  /* PORTFOLIO */

  .portfolio-title {
    margin-top: 2rem;
  }

  .portfolio-body {
    padding: 0 4rem;
  }

  /* SKETCHBOOK */

  .sketchbook-title {
    margin-top: 2rem;
  }

  .sketchbook-body {
    padding: 0 4rem;
  }

  /* ABOUT */

  .about {
    padding: 0 4rem;
    grid-template-columns: 1fr 1fr;
    grid-gap: 3rem;
  }

  .about-item-1 {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    padding-top: 4rem;
  }

  .about-item-2 {
    grid-column: 2 / 2;
    grid-row: 1 / 2;
    padding-top: 4rem;
  }

  .about-image {
    max-width: 85%;
  }

}

/* XX-Large devices (larger desktops, 1400px and up) */

@media (min-width: 1400px) {
  
  /* ABOUT */

  .about-bio {
    font-size: 2.25rem;
    max-width: 100%;
    margin-bottom: 4rem;
  }

  .about-item-2 {
    grid-column: 2 / 2;
    grid-row: 1 / 2;
    padding-top: 4rem;
    max-width: 950px;
  }

}
