@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 30px;
  padding: 50px 20px 50px 20px;
  background-color: white;
}
@media screen and (min-width: 480px) {
  .visit-button {
    display: inline-block;
    position: absolute;
    left: 16px;
    bottom: -8px;
    width: calc(50% - 20px);
    padding: 10px 12px;
    background: #044bab;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    font-size: 10px;
  }
  .details-button {
    display: inline-block;
    position: absolute;
    right: 16px;
    bottom: -8px;
    width: calc(50% - 20px);
    padding: 10px 12px;
    background: transparent;
    color: #044bab;
    border: 2px solid rgba(4, 75, 171, 0.12);
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    font-size: 10px ;
  }
}

@media (min-width: 768px) {
  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr); 
  }
}

@media (min-width: 1200px) {
  .portfolio-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.portfolio-card {
  background: linear-gradient(135deg, #e8f0fe 0%, #f0f4ff 100%);
  color: #044bab;
  padding: 22px;
  border-radius: 16px;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(4, 75, 171, 0.08);
  transition: all 0.28s ease;
  display: flex;
  flex-direction: column !important;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  min-height: 550px; /* increased so tags/description don't get cut */
  border: 1px solid rgba(4, 75, 171, 0.06);
  overflow: hidden;
}
.portfolio-card {
  position: relative;
  padding-bottom: 190px; /* reserve space for the fixed button */
}

.portfolio-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 24px 60px rgba(4, 75, 171, 0.16);
}

.portfolio-image-wrapper {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.portfolio-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.portfolio-card:hover .portfolio-image {
  transform: scale(1.05);
}

.portfolio-overlay {
  position: relative;
  bottom: auto;
  left: auto;
  right: auto;
  background: transparent;
  padding: 0;
  color: white;
  transform: none;
}

.portfolio-card > * {
  position: relative;
  z-index: 1;
}

.portfolio-title {
  font-size: 26px;
  font-weight: 600;
  margin: 0 0 10px;
}

.portfolio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(4, 75, 171, 0.14);
  border-color: #044bab;
}

.portfolio-image-wrapper {
  width: 100%;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.6);
}

.portfolio-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.portfolio-title {
  font-size: 1.05rem;
  margin: 0 0 6px;
  color: inherit;
}
.portfolio-desc {
  position: relative;
  font-size: 0.9rem;
  color: rgba(0, 0, 0, 0.65);
  display: -webkit-box;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}
.portfolio-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 10px;
}
.portfolio-tags .tag {
  background: rgba(4, 75, 171, 0.08);
  color: #044bab;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.65rem;
}
.portfolio-brand {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--primary-900);
}
.tag {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

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

.process-step {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 40px 30px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform: translateY(0);
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
}

.process-step:nth-child(1) {
  animation-delay: 0.2s;
}

.process-step:nth-child(2) {
  animation-delay: 0.4s;
}

.process-step:nth-child(3) {
  animation-delay: 0.6s;
}

.process-step:nth-child(4) {
  animation-delay: 0.8s;
}

.process-step:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.hero-title {
  font-size: var(--h2);
  font-weight: 700;
  background: var(--text-linear);
  -webkit-text-fill-color: transparent;
}

.portfolio-card {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 14px !important;
  padding: 14px !important;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.04),
    rgba(255, 255, 255, 0.01)
  ) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 8px 28px rgba(4, 75, 171, 0.06) !important;
  backdrop-filter: blur(10px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(10px) saturate(140%) !important;
  border-radius: 14px !important;
  text-decoration: none;
}

.portfolio-image-wrapper {
  width: 100% !important;
  height: 260px !important;
  flex: 0 0 auto !important;
}

.portfolio-image {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 10px !important;
}

.portfolio-overlay {
  position: relative !important;
  transform: none !important;
  background: transparent !important;
  padding: 12px 0 40px 0 !important; /* reserve inner bottom space so description isn't overlapped by button */
  color: var(--white) !important;
}

.portfolio-title {
  color: var(--primary-900) !important;
}

.tag {
  background: rgba(7, 51, 171, 0.08) !important;
}

.star.filled {
  color: var(--primary-900) !important;
}

@media (min-width: 1024px) {
  .portfolio-card {
    align-items: center !important;
    height: auto !important;
    padding: 20px !important;
  }

  .portfolio-image-wrapper {
    flex: 0 0 48% !important;
    height: 100% !important;
  }
}

.portfolio-card:hover .portfolio-image {
  transform: scale(1.04) rotate(-0.6deg);
}

/* FAQ Section styles */
.faq-section {
  padding: 48px 20px;
  background: white;
}
.faq-container {
  max-width: 1100px;
  margin: 0 auto;
}
.faq-headline {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary-900, #044bab);
  margin-bottom: 16px;
  text-align: center;
}
.faq-sub {
  text-align: center;
  color: rgba(0, 0, 0, 0.65);
  max-width: 820px;
  margin: 0 auto 28px;
  line-height: 1.5;
}
.faq-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.faq-item {
  background: #fff;
  border: 1px solid rgba(4, 75, 171, 0.06);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(4, 75, 171, 0.04);
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  cursor: pointer;
  font-weight: 600;
  color: #042a5f;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
}
.faq-question:hover {
  background: linear-gradient(90deg, rgba(4, 75, 171, 0.02), transparent);
}
.faq-question .chev {
  transition: transform 0.22s ease;
  color: rgba(4, 75, 171, 0.9);
}
.faq-item[aria-expanded="true"] .faq-question .chev {
  transform: rotate(180deg);
}
.faq-answer {
  padding: 0 18px; /* no bottom padding when collapsed */
  color: rgba(0, 0, 0, 0.75);
  line-height: 1.6;
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.28s ease,
    padding 0.22s ease;
}
.faq-item[aria-expanded="true"] .faq-answer {
  max-height: 800px; /* generous max to allow content */
  padding: 12px 18px 18px 18px;
}
.faq-item[aria-expanded="false"] .faq-answer {
  max-height: 0;
  padding: 0 18px;
}

@media (min-width: 768px) {
  .faq-list {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .faq-headline {
    font-size: 32px;
  }
}

@media (min-width: 1200px) {
  .faq-container {
    max-width: 1200px;
  }
}

/* CTA Section */
.cta-section {
  padding: 40px 20px;
  background: white;
}
.cta-container {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
  padding: 12px 16px;
}
.cta-title {
  font-size: 26px;
  color: #042a5f;
  font-weight: 800;
  margin-bottom: 10px;
}
.cta-sub {
  color: rgba(0, 0, 0, 0.7);
  margin-bottom: 18px;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}
.cta-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.cta-primary {
  background: #044bab;
  color: #fff;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
}
.cta-secondary {
  background: transparent;
  color: #044bab;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid rgba(4, 75, 171, 0.12);
}

@media (min-width: 768px) {
  .cta-title {
    font-size: 32px;
  }
  .cta-container {
    padding: 18px 24px;
  }
}

/* Offerings (types of software development) */
.offerings-section {
  padding: 48px 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f6fbff 100%);
}
.offerings-container {
  max-width: 95%;
  margin: 0 auto;
  text-align: center;
}
.offerings-headline {
  font-size: 58px;
  font-weight: 800;
  color: var(--primary-900, #044bab);
  margin-bottom: 8px;
}
.offerings-sub {
  color: rgba(0, 0, 0, 0.65);
  margin-bottom: 20px;
}
.offerings-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 14px;
}
.offer-card {
  background: #fff;
  border: 1px solid rgba(4, 75, 171, 0.06);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  display: flex;
  gap: 12px;
  align-items: center;
  box-shadow: 0 6px 18px rgba(4, 75, 171, 0.04);
}
.offer-icon {
  font-size: 28px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(4, 75, 171, 0.06);
  color: #044bab;
  flex-shrink: 0;
}
.offer-title {
  font-weight: 700;
  color: #042a5f;
  margin-bottom: 6px;
  margin-top: 14px;
}
.offer-desc {
  color: rgba(0, 0, 0, 0.72);
  font-size: 0.95rem;
  text-align: justify;
}

.offer-keywords {
  font-size: 0.85rem;
  color: rgba(0, 0, 0, 0.6);
  margin-top: 8px;
}
.offer-actions {
  margin-top: 10px;
}
.offer-button {
  display: inline-block;
  background: #044bab;
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
}

@media (min-width: 640px) {
  .offer-button {
    padding: 10px 14px;
  }
}

@media (min-width: 640px) {
  .offerings-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .offerings-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .offer-card {
    padding: 18px;
  }
  .offerings-headline {
    font-size: 62px;
  }
}

.portfolio-heading {
  font-size: 28px;
  color: #042a5f;
  font-weight: 700;
  margin: 24px 0 12px;
  text-align: center;
}

/* Portfolio Card Buttons - Responsive */
.portfolio-buttons-container {
  display: flex;
  gap: 8px;
  width: 100%;
  flex-direction: column;
  margin-top: 12px;
}

@media (min-width: 768px) {
  .portfolio-buttons-container {
    flex-direction: row;
  }
}

.visit-button {
  flex: 1;
  padding: 10px 12px;
  background: #044bab;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  display: block;
  font-size: 1rem;
}

.visit-button:disabled {
  background: rgba(4, 75, 171, 0.18);
  cursor: default;
  opacity: 0.7;
}

.details-button {
  flex: 1;
  padding: 10px 12px;
  background: transparent;
  color: #044bab;
  border: 2px solid rgba(4, 75, 171, 0.12);
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  display: block;
  font-size: 1rem;
}

.details-button:hover {
  background: rgba(4, 75, 171, 0.04);
}

.details-button:disabled {
  opacity: 0.6;
  cursor: default;
}
