/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: #ffffff;
  color: #1a1a1a;
  line-height: 1.6;
}

/* Sections */
.services-section {
  padding: 80px 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

/* Typography */
.main-title {
  font-size: 48px;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 16px;
  line-height: 1.2;
}

.main-subtitle {
  font-size: 20px;
  color: #4b5563;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto;
}

/* Search Bar */
.search-container {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
  position: relative;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

#serviceSearch {
  width: 100%;
  padding: 16px 48px 16px 24px;
  border: 2px solid #e5e7eb;
  border-radius: 50px;
  font-size: 18px;
  transition: all 0.3s ease;
  outline: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

#serviceSearch:focus {
  border-color: #467ff7;
  box-shadow: 0 8px 24px rgba(70, 127, 247, 0.15);
}

.search-icon {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  stroke: #9ca3af;
  fill: none;
  stroke-width: 2;
  pointer-events: none;
  transition: stroke 0.3s ease;
}

#serviceSearch:focus + .search-icon {
  stroke: #467ff7;
}

/* Navigation Scroller Wrapper */
.nav-scroller-container {
  max-width: 100%;
  position: relative;
  margin-bottom: 80px;
  padding: 0 48px; /* Space for arrows */
}

.navigation-buttons {
  display: flex;
  overflow-x: auto;
  gap: 16px;
  padding: 4px 4px 16px 4px; /* Padding bottom for scrollbar/shadow space */
  scroll-behavior: smooth;
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.navigation-buttons::-webkit-scrollbar {
  display: none;
}

.nav-button {
  background: #ffffff;
  color: #467ff7 !important;
  border: 1px solid #e5e7eb;
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-button:hover {
  background: #f0f7ff !important;
  border-color: #467ff7;
  color: #2d5acc !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(70, 127, 247, 0.1);
}

.nav-button svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
}

/* Navigation Arrows */
.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  color: #4b5563;
  transition: all 0.2s ease;
}

.nav-arrow:hover {
  background: #f9fafb;
  border-color: #d1d5db;
  color: #1a1a1a;
  transform: translateY(-50%) scale(1.05);
}

.nav-arrow svg {
  width: 20px;
  height: 20px;
}

.nav-arrow-left {
  left: 0;
}

.nav-arrow-right {
  right: 0;
}

/* No Results Message */
.no-results-message {
  text-align: center;
  padding: 60px 20px;
  background: #f9fafb;
  border-radius: 16px;
  margin-bottom: 60px;
  animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.no-results-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  color: #9ca3af;
  background: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e5e7eb;
}

.no-results-icon svg {
  width: 32px;
  height: 32px;
}

.no-results-message h3 {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 8px;
}

.no-results-message p {
  color: #6b7280;
  font-size: 16px;
}

/* Service Cards */
.service-card {
  background: #ffffff;
  border: 2px solid #e5e7eb;
  border-radius: 20px;
  padding: 48px;
  margin-bottom: 60px;
  transition: all 0.3s ease;
  scroll-margin-top: 100px; /* For smooth anchor scrolling offset */
}

.service-card:hover {
  border-color: #467ff7;
  box-shadow: 0 12px 32px rgba(70, 127, 247, 0.15);
}

.service-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.service-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.service-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, #467ff7, #2d5acc);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.service-icon svg {
  width: 36px;
  height: 36px;
  stroke: #ffffff;
  fill: none;
  stroke-width: 2;
}

.service-title {
  font-size: 32px;
  font-weight: 800;
  color: #1a1a1a;
  line-height: 1.3;
  margin-bottom: 8px;
}

.service-description {
  font-size: 17px;
  line-height: 1.8;
  color: #4b5563;
  margin-bottom: 24px;
}

.service-features {
  list-style: none;
  margin-bottom: 24px;
}

.service-features li {
  padding-left: 32px;
  margin-bottom: 12px;
  position: relative;
  color: #4b5563;
  font-size: 16px;
  line-height: 1.6;
}

.service-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 8px;
  height: 8px;
  background: #467ff7;
  border-radius: 50%;
}

/* Video Container */
.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 125%;
  border-radius: 16px;
  overflow: hidden;
  background: #f8f9ff;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Buttons */
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(135deg, #467ff7, #2d5acc);
  color: #ffffff !important;
  padding: 16px 32px;
  border-radius: 12px;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(70, 127, 247, 0.25);
  width: fit-content;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(70, 127, 247, 0.35);
}

.cta-button svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

/* Scroll to Top */
.scroll-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #467ff7, #2d5acc);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(70, 127, 247, 0.3);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(70, 127, 247, 0.4);
}

.scroll-to-top svg {
  width: 28px;
  height: 28px;
  stroke: #ffffff;
  fill: none;
  stroke-width: 2.5;
}

/* Footer Navigation */
.navigation-footer {
  margin-top: 80px;
  padding-top: 60px;
  border-top: 2px solid #e5e7eb;
}

.footer-title {
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 32px;
}

/* Responsive */
@media (max-width: 1024px) {
  .navigation-buttons {
    grid-template-columns: repeat(3, 1fr); /* 3 columns on tablet */
  }

  .service-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .video-container {
    padding-bottom: 100%;
    max-width: 500px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .services-section {
    padding: 60px 16px;
  }

  .main-title {
    font-size: 36px;
  }

  .main-subtitle {
    font-size: 18px;
  }

  .navigation-buttons {
    grid-template-columns: repeat(2, 1fr); /* 2 columns on mobile (multiline) */
    margin-bottom: 60px;
    gap: 12px;
  }

  .nav-button {
    font-size: 15px;
    padding: 12px 16px;
    height: 100%;
  }

  .service-card {
    padding: 32px 24px;
    margin-bottom: 40px;
  }

  .service-icon {
    width: 64px;
    height: 64px;
  }

  .service-icon svg {
    width: 32px;
    height: 32px;
  }

  .service-title {
    font-size: 24px;
  }

  .service-description {
    font-size: 16px;
  }

  .service-features li {
    font-size: 15px;
  }

  .cta-button {
    font-size: 16px;
    padding: 14px 24px;
    width: 100%;
    justify-content: center;
  }

  .scroll-to-top {
    width: 48px;
    height: 48px;
    bottom: 24px;
    right: 24px;
  }

  .scroll-to-top svg {
    width: 24px;
    height: 24px;
  }

  .navigation-footer {
    margin-top: 60px;
    padding-top: 40px;
  }

  .footer-title {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .main-title {
    font-size: 28px;
  }

  .navigation-buttons {
    grid-template-columns: 1fr; /* 1 column on very small screens if needed, or keep 2 */
  }
  
  .nav-button {
    justify-content: center;
  }

  .service-title {
    font-size: 22px;
  }
}
