.theme-onyx {
  background-color: #212529;
  color: rgba(255, 255, 255, 0.72);
  position: relative;
  overflow: hidden;
}

.theme-onyx::before {
  content: "";
  position: absolute;
  inset: -35%;
  background:
    radial-gradient(circle at 15% 20%, rgba(47, 128, 255, 0.08), transparent 28%),
    radial-gradient(circle at 85% 80%, rgba(59, 248, 251, 0.05), transparent 35%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.015), transparent 45%);
  pointer-events: none;
  z-index: 0;
}

.theme-onyx > * {
  position: relative;
  z-index: 1;
}

.theme-onyx .services-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.theme-onyx .card-onyx-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  align-items: stretch;
}

.theme-onyx .card-onyx {
  position: relative;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(50, 127, 250, 0.15);
  border-radius: 16px;
  padding: 24px;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  transition: all 0.35s ease;
  box-shadow:
    0 20px 45px rgba(0, 0, 0, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(12px);
}

.theme-onyx .card-onyx::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    800px circle at 0 0,
    rgba(59, 248, 251, 0.12),
    transparent 45%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
}

.theme-onyx .card-onyx:hover {
  transform: translateY(-8px);
  border-color: rgba(50, 127, 250, 0.65);
  box-shadow:
    0 30px 65px rgba(0, 0, 0, 0.45),
    0 0 35px rgba(47, 128, 255, 0.08);
}

.theme-onyx .card-onyx:hover::before {
  opacity: 1;
}

.theme-onyx .onyx-feature-cards .card-onyx,
.theme-onyx .onyx-process-cards .card-onyx {
  width: 100%;
  min-height: 180px;
}

.onyx-feature-cards-footer {
  position: relative;
  text-align: center;
  margin-top: 70px;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
}

.onyx-feature-cards-footer::before {
  content: "";
  display: block;
  width: 120px;
  height: 2px;
  margin: 0 auto 22px;
  background: linear-gradient(
    90deg,
    transparent,
    #2f80ff,
    transparent
  );
}

.onyx-profile-card {
  padding: 16px;
  background: rgba(33, 37, 41, 0.96);
  transform: translateY(-8px);
  border: 1px solid rgba(50, 127, 250, 0.18);
  border-radius: 14px;
  backdrop-filter: blur(14px);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.45),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.onyx-profile-header {
  min-height: 250px;
  border-radius: 10px;
  overflow: hidden;
}

.onyx-profile-avatar {
  margin-top: -105px !important;
  position: relative;
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
  z-index: 5;
}

.onyx-profile-avatar img {
  width: 180px !important;
  height: 180px !important;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    -14px 12px 0 rgba(28, 25, 20, 0.8),
    0 20px 35px rgba(0, 0, 0, 0.4);
}

.onyx-profile-name,
.onyx-profile-name * {
  font-family: 'Courier New', Courier, monospace;
  font-size: 34px !important;
  font-weight: 700;
  letter-spacing: 1.5px;
  margin-bottom: 8px !important;
  color: #fff;
}

.onyx-profile-role,
.onyx-profile-role * {
  font-family: 'Courier New', Courier, monospace;
  font-size: 16px !important;
  font-weight: 400;
  color: #b4b4b4;
  margin-bottom: 28px !important;
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid #2f80ff;
  width: 35ch;
  animation:
    typing 3.5s steps(35, end),
    blink-cursor 0.75s step-end infinite;
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 35ch;
  }
}

@keyframes blink-cursor {
  from,
  to {
    border-color: transparent;
  }
  50% {
    border-color: #2f80ff;
  }
}

.theme-onyx .card-onyx-layout {
  display: flex;
  align-items: center;
  gap: 24px;
  width: 100%;
}

.theme-onyx .card-onyx-icon {
  flex: 0 0 90px;
}

.theme-onyx .card-onyx-icon .wp-block-shortcode {
  width: 90px;
  height: 90px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    145deg,
    rgba(47, 128, 255, 0.14),
    rgba(47, 128, 255, 0.03)
  );
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow:
    inset 0 0 15px rgba(255, 255, 255, 0.03),
    0 0 25px rgba(47, 128, 255, 0.08);
  transition: all 0.35s ease;
}

.theme-onyx .card-onyx:hover .wp-block-shortcode {
  transform: scale(1.08) rotate(4deg);
}

.theme-onyx .card-onyx-icon img,
.theme-onyx .card-onyx-icon svg,
.theme-onyx .card-onyx-icon i {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.theme-onyx .card-onyx-content {
  flex: 1;
  min-width: 0;
}

.theme-onyx .card-onyx-content h3,
.theme-onyx .card-onyx-content h4 {
  margin: 0 0 14px;
  font-size: 22px;
  line-height: 1.35;
  color: #fff;
}

.theme-onyx .card-onyx-content p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.68);
}

.theme-onyx .onyx-btn {
  min-width: 58px;
  height: 58px;
  justify-content: center;
  border: 1px solid #2f80ff;
  background: linear-gradient(145deg, #2f80ff, #2563eb);
  box-shadow: 0 10px 25px rgba(47, 128, 255, 0.3);
}

.onyx-item {
  position: relative;
  z-index: 2;
}

.onyx-btn-circle {
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 5;
}

.onyx-btn-circle::before {
  content: "";
  position: absolute;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: rgba(33, 37, 41, 0.95);
  z-index: 1;
}

.onyx-btn-circle .kt-button,
.onyx-btn-circle .wp-block-button__link {
  position: relative;
  z-index: 2;
  width: 64px !important;
  height: 64px !important;
  min-width: 64px !important;
  min-height: 64px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  border: 1px solid rgba(50, 127, 250, 0.35);
  background: rgba(255, 255, 255, 0.02) !important;
  color: #2f80ff !important;
  font-size: 24px !important;
  font-weight: 700 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  transition: all 0.35s ease !important;
  box-shadow:
    0 0 0 6px rgba(47, 128, 255, 0.05),
    0 0 25px rgba(47, 128, 255, 0.15);
}

.onyx-btn-circle .kt-button:hover,
.onyx-btn-circle .wp-block-button__link:hover {
  transform: translateY(-6px) scale(1.05);
  background: rgba(47, 128, 255, 0.1) !important;
  border-color: rgba(50, 127, 250, 1);
  box-shadow:
    0 0 0 8px rgba(47, 128, 255, 0.08),
    0 0 35px rgba(47, 128, 255, 0.28);
}

@media (max-width: 1200px) {
  .theme-onyx .card-onyx-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .theme-onyx .services-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 40px;
  }

  .theme-onyx .services-button,
  .theme-onyx .services-button .kt-button {
    width: 100%;
  }

  .theme-onyx .card-onyx-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .theme-onyx .card-onyx {
    padding: 20px;
  }

  .theme-onyx .card-onyx-layout {
    gap: 18px;
    align-items: flex-start;
  }

  .theme-onyx .card-onyx-icon {
    flex: 0 0 70px;
  }

  .theme-onyx .card-onyx-icon .wp-block-shortcode {
    width: 70px;
    height: 70px;
    border-radius: 18px;
  }

  .theme-onyx .card-onyx-content h3,
  .theme-onyx .card-onyx-content h4 {
    font-size: 18px !important;
    margin-bottom: 10px;
  }

  .theme-onyx .card-onyx-content p {
    font-size: 14px;
    line-height: 1.6;
  }

  .onyx-item {
    padding-bottom: 50px;
  }

  .onyx-btn-circle {
    justify-content: flex-start;
  }

  .onyx-btn-circle .kt-button,
  .onyx-btn-circle .wp-block-button__link {
    width: 58px !important;
    height: 58px !important;
    min-width: 58px !important;
    min-height: 58px !important;
    font-size: 18px !important;
  }

  .onyx-profile-name,
  .onyx-profile-name * {
    font-size: 26px !important;
  }

  .onyx-profile-role,
  .onyx-profile-role * {
    font-size: 14px !important;
    width: 28ch;
  }
}