/* General Styles */
.container {
  margin: 0;
  font-family: 'Amiko', sans-serif;
  color: #666; /* Neutral text color */
  padding: 20px;
}

@media (max-width: 480px) {
  .projects-grid {
      gap: 20px; /* Reduce spacing for small screens */
  }

  .project-item {
      margin: 0 auto;
  }
}

.container {
  max-width: 1000px; /* Limit overall width */
  margin: 0 auto; /* Center container */
  text-align: center;
}

.container h1 {
  font-size: 50px; /* Large title */
  color: #926F78; /* Blue color for title */
  font-family: 'Flamenco', system-ui;
  margin-bottom: 10px;
}

.project-tags span {
  display: inline-block;
  margin: 10px 5px 0 0;
  padding: 5px 10px;
  background-color: #e9ecef;
  color: #333;
  border-radius: 5px;
  font-size: 10px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive grid */
  gap: 30px; /* Space between projects */
  justify-items: center; /* Center-align items within each column */
}

/* Portfolio Item Styles */
.portfolio-item {
  background-color: #fff; /* White background for contrast */
  border-radius: 10px; /* Rounded corners */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow */
  overflow: hidden; /* Ensure content stays within bounds */
  display: flex;
  flex-direction: column; /* Stack screenshot and details */
}

.portfolio-item img {
  width: 100%; /* Full-width image */
  height: auto; /* Maintain aspect ratio */
  object-fit: cover; /* Ensure image fits nicely */
}

/* Project Details */
.project-details {
  padding: 20px; /* Space around text */
  text-align: center;
}

.project-details h2 {
  font-size: 20px; /* Project title */
  margin-bottom: 10px;
  color: #9F8189; /* Bright blue */
}

.project-details p {
  font-size: 15px; /* Project description */
  line-height: 1.5; /* Improve readability */
  color: #555; /* Subtle gray */
  margin: 0;
}

/* Project without Screenshot */
.project-item.no-screenshot {
  justify-content: center; /* Center-align text if no screenshot */
}

h3 {
  margin: 15px 0 10px;
  font-size: 18px;
}

p {
  color: #666;
  font-size: 14px;
}

/* Carousel Styles */
.carousel {
  position: relative;
  width: 100%; /* Full width of the project item */
  overflow: hidden; /* Hide other images */
  z-index: 1; /* Ensure the carousel is above other elements */
  overflow-x: hidden; /* Prevent horizontal scroll */
}

.carousel-images {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel-images img {
  width: 100%;
  flex-shrink: 0;
}

.carousel button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  width: 40px; /* Ensure width and height are equal */
  height: 40px;
  border-radius: 50%;
}

.carousel .prev {
  left: 10px;
}

.carousel .next {
  right: 10px;
}

a {
  color: #9F8189;
  text-decoration: none;
  font-weight: bold;
}

a:hover {
  color: #F3ABB6;
  transition: ease-in 0.3s;
}

.fg p {
  font-size: 12px;
}