/* Solutions Page - Exact Design Match */

/* Ensure Alexandria font is loaded */
@import url('https://fonts.googleapis.com/css2?family=Alexandria:wght@400;500;600;700&display=swap');

/* Main page container */
.solutions-container {
  background: white;
  min-height: 100vh;
  position: relative;
  padding: 0;
  overflow-x: hidden;
}

/* Ensure proper positioning and visibility */
.solutions-main {
  width: 1128px;
  position: absolute;
  left: 50%;
  top: calc(50% + 75px); /* 150px header / 2 = 75px offset */
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 32px;
}

/* Services row */
.services-row {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Service cards */
.service-card-secondary {
  width: 376px;
  height: 581px;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
  background-size: cover;
  background-position: center;
  filter: saturate(0%);
  opacity: 0.6;
  transform: scale(0.9) translateY(10px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.service-card-secondary:hover {
  transform: scale(0.95) translateY(5px);
  opacity: 0.8;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  filter: saturate(20%);
}

.service-card-secondary[style*="cursor: pointer"]:hover {
  transform: scale(0.98) translateY(2px);
  opacity: 0.9;
  filter: saturate(30%);
}

.service-card-primary {
  width: 376px;
  height: 581px;
  padding: 30px 18px;
  border-left: 0.30px solid black;
  border-right: 0.30px solid black;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
  background-size: cover;
  background-position: center;
  transform: scale(1) translateY(0px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border-radius: 16px;
  box-shadow: 0 0px 10px rgba(0, 0, 0, 0.055);
  z-index: 2;
  position: relative;
}

.service-card-primary:hover {
  transform: scale(1.02) translateY(-5px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

/* Content containers */
.service-content-secondary {
  width: 314px;
  height: 79px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 8px;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  opacity: 0.8;
}

.service-content-primary {
  width: 320px;
  min-height: 79px;
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 8px;
  transform: translateY(0px);
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  opacity: 1;
}

/* Typography */
.service-title-secondary {
  width: 100%;
  min-height: 2rem;
  color: rgb(0, 0, 0);
  font-size: 13px;
  font-family: 'Alexandria', sans-serif;
  text-align: center;
  font-weight: 700;
  line-height: 26px;
  word-wrap: break-word;
  transition: all 0.4s ease-in-out;
  transform: translateY(10px);
  opacity: 0.7;
}

.service-desc-secondary {
  padding: 15px;
  width: 100%;
  color: rgb(0, 0, 0);
  font-size: 10px;
  font-family: 'Alexandria', sans-serif;
  text-align: center;
  font-weight: 500;
  line-height: 1.5rem;
  word-wrap: break-word;
}

.service-title-primary {
  width: 100%;
  min-height: 26px;
  height: auto;
  color: rgb(0, 0, 0);
  font-size: 15px;
  font-family: 'Alexandria', sans-serif;
  text-align: center;
  font-weight: 700;
  line-height: 1.4;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  transition: all 0.4s ease-in-out;
  transform: translateY(0px);
  opacity: 1;
}

.service-desc-primary {
  padding: 10px;
  width: 100%;
  height: 78px;
  color: rgb(0, 0, 0);
  font-size: 0.8rem;
  font-family: 'Alexandria', sans-serif;
  text-align: center;
  font-weight: 500;
  line-height: 1.5rem;
  word-wrap: break-word;
}

/* Navigation arrows */
.nav-arrows {
  direction: ltr !important;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 440px;
}

.nav-arrow {
  padding: 8px;
  background: #F6F6F6;
  border-radius: 99px;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform: scale(1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.nav-arrow:hover {
  background: #e5e5e5;
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.nav-arrow:active {
  transform: scale(0.95);
  transition: all 0.1s ease;
}

.nav-arrow-icon {
  width: 24px;
  height: 24px;
  position: relative;
  overflow: hidden;
}

/* Keyframe Animations */
@keyframes slideInFromLeft {
  0% {
    transform: translateX(-100px) scale(0.8);
    opacity: 0;
  }
  100% {
    transform: translateX(0) scale(0.9);
    opacity: 0.6;
  }
}

@keyframes slideInFromRight {
  0% {
    transform: translateX(100px) scale(0.8);
    opacity: 0;
  }
  100% {
    transform: translateX(0) scale(0.9);
    opacity: 0.6;
  }
}

@keyframes slideInCenter {
  0% {
    transform: translateY(50px) scale(0.8);
    opacity: 0;
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
  }
  50% {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  }
}

/* Animation classes for JavaScript */
.slide-in-left {
  animation: slideInFromLeft 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.slide-in-right {
  animation: slideInFromRight 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.slide-in-center {
  animation: slideInCenter 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.pulse-glow {
  animation: pulseGlow 2s ease-in-out infinite;
}

/* Responsive Design */
@media (max-width: 1440px) {
  .solutions-main {
    width: calc(100vw - 312px);
  }
}

@media (max-width: 1200px) {
  .solutions-main {
    width: calc(100vw - 200px);
  }
  
  .nav-arrows {
    gap: 300px;
  }
}

@media (max-width: 1024px) {
  .solutions-main {
    width: calc(100vw - 80px);
    top: calc(50% + 28px); /* 56px header / 2 = 28px offset */
  }
  
  .service-card-secondary, .service-card-primary {
    width: calc(33.333% - 10px);
    height: 400px;
  }
  
  .nav-arrows {
    gap: 200px;
  }
}


/* Pagination Dots */
.pagination-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: -65px;
  width: 100%;
  padding: 10px 0;
}

.pagination-dots .dot {
  width: 8px;
  height: 8px;
  background: #D9D9D9;
  border-radius: 99px;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.pagination-dots .dot:hover {
  background: #b3b3b3;
  transform: scale(1.2);
}

.pagination-dots .dot.active {
  width: 24px;
  background: #0FA304;
  transform: scale(1.1);
  box-shadow: 0 2px 4px rgba(15, 163, 4, 0.3);
}


/* Mobile view - Show only one service card */
@media (max-width: 768px) {
  .solutions-main {
    width: calc(100vw - 40px);
    top: calc(50% + 20px);
    gap: 24px;
  }
  
  .services-row {
    justify-content: center;
  }
  
  /* Hide secondary cards on mobile */
  .service-card-secondary {
    display: none !important;
  }
  
  /* Show only primary card centered */
  .service-card-primary {
    width: 100%;
    max-width: 350px;
    height: 500px;
    margin: 0 auto;
    transform: scale(1) translateY(0px);
    border-left: none;
    border-right: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  }
  
  .service-content-primary {
    width: 90%;
    padding: 0 10px;
  }
  
  .service-title-primary {
    font-size: 16px;
    line-height: 1.3;
    margin-bottom: 8px;
  }
  
  .service-desc-primary {
    font-size: 0.85rem;
    line-height: 1.4;
    height: auto;
    min-height: 60px;
  }
  
  /* Adjust navigation arrows for mobile */
  .nav-arrows {
    gap: 100px;
    margin-top: 20px;
  }
  
  .nav-arrow {
    padding: 12px;
    background: #F6F6F6;
    border-radius: 50%;
  }
  
  .nav-arrow-icon {
    width: 20px;
    height: 20px;
  }
  
  /* Adjust pagination dots for mobile */
  .pagination-dots {
    margin-top: -40px;
    gap: 6px;
  }
  
  .nav-arrows {
    gap: 50vw;
}

  .pagination-dots .dot {
    width: 6px;
    height: 6px;
  }
  
  .pagination-dots .dot.active {
    width: 18px;
  }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
  .solutions-main {
    width: calc(100vw - 20px);
    top: calc(50% + 15px);
    gap: 20px;
  }
  
  .service-card-primary {
    max-width: 320px;
    height: 450px;
    padding: 25px 15px;
  }
  
  .nav-arrows {
    gap: 50vw;
}

  .service-content-primary {
    width: 95%;
  }
  
  .service-title-primary {
    font-size: 15px;
  }
  
  .service-desc-primary {
    font-size: 0.8rem;
    padding: 8px;
  }
  
  .nav-arrow {
    padding: 10px;
  }
  
  .nav-arrow-icon {
    width: 18px;
    height: 18px;
  }

  .pagination-dots {
    margin-top: -50px;
  }

}
