/* Portfolio Section Custom Styles */

.st-portfolio-section {
  background-color: #0a101e;
  padding: 100px 0;
}

.st-portfolio-item {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 80px;
  position: relative;
  flex-direction: row;
}

.st-portfolio-item:last-child {
  margin-bottom: 0;
}

/* Ensure icons always on left - remove reverse */
.st-portfolio-item.st-reverse {
  flex-direction: row;
}

/* Tech Icons Column - Always on Left */
.st-tech-icons {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 80px;
  align-items: center;
  order: -1;
  flex-shrink: 0;
}

.st-tech-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(254, 197, 68, 0.1);
  border-radius: 8px;
  padding: 8px;
  transition: all 0.3s ease;
  border: 1px solid rgba(254, 197, 68, 0.2);
}

.st-tech-icon:hover {
  background: rgba(254, 197, 68, 0.2);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(254, 197, 68, 0.3);
}

.st-tech-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(100%);
}

/* Image Container */
.st-portfolio-image {
  flex: 1;
  max-width: 500px;
  position: relative;
}

.st-portfolio-image-wrapper {
  position: relative;
  transform: rotate(-3deg);
  transition: transform 0.3s ease;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.st-portfolio-item:hover .st-portfolio-image-wrapper {
  transform: rotate(0deg);
}

.st-portfolio-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

/* Decorative circle */
.st-portfolio-circle {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(254, 197, 68, 0.15) 0%, rgba(254, 197, 68, 0.05) 100%);
  z-index: -1;
  top: -50px;
  right: -50px;
}

.st-portfolio-item.st-reverse .st-portfolio-circle {
  left: -50px;
  right: auto;
}

/* Content Column */
.st-portfolio-content {
  flex: 1;
  padding: 20px;
}

.st-portfolio-title {
  font-size: 32px;
  color: #fec544;
  margin-bottom: 15px;
  font-weight: 700;
}

.st-portfolio-description {
  color: #a9adb8;
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 10px;
  position: relative;
}

.st-portfolio-content {
  position: relative;
}

.st-show-more-btn {
  background: none;
  border: none;
  color: #fec544;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  padding: 0;
  margin: 0;
  display: none;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  margin-top: -5px;
  opacity: 0.7;
}

.st-show-more-btn:hover {
  color: #ffd76e;
  text-decoration: underline;
  opacity: 1;
}

.st-show-more-btn::before {
  content: '... ';
  color: #a9adb8;
}

.st-portfolio-tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 25px;
}

.st-tech-badge {
  background: rgba(254, 197, 68, 0.1);
  color: #fec544;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid rgba(254, 197, 68, 0.3);
  transition: all 0.3s ease;
}

.st-tech-badge:hover {
  background: rgba(254, 197, 68, 0.2);
  transform: translateY(-2px);
}

.st-portfolio-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: transparent;
  color: #fec544;
  padding: 12px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s ease;
  border: 2px solid #fec544;
}

.st-portfolio-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0px 5px 20px rgba(254, 197, 68, 0.4);
  background-color: #fec544;
  color: #070d1b;
  text-decoration: none;
}

.st-portfolio-btn svg {
  width: 20px;
  height: 20px;
}

/* Responsive Design */
@media screen and (max-width: 991px) {
  .st-portfolio-item {
    flex-direction: row !important;
    gap: 20px;
    margin-bottom: 60px;
    align-items: flex-start;
  }

  .st-tech-icons {
    flex-direction: column;
    min-width: 50px;
    gap: 12px;
    align-items: center;
  }

  .st-tech-icon {
    width: 35px;
    height: 35px;
    padding: 6px;
  }

  .st-portfolio-image {
    max-width: 100%;
  }

  .st-portfolio-content {
    padding: 0;
    flex: 1;
  }

  .st-portfolio-title {
    font-size: 22px;
  }

  .st-portfolio-circle {
    width: 150px;
    height: 150px;
  }
}

@media screen and (max-width: 575px) {
  .st-portfolio-section {
    padding: 60px 0;
  }

  .st-portfolio-item {
    margin-bottom: 50px;
    gap: 15px;
  }

  .st-tech-icons {
    min-width: 40px;
    gap: 10px;
  }

  .st-tech-icon {
    width: 30px;
    height: 30px;
    padding: 5px;
  }

  .st-portfolio-title {
    font-size: 20px;
  }

  .st-portfolio-description {
    font-size: 14px;
    line-height: 1.6;
  }

  .st-features-text.truncated {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .st-show-more-btn {
    display: block;
    margin-bottom: 20px;
  }

  .st-portfolio-tech-list {
    margin-bottom: 15px;
  }

  .st-tech-badge {
    font-size: 11px;
    padding: 4px 10px;
  }

  .st-portfolio-btn {
    padding: 10px 20px;
    font-size: 13px;
  }

  /* Small screens - show third of about text */
  .st-about-text.truncated {
    -webkit-line-clamp: 8;
  }

  .st-about-show-more-btn {
    display: block;
  }
}

/* Medium to Large screens - show half of about text */
@media screen and (min-width: 576px) {
  .st-about-text.truncated {
    -webkit-line-clamp: 14;
  }

  .st-about-show-more-btn {
    display: block;
  }
}

/* Placeholder image styling */
.st-portfolio-placeholder {
  width: 100%;
  height: 350px;
  background: linear-gradient(135deg, #070d1b 0%, #0a101e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fec544;
  font-size: 18px;
  font-weight: 600;
  border-radius: 12px;
  border: 2px dashed rgba(254, 197, 68, 0.3);
}

/* About Section Show More Styles */
.st-about-text {
  position: relative;
}

.st-about-text.truncated {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.st-about-show-more-btn {
  background: none;
  border: none;
  color: #fec544;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  padding: 0;
  margin: 20px 0;
  display: block;
  text-decoration: none;
  transition: all 0.3s ease;
  opacity: 0.7;
}

.st-about-show-more-btn:hover {
  color: #ffd76e;
  text-decoration: underline;
  opacity: 1;
}

.st-about-show-more-btn::before {
  content: '... ';
  color: #a9adb8;
}

@media screen and (max-width: 991px) {
  .st-portfolio-placeholder {
    height: 300px;
  }
}

@media screen and (max-width: 575px) {
  .st-portfolio-placeholder {
    height: 250px;
    font-size: 16px;
  }
}
