/* CSS */
.button-89 {
  --b: 2px;   /* border thickness */
  --s: .45em; /* size of the corner */
  --color: #C29438; /* Using gold color from gradient */
  margin-top: 40px;
  
  padding: calc(.5em + var(--s)) calc(.9em + var(--s));
  color: var(--color);
  --_p: var(--s);
  background:
    conic-gradient(from 90deg at var(--b) var(--b),#0000 90deg,var(--color) 0)
    var(--_p) var(--_p)/calc(100% - var(--b) - 2*var(--_p)) calc(100% - var(--b) - 2*var(--_p));
  transition: .3s linear, color 0s, background-color 0s;
  outline: var(--b) solid #0000;
  outline-offset: .6em;
  font-size: 16px;

  border: 0;

  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.button-89:hover,
.button-89:focus-visible{
  --_p: 0px;
  outline-color: var(--color);
  outline-offset: .05em;
}

.button-89:active {
  background: var(--gradient-color-btn);
  color: #fff;
}

.service-card{
    position: relative;
    display: block;
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0px 2px 15px 0px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}


.service-features i{
  font-size: 16px;
  padding-top: 2px;
}

.service-features li{
  margin-bottom: 10px;
  margin-top: 10px;
}
.service-card:hover{
    box-shadow: 0px 8px 30px 0px rgba(0, 0, 0, 0.12);
    transform: translateY(-5px);
}

.service-logo{
    position: relative;
    display: block;
    margin-bottom: 20px;
}

.service-logo img{
    max-width: 80px;
    height: auto;
    margin-bottom: 20px;
    margin-top: 20px;
}
.it-service-icon-box{
  position: absolute;
  top: -50;
  left: 50;
}
.it-services-section .it-service-card .service-bg{
  position: relative;
  top: 5px;
  left: 210px;
  width: 250px;
  height: 90px;
  object-fit: contain;
  border-radius: 8px;
  z-index: 10;
  opacity: 0.4;
  pointer-events: none;
  display: block !important;
}

.gps-services-section .sec-title h2{
  margin-bottom: 26px !important;
}

/* Hide background image on medium and smaller screens - only show on lg screens (992px+) */
@media only screen and (max-width: 991px){
  .it-services-section .it-service-card .service-bg{
    display: none !important;
  }
}

/* Responsive styles for small screens */
@media only screen and (max-width: 767px){
  .it-services-section .it-service-card .service-bg{
    display: none !important;
  }
  
  .it-services-section .it-service-icon-box{
    top: 150px;
    left: 20px;
    width: 60px;
    height: 60px;
  }
  
  .it-services-section .it-service-icon-box i{
    font-size: 28px;
  }
  
  .it-services-section .it-service-content{
    padding: 40px 20px 25px 20px;
  }
  
  .it-services-section .it-service-title{
    margin-bottom: 15px;
    margin-top: 0;
    font-size: 22px;
    line-height: 28px;
    padding-top: 0;
  }
  
  .it-services-section .it-service-description{
    font-size: 13px;
    line-height: 22px;
  }
}

@media only screen and (max-width: 575px){
  .it-services-section .it-service-card .service-bg{
    display: none !important;
  }
  
  .it-services-section .it-service-icon-box{
    top: 130px;
    left: 15px;
    width: 55px;
    height: 55px;
  }
  
  .it-services-section .it-service-icon-box i{
    font-size: 24px;
  }
  
  .it-services-section .it-service-image-box{
    height: 160px;
  }
  
  .it-services-section .it-service-content{
    padding: 35px 15px 20px 15px;
  }
  
  .it-services-section .it-service-title{
    margin-bottom: 15px;
    margin-top: 0;
    font-size: 20px;
    line-height: 26px;
    padding-top: 0;
  }
  
  .it-services-section .it-service-description{
    font-size: 12px;
    line-height: 20px;
  }
}

/* GPS Services Section - Subtitle Margin - Must be at end to override other rules */
.gps-services-section .sec-title .subtitle,
.gps-services-section .sec-title p.subtitle,
.gps-services-section .auto-container .sec-title .subtitle,
.gps-services-section .auto-container .sec-title p.subtitle,
section.gps-services-section .sec-title .subtitle,
section.gps-services-section .sec-title p.subtitle{
  margin-top: 26px !important;
  margin-bottom: 0 !important;
  display: block !important;
}

/* Service Modal Styles - Improved Modern Design */
.service-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  overflow-y: auto;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.modal-content {
  position: relative;
  background: #ffffff;
  border-radius: 16px;
  padding: 20px;
  max-width: 850px;
  width: 90%;
  max-height: 90vh;
  margin: 40px auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  z-index: 10000;
  overflow: hidden;
}

.modal-header {
  padding: 35px 45px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
  position: relative;
}

.modal-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #C29438, transparent);
}

.modal-logo {
  width: 120px;
  height: 100px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  /* background: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 2px solid #f0f0f0; */
  transition: all 0.3s ease;
}

.modal-logo:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(194, 148, 56, 0.2);
  border-color: #C29438;
}

.modal-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
}

.modal-title {
  flex: 1;
  font-size: 30px;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
  color: #1a1a1a;
  letter-spacing: -0.5px;
}

.modal-close {
  background: #f8f8f8;
  border: none;
  font-size: 24px;
  color: #666;
  cursor: pointer;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  transition: all 0.3s ease;
  line-height: 1;
  flex-shrink: 0;
  font-weight: 300;
}

.modal-close:hover {
  background: #C29438;
  color: #ffffff;
  transform: rotate(90deg);
}

.modal-body {
  padding: 45px 50px;
  overflow-y: auto;
  flex: 1;
  background: #ffffff;
}

.modal-body::-webkit-scrollbar {
  width: 10px;
}

.modal-body::-webkit-scrollbar-track {
  background: #f5f5f5;
  border-radius: 5px;
}

.modal-body::-webkit-scrollbar-thumb {
  background: #C29438;
  border-radius: 5px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
  background: #a67d2e;
}

.modal-description {
  font-size: 17px;
  line-height: 1.75;
  color: #4a4a4a;
  margin: 35px;
  padding: 25px 28px;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-radius: 12px;
  border-left: 4px solid #C29438;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  position: relative;
}

.modal-description::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(194, 148, 56, 0.2), transparent);
}

.modal-features,
.modal-benefits {
  margin-bottom: 35px;
  padding: 28px 32px;
  background: #fafbfc;
  border-radius: 12px;
  border: 1px solid #f0f0f0;
  transition: all 0.3s ease;
}

.modal-features:hover,
.modal-benefits:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  border-color: #e0e0e0;
}

.modal-features h3,
.modal-benefits h3 {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e8e8e8;
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-features h3::before,
.modal-benefits h3::before {
  content: '';
  width: 4px;
  height: 24px;
  background: linear-gradient(180deg, #C29438, #FFD700);
  border-radius: 2px;
  display: block;
}

.modal-features ul,
.modal-benefits ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.modal-features li,
.modal-benefits li {
  font-size: 15.5px;
  line-height: 1.85;
  color: #4a4a4a;
  margin-bottom: 14px;
  padding: 12px 16px 12px 40px;
  position: relative;
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #f0f0f0;
  transition: all 0.2s ease;
}

.modal-features li:hover,
.modal-benefits li:hover {
  background: #ffffff;
  border-color: #C29438;
  transform: translateX(4px);
  box-shadow: 0 2px 8px rgba(194, 148, 56, 0.1);
}

.modal-features li::before,
.modal-benefits li::before {
  content: '✓';
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  background: linear-gradient(135deg, #C29438, #FFD700);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(194, 148, 56, 0.3);
}

.modal-features li strong {
  color: #1a1a1a;
  font-weight: 600;
  display: inline-block;
  margin-right: 6px;
}

.modal-footer {
  padding: 30px 45px;
  border-top: 1px solid #f0f0f0;
  background: linear-gradient(135deg, #fafafa 0%, #ffffff 100%);
  text-align: center; 
  padding-right: 45px;
}

.modal-contact-btn {
  bottom: 20px;
  left: -35px;
  display: inline-block;
  padding: 14px 45px;
  background: var(--gradient-color-btn);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 4px 12px rgba(194, 148, 56, 0.25);
  position: relative;
  overflow: hidden;
}

.modal-contact-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.modal-contact-btn:hover::before {
  left: 100%;
}

.modal-contact-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(194, 148, 56, 0.35);
}

/* Responsive Modal Styles */
@media only screen and (max-width: 991px){
  .modal-header {
    padding: 30px 35px;
  }

  .modal-title {
    font-size: 26px;
  }

  .modal-body {
    padding: 35px 40px;
  }

  .modal-logo {
    width: 75px;
    height: 75px;
  }
}

@media only screen and (max-width: 767px){
  .modal-content {
    width: 95%;
    margin: 20px auto;
    max-height: 95vh;
    border-radius: 14px;
  }

  .modal-header {
    padding: 25px 20px;
    flex-wrap: wrap;
    gap: 15px;
  }

  .modal-logo {
    width: 70px;
    height: 70px;
    border-radius: 10px;
  }

  .modal-title {
    font-size: 24px;
    flex: 1 1 100%;
    order: 2;
  }

  .modal-close {
    order: 1;
    margin-left: auto;
    width: 38px;
    height: 38px;
    font-size: 22px;
  }

  .modal-body {
    padding: 30px 25px;
  }

  .modal-description {
    font-size: 16px;
    padding: 20px;
    margin-bottom: 28px;
  }

  .modal-features,
  .modal-benefits {
    margin-bottom: 28px;
    padding: 22px 24px;
  }

  .modal-features h3,
  .modal-benefits h3 {
    font-size: 20px;
    margin-bottom: 20px;
  }

  .modal-features h3::before,
  .modal-benefits h3::before {
    height: 20px;
  }

  .modal-features li,
  .modal-benefits li {
    font-size: 15px;
    margin-bottom: 12px;
    padding: 10px 14px 10px 38px;
  }

  .modal-features li::before,
  .modal-benefits li::before {
    width: 20px;
    height: 20px;
    font-size: 11px;
    left: 10px;
  }

  .modal-footer {
    padding: 25px 20px;
  }

  .modal-contact-btn {
    padding: 13px 35px;
    font-size: 15px;
    width: 100%;
  }
}