/* NAVIGATION BAR STYLING */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #0d1b2a;
  color: white;
  padding: 20px 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0, 255, 255, 0.1);
  box-sizing: border-box;
}

.logo {
  font-size: 1.5rem;
  font-weight: 600;
  color: #00fff7;
}

.nav-links a {
  margin-left: 30px;
  text-decoration: none;
  color: #cccccc;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #ff7f50;
}

@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
  }

  .nav-links {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .nav-links a {
    margin-left: 0;
  }
}

/*end*/


body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: linear-gradient(180deg, #0a0f1c, #0f1a2f);
  color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.services-section {
  width: 100%;
  max-width: 1200px;
  padding: 60px 20px;
  text-align: center;
}

.section-title {
  font-size: 2.8rem;
  color: #50f3ff; /* coral accent */
  margin-bottom: 50px;
  text-shadow: 0 0 10px rgba(255, 127, 80, 0.6);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.service-card {
  background: #141c2b;
  border-radius: 16px;
  padding: 25px 20px;
  transition: 0.3s ease;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: visible;
  z-index: 1;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 25px rgba(255, 127, 80, 0.4), 0 0 60px rgba(255, 127, 80, 0.2);
  z-index: 1000;  /* ADD THIS so hovered card comes to top */
}

.service-card h2 {
  color: #ffffff;
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.service-card p {
  color: #cccccc;
  font-size: 0.95rem;
  line-height: 1.5;
}

.service-card.empty {
  background: transparent;
  box-shadow: none;
  border: none;
  pointer-events: none;
}


/*popup comment */


.tooltip {
  position: absolute;
  top: 120px;
  bottom: -120%; /* Push further down */
  left: 50%;
  transform: translateX(-50%);
  background: rgba(20, 20, 20, 0.95);
  color: #f2f2f2;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 1.2rem;
  width: 280px;
  line-height: 1.4;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  box-shadow: 0 12px 20px rgba(0, 255, 255, 0.25); /* subtle glow */
  z-index: 2000; /* Update to ensure it sits above all other elements */
  text-align: center;
}

/* Tooltip arrow */
.tooltip::after {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 8px;
  border-style: solid;
  border-color: transparent transparent rgba(20, 20, 20, 0.95) transparent;
}

/* Show tooltip on hover */
.service-card:hover .tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(-4px);
}


/*tool section */


.tool-carousel {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 20px 0;
  margin-bottom: 60px;
}

.carousel-track {
  display: flex;
  gap: 20px;
  padding: 20px;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
}

.tool-card {
  flex: 0 0 300px;
  background: #141c2b;
  border-radius: 16px;
  padding: 20px;
  scroll-snap-align: start;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: #fff;
  transition: transform 0.3s ease;
}

.tool-card:hover {
  transform: scale(1.03);
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.15);
}


