/*
Theme Name: Elite Byte Solutions
Theme URI: https://elitebytesolutions.com/
Author: Elite Byte Solutions
Description: Editable Secure Custom Fields WordPress theme for the Elite Byte Solutions website design.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: elite-byte-solutions
*/

html,
body {
  min-height: 100%;
  margin: 0;
}

.ebs-hero {
  background-position: center;
  background-size: cover;
}

.ebs-inner-hero {
  align-items: center;
  display: flex;
  min-height: 420px;
  overflow: hidden;
  padding-bottom: 96px;
  padding-top: 176px;
  position: relative;
}

.ebs-hero-grid {
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.18) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.18) 1px, transparent 1px);
  background-size: 60px 60px;
}

@media (max-width: 768px) {
  .ebs-inner-hero {
    min-height: 360px;
    padding-bottom: 72px;
    padding-top: 144px;
  }
}

.ebs-mega {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition: opacity 180ms ease, transform 180ms ease;
  width: min(calc(100vw - 32px), 920px);
}

.ebs-menu-parent::after {
  content: "";
  height: 28px;
  left: -18px;
  position: absolute;
  right: -18px;
  top: 100%;
}

.ebs-menu-parent:hover .ebs-mega,
.ebs-menu-parent:focus-within .ebs-mega {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.ebs-mega-services {
  left: 50%;
  max-height: calc(100vh - 112px);
  overflow-y: auto;
}

.ebs-mega-solutions {
  left: 50%;
  max-height: calc(100vh - 112px);
  overflow-y: auto;
  width: min(calc(100vw - 32px), 760px);
}

.ebs-mega-services-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 2.2fr);
}

.ebs-mega-feature {
  min-height: 100%;
}

.ebs-services-feature {
  background: #102464;
}

.ebs-services-feature::before {
  background: rgba(37, 99, 235, 0.22);
  border-radius: 46% 54% 64% 36% / 42% 46% 54% 58%;
  content: "";
  height: 180px;
  position: absolute;
  right: -70px;
  top: -64px;
  width: 180px;
}

.ebs-services-feature > * {
  position: relative;
  z-index: 1;
}

.ebs-mega-groups {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ebs-mega-solutions-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ebs-solutions-hero {
  align-items: center;
  background:
    radial-gradient(circle at 84% 12%, rgba(37, 99, 235, 0.2), transparent 28%),
    linear-gradient(135deg, #eff6ff 0%, #f8fbff 54%, #eef2ff 100%);
  border: 1px solid rgba(191, 219, 254, 0.75);
  border-radius: 18px;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 14px;
  overflow: hidden;
  padding: 22px 24px;
}

.ebs-solutions-orbit {
  flex: 0 0 auto;
  height: 86px;
  position: relative;
  width: 118px;
}

.ebs-solutions-orbit::before {
  border: 1px solid rgba(37, 99, 235, 0.22);
  border-radius: 999px;
  content: "";
  inset: 12px 4px;
  position: absolute;
  transform: rotate(-18deg);
}

.ebs-solutions-orbit span {
  background: #2563eb;
  border: 4px solid #fff;
  border-radius: 999px;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.28);
  height: 28px;
  position: absolute;
  width: 28px;
}

.ebs-solutions-orbit span:nth-child(1) {
  left: 14px;
  top: 12px;
}

.ebs-solutions-orbit span:nth-child(2) {
  right: 18px;
  top: 26px;
}

.ebs-solutions-orbit span:nth-child(3) {
  bottom: 10px;
  left: 48px;
}

.ebs-solutions-body {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) 220px;
}

.ebs-solution-link {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 16px;
  display: flex;
  gap: 14px;
  min-width: 0;
  padding: 14px;
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.ebs-solution-link:hover {
  background: #f8fbff;
  border-color: rgba(37, 99, 235, 0.18);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}

.ebs-solution-link-icon {
  align-items: center;
  background: #eff6ff;
  border-radius: 14px;
  color: #2563eb;
  display: flex;
  flex: 0 0 auto;
  height: 54px;
  justify-content: center;
  transition: background 180ms ease, color 180ms ease;
  width: 54px;
}

.ebs-solution-link:hover .ebs-solution-link-icon {
  background: #2563eb;
  color: #fff;
}

.ebs-solution-link p {
  color: #0f172a;
  font-size: 17px;
  font-weight: 750;
  line-height: 1.2;
  margin: 0 0 4px;
}

.ebs-solution-link small {
  color: #64748b;
  display: block;
  font-size: 14px;
  line-height: 1.25;
}

.ebs-solutions-aside {
  background: linear-gradient(160deg, #0f172a 0%, #172554 58%, #2563eb 100%);
  border-radius: 18px;
  color: #fff;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  padding: 18px;
  position: relative;
}

.ebs-solutions-aside::after {
  background: rgba(255, 255, 255, 0.11);
  border-radius: 46% 54% 67% 33% / 41% 46% 54% 59%;
  content: "";
  height: 130px;
  position: absolute;
  right: -54px;
  top: -42px;
  width: 130px;
}

.ebs-solutions-aside-kicker {
  color: #bfdbfe;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  margin: 0 0 14px;
  position: relative;
  text-transform: uppercase;
  z-index: 1;
}

.ebs-solutions-aside strong {
  display: block;
  font-size: 18px;
  line-height: 1.35;
  position: relative;
  z-index: 1;
}

.ebs-solutions-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 22px;
  position: relative;
  z-index: 1;
}

.ebs-solutions-chips span {
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #dbeafe;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 9px;
}

.ebs-solutions-cta {
  align-items: center;
  background: #0f172a;
  border-radius: 14px;
  color: #fff;
  display: flex;
  font-size: 14px;
  font-weight: 800;
  justify-content: space-between;
  margin-top: 14px;
  padding: 13px 16px;
  transition: background 180ms ease, transform 180ms ease;
}

.ebs-solutions-cta:hover {
  background: #2563eb;
  transform: translateY(-1px);
}

.ebs-dot-bg {
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.3) 1px, transparent 1px);
  background-size: 30px 30px;
}

.ebs-nav-link {
  position: relative;
}

.ebs-nav-link::after {
  background: currentColor;
  border-radius: 999px;
  bottom: -10px;
  content: "";
  height: 2px;
  left: 0;
  position: absolute;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
  width: 100%;
}

.ebs-menu-parent:hover .ebs-nav-link::after,
.ebs-menu-parent:focus-within .ebs-nav-link::after {
  transform: scaleX(1);
}

.ebs-mega-card {
  border: 1px solid transparent;
  min-width: 0;
}

.ebs-mega-card:hover {
  border-color: rgba(37, 99, 235, 0.18);
  transform: translateY(-2px);
}

.ebs-mega-card:hover .ebs-mega-icon {
  background: #2563eb;
  color: #fff;
}

.ebs-hero-slide {
  animation: ebsHeroSlide 24s infinite;
  inset: 0;
  opacity: 0;
  position: absolute;
  transform: scale(1.05);
}

.ebs-hero-slide:nth-child(1) {
  animation-delay: 0s;
}

.ebs-hero-slide:nth-child(2) {
  animation-delay: 6s;
}

.ebs-hero-slide:nth-child(3) {
  animation-delay: 12s;
}

.ebs-hero-slide:nth-child(4) {
  animation-delay: 18s;
}

@keyframes ebsHeroSlide {
  0%,
  100% {
    opacity: 0;
  }

  6%,
  25% {
    opacity: 1;
  }

  31% {
    opacity: 0;
    transform: scale(1.12);
  }
}

.ebs-stat-card::before {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(14, 165, 233, 0));
  border-radius: 999px;
  content: "";
  height: 120px;
  position: absolute;
  right: -55px;
  top: -55px;
  width: 120px;
}

.ebs-stat-card:hover {
  transform: translateY(-6px);
}

.ebs-tech-marquee {
  animation: ebsTechMarquee 32s linear infinite;
  width: max-content;
}

.ebs-tech-marquee:hover {
  animation-play-state: paused;
}

@keyframes ebsTechMarquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.ebs-solution-card {
  min-height: 100%;
}

.ebs-solution-card:hover {
  transform: translateY(-8px);
}

.ebs-card-image {
  clip-path: polygon(0 0, 100% 0, 100% 84%, 74% 100%, 0 90%);
}

.ebs-card-abstract {
  border-radius: 44% 56% 63% 37% / 42% 38% 62% 58%;
  filter: blur(0.2px);
  transition: transform 300ms ease;
}

.ebs-solution-card:hover .ebs-card-abstract {
  transform: rotate(18deg) scale(1.1);
}

.ebs-social-link:hover {
  transform: translateY(-3px);
}

@media (max-width: 1100px) {
  .ebs-mega-services-grid,
  .ebs-mega-groups,
  .ebs-mega-solutions-grid,
  .ebs-solutions-body {
    grid-template-columns: 1fr;
  }

  .ebs-mega-feature,
  .ebs-solutions-aside,
  .ebs-solutions-orbit {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ebs-hero-slide,
  .ebs-tech-marquee {
    animation: none;
  }

  .ebs-hero-slide:first-child {
    opacity: 1;
  }
}
