font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/Inter-Regular.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/Inter-Bold.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/Inter-Italic.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/Inter-BoldItalic.woff2") format("woff2");
}

@font-face {
  font-family: "JetBrainsMono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/JetBrainsMono-Regular.woff2") format("woff2");
}

@font-face {
  font-family: "JetBrainsMono";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/JetBrainsMono-Bold.woff2") format("woff2");
}

@font-face {
  font-family: "JetBrainsMono";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/JetBrainsMono-Italic.woff2") format("woff2");
}

@font-face {
  font-family: "JetBrainsMono";
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/JetBrainsMono-BoldItalic.woff2") format("woff2");
}

:root {
  --size-breakpoint-mobile: 640px;

  --color-white: #ffffff;
  --color-primary: #445577;
  --color-primary-hover: #6581b9;
  --color-secondary: #f7b700;
  --color-secondary-hover: #ffc936;
  --color-accent-1: #b394f5;
  --color-accent-2: #6d7ff5;
  --color-muted: #99aacc;
  --color-faded: #ddeeff;
}

/* ELEMENTS */
* {
  margin: 0;
  border: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "JetBrains Mono";
}

html, body {
  background-color: var(--color-white);
  font-size: 16px;
}

body > header,
body > nav,
body > section,
body > article,
body > aside,
body > footer,
body > div,
main {
  padding: 1.25rem;
}

h1,
h1 *,
h2,
h2 *,
h3,
h3 *,
h4,
h4 *,
h5,
h5 *,
h6,
h6 * {
  font-family: Inter;
}

p {
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

button {
  cursor: pointer;
}

hr {
  border-top: 1px solid var(--color-muted);
  margin: 4rem 0;
}

main {
  margin-top: 5rem;
  min-height: 100vh;
  color: var(--color-primary);
}

main section {
  margin: 4rem 0;
}

/* ELEMENT PROPERTIES */
.mv-1 {
  margin: 1rem 0;
}

.mv-2 {
  margin: 2rem 0;
}

.mv-4 {
  margin: 4rem 0;
}

.mt-1 {
  margin-top: 1rem;
}

.mb-1 {
  margin-bottom: 1rem;
}

.mt-2 {
  margin-top: 2rem;
}

.mb-2 {
  margin-bottom: 2rem;
}

.mt-4 {
  margin-top: 4rem;
}

.mb-4 {
  margin-bottom: 4rem;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.text-bold {
  font-weight: 700;
}

.text-italic {
  font-style: italic;
}

.text-upper {
  text-transform: uppercase;
}

.text-lower {
  text-transform: lowercase;
}

.text-title {
  text-transform: capitalize;
}

.text-larger {
  font-size: 125%;
}

.text-smaller {
  font-size: 75%;
}

.text-secondary {
  color: var(--color-secondary);
}

.text-accent {
  background: linear-gradient(135deg, var(--color-accent-1), var(--color-accent-2));
  background-clip: text;
  color: transparent;
}

.text-muted {
  color: var(--color-muted);
}

.text-faded {
  color: var(--color-faded);
}

.text-left {
  text-align: left;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.btn {
  border-radius: 0.625rem;
  padding: 1rem 2rem;
  font-family: Inter;
  font-weight: 700;
  transition: all 0.1s ease;

  display: inline-block;
}

.btn.primary {
  border: 1px solid var(--color-primary);
  background-color: var(--color-primary);
  color: var(--color-white);
}

.btn.primary:hover {
  border: 1px solid var(--color-primary-hover);
  background-color: var(--color-primary-hover);
  color: var(--color-white);
}

.btn.primary.outline {
  background-color: transparent;
  color: var(--color-primary);
}

.btn.primary.outline:hover {
  border: 1px solid var(--color-primary-hover);
  color: var(--color-primary-hover);
}

.btn.secondary {
  border: 1px solid var(--color-secondary);
  background-color: var(--color-secondary);
  color: var(--color-white);
}

.btn.secondary:hover {
  border: 1px solid var(--color-secondary-hover);
  background-color: var(--color-secondary-hover);
  color: var(--color-white);
}

.btn.secondary.outline {
  background-color: transparent;
  color: var(--color-secondary);
}

.btn.secondary.outline:hover {
  border: 1px solid var(--color-secondary-hover);
  color: var(--color-secondary-hover);
}

/* LAYOUT */
.flex {
  display: flex;
}

.items-start {
  align-items: flex-start;
}

.items-center {
  align-items: center;
}

.items-end {
  align-items: flex-end;
}

.justify-start {
  justify-content: flex-start;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-end {
  justify-content: flex-end;
}

.flex-wrap {
  flex-wrap: wrap;
}

.row-to-col {
  flex-direction: row;
}

.gap-1 {
  gap: 1rem;
}

.gap-2 {
  gap: 2rem;
}

.gap-4 {
  gap: 4rem;
}

.global-header {
  width: 100%;
  background-color: var(--color-white);
  box-shadow: 0 0 2.5rem 0 var(--color-faded);
  color: var(--color-primary);

  display: flex;
  align-items: center;
  gap: 1.25rem;

  position: fixed;
  top: 0;
  z-index: 10000;
}

.global-header h1 {
  font-size: 1.5rem;
}

.global-navigation {
  margin-left: auto;
}

.global-navigation .menu {
  display: flex;
  gap: 1rem;
}

.global-navigation .menu li {
  list-style: none;
}

.container {
  margin: 0 auto;
  max-width: 75rem;
}

.card {
  border-radius: 1.25rem;
  box-shadow: 0 0 1rem 0 var(--color-faded);

  display: flex;
  flex-direction: column;

  transition: all 0.1s ease;
}

.card:hover {
  transform: translateY(-0.25rem);
}

.card header {
  border-radius: 1.25rem 1.25rem 0 0;
  padding: 2rem 2rem 1rem 2rem;
  font-family: Inter;
  color: var(--color-accent-2);
}

.card .main {
  padding: 1rem 2rem 1rem 2rem;

  flex: 1;
  
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.card footer {
  border-radius: 0 0 1.25rem 1.25rem;
  padding: 1rem 2rem 2rem 2rem;
  font-family: Inter;
  color: var(--color-secondary);

  text-align: right;
}

.card footer * {
  font-family: Inter;
}

.loupe {
  border-radius: 100%;
}

.global-footer {
  color: var(--color-muted);
}

/* ITEMS */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger div {
  width: 25px;
  height: 3px;
  background-color: var(--text);
  transition: 0.3s;
}

.hamburger.active div:nth-child(1) {
  transform: rotate(45deg) translate(5px,5px);
}

.hamburger.active div:nth-child(2) {
  opacity: 0;
}

.hamburger.active div:nth-child(3) {
  transform: rotate(-45deg) translate(5px,-5px);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 1rem;
  gap: 1rem;
  background-color: var(--card);
}

.mobile-menu.active {
  display: flex;
}

.page-title {
  font-size: 2.5rem;
  font-weight: 700;

  text-align: center;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.list-none li {
  list-style: none;
}

.gui-window .title-bar {
  border-radius: 1rem 1rem 0 0;
  padding: 0.75rem 1rem;
  width: 100%;
  background-color: var(--color-primary);
  font-weight: 700;
  color: var(--color-white);
  
  display: flex;
  align-items: center;
  gap: 1rem;
}

.gui-window .viewport {
  border: 1px solid var(--border);
  border-radius: 0 0 1rem 1rem;
  padding: 1rem;
  width: 100%;
  min-height: 20rem;
  background-color: var(--color-primary);
  font-family: monospace;
  font-size: 0.9rem;
  color: var(--color-white);

  overflow: auto;
}

.gui-window .viewport code {
  display: block;
  white-space: pre-line;
}

.gui-window .title-bar .text {
  flex: 1;
}

.gui-window .title-bar .buttons {
  margin: 0;
}

.gui-window .title-bar .btn-minimize,
.gui-window .title-bar .btn-maximize,
.gui-window .title-bar .btn-close {
  border: 0;
  width: 0.72rem;
  height: 0.75rem;
  border-radius: 50%;
}

.gui-window .title-bar .btn-minimize {
  background-color: #5fc16b;
}

.gui-window .title-bar .btn-maximize {
  background-color: #f5ca57;
}

.gui-window .title-bar .btn-close {
  background-color: #f56e6b;
}

.project-tools-list {
  font-size: 0.75rem;
  list-style: none;

  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.project-tools-list li {
  padding: 0.5rem 1rem;
  border: 1px solid var(--color-accent-2);
  border-radius: 0.625rem;
  color: var(--color-accent-2);
}

.profile-picture {
  width: 25rem;
  height: 25rem;
}

.certifications img {
  max-width: 6.25rem;
}

/* RESPONSIVE DESIGN */
@media screen and (max-width: 640px) {
  .mobile-hide {
    display: none;
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  .row-to-col {
    flex-direction: column;
  }
}
