/* ================== HERO WITH VIDEO ================== */
.bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.8;
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 100vh;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
  margin-left: 80px;
  text-align: left;
  color: #fff;
}

/* ================== SECTION STYLING ================== */
.data-services,
.circle-section {
  text-align: center;
  padding: 80px 20px;
  background: #f8f9fa;
}

.data-services h2,
.circle-section h2 {
  font-size: 2rem;
  margin-bottom: 40px;
  color: #1d3557;
  font-weight: 700;
  text-align: left;
}

/* ================== GRID LAYOUT ================== */
.circle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
  justify-items: center;
}

/* ===== Circle Item ===== */
.circle-item {
  position: relative;
  text-align: center;
  width: 100%;
  max-width: 260px;
}

/* Circle style */
.circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--primary, #e63946);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 8px;
  cursor: pointer;
  transition: transform 0.3s ease, background 0.3s ease;
}

.circle:hover {
  transform: scale(1.15);
  background: #d62828;
}

/* Label under circle */
.circle-label {
  font-size: 0.95rem;
  font-weight: 500;
  color: #1d3557;
}

/* ================== CARD POPUP ================== */
.circle-card {
  position: relative;         
  margin-top: 12px;           
  width: 100%;
  max-width: 260px;
  background: #fff;
  color: #333;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
  overflow: hidden;

  /* Start collapsed */
  max-height: 0;
  opacity: 0;
  transform: scale(0.98);
  pointer-events: none;
  transition: max-height 0.4s ease, opacity 0.3s ease, transform 0.3s ease;
}

/* Expand on hover */
.circle-item:hover .circle-card {
  max-height: 500px;   /* enough height for content */
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
  margin-bottom: 20px; /* small push for next row */
}

/* Card image */
.circle-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
  border-radius: 12px 12px 0 0;
  margin-bottom: 12px;
}

/* Card content */
.circle-card .card-body {
  padding: 0 12px 16px;
  text-align: center;
}

.circle-card h4,
.circle-card p {
  text-align: center;
  margin: 0 auto;
  max-width: 220px;
  line-height: 1.6;
}
