/* 2. Responsive Layout for services-split */
.services-split {
  display: flex;
  flex-direction: column;
  /* Default: Stack vertically for mobile */
  align-items: center;
  max-width: 1300px;
  margin: 40px auto;
  /* Reduced margin for mobile */
  padding: 40px 15px;
  gap: 40px;
  background-color: var(--section-bg);
  border-radius: 1rem;
}

/* Left Side (Text/Intro) */
.services-left {
  flex: 1 1 100%;
  /* Full width on mobile/tablet */
  display: flex;
  align-items: center;
}

.services-left-inner {
  max-width: 100%;
}

.services-left h2 {
  font-size: 2.25rem;
  /* Mobile size adjustment */
  font-weight: 700;
  margin-bottom: 20px;
  /* Using the gradient and mapped colors */
  background-image: linear-gradient(135deg, var(--accent-color), var(--button-bg));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  line-height: 1.2;
  font-family: 'Playfair Display', serif;
}

.services-left p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--secondary-text);
  margin-bottom: 16px;
}

/* Right Side (Grid) */
.services-right {
  flex: 1 1 100%;
  /* Full width on mobile/tablet */
}

.services-grid {
  /* Mobile: Stack cards in a single column */
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
  /* Reduced gap for mobile */
}

/* 3. Stagger Effect Adjustments for Responsiveness */
/* Disable stagger effect on small screens for cleaner vertical flow */
.services-grid> :nth-child(odd),
.services-grid> :nth-child(even) {
  transform: translateY(0);
}

/* Disable complex hover on mobile */
.services-grid> :nth-child(odd):hover,
.services-grid> :nth-child(even):hover {
  transform: translateY(0);
}

/* Service Cards (Styling cleanup and refinement) */
.service-card {
  padding: 25px;
  border-radius: 16px;
  background: #fff;
  /* Solid white background */
  border: 1px solid #e0e0e0;
  box-shadow: 0 4px 12px var(--shadow-color);
  text-align: left;
  transition: all 0.35s ease;
  cursor: pointer;
  position: relative;
  /* Needed for icon positioning */
  min-height: 180px;
  /* Ensure a minimum height for consistency */
}

.service-card:hover {
  transform: translateY(-3px);
  /* Lighter lift effect */
  border-color: var(--accent-color);
  box-shadow: 0 10px 20px rgba(5, 143, 72, 0.2);
  background: var(--bg-color);
}

/* Icons */
.service-card i {
  /* Simplified and centered icon styling */
  position: absolute;
  top: 25px;
  right: 25px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: var(--bg-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

/* Text */
.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  font-weight: 700;
  color: var(--primary-color);
}

.service-card p {
  font-size: 0.95rem;
  color: var(--secondary-text);
  line-height: 1.6;
}


/* ================================================= */
/* 4. MEDIA QUERIES FOR TABLET AND DESKTOP */
/* ================================================= */

/* Tablet View (768px and up) */
@media (min-width: 768px) {
  .services-grid {
    /* Tablet: Two columns */
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .services-left h2 {
    font-size: 2.75rem;
  }
}

/* Desktop View (1024px and up) */
@media (min-width: 1024px) {
  .services-split {
    /* Desktop: Two-column split layout */
    flex-direction: row;
    margin: 100px auto;
    padding: 40px 20px;
    gap: 60px;
    background-color: transparent;
    /* Assuming this section is against the body BG */
  }

  .services-left {
    flex: 0 0 35%;
    /* Fixed width for text column */
    padding-right: 20px;
  }

  .services-right {
    flex: 0 0 65%;
    /* Fixed width for grid column */
  }

  .services-left h2 {
    font-size: 3rem;
    /* Return to original desktop size */
  }

  .services-grid {
    /* Ensure 2 columns on desktop */
    grid-template-columns: repeat(2, 1fr);
  }

  /* Re-enable stagger effect for desktop aesthetics */
  .services-grid> :nth-child(odd) {
    transform: translateY(30px);
  }

  .services-grid> :nth-child(even) {
    transform: translateY(-30px);
  }

  /* Re-enable advanced hover effect */
  .services-grid> :nth-child(odd):hover {
    transform: translateY(15px) rotate(-1deg);
  }

  .services-grid> :nth-child(even):hover {
    transform: translateY(-45px) rotate(-1deg);
  }

  .service-card:hover {
    /* Override the general card hover for the stagger effect */
    transform: none;
  }
}

/* 2. Industries Section Container */
.industries-section {
  padding: 80px 20px;
  background-color: var(--section-bg);
  text-align: center;
}

/* Section Header */
.industries-header {
  max-width: 900px;
  margin: 0 auto 50px;
}

.industries-header h2 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  margin-bottom: 15px;
  font-family: 'Playfair Display', serif;
  color: var(--primary-color);
  font-weight: 800;
}

.industries-header p {
  font-size: 1.1rem;
  color: var(--secondary-text);
}

/* 3. Responsive Grid Container */
.industry-grid {
  display: grid;
  /* Default: 1 Column for Mobile */
  grid-template-columns: 1fr;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

/* 4. Industry Card Design */
.industry-card {
  background-color: var(--navbar-bg);
  /* White background */
  padding: 30px;
  border-radius: 12px;
  text-align: left;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 15px var(--shadow-color);
  transition: all 0.3s ease;
  position: relative;
}

.industry-card:hover {
  /* Highlight effect on hover */
  transform: translateY(-8px);
  box-shadow: 0 15px 30px var(--primary-shade);
  border-color: var(--secondary-color);
}

.industry-icon {
  font-size: 2rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: var(--button-text);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 3px 10px var(--primary-shade);
  transition: all 0.3s ease;
}

.industry-card:hover .industry-icon {
  background-color: var(--secondary-color);
  box-shadow: 0 3px 15px var(--secondary-shade);
  transform: rotate(5deg);
}

.industry-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.industry-card p {
  font-size: 1rem;
  color: var(--secondary-text);
}

/* ================================================= */
/* MEDIA QUERIES FOR RESPONSIVENESS */
/* ================================================= */

/* Tablet View (640px and up) */
@media (min-width: 640px) {
  .industry-grid {
    /* 2 Columns per row */
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop View (1024px and up) */
@media (min-width: 1024px) {
  .industry-grid {
    /* 3 Columns per row */
    grid-template-columns: repeat(3, 1fr);
  }
}


/* world map section */


.global-network {
  background: var(--bg-color);
  color: var(--text-color);
  text-align: center;
  padding: 100px 20px;
  position: relative;
  overflow: hidden;
}

.network-header {
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.network-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  background: linear-gradient(135deg, var(--accent-color), var(--button-bg));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.network-header p {
  font-size: 1.1rem;
  color: var(--secondary-text);
}

/* World Map */
.world-map {
  position: relative;
  width: 100%;
  max-width: 1200px;
  height: 600px;
  margin: auto;
  background: url('https://upload.wikimedia.org/wikipedia/commons/8/80/World_map_-_low_resolution.svg') center/cover no-repeat;
  filter: brightness(0.9) contrast(1.2) drop-shadow(0px 1px 1px rgba(255, 255, 255, 1));
}

/* Markers */
.marker {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  z-index: 10;
  /* ensures marker stays above map */
  box-shadow: 0 0 15px 6px rgba(255, 255, 255, 0.7);
  transform: translate(-50%, -50%);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.marker {
  position: absolute;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  z-index: 10;
}


@keyframes pulse {
  0% {
    transform: scale(0.8);
    opacity: 0.6;
  }

  50% {
    transform: scale(1.2);
    opacity: 1;
  }

  100% {
    transform: scale(0.8);
    opacity: 0.6;
  }
}


/* Ripple Animation */
.marker::before {
  content: "";
  position: absolute;
  width: 40px;
  height: 40px;
  border: 2px solid var(--accent-color);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: ripple 2.5s infinite;
  opacity: 0.6;
}

@keyframes ripple {
  0% {
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 0.6;
  }

  70% {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0;
  }

  100% {
    opacity: 0;
  }
}

/* Tooltip */
.marker::after {
  content: attr(data-label);
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.6);
  color: var(--bg-color);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0;
  white-space: nowrap;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.marker:hover::after {
  opacity: 1;
}

/* OPTIONAL glowing routes */
.route {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--accent-color);
  animation: glowRoute 5s linear infinite;
}

@keyframes glowRoute {
  0% {
    opacity: 0;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}