/* AOI Hero Section */
.aoi-hero {
  position: relative;
  padding: 120px 0;
  color: white;
  overflow: hidden;
}

.aoi-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
      135deg,
      var(--light-gray) 0%,
      rgba(165, 195, 238, 0.9) 100%
    ),
    url("/images/aoi-hero-bg.webp") center/cover no-repeat;
  z-index: -1;
}

.aoi-hero-content {
  display: flex;
  align-items: center;
  gap: 60px;
  position: relative;
  z-index: 1;
}

.aoi-hero-text {
  flex: 0 0 65%; /* Takes 65% of the width and doesn't grow/shrink */
  max-width: 65%;
  padding-right: 40px; /* Adds some spacing between text and image */
}

.aoi-hero-text h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  color: var(--primary);
}

.aoi-hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 2.5rem;
  color: var(--text);
  max-width: 100%; /* Adjusted to take full width of text container */
  font-weight: 500;
}

.aoi-hero-image {
  flex: 0 0 35%; /* Takes 35% of the width and doesn't grow/shrink */
  max-width: 35%;
  position: relative;
  animation: float 6s ease-in-out infinite;
  display: flex;
  justify-content: flex-end; /* Aligns image to the right */
}

.aoi-hero-image img {
  width: 70%; /* Image takes full width of its container */
  max-width: 100%; /* Prevents image from overflowing */
  border-radius: var(--radius);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.1);
}

/* Floating animation */
@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* AOI Intro Section */
.aoi-intro {
  padding: 100px 0;
  background-color: var(--bg);
}

.aoi-intro .section-title {
  margin-bottom: 20px;
}

.aoi-intro-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.lead-text {
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--dark-gray);
  margin-bottom: 10px;
}

.aoi-platform-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.platform-feature {
  padding: 30px;
  border-radius: var(--radius);
  background-color: var(--light-gray);
  transition: var(--transition);
}

.platform-feature:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.platform-feature i {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 20px;
}

.platform-feature h3 {
  color: var(--primary);
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.platform-feature p {
  color: var(--dark-gray);
  line-height: 1.6;
}

/* AOI Models Section */
.aoi-models {
  padding: 100px 0;
  background-color: var(--light-gray);
}

.aoi-models .section-header .btn {
  margin-bottom: 40px;
}

.model-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.model-card {
  background-color: var(--bg);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  border: 1px solid var(--gray);
}

.model-card.highlighted {
  border: 2px solid var(--accent);
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 188, 212, 0.2);
}

.model-badge {
  position: absolute;
  top: -15px;
  right: 20px;
  background-color: var(--accent);
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.model-header {
  margin-bottom: 20px;
  text-align: center;
}

.model-header h3 {
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 5px;
}

.new-badge {
  position: absolute;
  top: -15px;
  right: 20px;
  background-color: #4caf50;
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.model-tag {
  display: block;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.model-image {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.model-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.model-specs {
  margin-bottom: 20px;
}

.spec-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray);
}

.spec-item i {
  color: var(--accent);
  width: 20px;
  text-align: center;
}

.spec-item span {
  color: var(--dark-gray);
  font-size: 0.95rem;
}

.model-description {
  margin-bottom: 25px;
}

.model-description p {
  color: var(--dark-gray);
  line-height: 1.6;
}

.model-cta {
  text-align: center;
}

/* Key Features Section */
.aoi-features {
  padding: 100px 0;
  background-color: var(--bg);
}

.aoi-features .section-header .btn {
  margin-bottom: 40px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.feature-card {
  background-color: var(--light-gray);
  border-radius: var(--radius);
  padding: 30px;
  transition: var(--transition);
  text-align: center;
  border: 1px solid var(--gray);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 20px;
}

.feature-card h3 {
  color: var(--primary);
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.feature-card p {
  color: var(--dark-gray);
  line-height: 1.6;
}

/* Inspection Capabilities */
.inspection-capabilities {
  padding: 100px 0;
  background-color: var(--light-gray);
}

.inspection-capabilities .section-header .btn {
  margin-bottom: 40px;
}

.capabilities-container {
  display: flex;
  gap: 60px;
  align-items: center;
  margin-top: 50px;
}

.capabilities-image {
  flex: 1;
}

.capabilities-image img {
  width: 80%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.capabilities-list {
  flex: 1;
}

.capability-category {
  margin-bottom: 30px;
}

.capability-category h3 {
  color: var(--primary);
  margin-bottom: 15px;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.capability-category h3 i {
  color: var(--accent);
}

.capability-category ul {
  list-style: none;
}

.capability-category li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 10px;
  line-height: 1.6;
}

.capability-category li::before {
  content: "•";
  color: var(--accent);
  font-weight: bold;
  position: absolute;
  left: 10px;
}

.capabilities-footer {
  margin-top: 50px;
  text-align: center;
  font-size: 1.1rem;
  color: var(--dark-gray);
}

.capabilities-footer strong {
  color: var(--primary);
}

/* Responsive Styles */
@media (max-width: 1200px) {
  .aoi-hero-content {
    flex-direction: column;
  }

  .aoi-hero-text {
    text-align: center;
    max-width: 100%;
  }

  .aoi-hero-image {
    margin-top: 40px;
  }

  .model-cards {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .capabilities-container {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .aoi-platform-features {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 2rem;
  }

  .aoi-hero-text h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 576px) {
  .aoi-hero-text h1 {
    font-size: 2rem;
  }

  .aoi-hero-subtitle {
    font-size: 1.1rem;
  }

  .lead-text {
    font-size: 1rem;
  }
}
