:root {
  --bg: #292929;
  --fg: white;
  --orange: #fe8019;
  --red: #cc241d;
}

/* ================= FONTS ================= */

@font-face {
  font-family: "Grey_Red";
  src: url("./fonts/Grey+Red.ttf") format("truetype");
}

@font-face {
  font-family: "Monster";
  src: url("./fonts/Green_Energy.ttf") format("truetype");
}

@font-face {
  font-family: "Trash_Hand";
  src: url("./fonts/TrashHand.TTF") format("truetype");
}

/* ================= GLOBAL ================= */

* {
  box-sizing: border-box;
}

body {
  background-color: var(--bg);
  color: var(--fg);
  margin: 0;
  letter-spacing: 1.5px;
  font-size: 14px;
  font-family: system-ui, sans-serif;
}

/* ================= TEXT ================= */

.emphasize {
  font-family: "Monster", sans-serif;
  font-size: 2.2rem;
}

.emphasize-sm {
  font-size: 1.5rem;
}

h1,
h2,
h3 {
  word-break: break-word;
}

/* ================= LINKS ================= */

a {
  color: var(--orange);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  cursor: pointer;
}

/* ================= IMAGES ================= */

img {
  max-width: 100%;
  height: auto;
  display: block;
}

img:hover {
  scale: 1.1;
}

.hero__image {
  transition: 0.2s ease-in-out;
  border-radius: 1.2em;
}

.github_contri {
  width: 800px;
}

.github_contri:hover {
  scale: none;
}

/* ================= SECTION LINKS ================= */

.section-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  padding: 0 1rem 1rem;
}

.section-link {
  border: 1px solid var(--orange);
  border-radius: 999px;
  padding: 0.6rem 1rem;
  color: var(--orange);
  font-weight: 700;
  transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

.section-link:hover,
.section-link:focus-visible {
  background-color: var(--orange);
  color: var(--bg);
  text-decoration: none;
}

/* ================= HERO ================= */

.hero__container {
  max-width: 1100px;
  margin: auto;
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
  padding: 2rem;
  flex-wrap: wrap;
}

/* ================= SECTIONS ================= */

.section__intro {
  position: relative;
  width: 100%;
  margin-top: 48px;
  background-image: url("./images/bg_image.png");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.section__intro::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.7);
  pointer-events: none;
}

.section__intro>* {
  position: relative;
  z-index: 2;
}

.intro__container {
  max-width: 1100px;
  margin: auto;
  padding: 2rem;
  color: var(--orange);
}

/* ================= TOOLS ================= */
.tools {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  justify-items: center;
  align-items: center;
  padding: 12px;
}

.tools img {
  width: 50px;
  height: auto;
}

/* ================= BOX ================= */

.box {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(15px);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-height: 600px;
  overflow: hidden;
}

/* ================= PROJECT GRID ================= */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

/* ================= LISTS ================= */

ul {
  list-style: none;
  padding: 0;
}

li img {
  width: 50px;
  transition: 0.2s ease-in-out;
}

/* ================= SPECIAL IMAGES ================= */

.image__monster {
  transform: rotateZ(20deg);
}

.image__water {
  transform: rotateZ(-10deg);
}

.image__newjeans {
  transform: rotateZ(15deg);
}

/* ================= TEXT UTILS ================= */

.project_title {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-weight: bold;
  font-size: 16px;
}

.school_name {
  color: #ffffcc;
  font-weight: bold;
}

.date {
  color: var(--red);
  font-weight: bold;
}

/* ================= RESPONSIVE ================= */

/* 📱 Tablets & below */
@media (max-width: 768px) {
  .hero__container {
    flex-direction: column;
    text-align: center;
    align-items: center;
    justify-content: center;

  }

  .hero__container p {
    text-align: left;
  }

  .intro__container {
    padding: 1rem;
  }

  .emphasize {
    font-size: 1.8rem;
  }

  .emphasize-sm {
    font-size: 1.3rem;
  }
}

/* 📱 Small phones */
@media (max-width: 480px) {
  body {
    font-size: 13px;
  }

  .hero__container {
    padding: 1rem;
    gap: 1.5rem;
  }

  .hero_image {
    max-width: 220px;
  }

  li img {
    width: 40px;
  }
}