/* =========================================
   Root
========================================= */
:root {
  --color-bg-dark: #2b2e4b;
  --color-bg-dark-alt: #2b2d30;
  --color-bg-card: #292929;

  --color-text: #ffffff;
  --color-text-muted: #dfdddd;

  --radius-sm: 5px;
  --radius-md: 10px;

  --shadow-sm: 0 0 5px rgba(0, 0, 0, 0.6);
  --shadow-md: 0 0 1rem rgba(0, 0, 0, 1);

  font-size: 13px;
  font-family: "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS", sans-serif;
  color: var(--color-text);
}

/* =========================================
   Global reset
========================================= */
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  padding: 0;
}

/* =========================================
   Navigation
========================================= */
header nav {
  background: linear-gradient(
    120deg,
    var(--color-bg-dark-alt),
    50%,
    var(--color-bg-dark)
  );
  position: fixed;
  z-index: 1000;

  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  width: 100%;
  box-sizing: border-box;
  padding: 0rem 1rem 0rem 1rem;
}

#logo {
  width: 72px;
  height: 72px;
}

#brand {
  width: 90px;
  height: 40px;
}

#logo-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  border: none;
}

header nav a {
  color: white;
  font-size: 1.4rem;
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-sm);
  border: 1px solid white;

  text-shadow: -1px -1px 0 #1d1d2b, 1px -1px 0 #1d1d2b,
               -1px 1px 0 #1d1d2b, 1px 1px 0 #1d1d2b;

  transition: 0.25s ease-in-out;
}

header nav a:hover {
  background: white;
  color: var(--color-bg-dark);
  text-shadow: none;
  transform: translateY(3px);
}

header nav a:active {
  transform: translateY(7px);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  margin: 0;
}

/* =========================================
   Intro
========================================= */
header .intro {
     padding: 15rem 5rem 5rem 5rem;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 5rem;
  background: linear-gradient(
    120deg,
    var(--color-bg-dark-alt),
    50%,
    var(--color-bg-dark)
  );
}

header .intro img {
  width: 25rem;
  height: 25rem;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

header .intro h1 {
  font-size: 4rem;
  margin-bottom: 1rem;
}

header .intro h2 {
  font-size: 2rem;
  max-width: 65%;
  color: var(--color-text-muted);
}

header .intro > div {
  max-width: 51%;
}

/* =========================================
   Animated Background
========================================= */
@keyframes diagonal {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

main {
  background-size: 300% 150%;
  background-image: repeating-linear-gradient(
    -45deg,
    #463737 0%,
    #3d4637 15%,
    #373946 30%,
    #463737 45%
  );
  animation: diagonal 30s linear infinite;
}

/* =========================================
   Main Layout
========================================= */
main article {
  padding: 5rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

main h2 {
  font-size: 4rem;
  margin-bottom: 3rem;
}

/* =========================================
   Sections (Services, Projects, Contact)
========================================= */
main article section {
  display: flex;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 3rem;
  width: calc(100% - 30vw);
}

main article section div {
  background: var(--color-bg-card);
  border-radius: var(--radius-md);
  padding: 1.5rem;

  display: flex;
  flex-direction: column;
  align-items: center;

  box-shadow: var(--shadow-sm);
}

main article section img {
  width: 64px;
  height: 64px;
  filter: invert(3);
}

/* Contact icons */
main article#contact-main img {
  filter: none;
}

/* =========================================
   Text
========================================= */
main article section div h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

main article section div p {
  font-size: 1.8rem;
  text-align: center;
}

/* =========================================
   Buttons / Links
========================================= */
main article section div a {
  color: white;
  border: 1px solid white;
  padding: 0.8rem 1.2rem;
  border-radius: 6px;
  margin-top: 1rem;
  transition: 0.25s ease-in-out;
}

main article section div a:hover {
  background: white;
  color: var(--color-bg-dark);
  cursor: pointer;
}

main article section div a:visited {
  background: var(--color-bg-dark);
}

/* =========================================
   About
========================================= */
main article#about-main section div {
  width: 100%;
  padding: 1.5rem;
}

main article#about-main img {
  width: 64px;
  height: 64px;
  filter: invert(3);
}

main article#about-main strong {
  font-size: 4rem;
}

main article#about-main p {
  text-align: left;
  line-height: 1.6;
}

main article#about-main a {
  color: lightsalmon;
}

/* =========================================
   Projects
========================================= */
main article#projects-main img {
  width: 150px;
  height: 150px;
  filter: none;
}

/* =========================================
   Responsive
========================================= */
@media screen and (max-width: 1000px) {
  main article section {
    flex-direction: column;
    align-items: center;
    width: 90%;
  }

  main article#about-main img {
  }
}

@media screen and (max-width: 700px) {
  header nav {
    justify-content: center;
  }

  header .intro > div {
    max-width: 100%;
  }

  header .intro h2 {
    max-width: 100%;
  }
}
