/* ========== GLOBAL FIX FOR HORIZONTAL SCROLL ========== */
body {
  overflow-x: hidden;
  width: 100%;
}

html {
  overflow-x: hidden;
  width: 100%;
}

/* ========== SERVICES SECTION ========== */

.services-section {
  background: #ffffff;
  padding-top: 100px;
  padding-bottom: 100px;
  position: relative;
}

.services-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to bottom, #f8f9fa 0%, transparent 100%);
  pointer-events: none;
}

.services-section .container {
  position: relative;
  z-index: 1;
}

/* ========== SERVICE ROW LAYOUT ========== */

.service-row {
  display: flex;
  align-items: center;
  gap: 50px;
  margin-bottom: 60px;
  background: #ffffff;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.service-row::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #ff6a00, #ff8533);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.service-row:hover::before {
  transform: scaleX(1);
}

.service-row:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(255, 106, 0, 0.15);
}

.service-row:last-child {
  margin-bottom: 0;
}

/* Featured Service */
.service-row.featured {
  background: linear-gradient(135deg, #fff8f5 0%, #ffffff 100%);
  border: 2px solid rgba(255, 106, 0, 0.2);
  box-shadow: 0 8px 30px rgba(255, 106, 0, 0.2);
}

.featured-label {
  position: absolute;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, #ff6a00, #ff8533);
  color: #fff;
  padding: 8px 20px;
  border-radius: 25px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(255, 106, 0, 0.3);
}

/* Reverse layout for alternating rows */
.service-row.reverse {
  flex-direction: row-reverse;
}

/* ========== ICON CONTAINER ========== */

.service-icon-container {
  flex: 0 0 350px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #fff5f0 0%, #ffe8dc 100%);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}

.service-icon-container::before {
  content: "";
  position: absolute;
  width: 200px;
  height: 200px;
  background: radial-gradient(
    circle,
    rgba(255, 106, 0, 0.1) 0%,
    transparent 70%
  );
  border-radius: 50%;
  top: -50px;
  right: -50px;
}

.service-icon-container::after {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  background: radial-gradient(
    circle,
    rgba(255, 106, 0, 0.08) 0%,
    transparent 70%
  );
  border-radius: 50%;
  bottom: -30px;
  left: -30px;
}

.service-icon-large {
  width: 150px;
  height: 150px;
  background: linear-gradient(135deg, #ff6a00, #ff8533);
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
  box-shadow: 0 10px 30px rgba(255, 106, 0, 0.4);
  position: relative;
  z-index: 1;
  animation: iconFloat 3s infinite ease-in-out;
}

.service-row:hover .service-icon-large {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 15px 40px rgba(255, 106, 0, 0.5);
}

.service-icon-large i {
  font-size: 72px;
  color: #ffffff;
}

@keyframes iconFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* ========== SERVICE CONTENT ========== */

.service-content-main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-heading {
  font-size: 32px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 15px;
  transition: color 0.3s ease;
  line-height: 1.3;
}

.service-row:hover .service-heading {
  color: #ff6a00;
}

.service-text {
  font-size: 16px;
  color: #555;
  line-height: 1.8;
  margin-bottom: 25px;
}

/* ========== FEATURE LIST ========== */

.service-features-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid #f0f0f0;
}

.feature-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 106, 0, 0.08);
  color: #ff6a00;
  font-size: 13px;
  font-weight: 600;
  border-radius: 20px;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 106, 0, 0.15);
}

.feature-item i {
  font-size: 14px;
}

.service-row:hover .feature-item {
  background: linear-gradient(135deg, #ff6a00, #ff8533);
  color: #ffffff;
  transform: translateY(-2px);
  border-color: transparent;
  box-shadow: 0 3px 10px rgba(255, 106, 0, 0.2);
}

/* ========== REVEAL ANIMATIONS ========== */

.revealY {
  position: relative;
  transform: translateY(80px);
  opacity: 0;
  transition: all 0.8s ease;
}

.revealY.active {
  transform: translateY(0);
  opacity: 1;
}

.revealX {
  position: relative;
  transform: translateX(-120px);
  opacity: 0;
  transition: all 0.8s ease;
}

.revealX.active {
  transform: translateX(0);
  opacity: 1;
}

.revealX1 {
  position: relative;
  transform: translateX(120px);
  opacity: 0;
  transition: all 0.8s ease;
}

.revealX1.active {
  transform: translateX(0);
  opacity: 1;
}

/* ========================================
   RESPONSIVE BREAKPOINTS
======================================== */

/* Large Desktops (1920px and above) */
@media (min-width: 1920px) {
  .services-section {
    padding-top: 120px;
    padding-bottom: 120px;
  }

  .service-row {
    padding: 50px;
    gap: 60px;
  }

  .service-icon-container {
    flex: 0 0 400px;
    height: 350px;
  }

  .service-icon-large {
    width: 180px;
    height: 180px;
    border-radius: 35px;
  }

  .service-icon-large i {
    font-size: 84px;
  }

  .service-heading {
    font-size: 36px;
  }

  .service-text {
    font-size: 18px;
  }

  .feature-item {
    font-size: 14px;
    padding: 9px 18px;
  }
}

/* Tablets and Small Laptops (992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
  .services-section {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .service-row {
    padding: 35px 30px;
    gap: 40px;
  }

  .service-icon-container {
    flex: 0 0 300px;
    height: 280px;
  }

  .service-icon-large {
    width: 130px;
    height: 130px;
  }

  .service-icon-large i {
    font-size: 64px;
  }

  .service-heading {
    font-size: 28px;
  }

  .service-text {
    font-size: 15px;
  }

  .feature-item {
    font-size: 12px;
    padding: 7px 14px;
  }
}

/* Tablets Portrait (768px - 991px) */
@media (max-width: 991px) {
  .revealX {
    transform: translateY(60px) translateX(0) !important;
    opacity: 0;
  }

  .revealX.active {
    transform: translateY(0) translateX(0) !important;
    opacity: 1;
  }

  .services-section {
    padding-top: 70px;
    padding-bottom: 70px;
  }

  .service-row {
    flex-direction: column !important;
    gap: 30px;
    padding: 30px;
    margin-bottom: 40px;
  }

  .service-icon-container {
    flex: 0 0 auto;
    width: 100%;
    height: 250px;
  }

  .service-icon-large {
    width: 130px;
    height: 130px;
  }

  .service-icon-large i {
    font-size: 64px;
  }

  .service-heading {
    font-size: 26px;
  }

  .service-text {
    font-size: 15px;
  }

  .service-features-list {
    padding-top: 18px;
  }

  .feature-item {
    font-size: 12px;
    padding: 7px 14px;
  }
}

/* Mobile Landscape & Large Phones (576px - 767px) */
@media (min-width: 576px) and (max-width: 767px) {
  .services-section {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .service-row {
    padding: 25px;
    margin-bottom: 35px;
  }

  .service-icon-container {
    height: 220px;
  }

  .service-icon-large {
    width: 120px;
    height: 120px;
  }

  .service-icon-large i {
    font-size: 58px;
  }

  .service-heading {
    font-size: 24px;
  }

  .service-text {
    font-size: 14px;
  }
}

/* Mobile Portrait (up to 575px) */
@media (max-width: 575px) {
  .revealX {
    transform: translateY(40px) translateX(0) !important;
    opacity: 0;
  }

  .revealY {
    transform: translateY(40px) !important;
  }

  .services-section {
    padding-top: 50px;
    padding-bottom: 50px;
  }

  .services-section::before {
    height: 150px;
  }

  .service-row {
    flex-direction: column !important;
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 30px;
    gap: 20px;
  }

  .service-icon-container {
    flex: 0 0 auto;
    width: 100%;
    height: 200px;
  }

  .service-icon-large {
    width: 110px;
    height: 110px;
    border-radius: 25px;
  }

  .service-icon-large i {
    font-size: 52px;
  }

  .featured-label {
    font-size: 11px;
    padding: 6px 15px;
    top: 15px;
    right: 15px;
  }

  .service-heading {
    font-size: 22px;
    margin-bottom: 12px;
  }

  .service-text {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
  }

  .service-features-list {
    padding-top: 15px;
    gap: 8px;
  }

  .feature-item {
    font-size: 11px;
    padding: 6px 12px;
  }

  .feature-item i {
    font-size: 12px;
  }
}

/* Extra Small Devices (up to 375px) */
@media (max-width: 375px) {
  .service-row {
    padding: 18px 15px;
  }

  .service-icon-container {
    height: 180px;
  }

  .service-icon-large {
    width: 100px;
    height: 100px;
  }

  .service-icon-large i {
    font-size: 48px;
  }

  .service-heading {
    font-size: 20px;
  }

  .service-text {
    font-size: 13px;
  }

  .feature-item {
    font-size: 10px;
    padding: 5px 10px;
  }
}

/* Very Small Devices (up to 320px) */
@media (max-width: 320px) {
  .service-icon-container {
    height: 160px;
  }

  .service-icon-large {
    width: 90px;
    height: 90px;
  }

  .service-icon-large i {
    font-size: 44px;
  }

  .service-heading {
    font-size: 18px;
  }
}

/* Landscape Orientation (Mobile) */
@media (max-height: 500px) and (orientation: landscape) {
  .services-section {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .service-row {
    margin-bottom: 25px;
  }

  @keyframes iconFloat {
    0%,
    100% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(-5px);
    }
  }
}

/* Tablet Landscape */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
  .services-section {
    padding-top: 90px;
    padding-bottom: 90px;
  }

  .service-row {
    padding: 35px 30px;
  }

  .service-icon-container {
    height: 260px;
  }
}
