/* ===== Engineering Design Services 2 - Custom Styles ===== */

/* --- Overview Section --- */
.eds2-overview {
  padding: 100px 0 80px;
  background: #fff;
  position: relative;
  overflow: hidden;
}

.eds2-overview .overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.eds2-overview .overview-badge {
  display: inline-block;
  padding: 6px 18px;
  background: rgba(233, 82, 41, 0.1);
  color: var(--pxn-color-theme-primary, #e95229);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.eds2-overview .overview-title {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--pxn-color-heading-primary, #0a1e2c);
}

.eds2-overview .overview-title span {
  color: var(--pxn-color-theme-primary, #e95229);
}

.eds2-overview .overview-desc {
  font-size: 17px;
  line-height: 1.8;
  color: #555;
  margin-bottom: 30px;
}

.eds2-overview .overview-stats {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.eds2-overview .stat-item {
  text-align: center;
  padding: 20px 25px;
  background: linear-gradient(145deg, #f8f9fa, #fff);
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  min-width: 120px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.eds2-overview .stat-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.eds2-overview .stat-number {
  font-size: 32px;
  font-weight: 800;
  color: var(--pxn-color-theme-primary, #e95229);
  display: block;
}

.eds2-overview .stat-label {
  font-size: 13px;
  color: #777;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

.eds2-overview .overview-image {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
}

.eds2-overview .overview-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 20px;
}

.eds2-overview .overview-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.3), transparent);
  border-radius: 0 0 20px 20px;
}

.eds2-overview .floating-label {
  position: absolute;
  bottom: 25px;
  left: 25px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 14px 22px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  color: var(--pxn-color-heading-primary, #0a1e2c);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.eds2-overview .floating-label i {
  color: var(--pxn-color-theme-primary, #e95229);
  margin-right: 8px;
}

/* --- Capabilities Section --- */
.eds2-capabilities {
  padding: 90px 0;
  background: linear-gradient(180deg, #f7f8fa 0%, #fff 100%);
  position: relative;
}

.eds2-capabilities .section-header {
  text-align: center;
  margin-bottom: 60px;
}

.eds2-capabilities .section-header h2 {
  font-size: 38px;
  font-weight: 700;
  color: var(--pxn-color-heading-primary, #0a1e2c);
}

.eds2-capabilities .section-header p {
  font-size: 16px;
  color: #666;
  max-width: 600px;
  margin: 15px auto 0;
}

.eds2-cap-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.eds2-cap-card {
  width: calc(33.333% - 20px);
  background: #fff;
  border-radius: 20px;
  padding: 40px 30px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.eds2-cap-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: var(--pxn-color-theme-primary, #e95229);
  transition: height 0.4s ease;
  border-radius: 0 0 4px 0;
}

.eds2-cap-card:hover::before {
  height: 100%;
}

.eds2-cap-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.eds2-cap-card .cap-icon {
  width: 60px;
  height: 60px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  transition: background 0.3s, border-color 0.3s;
}

.eds2-cap-card:hover .cap-icon {
  background: var(--pxn-color-theme-primary, #e95229);
  border-color: var(--pxn-color-theme-primary, #e95229);
}

.eds2-cap-card .cap-icon img {
  width: 28px;
  height: 28px;
  transition: filter 0.3s;
}

.eds2-cap-card:hover .cap-icon img {
  filter: brightness(0) invert(1);
}

.eds2-cap-card .cap-number {
  font-size: 48px;
  font-weight: 800;
  color: rgba(0, 0, 0, 0.04);
  position: absolute;
  top: 15px;
  right: 20px;
  line-height: 1;
}

.eds2-cap-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--pxn-color-heading-primary, #0a1e2c);
}

.eds2-cap-card p {
  font-size: 15px;
  line-height: 1.7;
  color: #666;
  margin: 0;
}

/* --- Experience Section (Tabs) --- */
.eds2-experience {
  padding: 90px 0;
  background: var(--pxn-color-heading-primary, #0a1e2c);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.eds2-experience::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(233, 82, 41, 0.15), transparent 70%);
  top: -200px;
  right: -150px;
  pointer-events: none;
}

.eds2-experience .section-header {
  text-align: center;
  margin-bottom: 50px;
}

.eds2-experience .section-header h2 {
  font-size: 38px;
  font-weight: 700;
  color: #fff;
}

.eds2-experience .section-header p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.6);
  max-width: 600px;
  margin: 15px auto 0;
}

.eds2-tab-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 45px;
  flex-wrap: wrap;
}

.eds2-tab-btn {
  padding: 12px 28px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  letter-spacing: 0.3px;
}

.eds2-tab-btn:hover,
.eds2-tab-btn.active {
  background: var(--pxn-color-theme-primary, #e95229);
  border-color: var(--pxn-color-theme-primary, #e95229);
  color: #fff;
}

.eds2-tab-panel {
  display: none;
  animation: eds2FadeIn 0.5s ease;
}

.eds2-tab-panel.active {
  display: block;
}

@keyframes eds2FadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.eds2-exp-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.eds2-exp-item {
  width: calc(50% - 12px);
  display: flex;
  gap: 18px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s;
}

.eds2-exp-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(5px);
}

.eds2-exp-item .exp-dot {
  width: 10px;
  height: 10px;
  min-width: 10px;
  border-radius: 50%;
  background: var(--pxn-color-theme-primary, #e95229);
  margin-top: 6px;
}

.eds2-exp-item h4 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #fff;
}

.eds2-exp-item p {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

/* --- CTA Section --- */
.eds2-cta {
  padding: 90px 0;
  background: #fff;
  position: relative;
}

.eds2-cta-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: linear-gradient(135deg, #0a1e2c 0%, #153347 100%);
  border-radius: 24px;
  overflow: hidden;
  /*min-height: 350px;*/
}

.eds2-cta-content {
  padding: 60px 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eds2-cta-content h2 {
  font-size: 34px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.3;
}

.eds2-cta-content p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 30px;
  line-height: 1.7;
}

.eds2-cta-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.eds2-cta-actions .phone-link {
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
  text-decoration: none;
  transition: color 0.3s;
}

.eds2-cta-actions .phone-link:hover {
  color: var(--pxn-color-theme-primary, #e95229);
}

.eds2-cta-image {
  position: relative;
}

.eds2-cta-image img {
  /* width: 100%;
  height: 100%;
  object-fit: cover;*/
  float: right;
}

/* --- Responsive --- */
@media (max-width: 991px) {
  .eds2-overview .overview-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .eds2-overview .overview-title {
    font-size: 32px;
  }

  .eds2-cap-card {
    width: calc(50% - 15px);
  }

  .eds2-exp-item {
    width: 100%;
  }

  .eds2-cta-box {
    grid-template-columns: 1fr;
  }

  .eds2-cta-image {
    min-height: 250px;
  }

  .eds2-cta-content {
    padding: 40px 30px;
  }

  .eds2-cta-content h2 {
    font-size: 28px;
  }

  .eds2-experience .section-header h2,
  .eds2-capabilities .section-header h2 {
    font-size: 30px;
  }
}

@media (max-width: 767px) {
  .eds2-cap-card {
    width: 100%;
  }

  .eds2-overview .overview-stats {
    justify-content: center;
  }

  .eds2-tab-nav {
    gap: 8px;
  }

  .eds2-tab-btn {
    padding: 10px 20px;
    font-size: 13px;
  }

  .eds2-overview {
    padding: 70px 0 50px;
  }

  .eds2-capabilities,
  .eds2-experience,
  .eds2-cta {
    padding: 60px 0;
  }

  .eds2-overview .overview-image img {
    height: 350px;
  }
}

/* Wow Effect additions */
.eds2-cap-card {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.eds2-cap-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(242, 91, 34, 0.1) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

.eds2-cap-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
  border-color: rgba(242, 91, 34, 0.3) !important;
}

.eds2-cap-card:hover::before {
  opacity: 1;
}

.overview-image img {
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}

.overview-image:hover img {
  transform: scale(1.05);
}

.floating-label {
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0px);
  }
}

.eds2-exp-item {
  transition: all 0.3s ease !important;
}

/*
.eds2-exp-item:hover {
  transform: translateX(10px);
  background: rgba(255, 255, 255, 0.08) !important;
  border-radius: 8px;
  padding: 10px 15px;
}*/

.eds2-cta-box {
  position: relative;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.eds2-cta-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 60px rgba(242, 91, 34, 0.2);
}

.eds2-cta-box::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.eds2-cta-box:hover::after {
  opacity: 1;
}

/* App Card styling for packaging machines */
.app-card {
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease !important;
}

.app-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.app-card img {
  transition: transform 0.5s ease;
}

.app-card:hover img {
  transform: scale(1.08);
}