/* Case Study Card Styles */
.case-study-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 450px;
}

/* Ensure equal height columns */
.project3 .row {
  display: flex;
  flex-wrap: wrap;
}

.project3 .col-lg-4,
.project3 .col-md-6 {
  display: flex;
  margin-bottom: 30px;
}

.case-study-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.case-study-image {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.case-study-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.case-study-card:hover .case-study-image img {
  transform: scale(1.05);
}

.case-study-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(17, 58, 220, 0.8), rgba(17, 58, 220, 0.6));
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 15px;
}

.case-study-card:hover .case-study-overlay {
  opacity: 1;
}

.case-study-tags {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tag {
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  padding: 4px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tag-ecommerce { background: rgba(76, 175, 80, 0.9); color: white; }
.tag-web { background: rgba(33, 150, 243, 0.9); color: white; }
.tag-ai { background: rgba(156, 39, 176, 0.9); color: white; }
.tag-saas { background: rgba(255, 152, 0, 0.9); color: white; }
.tag-security { background: rgba(244, 67, 54, 0.9); color: white; }
.tag-software { background: rgba(96, 125, 139, 0.9); color: white; }
.tag-platform { background: rgba(121, 85, 72, 0.9); color: white; }
.tag-tool { background: rgba(103, 58, 183, 0.9); color: white; }
.tag-startup { background: rgba(255, 87, 34, 0.9); color: white; }
.tag-enterprise { background: rgba(63, 81, 181, 0.9); color: white; }
.tag-corporate { background: rgba(69, 90, 100, 0.9); color: white; }

.case-study-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.case-study-content h4 {
  margin: 0 0 8px 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}

.case-study-content h4 a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.case-study-content h4 a:hover {
  color: #113adc;
}

.case-study-subtitle {
  color: #666;
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 12px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.case-study-description {
  color: #555;
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 15px 0;
  flex-grow: 1;
}

.case-study-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 15px;
}

.tech-tag {
  background: #f8f9fa;
  color: #495057;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  border: 1px solid #e9ecef;
}

.case-study-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

.btn-live, .btn-details {
  flex: 1;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.btn-live {
  background: #113adc;
  color: white;
  border: 2px solid #113adc;
}

.btn-live:hover {
  background: #0d2db8;
  color: white;
  transform: translateY(-1px);
}

.btn-details {
  background: transparent;
  color: #113adc;
  border: 2px solid #113adc;
}

.btn-details:hover {
  background: #113adc;
  color: white;
  transform: translateY(-1px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .case-study-card {
    margin-bottom: 20px;
  }
  
  .case-study-image {
    height: 180px;
  }
  
  .case-study-content {
    padding: 15px;
  }
  
  .case-study-actions {
    flex-direction: column;
  }
  
  .btn-live, .btn-details {
    flex: none;
  }
}

/* Tab content styling */
.nav-pills .nav-link {
  border-radius: 25px;
  padding: 10px 20px;
  margin: 0 5px;
  background: #f8f9fa;
  color: #495057;
  border: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.nav-pills .nav-link.active {
  background: #113adc;
  color: white;
}

.nav-pills .nav-link:hover:not(.active) {
  background: #e9ecef;
  color: #113adc;
}
