/* =====================================================
   HERO SECTION UPGRADE — hero-carousel.css
   Homepage hero section only (index.php):
   - Right side: large-format project carousel with
     arrow navigation, layered animated background
     (gradient blobs, dot-grid, rotating ring), and
     floating tech orbit icons — inspired by
     webpenter.com's hero showcase, built bigger and
     bolder for a premium feel.
   - Left side: the two hero CTA buttons, restyled as
     a vertical stack.
   The name/typed-role content and every other section of
   the site are untouched. Reuses existing tokens (--r-l,
   --sh-lg, --glass, --border, --grad, --ff-d, --tm, --ease).
   ===================================================== */

/* ═══════════════════════════════════════════════════════
   RIGHT SIDE — EXPANDED CAROUSEL + PREMIUM BACKDROP
   ═══════════════════════════════════════════════════════ */

/* Bleed the whole visual past the Bootstrap column for a
   bigger, more confident footprint without touching any
   other section's grid. */
.hmc-expand {
  position: relative;
  width: 100%;
}

/* ─── LAYERED BACKDROP ─────────────────────────────── */
.hmc-deco-grid {
  position: absolute;
  inset: -12% -8%;
  z-index: 0;
  background-image:
    radial-gradient(circle, rgba(99, 102, 241, .35) 1px, transparent 1.4px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 55% 45%, #000 40%, transparent 78%);
  mask-image: radial-gradient(ellipse 60% 55% at 55% 45%, #000 40%, transparent 78%);
  opacity: .55;
  pointer-events: none;
  animation: hmcGridDrift 26s linear infinite;
}

@keyframes hmcGridDrift {
  0% {
    background-position: 0 0;
  }

  100% {
    background-position: 78px 52px;
  }
}

.hmc-deco-shape {
  position: absolute;
  z-index: 0;
  border-radius: 42% 58% 63% 37% / 46% 40% 60% 54%;
  filter: blur(4px);
  pointer-events: none;
}

.hmc-deco-shape.shape-a {
  top: -12%;
  right: -16%;
  width: 72%;
  height: 58%;
  background: var(--grad);
  opacity: .28;
  transform: rotate(18deg);
  animation: hmcShapeDrift 9s ease-in-out infinite;
}

.hmc-deco-shape.shape-b {
  bottom: -16%;
  left: -14%;
  width: 54%;
  height: 44%;
  background: linear-gradient(135deg, var(--cyan), var(--indigo));
  opacity: .18;
  transform: rotate(-12deg);
  animation: hmcShapeDrift 11s ease-in-out infinite reverse;
}

[data-theme="light"] .hmc-deco-shape.shape-a {
  opacity: .32;
}

[data-theme="light"] .hmc-deco-shape.shape-b {
  opacity: .22;
}

@keyframes hmcShapeDrift {

  0%,
  100% {
    transform: rotate(18deg) translate(0, 0) scale(1);
  }

  50% {
    transform: rotate(24deg) translate(-10px, 12px) scale(1.06);
  }
}

.hmc-deco-ring {
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 50%;
  width: 118%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 1.5px dashed rgba(99, 102, 241, .28);
  border-radius: 50%;
  pointer-events: none;
  animation: hmcRingSpin 40s linear infinite;
}

.hmc-deco-ring::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 50%;
  width: 8px;
  height: 8px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 10px 2px var(--cyan);
}

@keyframes hmcRingSpin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {

  .hmc-deco-grid,
  .hmc-deco-shape,
  .hmc-deco-ring {
    animation: none !important;
  }
}

/* ─── CARD — bigger, bolder ─────────────────────────── */
.hmc-card {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4 / 3.15;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--sh-lg), inset 0 0 0 1px rgba(255, 255, 255, .05), 0 0 0 1px rgba(99, 102, 241, .08), 0 30px 70px -20px rgba(99, 102, 241, .35);
}

/* Subtle glass sheen along the top edge for a premium finish */
.hmc-card::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .02) 30%, transparent 48%),
    linear-gradient(0deg, rgba(255, 255, 255, .05), transparent 12%);
}

/* ─── SLIDES ────────────────────────────────────────── */
.hmc-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.01);
  transition: opacity .75s var(--ease), transform 5s linear, visibility 0s linear .75s;
}

.hmc-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  transition: opacity .75s var(--ease), transform 5s linear, visibility 0s;
}

.hmc-slide-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(155deg, rgba(99, 102, 241, .26), transparent 55%),
    linear-gradient(0deg, rgba(5, 12, 24, .9) 0%, rgba(5, 12, 24, .46) 50%, rgba(5, 12, 24, .08) 80%);
}

[data-theme="light"] .hmc-slide-overlay {
  background:
    linear-gradient(155deg, rgba(99, 102, 241, .3), transparent 55%),
    linear-gradient(0deg, rgba(5, 12, 24, .88) 0%, rgba(5, 12, 24, .44) 50%, rgba(5, 12, 24, .06) 80%);
}

/* ─── SLIDE CONTENT ─────────────────────────────────── */
.hmc-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 2.25rem 2.1rem 2.4rem;
}

.hmc-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: #fff;
  background: var(--grad);
  padding: .34rem .8rem;
  border-radius: 999px;
  box-shadow: var(--sh-glow);
  margin-bottom: 1.1rem;
}

.hmc-title {
  font-family: var(--ff-d);
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
  margin-bottom: .55rem;
  text-shadow: 0 2px 16px rgba(0, 0, 0, .4);
}

.hmc-sub {
  font-size: .92rem;
  color: rgba(255, 255, 255, .85);
  line-height: 1.55;
  margin: 0;
  max-width: 85%;
}

/* ─── ARROW NAVIGATION ─────────────────────────────── */
.hmc-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .95rem;
  color: #fff;
  background: rgba(5, 12, 24, .38);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 50%;
  cursor: pointer;
  transition: background var(--tm) var(--ease), transform var(--tm) var(--spring), border-color var(--tm) var(--ease);
}

.hmc-arrow:hover {
  background: var(--grad);
  border-color: transparent;
  transform: translateY(-50%) scale(1.08);
}

.hmc-arrow-prev {
  left: 1.1rem;
}

.hmc-arrow-next {
  right: 1.1rem;
}

/* ─── DOTS ──────────────────────────────────────────── */
.hmc-dots {
  position: absolute;
  bottom: 1.35rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.hmc-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .4);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background var(--tm) var(--ease), transform var(--tm) var(--ease), box-shadow var(--tm) var(--ease);
}

.hmc-dot.is-active {
  background: #fff;
  transform: scale(1.25);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .25);
}

/* ─── FLOATING TECH ORBIT ICONS ─────────────────────── */
.hmc-orbit {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

/* Soft ambient halo behind the visuals — pure depth, no clutter */
.hmc-orbit::before {
  content: '';
  position: absolute;
  top: 4%;
  right: -6%;
  width: 64%;
  height: 60%;
  background: radial-gradient(closest-side, rgba(99, 102, 241, .14), rgba(34, 211, 238, .06) 55%, transparent 78%);
  filter: blur(8px);
}

/* Minimal floating spark accents */
.hmc-orbit::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(103, 232, 249, .9) 1.5px, transparent 3px),
    radial-gradient(circle, rgba(165, 180, 252, .85) 1.5px, transparent 3px),
    radial-gradient(circle, rgba(255, 255, 255, .75) 1px, transparent 2px);
  background-repeat: no-repeat;
  background-position:
    87% 11%,
    6% 31%,
    47% 5%;
}

.hmc-orb-icon {
  position: absolute;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--indigo-lt);
  background: var(--glass);
  background-image: linear-gradient(155deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, 0) 55%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 50%;
  box-shadow:
    var(--sh-sm),
    inset 0 1px 0 rgba(255, 255, 255, .22),
    0 0 0 4px rgba(99, 102, 241, .07),
    0 0 20px -6px rgba(99, 102, 241, .5);
  animation: hmcOrbFloat 3.6s ease-in-out infinite;
}

.hmc-orb-icon.o1 {
  top: -20px;
  left: 12%;
  animation-delay: 0s;
}

.hmc-orb-icon.o2 {
  top: 20%;
  right: -24px;
  animation-delay: .5s;
}

.hmc-orb-icon.o3 {
  bottom: 24%;
  left: -26px;
  animation-delay: 1s;
}

.hmc-orb-icon.o4 {
  bottom: -20px;
  right: 18%;
  animation-delay: 1.5s;
}

@keyframes hmcOrbFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hmc-orb-icon {
    animation: none !important;
  }

  .hmc-slide {
    transition: opacity .3s linear !important;
    transform: none !important;
  }
}

/* ═══════════════════════════════════════════════════════
   LEFT SIDE — STACKED HERO CTA BUTTONS
   ═══════════════════════════════════════════════════════ */
.hero-ctas-stack {
  display: flex;
  flex-direction: column;
  gap: .9rem;
  max-width: 450px;
}

.hero-cta-primary,
.hero-cta-secondary {
  position: relative;
  display: flex;
  align-items: center;
  gap: .75rem;
  width: 100%;
  padding: .8rem 1.3rem;
  border-radius: var(--r-m);
  font-size: .95rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform var(--tm) var(--spring), box-shadow var(--tm) var(--ease), border-color var(--tm) var(--ease), background var(--tm) var(--ease);
}

.hero-cta-primary {
  color: #fff;
  background: var(--grad);
  box-shadow: var(--sh-glow);
}

.hero-cta-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(99, 102, 241, .4);
  color: #fff;
}

.hero-cta-secondary {
  color: var(--t-hi);
  background: var(--glass);
  border: 1px solid var(--border);
}

.hero-cta-secondary:hover {
  transform: translateY(-3px);
  border-color: var(--border-hl);
  color: var(--t-hi);
}

.hcta-ic {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  border-radius: var(--r-s);
  background: rgba(255, 255, 255, .16);
}

.hero-cta-secondary .hcta-ic {
  background: rgba(99, 102, 241, .1);
  color: var(--indigo);
}

.hcta-txt {
  flex: 1;
}

.hcta-arrow {
  flex-shrink: 0;
  transition: transform var(--tm) var(--ease);
}

.hero-cta-primary:hover .hcta-arrow {
  transform: translateX(4px);
}

/* ─── RESPONSIVE ───────────────────────────────────── */
@media (max-width: 991px) {
  .hmc-card {
    aspect-ratio: 4 / 3.2;
  }

  .hmc-orb-icon {
    width: 42px;
    height: 42px;
    font-size: 1.05rem;
  }

  .hmc-arrow {
    width: 40px;
    height: 40px;
  }

  .hero-ctas-stack {
    max-width: 100%;
  }
}

@media (max-width: 575px) {
  .hmc-card {
    aspect-ratio: 4 / 3.5;
    border-radius: 18px;
  }

  .hmc-title {
    font-size: 1.25rem;
  }

  .hmc-sub {
    font-size: .8rem;
    max-width: 100%;
  }

  .hmc-content {
    padding: 1.5rem 1.35rem 1.7rem;
  }

  .hmc-orb-icon {
    width: 36px;
    height: 36px;
    font-size: .9rem;
  }

  .hmc-orb-icon.o1 {
    top: -14px;
    left: 6%;
  }

  .hmc-orb-icon.o2 {
    top: 14%;
    right: -14px;
  }

  .hmc-orb-icon.o3 {
    bottom: 18%;
    left: -14px;
  }

  .hmc-orb-icon.o4 {
    bottom: -14px;
    right: 10%;
  }

  .hmc-arrow {
    width: 36px;
    height: 36px;
    font-size: .8rem;
  }

  .hmc-arrow-prev {
    left: .6rem;
  }

  .hmc-arrow-next {
    right: .6rem;
  }

  .hero-cta-primary,
  .hero-cta-secondary {
    padding: .9rem 1.1rem;
    font-size: .88rem;
  }
}
