/* Portfolio Detail Page Styles */

/* Main Container */
.portfolio-item-detail {
  background-color: #000000;
  color: #ffffff;
}

/* Hero Section with Image */
.portfolio-hero-image {
  position: relative;
  width: 100%;
  height: 70vh;
  overflow: hidden;
}

.portfolio-hero-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgb(0 0 0 / 0.4);
  z-index: 5;
}

.portfolio-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
}

/* Title Overlay */
.portfolio-hero-title {
  position: absolute;
  bottom: 80px;
  right: 0;
  padding: 0 24px 0 2rem;
  z-index: 10;
}

.portfolio-hero-title h1 {
  font-size: 4rem;
  font-weight: 900;
  font-family: "Assistant ExtraBold";
  color: #ffffff;
  margin: 0;
  line-height: 1;
  text-align: right;
  letter-spacing: -0.025em;
}

/* Description Overlay */
.portfolio-hero-description {
  position: absolute;
  bottom: 40px;
  right: 0;
  padding: 0 24px 0 2rem;
  z-index: 10;
}

.portfolio-hero-description p {
  font-size: 1.25rem;
  color: #ffffff;
  margin: 0;
  text-align: right;
  direction: rtl;
  line-height: 1.4;
}

/* Content Section */
.portfolio-content-section {
  background-color: #000000;
  padding: 4rem 24px;
  text-align: center;
}

/* About Project Title */
.portfolio-about-title {
  margin-bottom: 2rem;
}

.portfolio-about-title h2 {
  font-size: 3rem;
  font-weight: 900;
  color: #ffffff;
  margin: 0;
  text-align: center;
  letter-spacing: -0.025em;
  line-height: 1;
}

/* Project Description */
.portfolio-project-description {
  max-width: 800px;
  margin: 0 auto 3rem auto;
}
.portfolio-project-description h2 {
  font-weight: 700;
  font-family: "Assistant Bold";
  font-size: 30px;
  color: #ffffff;
  margin: 0;
  text-align: right;
  margin-bottom: 30px;
}
.portfolio-project-description p {
  font-size: 18px;
  color: #ffffff;
  line-height: 1.6;
  text-align: right;
  direction: rtl;
  margin: 0;
}

/* Back Button */
.portfolio-back-button {
  text-align: center;
}

.portfolio-back-button a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #f97316;
  text-decoration: none;
  font-size: 1.125rem;
  font-weight: 600;
  transition: color 0.3s ease;
}

.portfolio-back-button a:hover {
  color: #f7a267;
}

.portfolio-back-button a span {
  color: inherit;
  transition: color 0.3s ease;
}

.portfolio-back-button a svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  transition: stroke 0.3s ease;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .portfolio-hero-image {
    height: 60vh;
  }

  .portfolio-hero-title h1 {
    font-size: 3rem;
  }

  .portfolio-hero-description p {
    font-size: 1.125rem;
  }

  .portfolio-about-title h2 {
    font-size: 2.5rem;
  }

  .portfolio-project-description p {
    font-size: 1.125rem;
  }
}

@media (max-width: 768px) {

  .portfolio-content-section{
    padding-bottom: 0;
  }
  .portfolio-hero-title {
    bottom: 60px;
    padding: 0 24px 0 1rem;
  }

  .portfolio-hero-title h1 {
    font-size: 2.5rem;
  }

  .portfolio-hero-description {
    bottom: 15px;
    padding: 0 24px 0 1rem;
  }

  .portfolio-hero-description p {
    font-size: 1rem;
  }

  .portfolio-content-section {
    padding: 3rem 24px;
  }

  .portfolio-about-title h2 {
    font-size: 2rem;
  }

  .portfolio-project-description p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .portfolio-hero-image {
    height: 40vh;
  }

  .portfolio-hero-title h1 {
    font-size: 2rem;
  }

  .portfolio-hero-description p {
    font-size: 0.875rem;
  }

  .portfolio-about-title h2 {
    font-size: 1.75rem;
  }

  .portfolio-project-description p {
    font-size: 0.875rem;
  }
}
