/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Generic (CALLED IN NORMALIZE.CSS)
	- Normalize
	- Box sizing
	- Media width
# Base
	- Typography
	- Elements
	- Links
# Components
	- Header
	- Main
	- Footer
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Base
--------------------------------------------------------------*/

/* Typography
--------------------------------------------- */
body {
  margin: 0;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: #282828;
  background-color: #fff;

  /* background-image: url('../images/about-bg.svg');
  background-repeat: no-repeat;
  background-size: 500%;
  background-position-x: center;
  background-position-y: 44rem; */
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  line-height: 1.2;
}

p {
  margin: 0;
}

::selection {
  background-color: #e1faf8;
  color: #282828;
}

/* @media (min-width: 48em) {
  body {
    background-size: 200%;
    background-position-y: 36rem;
  }
}

@media (min-width: 64em) {
  body {
    background-size: 150%;
    background-position-y: 38rem;
  }
}

@media (min-width: 90em) {
  body {
    background-size: contain;
    background-position-y: 38rem;
  }
}

@media (min-width: 120em) {
  body {
    background-position-y: 35rem;
  }
}

@media (min-width: 160em) {
  body {
    background-position-y: 32rem;
  }
} */

/* Elements
--------------------------------------------- */

/* Links
--------------------------------------------- */
a {
  text-decoration: none;
  color: #282828;
}

a:focus {
  color: #282828;
  outline: 1px dotted #00000070;
  box-shadow: 0 0 6px #00000070;
}

a:active,
a:visited {
  color: #282828;
}

/*--------------------------------------------------------------
# Components
--------------------------------------------------------------*/
.site-wrapper {
  /* This is for very large screens */
  max-width: 120rem;
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
  margin: 2.5rem auto 6rem;
  padding: 0 1rem;
}

@media (min-width: 48em) {
  .site-wrapper {
    margin: 4rem auto 6rem;
    padding: 0 4rem;
  }
}

@media (min-width: 64em) {
  .site-wrapper {
    margin: 6rem auto;
    padding: 0 6rem;
  }
}

@media (min-width: 90em) {
  .site-wrapper {
    margin: 7rem auto 6rem;
    max-width: 74rem;
  }
}

/* Header
--------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  padding: 0 1.5rem;
  background-color: #ffffff80;
  z-index: 1;
  backdrop-filter: blur(10px);
}

.site-header-inner {
  margin: 0 auto;
  max-width: 64rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-name {
  font-weight: 700;
  font-size: 1.5rem;
}

.site-navigation ul {
  display: flex;
  justify-content: flex-end;
  gap: 1.5rem;
  padding: 0;
  font-weight: 700;
  line-height: 2.5rem;
  list-style: none;
}

.site-navigation a {
  position: relative;
}

.site-navigation a::after {
  content: '';
  position: absolute;
  display: block;
  width: 100%;
  height: 1rem;
  top: 0.5rem;
  left: 0;
  background-color: #efefef;
  opacity: 0;
  z-index: -1;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.site-navigation a:hover::after {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 48rem) {
  .site-header {
    padding: 0 2.5rem;
  }

  .site-navigation ul {
    gap: 2rem;
  }
}

@media (min-width: 64rem) {
  .site-header {
    padding: 0 2.5rem;
  }
}

/* Main
--------------------------------------------- */
main {
  display: flex;
  flex-direction: column;
  gap: 8rem;
}

/* Page Header */
.hero {
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  width: 98%;
  height: 31rem;
  top: -0.625rem;
  left: 50%;
  transform: translateX(-50%);
  border: 1px solid #282828;
  z-index: -2;
}

.hero-intro {
  margin-left: 0.3rem;
  font-size: 2.75rem;
  font-weight: 700;
}

.hero-title {
  margin: 2rem 0 3rem;
  font-family: 'Playwrite DE SAS', cursive;
  font-size: 5.25rem;
  text-align: center;
}

.hero-tagline {
  font-size: 1.75rem;
  font-weight: 700;
  text-align: right;
}

.hero-tagline-highlight {
  position: relative;
  display: inline-block;
}

.hero-tagline-highlight:first-child {
  padding-bottom: 1rem;
}

.hero-tagline-highlight::after {
  content: '';
  position: absolute;
  width: 98%;
  height: 3.5rem;
  top: 1.5rem;
  right: 0;
  background-color: #efefef;
  z-index: -1;
}

.hero-tagline-dash {
  display: inline-block;
  margin: 0 1rem;
  transform: scaleX(1.8);
}

@media (min-width: 48rem) {
  main {
    gap: 10rem;
  }

  .hero::after {
    width: 111%;
    height: 25rem;
  }

  .hero-tagline-highlight::after {
    width: 110%;
    height: 2.5rem;
    top: 1.21rem;
    left: 0;
  }

  .hero-content {
    max-width: 40rem;
    margin: 0 auto;
  }

  .hero-intro {
    margin-left: 0;
    font-size: 3rem;
  }

  .hero-title {
    font-size: 6.5rem;
    margin: 2rem 0 5rem;
  }

  .hero-tagline {
    font-size: 1.875rem;
  }
}

@media (min-width: 64rem) {
  .hero::after {
    width: 55rem;
    height: 26rem;
    top: -10px;
    right: 0;
  }

  .hero-tagline-highlight::after {
    width: 110%;
    height: 3rem;
    top: 1.21rem;
    left: 0;
  }

  .hero-content {
    max-width: 50rem;
  }

  .hero-tagline {
    font-size: 2rem;
  }
}

/* Section: About */
.about {
  scroll-margin-top: 13rem;
}

.about-content p {
  font-family: 'Fira Code', monospace;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 2rem;
}

@media (min-width: 48rem) {
  .about-content {
    margin: 0 auto;
    max-width: 90%;
  }
}

@media (min-width: 64rem) {
  .about-content {
    max-width: 70%;
  }
}

/* Section: Projects */
.projects {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  scroll-margin-top: 10rem;
}

.projects h2 {
  font-size: 3rem;
}

.project-card-info h3 {
  font-size: 1.75rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 16rem;
}

.project-card-info {
  min-width: 16rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.project-card-info p {
  font-size: 1rem;
}

.projects-link {
  flex-grow: 1;
  background-color: #efefef;
  transition: background-color 0.5s ease;
}

.projects-link:hover {
  background-color: #e1faf8;
}

@media (min-width: 48rem) {
  .projects {
    gap: 0;
  }

  .projects h2 {
    text-align: center;
  }

  .project-card {
    flex-direction: row;
    gap: 1.5rem;
    height: 15rem;
  }

  .project-card:nth-child(even) {
    flex-direction: row-reverse;
  }

  .project-card-info {
    min-width: 12rem;
    gap: 0.5rem;
    padding-top: 1.5rem;
  }

  .project-card-info p {
    gap: 0.5rem;
    font-size: 1.125rem;
  }
}

@media (min-width: 60rem) {
  .project-card {
    height: 18rem;
  }

  .project-card-info {
    min-width: 16rem;
  }
}

/* Footer
--------------------------------------------- */
.site-footer {
  padding: 3rem 0;
  background-color: #efefef;
}

.site-footer p {
  margin-top: 2rem;
  text-align: center;
}

.site-footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
}

.contact-link img {
  display: block;
  width: 2rem;
  margin: 0 auto;
}
