/* Global Styles */
.solutions-page {
  font-family: "Poppins", sans-serif;
  background-color: #f8f9fa;
  color: #333;
  overflow-x: hidden;
}

/* Hero Section */
.hero-solutions {
  position: relative;
  background: linear-gradient(135deg, #000 0%, #1a0a3e 100%);
  color: white;
  padding: 140px 0 100px;
  text-align: center;
  overflow: hidden;
}

.hero-solutions::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(
    rgba(139, 92, 246, 0.1) 1px,
    transparent 1px
  );
  background-size: 30px 30px;
  opacity: 0.3;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  background: linear-gradient(90deg, #fff, #a0c4ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInDown 1s ease-out;
}

.hero-subtitle {
  font-size: 1.25rem;
  font-weight: 300;
  opacity: 0.9;
  line-height: 1.6;
  animation: fadeInUp 1s ease-out 0.3s forwards;
  opacity: 0;
}

/* 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);
  }
}

/* Projects Grid */
.solutions-grid-section {
  padding: 80px 0;
  background: #fff;
}

.solutions-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

/* Project Card */
.solution-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(51, 12, 179, 0.15);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    box-shadow 0.4s ease;
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
}

.solution-card:hover {
  transform: translateY(-10px);
}

.card-header {
  position: relative;
  height: 250px;
  background: #f9f9fc !important;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 20px;
}

.card-bg-decoration {
  display: none;
}

.project-logo {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Ensures logo is fully visible but fills available space */
  z-index: 2;
  transition: transform 0.5s ease;
}

.solution-card:hover .project-logo {
  transform: scale(1.05);
}

.card-body {
  padding: 30px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.project-category {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #3b82f6;
  font-weight: 600;
  margin-bottom: 10px;
}

.project-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 15px;
}

.project-description {
  font-size: 1rem;
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.project-features {
  list-style: none;
  padding: 0;
  margin-bottom: 25px;
  flex-grow: 1;
}

.project-features li {
  font-size: 0.9rem;
  color: #4b5563;
  margin-bottom: 8px;
  padding-left: 20px;
  position: relative;
}

.project-features li::before {
  content: "•";
  color: #3b82f6;
  font-weight: bold;
  position: absolute;
  left: 0;
}

.project-features li strong {
  color: #1f2937;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 25px;
}

.tech-tag {
  background: #eef2ff;
  color: #4f46e5;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.card-footer {
  margin-top: auto;
}

.btn-solution {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 24px;
  background: linear-gradient(90deg, #1e3a8a, #3b82f6);
  color: white;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-solution:hover {
  background: linear-gradient(90deg, #1e40af, #2563eb);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.btn-solution span {
  position: relative;
  z-index: 2;
}

.btn-icon {
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.btn-solution:hover .btn-icon {
  transform: translateX(5px);
}

/* Powac Country Links */
.powac-links-header {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 12px;
}

.powac-links-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.powac-country-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: #f3f4f6;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 10px;
  color: #1f2937;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.country-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.country-flag {
  width: 24px;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.powac-country-link:hover {
  background: #eef2ff;
  border-color: #3b82f6;
  color: #3b82f6;
  transform: translateX(5px);
}

/* Accent Animations */
.accent-animate {
  display: inline-block;
  color: #330cb3;
  font-weight: 700;
  animation: heartbeat-color 2s ease-in-out infinite;
  text-shadow: 0 0 10px rgba(51, 12, 179, 0);
  transition: text-shadow 0.3s ease;
}

@keyframes heartbeat-color {
  0%,
  100% {
    transform: scale(1);
    color: #330cb3;
    text-shadow: 0 0 10px rgba(51, 12, 179, 0);
  }
  15% {
    transform: scale(1.05);
    color: #4f46e5;
    text-shadow: 0 0 15px rgba(51, 12, 179, 0.3);
  }
  30% {
    transform: scale(1);
    color: #330cb3;
  }
  45% {
    transform: scale(1.05);
    color: #4f46e5;
    text-shadow: 0 0 15px rgba(51, 12, 179, 0.3);
  }
}

.powac-country-link .btn-icon {
  opacity: 0.5;
  transition: all 0.3s ease;
}

.powac-country-link:hover .btn-icon {
  opacity: 1;
  transform: translateX(3px);
}

/* Responsive */
@media (max-width: 768px) {
  .hero-solutions {
    padding: 85px 0 50px;
  }
  .hero-title {
    font-size: 2.5rem;
  }

  .solutions-grid {
    grid-template-columns: 1fr;
  }
}
