/**
 * MetaCortex Custom Styles
 * Uses design tokens from variables.css
 */
@import url('./variables.css');
@import url('./responsive.css');

/**
 * Unified pill badge: pale blue fill, #1E73E8 text + border (home hero reference).
 * Use class `mc-pill-badge` in markup, or rely on section tagline / hero-tagline classes below.
 */
.mc-pill-badge,
.hero-tagline,
.services-section-tagline,
.about-section-tagline,
.portfolio-section-tagline,
.ai-solutions-tagline,
.industries-section-tagline,
.tech-stack-section-tagline,
.process-section-tagline,
.why-choose-tagline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: fit-content;
  max-width: 100%;
  font-size: var(--font-size-tagline-mobile);
  letter-spacing: var(--badge-letter-spacing);
  text-transform: uppercase;
  font-weight: 700;
  color: var(--color-badge-text);
  background-color: var(--color-badge-bg);
  border: 1px solid var(--color-badge-border);
  border-radius: var(--badge-radius);
  padding: var(--badge-padding-y) var(--badge-padding-x);
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}
.services-section-tagline,
.about-section-tagline,
.portfolio-section-tagline,
.ai-solutions-tagline,
.industries-section-tagline,
.tech-stack-section-tagline,
.process-section-tagline,
.why-choose-tagline {
  margin-bottom: 0.75rem;
}
@media (min-width: 640px) {
  .mc-pill-badge,
  .hero-tagline,
  .services-section-tagline,
  .about-section-tagline,
  .portfolio-section-tagline,
  .ai-solutions-tagline,
  .industries-section-tagline,
  .tech-stack-section-tagline,
  .process-section-tagline,
  .why-choose-tagline {
    font-size: var(--font-size-tagline-desktop);
  }
}

.hero-h1 {
  font-size: var(--font-size-h1-mobile);
  font-weight: var(--font-weight-h1);
  line-height: var(--line-height-h1);
  color: var(--color-text-heading);
}
@media (min-width: 768px) {
  .hero-h1 {
    font-size: var(--font-size-h1-tablet);
  }
}
@media (min-width: 1024px) {
  .hero-h1 {
    font-size: var(--font-size-h1-desktop);
  }
}

.hero-desc-primary {
  font-size: var(--font-size-desc-mobile);
  font-weight: 400;
  line-height: var(--line-height-desc);
  color: var(--color-text-body);
  max-width: 620px;
}
@media (min-width: 640px) {
  .hero-desc-primary {
    font-size: var(--font-size-desc-desktop);
  }
}

.hero-desc-secondary {
  font-size: var(--font-size-secondary);
  line-height: var(--line-height-desc);
  color: var(--color-secondary-text);
}

.hero-btn-primary {
  font-size: var(--font-size-btn);
  font-weight: var(--font-weight-btn);
  padding: var(--btn-padding-y) var(--btn-padding-x);
  background: var(--color-primary);
  color: #FFFFFF;
  border-radius: 10px;
  border: none;
  transition: background 0.2s;
}
.hero-btn-primary:hover {
  background: var(--color-primary-hover);
}

.hero-btn-secondary {
  font-size: var(--font-size-btn);
  font-weight: var(--font-weight-btn);
  padding: var(--btn-padding-y) var(--btn-padding-x);
  background: transparent;
  color: var(--color-text-heading);
  border: 1px solid var(--color-border-light);
  border-radius: var(--btn-radius);
  transition: background 0.2s;
}
.hero-btn-secondary:hover {
  background: var(--color-card-bg);
}

/* Unify hero primary CTAs like "Start Your Project" across pages/devices */
.mc-start-project-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem !important;
  background: #1e73e8 !important;
  color: #ffffff !important;
  border: 1px solid #1e73e8 !important;
  border-radius: 0.75rem !important;
  font-weight: 700 !important;
  min-height: 3.5rem !important;
  padding: 0.875rem 2rem !important;
  font-size: 1.125rem !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
  box-shadow: 0 10px 24px rgba(30, 115, 232, 0.22) !important;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease !important;
}
.mc-start-project-btn:hover {
  background: #0f4dc7 !important;
  border-color: #0f4dc7 !important;
  box-shadow: 0 14px 28px rgba(30, 115, 232, 0.28) !important;
}
.mc-start-project-btn:active {
  transform: scale(0.98);
}
@media (max-width: 639px) {
  .mc-start-project-btn {
    min-height: 3.25rem !important;
    padding: 0.75rem 1.25rem !important;
    font-size: 1rem !important;
  }
}

.hero-gradient-text {
  color: var(--color-primary);
}

.hero-tech-title {
  font-size: var(--font-size-tech-title);
  letter-spacing: var(--letter-spacing-tech-title);
  text-transform: uppercase;
  color: var(--color-secondary-text);
  font-weight: 600;
}

/* Hero Trusted Technology Stack - individual cards per logo */
.hero-tech-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border-light);
  border-radius: 16px;
  padding: 1.25rem 0.75rem;
  transition: background 0.3s, border-color 0.3s;
}
.hero-tech-card:hover {
  background: white;
  border-color: rgba(30, 115, 232, 0.2);
}

.hero-tech-icon {
  width: var(--tech-icon-size);
  height: var(--tech-icon-size);
  border-radius: var(--tech-icon-radius);
  background: #F7F9FC;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-section {
  padding-top: 96px;
  padding-bottom: 64px;
}
@media (min-width: 1024px) {
  .hero-section {
    padding-top: var(--hero-padding-top);
    padding-bottom: var(--hero-padding-bottom);
  }
}

.hero-container {
  max-width: var(--hero-container-max);
  margin-left: auto;
  margin-right: auto;
}

/* Hero: more side white space - overridden in responsive.css for mobile */
.hero-container-wide {
  width: 92vw;
  max-width: 92vw;
  margin-left: auto;
  margin-right: auto;
}

/* Section container - matches hero width/spacing - overridden in responsive.css for mobile */
.section-container-wide {
  width: 92vw;
  max-width: min(1840px, 100%);
  margin-left: auto;
  margin-right: auto;
}

/* About MetaCortex section */
.about-section-title {
  font-size: var(--about-title-mobile);
  font-weight: 700;
  color: var(--color-text-heading);
  margin-bottom: 1.25rem;
}
@media (min-width: 768px) {
  .about-section-title {
    font-size: var(--about-title-tablet);
  }
}
@media (min-width: 1024px) {
  .about-section-title {
    font-size: var(--about-title-desktop);
  }
}

.about-desc {
  font-size: var(--about-desc-size);
  line-height: 1.6;
  color: var(--color-text-body);
  max-width: var(--about-desc-max-width);
  margin-bottom: 1.5rem;
}
.about-desc p {
  margin-bottom: 1rem;
}
.about-desc p:last-child {
  margin-bottom: 0;
}

.about-subtitle {
  font-size: var(--about-subtitle-size);
  font-weight: 600;
  color: var(--color-text-heading);
  margin-bottom: 1.25rem;
}

.about-cta-btn {
  font-size: var(--font-size-btn);
  font-weight: var(--font-weight-btn);
  padding: var(--btn-padding-y) var(--btn-padding-x);
  background: var(--color-primary);
  color: #FFFFFF;
  border-radius: 10px;
  border: none;
  transition: background 0.2s;
}
.about-cta-btn:hover {
  background: var(--color-primary-hover);
}

.about-services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem 1rem;
}

.about-service-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: var(--color-card-bg);
  border: 1px solid var(--color-border-light);
  color: var(--color-text-heading);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: transform 0.2s, background 0.2s, border-color 0.2s;
}
.about-service-item:hover {
  background: white;
  border-color: rgba(30, 115, 232, 0.2);
  transform: translateY(-2px);
}

.about-service-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 8px;
  background: var(--color-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: transform 0.2s;
}
.about-service-item:hover .about-service-icon {
  transform: scale(1.08);
}

/* About section scroll reveal */
.about-reveal-el {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
#about-metacortex.about-revealed .about-reveal-el {
  opacity: 1;
  transform: translateY(0);
}
#about-metacortex.about-revealed .about-text-content > *:nth-child(1) { transition-delay: 0s; }
#about-metacortex.about-revealed .about-text-content > *:nth-child(2) { transition-delay: 0.05s; }
#about-metacortex.about-revealed .about-text-content > *:nth-child(3) { transition-delay: 0.1s; }
#about-metacortex.about-revealed .about-text-content > *:nth-child(4) { transition-delay: 0.15s; }
#about-metacortex.about-revealed .about-services-column .about-subtitle { transition-delay: 0.1s; }
#about-metacortex.about-revealed .about-services-grid .about-service-item:nth-child(1) { transition-delay: 0.1s; }
#about-metacortex.about-revealed .about-services-grid .about-service-item:nth-child(2) { transition-delay: 0.2s; }
#about-metacortex.about-revealed .about-services-grid .about-service-item:nth-child(3) { transition-delay: 0.3s; }
#about-metacortex.about-revealed .about-services-grid .about-service-item:nth-child(4) { transition-delay: 0.4s; }
#about-metacortex.about-revealed .about-services-grid .about-service-item:nth-child(5) { transition-delay: 0.5s; }
#about-metacortex.about-revealed .about-services-grid .about-service-item:nth-child(6) { transition-delay: 0.6s; }
#about-metacortex.about-revealed .about-services-grid .about-service-item:nth-child(7) { transition-delay: 0.7s; }
#about-metacortex.about-revealed .about-services-grid .about-service-item:nth-child(8) { transition-delay: 0.8s; }
#about-metacortex.about-revealed .about-services-grid .about-service-item:nth-child(9) { transition-delay: 0.9s; }

/* Portfolio & Case Studies section */
.portfolio-section-title {
  font-size: var(--portfolio-title-mobile);
  font-weight: 700;
  color: var(--color-text-heading);
  margin-bottom: 1rem;
}
@media (min-width: 768px) {
  .portfolio-section-title {
    font-size: var(--portfolio-title-tablet);
  }
}
@media (min-width: 1024px) {
  .portfolio-section-title {
    font-size: var(--portfolio-title-desktop);
  }
}

.portfolio-section-subtitle {
  font-size: var(--portfolio-subtitle-size);
  line-height: var(--line-height-desc);
  color: var(--color-text-body);
  max-width: var(--portfolio-subtitle-max-width);
  margin-left: auto;
  margin-right: auto;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.portfolio-card {
  display: block;
  background: white;
  border-radius: var(--portfolio-card-radius);
  border: 1px solid var(--color-border-light);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.portfolio-card-image {
  aspect-ratio: 400 / 240;
  overflow: hidden;
  background: var(--color-card-bg);
}
.portfolio-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.portfolio-card:hover .portfolio-card-image img {
  transform: scale(1.03);
}

.portfolio-card-content {
  padding: 1.25rem 1.25rem 1.5rem;
}

.portfolio-industry-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-primary);
  background: var(--color-badge-bg);
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  margin-bottom: 0.75rem;
}

.portfolio-card-title {
  font-size: var(--portfolio-card-title);
  font-weight: 600;
  color: var(--color-text-heading);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.portfolio-card-desc {
  font-size: var(--portfolio-card-desc);
  line-height: 1.6;
  color: var(--color-text-body);
  margin-bottom: 0.75rem;
}

.portfolio-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}
.portfolio-tech-tags span {
  font-size: 12px;
  color: var(--color-secondary-text);
  background: var(--color-card-bg);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.portfolio-card-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
  transition: color 0.2s;
}
.portfolio-card:hover .portfolio-card-link {
  color: var(--color-primary-hover);
}

.portfolio-cta-btn {
  font-size: var(--font-size-btn);
  font-weight: var(--font-weight-btn);
  padding: var(--btn-padding-y) var(--btn-padding-x);
  background: linear-gradient(135deg, #1E73E8, #6A5CFF);
  color: #FFFFFF;
  border-radius: 10px;
  border: none;
  transition: background 0.2s, box-shadow 0.2s;
}
.portfolio-cta-btn:hover {
  background: linear-gradient(135deg, #0F4DC7, #5A4BFF);
  box-shadow: 0 4px 14px rgba(30, 115, 232, 0.35);
}

/* Why Choose MetaCortex section */
.why-choose-title {
  font-size: var(--why-choose-title-mobile);
  font-weight: 700;
  color: var(--color-text-heading);
  margin-bottom: 1.25rem;
}
@media (min-width: 768px) {
  .why-choose-title {
    font-size: var(--why-choose-title-tablet);
  }
}
@media (min-width: 1024px) {
  .why-choose-title {
    font-size: var(--why-choose-title-desktop);
  }
}

.why-choose-desc {
  font-size: var(--why-choose-desc-size);
  line-height: var(--line-height-desc);
  color: var(--color-text-body);
  max-width: var(--why-choose-desc-max-width);
}
.why-choose-desc p {
  margin-bottom: 1rem;
}
.why-choose-desc p:last-child {
  margin-bottom: 0;
}

.why-choose-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (max-width: 1023px) {
  .why-choose-cards-grid {
    grid-template-columns: 1fr;
  }
}

.why-choose-card {
  background: white;
  border-radius: var(--why-choose-card-radius);
  border: 1px solid var(--color-border-light);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  padding: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.why-choose-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.why-choose-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--color-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 1rem;
}

.why-choose-card-title {
  font-size: var(--why-choose-card-title);
  font-weight: 600;
  color: var(--color-text-heading);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.why-choose-card-desc {
  font-size: var(--why-choose-card-desc);
  line-height: 1.6;
  color: var(--color-text-body);
}

.why-choose-cta-btn {
  font-size: var(--font-size-btn);
  font-weight: var(--font-weight-btn);
  padding: var(--btn-padding-y) var(--btn-padding-x);
  background: linear-gradient(135deg, #1E73E8, #6A5CFF);
  color: #FFFFFF;
  border-radius: 10px;
  border: none;
  transition: background 0.2s, box-shadow 0.2s;
}
.why-choose-cta-btn:hover {
  background: linear-gradient(135deg, #0F4DC7, #5A4BFF);
  box-shadow: 0 4px 14px rgba(30, 115, 232, 0.35);
}

/* Why Choose MetaCortex scroll reveal */
.why-choose-reveal-el {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
#why-choose-metacortex.why-choose-revealed .why-choose-reveal-el {
  opacity: 1;
  transform: translateY(0);
}
#why-choose-metacortex.why-choose-revealed .why-choose-text .why-choose-reveal-el:nth-child(1) { transition-delay: 0s; }
#why-choose-metacortex.why-choose-revealed .why-choose-text .why-choose-reveal-el:nth-child(2) { transition-delay: 0.05s; }
#why-choose-metacortex.why-choose-revealed .why-choose-text .why-choose-reveal-el:nth-child(3) { transition-delay: 0.1s; }
#why-choose-metacortex.why-choose-revealed .why-choose-text .why-choose-reveal-el:nth-child(4) { transition-delay: 0.15s; }
#why-choose-metacortex.why-choose-revealed .why-choose-card:nth-child(1) { transition-delay: 0.1s; }
#why-choose-metacortex.why-choose-revealed .why-choose-card:nth-child(2) { transition-delay: 0.2s; }
#why-choose-metacortex.why-choose-revealed .why-choose-card:nth-child(3) { transition-delay: 0.3s; }
#why-choose-metacortex.why-choose-revealed .why-choose-card:nth-child(4) { transition-delay: 0.4s; }
#why-choose-metacortex.why-choose-revealed .why-choose-cta-wrap .why-choose-reveal-el { transition-delay: 0.5s; }

/* Our Expertise section - purpose-built design */
.expertise-header {
  max-width: 720px;
}

.expertise-tagline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--services-tagline-size);
  letter-spacing: var(--ai-solutions-tagline-spacing);
  text-transform: uppercase;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.expertise-tagline-icon {
  font-size: 0.875rem;
  opacity: 0.9;
}

.expertise-title {
  font-size: var(--services-title-mobile);
  font-weight: 700;
  color: var(--color-text-heading);
  line-height: 1.2;
  margin-bottom: 1rem;
}
@media (min-width: 768px) {
  .expertise-title { font-size: var(--services-title-tablet); }
}
@media (min-width: 1024px) {
  .expertise-title { font-size: 2.5rem; line-height: 1.15; }
}

.expertise-gradient-text {
  color: var(--color-primary);
}

.expertise-desc {
  font-size: var(--services-subtitle-size);
  line-height: var(--line-height-desc);
  color: var(--color-text-body);
  margin-bottom: 1.5rem;
}

.expertise-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background: var(--color-primary);
  color: #FFFFFF;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 10px;
  transition: background 0.3s;
}
.expertise-cta-btn:hover {
  background: var(--color-primary-hover);
}

/* Expertise cards - minimalist style */
.expertise-card {
  padding: 0;
  transition: transform 0.2s;
}
.expertise-card:hover {
  transform: translateY(-2px);
}

.expertise-card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-heading);
  margin-bottom: 1.25rem;
  transition: color 0.2s;
}
.expertise-card:hover .expertise-card-icon {
  color: var(--color-primary);
}

.expertise-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text-heading);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.expertise-card-desc {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--color-text-body);
  margin-bottom: 1rem;
}

.expertise-card-link {
  display: inline-block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-primary);
  position: relative;
  padding-bottom: 4px;
}
.expertise-card-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--color-primary);
  border-radius: 1px;
  transition: opacity 0.2s;
}
.expertise-card:hover .expertise-card-link {
  color: var(--color-primary-hover);
}
.expertise-card:hover .expertise-card-link::after {
  opacity: 0.9;
}

.expertise-explore-link {
  color: var(--color-primary);
  transition: color 0.2s;
}
.expertise-explore-link:hover {
  color: var(--color-primary-hover);
}

/* Core Development Services section (legacy - kept for other sections) */
.services-section-subtitle {
  font-size: var(--services-subtitle-size);
  line-height: var(--line-height-desc);
  color: var(--color-text-body);
  max-width: var(--services-subtitle-max-width);
  margin-left: auto;
  margin-right: auto;
}

.services-section-title {
  font-size: var(--services-title-mobile);
  font-weight: 700;
  color: var(--color-text-heading);
}
@media (min-width: 768px) {
  .services-section-title {
    font-size: var(--services-title-tablet);
  }
}
@media (min-width: 1024px) {
  .services-section-title {
    font-size: var(--services-title-desktop);
  }
}

.services-card-title {
  font-size: var(--services-card-title);
  font-weight: 600;
  color: var(--color-text-heading);
}

.services-card-desc {
  font-size: var(--services-card-desc);
  line-height: var(--line-height-desc);
  color: var(--color-text-body);
}

.services-card {
  border-radius: var(--services-card-radius);
  background: var(--color-card-bg);
  border: 1px solid var(--color-border-light);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
}
.services-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  background: white;
}

/* AI Solutions section */
.ai-solutions-subtitle {
  font-size: var(--services-subtitle-size);
  line-height: var(--line-height-desc);
  color: var(--color-text-body);
  max-width: var(--ai-solutions-subtitle-max-width);
  margin-left: auto;
  margin-right: auto;
}

/* AI Solutions cards - brand gradient icon accents */
.ai-solutions-icon {
  background: linear-gradient(135deg, #1E73E8 0%, #6A5CFF 100%);
  box-shadow: 0 4px 12px rgba(30, 115, 232, 0.25);
}
.ai-solutions-card:nth-child(1) .ai-solutions-icon { background: linear-gradient(135deg, #1E73E8 0%, #6A5CFF 100%); }
.ai-solutions-card:nth-child(2) .ai-solutions-icon { background: linear-gradient(135deg, #6A5CFF 0%, #9B6DFF 100%); }
.ai-solutions-card:nth-child(3) .ai-solutions-icon { background: linear-gradient(135deg, #1E73E8 0%, #9B6DFF 100%); }
.ai-solutions-card:nth-child(4) .ai-solutions-icon { background: linear-gradient(135deg, #1E73E8 0%, #6A5CFF 100%); }
.ai-solutions-card:nth-child(5) .ai-solutions-icon { background: linear-gradient(135deg, #6A5CFF 0%, #9B6DFF 100%); }
.ai-solutions-card:nth-child(6) .ai-solutions-icon { background: linear-gradient(135deg, #1E73E8 0%, #9B6DFF 100%); }

/* AI Solutions section - card design (light gray bg, gradient glow on hover) */
#ai-solutions .ai-solutions-card {
  background: #F7F9FC;
  border-radius: 20px;
  border: 1px solid rgba(230, 236, 245, 0.8);
  box-shadow: 0 2px 12px rgba(11, 31, 59, 0.04);
  transition: transform 0.3s, box-shadow 0.35s, border-color 0.3s;
}
#ai-solutions .ai-solutions-card:hover {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow:
    -10px -10px 30px rgba(30, 115, 232, 0.2),
    0 0 40px rgba(106, 92, 255, 0.2),
    10px 10px 30px rgba(155, 109, 255, 0.2);
}

/* Industries We Serve section */
.industries-section-subtitle {
  font-size: var(--services-subtitle-size);
  line-height: var(--line-height-desc);
  color: var(--color-text-body);
  max-width: var(--industries-subtitle-max-width);
  margin-left: auto;
  margin-right: auto;
}

.industries-card-title {
  font-size: var(--industries-card-title);
  font-weight: 600;
  color: var(--color-text-heading);
}

.industries-card-desc {
  font-size: var(--industries-card-desc);
  line-height: var(--line-height-desc);
  color: var(--color-text-body);
}

/* Industries section - clean card design (white bg, light border, no hover effect) */
.industries-card {
  border-radius: 20px;
  background: var(--color-card-bg);
  border: 1px solid #E5E7EB;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  text-align: left;
}

/* Industries icon - unified brand accent */
#industries-we-serve .industries-card > div:first-child {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: rgba(30, 115, 232, 0.08) !important;
  color: var(--color-primary) !important;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
#industries-we-serve .industries-card > div:first-child svg {
  color: inherit;
}

/* Industries Discover More link */
.industries-discover-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text-heading);
}
.industries-discover-more-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--color-border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.industries-discover-more-icon svg {
  width: 14px;
  height: 14px;
}

/* Technology Stack & Platforms section */
.tech-stack-section-subtitle {
  font-size: var(--services-subtitle-size);
  line-height: var(--line-height-desc);
  color: var(--color-text-body);
  max-width: var(--tech-stack-subtitle-max-width);
  margin-left: auto;
  margin-right: auto;
}

/* Horizontal pill tabs - reference image style */
.tech-stack-tabs-wrapper {
  border-bottom: 1px solid #E5E7EB;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.tech-stack-tabs-scroll {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.75rem 0;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
/* Pills use Tailwind classes in markup; keep only non-conflicting defaults (dev-style loads after Tailwind) */
.tech-tab-pill {
  flex-shrink: 0;
  border-radius: 9999px;
  cursor: pointer;
  transition: color 0.2s, background-color 0.2s, box-shadow 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.tech-tab-pill.active {
  color: #fff;
  background: var(--color-primary);
}
.tech-tab-pill.active:hover {
  background: #0F4DC7;
}

/* Selected tab: white label on blue (beats .tech-tab-pill color and .text-blue-600 !important) */
#technology-stack .tech-tab-pill.bg-blue-600 {
  color: #ffffff !important;
}

/* Prev arrow: hover uses blue fill + white icon ( .text-blue-600 !important blocked hover:text-white ) */
#technology-stack #prev-tab:hover,
#technology-stack #prev-tab:hover svg {
  color: #ffffff !important;
}

/* Tech stack content area */
.tech-stack-content {
  background: #F7F9FC;
  border-radius: 16px;
  padding: 2rem 1.5rem;
  min-height: 280px;
}

.tech-stack-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 16px;
  padding: 1.5rem 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s, border-color 0.3s;
}
.tech-stack-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-color: rgba(30, 115, 232, 0.2);
}

.tech-stack-card-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}
.tech-stack-card-icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}
.tech-stack-card-icon .tech-stack-card-svg {
  width: 28px;
  height: 28px;
  color: #64748b;
}
.tech-stack-card:hover .tech-stack-card-icon .tech-stack-card-svg {
  color: var(--color-primary);
}

.tech-stack-card-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-heading);
  text-align: center;
  line-height: 1.3;
  transition: color 0.2s;
}
.tech-stack-card:hover .tech-stack-card-name {
  color: var(--color-primary);
}

/* Our Development Process section */
.process-section-title {
  font-size: var(--services-title-mobile);
  font-weight: 700;
  color: var(--color-text-heading);
  margin-bottom: 1rem;
}
@media (min-width: 768px) {
  .process-section-title { font-size: var(--services-title-tablet); }
}
@media (min-width: 1024px) {
  .process-section-title { font-size: var(--services-title-desktop); }
}

.process-section-subtitle {
  font-size: var(--services-subtitle-size);
  line-height: var(--line-height-desc);
  color: var(--color-text-body);
  margin-bottom: 1.25rem;
}

.process-section-desc {
  font-size: var(--services-subtitle-size);
  line-height: var(--line-height-desc);
  color: var(--color-text-body);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Process timeline - grid of step cards */
.process-timeline {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .process-timeline {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}
@media (min-width: 1024px) {
  .process-timeline {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

/* Process step card */
.process-step-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.75rem 1.5rem;
  background: var(--color-card-bg);
  border: 1px solid var(--color-border-light);
  border-radius: 16px;
  transition: transform 0.3s, border-color 0.3s, background 0.3s;
}
.process-step-card:hover {
  transform: translateY(-4px);
  background: white;
  border-color: rgba(30, 115, 232, 0.25);
}

.process-step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--color-primary);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 1rem;
}

.process-step-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(30, 115, 232, 0.1);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.process-step-icon i {
  font-size: 1.25rem;
}

.process-step-card:hover .process-step-icon {
  background: var(--color-primary);
  color: #FFFFFF;
}

.process-step-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-text-heading);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.process-step-desc {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--color-text-body);
  margin: 0;
}

.process-cta-wrap {
  margin-top: 2rem;
}

/* Process section scroll reveal */
.process-reveal-el {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
#development-process.process-revealed .process-reveal-el {
  opacity: 1;
  transform: translateY(0);
}
#development-process.process-revealed .text-center .process-reveal-el:nth-child(1) { transition-delay: 0s; }
#development-process.process-revealed .text-center .process-reveal-el:nth-child(2) { transition-delay: 0.05s; }
#development-process.process-revealed .text-center .process-reveal-el:nth-child(3) { transition-delay: 0.1s; }
#development-process.process-revealed .text-center .process-reveal-el:nth-child(4) { transition-delay: 0.15s; }
#development-process.process-revealed .process-timeline .process-step-card:nth-child(1) { transition-delay: 0.15s; }
#development-process.process-revealed .process-timeline .process-step-card:nth-child(2) { transition-delay: 0.2s; }
#development-process.process-revealed .process-timeline .process-step-card:nth-child(3) { transition-delay: 0.25s; }
#development-process.process-revealed .process-timeline .process-step-card:nth-child(4) { transition-delay: 0.3s; }
#development-process.process-revealed .process-timeline .process-step-card:nth-child(5) { transition-delay: 0.35s; }
#development-process.process-revealed .process-timeline .process-step-card:nth-child(6) { transition-delay: 0.4s; }
#development-process.process-revealed .process-cta-wrap .process-reveal-el { transition-delay: 0.5s; }

/* Process section CTA button - brand gradient */
.process-cta-btn {
  background: var(--color-primary);
  color: #FFFFFF;
  border-radius: 10px;
  padding: var(--btn-padding-y) var(--btn-padding-x);
  font-size: var(--font-size-btn);
  font-weight: 600;
  transition: background 0.3s;
}
.process-cta-btn:hover {
  background: var(--color-primary-hover);
}

/* Section backgrounds - alternate white / #F7F9FC */
.bg-slate-50\/50 {
  background-color: #F7F9FC !important;
}

/* Tailwind blue overrides - MetaCortex brand colors */
.text-blue-500,
.text-blue-600 { color: #1E73E8 !important; }
.text-blue-700 { color: #0F4DC7 !important; }
.hover\:text-blue-600:hover,
.group-hover\:text-blue-600:hover { color: #1E73E8 !important; }

.bg-blue-50 { background-color: rgba(30, 115, 232, 0.08) !important; }
.bg-blue-100 { background-color: rgba(30, 115, 232, 0.15) !important; }
.bg-blue-500,
.bg-blue-600 { background-color: #1E73E8 !important; }
.bg-blue-700 { background-color: #0F4DC7 !important; }

.hover\:bg-blue-50:hover { background-color: rgba(30, 115, 232, 0.08) !important; }
.hover\:bg-blue-600:hover { background-color: #1E73E8 !important; }
.hover\:bg-blue-700:hover { background-color: #0F4DC7 !important; }
.group:hover .group-hover\:bg-blue-600 { background-color: #1E73E8 !important; }

.group:hover .group-hover\:text-blue-50 { color: #FFFFFF !important; }
.group:hover .group-hover\:text-white { color: #FFFFFF !important; }
.group:hover .group-hover\:text-blue-600 { color: #1E73E8 !important; }

/* Intelligence Layer: stroke icons stay visible on blue icon tiles (currentColor vs .text-blue-600 !important) */
#intelligence-layer a.group:hover .bg-blue-50 svg {
  color: #ffffff !important;
}
.group:hover .group-hover\:bg-white { background-color: #FFFFFF !important; }
.group:hover .group-hover\:opacity-100 { opacity: 1 !important; }

.shadow-blue-200 { --tw-shadow-color: rgba(30, 115, 232, 0.25); }

/* FAQ Accordion - Design: expanded panel highlighted, collapsed white, +/X icons */
.faq-accordion-item {
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.faq-accordion-item.active {
  background-color: #F1F5F9 !important;
  border-color: #E2E8F0 !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05) !important;
}
.faq-accordion-item .faq-icon-plus {
  display: flex;
  color: #3182CE;
  font-size: 1.25rem;
  font-weight: 300;
  line-height: 1;
}
.faq-accordion-item .faq-icon-close {
  display: none;
  color: #1A202C;
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1;
}
.faq-accordion-item.active .faq-icon-plus {
  display: none;
}
.faq-accordion-item.active .faq-icon-close {
  display: flex;
}
.faq-accordion-item .faq-answer-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-in-out;
}
.faq-accordion-item.active .faq-answer-content {
  max-height: 500px;
}

/* Service pages: unified 6-step process (square badges, gaps on connectors, card spacing) */
.service-process-grid {
  --sp-badge: 2.5rem;
  --sp-badge-left: 2rem;
  --sp-line-gap: 0.75rem; /* gap between badge and connector line */
  --sp-badge-card-gap: 1.5rem; /* 24px between badge bottom and card top */
  --sp-cell-gutter: 2rem; /* matches lg gap between grid columns */
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding-top: 0.25rem;
}
@media (min-width: 640px) {
  .service-process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .service-process-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--sp-cell-gutter);
  }
}

.service-process-step {
  position: relative;
  min-width: 0;
  padding-left: var(--sp-badge-left);
  padding-right: var(--sp-badge-left);
}

.flex-shrink-0.w-12.h-12.rounded-xl.bg-blue-600.text-white.flex.items-center.justify-center.font-bold.text-lg.shadow-lg.shadow-blue-200.group-hover\:scale-110.transition-transform {
  position: relative;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--sp-badge);
  height: var(--sp-badge);
  margin-bottom: var(--sp-badge-card-gap);
  border-radius: 0.5rem;
  background-color: #1e73e8;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  box-shadow:
    0 2px 8px rgba(30, 115, 232, 0.35),
    0 0 0 4px #fff;
}


#tech-tabs-container::-webkit-scrollbar { display: none; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.animate-float {
    animation: float 4s ease-in-out infinite;
}

/* Blog/article #cta-section: parent uses text-white; Tailwind preflight sets links to color:inherit.
   Without an explicit hover text color, labels can pick up white and disappear on pale hovers. */
#cta-section a[data-consultation-modal] {
    background-color: #ffffff !important;
}
#cta-section a[data-consultation-modal]:hover,
#cta-section a[data-consultation-modal]:focus-visible {
    background-color: #2563eb !important;
    color: #ffffff !important;
}
#cta-section a[data-consultation-modal]:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
}

/* Pill nav + site-layout: avoid a huge empty gap between logo and links (justify-between on a two-column row).
   Center the link group in the remaining width; keep logo left and CTA with the group. */
/* Header spacing parity: keep all pages aligned with home header side gaps */
@media (max-width: 639px) {
  #main-header #nav-container,
  header[role='banner']:not(#main-header) nav {
    margin-left: 0.5rem !important;
    margin-right: 0.5rem !important;
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }
}
@media (min-width: 640px) and (max-width: 1023px) {
  #main-header #nav-container,
  header[role='banner']:not(#main-header) nav {
    margin-left: 0.75rem !important;
    margin-right: 0.75rem !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}
@media (min-width: 1024px) {
  #main-header #nav-container,
  header[role='banner']:not(#main-header) nav {
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 2rem !important;
    padding-right: 2rem !important;
  }
}

@media (max-width: 1023px) {
  #main-header #nav-content {
    justify-content: space-between;
  }
}
@media (min-width: 1024px) {
  #main-header #nav-content {
    justify-content: flex-start;
    gap: clamp(0.75rem, 2.5vw, 1.5rem);
  }
  #main-header #nav-content > div:nth-child(2).hidden.lg\:flex {
    flex: 1 1 0%;
    min-width: 0;
    justify-content: end;
  }
  header[role='banner']:not(#main-header) nav > div.flex.justify-between.items-center {
    justify-content: flex-start;
    gap: clamp(0.75rem, 2.5vw, 1.5rem);
  }
  header[role='banner']:not(#main-header) nav > div.flex.justify-between.items-center > div:nth-child(2).hidden.lg\:flex {
    flex: 1 1 0%;
    min-width: 0;
    justify-content: center;
  }
}
@media (max-width: 1023px) {
  header[role='banner']:not(#main-header) nav > div.flex.justify-between.items-center {
    justify-content: space-between;
  }
}

/* Desktop mega-menus: keep panel open when toggled by click (Tailwind handles hover via group-hover). */
@media (min-width: 1024px) {
  header .relative.group.mc-nav-mega-open > [role='menu'] {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
  }
  header .relative.group.mc-nav-mega-open > #industries-menu {
    transform: translateX(-50%) translateY(0) !important;
  }
  header .relative.group.mc-nav-mega-open > a > svg,
  header .relative.group.mc-nav-mega-open > button > svg {
    transform: rotate(180deg);
  }
}

/* About page expertise cards: keep hover visuals consistent */
#expertise a.group:hover h3 {
  color: #0f172a !important;
}
#expertise a.group:hover .w-14.h-14.rounded-xl {
  background-color: #1e73e8 !important;
  color: #ffffff !important;
}
#expertise a.group:hover .w-14.h-14.rounded-xl svg {
  color: #ffffff !important;
}

/* Home "Technologies & Solutions We Deliver": keep icon visible on card hover */
#about-metacortex .about-services-column a.group:hover .w-10.h-10.rounded-lg {
  background-color: #ffffff !important;
  color: #1e73e8 !important;
}

/* Keep responsive behavior intact now that responsive.css loads via @import at top */
@media (max-width: 479px) {
  .about-services-grid {
    grid-template-columns: 1fr !important;
    gap: 0.5rem !important;
  }
  .hero-tech-card {
    padding: 0.75rem 0.5rem !important;
  }
  .process-step-card {
    padding: 1.25rem 1rem !important;
  }
  .portfolio-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
}
@media (min-width: 480px) and (max-width: 639px) {
  .about-services-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem 1rem !important;
  }
  .hero-tech-card {
    padding: 0.75rem 0.5rem !important;
  }
  .process-step-card {
    padding: 1.25rem 1rem !important;
  }
  .portfolio-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
}
@media (min-width: 640px) and (max-width: 767px) {
  .hero-tech-card {
    padding: 1.25rem 0.75rem !important;
  }
  .process-step-card {
    padding: 1.75rem 1.5rem !important;
  }
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.25rem !important;
  }
}
.w-12{
  width: 3rem !important;
} 
.h-12{
  height: 3rem !important;
}
.hide-scrollbar {
    scrollbar-width: none; /* Firefox */
}
.hide-scrollbar::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}