@font-face {
  font-family: "Archivo Black";
  src:
    url("../fonts/ArchivoBlack-Regular.woff2") format("woff2"),
    url("../fonts/ArchivoBlack-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Open Sans";
  src:
    url("../fonts/OpenSans-Regular.woff2") format("woff2"),
    url("../fonts/OpenSans-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Open Sans";
  src:
    url("../fonts/OpenSans-SemiBold.woff2") format("woff2"),
    url("../fonts/OpenSans-SemiBold.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

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

body {
  min-height: 100vh;
  margin: 0;
  font-family:
    "Open Sans",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background-color: #050712;
  color: #f9fafb;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 16px;
}

.header {
  background: radial-gradient(circle at top left, #1f3cff, #050712);
}

.hero {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 40px 0 32px;
}

.hero__text {
  max-width: 640px;
}

.hero__title {
  margin: 0 0 16px;
  font-family:
    "Archivo Black",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 40px;
  line-height: 1.05;
}

.hero__title-line {
  display: block;
}

.hero__subtitle {
  margin: 0 0 24px;
  font-size: 14px;
  color: #cbd5f5;
}

.hero__description {
  margin: 0 0 32px;
  font-size: 15px;
  line-height: 1.6;
  color: #e5e7f5;
}

.hero__links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: #f9fafb;
  transition:
    transform 150ms ease,
    box-shadow 150ms ease,
    background-color 150ms ease,
    border-color 150ms ease,
    color 150ms ease;
}

.button--primary {
  background: linear-gradient(90deg, #ff5b99, #844eff);
  box-shadow: 0 10px 30px rgba(132, 78, 255, 0.45);
}

.button--ghost {
  border-color: #7b7fff;
  background-color: transparent;
  color: #e5e7f5;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6);
}

.hero__photo {
  align-self: center;
  max-width: 280px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.8);
}

.hero__photo img {
  display: block;
  width: 100%;
  height: auto;
}

.main {
  flex: 1 0 auto;
  background: radial-gradient(circle at bottom right, #7b2cff, #050712 55%);
}

.section {
  padding: 40px 0;
}

.section__title {
  margin: 0 0 24px;
  font-family:
    "Archivo Black",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 22px;
}

.section--skills {
  border-top: 1px solid rgba(148, 163, 255, 0.35);
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.skills__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  min-width: 96px;
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.8);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.9);
}

.skills__icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
}

.skills__icon--html {
  background-color: #ff7a18;
  background-image: url("../images/html-logo.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 70%;
}

.skills__icon--css {
  background-color: #2563eb;
  background-image: url("../images/css-logo.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 70%;
}

.skills__icon--js {
  background-color: #facc15;
  background-image: url("../images/js-logo.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 70%;
}

.skills__icon--git {
  background-color: #000000;
  background-image: url("../images/git-logo.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 70%;
}

.skills__icon--github {
  background-color: #020617;
  background-image: url("../images/github-logo.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 70%;
}

.skills__icon--openai {
  background-color: #4b5563;
  background-image: url("../images/openai-logo.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 70%;
}

.skills__label {
  font-size: 13px;
  color: #e5e7eb;
}

.projects {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.project-card {
  border-radius: 24px;
  overflow: hidden;
  background: #050816;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.95);
}

.project-card__media-link {
  display: block;
  text-decoration: none;
}

.project-card__media {
  position: relative;
  overflow: hidden;
}

.project-card__media--accent {
  background: linear-gradient(135deg, #4f46e5, #9333ea);
}

.project-card__media img {
  display: block;
  width: 100%;
  height: auto;
}

.project-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 16px 20px;
  background: linear-gradient(
    to top,
    rgba(15, 23, 42, 0.9),
    rgba(15, 23, 42, 0)
  );
  opacity: 0;
  transition: opacity 160ms ease;
}

.project-card__tag {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  color: #e5e7f5;
  background-color: rgba(15, 23, 42, 0.9);
}

.project-card__body {
  padding: 20px 20px 18px;
}

.project-card__title {
  margin: 0 0 10px;
  font-size: 18px;
}

.project-card__description {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.7;
  color: #d1d5db;
}

.project-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.project-card__link {
  position: relative;
  text-decoration: none;
  font-size: 14px;
  color: #a5b4fc;
}

.project-card__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 1px;
  background-color: #a5b4fc;
  transition: width 150ms ease;
}

.project-card__link:hover::after {
  width: 100%;
}

.project-card:hover .project-card__overlay {
  opacity: 1;
}

.footer {
  border-top: 1px solid rgba(148, 163, 255, 0.35);
  background-color: #050712;
}

.footer__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding-bottom: 32px;
  padding-top: 32px;
}

.footer__title {
  margin: 0;
  font-family:
    "Archivo Black",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 20px;
}

.footer__email {
  color: #e5e7f5;
  text-decoration: none;
  font-size: 14px;
}

.footer__social {
  display: flex;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background-size: 70%;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0;
  background: radial-gradient(circle at top, #1f2937, #020617);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease;
}

.footer__social-link--facebook {
  background-image: url("../images/facebook-icon.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 60%;
}

.footer__social-link--instagram {
  background-image: url("../images/instagram-icon.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 60%;
}

.footer__social-link--linkedin {
  background-image: url("../images/linkedin-icon.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 60%;
}

.footer__social-link--x {
  background-image: url("../images/x-icon.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 60%;
}

.footer__social-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.95);
  background-color: #111827;
}

a.button,
.button,
.project-card__link,
.footer__email,
.footer__social-link {
  cursor: pointer;
}

a:hover,
.footer__email:hover {
  color: #c7d2fe;
}

@media (min-width: 768px) {
  .container {
    padding: 40px 32px;
  }

  .hero {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding-top: 64px;
  }

  .hero__title {
    font-size: 56px;
  }

  .hero__subtitle {
    font-size: 15px;
  }

  .hero__description {
    font-size: 15px;
  }

  .hero__photo {
    max-width: 320px;
  }

  .section {
    padding: 56px 0;
  }

  .section__title {
    font-size: 26px;
  }

  .projects {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }
}

@media (min-width: 1024px) {
  .container {
    max-width: 1120px;
  }

  .hero {
    padding-top: 80px;
    padding-bottom: 72px;
  }

  .hero__title {
    font-size: 72px;
  }

  .hero__description {
    font-size: 16px;
  }
}

@media (max-width: 479px) {
  .container {
    padding-inline: 16px;
  }

  .hero {
    padding-top: 32px;
  }

  .hero__title {
    font-size: 32px;
  }

  .hero__links {
    flex-direction: column;
    align-items: stretch;
  }

  .skills__item {
    flex: 1 1 calc(50% - 8px);
  }
}
