@font-face {
  font-family: retro-cool;
  src: url(/fonts/RetroCoolRegular.ttf) format("truetype"), url(/fonts/RetroCoolRegular.otf) format("opentype");
}

html {
  scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
}

body {
  font-family: 'Ysabeau Infant', 'Helvetica', sans-serif;
  margin: 0;
  background-color: #231D3B;
}

/* HEADER */

.header {
  margin-top: 0;
  padding: 8px 0;
}

h1 {
    font-size: clamp(1rem, 6vw, 6rem);
    letter-spacing: clamp(0.1rem, 1vw, 0.75rem);
    color: #F7B4A7;
    font-family: 'retro-cool', 'Chicle', cursive;
  }

#last-name {
  margin-left: clamp(0.5rem, 3vw, 2rem);
}

.name-laptop {
  margin: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.name-laptop img {
  width: clamp(5rem, 25vw, 25rem);
}

.container-smaller {
    max-width: 1200px;
    margin: 0 auto;
}

a {
  text-decoration: none;
  color: #F0ABC1;
}

a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
}

a:active {
  text-decoration: none;
  color: #eebbcb;
}

.header-links {
  margin-top: 5rem;
  display: flex;
  flex-wrap: wrap;
  list-style-type: none;
  font-size: 1.75rem;
  justify-content: center;
  gap: 3rem;
  padding: 0;
}

@media (max-width: 768px) {
  .header-links {
    display: none;
  }
}

hr {
  margin: 0 25vw;
  border: 0.5px solid #94DDDE;
}

/* ABOUT ME */

.section-one {
  display: flex;
  margin-top: 6rem;
  margin-bottom: 6rem;
  align-items: center;
  justify-content: center;
  gap: min(5vw, 6rem);
}

.section-one.container-smaller {
  padding: 0 3rem;
}

@media (max-width: 768px) {
  .section-one {
    flex-direction: column;
    margin: 3rem;
  }
}

h2 {
  color: #F0ABC1;
  font-size: 2rem;
  font-family: 'Ysabeau Infant', 'Helvetica', sans-serif;
  font-style: italic;
}

.intro {
  color: #ffebe1;
  font-size: 18px;
  margin-bottom: 24px;
}

.me {
  flex: 0 0 25%;
}

.me img {
  max-width: 100%;
  max-height: 25rem;
  border-bottom: 2px solid #F0ABC1;
}

.contact-button {
    background-color: #F0ABC1;
    color: #231D3B;
    border-radius: 6px;
    border: 2px solid transparent;
    font-size: 20px;
    padding: 14px 28px;
    display: inline-block;
}

.contact-button:hover {
  transform: scale(1.05);
  text-decoration: none;
}

.contact-button:active {
    border-style: inset;
    border-color: #94DDDE;
    color: #231D3B
}

/* TECHNOLOGIES */

.section-two {
  padding: 3rem 2rem;
}

.section-accent {
  background-color: #F7B4A7;
}

#tech {
  color: #231D3B;
}

.technologies {
    display: flex;
    max-width: 70rem;
    margin-top: 3rem;
    flex-wrap: wrap;
    gap: 6rem;
}

#tech-notice {
  font-size: 1.2rem;
  color: #231D3B;
  text-align: center;
  margin-top: 4rem;
  margin-bottom: 0;
}

#tech-notice a {
  color: #231D3B;
  text-decoration: underline;
}

.img-container {
    display: flex;
    flex-grow: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.img-container img {
    width: 7rem;
    height: 5rem;
    margin-bottom: 20px;
    background-size: cover;
}

.sub {
    text-align: center;
    max-width: 150px;
    color: #231D3B;
    font-size:24px;
}

/* CERTIFICATIONS */

.section-three {
  background-color: #ffebe1;
}

#certifications {
  color: #231D3B;
}

.section-three h3 {
  color: #a34966;
  text-align: center;
}

.emoji {
  font-style: normal;
}

#achieved-achieving {
  display: flex;
  justify-content: space-evenly;
  margin: 3.5rem 0 2.5rem;
}

#achieved-achieving hr {
  border: 1.25px solid #322566;
  margin: 0;
}

#achieved, 
#achieving {
  display: flex;
  max-width: 70rem;
  margin-top: 3rem;
  flex-wrap: wrap;
  gap: 6rem;
}

#achieving {
  display: block;
}

#achieving .certs-img-container img{
  filter: blur(0.8px) grayscale(0.75);
}

.achieved-container {
  flex-grow: 1;
  min-width: 50%;
}

.certs-img-container {
  display: flex;
  flex-grow: 1;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
}

.certs-img-container img {
  width: 7rem;
  height: 7rem;
  margin-bottom: 20px;
  background-size: cover;
}

.certs-sub {
  text-align: center;
  max-width: 150px;
  color: #231D3B;
  font-size: 16px;
}

.certs-sub a {
  text-decoration: underline;
  color: #231D3B;
}

/* PROJECTS */

.section-three,
.section-four,
.section-five,
.section-six {
    padding: 3rem 2rem;
}

.projects {
  max-width: 1200px;
  margin: 0 auto;
}

h3 {
  margin-top: 0;
  color: #94DDDE;
  font-size: 1.7rem;
  font-family: 'Ysabeau Infant', 'Helvetica', sans-serif;
  font-style: italic;
}

.box {
  padding: 2rem;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
}

.box:nth-of-type(odd) .project-content{
  text-align: right;
  grid-column: 4 / -1;
}

.box:nth-of-type(odd) .project-image {
  grid-column: 1 / 7;
}

.box:nth-of-type(odd) .project-content .project-stack{
  justify-content: flex-end;
}

.box:nth-of-type(even) .project-content {
  text-align: left;
  grid-column: 1 / 10;
  position: relative;
}

.box:nth-of-type(even) .project-image {
  transform: scaleX(-1);
  grid-column: 7 / -1;
}

.box:nth-of-type(even) .project-content .project-stack {
  justify-content: flex-start;
}

.project-content {
  grid-area: 1 / 1 / -1 / 7;
}

.project-image {
  grid-area: 1 / 6 / -1 / -1;
}

.project-image img {
  max-width: 100%;
  width: 100%;
}

.project-links img {
  margin: 1.3rem 0.5rem;
}

.project-links a:hover {
  text-decoration: none;
}

.project-description {
  color: #ffebe1;
  font-size: 1.3rem;
  background-color: #2B2D31aa;
  padding: 1.5rem;
  border-radius: 0.75rem;
  box-shadow: 10px 17px 26px -15px black;
}

.project-stack {
  margin-top: 2rem;
  list-style-type: none;
  padding: 0;
  display: flex;
  color: #ffebe1;
  gap: 2rem;
  font-size: 0.85rem;
  font-family: 'Red Hat Mono', monospace;
  font-weight: 600;
  flex-wrap: wrap;
  white-space: nowrap;
}

/* INTERESTS */

.interests {
  display: flex;
  flex-wrap: wrap;
  max-width: 50rem;
  margin: 0 auto;
}

.hobby {
  display: flex;
  flex-grow: 1;
  flex-direction: column;
  align-items: center;
  max-width: 50%;
  padding: 0 3rem;
}

.hobby img {
  width: 12rem;
  height: 14rem;
  background-size: cover;
}

.hobby div {
  text-align: center;
  color: #ffebe1;
  font-size: 1.3rem;
  margin: 2rem 0;
}

/* FOOTER */

.copyright {
  background-color: #94DDDE;
  color: #231D3B;
  font-size: 1.3rem;
  padding: 12px 0;
  text-align: center;
  margin: 0;
  font-weight: 700;
  font-style: italic;
}

.social-icons {
  display: inline-flex;
  gap: 1rem;
}

.social-icon {
  display: block;
  width: 32px;
}

.social-icon svg {
  width: 32px;
}

.social-icon:hover {
  cursor: pointer;
  transform: scale(1.05);
}

#contact {
  color: #231D3B;
}

.section-accent a {
  color: #231D3B;
}

.section-accent a:hover {
  text-decoration: underline;
}

.contact-content {
  font-size: 1.5rem;
  text-align: center;
  display: flex;
  align-items: center;
  gap: 3rem;
  color: #231D3B;
}

#send-email {
   display: flex;
   align-items: center;
   gap: 1rem;
}

.social-div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

/* MEDIA QUERIES */

@media (max-width: 960px) {
  .section-one {
    padding: 0 3rem;
  }

  .project-stack {
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .project-image img {
    display: none;
  }
    
  #achieved-achieving {
    display: block;
  }

  #achieved-achieving hr {
    margin: 4rem 6rem;
    border: 0.5px solid #322566;
  }

  .box:nth-of-type(odd) .project-content, 
  .box:nth-of-type(even) .project-content {
    grid-column: 1 / -1;
  }

  .box {
    padding: 1rem;
  }

  .projects {
    padding: 0;
  }

  #pipe {
    display: none;
  }

  .contact-content {
    flex-direction: column;
    gap: 2rem;
  }

  .hobby {
    max-width: 100%;
    padding: 0;
  }
}