/* ==================== *\
   Base Styles
\* ==================== */

:root {
  /* Colors */
  --clr-primary: #212529;
  --clr-highlight: #9f4500;
  --clr-text-dark: #333;
  --clr-text-light: #fff;
  --clr-facebook: #0165e1;
  --clr-facebook-dark: #013d87;
  --clr-text-body: var(--clr-text);
  --clr-bg-dark: var(--clr-primary);

  /* Font Size Scale */
  --base-size: 1rem;
  --icon-smaller: 1.35rem;
  --icon-small: 1.75rem;
  --icon-large: 2.25rem;
  --icon-larger: 2.5rem;
  --h1-size: clamp(1.75rem, 2.5vw, 3rem);
  --h2-size: clamp(1.5rem, 2vw, 2.5rem);
  --h3-size: clamp(1rem, 1.75vw, 1.85rem);
  --body-size: clamp(1rem, 1.5vw, 1.15rem);
  --body-small-size: var(--small-size);
}

body {
  font-family: "Noto Serif", serif;
  color: var(--clr-text-body);
  font-size: var(--body-size);
}

.container {
  max-width: 90rem;
  margin: 0 auto;
}

section {
  padding: clamp(6rem, 2vw, 10rem) clamp(1rem, 2vw, 5rem);
}

.main {
  padding-top: clamp(2rem, 2.5vw, 10rem);
  overflow: hidden;
}

/* ==================== *\
   Typography
\* ==================== */

.heading-primary {
  font-size: var(--h1-size);
}

.heading-secondary {
  font-size: var(--h2-size);
  text-align: center;
}

.heading-secondary::after {
  content: "";
  display: block;
  width: 2.5rem;
  height: 2px;
  margin: 0.5rem auto;
  background-color: var(--clr-bg-dark);
}

.heading-tertiary {
  font-size: var(--h3-size);
  margin-bottom: 2rem;
}

/* ==================== *\
   Header & Navigation
\* ==================== */

.header-nav {
  background-color: var(--clr-bg-dark);
  position: fixed;
  width: 100vw;
  z-index: 9999;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
}

.nav-logo {
  width: 1.75rem;
}

.nav-mobile-menu {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-right: 1rem;
}

.line {
  display: block;
  width: 1.5rem;
  height: 2px;
  border-radius: 100px;
  background-color: #fff;
  transition: all 0.5s ease;
}

.nav-links {
  position: absolute;
  top: 100%;
  left: 0;
  transform: translateX(-100%);
  background-color: var(--clr-bg-dark);
  color: var(--light-color);
  width: 100vw;
  padding: 1.5rem 1.5rem 2.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  transition: transform 0.5s ease-in-out;
}

.nav-link {
  color: var(--clr-text-light);
}

.nav-links.open {
  transform: translateX(0);
}

.nav-mobile-menu.open .line-1 {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-mobile-menu.open .line-2 {
  opacity: 0;
}

.nav-mobile-menu.open .line-3 {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media screen and (min-width: 768px) {
  .nav {
    padding: 1rem 2rem;
  }

  .nav-mobile-menu {
    display: none;
  }

  .nav-links.hidden {
    transform: translateX(0);
  }

  .nav-links {
    position: relative;
    transform: translateX(0);
    color: var(--light-color);
    width: auto;
    padding: 0;
    display: flex;
    flex-direction: row;
    transition: transform 0.5s ease-in-out;
  }
}

/* ==================== *\
   #Hero
\* ==================== */

.hero {
  text-align: center;
  display: grid;
  gap: 5rem;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.hero-description {
  margin: 1rem auto 0 auto;
}

.hero-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-contact p {
  font-weight: 700;
  font-size: 1.15rem;
}

.hero-contact-info {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.hero-link {
  color: var(--clr-text-body);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero-link:hover {
  text-decoration: underline;
}

.hero-icon {
  font-size: var(--icon-smaller);
}

.info-phone,
.info-email {
  font-weight: 600;
  letter-spacing: 1px;
}

.social-link {
  font-weight: bold;
  color: var(--clr-text-body);
  cursor: pointer;
}

.social-link:hover {
  color: var(--clr-facebook);
}

.facebook {
  color: var(--clr-facebook);
  display: inline-block;
  margin-top: 0.5rem;
  transition: all 0.25s ease-in-out;
}

.facebook:hover {
  color: var(--clr-facebook-dark);
}

.info {
  background-color: var(--clr-bg-dark);
  color: #fff;
  padding: 1rem;
  text-align: center;
  letter-spacing: 1px;
}

.hero-image {
  width: 85%;
  margin: 0 auto;
}

.about-container {
  display: grid;
  gap: 3rem;
}

.about-img {
  width: 80%;
  margin: 2rem auto;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  text-align: justify;
  padding: 0 0.75rem;
}

.about-author {
  font-weight: 600;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.25rem;
}

.about-author::before,
.about-author::after {
  content: "";
  width: 1.5rem;
  border-bottom: 1.5px solid var(--clr-bg-dark);
  border-radius: 100%;
  margin: 0 0.75rem;
}

.about-highlight {
  font-weight: 600;
  font-style: italic;
  color: var(--clr-highlight);
}

@media screen and (min-width: 768px) {
  .hero-description {
    max-width: 50ch;
  }

  .hero-image {
    width: 60%;
  }
  .about-img {
    width: 50%;
  }

  .about-text {
    padding: 0 4rem;
  }

  .info {
    padding: 1.75rem 1rem;
  }
}

@media screen and (min-width: 1440px) {
  .hero {
    text-align: left;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    gap: 2rem;
  }

  .hero-text {
    gap: 0.75rem;
  }

  .hero-description {
    margin: 1rem 0;
  }

  .hero-contact {
    align-items: start;
  }

  .hero-contact-info {
    gap: 0.25rem;
    align-items: start;
  }

  .hero-info {
    margin-top: 1.5rem;
    gap: 0.5rem;
    font-size: var(--base-size);
  }

  .hero-image {
    width: 75%;
  }

  .about-container {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    gap: 1rem;
    margin-top: 4rem;
  }

  .about-img {
    width: 60%;
  }
}

/* ==================== *\
   #Works
\* ==================== */

.work {
  text-align: center;
  padding: 5rem 0;
}

.work-images {
  display: grid;
  gap: 3.5rem;
}

.work-images img {
  width: 100%;
  height: 100%;
  max-width: 30rem;
  object-fit: cover;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease-in-out;
  margin: 0 auto;
}

.solo-img {
  max-width: 30rem;
  margin: 0 auto;
}

.works-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}

@media screen and (min-width: 768px) {
  .work-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    margin: 0 2rem;
  }
}

/* ==================== *\
   #Footer
\* ==================== */

.footer {
  background-color: var(--clr-bg-dark);
  color: var(--clr-text-light);
  padding: 2rem 1rem;
}

.footer-copyright {
  font-size: 0.75rem;
  text-align: center;
}

.footer-logo {
  width: 10rem;
  margin: 0 auto;
}

.footer-contact {
  display: none;
}

.footer-links {
  margin-top: 1rem;
  font-size: 0.875rem;
}

.footer-links i {
  font-size: var(--icon-smaller);
}

.footer-links a {
  display: flex;
  gap: 1rem;
  color: #fff;
}

.footer-social {
  display: none;
}

@media screen and (min-width: 768px) {
  .footer-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: start;
    justify-items: center;
    gap: 3rem;
  }
  .footer-contact {
    display: block;
  }
}

@media screen and (min-width: 1024px) {
  .footer {
    padding: 3rem 2rem;
  }
  .footer-container {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-logo {
    width: 12.5rem;
    margin: 0;
  }

  .footer-social {
    display: block;
  }
}

/* ==================== *\ 
   #Not Found 
\* ==================== */

.not-found p {
  margin-top: 1.5rem;
}

.not-found a {
  font-weight: 700;
  color: var(--clr-bg-dark);
}

.not-found a:hover {
  text-decoration: underline;
}

/* ==================== *\ 
   #Helpers 
\* ==================== */
.fixed {
  position: fixed;
}

.hidden {
  transform: translateX(-100%);
}

.animate {
  transition: all 0.8s ease;
  opacity: 0;
  overflow: hidden;
}

.animate-left {
  transform: translateX(-130%);
}

.animate-right {
  transform: translateX(130%);
}

.animate.show {
  transform: translateX(0);
  opacity: 1;
}

.icon-smaller {
  font-size: var(--icon-smaller);
}

.icon-small {
  font-size: var(--icon-small);
}

.icon-large {
  font-size: var(--icon-large);
}

.icon-larger {
  font-size: var(--icon-larger);
}
