@import "fonts.css";
@import "typography.css";
@import "cursor.css";
@import "case.css";

html {
  scroll-behavior: smooth;
  background: #fff;
}

body {
  position: relative;
  width: 100%;
  height: 100%;
  background: #fff;
  margin: 0;
  padding: 0;
  transition: 0.4s;
  transition-property: background-color, color;
  overflow-x: hidden;
}

.hidden {
  display: none;
}

.container {
  display: flex;
  flex-direction: column;
  width: calc(100% - 20vw);
  margin: 0 auto;
  position: relative;
}

nav {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin: 50px 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}

footer {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin: 50px 0;
}

ul {
  list-style-type: none;
  display: flex;
  flex-direction: row;
  margin: 0;
  padding: 0;
}

.main-content {
  margin: 200px 0 0;
  display: flex;
  flex-direction: column;
}

.recent-projects {
  display: flex;
  flex-direction: column;
  margin: 200px 0 0;
}

.recent-projects-item {
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
}

.recent-projects-name {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-end;
  position: relative;
}

.recent-projects-name img {
  position: absolute;
  width: 600px;
  max-width: 50vw;
  object-fit: contain;
  top: 50%;
  right: 40%;
  transform: translate(50%, -50%);
  opacity: 0;
  transition: 0.2s;
  z-index: 1;
}

.recent-projects-header {
  margin-top: 200px;
}

.recent-projects-header--medium {
  font-weight: 600;
}

.recent-projects-container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  width: 100%;
}

.recent-projects-box {
  display: flex;
  flex-direction: column;
  width: 48%;
  height: auto;
}

.recent-projects-img {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: max-content;
}

.recent-projects-img img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.recent-projects-overlay {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
  background-color: rgba(0, 0, 0, 0.7);
  opacity: 0;
  transition: 0.4s;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.recent-projects-overlay p {
  margin: 0;
}

.contacts {
  margin: 180px 0;
}

a {
  text-decoration: none;
  color: inherit;
}

.h1-cover {
  width: max-content;
}

.h1-cover p {
  transform: translateY(120%);
  transition: 0.4s;
  opacity: 0;
  transition-delay: 0.7s;
  transition-timing-function: ease-out;
}

#secondary-heading {
  margin-top: 20px;
}

.primary-heading h1 {
  margin: 0;
  width: 100%;
  height: max-content;
  overflow: hidden;
}

.primary-heading p {
  margin: 0;
  max-width: 100%;
  font-family: DM Sans, Onest;
  font-weight: 700;
  width: 100%;
}

.primary-heading-medium p {
  font-weight: 600;
}

.primary-line {
  transform: translateY(110%);
  transition-duration: 0.4s;
}

.about-img {
  margin: 8rem 0 4rem;
  width: 100%;
  height: auto;
  overflow: hidden;
}

.about-img img {
  width: 100%;
  height: auto;
}

.about-small {
  max-width: 900px;
}

.about-medium {
  margin-top: 3.5rem;
  max-width: 1100px;
}

.about-qualities {
  margin-bottom: 200px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  max-width: 1100px;
  flex-wrap: wrap;
}

.about-playlist {
  margin-bottom: 3rem;
}

.about-qualities h2 {
  margin-top: 6rem;
}

.about-qualities-medium h2,
.about-qualities-medium h3 {
  font-weight: 600;
}

.about-qualities h3 {
  margin: 3rem 0 0;
}

.about-qualities p {
  margin-top: 1rem 0 0;
}

#email-link {
  color: #777;
  transition: 0.4s all;
}

#email-link:hover {
  color: #000;
}

.waving-emoji {
  width: 64px;
  height: 64px;
  user-select: none;
}

/* Dark Mode */

.dark {
  background-color: #181818;
  color: #ddd;
}

.dark-mode-btn {
  width: 32px;
  height: 32px;
  cursor: pointer;
  position: relative;
  overflow: visible !important;
}

.light-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  opacity: 1;
  transition: all 200ms;
  user-select: none;
}

.dark-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  opacity: 1;
  transition: all 200ms;
  user-select: none;
}

.light-icon-hidden {
  opacity: 0;
  top: -100%;
}

.dark-icon-hidden {
  opacity: 0;
  top: 200%;
}

.dark #email-link:hover {
  color: #fff;
}

.dark .dash {
  background-color: #fff;
}

.dark .dash-active {
  background-color: #fff;
}

.dark a {
  color: #fff;
}

pre {
  margin: 36px 0 0;
  background-color: #ccc;
  padding: 45px;
  white-space: pre-wrap;
  box-sizing: border-box;
}

.dark pre {
  background-color: #333;
}

@media screen and (max-width: 1000px) {
  .recent-projects-container {
    flex-wrap: wrap;
  }

  .recent-projects-box {
    width: 100%;
    margin-bottom: 2rem;
  }
}

@media screen and (max-width: 750px) {
  .about-img img {
    min-height: 50vh;
    object-fit: cover;
  }

  .nav-links {
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    gap: 0.5rem;
  }

  .nav-links li {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
  }

  .main-content {
    margin-top: 100px;
  }

  pre {
    padding: 30px 20px;
  }
}
