/* Redesigned Hero Section */
.portfolio-hero {
  background: linear-gradient(to right, #5C8DD0, #3B4EA9);
  padding: 60px 20px 40px;
  text-align: center;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

.hero-title {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 20px;
  line-height: 1.6;
  margin-bottom: 32px;
  opacity: 0.95;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title {
    font-size: 36px;
  }

  .hero-subtitle {
    font-size: 16px;
  }
}

.portfolio-hero-alt {
  background: #ffffff;
  padding: 60px 20px 20px;
  font-family: 'Segoe UI', sans-serif;
}

.portfolio-grid-wrapper {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  justify-content: space-between;
}

.portfolio-text {
  flex: 1 1 20px;
}

.portfolio-title {
  font-size: 42px;
  font-weight: 700;
  color: #1e3a8a;
  margin-bottom: 16px;
}

.portfolio-desc {
  font-size: 16px;
  color: #4B5563;
  margin-bottom: 28px;
  line-height: 1.6;
  max-width: 500px;
}

.portfolio-btn {
  background-color: #2563eb;
  color: white;
  text-decoration: none;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 8px;
  display: inline-block;
  transition: background 0.3s ease;
}

.portfolio-btn:hover {
  background-color: #1d4ed8;
}

.portfolio-cards {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex: 1 1 300px;
}

.portfolio-cards::before {
  content: '';
  position: absolute;
  width: 420px;
  height: 420px;
  background: #ebedfc;
  border-radius: 50%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 0;
}

.card-row {
  display: flex;
  gap: 20px;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.card-row:nth-child(1) {
  justify-content: center;
}

.card-row:nth-child(2) {
  justify-content: center;
}

.case-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  flex: 1;
  max-width: 200px;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.case-card img {
  max-height: 300px;
  width: auto;
  display: block;
  object-fit: cover;
}

.case-card span {
  position: absolute;
  bottom: 16px;
  left: 16px;
  color: white;
  font-size: 16px;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

/* Subtle hover effect for hero images */
.case-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

/* Shape specific layout for 2 rows and mixed alignment */
.card-row:first-child .case-card {
  transform: translateY(20px);
}

.card-row:last-child {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.card-row:last-child .case-card:first-child {
  transform: translateX(-20px);
}

.card-row:last-child .case-card:last-child {
  transform: translateX(20px);
}

.case-card.tall {
  flex: 1;
  height: 360px;
}

.story-card.coming-soon {
  opacity: 0.75;
  cursor: not-allowed;
  position: relative;
}

.story-card.coming-soon .story-content {
  position: relative;
}

.coming-label {
  display: inline-block;
  margin-top: 12px;
  font-weight: 600;
  font-size: 14px;
  border-radius: 6px;
  font-weight: 600;
  color: #0050d8;
  text-decoration: none;
  transition: color 0.2s;  
}

@media (max-width: 768px) {
  .portfolio-cards {
    display: none;
  }

  .portfolio-cards::before {
    display: none;
  }

  .portfolio-grid-wrapper {
    flex-direction: column;
    align-items: flex-start;
  }

  .card-row {
    flex-direction: column;
    gap: 16px;
  }

  .case-card.tall {
    height: auto;
  }

  .case-card {
    max-width: 100%;
    transform: none !important;
  }  

  .portfolio-title {
    font-size: 32px;
  }

  .portfolio-desc {
    font-size: 15px;
  }
}

.success-stories {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1rem;
  font-family: 'Inter', sans-serif;
  color: #1e3a8a;
}

.success-header {
  text-align: center;
  margin-bottom: 3rem;
}

.success-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.success-header p {
  font-size: 1.125rem;
  color: #555;
  max-width: 700px;
  margin: 0 auto;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.story-card {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.story-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.story-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.story-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.story-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #111;
}

.story-content p {
  flex-grow: 1;
  color: #333;
  font-size: 1rem;
  margin-bottom: 1.25rem;
}

.story-content a {
  font-weight: 600;
  color: #0050d8;
  text-decoration: none;
  transition: color 0.2s;
}

.story-content a:hover {
  color: #002ea6;
}

.story-content a.coming-label {
  background: transparent;
  border: 1.5px solid #0050d8; /* Redina blue */
  color: #0050d8;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  width: fit-content;
  transition: all 0.25s ease;
  text-decoration: none;
  display: inline-block;
}

.story-content a.coming-label:hover {
  background-color: rgba(37, 99, 235, 0.06); /* light blue on hover */
  color: #1e3a8a; /* darker blue for hover */
  transform: translateY(-2px);
  border-color: #1e3a8a;
}

/* Optional: Add a faint shadow on hover for story cards */
.story-card:hover img {
  transform: scale(1.02);
}

.industries-supported {
  background-color: #f9fafb;
  padding: 80px 20px;
  text-align: center;
  font-family: 'Segoe UI', sans-serif;
}

.industry-content {
  max-width: 960px;
  margin: 0 auto;
}

.industry-heading {
  font-size: 36px;
  color: #1e3a8a;
  font-weight: 700;
  margin-bottom: 16px;
}

.industry-subtext {
  font-size: 16px;
  color: #4b5563;
  margin-bottom: 36px;
  line-height: 1.6;
}

.industry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.industry-tags span {
  background-color: #e0e7ff;
  color: #1e40af;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.3s ease;
}

.industry-tags span:hover {
  background-color: #c7d2fe;
}

/* Responsive */
@media (max-width: 600px) {
  .industry-heading {
    font-size: 28px;
  }

  .industry-subtext {
    font-size: 15px;
  }

  .industry-tags span {
    font-size: 13px;
    padding: 8px 14px;
  }
}
