@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&family=Open+Sans&display=swap');

.infrastructure-section {
  max-width: 1300px;
  margin: 64px auto;
  padding: 52px 18px;
  color: #092c5c;
  font-family: 'Open Sans', Arial, sans-serif;
  text-align: center;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(143deg, #f6f9fc 85%, #c9e2fa 100%);
  box-shadow: 0 18px 48px rgba(9,44,92,0.12);
  z-index: 1;
}

/* Background overlay with gentle shimmer */
.infrastructure-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: 
    linear-gradient(139deg, rgba(9,44,92,0.63) 15%, rgba(255,235,170,0.08) 100%),
    url('/assets/img/infra.jpg') center center/cover no-repeat;
  opacity: 0.28;
  border-radius: 20px;
  pointer-events: none;
  animation: shimmerBG 8s linear infinite;
}

@keyframes shimmerBG {
  0% { background-position: center center; }
  50% { background-position: center 25%; }
  100% { background-position: center center; }
}

.infrastructure-section > * {
  position: relative;
  z-index: 1;
}

.infra-header h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.8rem;
  font-weight: 900;
  color: #d1002c;
  margin-bottom: 11px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  display: inline-block;
  padding-bottom: 8px;
  border-bottom: 4px solid #ffcc00;
  background: none;
  transition: color 0.4s ease, text-shadow 0.4s ease;
  cursor: default;
}

.infra-header h1:hover {
  color: #ffcc00;
  text-shadow: 0 0 16px #ffd966aa, 0 0 12px #ffcc00cc;
}

.infra-header p {
  font-size: 1.18rem;
  font-weight: 700;
  color: #224d7b;
  margin-bottom: 42px;
  text-shadow: 0 1px 12px #ffd96133;
  animation: fadeUpSmall 1.6s ease forwards;
}

/* Cards Layout */
.infra-cards {
  display: flex;
  flex-direction: column;
  gap: 34px;
}

.infra-card-full {
  width: 100%;
  max-width: 100%;
  margin-bottom: 0;
}

/* Bottom row with two cards */
.infra-bottom-row {
  display: flex;
  gap: 32px;
  justify-content: space-between;
}

.infra-bottom-row .infra-card {
  flex: 1 1 0;
  max-width: 49%;
}

.infra-card {
  background: linear-gradient(113deg,#fffbe8 60%, #f9f7fc 100%);
  border-radius: 18px;
  box-shadow: 0 8px 28px rgba(9,44,92,0.12);
  padding: 40px 30px 35px 30px;
  transition: transform 0.38s cubic-bezier(.31,.59,.51,1.08), box-shadow 0.38s ease;
  cursor: default;
  text-align: left;
  position: relative;
  overflow: hidden;
  will-change: transform, box-shadow;
}
.infra-card::before {
  content: "";
  position: absolute;
  top: 20%;
  left: -100%;
  width: 60%;
  height: 140%;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 204, 0, 0.18) 50%, transparent 100%);
  transform: skewX(-25deg);
  transition: left 0.7s ease;
  pointer-events: none;
  filter: drop-shadow(0 0 6px #ffcc0050);
  border-radius: 14px;
  z-index: 0;
}
.infra-card:hover::before {
  left: 110%;
  transition: left 0.7s ease;
}

.infra-card:hover,
.infra-card:focus {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 22px 48px #ffcc0045, 0 4px 19px #0c366d28;
  outline: none;
}


.infra-icon-box {
  background: linear-gradient(135deg, #ffcc00 67%, #ffd966 100%);
  box-shadow: 0 0 24px #ffcc0058;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  animation: iconPop 0.85s cubic-bezier(.31,.58,.52,1);
  transition: box-shadow 0.45s ease;
}
.infra-icon-box:hover {
  box-shadow: 0 0 38px 20px #ffcc00cc;
}

@keyframes iconPop {
  from { transform: scale(0.6); opacity: 0.12; }
  to { transform: scale(1); opacity: 1; }
}

.infra-icon {
  font-size: 3rem;
  color: #092c5c;
  transition: color 0.35s;
}
.infra-card:hover .infra-icon,
.infra-card:focus .infra-icon {
  color: #d1002c;
}

.infra-card h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.48rem;
  font-weight: 900;
  color: #092c5c;
  margin-bottom: 18px;
  letter-spacing: 0.025em;
  transition: color 0.4s ease;
}
.infra-card:hover h2,
.infra-card:focus h2 {
  color: #ffcc00;
  text-shadow: 0 0 18px #ffdb5eaa;
}

.infra-card p {
  font-size: 1.1rem;
  color: #2c3e72;
  line-height: 1.75;
  font-weight: 600;
  letter-spacing: 0.007em;
}

/* Fade-in Animation */
.fade-in {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.85s cubic-bezier(.32,.15,.23,.87), transform 0.85s cubic-bezier(.32,.15,.23,.87);
}

.fade-in-visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

@keyframes fadeUpSmall {
  0% { opacity: 0; transform: translateY(40px) scale(0.97);}
  100% { opacity: 1; transform: translateY(0) scale(1);}
}

/* Responsive Design */
@media (max-width: 900px) {
  .infra-bottom-row {
    flex-direction: column;
    gap: 36px;
    align-items: stretch;
  }
  .infra-bottom-row .infra-card {
    max-width: 100%;
    width: 100%;
  }
}

@media (max-width: 600px) {
  .infra-header h1 {
    font-size: 2.1rem;
  }
  .infra-header p {
    font-size: 1.1rem;
  }
  .infra-card {
    padding: 24px 16px 20px 16px;
  }
  .infra-icon-box {
    width: 56px;
    height: 56px;
  }
  .infra-icon {
    font-size: 2.2rem;
  }
  .infra-card h2 {
    font-size: 1.28rem;
  }
  .infra-card p {
    font-size: 1rem;
  }
}
