:root {
  --width: 1000px;
  --font-extra-large: 24px;
  --font-large: 20px;
  --font-small: 16px;
  --skills-modal-height: 500px;
  --skills-modal-transition-time: 0.5s;
  scrollbar-color: #515158 #bbbbca;
}

::-webkit-scrollbar {
  width: 1rem;
}

::-webkit-scrollbar-track {
  background-color: #515158;
}

::-webkit-scrollbar-thumb {
  background-color: #bbbbca;
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
}

html,
body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  box-sizing: border-box;
}

body {
  font-size: var(--font-large);
  font-family: "Inter", "Roboto", "Open Sans", "Manrope", Helvetica, Georgia,
    sans-serif;
  color: white;
  background-color: #0b0e0f;
}

body.no-scroll {
  overflow: hidden;
}

a {
  color: white;
  text-decoration: none;
  padding: 0.5rem 0;
  transition: all 0.5s;
}

.external-link-icon {
  width: 16px;
  height: 16px;
}

.opacity {
  opacity: 90%;
}

.list ul {
  padding: 0;
  margin: 0;
}
.list ul li {
  margin: 1rem;
}
.list-left ul li {
  list-style: none;
}
.list-left ul li a:hover {
  margin-left: 12px;
}

.project-tech-used ul li {
  list-style: none;
  margin: 12px 0;
}

.header {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: url("assets/header_bg.png") center / cover;
  height: 100vh;
  position: relative;
}

.hamburger-menu {
  display: none;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  cursor: pointer;
}

.hamburger-icon {
  width: 30px;
  height: 22px;
  position: relative;
  transform: rotate(0deg);
  transition: .5s ease-in-out;
}

.hamburger-icon span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: white;
  border-radius: 9px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: .25s ease-in-out;
}

.hamburger-icon span:nth-child(1) {
  top: 0px;
}

.hamburger-icon span:nth-child(2) {
  top: 9px;
}

.hamburger-icon span:nth-child(3) {
  top: 18px;
}

.hamburger-icon.open span:nth-child(1) {
  top: 9px;
  transform: rotate(135deg);
}

.hamburger-icon.open span:nth-child(2) {
  opacity: 0;
  left: -60px;
}

.hamburger-icon.open span:nth-child(3) {
  top: 9px;
  transform: rotate(-135deg);
}

.header-name {
  font-size: 10rem;
  font-weight: bold;
}

.header-profession {
  font-size: 2rem;
}

.main {
  margin: auto;
  padding: 0 1rem;
  max-width: 1200px;
}

.card {
  margin: 5rem 0;
}

.project-wrapper {
  margin: 10rem 0;
  display: flex;
  justify-content: space-between;
}

.project-description {
  padding: 1rem 0;
  width: 50%;
  border-top: 1px solid white;
}

.project-description h2 {
  margin: 0;
}

.project-screenshot {
  height: auto;
  width: 30%;
}

.project-screenshot img {
  max-height: 100%;
  max-width: 100%;
  border-radius: 8px;
}

.experience-wrapper {
  margin: 4rem 0;
}

.experience-logo {
  height: 2rem;
  margin: 1rem;
}

.experience-logo img {
  height: 100%;
}

.education-logo {
  height: 200px;
  margin: 1rem 0;
}

.education-logo img {
  height: 100%;
}

@media screen and (min-width: 1001px) {
  .project-wrapper:nth-child(odd) {
    flex-direction: row-reverse;
  }
  
  .hamburger-menu {
    display: none;
  }
  
  .list-left {
    display: block;
  }
}

@media screen and (max-width: 1000px) {
  .project-wrapper {
    flex-direction: column;
    align-items: center;
  }
  
  .project-description {
    width: 100%;
  }

  .project-screenshot {
    width: 90%;
  }
  
  .hamburger-menu {
    display: block;
  }
  
  .list-left {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(11, 14, 15, 0.95);
    z-index: 999;
    animation: fadeIn 0.3s ease-in-out;
  }
  
  .list-left.open {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  
  .list-left ul {
    text-align: center;
  }
  
  .list-left ul li {
    margin: 2rem;
  }
  
  .list-left ul li a {
    font-size: 1.5rem;
  }
  
  .header-name {
    font-size: 5rem;
  }
  
  .header-profession {
    font-size: 1.5rem;
  }
  
  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
}

/* Fullscreen Image Modal */
.fullscreen-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  justify-content: center;
  align-items: center;
}

.fullscreen-modal.active {
  display: flex;
}

.fullscreen-img {
  max-width: 95%;
  max-height: 95%;
  object-fit: contain;
  animation: fadeIn 0.3s ease-in;
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 40px;
  font-size: 50px;
  font-weight: bold;
  color: white;
  cursor: pointer;
  transition: all 0.3s;
  z-index: 10000;
  user-select: none;
}

.close-modal:hover {
  color: #ccc;
  transform: scale(1.1);
}
