/* Global Engineering Hubs (BOT Model) Page - Executive Premium Design */

/* Font Awesome Icon Fix */
.fa, .fas, .far, .fal, .fab {
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 900 !important;
  font-style: normal !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.fa-brands, .fab {
  font-family: "Font Awesome 6 Brands" !important;
  font-weight: 400 !important;
}

/* Hero Section with Globe Network Animation */
.hubs-hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #030D1A;
  padding: 140px 20px 80px;
  overflow: hidden;
}

.globe-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 1;
  pointer-events: none;
}

.hero-content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 10;
}

.hero-title {
  font-size: 56px;
  font-weight: 800;
  color: white;
  margin-bottom: 24px;
  line-height: 1.2;
}

.gradient-text {
  background: linear-gradient(135deg, #0A4AFF 0%, #00D4FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.hero-subtitle {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  max-width: 900px;
  margin: 0 auto 40px;
}

.cta-btn {
  padding: 18px 36px;
  font-size: 16px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: none;
  background: linear-gradient(135deg, #0A4AFF 0%, #00D4FF 100%);
  color: white;
  box-shadow: 0 10px 30px rgba(0, 212, 255, 0.4);
}

.cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(0, 212, 255, 0.6);
}

/* BOT Methodology - Sticky Scroll Timeline */
.bot-methodology {
  background: #030D1A;
  padding: 100px 20px;
  min-height: 200vh;
}

.methodology-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 80px;
  position: relative;
}

/* Sticky Left Timeline */
.sticky-timeline {
  position: sticky;
  top: 120px;
  height: fit-content;
}

.section-title {
  font-size: 42px;
  font-weight: 800;
  color: white;
  margin-bottom: 60px;
}

.timeline-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline-step {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  transition: all 0.3s ease;
  opacity: 0.4;
}

.timeline-step.active {
  opacity: 1;
}

.step-marker {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(10, 30, 60, 0.5);
  border: 2px solid rgba(0, 212, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
}

.timeline-step.active .step-marker {
  background: linear-gradient(135deg, #0A4AFF 0%, #00D4FF 100%);
  border-color: #00D4FF;
  color: white;
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
}

.step-label {
  font-size: 18px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 2px;
  transition: all 0.3s ease;
}

.timeline-step.active .step-label {
  color: #00D4FF;
}

.timeline-connector {
  width: 2px;
  height: 60px;
  background: linear-gradient(180deg, rgba(0, 212, 255, 0.3) 0%, rgba(0, 212, 255, 0.1) 100%);
  margin-left: 29px;
}

/* Scrolling Right Content */
.methodology-content {
  display: flex;
  flex-direction: column;
  gap: 150px;
  padding-bottom: 100px;
}

.methodology-step {
  background: rgba(10, 30, 60, 0.4);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 212, 255, 0.15);
  border-radius: 20px;
  padding: 50px 40px;
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.6s ease;
}

.methodology-step.visible {
  opacity: 1;
  transform: translateY(0);
}

.step-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #0A4AFF 0%, #00D4FF 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
}

.step-icon i {
  font-size: 36px;
  color: #ffffff !important;
  font-style: normal !important;
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 900 !important;
  -webkit-font-smoothing: antialiased;
  display: inline-block;
  font-variant: normal;
  text-rendering: auto;
  line-height: 1;
}

.methodology-step h3 {
  font-size: 28px;
  font-weight: 700;
  color: white;
  margin-bottom: 20px;
}

.step-description {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
  margin-bottom: 30px;
}

.step-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.75);
}

.feature-item i {
  color: #00D4FF;
  font-size: 18px;
  flex-shrink: 0;
}

/* De-Risking Matrix */
.derisking-matrix {
  background: #030D1A;
  padding: 100px 20px;
}

.section-header {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 80px;
}

.section-subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  margin-top: 16px;
}

.matrix-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1400px;
  margin: 0 auto;
}

.matrix-card {
  background: rgba(10, 30, 60, 0.4);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 212, 255, 0.15);
  border-radius: 20px;
  padding: 40px 32px;
  transition: all 0.4s ease;
  cursor: pointer;
}

.matrix-card:hover {
  transform: translateY(-5px);
  background: linear-gradient(135deg, rgba(10, 74, 255, 0.2) 0%, rgba(0, 212, 255, 0.2) 100%);
  border-color: rgba(0, 212, 255, 0.5);
  box-shadow: 0 20px 60px rgba(0, 212, 255, 0.3);
}

.matrix-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #0A4AFF 0%, #00D4FF 100%);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: transform 0.3s ease;
}

.matrix-card:hover .matrix-icon {
  transform: scale(1.1) rotate(5deg);
}

.matrix-icon i {
  font-size: 32px;
  color: #ffffff !important;
  font-style: normal !important;
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 900 !important;
  -webkit-font-smoothing: antialiased;
  display: inline-block;
  font-variant: normal;
  text-rendering: auto;
  line-height: 1;
}

.matrix-card h3 {
  font-size: 22px;
  font-weight: 700;
  color: white;
  margin-bottom: 16px;
}

.matrix-card p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
  margin: 0;
}

/* Final Conversion Section */
.final-conversion {
  background: linear-gradient(135deg, #0A4AFF 0%, #00D4FF 100%);
  padding: 120px 20px;
  text-align: center;
}

.conversion-content {
  max-width: 900px;
  margin: 0 auto;
}

.conversion-content h2 {
  font-size: 52px;
  font-weight: 800;
  color: white;
  margin-bottom: 24px;
  line-height: 1.2;
}

.conversion-content p {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.7;
  margin-bottom: 40px;
}

.final-conversion .cta-btn {
  background: white;
  color: #0A4AFF;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.final-conversion .cta-btn:hover {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

/* Light Theme Overrides */
body.light-theme .hubs-hero {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

body.light-theme .hero-title,
body.light-theme .section-title {
  color: #1a1f3a !important;
}

body.light-theme .hero-subtitle,
body.light-theme .section-subtitle {
  color: rgba(26, 31, 58, 0.8) !important;
}

body.light-theme .bot-methodology,
body.light-theme .derisking-matrix {
  background: #ffffff;
}

body.light-theme .step-marker {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(255, 123, 0, 0.3);
  color: rgba(26, 31, 58, 0.5);
}

body.light-theme .timeline-step.active .step-marker {
  background: var(--original-orange);
  border-color: var(--original-orange);
  color: white;
  box-shadow: 0 0 30px rgba(255, 123, 0, 0.5);
}

body.light-theme .step-label {
  color: rgba(26, 31, 58, 0.5);
}

body.light-theme .timeline-step.active .step-label {
  color: var(--original-orange);
}

body.light-theme .timeline-connector {
  background: linear-gradient(180deg, rgba(255, 123, 0, 0.3) 0%, rgba(255, 123, 0, 0.1) 100%);
}

body.light-theme .methodology-step,
body.light-theme .matrix-card {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-theme .methodology-step h3,
body.light-theme .matrix-card h3 {
  color: #1a1f3a !important;
}

body.light-theme .step-description,
body.light-theme .feature-item,
body.light-theme .matrix-card p {
  color: rgba(26, 31, 58, 0.8) !important;
}

body.light-theme .step-icon,
body.light-theme .matrix-icon {
  background: var(--original-orange);
}

body.light-theme .step-icon i,
body.light-theme .matrix-icon i {
  color: #ffffff !important;
  font-style: normal !important;
}

body.light-theme .feature-item i {
  color: var(--original-orange);
}

body.light-theme .matrix-card:hover {
  background: linear-gradient(135deg, rgba(255, 123, 0, 0.05) 0%, rgba(255, 123, 0, 0.1) 100%);
  border-color: var(--original-orange);
  box-shadow: 0 20px 60px rgba(255, 123, 0, 0.2);
}

body.light-theme .cta-btn {
  background: var(--original-orange) !important;
  border: 2px solid var(--original-orange) !important;
  box-shadow: none !important;
}

body.light-theme .cta-btn:hover {
  background: var(--original-orange-hover) !important;
  box-shadow: 0 8px 20px rgba(255, 123, 0, 0.3) !important;
}

body.light-theme .final-conversion {
  background: linear-gradient(135deg, var(--original-orange) 0%, var(--original-orange-hover) 100%);
}

body.light-theme .final-conversion .cta-btn {
  background: white !important;
  color: var(--original-orange) !important;
  border: 2px solid white !important;
}

body.light-theme .final-conversion .cta-btn:hover {
  background: rgba(255, 255, 255, 0.95) !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2) !important;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .methodology-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .sticky-timeline {
    position: relative;
    top: 0;
  }

  .timeline-steps {
    flex-direction: row;
    justify-content: space-between;
  }

  .timeline-connector {
    width: 60px;
    height: 2px;
    margin: 0;
  }

  .matrix-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 768px) {
  .hero-title {
    font-size: 36px;
  }

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

  .section-title {
    font-size: 32px;
  }

  .conversion-content h2 {
    font-size: 32px;
  }

  .conversion-content p {
    font-size: 16px;
  }

  .timeline-steps {
    flex-direction: column;
  }

  .timeline-connector {
    width: 2px;
    height: 40px;
    margin-left: 29px;
  }
}
