/* projects-sections.css - Complete Styling */

#projects {
  padding: 80px 0;
  background: #f8fafc;
}

#projects h2 {
  text-align: center;
  margin-bottom: 50px;
  color: #1e293b;
  font-size: 2.2rem;
  font-weight: 700;
}

.projects-container {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  justify-content: center;
  margin-bottom: 30px;
}

.projects-container.show-all {
  flex-wrap: wrap;
}

.project-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
  width: 100%;
  max-width: 300px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.5s ease forwards;
  display: flex;
  flex-direction: column;
  height: 100%;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.project-card:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.card-img-container {
  height: 180px;
  overflow: hidden;
  position: relative;
  background-color: #f1f5f9;
}

.card-img-top {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .card-img-top {
  transform: scale(1.05);
}

.card-body {
  padding: 20px;
  flex: 1;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 12px;
}

.card-text {
  font-size: 0.95rem;
  color: #64748b;
  line-height: 1.5;
  margin-bottom: 16px;
  min-height: 60px;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.tech-tag {
  background: #f1f5f9;
  color: #334155;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.tech-tag:hover {
  background: #e2e8f0;
  transform: translateY(-1px);
}

/* Store Logos Styles */
.store-logos {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.store-logo {
  display: inline-block;
  height: 40px;
  transition: transform 0.3s ease;
}

.store-logo img {
  height: 100%;
  width: auto;
  max-width: 120px;
  object-fit: contain;
}

.store-logo:hover {
  transform: translateY(-2px) scale(1.05);
}

/* Company Logo Section - Updated */
.card-footer {
  padding: 10px 20px 16px; /* Added top padding */
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px; 
}

.card-footer > .unavailable-state:only-child img {
  min-width: 150px;
}

.company-logo {
  height: 50px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-bottom: 4px;
  overflow: hidden;
}

.company-logo img {
  max-height: 44px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center bottom;
}

/* Currently Working Badge */
.currently-working-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #3b82f6;
  color: white;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 2;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
  }
}

/* Unavailable Badge */
.unavailable-badge {
  height: 60px;
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.unavailable-badge img {
  height: 30px;
  opacity: 0.7;
}

.unavailable-state img {
  min-width: 120px;
  padding: 0 15px; /* Horizontal padding */
}

/* Web Button */
.web-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #3b82f6;
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s ease;
  margin-bottom: 12px;
}

.web-button:hover {
  background: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
  color: white;
}

.web-button img {
  height: 20px;
  width: auto;
}

/* Load More Button */
#load-more-container {
  display: flex;
  justify-content: center; /* Center horizontally */
  align-items: center; /* Center vertically */
  margin-top: 30px;
  width: 100%;
  text-align: center; /* Fallback for older browsers */
}

#load-more {
  background: transparent;
  color: #3b82f6;
  border: 2px solid #3b82f6;
  padding: 10px 30px;
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  /* Remove any existing margin or display properties */
  margin: 0 auto; /* Additional centering */
}

#load-more:hover {
  background: #3b82f6;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

/* Responsive Styles */
@media (max-width: 1200px) {
  .project-card {
    max-width: calc(33.333% - 25px);
  }
}

@media (max-width: 992px) {
  .project-card {
    max-width: calc(50% - 25px);
  }
  
  .store-logo {
    height: 35px;
  }
}

@media (max-width: 768px) {
  #projects {
    padding: 60px 0;
  }
  
  .project-card {
    max-width: 100%;
  }
  
  .card-img-container {
    height: 160px;
  }
  
  .company-logo {
    height: 45px;
  }
  
  .company-logo img {
    max-height: 40px;
  }
}

@media (max-width: 576px) {
  #projects h2 {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }
  
  .card-body {
    padding: 15px;
  }
  
  .store-logo {
    height: 30px;
  }
  
  .company-logo {
    height: 40px;
  }
  
  .company-logo img {
    max-height: 35px;
  }
}