:root {
  --primary-color: #3d5142;
  --secondary-color: #313628;
  --tertiary-color: #a1674a;
  --complimentary-color: #704833;
  --text-color: #f2e5d7;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  color: var(--text-color);
}

p,
ul li {
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.w-60 {
  width: 60%;
}
.w-40 {
  width: 40%;
}

.ml-4 {
  margin-left: 1.25rem !important;
}

.gap-8 {
  gap: 8px;
}

.gap-24 {
  gap: 24px;
}

.list-style-none {
  list-style-type: none;
}

i.bi {
  font-size: 2rem;
}

.flex {
  display: flex;
}

.grid {
  display: grid;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(325px, 0.5fr));
  gap: 24px;
  max-width: 100vw;
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(325px, 0.33fr));
  gap: 24px;
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(275px, 0.25fr));
  gap: 24px;
}

.button {
  padding: 8px 16px;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  border-radius: 1rem;
  background: var(--secondary-color);
  color: var(--text-color);
  border: 2px solid var(--text-color);
  transition: all 0.3s ease-in-out;
  text-decoration: none;
  display: flex;
  justify-content: center;
  align-items: center;
  height: fit-content;
  width: fit-content;
  text-wrap: nowrap;
}

.button i {
  color: var(--text-color);
  font-size: clamp(1.5rem, 2vw, 2rem);
}

.button:hover {
  background: var(--text-color);
  color: var(--secondary-color);
  border: 2px solid var(--tertiary-color);
}

.button:hover i {
  color: var(--secondary-color);
}

.profile-dot {
  height: 75px;
  min-width: 75px;
  width: 75px;
  border-radius: 50%;
  border: 3px solid var(--text-color);
  overflow: hidden;
}

.profile-dot img {
  width: 100%;
  height: 100%;
  border-radius: 45%;
  object-fit: cover;
}

a {
  color: var(--text-color);
  transition: all 0.3s ease-in-out;
}

a:hover {
  color: var(--text-color);
  text-decoration: none;
  transition: all 0.3s ease-in-out;
}

body {
  font-family: "Roboto", sans-serif;
  margin: 0;
  padding: 0;
  /* background-color: #333; */
  /* background: linear-gradient(to right, #333 0%, #444 100%, #333 80%); */
  background-color: var(--primary-color);
  /* font-size: 300px; */
}

.mt-6 {
  margin-top: 2.4rem;
}

.mb-6 {
  margin-bottom: 2.4rem;
}

.hero-header {
  font-size: clamp(3rem, 7vw, 8rem);
  text-transform: uppercase;
  line-height: 1;
}

.hero-interior-header {
  font-size: clamp(2rem, 5vw, 4rem);
  text-transform: uppercase;
  line-height: 1.2;
}

h2.hero-interior-header {
  font-size: clamp(1.5rem, 7vw, 2.5rem);
}

h2.hero-header {
  font-size: clamp(2rem, 7vw, 5rem);
}

.hero-paragraph {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  line-height: 1.5;
  text-transform: uppercase;
}

/* Start Animations CSS */
.expanding-header {
  position: absolute;
  top: 0;
  height: 10px;
  background: linear-gradient(to right, #9e788f, #a9b3ce, #7cdedc, #7284a8, #474954);
  width: 100%;
}

.logo-fade {
  transition: all 0.3s ease-in-out;
}
.logo-fade:hover {
  opacity: 0.6;
  transition: all 0.3s ease-in-out;
}

.grow-large {
  transition: all 0.3s ease-in-out;
}

.grow-large:hover {
  transform: scale(1.025);
  transition: all 0.3s ease-in-out;
}

/* End Animations CSS */

/* Start Header CSS */

/* 400px and down */
@media only screen and (max-width: 400px) {
  #back-button {
    display: none;
  }

  header.mobile-nav nav ul li a#selected {
    margin-left: 0;
  }
}

/* 1200px and down */
@media only screen and (max-width: 1200px) {
  .mobile-nav {
    display: flex;
  }
  .desktop-nav {
    display: none;
  }
}

/* 1200px and up */
@media only screen and (min-width: 1200px) {
  .mobile-nav {
    display: none;
  }
  .desktop-nav,
  #back-button {
    display: flex;
  }
}

header {
  position: sticky;
  top: 0;
  /* background-color: #333; */
  /* background: linear-gradient(to right, #333 0%, #444 100%, #333 80%); */
  background-color: var(--primary-color);
  z-index: 1000;
}

header .nav-container {
  margin: 24px auto;
}

header img {
  width: 3.5em;
  height: auto;
}

header nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  background-color: var(--secondary-color);
  padding: 8px 12px;
  border-radius: 0.75rem;
}

header nav ul li {
  margin: auto;
}

header nav ul li i {
  padding: 4px;
  margin: auto;
  border-radius: 8px;
}

header nav ul li a {
  color: var(--text-color);
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 10px;
  transition: all 0.3s ease-in-out;
}

header nav ul li a#selected {
  background-color: var(--tertiary-color);
  color: var(--text-color);
  font-weight: bold;
  /* pointer-events: none; */
  display: flex;
  margin-right: 8px;
  margin-left: 8px;
}

header nav ul li i:hover,
header nav ul li i:focus,
header nav ul li a:hover,
header nav ul li a:focus {
  background-color: var(--complimentary-color);
  transition: all 0.3s ease-in-out;
  cursor: pointer;
}

.unselected {
  display: none;
}

.mobile-nav .mobile-nav-items {
  /* display: none; */
  bottom: unset;
  width: 100%;
  background-color: var(--secondary-color);
  border-radius: 0 0 0.75rem 0.75rem;
}

/* End Header CSS */

.divider-line {
  width: 100%;
  height: 2px;
  background-color: var(--text-color);
  opacity: 0.3;
  margin: auto 16px;
  z-index: -1;
}

.container {
  margin-left: auto;
  margin-right: auto;
}

/* Start Footer CSS */

footer {
  display: flex;
  padding: 24px;
  text-align: center;
  width: 100%;
  justify-content: space-between;
}

footer img {
  height: 3rem;
  width: auto;
}

footer img.grow-large:hover {
  scale: 1.2;
  transition: all 0.3s ease-in-out;
}

footer .passions-container {
  display: flex;
  gap: 8px;
  padding: 8px;
  background-color: var(--secondary-color);
  border-radius: 10px;
  width: fit-content;
  justify-content: center;
}

@media screen and (max-width: 768px) {
  footer {
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }
  footer .passions-container {
    width: 100%;
  }
}

/* End Footer CSS */

/* Start Index CSS */

.nav-card {
  width: 100%;
  aspect-ratio: 4 / 3;
  background-color: var(--secondary-color);
  border-radius: 1.5rem;
}

.project-teaser {
  width: 100%;
  object-fit: cover;
  background-color: var(--secondary-color);
  border-radius: 2rem;
  /* padding: 16px; */
  transition: all 0.3s ease-in-out;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  z-index: 0;
  position: relative;
}

.project-teaser .project-teaser-header h3 {
  font-size: clamp(1.5rem, 2vw, 2rem);
  margin: 0;
  height: fit-content;
  margin: auto 0;
}

.changed,
.excelling,
.forward {
  position: absolute;
  height: 100%;
  z-index: -1;
  top: 0;
  scale: 0.85;
}

.changed {
  right: 0;
  rotate: 5deg;
  translate: 1.5rem 3rem;
}

.forward {
  left: 30%;
  translate: 0 3rem;
  z-index: 0;
}

.excelling {
  left: 0;
  rotate: -5deg;
  translate: -1.5rem 3rem;
}

.project-teaser .project-teaser-header {
  background: var(--secondary-color);
  z-index: 5;
  position: relative;
  padding: 16px;
}

/* End Index CSS */

/* Start Projects CSS */

.project-card {
  width: 100%;
  height: 100%;
  border-radius: 2rem;
  /* padding: 16px; */
  transition: all 0.3s ease-in-out;
  aspect-ratio: 1 / 1;
  background-size: cover !important;
  position: relative;
}

.project-card h2 {
  font-size: clamp(1.25rem, 1.5vw, 1.5rem);
}

.project-card-bg {
  background: var(--secondary-color);
  width: 100%;
  height: 100%;
  border-radius: 2rem 0 2rem 0;
  clip-path: polygon(calc(100% - 5rem) calc(100% - 3rem), calc(100% - 3rem) calc(100% - 5rem), 100% calc(100% - 5rem), 100% 100%, calc(100% - 5rem) 100%);
  transition: all 0.5s ease-in-out;
}

.project-card:hover .project-card-bg {
  clip-path: polygon(0 0, 0 0, 100% 0, 100% 100%, 0 100%);
  transition: all 0.5s ease-in-out;
}

.project-card p {
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  margin: 0;
  padding: 16px;
  opacity: 0;
  translate: 1rem 1rem;
  transition: all 0.5s ease-in-out;
}

.project-card:hover p {
  opacity: 1;
  translate: 0 0;
  transition: all 0.5s ease-in-out;
}

.project-card-bg i {
  position: absolute;
  bottom: 1.25rem;
  right: 1.25rem;
}

.text-gradient {
  width: 100%;
  position: absolute;
  height: 5rem;
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.03));
  border-radius: 0 0 2rem 2rem;
}

a:has(.project-card) {
  text-decoration: none;
}

/* End Projects CSS */

/* Start About CSS */

.w-25 img {
  aspect-ratio: 1 / 1;
  width: 100%;
  height: 30rem;
  object-fit: cover;
  border-radius: 1rem;
}

.w-50 iframe {
  min-height: 5rem;
}

@media only screen and (max-width: 1200px) {
  .w-25,
  .w-75,
  .w-50 {
    width: 100% !important;
  }
  .w-25 img {
    width: 100%;
    height: 20rem;
  }

  .mobile-col {
    flex-direction: column;
  }
  .mobile-col-reverse {
    flex-direction: column-reverse;
  }
}

/* End About CSS */

/* Start Tools CSS */

.tools-grid-2 {
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

a:has(.tools-card) {
  text-decoration: none;
}

.tools-card {
  /* border: 2px solid var(--tertiary-color); */
  background: var(--secondary-color);
  border-radius: 1rem;
  height: 100%;
  padding-right: 16px;
}

.tools-card h2 {
  font-size: clamp(1.75rem, 1.5vw, 2rem);
  text-transform: uppercase;
}

.tools-card p {
  font-size: clamp(1rem, 1.25vw, 1.15rem);
}

.tools-card img {
  height: 100px;
  aspect-ratio: 1 / 1;
  border-radius: 1rem;
  margin: 16px;
}

/* 1000px and down */
@media only screen and (max-width: 1000px) {
  .tools-card {
    flex-direction: column;
    padding: 16px;
  }
}

@media only screen and (max-width: 775px) {
  .tools-grid-2 {
    grid-template-columns: repeat(1, 1fr);
  }
}

/* End Tools CSS */
