@charset "utf-8";

/******* Fonts Import Start **********/
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap");
/********* Fonts Face CSS End **********/

/******* Common Element CSS Start *********/
body {
  font-family: 'Roboto', sans-serif;
}

/* -------- title style ------- */
.game-section .line-title {
  position: relative;
  width: 400px;
  margin: 0 auto 40px;
}
.game-section .line-title::before,
.game-section .line-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  border-radius: 2px;
}
.game-section .line-title::before {
  width: 100%;
  background: #f2f2f2;
}
.game-section .line-title::after {
  width: 32px;
  background: #e73700;
}

/******* Portfolio Carousel CSS Start ******/
.portfolio-carousel-section {
  padding: 60px 45px; /* Match padding with portofolio-section */
  text-align: center;
  background: transparent;
  width: 100%; /* Full-width to match portofolio-section */
}

.carousel-container {
  width: 100%;
  max-width: 100%; /* Remove max-width constraint for full-width */
  height: 450px;
  position: relative;
  perspective: 1000px;
  margin: 0 auto;
}

.carousel-track {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card-porto {
  position: absolute;
  width: 350px;
  height: 350px;
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card.center {
  z-index: 10;
  transform: scale(1.1) translateZ(0);
}

.card.center img {
  filter: none;
}

.card.left-2 {
  z-index: 1;
  transform: translateX(-400px) scale(0.8) translateZ(-300px);
  opacity: 0.7;
}

.card.left-2 img {
  filter: grayscale(100%);
}

.card.left-1 {
  z-index: 5;
  transform: translateX(-200px) scale(0.9) translateZ(-100px);
  opacity: 0.9;
}

.card.left-1 img {
  filter: grayscale(100%);
}

.card.right-1 {
  z-index: 5;
  transform: translateX(200px) scale(0.9) translateZ(-100px);
  opacity: 0.9;
}

.card.right-1 img {
  filter: grayscale(100%);
}

.card.right-2 {
  z-index: 1;
  transform: translateX(400px) scale(0.8) translateZ(-300px);
  opacity: 0.7;
}

.card.right-2 img {
  filter: grayscale(100%);
}

.card.hidden {
  opacity: 0;
  pointer-events: none;
}

.portfolio-info {
  text-align: center;
  margin-top: 40px;
  transition: all 0.5s ease-out;
}

.portfolio-title {
  color: #000101;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
}

.portfolio-description {
  color: #848696;
  font-size: 1rem;
  font-weight: 500;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 10px 0;
  margin-top: -15px;
  position: relative;
}

.dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 60px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(0, 1, 1, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: #000101;
  transform: scale(1.2);
}

.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 1, 1, 0.6);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  transition: all 0.3s ease;
  font-size: 1.5rem;
  border: none;
  outline: none;
  padding: 0;
  line-height: 1;
}

.nav-arrow:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: translateY(-50%) scale(1.1);
}

.nav-arrow.left {
  left: 20px;
}

.nav-arrow.right {
  right: 20px;
}

/***** Responsive CSS Start ******/
@media (min-width: 992px) and (max-width: 1199px) {
  .portfolio-carousel-section {
    padding: 50px 30px;
  }

  .carousel-container {
    height: 400px;
  }

  .card-porto {
    width: 300px;
    height: 300px;
  }

  .card.left-2 {
    transform: translateX(-350px) scale(0.85) translateZ(-250px);
  }

  .card.left-1 {
    transform: translateX(-180px) scale(0.95) translateZ(-80px);
  }

  .card.right-1 {
    transform: translateX(180px) scale(0.95) translateZ(-80px);
  }

  .card.right-2 {
    transform: translateX(350px) scale(0.85) translateZ(-250px);
  }

  .portfolio-title {
    font-size: 2.2rem;
  }

  .portfolio-description {
    font-size: 0.9rem;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .portfolio-carousel-section {
    padding: 40px 20px;
  }

  .carousel-container {
    height: 350px;
  }

  .card-porto {
    width: 260px;
    height: 260px;
  }

  .card.left-2 {
    transform: translateX(-300px) scale(0.8) translateZ(-200px);
    opacity: 0.6;
  }

  .card.left-1 {
    transform: translateX(-150px) scale(0.9) translateZ(-60px);
  }

  .card.right-1 {
    transform: translateX(150px) scale(0.9) translateZ(-60px);
  }

  .card.right-2 {
    transform: translateX(300px) scale(0.8) translateZ(-200px);
    opacity: 0.6;
  }

  .portfolio-title {
    font-size: 2rem;
  }

  .portfolio-description {
    font-size: 0.85rem;
  }

  .nav-arrow {
    width: 35px;
    height: 35px;
    font-size: 1.2rem;
  }

  .nav-arrow.left {
    left: 15px;
  }

  .nav-arrow.right {
    right: 15px;
  }
}

@media (max-width: 767px) {
  .portfolio-carousel-section {
    padding: 30px 15px;
  }

  .carousel-container {
    height: 300px;
  }

  .card-porto {
    width: 200px;
    height: 200px;
  }

  .card.left-2 {
    transform: translateX(-220px) scale(0.75) translateZ(-150px);
    opacity: 0.5;
  }

  .card.left-1 {
    transform: translateX(-110px) scale(0.85) translateZ(-50px);
  }

  .card.right-1 {
    transform: translateX(110px) scale(0.85) translateZ(-50px);
  }

  .card.right-2 {
    transform: translateX(220px) scale(0.75) translateZ(-150px);
    opacity: 0.5;
  }

  .portfolio-title {
    font-size: 1.8rem;
  }

  .portfolio-description {
    font-size: 0.8rem;
    padding: 8px 0;
  }

  .dots {
    margin-top: 40px;
    gap: 8px;
  }

  .dot {
    width: 10px;
    height: 10px;
  }

  .nav-arrow {
    width: 30px;
    height: 30px;
    font-size: 1rem;
  }

  .nav-arrow.left {
    left: 10px;
  }

  .nav-arrow.right {
    right: 10px;
  }

  .game-section .line-title {
    width: 200px;
  }
}