@font-face {
  font-family: "Inter";
  src: url(../Practise4_Portfolio/font/Inter-VariableFont_opsz\,wght.ttf);
}
@font-face {
  font-family: "Inter-intalic";
  src: url(../Practise4_Portfolio/font/Inter-Italic-VariableFont_opsz\,wght.ttf);
}
:root {
  --bg: #0f0f0f;
  --surface: #1a1a1a;
  --border: #2e2e2e;
  --text-primary: #ffffff;
  --text-secondary: #a3a3a3;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  color: white;
  font-family: "Inter", sans-serif;
}
body {
  width: 100%;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}
header {
  width: 100%;
  height: 50px;
  border-bottom: 1px solid gray;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px 0 20px;
  & nav {
    display: flex;
    flex-direction: row;
    gap: 10px;
  }
  & a {
    text-decoration: none;
  }
}
main {
  & section {
    border-bottom: 1px solid gray;
    padding: 20px;
  }
}
/* Section 1 */
main > :nth-child(1) {
  display: grid;
  grid-template-columns: repeat(2, 1fr);

  :nth-child(1) {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 10px;
    :nth-child(1) {
      :nth-child(1) {
        color: aqua;
        font-size: 12px;
      }
      :nth-child(2) {
        font-size: 34px;
      }
      :nth-child(3) {
        font-size: 12px;
        color: gray;
      }
    }
    :nth-child(2) {
      display: flex;
      flex-direction: row;
      gap: 10px;
      & button {
        background: white;
        color: black;
        border: none;
        padding: 10px 20px 10px 20px;
        font-size: 16px;
        border-radius: 10px;
      }
      :nth-child(2) {
        background: none;
        border: 1px solid gray;
        color: white;
      }
    }
  }
  :nth-child(2) {
    display: flex;
    justify-content: center;
    align-items: center;

    & div {
      background: url(https://lh3.googleusercontent.com/a/ACg8ocLGcjHENL3Af573QersTwhjyOG7qsNMFBFZNEEBJZZNrOlewUU=s400-c);
      background-position: center;
      background-size: contain;
      height: 200px;
      width: 200px;
      border-radius: 50%;
      border: 2px solid gray;
    }
  }
}
/* Section 2 */
main > :nth-child(2) {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  & header {
    width: auto;
    border: none;
    font-weight: bold;
    font-size: larger;
    padding: 0;
  }
  :nth-child(2) {
    display: flex;
    flex-direction: row;
    gap: 10px;
    & button {
      background: none;
      color: white;
      padding: 5px 10px 5px 10px;
      border: 1px solid gray;
      border-radius: 14px;
    }
  }
}
/* Section 3 */
main > :nth-child(3) {
  display: flex;
  flex-direction: column;
  align-items: center;
  & header {
    width: auto;
    border: none;
    padding: 0;
    font-weight: bold;
    font-size: larger;
  }
  & article {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));

    gap: 10px;
    & .card {
      height: 250px;
      border: 1px solid gray;
      padding: 10px;
      border-radius: 10px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      gap: 5px;
    }
    & .card > :nth-child(1) {
      height: 50%;
      width: 100%;

      background-size: cover;
      border-radius: 10px;
    }
    & .card > :nth-child(2) {
      display: flex;
      flex-direction: column;
      gap: 10px;
      :nth-child(1) {
        font-size: 18px;
        font-weight: bold;
      }
      :nth-child(2) {
        font-size: 12px;
        color: gray;
      }
    }
    & .card > :nth-child(3) {
      display: flex;
      flex-direction: row;
      align-items: center;
      gap: 5px;
      & a {
        text-decoration: none;
        color: aqua;
        font-size: 14px;
      }
      & i {
        color: aqua;
        font-size: 12px;
        margin-top: 4px;
      }
    }
  }
  & article > :nth-child(1) > :nth-child(1) {
    background: url(https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcT7Wo_5HnL2OhUlOHBkJFC5UjCEf6NZ_HSdj1Nh42iP5GW-wSHifCuYtULZ&s=10)
      center no-repeat;
    background-size: cover;
  }
  & article > :nth-child(2) > :nth-child(1) {
    background: url(https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRmMZzdw3mrDJesjU5cFRw8R-nQyLweTLrXxut5GTaNAJCVd0rUT2H8fvF8&s=10)
      center no-repeat;
    background-size: cover;
  }
  & article > :nth-child(3) > :nth-child(1) {
    background: url(https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTPHG6yCkyph5FnLYBBTs-inU-yTy6F40wFefVjPLZ5jZLq648nwxaJ2vk&s=10)
      center no-repeat;
    background-size: cover;
  }
}
footer {
  height: 40px;
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 5px 20px 5px 20px;
  & div {
    display: flex;
    flex-direction: row;
    gap: 15px;
    font-size: 14px;
    justify-content: center;
    align-items: center;

    :nth-child(2) {
      font-size: 15px;
    }
    font-size: 17px;
  }
}
button {
  cursor: pointer;
}

@media (max-width: 1024px) {
  main > :nth-child(3) > :nth-child(2) {
    grid-template-columns: repeat(2, 1fr);
    :nth-child(3) {
      grid-column: span 2;
    }
  }
}
@media (max-width: 480px) {
  header > h2 {
    font-size: 16px;
  }
  /*  section 1 */
  main > :nth-child(1) {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 10px;
    :nth-child(1) {
      align-items: center;

      & h3,
      p {
        width: auto;
        text-align: center;
      }
    }
  }
  main > :nth-child(1):nth-child(1) > :nth-child(1) > :nth-child(2) {
    flex-direction: column;
    width: 100%;
    & button {
      width: 100%;
    }
  }

  /*  Section 2 */
  main > :nth-child(2) > :nth-child(2) {
    flex-wrap: wrap;
    justify-content: center;
  }

  /*  section 3 */
  main > :nth-child(3) > :nth-child(2) {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    :nth-child(3) {
      grid-column: span 1;
    }
  }
  /*  footer */
  footer {
    height: 50px;
    flex-direction: column-reverse;
  }
}
