/* Portfolio Details Page Styles */

.tj-portfolio-details-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  position: relative;
  overflow: hidden;
}

.portfolio-details-content {
  background: #fff;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

.portfolio-main-image {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.portfolio-main-image img {
  width: 100%;
  height: auto;
  transition: transform 0.3s ease;
}

.portfolio-main-image:hover img {
  transform: scale(1.02);
}

.portfolio-details-info .sec-title {
  color: #1a1a1a;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.portfolio-details-info .sec-text {
  color: #666;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 0;
}

.portfolio-description {
  border-top: 2px solid #f0f0f0;
  padding-top: 30px;
}

.portfolio-description .sub-title {
  color: #1a1a1a;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.description-content {
  color: #555;
  line-height: 1.8;
  font-size: 1rem;
}

.description-content p {
  margin-bottom: 15px;
}

.description-content h1,
.description-content h2,
.description-content h3,
.description-content h4,
.description-content h5,
.description-content h6 {
  color: #1a1a1a;
  margin-top: 25px;
  margin-bottom: 15px;
}

/* Portfolio Sidebar Styles */
.portfolio-details-sidebar {
  position: sticky;
  top: 30px;
}

.portfolio-info-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  margin-bottom: 20px;
}

.info-card-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 25px 30px;
  color: #fff;
}

.info-card-header .card-title {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 600;
  display: flex;
  align-items: center;
}

.info-card-body {
  padding: 30px;
}

.info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.info-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 15px 0;
  border-bottom: 1px solid #f0f0f0;
}

.info-item:last-child {
  border-bottom: none;
}

.info-label {
  font-weight: 600;
  color: #1a1a1a;
  min-width: 120px;
  margin-right: 15px;
}

.info-value {
  color: #666;
  text-align: right;
  flex: 1;
}

/* Portfolio Action Card */
.portfolio-action-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.action-card-body {
  padding: 30px;
}

.tj-btn-lg {
  padding: 15px 30px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
}

.tj-btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  color: #fff;
}

.tj-btn-primary:hover {
  background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
  color: #fff;
}

/* Portfolio Gallery Section */
.tj-portfolio-gallery-section {
  background: #fff;
  position: relative;
}

.gallery-image-wrapper {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.gallery-image-wrapper:hover {
  transform: translateY(-5px);
}

.gallery-image-wrapper img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-image-wrapper:hover img {
  transform: scale(1.05);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  padding: 20px;
  color: #fff;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.gallery-image-wrapper:hover .gallery-caption {
  transform: translateY(0);
}

.caption-text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
}

/* Responsive Design */
@media (max-width: 991px) {
  .portfolio-details-content {
    padding: 30px 20px;
  }

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

  .info-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .info-label {
    margin-bottom: 5px;
    margin-right: 0;
  }

  .info-value {
    text-align: left;
  }
}

@media (max-width: 767px) {
  .portfolio-details-content {
    padding: 20px 15px;
  }

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

  .info-card-header,
  .info-card-body,
  .action-card-body {
    padding: 20px;
  }

  .tj-btn-lg {
    padding: 12px 25px;
    font-size: 1rem;
    min-width: 180px;
  }
}

/* Animation Classes */
.fade-in {
  animation: fadeIn 0.6s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-in-left {
  animation: slideInLeft 0.6s ease-in-out;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-in-right {
  animation: slideInRight 0.6s ease-in-out;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
