/* Software Hero Section */
.software-hero {
  position: relative;
  padding: 120px 0;
  color: white;
  overflow: hidden;
}

.software-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) 80%
    ),
    url("/images/dxSoftware-hero-bg.webp") center/cover no-repeat;
  z-index: -1;
}

.software-hero-content {
  display: flex;
  align-items: center;
  gap: 60px;
  position: relative;
  z-index: 1;
}

.software-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 */
}

.software-hero-text h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  color: var(--primary);
}

.software-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;
}

.software-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 */
}

.software-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);
  }
}

/* Software Intro Section */
.software-intro-section {
  padding: 100px 0;
  background-color: var(--bg);
}

.software-intro-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.software-intro-content h2 {
  font-size: 2.2rem;
  line-height: 1.7;
  color: var(--dark-gray);
  margin-bottom: 10px;
}

.software-intro-content p {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--dark-gray);
  margin-bottom: 10px;
}

.core-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.core-feature {
  padding: 30px;
  background-color: var(--light-gray);
  border-radius: var(--radius);
  transition: var(--transition);
}

.core-feature:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.core-feature i {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 20px;
}

.core-feature h3 {
  color: var(--primary);
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.core-feature p {
  color: var(--dark-gray);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Results Section */
.software-results {
  padding: 80px 0;
  background-color: var(--light-gray);
}

.software-results .results-text .btn {
  margin-bottom: 40px;
}

.results-container {
  max-width: 1200px;
  margin: 0 auto;
}

.results-text h2 {
  font-size: 2.2rem;
  line-height: 1.7;
  color: var(--dark-gray);
  margin-bottom: 10px;
}

.results-text {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px;
  font-size: 1.15rem;
}

.results-text h2 {
  color: var(--primary);
  margin-bottom: 15px;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.result-item {
  background-color: var(--bg);
  padding: 30px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  font-size: 1.15rem;
}

.result-item.highlight {
  grid-column: span 4;
  background-color: var(--primary);
  color: white;
}

.result-item.highlight .result-value {
  color: white;
}

.result-item.highlight .result-label {
  color: rgba(255, 255, 255, 0.9);
}

.result-value {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--accent);
  margin-bottom: 5px;
  line-height: 1;
}

.result-label {
  font-size: 1.15rem;
  color: var(--dark-gray);
}

/* Features Section */
.software-features-section {
  padding: 100px 0;
  background-color: var(--bg);
}

.software-features-section .section-header .btn {
  margin-bottom: 20px;
}

.software-features-section .section-header-title {
  font-size: 2.2rem;
  line-height: 1.7;
  color: var(--dark-gray);
  margin-bottom: 10px;
  text-align: center;
}

.feature-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--gray);
  padding-bottom: 10px;
}

.feature-tab {
  padding: 15px 30px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--dark-gray);
  border-bottom: 3px solid transparent;
  transition: var(--transition);
}

.feature-tab.active {
  color: var(--primary);
  border-bottom-color: var(--accent);
}

.feature-tab i {
  font-size: 1.2rem;
}

.feature-content {
  display: none;
  align-items: center;
  gap: 60px;
}

.feature-content.active {
  display: flex;
}

.feature-text {
  flex: 1;
}

.feature-text h3 {
  color: var(--primary);
  margin-bottom: 20px;
  font-size: 1.8rem;
}

.feature-text p {
  color: var(--dark-gray);
  margin-bottom: 20px;
  line-height: 1.7;
}

.feature-text ul {
  list-style: none;
  margin-top: 20px;
}

.feature-text li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 12px;
  line-height: 1.6;
}

.feature-text li::before {
  content: "•";
  color: var(--accent);
  font-weight: bold;
  position: absolute;
  left: 10px;
}

.feature-image {
  flex: 1;
}

.feature-image img {
  width: 80%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

/* Responsive Styles */
@media (max-width: 1200px) {
  .software-hero-content {
    flex-direction: column;
  }

  .core-features {
    grid-template-columns: repeat(2, 1fr);
  }

  .results-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .result-item.highlight {
    grid-column: span 2;
  }

  .feature-content {
    flex-direction: column;
  }

  .feature-image {
    order: -1;
    margin-bottom: 40px;
  }
}

@media (max-width: 768px) {
  .software-hero-text h1 {
    font-size: 2.5rem;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .feature-tabs {
    flex-direction: column;
    align-items: center;
    border-bottom: none;
  }

  .feature-tab {
    width: 100%;
    justify-content: center;
    border-bottom: 1px solid var(--gray);
    border-left: 3px solid transparent;
  }

  .feature-tab.active {
    border-bottom: 1px solid var(--gray);
    border-left: 3px solid var(--accent);
  }
}

@media (max-width: 576px) {
  .core-features {
    grid-template-columns: 1fr;
  }

  .results-grid {
    grid-template-columns: 1fr;
  }

  .result-item.highlight {
    grid-column: span 1;
  }

  .software-hero-text h1 {
    font-size: 2rem;
  }

  .software-hero-subtitle {
    font-size: 1.1rem;
  }
}
