/**
 * System Architecture Solution Section Styles
 *
 * @package Meridian_Africa
 * @since 1.0.0
 */

/* ===========================
   MERIDIAN SOLUTION SECTION
   =========================== */

.meridian-solution {
  padding: 100px 0;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}

.meridian-solution::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(90deg, rgba(46, 143, 51, 0.03) 1px, transparent 1px),
    linear-gradient(rgba(46, 143, 51, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.4;
  pointer-events: none;
}

.solution-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
  position: relative;
  z-index: 1;
}

.solution-left {
  position: sticky;
  top: 100px;
}

.solution-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 24px;
  background: linear-gradient(135deg, rgba(46, 143, 51, 0.1) 0%, rgba(46, 143, 51, 0.05) 100%);
  border: 1px solid rgba(46, 143, 51, 0.2);
  border-radius: 50px;
  margin-bottom: 24px;
  animation: fadeInDown 0.6s ease;
}

.solution-badge i {
  font-size: 14px;
  color: #2e8f33;
}

.solution-badge span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #2e8f33;
  text-transform: uppercase;
}

.solution-main-title {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.2;
  color: #0f172a;
  margin-bottom: 24px;
  animation: fadeInUp 0.6s ease 0.1s backwards;
}

.solution-description {
  font-size: 17px;
  line-height: 1.8;
  color: #475569;
  margin-bottom: 40px;
  animation: fadeInUp 0.6s ease 0.2s backwards;
}

.solution-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  animation: fadeInUp 0.6s ease 0.3s backwards;
}

.solution-stat-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}

.solution-stat-item:hover {
  transform: translateX(10px);
  box-shadow: 0 10px 30px rgba(46, 143, 51, 0.1);
  border-color: #2e8f33;
}

.stat-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2e8f33 0%, #22c55e 100%);
  border-radius: 12px;
  flex-shrink: 0;
}

.stat-icon i {
  font-size: 24px;
  color: #ffffff;
}

.stat-content {
  flex: 1;
}

.stat-value {
  font-size: 28px;
  font-weight: 800;
  color: white;
  line-height: 1;
  margin-bottom: 6px;
}

.stat-value-sentinel{
   font-size: 28px;
    font-weight: 800;
    color: #64748b;
    line-height: 1;
    margin-bottom: 6px;
}

.stat-label-sentinel{
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-label {
  font-size: 13px;
  font-weight: 600;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.solution-right {
  position: relative;
}

.system-architecture {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.architecture-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 32px;
  border: 2px solid #e2e8f0;
  display: flex;
  gap: 10px;
  align-items: start;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
  animation: fadeInRight 0.6s ease backwards;
}

.architecture-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(180deg, #2e8f33 0%, #22c55e 100%);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.architecture-card:hover::before {
  transform: scaleY(1);
}

.architecture-card:nth-child(1) {
  animation-delay: 0.1s;
}

.architecture-card:nth-child(2) {
  animation-delay: 0.2s;
}

.architecture-card:nth-child(3) {
  animation-delay: 0.3s;
}

.architecture-card:nth-child(4) {
  animation-delay: 0.4s;
}

.verified-card:hover {
  border-color: #8b5cf6;
  box-shadow: 0 20px 50px rgba(139, 92, 246, 0.15);
}

.scalable-card:hover {
  border-color: #3b82f6;
  box-shadow: 0 20px 50px rgba(59, 130, 246, 0.15);
}

.continuous-card:hover {
  border-color: #10b981;
  box-shadow: 0 20px 50px rgba(16, 185, 129, 0.15);
}

.transparent-card:hover {
  border-color: #f59e0b;
  box-shadow: 0 20px 50px rgba(245, 158, 11, 0.15);
}

.card-icon-wrapper {
  flex-shrink: 0;
}

.card-icon {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  position: relative;
  transition: all 0.4s ease;
}

.verified-card .card-icon {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(139, 92, 246, 0.05) 100%);
  border: 2px solid rgba(139, 92, 246, 0.2);
}

.scalable-card .card-icon {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(59, 130, 246, 0.05) 100%);
  border: 2px solid rgba(59, 130, 246, 0.2);
}

.continuous-card .card-icon {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
  border: 2px solid rgba(16, 185, 129, 0.2);
}

.transparent-card .card-icon {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(245, 158, 11, 0.05) 100%);
  border: 2px solid rgba(245, 158, 11, 0.2);
}

.card-icon i {
  font-size: 32px;
}

.verified-card .card-icon i {
  color: #8b5cf6;
}

.scalable-card .card-icon i {
  color: #3b82f6;
}

.continuous-card .card-icon i {
  color: #10b981;
}

.transparent-card .card-icon i {
  color: #f59e0b;
}

.architecture-card:hover .card-icon {
  transform: scale(1.1) rotate(5deg);
}

.card-content {
  flex: 1;
}

.system-architecture .card-content {
  padding: 0;
  display: unset;
  background: unset;
}

.card-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 10px;
  width: max-content;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
  transition: all 0.3s ease;
}

.verified-card .card-badge {
  background: rgba(139, 92, 246, 0.1);
  color: #8b5cf6;
}

.scalable-card .card-badge {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.continuous-card .card-badge {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.transparent-card .card-badge {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.card-title {
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 12px;
  line-height: 1.3;
}

.card-description {
  font-size: 15px;
  line-height: 1.7;
  color: #64748b;
  margin: 0;
}

.system-architecture .card-description {
  font-size: 15px !important;
  line-height: 1.7 !important;
  color: #64748b !important;
  margin: 0 !important;
}

/* ===========================
   ANIMATIONS
   =========================== */

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ===========================
   RESPONSIVE STYLES
   =========================== */

/* Tablet Styles */
@media (max-width: 1024px) {
  .meridian-solution {
    padding: 80px 0;
  }

  .solution-wrapper {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .solution-left {
    position: relative;
    top: 0;
  }

  .solution-main-title {
    font-size: 40px;
  }

  .solution-stats {
    grid-template-columns: 1fr;
  }

  .architecture-card {
    padding: 28px;
  }
}

/* Mobile Styles */
@media (max-width: 768px) {
  .meridian-solution {
    padding: 60px 0;
  }

  .solution-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .solution-left {
    position: relative;
    top: 0;
  }

  .solution-main-title {
    font-size: 32px;
  }

  .solution-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .solution-stats {
    gap: 16px;
  }

  .solution-stat-item {
    padding: 16px;
  }

  .stat-icon {
    width: 50px;
    height: 50px;
  }

  .stat-icon i {
    font-size: 20px;
  }

  .stat-value {
    font-size: 24px;
  }

  .stat-value-sentinel {
    font-size: 24px;
  }

  .stat-label {
    font-size: 12px;
  }

  .stat-label-sentinel {
    font-size: 12px;
  }

  .architecture-card {
    flex-direction: column;
    padding: 24px;
    gap: 20px;
  }

  .card-icon {
    width: 60px;
    height: 60px;
  }

  .card-icon i {
    font-size: 28px;
  }

  .card-title {
    font-size: 20px;
  }

  .card-description {
    font-size: 14px;
  }
}


