@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300,400,500,600,700&family=Manrope:wght@400,500,600,700,800&display=swap");

/* Enhanced modern color palette with better contrast */
:root {
  --primary-purple: #6366f1;
  /* Modern indigo-purple */
  --primary-purple-light: #818cf8;
  --primary-purple-dark: #4f46e5;
  --secondary-green: #10b981;
  /* Modern emerald green */
  --secondary-green-light: #34d399;
  --secondary-green-dark: #059669;
  --accent-blue: #3b82f6;
  /* Modern blue */
  --accent-orange: #f59e0b;
  /* Warm accent color */
  --text-dark: #1f2937;
  /* Darker, more readable */
  --text-medium: #374151;
  --text-light: #6b7280;
  --text-lighter: #9ca3af;
  --bg-light: #f9fafb;
  --bg-white: #ffffff;
  --border-light: #e5e7eb;
  --border-medium: #d1d5db;
  --shadow-light: rgba(0, 0, 0, 0.05);
  --shadow-medium: rgba(0, 0, 0, 0.1);
  --shadow-heavy: rgba(0, 0, 0, 0.25);
  --box-bg-light: #fefefe;
  --gradient-primary: linear-gradient(
    135deg,
    var(--primary-purple) 0%,
    var(--primary-purple-light) 100%
  );
  --gradient-secondary: linear-gradient(
    135deg,
    var(--secondary-green) 0%,
    var(--secondary-green-light) 100%
  );
}

/* Smooth scrolling and better base styles */
html {
  scroll-behavior: smooth;
}

.services-portfolio-wrapper {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.7;
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
  color: var(--text-dark);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Enhanced Magnific Popup styles */
.mfp-ready.mfp-bg {
  opacity: 0.99 !important;
  backdrop-filter: blur(4px);
}

.mfp-wrap .mfp-arrow {
  position: fixed !important;
  z-index: 1046;
}

/* Main container with enhanced styling */
.services-portfolio-wrapper .portfolio-container {
  max-width: 1024px;
  margin: 60px auto;
  padding: 60px;
  background: var(--bg-white);
  border-radius: 20px;
  box-shadow:
    0 20px 50px var(--shadow-light),
    0 0 0 1px rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

/* Add subtle background pattern */
.services-portfolio-wrapper .portfolio-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.03) 0%, rgba(129, 140, 248, 0.05) 100%);
  z-index: -1;
}

/* Enhanced typography hierarchy */
.services-portfolio-wrapper h1 {
  font-family: "Manrope", sans-serif;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
  margin-bottom: 24px;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.services-portfolio-wrapper .subheadline {
  font-size: 1.25rem;
  color: var(--text-medium);
  text-align: center;
  margin-bottom: 50px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  font-weight: 400;
}

.services-portfolio-wrapper h2 {
  font-family: "Manrope", sans-serif;
  color: var(--text-dark);
  margin-top: 80px;
  margin-bottom: 32px;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  text-align: center;
  position: relative;
  letter-spacing: -0.01em;
}

/* Modern underline effect for h2 */
.services-portfolio-wrapper h2::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.services-portfolio-wrapper h3 {
  font-family: "Manrope", sans-serif;
  color: var(--text-dark);
  margin-top: 32px;
  margin-bottom: 16px;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.services-portfolio-wrapper p {
  margin-bottom: 24px;
  font-weight: 400;
  color: var(--text-medium);
  line-height: 1.7;
  font-size: 1.0625rem;
}

/* Enhanced list styles with better icons */
.services-portfolio-wrapper ul {
  list-style-type: none;
  margin-left: 0;
  padding-left: 0;
  margin-bottom: 32px;
}

.services-portfolio-wrapper ul li {
  margin-bottom: 16px;
  font-weight: 400;
  color: var(--text-medium);
  position: relative;
  padding-left: 36px;
  line-height: 1.7;
  font-size: 1.0625rem;
}

.services-portfolio-wrapper ul li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 2px;
  color: var(--secondary-green);
  font-weight: 900;
  font-size: 1.1em;
  width: 20px;
  height: 20px;
  background: rgba(16, 185, 129, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
}

.services-portfolio-wrapper strong {
  color: var(--primary-purple);
  font-weight: 600;
}

/* Enhanced highlight box */
.services-portfolio-wrapper .portfolio-highlight {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(129, 140, 248, 0.12) 100%);
  padding: 32px;
  border-left: 5px solid var(--primary-purple);
  margin: 40px 0;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.08);
  font-size: 1.125rem;
  line-height: 1.7;
  position: relative;
  overflow: hidden;
}

.services-portfolio-wrapper .portfolio-highlight::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

/* Enhanced info box */
.info-box {
  background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
  border-left: 5px solid var(--secondary-green);
  padding: 32px;
  margin: 40px 0;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.08);
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-dark);
  position: relative;
  overflow: hidden;
}

.info-box::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.info-box p {
  margin-bottom: 0;
  text-align: left;
}

/* Modern section divider */
.section-divider {
  border: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border-medium), transparent);
  margin: 80px 0;
  position: relative;
}

.section-divider::after {
  content: "";
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 5px;
  background: var(--gradient-primary);
  border-radius: 3px;
}

/* Enhanced animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in.appear {
  opacity: 1;
  transform: translateY(0);
}

/* Enhanced benefits grid */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin: 60px 0;
}

.benefit-box {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 40px 32px;
  box-shadow: 0 4px 6px var(--shadow-light);
  text-align: center;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}

.benefit-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.benefit-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px var(--shadow-medium);
  border-color: var(--primary-purple-light);
}

.benefit-box:hover::before {
  transform: scaleX(1);
}

.benefit-box .icon {
  color: var(--primary-purple);
  margin-right: 12px;
  font-size: 1.25em;
}

.benefit-box h3 {
  color: var(--text-dark);
  font-size: 1.25rem;
  margin: 20px 0 16px 0;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.benefit-box p {
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 0;
}

/* Enhanced floating button */
#floating-get-started-button {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 1000;
  text-align: center;
}

#floating-get-started-button a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  font-family: "Manrope", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  color: #ffffff;
  background: var(--gradient-secondary);
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: 2px solid transparent;
}

#floating-get-started-button a:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 35px rgba(16, 185, 129, 0.4);
  background: var(--secondary-green-dark);
}

#floating-get-started-button a:active {
  transform: translateY(-1px) scale(0.98);
}

/* Enhanced column layout */
.column-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  margin-top: 40px;
}

.column-box {
  background: linear-gradient(135deg, #fafbff 0%, #f8fafc 100%);
  padding: 32px;
  border-radius: 16px;
  box-shadow: 0 4px 6px var(--shadow-light);
  border: 1px solid var(--border-light);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}

.column-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.column-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px var(--shadow-medium);
}

.column-box:hover::before {
  transform: scaleX(1);
}

.column-box h3 {
  margin-top: 0;
  color: var(--primary-purple);
  font-weight: 600;
  font-size: 1.25rem;
  margin-bottom: 16px;
}

.column-box p {
  margin-bottom: 0;
  color: var(--text-medium);
}

/* Enhanced micro CTA */
.micro-cta {
  text-align: center;
  margin-top: 40px;
  padding: 24px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(129, 140, 248, 0.08) 100%);
  border-radius: 12px;
  border: 1px solid rgba(99, 102, 241, 0.1);
}

.micro-cta a {
  color: var(--primary-purple);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.125rem;
  position: relative;
  transition: all 0.3s ease;
}

.micro-cta a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.micro-cta a:hover::after {
  transform: scaleX(1);
}

/* Enhanced ordered list */
.services-portfolio-wrapper ol {
  list-style-type: none;
  padding-left: 0;
  margin-bottom: 32px;
  counter-reset: list-counter;
}

.services-portfolio-wrapper ol li {
  margin-bottom: 24px;
  font-size: 1.0625rem;
  color: var(--text-medium);
  position: relative;
  padding-left: 60px;
  line-height: 1.7;
  counter-increment: list-counter;
}

.services-portfolio-wrapper ol li::before {
  content: counter(list-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 36px;
  height: 36px;
  background: var(--gradient-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
}

/* Enhanced FAQ section */
.faq-section {
  margin-top: 80px;
}

.faq-item {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 0;
  margin-bottom: 16px;
  box-shadow: 0 2px 4px var(--shadow-light);
  transition: all 0.3s ease;
  overflow: hidden;
}

.faq-item:hover {
  box-shadow: 0 8px 25px var(--shadow-medium);
  border-color: var(--primary-purple-light);
}

.faq-item h3 {
  color: var(--text-dark);
  font-size: 1.125rem;
  margin: 0;
  font-weight: 600;
  cursor: pointer;
  padding: 24px 32px;
  position: relative;
  transition: all 0.3s ease;
  background: linear-gradient(135deg, transparent 0%, rgba(99, 102, 241, 0.02) 100%);
}

.faq-item h3::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 300;
  position: absolute;
  right: 32px;
  top: 50%;
  transform: translateY(-50%);
  transition: all 0.3s ease;
  color: var(--primary-purple);
}

.faq-item.active h3 {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(129, 140, 248, 0.08) 100%);
  color: var(--primary-purple);
}

.faq-item.active h3::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq-item p {
  color: var(--text-medium);
  font-size: 1rem;
  line-height: 1.7;
  margin: 0;
  padding: 0 32px 24px 32px;
  display: none;
  border-top: 1px solid var(--border-light);
  animation: fadeInDown 0.3s ease;
}

.faq-item.active p {
  display: block;
}

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

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

/* Enhanced responsive design */
@media (max-width: 1024px) {
  .services-portfolio-wrapper .portfolio-container {
    margin: 40px 20px;
    padding: 40px;
  }

  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .column-container {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .services-portfolio-wrapper .portfolio-container {
    margin: 20px 16px;
    padding: 32px 24px;
  }

  .services-portfolio-wrapper h1 {
    font-size: 2.25rem;
    margin-bottom: 20px;
  }

  .services-portfolio-wrapper h2 {
    font-size: 1.75rem;
    margin-top: 60px;
    margin-bottom: 24px;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 40px 0;
  }

  .benefit-box {
    padding: 32px 24px;
  }

  #floating-get-started-button {
    bottom: 20px;
    right: 20px;
  }

  #floating-get-started-button a {
    padding: 14px 24px;
    font-size: 0.9375rem;
  }

  .faq-item h3 {
    padding: 20px 24px;
    font-size: 1rem;
  }

  .faq-item h3::after {
    right: 24px;
  }

  .faq-item p {
    padding: 0 24px 20px 24px;
  }
}

@media (max-width: 480px) {
  .services-portfolio-wrapper .portfolio-container {
    padding: 24px 16px;
  }

  .services-portfolio-wrapper h1 {
    font-size: 2rem;
  }

  .services-portfolio-wrapper .subheadline {
    font-size: 1.125rem;
  }

  .services-portfolio-wrapper ol li {
    padding-left: 50px;
  }

  .services-portfolio-wrapper ol li::before {
    width: 32px;
    height: 32px;
  }
}

/* portfolio title */

.wppap-pop-other-content .wppap-popup-portfolio-title {
  /* Positioning */
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 1000 !important;

  /* Size and spacing */
  font-size: clamp(1.5rem, 4vw, 2.5rem) !important;
  font-weight: 700 !important;
  text-transform: capitalize !important;
  line-height: 1.2 !important;
  padding: 1rem 1.5rem !important;
  margin: 0 !important;
  text-align: center !important;

  /* Background and visual effects */
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(30, 30, 30, 0.9) 100%
  ) !important;
  backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 12px !important;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.05) !important;

  /* Text styling */
  color: #ffffff !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5) !important;

  /* Animation and transitions */
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  animation: slideInFromTop 0.6s ease-out !important;
}

/* Hover effects */
.wppap-pop-other-content .wppap-popup-portfolio-title:hover {
  transform: translateY(-2px) !important;
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.1) !important;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.9) 0%,
    rgba(40, 40, 40, 0.95) 100%
  ) !important;
}

/* Slide in animation */
@keyframes slideInFromTop {
  0% {
    opacity: 0;
    transform: translateY(-30px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive breakpoints */
@media (max-width: 768px) {
  .wppap-pop-other-content .wppap-popup-portfolio-title {
    padding: 0.75rem 1rem !important;
    font-size: clamp(1.2rem, 5vw, 1.8rem) !important;
  }
}

@media (max-width: 480px) {
  .wppap-pop-other-content .wppap-popup-portfolio-title {
    padding: 0.5rem 0.75rem !important;
    border-radius: 0 !important;
    font-size: clamp(1rem, 6vw, 1.5rem) !important;
  }
}

/* Optional: Add a subtle pulse effect */
.wppap-pop-other-content .wppap-popup-portfolio-title::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.wppap-pop-other-content .wppap-popup-portfolio-title:hover::before {
  opacity: 1 !important;
}
