/* RESET & GLOBAL STYLES */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  line-height: 1.5;
  font-family: 'Inconsolata', monospace;
  background: #1A1A2E;
  color: #94A3B8;
  overflow-x: hidden;
}

/* ELEMENTS */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Karla', sans-serif;
  color: #f1f5f9;
}

a {
  color: inherit;
  text-decoration: none;
}

.title a{
  background: repeating-linear-gradient(90deg, #e058ff, #c158ff, #a359ff, #8459ff, #665aff, #5a6dff, #5b8bff, #5baaff) 0/200%;
  background-clip: text;
  -webkit-background-clip: text;
  background-size: 200% 100%;
  background-position: 0% 0%;
}

.title a:hover {
  color: transparent;
  animation: gradient-loop 6s linear infinite;
}

@keyframes gradient-loop {
  to {background-position: 100% 0%;}
}

button,
input,
select,
textarea {
  font: inherit;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

p {
  line-height: 1.8;
  margin-bottom: 1.5rem;
  max-width: 70ch;
}

ul {
  padding-left: 2rem;
  list-style: none;
}

li {
  padding-left: 1rem;
}

li::before {
  content: "├─ ";
  margin-right: 0.5rem;
}

/* LAYOUT */

header {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 2rem;
  width: 100%;
  padding: 1rem;
  background-color: #10101d;
  font-size: 0.9rem;
  border: 1px solid #221434;
  flex-wrap: wrap;
}

header p {
  margin-bottom: 0;
}

header ul {
  padding-left: 0;
  display: flex;
  gap: 1rem;
}

header li {
  padding-left: 0;
}

header li::before {
  content: none;
}

main {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 1.5rem;
  flex: 1;
}

footer {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 1.5rem;
  margin-top: auto;
}

section {
  padding: 1.5rem 0;
}

.main-nav {
  padding: 0;
}

/* COMPONENTS */

.projects-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: left;
}

.projects-gallery img {
  max-height: 300px;
  max-width: 500px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 0.25rem;
  transition: transform 0.3s ease;
}

.projects-gallery img:hover {
  transform: scale(1.02);
}

.title {
  margin-bottom: 2rem;
}

.art, .art-intro {
  padding: 0;
}

/* MEDIA QUERIES */

@media (max-width: 768px) {
  header {
    padding: 0.75rem;
    gap: 1rem;
  }
}

@media (min-width: 768px) {
  main {
    padding: 5rem;
  }

  footer {
    padding: 5rem;
  }
}