/* ===== Page Header ===== */
.page-header {
  padding-top: 70px;
  text-align: center;
  margin-bottom: 60px;
}

.works-title {
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  color: #36436f;
}

.works-title .script {
  font-family: 'AllegrettoScriptOne', cursive;
  color: #36436f;
  line-height: 1;
}

.works-title .big {
  font-size: 120px;
}

.works-title .small {
  font-size: 70px;
}

.works-title .text {
  font-family: 'NeutralFace', sans-serif;
  font-weight: 700;
  font-size: 50px;
  color: #36436f;
  line-height: 1;
}

/* ===== Filtered Works Layout ===== */
#filtered-works {
  display: grid;
  grid-template-columns: 220px 1fr; /* left = buttons, right = content */
  column-gap: 40px;
  align-items: start;
  padding-top: 40px;
  width: 100%;
  box-sizing: border-box;
}

/* ===== Side Buttons ===== */
.side-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: sticky;
  top: 150px;
  align-self: start;
  margin-left: 20px;
  z-index: 10;
}

.side-buttons button {
  width: 180px;
  padding: 10px 20px;
  border: 2px solid #000;
  background-color: #36436f;
  color: #fff;
  border-radius: 6px;
  font-weight: 500;
  text-align: left;
  transition: all 0.3s ease;
}

.side-buttons button:hover,
.side-buttons button.active {
  background-color: #b6000f;
  color: #fff;
  transform: translateY(-3px);
  border: 2px solid #000;
}

/* ===== Projects ===== */
.projects-container {
  width: 100%;
  max-width: 850px; /* thinner content area */
  margin-right: 60px;
  padding: 20px 0;
  box-sizing: border-box;
}

.project-section {
  display: none;
  animation: fadeIn 0.4s ease;
}

.project-section.active {
  display: block;
}

.project-section h5 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 25px;
  color: #fff;
}

.project-item {
  background-color: #36436f;
  border: 3px solid #000;
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 30px;
}

.project-item img {
  border-radius: 6px;
  max-height: 400px;
  object-fit: cover;
}

/* ===== Carousel ===== */
.carousel {
  margin-top: 15px;
}

.carousel-control-prev,
.carousel-control-next {
  width: auto;
}

.carousel-control-prev {
  left: 7px;
}

.carousel-control-next {
  right: 7px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: #b6000f; /* solid red background */
  border-radius: 50%;
  padding: 12px;
  transition: all 0.3s ease;
  background-size: 60%;
  background-repeat: no-repeat;
  background-position: center;
}

/* Override Bootstrap's semi-transparent SVGs */
.carousel-control-prev-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23ffffff' viewBox='0 0 16 16'%3E%3Cpath d='M11.354 1.646a.5.5 0 010 .708L5.707 8l5.647 5.646a.5.5 0 01-.708.708l-6-6a.5.5 0 010-.708l6-6a.5.5 0 01.708 0z'/%3E%3C/svg%3E");
}

.carousel-control-next-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23ffffff' viewBox='0 0 16 16'%3E%3Cpath d='M4.646 1.646a.5.5 0 000 .708L10.293 8l-5.647 5.646a.5.5 0 10.708.708l6-6a.5.5 0 000-.708l-6-6a.5.5 0 00-.708 0z'/%3E%3C/svg%3E");
}

.carousel-control-prev-icon:hover,
.carousel-control-next-icon:hover {
  transform: translateY(-3px);
  filter: brightness(1.1);
}

.carousel-item img {
  width: 100%;
  height: auto;
  max-height: 700px;
  object-fit: contain;
  background-color: #f5f5f5;
}

/* ===== Animations ===== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
  #filtered-works {
    display: block;
    padding-top: 20px;
  }

  .side-buttons {
    position: static;
    flex-direction: row;
    justify-content: center;
    margin-bottom: 20px;
    gap: 15px;
  }

  .projects-container {
    max-width: none;
    margin: 0;
    padding: 20px;
  }

  .works-title .big {
    font-size: 80px;
  }

  .works-title .small {
    font-size: 55px;
  }

  .works-title .text {
    font-size: 45px;
  }
}

@media (max-width: 576px) {
  .side-buttons button {
    padding: 8px 12px;
    font-size: 14px;
  }

  .works-title .big {
    font-size: 60px;
  }

  .works-title .small {
    font-size: 40px;
  }

  .works-title .text {
    font-size: 35px;
  }

  .projects-container {
    padding: 10px;
  }
}
