/* Optional web fonts. Delete this line to fall back to system fonts. */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@500;700&display=swap');

/* set variable colors */
:root {
  /* Neutral dark surfaces with just a hint of violet */
  --background-color: #0E0D12;
  --main-background-color: #17151E;
  --article-background-color: #1B1823;
  --article-border-color: #2D2939;
  --footer-background-color: #0A090D;

  /* Text */
  --text-color: #E7E5EE;
  --text-muted: #A19DB2;
  --text-accented: #E0D7FF;

  /* Purple accent family (the leading color) */
  --accent: #8B5CF6;
  --accent-soft: #C4B5FD;
  --accent-strong: #6D3FE0;
  --accent-gradient: linear-gradient(135deg, #8B5CF6 0%, #6D3FE0 100%);
  --glow-color: rgba(139, 92, 246, 0.45);

  /* Skills */
  --star-on: var(--accent-soft);
  --star-off: rgba(128, 128, 128, 0.35);
  --border: rgba(128, 128, 128, 0.25);
  --chip-bg: rgba(79, 109, 245, 0.1);
  --chip-fg: inherit;

  /* Navigation */
  --nav-color: rgba(255, 255, 255, 0.06);
  --nav-text-color: #E7E5EE;
  --nav-hover-color: rgba(139, 92, 246, 0.25);
  --nav-text-hover-color: #ffffff;
  --nav-active-color: #8B5CF6;
  --nav-text-active-color: #ffffff;

  --send-background-color: #8B5CF6;
  --send-border-color: #6D3FE0;

  --article-images-border-color: #2D2939;
  --article-images-discord-background-color: #36393F;
  --article-images-discord-border-color: #450000;

  --footer-color: #A19DB2;

  --radius: 0.9rem;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Space Grotesk', 'Inter', system-ui, sans-serif;
}

* {
  padding: 0;
  margin: 0;
  font-family: var(--font-body);
  box-sizing: border-box;
}

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

a:hover {
  color: var(--accent);
}

::selection {
  background: var(--accent);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 2px;
}

body {
  min-height: 100vh;
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--background-color);
  /* soft purple glow at the top fading into dark */
  background-image: radial-gradient(
    ellipse 80% 40% at 50% 0%,
    rgba(139, 92, 246, 0.16),
    transparent 70%
  );
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
}

.secret-wrapper {
  display: none;
}

.secret-wrapper.active {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--background-color);
  /* soft purple glow at the top fading into dark */
  background-image: radial-gradient(
    ellipse 80% 40% at 50% 0%,
    rgba(139, 92, 246, 0.16),
    transparent 70%
  );
  z-index: 10000;
}

.secret-div {
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  padding-top: 10rem;
}

.secret-info {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

#my-canvas {
  position: absolute;
}

.header {
  background-position: 0 0, 0% 50%;
  background-repeat: no-repeat, no-repeat;
  background-size: 100% 100%, cover;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}

.header-inside {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 10rem;
  /* border: 5px solid #fff; */
  border-radius: 50rem;
  width: 12rem;
  height: 12rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2rem;
}

.glow {
  -webkit-box-shadow: 0px 0px 30px 6px var(--glow-color);
  -moz-box-shadow: 0px 0px 30px 6px var(--glow-color);
  -o-box-shadow: 0px 0px 30px 6px var(--glow-color);
  box-shadow: 0px 0px 30px 6px var(--glow-color);
}

/* .logo > span {
  font-family: serif;
  transform: translateY(1rem);
  padding-bottom: 1rem;
} */

.nav {
  width: 100%;
  margin-bottom: 2rem;
  padding: 0 2rem;
  display: flex;
  justify-content: center;
}

.nav-list {
  list-style: none;
  display: flex;
  background-color: var(--nav-color);
  border: 1px solid rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  border-radius: 10rem;
  justify-content: space-around;
  overflow: hidden;
}

.nav-list > :first-child {
  border-radius: 10rem 0 0 10rem;
}

.nav-list > :last-child {
  border-radius: 0 10rem 10rem 0;
}

.main-inside {
  display: flex;
  justify-content: center;
  flex: 1;
  width: 100%;
}

.nav-list,
.footer-content {
  width: 100%;
  max-width: 50rem;
}

article,
.article-background {
  /* width: 100%; */
  width: 75rem;
  justify-self: center;
}

.nav-list-item {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--nav-text-color);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.3rem;
  width: 100%;
  height: 100%;
  padding: 1rem 0;
  -webkit-transition: all 200ms linear;
  -moz-transition: all 200ms linear;
  -o-transition: all 200ms linear;
  transition: all 200ms linear;
}

.nav-list-item:hover, .nav-list-item:focus {
  background: var(--nav-hover-color);
  color: var(--nav-text-hover-color);
  cursor: pointer;
}

.nav-list-item:active {
  background: var(--nav-active-color);
  color: var(--nav-text-active-color);
  cursor: pointer;
}

.disabled {
  background: var(--accent-gradient);
  color: var(--nav-text-active-color);
  pointer-events: none;
}

main {
  padding: 0 2rem;
  background-color: transparent;
  flex: 1;
  display: flex;
}

.content-background {
  /* background-color: var(--main-background-color); */
  display: grid;
  padding: 2rem 0;
  width: 100%;
}

/* .title {
  font-size: 3.5rem;
  font-weight: bolder;
  padding: 0rem 2rem;
  max-width: 45rem;
  margin: auto;
  padding-top: 1rem;
} */

article {
  padding: 0 1.75rem;
  display: block;
  /* max-width: 45rem; */
  margin-bottom: 2rem;
  background-color: var(--article-background-color);
  border: 1px solid var(--article-border-color);
  /* border-top: 2px solid var(--accent); */
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

article:last-child {
  margin-bottom: 0;
}

h2 {
  padding: 2rem 0 1.5rem;
  font-family: var(--font-heading);
  font-size: 2rem;
  letter-spacing: -0.01em;
  display: inline-block;
  color: #fff;
  background: linear-gradient(90deg, #ffffff 0%, var(--accent-soft) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Skills */
.skills {
  --radius: 12px;
  margin: 0 auto;
  line-height: 1.5;
}

.skills h3 {
  margin: 0 0 0.9rem;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-soft);
}

.skills-group {
  margin-bottom: 1.75rem;
  padding: 1.25rem 1.4rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* ---------- Rated lists ---------- */
.rated-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.35rem 2.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rated-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.4rem 0;
  border-bottom: 1px dashed var(--border);
}

.rating {
  flex-shrink: 0;
  font-size: 1.05rem;
  letter-spacing: 0.1em;
  white-space: nowrap;
}
.rating .on  {
  background: linear-gradient(0deg, var(--accent) 0%, var(--accent-soft) 80%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}
.rating .off { color: var(--star-off); }

/* ---------- Languages ---------- */
.languages li {
  flex-wrap: wrap;
}
.lang-name {
  font-weight: 600;
}
.lang-level {
  display: block;
  font-size: 0.85rem;
  opacity: 0.7;
}

/* ---------- Tech stack ---------- */
.stack {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.9rem 1.5rem;
  margin: 0;
  align-items: start;
}
.stack dt {
  font-weight: 600;
  padding-top: 0.25rem;
}
.stack dd {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
}
.chip {
  padding: 0.2rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--chip-bg);
  color: var(--chip-fg);
  font-size: 0.9rem;
}
.chip small {
  opacity: 0.7;
}

@media (max-width: 560px) {
  .stack { grid-template-columns: 1fr; gap: 0.4rem; }
  .stack dd { margin-bottom: 0.8rem; }
}

.map {
  padding-bottom: 1.5rem;
  justify-content: center;
}

.send {
  list-style: none;
  color: #fff;
  background: var(--accent-gradient);
  border-radius: 0.6rem;
  border: 1px solid var(--send-border-color);
  justify-content: space-around;
  padding: 0.3rem 1.2rem;
  font-size: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 18px rgba(139, 92, 246, 0.35);
  transition: transform 0.15s, box-shadow 0.15s;
}

.send:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px var(--glow-color);
}

.send-button {
  padding: 2rem 0;
}

.text {
  padding-bottom: 1.5rem;
  font-size: 1.15rem;
  color: var(--text-color);
  white-space: pre-line;
}

.article-images {
  border: 3px solid var(--article-images-border-color);
  border-radius: 5px;
  display: flex;
  justify-content: space-around;
  padding: 5px;
  margin-top: 1rem;
}

.article-images-discord {
  background-color: var(--article-background-color);
  border: 3px solid var(--article-border-color);
  border-radius: 5px;
  display: flex;
  justify-content: space-around;
  padding: 5px;
  margin-top: 1rem;
}

.article-image-wrapper {
  max-width: 25%;
}
.article-image-wrapper2 {
  max-width: 50%;
}
.article-image-wrapper3 {
  max-width: 100%;
}
.article-image-wrapper4 {
  max-width: 100%;
}

.article-image {
  width: 100%;
  display: flex;
}

.article-footer {
  padding: 1.5rem 0;
  font-size: 1.2rem;
  color: var(--text-muted);
}


/* PROJECTS */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 2rem;
  row-gap: 0;               /* spacing moves to the cards, see below */
  justify-content: center;
  align-items: stretch;
  padding-bottom: 2rem;
  width: 100%;
}

.project-item {
  background-color: var(--main-background-color);
  border: 1px solid var(--article-border-color);
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  width: 100%;
  max-width: 22rem;
  display: grid;
  grid-row: span 3;                 /* = number of direct children: title, image, tags */
  grid-template-rows: subgrid;
  row-gap: 0;
  margin-bottom: 2rem;              /* replaces the old row gap */
  padding: 1.5rem;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  align-self: stretch;
  box-sizing: border-box;
}

.project-item:hover, .project-item:focus {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 10px 30px 0 var(--glow-color);
  outline: none;
}

.project-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.7rem;
  color: var(--text-accented);
}

.project-thumbnail {
  width: 100%;
  height: auto;
  border-radius: 0.6rem;
  margin-bottom: 1rem;
}

.project-short-description {
  font-size: 0.8rem;
  margin-bottom: 1.2rem;
  color: var(--text-muted);
  line-break: anywhere;
}

/* .project-links {
  margin-top: auto;
  display: flex;
  gap: 1rem;
}

.project-link {
  color: var(--nav-text-color);
  background: var(--nav-color);
  border-radius: 2rem;
  padding: 0.4rem 1.2rem;
  font-size: 1rem;
  transition: background 0.2s, color 0.2s;
}

.project-link:hover {
  background: var(--nav-hover-color);
  color: var(--nav-text-hover-color);
  text-decoration: underline;
} */

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-self: stretch;
  margin-top: auto;
}

.tag {
  background-color: var(--accent-soft);
  color: #1a1030;
  border-radius: 1rem;
  padding: 0.2rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: background 0.2s, color 0.2s;
  user-select: none;
}

/* .tag:hover {
  background: var(--nav-hover-color);
  color: var(--nav-text-hover-color);
} */


/* Project popup */
.project-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(8, 6, 12, 0.8);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.project-popup {
  background: var(--article-background-color);
  border: 1px solid var(--article-border-color);
  /* border-top: 2px solid var(--accent); */
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(139, 92, 246, 0.2);
  padding: 2rem;
  border-radius: var(--radius);
  width: 100%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}
.project-popup:focus {
  outline: none;
}

.popup-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s;
}

.popup-close-btn:hover {
  color: #fff;
}

.project-description {
  font-size: 1.2rem;
  color: var(--text-color);
  margin-bottom: 1.5rem;
  white-space: pre-line;
}

.project-popup-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  padding: 0;
  margin-bottom: 2rem;
  color: var(--text-accented);
}

/* Tag selection system */
.tag-filter {
  margin-bottom: 1em;
  position: relative;
}
.tag-filter-top {
  display: flex;
  align-items: center;
  height: 3rem;
  gap: 0.5rem;
}
#tag-dropdown-toggle {
  /* min-width: 150px; */
  padding: 0.8rem 1rem;
  margin-bottom: 0.5rem;
  border-radius: 1rem;
  border: 1px solid var(--article-border-color);
  background: var(--main-background-color);
  color: var(--text-color);
  cursor: pointer;
  transition: border-color 0.2s;
  font-size: 0.9rem;
}
#tag-dropdown-toggle:hover {
  border-color: var(--accent);
}
#tag-dropdown-container {
  position: absolute;
  left: 0;
  top: 2em;
  z-index: 10;
  background: var(--main-background-color);
  border: 1px solid var(--accent);
  border-radius: 0.5rem;
  min-width: 180px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  display: block;
  max-height: 200px;
  overflow-y: auto;
  margin-top: 0;
  scrollbar-color: var(--accent-strong) #00000000;
}
.dropdown-collapsed {
  display: none !important;
}
.tag-dropdown-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.tag-dropdown-list li {
  padding: 0.3em 1em;
  margin: 0.1em 0;
  /* border-radius: 0.4em; */
  cursor: pointer;
  color: #222;
  transition: background 0.15s;
  outline: none;
}
.tag-dropdown-list li:focus,
.tag-dropdown-list li:hover {
  opacity: 1;
}
#selected-tags .selected-tag {
  display: flex;
  direction: row;
  align-items: center;
  padding: 0.2em 0.6em 0.2em 0.8em;
  border-radius: 0.8em;
  font-size: 0.95em;
  position: relative;
  color: #222;
}
#selected-tags {
  display: flex;
  flex-wrap: wrap;
  margin: 4px 0;
  width: 100%;
}
.selected-tag {
  width: fit-content;
  margin: 3px;
  cursor: pointer;
}
.selected-tag .tag-remove {
  background: none;
  border: none;
  color: #444;
  margin-left: 0.5em;
  font-size: 1em;
  cursor: pointer;
  padding: 0 0.2em;
  line-height: 1;
}
.selected-tag:hover {
  opacity: 1;
}
.selected-tag:hover .tag-remove {
  color: #c00;
}
#apply-tags-btn {
  padding: 0.8rem 1rem;
  border-radius: 1rem;
  border: 1px solid var(--accent-strong);
  background: var(--accent-gradient);
  color: #fff;
  cursor: pointer;
  font-size: 1em;
  transition: box-shadow 0.2s;
  margin-bottom: 0.5rem;
}
#apply-tags-btn:hover {
  box-shadow: 0 0 14px var(--glow-color);
}
#apply-tags-btn:active {
  background: var(--accent-strong);
}

/* PAGINATION */

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  gap: 0.5rem;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.page-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--main-background-color);
  color: var(--nav-text-color);
  border: 1px solid var(--article-border-color);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.page-number.active {
  background: var(--accent-gradient);
  color: var(--nav-text-active-color);
  border-color: var(--accent);
  font-weight: bold;
  pointer-events: none;
}
.page-number:hover {
  background: var(--nav-hover-color);
  color: var(--nav-text-hover-color);
  border-color: var(--accent);
}
.page-number:active {
  background: var(--nav-active-color);
  color: var(--nav-text-active-color);
}

.arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--main-background-color);
  color: var(--nav-text-color);
  border: 1px solid var(--article-border-color);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.arrow:hover {
  background: var(--nav-hover-color);
  color: var(--nav-text-hover-color);
  border-color: var(--accent);
}
.arrow:active {
  background: var(--nav-active-color);
  color: var(--nav-text-active-color);
}
.arrow.disabled {
  background: none;
  color: #5d586b;
  cursor: not-allowed;
  pointer-events: none;
  border: 1px solid transparent;
  opacity: 0.7;
}


/* IMAGE GALLERY */

.project-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
}

/* Position the image container (needed to position the left and right arrows) */
.project-media, .slideshow-container {
  position: relative;
}

/* Hide the images by default */
.mySlides {
  display: none;
  height: 32rem;
}

/* Add a pointer when hovering over the thumbnail images */
.cursor {
  cursor: pointer;
}

/* Next & previous buttons */
.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -28px;
  color: white;
  font-weight: bold;
  font-size: 20px;
  border-radius: 0 3px 3px 0;
  user-select: none;
  -webkit-user-select: none;
  filter: drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.7));
  transition: background-color 0.2s;
}

/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a purple tint with a little bit see-through */
.prev:hover,
.next:hover {
  background-color: rgba(109, 63, 224, 0.75);
}

/* Number text (1/3 etc) */
.numbertext {
  color: #fff;
  font-size: 16px;
  padding: 6px 8px;
  margin: 6px 8px;
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 50px;
  background-color: rgba(0, 0, 0, 0.5);
}

/* Container for image text */
.caption-container {
  text-align: center;
  background-color: #14121A;
  padding: 2px 16px;
  color: var(--text-color);
}

.row {
  display: flex;
  flex-wrap: nowrap; /* Forces elements into a single line */
  overflow-x: auto;  /* Enables horizontal scrolling */
  overflow-y: hidden;
  scroll-behavior: smooth; /* Smooth scrolling when moving items into view */
  width: 100%;
}

/* Optional: Customize scrollbar appearance */
.row::-webkit-scrollbar {
  height: 8px;
}
.row::-webkit-scrollbar-thumb {
  background: var(--accent-strong);
  border-radius: 4px;
}

.column {
  flex: 0 0 16.66%; /* Prevents shrinking and sets width to 1/6th of container */
  max-width: 16.66%;
}

/* Add a transparency effect for thumnbail images */
.demo {
  opacity: 0.6;
  height: 4rem;
  object-fit: cover;
  transition: opacity 0.2s;
  border-radius: 0.4rem;
}

.column:has(.demo):not(:first-child) {
  padding-left: 0.5rem;
}

.active,
.demo:hover {
  opacity: 1;
}

/* Under the Gallery */
.project-member-count {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin: 1rem 0 0.5rem 0;
}


/* CONTACT PAGE */
.contact-email,
.social-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--main-background-color);
  border: 1px solid var(--article-border-color);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.contact-email {
  margin-bottom: 2rem;
  width: fit-content;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.18), rgba(109, 63, 224, 0.06));
  border-color: rgba(139, 92, 246, 0.45);
}

.contact-email:hover,
.social-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 8px 26px var(--glow-color);
}

.contact-icon {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.8rem;
  background: var(--accent-gradient);
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.35);
}

.contact-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-label {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.contact-kicker {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.contact-value {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 500;
  color: #fff;
  overflow-wrap: anywhere;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  padding-bottom: 1.75rem;
}


/* OTHER */

/* Slim dark scrollbars for the whole page */
html {
  scrollbar-color: var(--accent-strong) var(--background-color);
}

footer {
  background: var(--footer-background-color);
  border-top: 1px solid var(--article-border-color);
  color: var(--footer-color);
  padding: 1.25rem 2rem;
  position: relative;
  bottom: 0;
  width: 100%;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 1240px) {
  .project-item {
    width: 100%;
    max-width: 100%;
  }
  .project-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
  article,
  .article-background {
    width: 100%;
    max-width: 100%;
  }
  .project-title {
    font-size: 1.25rem;
  }
}

@media (max-width: 900px) {
  .project-item {
    width: 100%;
    max-width: 100%;
  }
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  article,
  .article-background {
    width: 100%;
    max-width: 100%;
  }
  .project-title {
    font-size: 1.25rem;
  }
}

@media (max-width: 850px) {
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (max-width: 650px) {
  .main-inside {
    padding: 0;
  }
  main {
    padding: 0 1rem;
  }
  .header-inside {
    padding: 0;
    padding-top: 1rem;
  }
  .nav-list {
    flex-direction: column;
    border-radius: 0;
    padding: 0;
  }
  .nav {
    margin: 0;
    padding: 0;
  }
  .project-grid {
    gap: 1rem;
  }

  .nav-list > :first-child {
    border-radius: unset;
  }

  .nav-list > :last-child {
    border-radius: unset;
  }
}

@media (max-width: 550px) {
  .project-description {
    font-size: 0.95rem;
  }
  .project-grid {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }
}

@media (max-width: 650px) {
  .social-grid {
    grid-template-columns: 1fr;
  }
}
