*,
*::before,
*::after {
  box-sizing: border-box;
}

@font-face {
  font-family: 'Nutgame';
  src: url('font/nutgame/NutgameDEMO-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Nutgame';
  src: url('font/nutgame/NutgameDEMO-Bold.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: 'Nutgame';
  src: url('font/nutgame/NutgameDEMO-Italic.ttf') format('truetype');
  font-weight: normal;
  font-style: italic;
}

@font-face {
  font-family: 'NoirPro';
  src: url('font/NoirPro/NoirPro-Regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'NoirPro';
  src: url('font/NoirPro/NoirPro-Bold.woff2') format('woff2');
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: 'NoirPro';
  src: url('font/NoirPro/NoirPro-Italic.woff2') format('woff2');
  font-weight: normal;
  font-style: italic;
}

@font-face {
  font-family: 'NoirPro';
  src: url('font/NoirPro/NoirPro-BoldItalic.woff2') format('woff2');
  font-weight: bold;
  font-style: italic;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'NoirPro', sans-serif;
  font-style: normal;
  background-color: #f8f9fa;
  color: #0f0f0f;
}

/* CSS for desktop */

.menu {
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 1px 1px 10px rgba(0, 0, 0, 0.1);
  display: block;
}

.menu-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1440px;
  margin-inline: auto;
  padding: 15px;
}

.logo {
  display: block;
  width: 100px;
}

.logo img {
  width: 100%;
}

.menu-list {
  display: flex;
  list-style: none;
  align-items: center;
}

.menu-list a {
  text-decoration: none;
  color: #0f0f0f;
  padding: 30px;
  font-size: 1.3rem;
  font-family: 'Nutgame', sans-serif;
}

.menu-list a:hover {
  color: #A6A6A6;
  transition: ease 500ms;
}

.mobile-menu {
  width: 100%;
  top: 0;
  height: 80px;
  background-color: #fff;
  z-index: 10000;
  padding-inline: 20px;
  display: flex;
  align-items: center;
  box-shadow: 1px 1px 10px rgba(0, 0, 0, 0.1);
  display: none;
}

.material-symbols-outlined {
  cursor: pointer;
  position: absolute;
  right: 20px;
}

@media (max-width : 768px) {
  .menu-container {
      width: 100%;
      flex-direction: column;
      justify-content: center;
  }

  .mobile-menu {
      display: flex;
  }

  .menu-list {
      flex-direction: column;
      padding: 0;
  }

  .menu-list a {
      box-sizing: border-box;
      display: block;
      font-size: 1.2rem;
  }

  .logo {
      margin-bottom: 20px;
      width: 120px;
  } 

  .menu {
      transform: translateX(-100%);
      transition: transform 0.3s ease-in-out;
      top: 80px;
      position: absolute;
      background-color: #f8f9fa;
  }

  .logo-mobile {
      display: block;
      width: 100px;
  }
}

.timeline-container {
  border-bottom: solid 0.25px #0f0f0f;
}

.timeline-container::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, .1);
  z-index: -1;
  top: 0;
  left: 0;
}

.h2 {
  margin-bottom: 0.5em;
}

.title h1 {
  font-family: 'Nutgame', sans-serif;
  font-size: 3rem;
  animation: opacity 2s ease-in;
}

.title {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  font-family: 'Nutgame', sans-serif;
  font-size: 1.5rem;
  height: 100vh;
}

@keyframes opacity {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}



.title p {
  font-size: 1.3rem;
  font-family: 'NoirPro', sans-serif;
}

.timeline {
  margin: 5em auto;
  max-width: 34.15em;
}

.checkpoint {
  min-width: 34em;
  padding-top: 2em;
  padding-bottom: 2em;
}

.checkpoint div {
  border: 2px solid #0f0f0f;
  border-radius: 25px;
  padding: 1.5em;
}

.checkpoint p {
  line-height: 27px;
  color: #0f0f0f;
}

.checkpoint:nth-child(odd) {
  border-left: 3px solid #0f0f0f;
  padding-left: 3em;
  transform: translateX(17em);
}

.checkpoint:nth-child(even) {
  border-right: 3px solid #0f0f0f;
  padding-right: 3em;
  transform: translateX(-17em);
}

.checkpoint:nth-child(odd)::before, .checkpoint:nth-child(even)::before {
  content: '';
  position: absolute;
  width: 3em;
  height: 3px;
  background-color: #0f0f0f;
  top: 50%;
  transform: translateY(-50%);
}

.checkpoint:nth-child(odd)::before {
  left: 0;
}

.checkpoint:nth-child(even)::before {
  right: 0;
}

.checkpoint:nth-child(odd) div::before, .checkpoint:nth-child(even) div::before {
  content: '';
  position: absolute;
  width: 0.8em;
  height: 0.8em;
  background-color: #0f0f0f;
  box-shadow: 0 0 0.5em #0f0f0f;
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
}

.checkpoint:nth-child(odd) div::before {
  left: -0.5em;
}

.checkpoint:nth-child(even) div::before {
  right: -0.5em;
}

.footer {
  text-align: center;
  padding: 20px 0;
  position: relative;
  bottom: 0;
  width: 100%;
  border-top: 1px solid #0f0f0f;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer p {
  margin: 0;
  font-size: 1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  font-family: 'Nutgame', sans-serif;
  font-size: 1.5rem;
}

.footer-links li {
  margin: 0 15px;
}

.footer-links a {
  color: #0f0f0f;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #A6A6A6;
}

.itw-title h1 {
  font-family: 'Nutgame', sans-serif;
  font-size: 3rem;
  text-align: center;
}

.itw-title p {
  font-size: 1.3rem;
  font-family: 'NoirPro', sans-serif;
  text-align: center;
}

.itw-container {
  background: url('img/background.png');
  opacity: 0.8;
  background-size: cover;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.hidden {
  display: none;
}

.load-more-btn {
  margin: 20px auto;
  display: block;
  padding: 10px 20px;
  font-size: 16px;
  background-color: #0f0f0f;
  color: #fff;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-family: 'Nutgame', sans-serif;
}

.load-more-btn:hover {
  background-color: #A6A6A6;
}

.box {
  position: relative;
  border-radius: 25px;
  transform-style: preserve-3d;
  margin: 100px;
}

.box .card {
  position: relative;
  background: rgba(255, 255, 255, 0.3);
  width: 400px;
  min-height: 500px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-top: 1px solid rgba(255, 255, 255, 0.75);
  border-left: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 25px; 
  box-shadow: 0 25px 45px rgba(0,0,0,0.05);
  transform-style: preserve-3d;
}

.elements {
  position: absolute;
  top: 50px; 
  left: -30px; 
  width: 100px; 
  height: 100px; 
  background: rgba(255,255,255,0.5);
  transform: translateZ(80px); 
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-top: 1px solid rgba(255, 255, 255, 0.75);
  border-left: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 10px; 
  box-shadow: 0 25px 45px rgba(0,0,0,0.05);
}

.elements.bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('img/quote-svgrepo-com.svg');
  background-size: 70px;
  background-position: center;
  background-repeat: no-repeat;
  /* opacity: 0; */
  transition: 0.5s;
}

.box:hover .elements.bg::before {
  opacity: 1;
}

.elements.imgBx {
  top: 0;
  left: initial;
  right: 60px;
  width: 150px;
  height: 150px;
  padding: 10px;
  transform: translateZ(120px);
}

.elements.imgBx img {
  position: absolute;
  width: calc(100% - 20px);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-top: 1px solid rgba(255, 255, 255, 0.75);
  border-left: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 25px 45px rgba(0,0,0,0.05);
  /* opacity: 0; */
  transition: 0.5s;
}

.box:hover .elements.imgBx img {
  opacity: 1;
}

.elements.name {
  top: 235px;
  left: initial;
  right: 0;
  width: 100%;
  padding: 10px;
  text-align: right;
  transform: translateZ(100px);
  background: transparent;
  backdrop-filter: blur(0px);
  border: none;
  box-shadow: none;
  color:#0f0f0f;
  transition: 0.5s;
  /* opacity: 0; */
  transition-delay: 0.1s;
}

.elements.name h3 {
  opacity: .5;  
}

.box:hover .elements.name {
  top: 135px;
  opacity: 1;
}

.elements.content {
  top: initial;
  left: initial;
  bottom: 0;
  right: -20px;
  width: 85%;
  min-height: 200px;
  padding: 10px;
  transform: translateZ(180px);
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.elements.content p {
  position: relative;
  color: #0f0f0f;
  font-size: 0.85em;
  transition: 0.5s;
  opacity: 0;
  transition-delay: 0.2s;
}

.box:hover .elements.content p {
  opacity: 1;
}

@media screen and (max-width : 1150px) {
  .timeline {
    width: 80vw;
  }

  .timeline .checkpoint {
    width: 100%;
    transform:scale(1);
    padding-left: 0;
    padding-right: 0;
    border: none;
  }

  .timeline .checkpoint::before {
    width: 3px;
    height: 4em;
    top: -2em;
    left: 50%;
    transform: translateX(-50%);
  }

  .timeline .checkpoint div::before {
    top: -0.5em;
    left: 50%;
    transform: translateX(-50%);
  }
}

@media screen and (max-width : 768px) {
  .checkpoint {
    min-width: 80vw;
  }
}


@media (width <= 768px) {
  .box .card {
    width: 300px;
    min-height: 400px;
  }
  
  .elements {
    left: -5px; 
    width: 90px; 
    height: 90px; 
  }
  
  .elements.bg::before {
    opacity: 1;
  }
  
  .elements.imgBx {
    left: 155px;
    right: 0px;
  }
  
  .elements.imgBx img {
    opacity: 1;
  }
  
  .elements.name {
    opacity: 1;
    top: 135px;
  }
  
  .box:hover .elements.name {
    top: 135px;
    opacity: 1;
  }

  .elements.content {
    left: 35px;
    bottom: -40px;
    /* margin-bottom: 20px; */
  }
  
  .elements.content p {
    opacity: 1;
  }
}

@media (width <= 768px) {
  .footer-links {
    font-size: 1.2rem;
    margin: 0;
    margin-bottom: 20px;
    margin-top: 10px;
  }

  .footer {
    padding: 5px;
  }
}