body {
  --font-sans: 'Geist', sans-serif;
  --font-mono: 'Geist Mono', monospace;

  --primary-text-color: #1f1f1d;
  --primary-text-darker-color: #141412;
  --secondary-text-color: #6f6a5f;
  --primary-color: #4b67d4;
  --background-color: #edf1f9;
  --background-glow-1: rgba(255, 77, 45, 0.16);
  --background-glow-2: rgba(18, 16, 14, 0.06);
  --surface-color: rgba(240, 238, 233, 0.6);
  --grid-line-color: rgba(24, 28, 40, 0.05);
  --paper-grain: rgba(20, 20, 18, 0.035);
}

body.dark-theme {
  --primary-text-color: #f1eee7;
  --primary-text-darker-color: #dcd8cf;
  --secondary-text-color: #a39b8f;
  --primary-color: #4b67d4;
  --background-color: #1b1f28;
  --background-glow-1: rgba(255, 107, 77, 0.14);
  --background-glow-2: rgba(240, 238, 233, 0.06);
  --surface-color: rgba(17, 19, 16, 0.78);
  --grid-line-color: rgba(227, 232, 242, 0.06);
  --paper-grain: rgba(240, 238, 233, 0.04);
  color-scheme: dark;
}

/* Changing root font size to 16px */
html {
  font-size: 16px;
  scroll-behavior: smooth;
  color-scheme: light;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--background-color);
  background-image: linear-gradient(
      90deg,
      var(--grid-line-color) 1px,
      transparent 1px
    ),
    linear-gradient(var(--grid-line-color) 1px, transparent 1px);
  background-size: 120px 120px;
}

* {
  box-sizing: border-box;
}

/* * {
    transition: background-color 0.3s ease, color 0.3s ease;
} */

/*
    Theme switching
*/

button#theme-switcher {
  background-color: var(--background-color);
  border: 2px solid var(--primary-text-color);
  color: var(--primary-text-color);
  border-radius: 0;
  transition: 0.3s ease;
}

button#theme-switcher:hover {
  background-color: var(--primary-text-color);
  color: var(--background-color);
  border-radius: 1rem;
  border-color: var(--primary-text-darker-color);
}

button#theme-switcher:focus-visible {
  outline: 3px solid var(--primary-color);
  outline-offset: 4px;
}

span.button-inside {
  padding: 0 1rem;
}

button#theme-switcher {
  padding: 0.5rem 0;
}

span.button-inside > i.fas {
  font-size: 1rem;
  padding-right: 0.5rem;
}

span.button-inside > span {
  font-size: 1rem;
  font-family: var(--font-sans);
  font-weight: 500;
}

#theme {
  text-align: center;
  margin: 1rem 0;
  position: absolute;
  top: 1rem;
  left: 50%;
  margin-right: -50%;
  transform: translate(-50%, -50%);
}

h1#title {
  font-size: 6rem;
  /* 96px */
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--primary-text-color);
  margin: 0 0 0.5rem 0;
}

h2#subtitle {
  font-size: 1.6rem;
  font-family: var(--font-mono);
  font-style: normal;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--secondary-text-color);
  margin: 0;
}

p {
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--primary-text-color);
  line-height: 1.7;
}

header {
  height: 100vh;
  width: 100%;
  display: flex;
  text-align: center;
  align-items: center;
}

a {
  color: var(--primary-color);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

a:focus-visible {
  outline: 3px solid var(--primary-color);
  outline-offset: 4px;
  border-radius: 4px;
}

.headerContent {
  margin: 0 auto;
  width: 960px;
}

.material-icons-round.md-3 {
  font-size: 3rem;
  color: var(--primary-text-color);
}

#moveDown {
  position: absolute;
  margin: 2rem 0;
  transition: 0.5s;
  text-align: center;
  transform: translate(-50%, -50%);
  bottom: 0;
}

#moveDown:hover {
  bottom: -1rem;
}

.separator {
  width: 6rem;
  height: 4px;
  background-color: var(--primary-color);
  margin-right: 2rem;
  display: inline-block;
}

div.section-title {
  display: flex;
  justify-content: left;
  align-items: center;
  margin: 5rem auto 3rem auto;
  /* border-bottom: 2px solid var(--primary-text-color); */
  padding-bottom: 0.75rem;
}

h2.section-title {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-color);
  font-size: 1.75rem;
}

main {
  margin: 0 34rem;
}

.content-margin {
  margin: 0 2rem;
}

div.margin-bottom-2 {
  margin-bottom: 2rem;
}

img {
  clip-path: none;
  max-width: 18rem;
  max-height: 18rem;
  border-radius: 0;
  border: 2px solid var(--primary-text-color);
  object-fit: cover;
  display: block;
  margin: 0;
}

.social-media-icon {
  font-size: 2rem;
  color: var(--primary-text-color);
  padding-right: 1rem;
  padding-left: 1rem;
  transition: 0.3s;
}

.fa-file {
  padding-right: 0;
}

.fa-linkedin {
  padding-left: 0;
}

.social-media-icons {
  text-align: center;
  /* margin: 0 auto; */
  display: inline-flex;
  margin-top: 1.5rem;
}

.social-media-icon:hover {
  color: var(--secondary-text-color);
}

.footer-icon {
  display: inline;
  color: inherit;
}

.about {
  display: inline-flex;
  align-items: center;
  flex-direction: row;
  flex-wrap: wrap;
  /* justify-content: flex-start; */
}

.left {
  flex-grow: 1;
  flex: 0 0 50%;
  max-width: 50%;
}

.left p {
  margin: 0;
  max-width: 60ch;
  margin-bottom: 1rem;
}

.right {
  flex-grow: 1;
}

.profile-block {
  margin-left: 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  align-content: flex-start;
}

@media (max-width: 1700px) {
  main {
    margin: 0 12rem;
  }
}

@media (max-width: 1200px) {
  .left {
    /* FONT-WEIGHT: 500; */
    /* flex: 0 0 100%; */
    max-width: 100%;
  }

  main {
    margin: 0 auto;
  }
}

@media (max-width: 1000px) {
  .profile-block {
    margin: 0;
    margin-top: 2rem;
  }

  .left {
    /* FONT-WEIGHT: 500; */
    flex: 0 0 100%;
  }

  .left p {
    max-width: 100%;
  }

  span.year {
    float: initial !important;
    padding-left: 1rem;
  }
}

@media (orientation: landscape) {
  #moveDown {
    margin: 0;
  }
}

h3 {
  display: inline;
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--primary-text-color);
  font-size: 1.6rem;
  margin: 0 0 0.75rem 0;
  justify-content: space-between;
}

h4 {
  display: block;
  font-family: var(--font-sans);
  font-weight: 500;
  color: var(--secondary-text-color);
  font-size: 0.875rem;
  margin: 0 0 1rem 0;
}

span.year {
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--primary-text-color);
  font-size: 1rem;
  text-align: right;
  float: right;
}

footer {
  margin: 4rem auto 2rem auto;
  text-align: center;
}

footer span {
  display: inline;
  font-family: var(--font-sans);
  font-weight: 500;
  color: var(--primary-text-color);
  transition: 0.3s;
}

#cc {
  display: inline-block;
  margin: 1rem;
}

#cc i {
  font-size: 1.5rem;
}

footer a {
  color: var(--primary-text-color);
  text-decoration: none;
  transition: 0.3s;
}

footer a:hover {
  color: var(--secondary-text-color);
}

div#source span:hover {
  color: var(--secondary-text-color);
}

#copyright {
  color: var(--primary-text-color);
  margin-bottom: 0.5rem;
}
