html {
  scroll-behavior: smooth;
}

:root {
  --color-bg-1: #070709;
  --color-bg-2: #141518;
  --color-fore-1: white;
  --color-fore-2: rgb(219, 219, 219);
  --color-fore-3: #646cff;

  font-family: "PT Sans", Arial, Helvetica, sans-serif;
  color: var(--color-fore-1);
}

/* Fix floating navbar covering up targeted element */
[id] {
  scroll-margin-top: 2rem;
}

body {
  margin: 0;
}

nav {
  background: var(--color-bg-2);
  border-bottom: 1px solid #ffffff1f;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  z-index: 100;

  width: 100%;
  position: fixed;
  right: -0.5rem;
  transform: translateY(-5rem);
  transition: transform 0.5s ease;
}

nav a {
  color: var(--color-fore-1);
  text-decoration: none;
  margin-left: 1rem;
  line-height: 45px;
  padding: 0.1rem 0.5rem;
  border-radius: 0.3rem;
  border: 1px solid transparent;
}

nav a:hover {
  border: 1px solid var(--color-fore-3);
}

.nav-open {
  display: block !important;
}

#nav-main a {
  font-size: 1.4rem;
  font-weight: bold;
  line-height: 45px;
}

#nav-links {
  font-size: 1.2rem;
  display: flex;
}

#nav-leading-link {
  display: flex;
}

#headshot-secondary {
  margin-right: 1rem;
  height: 2.5rem;
  width: 2.5rem;
  border-radius: 10rem;
  overflow: hidden;
}

#headshot-secondary > img {
  max-height: 100%;
  max-width: 100%;
  object-fit: cover;
}

#nav-drawer-btn {
  border: 1px solid transparent;
  border-radius: 0.3rem;
  border-width: 0;
  background: transparent;
  display: none;
}

#nav-drawer-btn:active {
  border: 1px solid var(--color-fore-3);
}

section {
  padding: 2rem;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

section {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.5s ease-out, transform 0.7s ease;
}

.in-view {
  opacity: 1;
  transform: translateY(0);
}

section > h2 {
  font-size: 2rem;
}

#intro-section {
  background-image: url("../assets/entry-background.png");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  min-height: 50vh;
}

.intro-info {
  width: 40vw;
  min-width: 250px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  top: 4rem;
}

.intro-info h1 {
  font-size: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.281);
}

.intro-info p {
  font-size: 1.5rem;
  font-weight: normal;
}

#about-section {
  background: var(--color-bg-2);
  display: flex;
  justify-content: center;
}

#headshot-container {
  margin: auto;
  margin-right: 4rem;
  width: 35%;
}

#headshot-container > div {
  margin-left: auto;
  margin-right: auto;
}

#headshot-primary {
  height: 13rem;
  width: 13rem;
  border-radius: 10rem;
  overflow: hidden;
}

#headshot-primary > img {
  max-height: 100%;
  max-width: 100%;
  object-fit: cover;
}

.about-me {
  max-width: 700px;
  font-size: 1.1rem;
}

#skills-container {
  padding: 2rem;
  margin-left: auto;
  margin-right: auto;
}

#skills-section {
  margin-bottom: 1rem;
}

.label {
  font-weight: bold;
  margin-bottom: 0.5rem;
  display: block;
}

.pill {
  display: inline-block;
  background-color: var(--color-fore-3);
  color: var(--color-fore-1);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  margin: 0.2rem;
  transition: background 0.3s ease, transform 0.2s ease;
}

.pill:hover {
  background-color: var(--color-fore-2);
  color: var(--color-bg-1);
  transform: scale(1.1);
}

#school-section {
  text-align: center;
}

#school-section > div {
  margin: auto;
}

#college-logos-container {
  display: flex;
  justify-content: center;
  width: 75vw;
  margin: auto;
  margin-top: 5rem;
}

.college-logo {
  height: 13rem;
  width: 13rem;
  margin-left: 2rem;
}

.arrow-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.arrow {
  height: 5rem;
  width: 5rem;
}

.college-logo > img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

#projects-section {
  background: var(--color-bg-2);
  text-align: center;
}

#projects-section > div {
  margin: auto;
}

.single-link-icon > a {
  display: flex;
  justify-content: center;
  padding-left: 2rem;
  padding-right: 2rem;
  border-radius: 1rem;
}

.single-link-icon > a > p {
  font-size: 2rem;
  padding-left: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.single-link-icon > a > div {
  display: flex;
  flex-direction: column;
  justify-content: center;

  height: 12rem;
  width: 12rem;
  min-width: 8rem;
  border-radius: 2rem;
  overflow: hidden;
}

.single-link-icon > a > div > img {
  max-height: 100%;
  max-width: 100%;
  object-fit: cover;
}

#resume-section {
  text-align: center;
}

#resume-section > div {
  margin: auto;
}

#contact-section {
  background: var(--color-bg-2);
}

#contact-section > * {
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

#contact-section h2 {
  font-size: 2rem;
  text-align: center;
}

#contact-email-logo {
  margin: auto;
  margin-bottom: 3rem;
}

#contact-form label {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  display: block;
}

#contact-form input,
#contact-form textarea {
  display: block;
  width: 92%;
  padding: 0.375rem 0.75rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
}

#contact-form > div {
  margin-bottom: 1rem;
}

#contact-email-logo {
  width: 4rem;
  height: 4rem;
}

#contact-email-logo svg {
  max-width: 100%;
  max-height: 100%;
}

#send-message {
  margin-top: 1rem;
  padding: 0.5rem;
  border: 1px solid white;
  border-radius: 5px;
  font-size: 1.3rem;
}

.bg-1 {
  background-color: var(--color-bg-1);
}

.bg-2 {
  background-color: var(--color-bg-2);
}

.text-white {
  color: var(--color-fore-1);
}

.text-light {
  color: var(--color-fore-2);
}

.text-center {
  text-align: center;
}

.w-25 {
  width: 25vw !important;
}
.w-50 {
  width: 50vw !important;
}
.w-75 {
  width: 75vw !important;
}
.w-100 {
  width: 100vw !important;
}

.p-2 {
  padding: 0.5rem;
}

.m-2 {
  margin: 0.5rem;
}

.btn {
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  color: var(--color-fore-1);
}

.btn:hover {
  border: 1px solid var(--color-fore-3) !important;
}

@media (max-width: 600px) {
  #nav-links {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease-in-out;

    display: flex !important;
    flex-direction: column;
    text-align: center;
  }

  #nav-links.nav-open {
    max-height: 500px;
  }

  #nav-links {
    opacity: 0;
    transition: opacity 0.3s ease-in-out, max-height 0.5s ease-in-out;
  }

  #nav-links.nav-open {
    opacity: 1;
  }
  #nav-drawer-btn {
    display: block;
  }
  nav {
    display: block;
  }
  #nav-main {
    display: flex;
    justify-content: space-between;
  }
}

@media (max-width: 800px) {
  section {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  #about-section {
    display: block;
  }
  #headshot-container {
    width: 85%;
    margin-left: auto;
    margin-right: auto;
  }
  #skills-container {
    width: 85%;
    padding-left: 0;
    padding-right: 0;
  }
  .college-logo {
    height: 8rem;
    width: 8rem;
  }
}
