/* http://meyerweb.com/eric/tools/css/reset/
v2.0 | 20110126
License: none (public domain)
*/

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}
body {
  line-height: 1;
}
ol,
ul {
  list-style: none;
}
blockquote,
q {
  quotes: none;
}
blockquote:before,
blockquote:after,
q:before,
q:after {
  content: "";
  content: none;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* STYLE */

:root {
  --primary-color: #5199eb;
}

html,
body {
  height: 100%;
}

html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

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

body {
  height: 100%;
  background-color: #ffffff;
  color: #454545;
  font-family: "Poppins", sans-serif;
  scroll-behavior: smooth;
}

#wrapper {
  min-height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.section {
  padding: 40px 20%;
}

.section-bg {
  background-color: #f9f9f9;
}

/* Menu */

#header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#header a {
  color: inherit;
}

#header h1 {
  font-size: 32px;
}

#header ul li {
  display: inline-block;
  margin-bottom: 0;
  font-size: 18px;
  margin-left: 30px;
}

#header ul li:first-child {
  margin-left: 0;
}

/* Content */

#content h2 {
  color: var(--primary-color);
  margin-bottom: 40px;
  font-size: 26px;
}

#content h3 {
  margin-bottom: 40px;
  font-size: 24px;
}

#content h4 {
  margin-bottom: 20px;
  font-size: 20px;
}

/* Header */

#content-header h2 {
  margin-bottom: 10px;
  font-size: 36px;

  span {
    font-weight: bold;
  }
}

#content-header p {
  margin-bottom: 20px;
  line-height: 1.5em;
}

#content-header a {
  font-size: 20px;
}

.city {
  color: var(--primary-color);
  font-weight: bold;
  font-size: 1.2em;
}

.status-dot {
  display: block;
  width: 14px;
  height: 14px;
  background: #2ebe65;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}

/* Projects */

#projects {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.project {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px;
  color: #454545;
  background-color: #ffffff;
  transition: background-color 0.2s;
  color: #454545;
  box-shadow:
    rgba(0, 0, 0, 0.05) 0px 6px 24px 0px,
    rgba(0, 0, 0, 0.08) 0px 0px 0px 1px;
  border-radius: 8px;
}

.project .project-tags {
  display: flex;
  align-items: center;
  gap: 10px;
}

.project .project-tags .tag {
  padding: 5px;
  font-size: 14px;
  border-radius: 4px;
  background-color: #f2f2f2;
  font-weight: bold;
}

.project .project-tags .tag.tag-main {
  background-color: #deebff;
  color: #4b91ff;
}

.project .project-tags .tag.tag-success {
  background-color: #deffeb;
  color: #2ebe65;
}

.project .project-tags .tag.tag-error {
  background-color: #ffdada;
  color: #ff4b4b;
}

.project .project-body {
  display: flex;
  align-items: center;
  gap: 20px;
}

.project a {
  text-decoration: none;
  color: inherit;
  font-weight: normal;
}

.project a b {
  display: block;
  font-size: 18px;
  margin-bottom: 10px;
}

/* Skills */

#skills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;

  span {
    padding: 5px 10px;
    border-radius: 20px;
    background-color: #deebff;
    color: #4b91ff;
    font-size: 18px;
    font-weight: bold;
  }
}

/** Contributions */

#contributions {
  a {
    font-weight: normal;
  }
}

/* Contact & footer */

#contact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0;
}

#contact p {
  line-height: 36px;
}

#contact .btn {
  margin-left: 40px;
  flex-shrink: 0;
}

#footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#footer a {
  margin-left: 20px;
  text-decoration: none;
  color: initial;
}

/* Various */

hr {
  border: none;
  margin: 30px 0;
  width: 100%;
  height: 1px;
  background-color: #f2f2f2;
}

img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

ul {
  margin-left: 40px;
  list-style-type: disc;
}

ul ul {
  margin-bottom: 20px;
  list-style-type: circle;
}

ul li:not(:last-child) {
  margin-bottom: 20px;
}

a {
  color: var(--primary-color);
  font-weight: bold;
  text-decoration-thickness: 0.14em;
  text-underline-offset: 0.24em;
  text-decoration-color: #ccc;
  transition: text-decoration-color 1s ease-in-out;

  &:hover {
    text-decoration-color: var(--primary-color);
  }
}

b {
  font-weight: bold;
}

.d-flex {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mb-40 {
  margin-bottom: 40px !important;
}

.mb-20 {
  margin-bottom: 20px !important;
}

.text-bold {
  font-weight: bold;
}

.text-small {
  font-size: 0.8em;
}

/** Badges */

.badge {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.8em;
  font-weight: bold;
  background-color: #454545;
  color: #ffffff;

  &.badge-issue {
    background-color: #f0883e;
  }

  &.badge-mr {
    background-color: #9b8ce8;
  }
}

/* Buttons */

a.btn {
  display: inline-block;
}

.btn {
  min-width: 200px;
  padding: 15px 20px;
  border-radius: 40px;
  border: 4px solid var(--primary-color);
  text-decoration: none;
  text-align: center;
  transition: all 0.2s;
  cursor: pointer;
  font-size: inherit;
  white-space: nowrap;
  font-weight: bold;
  background-color: transparent;
  color: var(--primary-color);

  &:hover {
    background-color: var(--primary-color);
    color: #ffffff;
  }
}

.btn-alt {
  background-color: #454545;
  color: #ffffff;
}

.btn-white {
  background-color: #ffffff;
  color: #454545;
  border-color: #ffffff;
}

.btn-alt:hover {
  background-color: transparent;
  color: #454545;
}

.btn-white:hover {
  border-color: #454545;
}

/* MEDIA QUERIES */

@media only screen and (max-width: 1200px) {
  .section {
    padding-left: 10%;
    padding-right: 10%;
  }

  #header ul li {
    font-size: 20px;
  }

  #projects {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media only screen and (max-width: 768px) {
  .section {
    padding: 40px 5%;
  }

  #header {
    flex-direction: column;
    padding-bottom: 0;
    text-align: center;
  }

  #header h1 {
    margin-bottom: 40px;
  }

  #header ul {
    margin-left: 0;
  }

  #header ul li {
    margin: 0 10px 20px 10px;
  }

  #content-header h2 {
    font-size: 48px;
  }

  #content-header a {
    font-size: 18px;
  }

  #projects {
    grid-template-columns: repeat(1, 1fr);
  }

  #contact,
  #footer {
    flex-direction: column;
    text-align: center;
  }

  #contact .btn {
    margin-left: 0;
    margin-top: 40px;
  }

  #footer div {
    margin-top: 40px;
  }
}

@media only screen and (max-width: 480px) {
  #content-header #skills {
    margin-bottom: 0;
    flex-direction: column;
  }

  #content-header #skills ul {
    margin-right: 0;
    margin-bottom: 40px;
  }

  input[type="email"],
  input[type="text"] {
    width: 300px;
  }

  .btn {
    min-width: 100px;
  }
}

@media only screen and (max-width: 320px) {
  .section {
    padding-left: 20px;
    padding-right: 20px;
  }

  input[type="email"],
  input[type="text"] {
    width: 250px;
  }
}
