/* Engineering Squads & Team Augmentation Page - Premium B2B Enterprise 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 Isometric Animation */
.squads-hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #030D1A;
  padding: 140px 20px 80px;
  overflow: hidden;
}

.isometric-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

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

.hero-content {
  text-align: center;
}

.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: 800px;
  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);
}

/* Engagement Models Section */
.engagement-models {
  background: #030D1A;
  padding: 100px 20px;
}

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

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

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

.models-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1400px;
  margin: 0 auto 60px;
}

/* Glassmorphic Cards with Staggered Animation */
.model-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 cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: translateY(30px);
}

.model-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.model-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 212, 255, 0.6);
  box-shadow: 0 20px 60px rgba(0, 212, 255, 0.3);
  background: rgba(10, 30, 60, 0.6);
}

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

.card-icon-wrapper 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;
}

.model-card h3 {
  font-size: 22px;
  font-weight: 700;
  color: white;
  margin-bottom: 16px;
  line-height: 1.3;
}

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

.section-cta {
  text-align: center;
}

.btn-secondary {
  padding: 16px 32px;
  font-size: 16px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  color: #00D4FF;
  border: 2px solid rgba(0, 212, 255, 0.5);
}

.btn-secondary:hover {
  background: rgba(0, 212, 255, 0.1);
  border-color: #00D4FF;
  transform: translateY(-2px);
}

/* Integration Advantage - Bento Box Grid */
.integration-advantage {
  background: #030D1A;
  padding: 100px 20px;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  max-width: 1400px;
  margin: 0 auto;
}

.bento-item {
  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.3s ease;
}

.bento-item:hover {
  border-color: rgba(0, 212, 255, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(0, 212, 255, 0.2);
}

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

.bento-item:hover .bento-icon {
  transform: scale(1.05);
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.7);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(0, 212, 255, 0);
  }
}

.bento-icon i {
  font-size: 28px;
  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;
}

.bento-item h3 {
  font-size: 20px;
  font-weight: 700;
  color: white;
  margin-bottom: 12px;
}

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

/* Tech Stack Section */
.tech-stack {
  background: #030D1A;
  padding: 100px 20px;
}

.tech-carousel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.tech-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 40px 20px;
  background: rgba(10, 30, 60, 0.3);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 212, 255, 0.1);
  border-radius: 16px;
  transition: all 0.4s ease;
  cursor: pointer;
}

.tech-item i {
  font-size: 64px;
  color: rgba(255, 255, 255, 0.3);
  filter: grayscale(100%);
  transition: all 0.4s ease;
  font-style: normal !important;
  -webkit-font-smoothing: antialiased;
  display: inline-block;
  font-variant: normal;
  text-rendering: auto;
  line-height: 1;
}

.tech-item span {
  font-size: 16px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  transition: all 0.4s ease;
}

.tech-item:hover {
  transform: translateY(-5px) scale(1.05);
  border-color: rgba(0, 212, 255, 0.5);
  box-shadow: 0 20px 50px rgba(0, 212, 255, 0.3);
}

.tech-item:hover i {
  color: #00D4FF;
  filter: grayscale(0%);
  transform: scale(1.1);
}

.tech-item:hover span {
  color: white;
}

/* Tooltip */
.tech-item::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.9);
  color: white;
  font-size: 13px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, bottom 0.3s ease;
  z-index: 10;
}

.tech-item:hover::after {
  opacity: 1;
  bottom: -70px;
}

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

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

.conversion-content h2 {
  font-size: 48px;
  font-weight: 800;
  color: white;
  margin-bottom: 20px;
}

.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 .squads-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 .engagement-models,
body.light-theme .integration-advantage,
body.light-theme .tech-stack {
  background: #ffffff;
}

body.light-theme .model-card,
body.light-theme .bento-item,
body.light-theme .tech-item {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-theme .model-card:hover,
body.light-theme .bento-item:hover {
  border-color: var(--original-orange);
  box-shadow: 0 20px 60px rgba(255, 123, 0, 0.2);
}

body.light-theme .tech-item:hover {
  border-color: var(--original-orange);
  box-shadow: 0 20px 50px rgba(255, 123, 0, 0.2);
}

body.light-theme .card-icon-wrapper,
body.light-theme .bento-icon {
  background: var(--original-orange);
}

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

body.light-theme .model-card h3,
body.light-theme .bento-item h3 {
  color: #1a1f3a !important;
}

body.light-theme .model-card p,
body.light-theme .bento-item p {
  color: rgba(26, 31, 58, 0.8) !important;
}

body.light-theme .tech-item i {
  color: rgba(26, 31, 58, 0.3);
}

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

body.light-theme .tech-item span {
  color: rgba(26, 31, 58, 0.7);
}

body.light-theme .tech-item:hover span {
  color: #1a1f3a;
}

body.light-theme .btn-secondary {
  color: var(--original-orange);
  border-color: var(--original-orange);
}

body.light-theme .btn-secondary:hover {
  background: rgba(255, 123, 0, 0.1);
  border-color: var(--original-orange-hover);
}

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) {
  .models-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

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

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

  .models-grid,
  .bento-grid {
    grid-template-columns: 1fr;
  }

  .tech-carousel {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

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

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