/* ==========================================================================
   DESIGN SYSTEM & CUSTOM STYLES — MINDGRID SOFTWARE
   ========================================================================== */

/* 1. Global Custom Properties */
:root {
  --primary: #0F52BA;
  /* Royal Blue — trust, authority */
  --primary-dark: #0A3D8F;
  /* Deep Navy — headings, hero text */
  --primary-light: #E8F0FE;
  /* Ice Blue — section backgrounds, card fills */
  --accent: #1A73E8;
  /* Google Blue — CTAs, links, highlights */
  --accent-alt: #0078D4;
  /* Microsoft Blue — hover states */
  --success: #1E8449;
  /* Professional Green — badges, positive stats */
  --neutral-900: #1A1A2E;
  /* Near-black — main text */
  --neutral-700: #374151;
  /* Dark gray — body copy */
  --neutral-400: #6B7280;
  /* Mid gray — subtext, captions */
  --neutral-100: #F3F4F6;
  /* Light gray — section alternates */
  --neutral-50: #FAFAFA;
  /* Off-white — page background */
  --white: #FFFFFF;
  --border: #E5E7EB;
  /* Subtle dividers */
  --shadow: rgba(15, 82, 186, 0.08);
  /* Blue-tinted card shadows */

  /* Fonts */
  --font-headings: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* 2. Base Page Styling & Typography */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--neutral-700);
  background-color: var(--neutral-50);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-headings);
  color: var(--neutral-900);
  font-weight: 700;
}

/* 3. Common Layout Rules */
.max-width-container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

section {
  padding: 80px 0;
}

@media (max-width: 768px) {
  section {
    padding: 48px 0;
  }
}

/* Section Alternation Utilities */
.section-white {
  background-color: var(--white);
}

.section-alt {
  background-color: var(--neutral-100);
}

/* Section Headers */
.section-header {
  margin-bottom: 48px;
  text-align: center;
}

.section-eyebrow {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--neutral-900);
  margin-bottom: 16px;
}

.section-title span {
  display: inline-block;
  position: relative;
  padding-bottom: 12px;
}

.section-title span::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background-color: var(--accent);
}

.section-subtext {
  font-size: 16px;
  color: var(--neutral-400);
  max-width: 600px;
  margin: 0 auto;
}

/* 4. Sticky Navbar */
.navbar-custom {
  background-color: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 var(--border);
  padding: 16px 0;
  transition: padding 0.2s ease;
}

.navbar-custom.navbar-scrolled {
  padding: 10px 0;
}

.navbar-brand-custom {
  display: flex;
  align-items: center;
  gap: 1px;
  font-family: var(--font-headings);
  font-weight: 700;
  color: var(--primary-dark);
  font-size: 22px;
  text-decoration: none;
}

.navbar-brand-custom img {
  height: 60px;
  width: auto;
  object-fit: fill;
  display: block;
  align-items: center;
  flex-shrink: 0;
}

.nav-link-custom {
  font-size: 15px;
  font-weight: 500;
  color: var(--neutral-700);
  padding: 8px 16px !important;
  transition: color 0.2s ease;
  position: relative;
}

.nav-link-custom:hover,
.nav-link-custom.active {
  color: var(--accent);
}

.btn-nav-cta {
  background-color: var(--primary);
  color: var(--white);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 6px;
  transition: background-color 0.2s ease;
  border: none;
  text-decoration: none;
  display: inline-block;
}

.btn-nav-cta:hover {
  background-color: var(--primary-dark);
  color: var(--white);
}

.navbar-toggler {
  border: none;
  padding: 0;
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* Mobile Slide Down */
@media (max-width: 991px) {
  .navbar-collapse-custom {
    background-color: var(--white);
    padding: 20px 0;
    border-top: 1px solid var(--border);
    margin-top: 12px;
  }

  .nav-link-custom {
    padding: 10px 0 !important;
  }

  .btn-nav-cta {
    margin-top: 12px;
    width: 100%;
    text-align: center;
  }
}

/* 5. Hero Section (Deep Navy — only dark section) */
.hero-section {
  background-color: var(--primary-dark);
  color: var(--white);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.hero-eyebrow {
  color: #93C5FD;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 16px;
  display: block;
}

.hero-title {
  font-size: 56px;
  line-height: 1.15;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 24px;
}

.hero-subheadline {
  font-size: 18px;
  line-height: 1.7;
  color: #BFDBFE;
  margin-bottom: 36px;
  font-weight: 400;
}

.btn-hero-primary {
  background-color: var(--white);
  color: var(--primary);
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 6px;
  border: 1px solid var(--white);
  transition: background-color 0.2s ease, color 0.2s ease;
  text-decoration: none;
  display: inline-block;
  margin-right: 16px;
}

.btn-hero-primary:hover {
  background-color: #E8F0FE;
  color: var(--primary-dark);
  border-color: #E8F0FE;
}

.btn-hero-secondary {
  background-color: transparent;
  color: var(--white);
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 6px;
  border: 1px solid var(--white);
  transition: background-color 0.2s ease, color 0.2s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-hero-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

@media (max-width: 991px) {
  .hero-section {
    padding: 60px 0;
  }

  .hero-title {
    font-size: 40px;
  }

  .hero-subheadline {
    font-size: 16px;
  }

  .btn-hero-primary {
    margin-bottom: 12px;
    width: 100%;
    margin-right: 0;
    text-align: center;
  }

  .btn-hero-secondary {
    width: 100%;
    text-align: center;
  }
}

/* Custom CSS Dashboard Mockup (Right Column) */
.hero-mockup-wrapper {
  padding-left: 20px;
}

@media (max-width: 991px) {
  .hero-mockup-wrapper {
    padding-left: 0;
    margin-top: 48px;
  }
}

.dashboard-mockup {
  background-color: var(--white);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  padding: 16px;
  position: relative;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.dashboard-dots {
  display: flex;
  gap: 6px;
}

.dashboard-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #E5E7EB;
}

.dashboard-dot.red {
  background-color: #EF4444;
}

.dashboard-dot.yellow {
  background-color: #F59E0B;
}

.dashboard-dot.green {
  background-color: #10B981;
}

.dashboard-title-mock {
  height: 10px;
  width: 100px;
  background-color: #E5E7EB;
  border-radius: 4px;
}

.dashboard-body {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 16px;
}

.dashboard-sidebar {
  border-right: 1px solid var(--border);
  padding-right: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-item-mock {
  height: 8px;
  width: 100%;
  background-color: #F3F4F6;
  border-radius: 3px;
}

.sidebar-item-mock.active {
  background-color: var(--primary-light);
}

.dashboard-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.dashboard-card-mock {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.card-label-mock {
  height: 6px;
  width: 60%;
  background-color: #E5E7EB;
  border-radius: 2px;
}

.card-val-mock {
  height: 12px;
  width: 40%;
  background-color: var(--primary-light);
  border-radius: 3px;
}

.chart-container-mock {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
}

.chart-lines-svg {
  position: absolute;
  top: 30px;
  left: 12px;
  width: calc(100% - 24px);
  height: 80px;
  overflow: visible;
}

.chart-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart-area {
  fill: url(#chart-gradient);
}

.chart-grid-mock {
  display: flex;
  justify-content: space-between;
  height: 80px;
  border-bottom: 1px solid var(--border);
  position: relative;
  align-items: flex-end;
}

.chart-bar-mock {
  width: 8px;
  background-color: var(--primary-light);
  border-radius: 2px 2px 0 0;
  transition: height 0.4s ease;
}

.chart-bar-mock:nth-child(even) {
  background-color: #C3DAFE;
}

/* 6. Trust Bar / Client Logos */
.trust-bar {
  background-color: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
  overflow: hidden;
}

.trust-label {
  font-size: 13px;
  color: var(--neutral-400);
  font-weight: 500;
  text-align: center;
  margin-bottom: 16px;
}

/* CSS Marquee */
.marquee-container {
  display: flex;
  overflow: hidden;
  user-select: none;
  position: relative;
}

.marquee-content {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-around;
  min-width: 100%;
  gap: 24px;
  animation: scroll-marquee 25s linear infinite;
}

.marquee-pill {
  background-color: var(--primary-light);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 100px;
  white-space: nowrap;
}

@keyframes scroll-marquee {
  0% {
    transform: translateX(0%);
  }

  100% {
    transform: translateX(-100%);
  }
}

/* 7. Cards & Hover Effects (Services & Portfolio) */
.custom-card {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 2px 12px var(--shadow);
  padding: 32px;
  height: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.custom-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 20px rgba(15, 82, 186, 0.12);
}

.card-icon {
  font-size: 24px;
  color: var(--accent);
  margin-bottom: 20px;
  display: inline-block;
}

.card-title-custom {
  font-size: 18px;
  font-weight: 600;
  color: var(--neutral-900);
  margin-bottom: 12px;
}

.card-description {
  font-size: 14px;
  color: var(--neutral-700);
  margin-bottom: 0;
  line-height: 1.6;
}

/* 8. How We Work / Process */
.process-wrapper {
  margin-top: 48px;
}

.process-step {
  position: relative;
  text-align: center;
  z-index: 2;
}

.process-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
  border: 2px solid var(--white);
  box-shadow: 0 2px 8px var(--shadow);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.process-step:hover .process-number {
  background-color: var(--primary);
  color: var(--white);
}

.process-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--neutral-900);
  margin-bottom: 8px;
}

.process-desc {
  font-size: 13px;
  color: var(--neutral-400);
  padding: 0 10px;
  line-height: 1.5;
}

/* Connector Line */
.process-line {
  position: absolute;
  top: 28px;
  left: 50%;
  width: 100%;
  height: 1px;
  border-top: 1px dashed #CBD5E1;
  z-index: 1;
}

@media (max-width: 768px) {
  .process-line {
    display: none;
  }

  .process-step {
    margin-bottom: 32px;
  }
}

/* 9. Portfolio Filter Tabs & dynamic grid */
.portfolio-tabs {
  justify-content: center;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
  gap: 8px;
}

.portfolio-tab-btn {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--neutral-700);
  font-weight: 500;
  font-size: 15px;
  padding: 10px 20px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.portfolio-tab-btn:hover {
  color: var(--accent);
}

.portfolio-tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 600;
}

/* Portfolio Card Design */
.portfolio-card {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 2px 12px var(--shadow);
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.portfolio-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 20px rgba(15, 82, 186, 0.12);
}

.portfolio-card-header {
  background-color: var(--primary-light);
  height: 120px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background-color: var(--primary);
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
  text-transform: uppercase;
}

.portfolio-header-icon {
  font-size: 32px;
  color: rgba(15, 82, 186, 0.3);
}

.portfolio-card-body {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.portfolio-card-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--neutral-900);
  margin-bottom: 12px;
}

.portfolio-card-desc {
  font-size: 14px;
  color: var(--neutral-700);
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.portfolio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
  margin-top: auto;
}

.portfolio-tag {
  background-color: var(--neutral-100);
  color: var(--neutral-700);
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 4px;
}

.portfolio-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease;
}

.portfolio-link:hover {
  color: var(--accent-alt);
}

/* Spinner Skeleton Loader */
.skeleton-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 0;
  width: 100%;
}

.skeleton-spinner {
  width: 3rem;
  height: 3rem;
  color: var(--primary);
}

/* 10. Stats Section (Second and FINAL blue section) */
.stats-section {
  background-color: var(--primary);
  color: var(--white);
  padding: 64px 0;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 48px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
  line-height: 1;
}

.stat-label {
  font-size: 14px;
  font-weight: 500;
  color: #BFDBFE;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0;
}

/* 11. Testimonials */
.testimonials-section {
  background-color: var(--white);
}

.testimonial-carousel {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px 48px;
}

.testimonial-item {
  text-align: center;
}

.testimonial-quote {
  font-size: 18px;
  font-style: italic;
  color: var(--neutral-700);
  line-height: 1.8;
  margin-bottom: 24px;
}

.testimonial-author {
  font-weight: 700;
  color: var(--neutral-900);
  font-size: 16px;
  margin-bottom: 2px;
}

.testimonial-company {
  color: var(--neutral-400);
  font-size: 14px;
  margin-bottom: 0;
}

.carousel-control-prev,
.carousel-control-next {
  width: 40px;
  height: 40px;
  background-color: transparent;
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: invert(27%) sepia(85%) saturate(3065%) hue-rotate(209deg) brightness(88%) contrast(92%);
  /* Matches #0F52BA */
}

.carousel-control-prev {
  left: -10px;
}

.carousel-control-next {
  right: -10px;
}

/* 12. Technologies Cloud Section */
.tech-row {
  display: flex;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.tech-group-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--neutral-400);
  font-weight: 700;
  width: 140px;
  flex-shrink: 0;
}

.tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex-grow: 1;
}

.tech-pill {
  background-color: var(--white);
  border: 1px solid var(--border);
  color: var(--neutral-700);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 6px;
  white-space: nowrap;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.tech-pill:hover {
  border-color: var(--primary);
  color: var(--primary);
}

@media (max-width: 768px) {
  .tech-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .tech-group-label {
    width: 100%;
    margin-bottom: 8px;
  }
}

/* 13. CTA Banner (Light Blue, not dark) */
.cta-banner {
  background-color: var(--primary-light);
  padding: 60px 0;
  text-align: center;
  border-top: 1px solid rgba(15, 82, 186, 0.1);
  border-bottom: 1px solid rgba(15, 82, 186, 0.1);
}

.cta-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 12px;
}

.cta-subtext {
  font-size: 16px;
  color: var(--neutral-700);
  margin-bottom: 24px;
}

.btn-cta-action {
  background-color: var(--primary);
  color: var(--white);
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 8px;
  border: none;
  transition: background-color 0.2s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-cta-action:hover {
  background-color: var(--primary-dark);
  color: var(--white);
}

/* 14. Contact Section & Forms */
.contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-detail-icon {
  font-size: 20px;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 4px;
}

.contact-detail-text h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--neutral-900);
}

.contact-detail-text p {
  font-size: 14px;
  color: var(--neutral-700);
  margin-bottom: 0;
}

/* Form Styles */
.form-control-custom {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 15px;
  color: var(--neutral-900);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control-custom:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 82, 186, 0.15);
  outline: none;
}

.form-label-custom {
  font-size: 14px;
  font-weight: 500;
  color: var(--neutral-700);
  margin-bottom: 6px;
}

.btn-submit {
  background-color: var(--primary);
  color: var(--white);
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 6px;
  border: none;
  transition: background-color 0.2s ease;
  width: 100%;
}

.btn-submit:hover {
  background-color: var(--primary-dark);
}

/* Toast/Alert adjustments */
.alert-toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1050;
}

/* 15. Footer */
.footer-custom {
  background-color: var(--neutral-900);
  color: #9CA3AF;
  padding: 60px 0 30px 0;
  font-size: 14px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 1px;
  font-family: var(--font-headings);
  font-weight: 700;
  color: var(--white) !important;
  font-size: 22px;
  text-decoration: none;
  margin-bottom: 16px;
}

.footer-logo img {
  height: 60px;
  width: auto;
  object-fit: fill;
  display: block;
  flex-shrink: 0;
  align-items: center;
  /* Invert logo to white on dark footer background */
}

.footer-tagline {
  line-height: 1.6;
  margin-bottom: 20px;
}

.footer-title {
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #9CA3AF;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-social-icons {
  display: flex;
  gap: 16px;
}

.footer-social-icon {
  color: #9CA3AF;
  font-size: 20px;
  transition: color 0.2s ease;
  text-decoration: none;
}

.footer-social-icon:hover {
  color: var(--white);
}

.footer-bottom-border {
  border-top: 1px solid var(--neutral-700);
  margin-top: 40px;
  padding-top: 24px;
}

/* 16. Reveal animations (fade-in-up) */
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.fade-in-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}