/* ===== Hero (shared base from before, still good) */
.hero {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
  background: radial-gradient(circle at top right, #15183b, #0b0f25 70%);
}

.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: url("/assets/accents/hero-purple.png") center/cover no-repeat;
  opacity: 0.35; filter: brightness(0.8) contrast(1.1);
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at center, rgba(138,92,255,.2), transparent 70%);
  z-index: 1;
}

.hero::before, .hero::after {
  pointer-events: none;
}

.hero-content {
  position: relative; z-index: 2;
  max-width: 800px; padding: 0 1rem;
  animation: fadeIn 1.2s ease;
}

.hero.combined {
  flex-direction: column;
  justify-content: flex-start; align-items: center;
  padding: 60px 5%;
  min-height: 80vh;
  text-align: center;
  z-index: 0;
}

.hero-content h1 {
  font-size: clamp(2.6rem, 6vw, 4rem);
  font-weight: 800; color: var(--accent);
  text-shadow: 0 4px 16px rgba(0, 202, 255, 0.4);
}

.hero-content p {
  font-size: 1.05rem; /* slightly tighter */
  color: #cfcfff; margin: 0.75rem 0 1.5rem;
}

/* Keep the CTA above cards & overlays */
.hero-cta {
  position: relative;
  z-index: 4;
  margin-top: 3.4rem;
}

/* ===== Services compact grid (Home only) */
.services-list.compact {
  width: min(1200px, 95%);
  margin: 2rem auto 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.services-list.compact .service-item {
  padding: .9rem 1rem;
  text-align: center;
  border-radius: 12px;
  background: rgba(17, 21, 40, 0.88);
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  backdrop-filter: saturate(120%) blur(4px);
}

.services-list.compact .service-item h3 {
  font-size: 1rem; color: var(--accent); margin-bottom: .35rem;
}

.services-list.compact .service-item small {
  color: #cfcfff; font-size: .8rem; opacity: .9;
}

.services-list.compact .service-item:hover {
  background: rgba(22, 26, 50, 0.95);
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(138, 92, 255, 0.35);
}

.services-list.compact .service-item:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Multi-col control */
@media (min-width: 1200px){ .services-list.compact{ grid-template-columns: repeat(5,1fr);} }
@media (min-width: 900px) and (max-width: 1199px){ .services-list.compact{ grid-template-columns: repeat(4,1fr);} }
@media (min-width: 700px) and (max-width: 899px){ .services-list.compact{ grid-template-columns: repeat(3,1fr);} }
@media (max-width: 699px){ .services-list.compact{ grid-template-columns: repeat(2,1fr);} }

/* ===== About */
.about-section {
  background: linear-gradient(180deg, #0d1022, #090b1a);
  padding: 120px 10%; /* slightly reduced */
  color: #e0e0e0; text-align: center;
}

.about-section h2 { color: var(--accent); font-size: 2.2rem; margin-bottom: 1.2rem; }

.about-intro {
  max-width: 800px; margin: 0 auto 2.4rem;
  color: #cfcfff; line-height: 1.65; font-size: 1.06rem;
}

.approach { margin: 2.2rem auto; max-width: 700px; text-align: left; }
.approach h3 { color: var(--accent); text-align: center; margin-bottom: 1.2rem; }
.about-cta { text-align: center; margin-top: 2.2rem; }

/* ===== Buttons ===== */
.btn-cta {
  display: inline-block;
  color: #fff;
  font-weight: 800;
  letter-spacing: .3px;
  padding: 1.15rem 2.6rem;
  border-radius: 999px;
  border: none;
  text-decoration: none;
  background: linear-gradient(90deg, #00d1ff, #8a5cff, #00d1ff);
  background-size: 200% 100%;
  animation: ctaGradient 6s linear infinite, pulseGlow 4s ease-in-out infinite;
  box-shadow: 0 10px 30px rgba(138, 92, 255, .35), inset 0 -2px 8px rgba(0,0,0,.35);
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
  transition: all .3s ease;
}

.btn-cta:hover {
  transform: translateY(-2px) scale(1.02);
  color: #fff;
  filter: brightness(1.1);
  text-shadow: 0 2px 6px rgba(0,0,0,0.8);
  box-shadow: 0 14px 36px rgba(138, 92, 255, .5), inset 0 -2px 10px rgba(0,0,0,.4);
}

/* Keyframes */
@keyframes ctaGradient {
  0% { background-position: 0% 0; }
  100% { background-position: 200% 0; }
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 10px 30px rgba(138, 92, 255, .35), inset 0 -2px 8px rgba(0,0,0,.35); }
  50% { box-shadow: 0 12px 40px rgba(138, 92, 255, .6), inset 0 -2px 8px rgba(0,0,0,.45); }
}
@keyframes ctaShine { 
  0%{left:-35%;opacity:0} 
  10%{opacity:.9} 
  50%{left:110%;opacity:0} 
  100%{left:110%;opacity:0} 
}
@keyframes fadeIn { 
  from{opacity:0; transform:translateY(20px)} 
  to{opacity:1; transform:translateY(0)} 
}
