body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  padding-top: 70px;
  background: #fdf4f4;
  color: #333;
}

section {
  padding: 20px;
  margin: 20px 80px;
}

p {
  padding: 0px;
  margin: 0px;
}

a {
  text-decoration: none;
  color: #333;
}

.back {
  margin-bottom: 40px;
}

.circle {
  position: absolute;
  border-radius: 50%;
  z-index: -100;
  width: 146.59px;
  height: 146.59px;
  border: 0px solid #505962;
  background: linear-gradient(211deg, #fff 9.81%, #121416 93.08%);
  box-shadow: -19.386px -7.27px 96.928px 0px rgba(248, 249, 249, 0.03) inset,
    43.618px 14.539px 77.543px 0px rgba(2, 3, 3, 0.4),
    -14.539px -24.232px 67.85px 0px rgba(232, 237, 243, 0.05);
  animation: float 6s infinite alternate ease-in-out;
}

@keyframes float {
  from {
    transform: translateX(0) rotate(0deg);
  }
  to {
    transform: translateX(-20vh) rotate(-75deg);
  }
}

.circle-1 {
  left: 80%;
  top: 10%;
  animation-duration: 5s;
}

.highlight-project {
  background: #e7e6e6;
  border-radius: 50px;
  position: relative;
  padding: 68px 48px;
}

.highlight-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.title {
  flex: 15;
  display: flex;
  flex-direction: column;
}

.title a {
  margin: 4px 0px;
  font-size: 24px;
  text-decoration: underline;
  font-weight: bold;
}

.title p {
  font-size: 20px;
}

.highlight-image {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 12px;
}

.highlight-text {
  flex: 14;
  font-size: 24px;
}

.highlight-text p:nth-child(2) {
  margin-bottom: 28px;
}

.tag {
  background: #333;
  color: white;
  padding: 25px 45px;
  display: inline-block;
  position: absolute;
  border-radius: 24px;
  top: -40px;
  left: 58px;
  font-weight: bold;
  font-size: 30px;
}

/* Carousel styles */

.carousel-track.dragging {
  cursor: grabbing;
  user-select: none;
}

.project-carousel {
  overflow-y: hidden;
  position: relative;
  padding-bottom: 100px;
  margin-top: 56px;
  margin-bottom: 0px;
  margin-right: 0px;
}

.circle-2 {
  left: 15%;
  top: 85%;
  animation-duration: 3s;
}

.carousel-track {
  display: flex;
  gap: 48px;
  transition: transform 0.5s ease-in-out;
}

.project-card {
  max-width: 500px;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  box-sizing: border-box;
  background: #e7e6e6;
  border-radius: 24px;
  font-size: 16px;
  padding: 50px 24px;
  padding-bottom: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  transform: translateY(0);
  box-shadow: none;
}

.project-card.active {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.project-card .tag {
  font-size: 20px;
  color: white;
  font-weight: bold;
  background: #555;
  padding: 16px 20px;
  border-radius: 12px;
  position: absolute;
  top: -20px;
  left: 44px;
}

.project-card h4 {
  margin: 0;
  margin-top: 16px;
  font-size: 18px;
}

.project-card img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  border-radius: 8px;
}

#project-carousel {
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

#project-carousel::-webkit-scrollbar {
  display: none;
}

.carousel-track {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

.carousel-track::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

@media (max-width: 768px) {
  .highlight-content {
    flex-direction: column;
    align-items: center;
  }

  .carousel-track {
    flex-wrap: nowrap;
  }

  .project-card {
    min-width: 80%;
  }
}

@media (max-width: 768px) {
  body {
    padding-top: 0;
  }

  section {
    margin: 0px;
    padding: 20px;
  }

  .circle {
    width: 75px;
    height: 75px;
  }

  .highlight-project {
    padding: 40px 20px;
    margin: 0 20px;
    border-radius: 20px;
  }

  .tag {
    font-size: 20px;
    padding: 15px 30px;
    left: 30px;
    top: -30px;
    border-radius: 16px;
  }

  .title {
    flex-direction: column-reverse;
    gap: 8px;
  }

  .highlight-content {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .highlight-image {
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  .highlight-text {
    font-size: 18px;
    text-align: left;
  }

  .project-carousel {
    padding: 20px;
    margin: 0;
  }

  .carousel-track {
    /* overflow-x: auto; */
    padding-top: 20px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 16px;
  }

  .project-card {
    max-width: 90vw;
    scroll-snap-align: center;
  }

  .project-card img {
    height: 100px;
  }

  .arrow {
    display: none; /* hide arrows on mobile */
  }
}
