@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family:
    "Montserrat", "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS",
    sans-serif;
  background: #333;
  color: white;
}

a {
  color: white;
}

.portfolio {
  position: relative;
  width: 100%;
}

.mymixcont {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  min-height: 50vh;
  padding: 20px 15px;
}

.mix {
  position: relative;
  width: 280px;
  max-width: calc(50% - 15px);
  height: 200px;
  box-shadow:
    5px 5px 5px black,
    -3px -3px 5px rgba(255, 255, 255, 0.05);
  margin: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: column;
  transform-style: preserve-3d;
  perspective: 1000px;
  border-radius: 10px;
  cursor: pointer;
}

.mix img {
  height: 80%;
  transition: 0.5s ease-in-out;
  box-shadow:
    0 0 4px #fff,
    0 0 8px #fff,
    0 0 14px rgba(166, 64, 245, 0.7),
    0 0 22px rgba(166, 64, 245, 0.5),
    0 0 35px rgba(166, 64, 245, 0.3);
}

.mix:hover img {
  box-shadow:
    0 0 5px #fff,
    0 0 10px #fff,
    0 0 18px rgba(166, 64, 245, 0.9),
    0 0 30px rgba(166, 64, 245, 0.6),
    0 0 45px rgba(166, 64, 245, 0.4),
    0 0 60px rgba(100, 160, 255, 0.2);
}

.mix span.title {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 20%;
  text-align: center;
  line-height: 40px;
  border-radius: 0 0 10px 10px;
  background: rgba(0, 0, 0, 0.301);
  color: #ccc;
  z-index: -1;
  transition: 0.5s 0s ease-in-out;
}

.mix:hover img {
  transform: scale(1.08);
}

.mix:hover span.title {
  transition-delay: 0.1s;
}

.port_link {
  position: absolute;
  bottom: 25%;
  z-index: -1;
  color: #f64253;
  text-decoration: none;
  font-weight: bold;
}

.tip {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  background: #000;
  z-index: -100;
  margin-left: 125px;
  transition: 0.5s;
}

.tip.view {
  opacity: 1;
  z-index: 100;
  transform: translate(-50%, -50%);
}

.tip .allContent {
  width: 100%;
  height: 100%;
  transform: scale(0);
  background: #0d1117;
  overflow-y: auto;
  overflow-x: hidden;
  transition: 0.4s 0.3s;
}

.tip .allContent::-webkit-scrollbar {
  width: 0;
}

.tip.view .allContent {
  transform: scale(1);
}

.tip .allContent .description {
  padding: 25px 50px;
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  width: 100%;
}

.tip .allContent .description .pro_intro {
  width: 60%;
}

.tip .allContent .description .pro_info {
  width: 30%;
}

.tip .allContent .description .pro_info a {
  color: crimson;
  font-weight: bold;
  text-decoration: none;
}

.tip .allContent .description .pro_info a:hover {
  text-decoration: 2px underline;
}

.tip .port_content {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  width: 100%;
}

/* Swiper animation for images */
.tip .swiper-container-2 {
  position: relative;
  width: 90%;
  height: 90vh;
  margin: auto;
}

.tip .swiper-slide {
  display: flex;
  height: 100%;
  justify-content: center;
  align-items: center;
  position: relative;
  background: #fff;
}

.tip .swiper-container-2 .swiper-slide img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (max-width: 768px) {
  .portfolio {
    width: 100%;
  }

  .tip {
    margin-left: 0;
  }

  .about_nav {
    height: auto;
    padding: 60px 15px 15px;
  }

  .about_nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }

  .about_nav ul li {
    display: inline-block;
    margin: 0;
  }

  .about_nav ul li a {
    font-size: 13px;
    padding: 8px 16px;
    border-radius: 20px;
    white-space: nowrap;
  }
}

@media (max-width: 748px) {
  .tip .allContent .description {
    flex-direction: column;
  }

  .tip .allContent .description .pro_intro,
  .tip .allContent .description .pro_info {
    width: 100%;
  }
}

@media (max-width: 628px) {
  .about_nav {
    margin-bottom: 60px;
    margin-top: 30px;
  }

  .about_nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }

  .about_nav ul li a {
    font-size: 13px;
    padding: 8px 14px;
  }

  .mymixcont {
    gap: 15px;
    padding: 15px 10px;
  }

  .mix {
    max-width: calc(50% - 10px);
    height: auto;
    min-height: 180px;
    padding: 12px 8px;
  }

  .mix img {
    width: 70px;
    height: 70px;
    margin-top: 5px;
  }

  .port_link {
    position: relative;
    bottom: auto;
    z-index: 1;
    font-size: 11px;
    margin-top: 4px;
    text-align: center;
  }

  .mix span.title {
    position: relative;
    height: auto;
    line-height: 1.4;
    padding: 5px 4px;
    font-size: 12px;
    z-index: 1;
    border-radius: 5px;
  }
}

@media (max-width: 400px) {
  .mix {
    max-width: 100%;
    width: 100%;
    min-height: 160px;
    padding: 15px 10px;
  }

  .mix img {
    width: 65px;
    height: 65px;
  }

  .port_link {
    font-size: 12px;
  }

  .mix span.title {
    font-size: 13px;
  }

  .about_nav ul li {
    display: block;
    width: 100%;
    text-align: center;
  }

  .about_nav ul li a {
    display: block;
  }
}
