.heero-services {
  position: relative;
  width: 100%;
  height: 100vh; /* Adjust height as needed */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.heero-services .heero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.1;
  z-index: -1;
  filter: brightness(0.7); /* Darkens background for better text visibility */
}

.heero-services::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(
    to bottom,
    var(--hero-fade-3),
    var(--hero-fade-2),
    var(--hero-fade-1)
  );
}

.heero-services .heero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 700px;
  padding: 1rem;
}

.heero-title {
  color: var(--accent-primary);
  font-size: 3.5rem;
  font-weight: 900;
  margin-bottom: 1rem;
  letter-spacing: -1px;
}

.heero-subtitle {
  font-size: 1.4rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  font-weight: 300;
  letter-spacing: 0.5px;
}

/* Optional: Fade-in animation */
.fade-in-up {
  animation: fadeInUp 1s ease-in-out forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.services-scroll-down {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 2px solid var(--accent-primary, #00d9ff);
  opacity: 0.9;
  border-radius: 50%;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
}

.services-scroll-down span {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-left: 2px solid var(--accent-primary, #00d9ff);
  border-bottom: 2px solid var(--accent-primary, #00d9ff);
  transform: rotate(-45deg);
  animation: bounce 1.5s infinite;
}

/* Hover effect */
.services-scroll-down:hover {
  background-color: var(--accent-primary, #00d9ff);
  border-color: var(--accent-primary, #00d9ff);
}

.services-scroll-down:hover span {
  border-color: #fff;
}

/* Bouncing animation */
@keyframes bounce {
  0%,
  100% {
    transform: translateY(-2px) rotate(-45deg);
  }
  50% {
    transform: translateY(1px) rotate(-45deg);
  }
}

/* Content */

/* === Content Section === */
.service-content-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding: 5rem 2rem;
  /* background: var(--bg-primary, #0a0e27); */
  color: var(--text-primary, #e0e6ff);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* === Section Title === */
.service-section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--accent-primary, #00d9ff);
}

/* === Services Container === */
.service-container {
  justify-content: center;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
  width: 100%;
  max-width: 1400px;
}

/* === Service Card === */
.service-card-1 {
  min-height: 500px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

/* Hover Glow & Lift */
.service-card-1:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 25px rgba(0, 217, 255, 0.25);
  border-color: rgba(0, 217, 255, 0.4);
}

/* === Service Image === */
.service-image-1 {
  border-radius: 1rem;
  width: 100%;
  height: 220px;
  transition: all 0.4s ease;
  object-fit: cover;
  border-radius: 15px;
  border: 2px solid var(--border-color);
  box-shadow: 0 0 30px rgba(0, 153, 204, 0.2);
}

.service-card-1:hover .service-image-1 {
  filter: brightness(1.1);
}

/* === Service Content === */
.service-content-1 {
  padding: 1.8rem;
  z-index: 2;
}

.service-content-1 h3 {
  font-size: 1.5rem;
  color: var(--accent-primary, #00d9ff);
  margin-bottom: 0.8rem;
}

.service-content-1 p {
  font-size: 1rem;
  color: var(--text-secondary, #cbd5e1);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.service-content-1 .summary-link {
  /* position: relative; */
  margin: 1rem auto;
  /* top: 10px; */
}

/* === Features List === */
.service-features-1 {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-features-1 li {
  display: flex;
  align-items: center;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
  color: var(--text-primary, #f8fafc);
}

.service-features-1 i {
  color: var(--accent-primary, #00d9ff);
  margin-right: 8px;
}

/* === Animation === */
.fade-in-up {
  opacity: 0;
  transform: translateY(40px);
  animation: fadeInUp 1s ease forwards;
}

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

/* FORM CSS */

.content-section {
  padding: 0 2rem 2rem 2rem;
}

.services-form-hero {
  height: 25vh;
}

.hero-content {
  padding: 0;
  margin-top: 3rem;
}

.services-form-hero .hero-content {
  text-align: center;
}

.form-grid .contact-form #contactForm {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
}

.form-grid .contact-form .form-group {
  flex: 1 1 45%; /* Two per row */
  display: flex;
  flex-direction: column;
  max-width: 50%;
}

.form-grid .contact-form button {
  flex: 0 0 auto; /* Prevents it from stretching */
  align-self: center; /* Centers the button horizontally */
  padding: 0.8rem 2rem; /* Comfortable sizing */
  margin: 0 auto;
}

/* Networking */
.network-card {
  margin-top: 3rem;
  position: relative;
  width: 100%;
  max-width: 1400px;
}

.network-card h2 {
  font-size: 2.5rem;
  color: var(--accent-primary, #00d9ff);
  /* margin-bottom: 0.8rem; */
  margin: 1rem auto 2rem auto;
  text-align: center;
}

/* Network content flex layout for 2 columns */
.network-content {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
}

/* Each column styling */
.network-column {
  flex: 1;
  min-width: 300px;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  align-items: center; /* centers content horizontally */
  /* text-align: center; centers text inside */
}

/* Optional: add spacing for headings and lists */
.network-column h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  color: var(--accent-primary);
}

.network-column ul.network-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.network-column ul.network-features li {
  margin-bottom: 1rem;
  line-height: 1.5;
}

.network-column ul.network-features li i {
  color: var(--accent-primary);
  margin-right: 0.5rem;
}

.network-image-section {
  display: flex;
  justify-content: center; /* center horizontally */
  align-items: center; /* align vertically */
  gap: 1.5rem; /* space between images */
  margin: 2rem 0;
}

.network-image-section .network-image {
  max-width: 48%;
  height: auto;
  object-fit: contain;
  border-radius: 1rem;
  transition: all 0.4s ease;
  border-radius: 15px;
  border: 2px solid var(--border-color);
  box-shadow: 0 0 30px rgba(0, 153, 204, 0.2);
}

/* .network-image {
  object-fit: cover;
  width: 100%;
  height: 220px;
} */

/* === Modal Overlay === */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 10, 25, 0.85);
  backdrop-filter: blur(6px);
  display: none; /* hidden by default */
  justify-content: center;
  align-items: center;
  z-index: 999;
  padding: 1rem;
  overflow: hidden; /* prevent double scroll on body */
}

/* === Modal Content === */
.modal-content {
  background: var(--bg-primary, #0a0e27);
  border: 1px solid rgba(0, 217, 255, 0.25);
  border-radius: 1rem;
  box-shadow: 0 0 30px rgba(0, 217, 255, 0.2);
  padding: 2rem;
  max-width: 1000px;
  width: 100%;
  max-height: 90vh; /* limits height to viewport */
  overflow-y: auto; /* only vertical scroll inside */
  color: var(--text-primary, #e0e6ff);
  position: relative;
  animation: fadeInUp 0.8s ease forwards;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-primary, #00d9ff) transparent;
}

/* === Custom Scrollbar for WebKit Browsers === */
.modal-content::-webkit-scrollbar {
  width: 6px;
}
.modal-content::-webkit-scrollbar-thumb {
  background: var(--accent-primary, #00d9ff);
  border-radius: 10px;
}

/* === Close Button === */
.close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 2rem;
  color: var(--accent-primary, #00d9ff);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: 0.3s;
}

.close-modal:hover {
  color: #fff;
  transform: scale(1.1);
}

/* === Modal Heading === */
.modal-content h3 {
  text-align: center;
  color: var(--accent-primary, #00d9ff);
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
}

/* === Table Styling === */
.table-wrapper {
  overflow-x: auto;
  margin-top: 1rem;
}

.services-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  color: var(--text-secondary, #cbd5e1);
  table-layout: fixed; /* helps wrapping */
  word-wrap: break-word;
}

.services-table th,
.services-table td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  vertical-align: top;
  font-size: 1rem;
}

.services-table th {
  background: rgba(0, 217, 255, 0.1);
  color: var(--accent-primary, #00d9ff);
  border-bottom: 1px solid rgba(0, 217, 255, 0.3);
}

.services-table tr:hover {
  background: rgba(0, 217, 255, 0.05);
}

/* === Link to open modal === */
.services-link {
  margin: 2rem auto 0 auto;
  display: flex;
  justify-content: center;
}

.services-link a {
  font-size: larger;
  text-decoration: none;
  color: var(--accent-primary, #00d9ff);
  cursor: pointer;
  transition: color 0.3s ease;
}

.services-link a:hover {
  text-decoration: underline;
  color: #88d6fa;
}

/* === Responsive Adjustments === */
@media (max-width: 1024px) {
  .modal-content {
    max-width: 90%;
    padding: 1.5rem;
    max-height: 85vh;
  }

  .network-column {
    padding: 0 1rem;
  }
}

@media (max-width: 768px) {
  .modal-content {
    padding: 1.2rem;
    max-width: 95%;
    max-height: 80vh;
  }

  .modal-content h3 {
    font-size: 1.4rem;
    margin-top: 2rem;
  }

  .services-table th,
  .services-table td {
    font-size: 0.85rem;
    padding: 0.6rem;
  }

  .table-wrapper {
    overflow-x: hidden; /* avoid horizontal scroll */
  }

  .network-column h3 {
    font-size: 1.3rem;
  }

  .network-column ul.network-features li {
    font-size: 0.95rem;
    font-weight: 100;
    margin-bottom: 0.4rem;
  }
}

/* === Responsive Adjustments === */

@media (max-width: 1024px) {
  .services-form-hero {
    min-height: 25vh;
  }
}

@media (max-width: 600px) {
  .network-image-section .network-image {
    max-width: 100%;
  }
    .nn {
    display: none;
  }
}

@media (max-width: 768px) {
  .heero-title {
    font-size: 2.5rem;
  }

  .heero-subtitle {
    font-size: 1rem;
  }

  .service-card-1 {
    flex-direction: column !important;
  }

  .services-form-hero {
    height: 25vh;
  }
  .form-grid .contact-form .form-group {
    flex: 1 1 100%;
    max-width: 100%;
  }
  .service-image-1 {
    height: 200px;
  }
}
