@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&display=swap");
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono&family=Playfair+Display:wght@400;700&display=swap');

h1,
h2 {
  font-family: "Playfair Display", serif;
  font-weight: 700;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  color: var(--dark);
  transition: all 0.1s ease-in-out;
}

:root {
  --dark: #444;
  --white: #fafafa;
  --light: #f5f5f5;
  --border-dashed: 1px dashed var(--dark);
  --shadow: 1px 1px 0px var(--dark);
  --no-shadow: 0 0 0 var(--dark);
  --border-radius: 4px;

}

html {
  scroll-behavior: smooth;
}

.flex {
  display: flex;
}

.flex-wrap {
  flex-wrap: wrap;
}

.m-auto {
  margin: auto;
}

.justify-center {
  justify-content: center;
}

.gap-4 {
  gap: 0.5rem;
}

.gap-6 {
  gap: 1rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.align-center {
  align-items: center;
}

.text-center {
  text-align: center;
}

body {
  margin: auto;
  font-family: "IBM Plex Mono", monospace;
  padding: 0.5rem;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--dark);
  position: relative;
  max-width: 90%;
  background-color: var(--white);
  letter-spacing: 0.05em;
  background-repeat: repeat;
  background-size: auto;
  background-image: url("noise-lines.png");
}

h1 {
  font-size: 2rem;
}

h2 {
  margin-bottom: 2rem;
}

a {
  color: var(--dark);
}

svg {
  stroke: var(--dark);
  width: 24px;
  height: 24px;
}

main,
section {
  max-width: 65ch;
  margin: auto;
  filter: grayscale(100%);
  line-height: 1.6;
}

.buttons {
  display: flex;
  gap: 0.5rem;
}


button {
  outline: none;
  border: 1px solid var(--dark);
  background: var(--light);
  color: var(--dark);
  padding: 0.2rem 0.4rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 1rem;
  display: flex;
  align-items: center;
  box-shadow: var(--shadow);
  transition:
    transform 0.1s ease,
    box-shadow 0.1s ease;
  height: 38px;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease;
  letter-spacing: 0.05em;

  &:active {
    transform: translate(2px, 2px);
    box-shadow: var(--no-shadow);
  }
}



button a {
  text-decoration: none;
}

input[type="radio"],
input[type="checkbox"] {
  accent-color: var(--dark);
  cursor: pointer;
}

input[type="password"],
input[type="search"] {
  border: 1px solid transparent;
  padding: 0.2rem 0;
  width: 100%;
}

.password,
.search {
  display: flex;
  align-items: center;
  border: 1px solid var(--dark);
  padding: 0 0.4rem;
  gap: 0.2rem;


  & svg:hover {
    cursor: pointer;
  }
}


.tree {
  display: flex;
  flex-direction: column;
}

.folder,
.file {
  display: inline-flex;
  gap: 0.2rem;
  align-items: center;
}

.file {
  padding-left: 1.5rem;
}

.folder:hover,
.file:hover {
  cursor: pointer;
  text-decoration: underline;
}

.field {
  display: inline-flex;
  flex-direction: column;
}

.field_row {
  display: flex;
  gap: 0.2rem;
  align-items: center;
}


textarea {
  border: none;
  resize: none;
  outline: none;
  font-family: "IBM Plex Mono", monospace;
  font-size: 1rem;
  background: transparent;
  border: 1px solid var(--dark)
}


.fake-link {
  text-decoration: underline;
  cursor: pointer;
}

.form {
  display: inline-flex;
  flex-direction: column;
  gap: 0.5rem;
}

select {
  outline: none;
  border: 1px solid var(--dark);
  color: var(--dark);
  border-radius: 2px;
  background: transparent;
  padding: 0.2rem 0.4rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 1rem;
}

fieldset {
  border: 1px solid var(--dark);
  padding: 0.2rem;
}

legend {
  padding: 0 0.2rem;
}


blockquote {
  border-left: 2px solid var(--dark);
  margin: 0;
  padding-left: 2.5rem;
  border-top-right-radius: 5px;
  border-bottom-right-radius: 5px;
  position: relative;
}

blockquote::before {
  content: open-quote;
  position: absolute;
  left: 0.5rem;
  top: -1rem;
  font-size: 2.5rem;
  font-weight: 200;
}

ul {
  list-style-type: circle;
  margin-left: 1rem;
}

.tabs {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--dark);
}

.tab {
  padding: 0 0.2rem;
  border: 1px solid transparent;
  border-bottom: 1px solid var(--dark);
  margin-bottom: -1px;
}

.tab-active {
  border: 1px solid var(--dark);
  border-bottom: 1px solid var(--light);
  margin-bottom: -1px;
  position: relative;
  z-index: 1;
}

.tab-content {
  border: 1px solid var(--dark);
  border-top: none;
  padding: 0.2rem;
}

.toasts-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--dark);
  padding: 0.2rem 0.4rem;
}

.toast svg {
  width: 32px;
  height: 32px;
}

#profile {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;


  min-height: 100vh;
}

section {
  padding: 5rem 0;
}

.cards-project,
.cards-skill {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: auto;
}



.card {
  background: var(--white);
  border: 1px solid var(--dark);
  padding: 1rem;
  min-width: 250px;
  display: flex;
  flex-direction: column;
  background: var(--light);
}


.experiences,
.formations {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(-10px);
    animation-timing-function: ease-in;
  }

  50% {
    transform: translateY(0);
    animation-timing-function: ease-out;
  }
}

.bouncy {
  display: inline-block;
  animation: bounce 1s infinite;
}

@media screen and (min-width:768px) {

  .cards-skill,
  .cards-project {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .cards-project .card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2rem;
  }

  .title {
    font-size: 1.5rem;
  }

}