/* =====================================================
   KYNGSLY TECHNOLOGIES - UNIFIED SERVICES & PRICING
   With Smooth Dropdown Animations
   ===================================================== */

/* =====================================================
   SERVICES EXPLORER SECTION
   ===================================================== */
.services-explorer-section {
  position: relative;
  padding: 5rem 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);  /* 2 columns on desktop */
  gap: 2rem;
  margin-top: 3rem;
}

/* =====================================================
   SERVICE TYPE CARDS - Round Icons
   ===================================================== */
.service-type-card {
  background: #FFFFFF;
  border-radius: 20px;
  padding: 2.5rem 2rem;
  box-shadow: 0 4px 20px rgba(26, 26, 46, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  opacity: 0;
  transform: translateY(30px);
  animation: cardFadeIn 0.6s ease forwards;
  text-align: center;
}

.service-type-card:nth-child(1) { animation-delay: 0.1s; }
.service-type-card:nth-child(2) { animation-delay: 0.2s; }
.service-type-card:nth-child(3) { animation-delay: 0.3s; }
.service-type-card:nth-child(4) { animation-delay: 0.4s; }
.service-type-card:nth-child(5) { animation-delay: 0.5s; }
.service-type-card:nth-child(6) { animation-delay: 0.6s; }
.service-type-card:nth-child(7) { animation-delay: 0.7s; }
.service-type-card:nth-child(8) { animation-delay: 0.8s; }
.service-type-card:nth-child(9) { animation-delay: 0.9s; }

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

.service-type-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.05) 0%, rgba(247, 147, 30, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: 20px;
}

.service-type-card:hover::before {
  opacity: 1;
}

.service-type-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(255, 107, 53, 0.15);
  border-color: #FF6B35;
}

/* Expanded state */
.service-type-card.expanded {
  box-shadow: 0 20px 60px rgba(255, 107, 53, 0.2);
  border-color: #FF6B35;
}

/* Round Icon - Subtle Hover */
.service-card-icon {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(247, 147, 30, 0.1) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.75rem;
  color: #FF6B35;
  margin: 0 auto 1.5rem;
  transition: all 0.3s ease;
  position: relative;
}

/* Subtle hover - just a gentle lift and glow */
.service-type-card:hover .service-card-icon {
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.15) 0%, rgba(247, 147, 30, 0.15) 100%);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.2);
}

/* Text */
.service-card-title {
  font-size: 1.5rem;
  color: #1a1a2e;
  margin-bottom: 0.75rem;
  font-weight: 700;
  transition: color 0.3s ease;
}

.service-type-card:hover .service-card-title {
  color: #FF6B35;
}

.service-card-description {
  font-size: 1rem;
  color: #5a5a5a;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  min-height: 3rem;
}

.service-card-badge {
  display: inline-block;
  background: rgba(255, 107, 53, 0.1);
  color: #FF6B35;
  padding: 0.5rem 1.25rem;
  border-radius: 30px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.service-type-card:hover .service-card-badge {
  background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
  color: #FFFFFF;
  transform: scale(1.05);
}

/* View Details Button */
.service-card-btn {
  width: 100%;
  padding: 0.875rem 1.5rem;
  background: transparent;
  border: 2px solid #E2E8F0;
  color: #5a5a5a;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.service-card-btn i {
  transition: transform 0.3s ease;
}

.service-type-card:hover .service-card-btn {
  background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
  border-color: #FF6B35;
  color: #FFFFFF;
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.3);
}

.service-type-card.expanded .service-card-btn {
  background: #1a1a2e;
  border-color: #1a1a2e;
  color: #FFFFFF;
}

.service-type-card.expanded .service-card-btn i {
  transform: rotate(180deg);
}

/* =====================================================
   DROPDOWN DETAILS SECTION - SMOOTH ANIMATION
   ===================================================== */
.service-details {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1), 
              opacity 0.4s ease,
              margin-top 0.4s ease;
  margin-top: 0;
}

.service-type-card.expanded .service-details {
  max-height: 3000px;
  opacity: 1;
  margin-top: 2rem;
}

.service-details-content {
  padding: 2rem;
  background: #F8F9FA;
  border-radius: 15px;
  text-align: left;
}

/* Pricing Tiers */
.pricing-tiers {
  margin-bottom: 2rem;
}

.pricing-tiers h4 {
  font-size: 1.25rem;
  color: #1a1a2e;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pricing-tiers h4 i {
  color: #FF6B35;
}

.tier-list {
  display: grid;
  gap: 1rem;
}

.tier-item {
  background: #FFFFFF;
  padding: 1.25rem;
  border-radius: 10px;
  border: 2px solid #E2E8F0;
  transition: all 0.3s ease;
  position: relative;
}

.tier-item:hover {
  border-color: #FF6B35;
  transform: translateX(5px);
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.1);
}

.tier-popular {
  border-color: #FF6B35;
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.05) 0%, rgba(247, 147, 30, 0.05) 100%);
}

.tier-badge {
  position: absolute;
  top: -10px;
  right: 15px;
  background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
  color: #FFFFFF;
  padding: 0.35rem 0.875rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.tier-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.tier-header strong {
  font-size: 1.125rem;
  color: #1a1a2e;
}

.tier-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: #FF6B35;
}

.tier-item p {
  color: #5a5a5a;
  font-size: 0.9375rem;
  line-height: 1.6;
  margin: 0;
}

/* Features Section */
.features-section {
  margin-bottom: 2rem;
}

.features-section h4 {
  font-size: 1.25rem;
  color: #1a1a2e;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.features-section h4 i {
  color: #FF6B35;
}

.features-grid-inline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
}

.feature-item {
  padding: 0.65rem 1rem;
  background: #FFFFFF;
  border-radius: 8px;
  font-size: 0.9375rem;
  color: #5a5a5a;
  border-left: 3px solid #FF6B35;
  transition: all 0.3s ease;
}

.feature-item:hover {
  background: rgba(255, 107, 53, 0.05);
  transform: translateX(3px);
}

/* Tech Stack */
.tech-section {
  margin-bottom: 2rem;
}

.tech-section h4 {
  font-size: 1.25rem;
  color: #1a1a2e;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tech-section h4 i {
  color: #FF6B35;
}

.tech-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tech-badge {
  padding: 0.5rem 1rem;
  background: #FFFFFF;
  color: #FF6B35;
  border: 2px solid #FF6B35;
  border-radius: 30px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.tech-badge:hover {
  background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
  color: #FFFFFF;
  transform: translateY(-2px);
}

/* Timeline */
.timeline-section {
  margin-bottom: 2rem;
  padding: 1.25rem;
  background: #FFFFFF;
  border-radius: 10px;
  border-left: 4px solid #FF6B35;
}

.timeline-section h4 {
  font-size: 1.25rem;
  color: #1a1a2e;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.timeline-section h4 i {
  color: #FF6B35;
}

.timeline-section p {
  color: #5a5a5a;
  font-size: 1rem;
  margin: 0;
}

/* Details CTA */
.details-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.details-cta .btn {
  flex: 1;
  min-width: 200px;
  text-align: center;
}

/* =====================================================
   ADD-ONS SECTION
   ===================================================== */
.addons-section {
  padding: 5rem 0;
}

.addons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.addon-card {
  background: #FFFFFF;
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(26, 26, 46, 0.08);
  transition: all 0.3s ease;
  border-top: 3px solid #FF6B35;
}

.addon-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(26, 26, 46, 0.15);
}

.addon-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(247, 147, 30, 0.1) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: #FF6B35;
  margin: 0 auto 1.25rem;
  transition: all 0.3s ease;
}

.addon-card:hover .addon-icon {
  background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
  color: #FFFFFF;
  transform: scale(1.1);
}

.addon-card h4 {
  font-size: 1.25rem;
  color: #1a1a2e;
  margin-bottom: 0.75rem;
}

.addon-price {
  font-size: 1.375rem;
  font-weight: 700;
  color: #FF6B35;
  margin-bottom: 1rem;
}

.addon-card p {
  font-size: 0.9375rem;
  color: #5a5a5a;
  line-height: 1.6;
  margin: 0;
}

/* =====================================================
   PAYMENT OPTIONS SECTION
   ===================================================== */
.payment-section {
  padding: 5rem 0;
}

.payment-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.payment-option {
  background: #FFFFFF;
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(26, 26, 46, 0.08);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.payment-option:hover {
  border-color: #FF6B35;
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(255, 107, 53, 0.15);
}

.payment-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: #FFFFFF;
  margin: 0 auto 1.25rem;
}

.payment-option h4 {
  font-size: 1.25rem;
  color: #1a1a2e;
  margin-bottom: 1rem;
}

.payment-option p {
  font-size: 1rem;
  color: #5a5a5a;
  line-height: 1.6;
  margin: 0;
}

.payment-note {
  text-align: center;
  margin-top: 3rem;
  padding: 1.5rem;
  background: rgba(255, 107, 53, 0.05);
  border-radius: 10px;
  border-left: 4px solid #FF6B35;
}

.payment-note p {
  font-size: 1.0625rem;
  color: #1a1a2e;
  margin: 0;
}

.payment-note i {
  color: #FF6B35;
  margin-right: 0.5rem;
}

/* =====================================================
   FAQ SECTION
   ===================================================== */
.faq-section {
  padding: 5rem 0;
}

.faq-list {
  max-width: 900px;
  margin: 3rem auto 0;
}

.faq-item {
  background: #FFFFFF;
  border-radius: 10px;
  margin-bottom: 1rem;
  box-shadow: 0 2px 10px rgba(26, 26, 46, 0.05);
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 4px 20px rgba(26, 26, 46, 0.1);
}

.faq-question {
  width: 100%;
  padding: 1.5rem 2rem;
  background: none;
  border: none;
  text-align: left;
  font-size: 1.125rem;
  font-weight: 600;
  color: #1a1a2e;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.faq-question:hover {
  color: #FF6B35;
}

.faq-question i {
  color: #FF6B35;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              padding 0.4s ease;
  padding: 0 2rem;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 2rem 1.5rem;
}

.faq-answer p {
  font-size: 1rem;
  color: #5a5a5a;
  line-height: 1.75;
  margin: 0;
}

/* =====================================================
   CTA SECTION
   ===================================================== */
.cta-section {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, 30px) scale(1.05); }
}

.cta-content {
  text-align: center;
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
}

.cta-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.cta-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2.5rem;
  line-height: 1.75;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* =====================================================
   RESPONSIVE - TABLET (992px and below)
   ===================================================== */
@media (max-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .service-card-icon {
    width: 90px;
    height: 90px;
    font-size: 2.5rem;
  }

  .features-grid-inline {
    grid-template-columns: 1fr;
  }

  .details-cta {
    flex-direction: column;
  }

  .details-cta .btn {
    width: 100%;
  }
}

/* =====================================================
   RESPONSIVE - MOBILE (768px and below)
   ===================================================== */
@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .service-type-card {
    padding: 2rem 1.5rem;
  }

  .service-card-icon {
    width: 80px;
    height: 80px;
    font-size: 2.25rem;
  }

  .service-card-title {
    font-size: 1.375rem;
  }

  .service-card-description {
    font-size: 0.9375rem;
  }

  .service-details-content {
    padding: 1.5rem;
  }

  .pricing-tiers h4,
  .features-section h4,
  .tech-section h4,
  .timeline-section h4 {
    font-size: 1.125rem;
  }

  .tier-price {
    font-size: 1.25rem;
  }

  .addons-grid,
  .payment-options-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .cta-title {
    font-size: 1.75rem;
  }

  .cta-subtitle {
    font-size: 1rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-buttons .btn {
    width: 100%;
  }

  .faq-question {
    padding: 1.25rem 1.5rem;
    font-size: 1rem;
  }

  .faq-answer {
    padding: 0 1.5rem;
  }

  .faq-item.active .faq-answer {
    padding: 0 1.5rem 1.25rem;
  }
}

/* =====================================================
   RESPONSIVE - SMALL MOBILE (480px and below)
   ===================================================== */
@media (max-width: 480px) {
  .service-type-card {
    padding: 1.75rem 1.25rem;
  }

  .service-card-icon {
    width: 70px;
    height: 70px;
    font-size: 2rem;
  }

  .service-card-title {
    font-size: 1.25rem;
  }

  .service-card-btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.9375rem;
  }

  .service-details-content {
    padding: 1.25rem;
  }

  .tier-item {
    padding: 1rem;
  }

  .cta-title {
    font-size: 1.5rem;
  }

  .cta-subtitle {
    font-size: 0.9375rem;
  }
}

/* =====================================================
   ACCESSIBILITY
   ===================================================== */
@media (prefers-reduced-motion: reduce) {
  .service-type-card,
  .service-card-icon,
  .service-details,
  .faq-answer {
    transition: none !important;
    animation: none !important;
  }

  .service-type-card:hover .service-card-icon {
    transform: scale(1.1) !important;
  }
}