/* 
 * Portfolio Section Styles - Bixing Technology
 * Modern, sleek AI-themed portfolio cards
 */

.portfolio-section {
  position: relative;
  padding: 100px 0;
  background-color: var(--portfolio-bg);
  background-image: 
    linear-gradient(135deg, rgba(0, 102, 255, 0.03) 0%, transparent 50%),
    linear-gradient(225deg, rgba(112, 0, 255, 0.03) 0%, transparent 50%);
  overflow: hidden;
}

.portfolio-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M54 22c-1.1 0-2 .9-2 2v32h-2V24c0-1.1-.9-2-2-2s-2 .9-2 2v32h-2V22c0-1.1-.9-2-2-2s-2 .9-2 2v34h-2V24c0-1.1-.9-2-2-2s-2 .9-2 2v32h-2V22c0-1.1-.9-2-2-2s-2 .9-2 2v34h-2V24c0-1.1-.9-2-2-2s-2 .9-2 2v32h-2V22c0-1.1-.9-2-2-2s-2 .9-2 2v34h-2V24c0-1.1-.9-2-2-2s-2 .9-2 2v32h-2V22c0-1.1-.9-2-2-2s-2 .9-2 2v34h-2V24c0-1.1-.9-2-2-2s-2 .9-2 2v32h-2V22c0-1.1-.9-2-2-2s-2 .9-2 2v34H6V24c0-1.1-.9-2-2-2s-2 .9-2 2v34H0v2h60v-2h-2V24c0-1.1-.9-2-2-2z' fill='%237000FF' fill-opacity='0.03'/%3E%3C/svg%3E");
  background-size: 60px 60px;
  opacity: 0.5;
  z-index: 0;
}

.portfolio-section .container {
  position: relative;
  z-index: 1;
}

.portfolio-filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 8px 20px;
  margin: 5px;
  background-color: var(--dark-surface);
  color: var(--text-light);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-normal);
  font-size: 0.9rem;
  font-weight: 500;
}

.filter-btn:hover, .filter-btn.active {
  background: var(--gradient-blue);
  color: var(--white);
  border-color: transparent;
}

.portfolio-grid {
  margin-top: 20px;
}

.portfolio-item {
  margin-bottom: 30px;
}

.portfolio-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--dark-surface);
  border: 1px solid var(--dark-border);
  transition: all var(--transition-normal);
  height: 100%;
}

.portfolio-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.portfolio-img {
  position: relative;
  overflow: hidden;
  height: 240px;
}

.portfolio-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.portfolio-card:hover .portfolio-img img {
  transform: scale(1.1);
}

.portfolio-category {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--gradient-blue);
  color: var(--white);
  padding: 5px 15px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  z-index: 2;
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(10, 16, 32, 0.9), rgba(10, 16, 32, 0.2));
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-normal);
  z-index: 1;
}

.portfolio-card:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-overlay-content {
  text-align: center;
  padding: 20px;
  transform: translateY(20px);
  transition: all var(--transition-normal);
}

.portfolio-card:hover .portfolio-overlay-content {
  transform: translateY(0);
}

.portfolio-overlay-title {
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.portfolio-overlay-category {
  color: var(--primary-light);
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.portfolio-overlay-links {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.portfolio-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-radius: var(--radius-full);
  transition: all var(--transition-normal);
}

.portfolio-link:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-5px);
}

.portfolio-content {
  padding: 25px;
}

.portfolio-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--white);
}

.portfolio-description {
  color: var(--text-medium);
  margin-bottom: 15px;
  font-size: 0.95rem;
}

.portfolio-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}

.tech-tag {
  padding: 4px 12px;
  background-color: rgba(0, 102, 255, 0.1);
  color: var(--primary-color);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 500;
}

/* AI-themed elements */
.portfolio-ai-icon {
  position: absolute;
  bottom: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  background: rgba(0, 102, 255, 0.1);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 16px;
  z-index: 2;
  transition: all var(--transition-normal);
}

.portfolio-card:hover .portfolio-ai-icon {
  background: var(--primary-color);
  color: var(--white);
  transform: rotate(360deg);
}

/* AI overlay */
.portfolio-ai-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 102, 255, 0.3);
  opacity: 0;
  transition: opacity var(--transition-normal);
  z-index: 1;
}

.portfolio-card:hover .portfolio-ai-overlay {
  opacity: 0.3;
}

/* Circuit pattern overlay */
.portfolio-circuit {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%230066FF' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
  background-size: 100px 100px;
  z-index: 0;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.portfolio-card:hover .portfolio-circuit {
  opacity: 0.5;
}

/* Responsive styles */
@media (max-width: 992px) {
  .portfolio-section {
    padding: 80px 0;
  }
  
  .portfolio-img {
    height: 220px;
  }
}

@media (max-width: 768px) {
  .portfolio-section {
    padding: 60px 0;
  }
  
  .portfolio-img {
    height: 200px;
  }
  
  .portfolio-filter {
    margin-bottom: 30px;
  }
  
  .filter-btn {
    padding: 6px 15px;
    font-size: 0.85rem;
  }
}
