/* FONT */
@import url('https://fonts.googleapis.com/css2?family=Hanalei+Fill&family=Holtwood+One+SC&display=swap');


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

h1, h2, h3 {
  font-family: "Hanalei Fill", serif;
  color: #FF8800;
}

.header {
  padding: 1rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #D9D9D9;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
}

.name span {
  font-family: "Holtwood One SC", serif;
  color: #FF8800;
  font-size: 1.2rem;
  text-shadow: 0 2px 5px #ff88005b;
}

/* main */
.main {
  padding: 1rem;
}

.hero {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero h1 {
  max-width: 350px;
  font-size: 3.5rem;
}

.hero p {
  font-family: "Hanalei Fill", serif;
  color: #C98230;
}

#codingDays {
  margin: 1rem 0;
}

.link-projects {
  margin-top: 0.5rem;
  padding: 1rem;
  font-family: "Hanalei Fill";
  text-decoration: none;
  color: #ffdfbb;
  background: #FF8800;
  border-radius: 5px;
  box-shadow: 5px 5px 0 #C98230;
  transition: 100ms ease-in-out;
}

.link-projects:hover {
  transform: translateY(2px) translateX(2px);
  box-shadow: 2px 2px 0 #C98230;
}

.link-projects:active {
  transform: translateY(4px) translateX(4px);
  box-shadow: 0px 0px 0 #C98230;
}

/* languages */
.languages-container {
  margin-top: 7rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.languages-container h2 {
  text-align: center;
  font-size: 3rem;
}

.grid-container {
  width: 100%;
  padding: 1rem;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
  gap: 15px;
}

.card {
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: #FF8800;
  box-shadow: 5px 5px 0 #C98230;
  min-height: 80px;
  transition: 100ms ease-in-out;
}

.card:hover {
  transform: translateY(2px) translateX(2px);
  box-shadow: 2px 2px 0 #C98230;
}

.card:active {
  transform: translateY(4px) translateX(4px);
  box-shadow: 0px 0px 0 #C98230;
}

.card i {
  font-size: 2rem;
  margin: 0.5rem 0;
}

.card p {
  color: #FF8800;
  font-family: "Holtwood One SC", serif;
  background: #4b3112;
  padding: 0 0.5rem;
  border-radius: 10px;
}

.projects-container {
  margin-top: 3rem;
}

.projects-container h2 {
  font-size: 3rem;
  text-align: center;
}

.project-cards-container {
  margin-top: 3rem;
  margin-bottom: 3rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.project-card {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: #4b3112;
  box-shadow: 5px 5px #C98230;
  border-radius: 12px;
  width: 100%;
  max-width: fit-content;
  transition: 100ms ease-in-out;
}

.project-card:hover {
  transform: translateY(2px) translateX(2px);
  box-shadow: 4px 4px #C98230;
}

.project-card:active {
  transform: translateY(4px) translateX(4px);
  box-shadow: 1px 1px #C98230;
}

.project-card img {
  width: 100%;
  max-width: 450px;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  margin-bottom: 0.5rem;
  box-shadow: 0 4px 20px #ff880096;
}

.project-card h3 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  text-align: center;
}

.project-card p {
  text-align: center;
  color: #C98230;
  font-family: "Holtwood One SC", serif;
}

.link {
  padding-left: 2.5rem;
  padding-right: 2.5rem;
}

/* RESPONSIVE */
@media (max-width: 500px) {
  .grid-container {
    grid-template-columns: 1fr 1fr 1fr;
  }
}


@media (max-width: 350px) {
  .hero h1 {
    font-size: 1.75rem;
  }
  .grid-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 230px) {
  .name span {
    font-size: 0.75rem;
  }
  .hero h1 {
    font-size: 1.35rem;
    max-width: 350px;
  }
  .hero p {
    font-size: 0.75rem;
  }
  .languages-container h2 {
    font-size: 2.35rem;
  }
  .grid-container {
    display: flex;
    flex-direction: column;
  }
  .card p {
    font-size: 0.75rem;
    margin: 5px;
  }
}
