@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Rubik:ital,wght@0,300..900;1,300..900&display=swap');

:root {
  --white: snow;
  --blueAccent: #1f52f7;
  --ffHeader: 'Rubik';
  --ffText: 'Inter';
}

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

a {
  text-decoration: none;
}

svg {
  width: 20px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--ffHeader);
}

body {
  height: 100dvh;
  background-color: var(--white);
}

.header-img {
  height: 300px;
  padding: 1rem;
  background: center/cover url(./assets/header-bg.jpg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.header-img img {
  border-radius: 10rem;
  width: 200px;
  z-index: 10;
}

.header-img h1 {
  position: absolute;
  bottom: 60px;
  color: var(--white);
  font-size: 3.8rem;
  line-height: 0;
  text-shadow: 1px 1px 4px #0006;
  z-index: 999;
}

.about-me {
  margin-top: 2rem;
  padding-bottom: 4rem;
  z-index: 2;
}

.about-me h2 {
  font-weight: 500;
  text-align: center;
  font-size: 2rem;
}

.about-me-details {
  padding: 1rem 0.5rem 1rem 1rem;
  line-height: 1.5;
  font-family: var(--ffText);
  word-wrap: overflow-wrap;
}

.about-me-icons {
  margin-top: 0.5em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.about-me svg {
  width: 30px;
}

.my-projects {
  padding: 1rem 1rem 8rem 1rem;
}

.my-projects h2 {
  margin-bottom: 1rem;
  text-align: center;
  font-size: 2rem;
  font-weight: 500;
}

.projects-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 300px));
  place-items: center;
  justify-content: center;
  row-gap: 1.5rem;
  column-gap: 1.5rem;
}

.project-card {
  border-radius: 0.2rem;
  box-shadow: 2px 2px 1px 2px #0003;
}

.my-projects .project-card {
  max-width: 300px;
  overflow: hidden;
}

.project-card img {
  width: 100%;
  height: 200px;
}

.project-card .card-bottom {
  padding: 0.5rem 1rem 4rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.card-bottom .card-bottom-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-bottom .card-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.project-card svg {
  width: 24px;
}

.footer-container {
  background-color: #333;
  color: var(--white);
  display: flex;
  flex-direction: column;
}

.footer-left {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-container h3 {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 300;
}

.footer-info {
  font-size: 1.2rem;
}

.footer-address {
  font-size: 0.8rem;
  line-height: 1.5;
}

.footer-contact {
  font-size: 0.8rem;
  line-height: 2;
}

.footer-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.footer-icons svg {
  width: 40px;
}

.footer-icons .twitter-icon {
  width: 30px;
}

@media (min-width: 656px) {
  .header-img {
    display: flex;
    align-items: start;
    justify-content: start;
  }

  .header-img h1 {
    top: 115px;
    left: 220px;
  }

  .about-me {
    transform: translateY(20px);
    margin: 0 auto;
    width: 80%;
    background-color: var(--white);
    box-shadow: 2px 2px 1px 2px #0003;
  }

  .my-projects {
    margin-top: 2rem;
  }

  .footer-container {
    padding: 2rem 2rem 4rem 2rem;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
  }

  .footer-left {
    gap: 1rem;
  }

  .footer-container h3 {
    text-align: start;
  }

  .footer-left {
    padding-right: 2rem;
  }

  .footer-container img {
    width: 50%;
    aspect-ratio: 16/9;
  }

  .footer-icons {
    text-align: start;
    display: flex;
    justify-content: start;
  }
}

@media screen and (min-width: 998px) {
  .projects-container {
    display: grid;
    grid-template-columns: repeat(3, auto);
    grid-template-rows: repeat(2, auto);
  }
}

@media (min-width: 1100px) {
  .about-me {
    position: absolute;
    top: 15%;
    left: 70%;
    transform: translate(-50%, -50%);
    width: 50%;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 2rem 0;
    border-radius: 0.4rem;
    background-color: transparent;
  }
  .about-me::before {
    content: '';
    position: absolute;
    background-color: var(--white);
    top: 0;
    width: 100%;
    height: 100%;
    border-radius: 0.4rem;
    z-index: -1;
    opacity: 0.9;
  }
  .about-me h2 {
    line-height: 0;
  }

  .about-me-icons {
    visibility: visible;
    margin: 0;
  }

  .footer-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .footer-container .footer-left {
    display: flex;
    gap: 2rem;
  }
  footer img {
    width: 100%;
  }
}
