@import url('https://fonts.googleapis.com/css2?family=Dongle:wght@300&family=Libre+Baskerville&family=Rubik&display=swap');

@import url('./about-me.css');
@import url('./projects.css');

:root {
  --main-bg-color: #e2e2ef;
  --card-bg-color: #eeeef2;
  --accent-color-1: #e8db65;
  --accent-color-2: #53bedc;
  --accent-color-3: #5bdd9f;
  --accent-color-4: #dc5fa8;
}

body {
  position: relative;
  margin: 0;
  display: grid;
  gap: 2rem;
  max-width: 100vw;
  background-color: var(--main-bg-color);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Rubik', sans-serif !important;
}

.section-title {
  display: flex;
  justify-content: center;
  align-items: center;
  grid-column: 1 / -1;
  font-size: 24pt;
  margin: 0 auto;
}

.section-title span {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 1rem;
}

.section-title span::before, .section-title span::after {
  content: '';
  display: block;
  align-items: center;
  width: 1.6rem;
  aspect-ratio: 1 / 1;
  border-radius: 0.25rem;
}

.section-title span:first-child::before {
  background-color: var(--accent-color-1);
}

.section-title span:first-child::after {
  background-color: var(--accent-color-2);
}

.section-title span:last-child::before {
  background-color: var(--accent-color-3);
}

.section-title span:last-child::after {
  background-color: var(--accent-color-4);
}

#contact-me ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  gap: 1rem;
  padding: 0.5rem;
  place-content: center;
  white-space: nowrap;
}

#contact-me ul li {
  width: 20rem;
  font-family: 'Rubik', sans-serif !important;
  font-size: 14pt;
  padding: 0.5rem;
  background-color: var(--card-bg-color);
  border-radius: 0.5rem;
  text-align: center;
}

#contact-me p {
  justify-self: center;
  width: fit-content;
  font-family: 'Rubik', serif !important;
  font-size: 12pt;
  padding: 0.5rem;
}

@media (max-width: 900px) {
  .intro-card h1 {
    font-size: 40px;
  }
  #projects {
    grid-template-columns: 1fr;
  }
  .project-card {
    grid-row: span 1;
  }
  #projects::before {
    display: none;
  }
}
