/* ==================================================
   COMPONENT: HERO
   ================================================== */

.cx-hero {
  overflow: hidden;
  padding-block: var(--cx-space-2xl) var(--cx-space-3xl);
}

.cx-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--cx-space-2xl);
}

/* ---------- Left: content ---------- */
.cx-hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--cx-space-md);
  max-width: 560px;
}

.cx-hero-badge {
  color: var(--cx-primary);
}

.cx-hero-badge svg {
  color: var(--cx-secondary);
}

.cx-hero-heading {
  font-size: var(--cx-fs-5xl);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--cx-heading);
}

.cx-hero-heading-accent {
  background: var(--cx-gradient-accent-text);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.cx-hero-desc {
  font-size: var(--cx-fs-lg);
  color: var(--cx-text);
  max-width: 480px;
}

.cx-hero-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: var(--cx-space-xs);
}

.cx-hero-btn {
  padding: 1rem 2rem;
}

.cx-hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin-top: var(--cx-space-sm);
}

.cx-hero-pill {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: var(--cx-fs-sm);
  font-weight: 600;
  color: var(--cx-heading);
}

.cx-hero-pill svg {
  flex-shrink: 0;
  color: var(--cx-primary);
}

/* ---------- Right: visual stage ---------- */
.cx-hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--cx-space-lg) var(--cx-space-lg);
}

.cx-hero-glow {
  position: absolute;
  inset: 8% 4%;
  background: var(--cx-gradient-glow);
  filter: blur(90px);
  opacity: 0.22;
  z-index: 0;
  border-radius: 50%;
}

/* ---------- Laptop ---------- */
.cx-hero-laptop {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 480px;
}

.cx-hero-laptop-screen {
  background-color: var(--cx-bg-dark);
  border-radius: var(--cx-radius-lg);
  padding: 0.9rem 0.9rem 1.2rem;
  box-shadow: var(--cx-shadow-lg);
}

[data-theme="dark"] .cx-hero-laptop-screen {
  border: 1px solid rgb(116 185 255 / 20%);
}

.cx-hero-laptop-topbar {
  display: flex;
  gap: 6px;
  padding: 0 0.35rem 0.75rem;
}

.cx-hero-laptop-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--cx-border-dark);
}

.cx-hero-laptop-base {
  position: relative;
  height: 14px;
  margin-inline: 4%;
  background: linear-gradient(180deg, #1B2436 0%, #0F1626 100%);
  border-radius: 0 0 10px 10px;
}

.cx-hero-laptop-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 5px;
  background-color: var(--cx-bg-dark);
  border-radius: 0 0 6px 6px;
}

/* ---------- Dashboard mock-up ---------- */
.cx-dashboard {
  background-color: var(--cx-bg-alt);
  border-radius: var(--cx-radius);
  padding: var(--cx-space-sm);
  display: flex;
  flex-direction: column;
  gap: var(--cx-space-sm);
  box-shadow:
    inset 3px 3px 8px rgba(163, 177, 198, 0.25),
    inset -3px -3px 8px rgba(255, 255, 255, 0.6);
}

[data-theme="dark"] .cx-dashboard {
  box-shadow:
    inset 3px 3px 8px rgba(0, 0, 0, 0.3),
    inset -3px -3px 8px rgba(255, 255, 255, 0.02);
}

.cx-dashboard-profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cx-dashboard-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--cx-gradient-brand);
  color: #FFFFFF;
  font-family: var(--cx-font-display);
  font-size: var(--cx-fs-xs);
  font-weight: 700;
}

.cx-dashboard-profile-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.cx-dashboard-name {
  font-family: var(--cx-font-display);
  font-size: var(--cx-fs-sm);
  font-weight: 700;
  color: var(--cx-heading);
}

.cx-dashboard-role {
  font-size: 0.7rem;
  color: var(--cx-text-muted);
}

.cx-dashboard-status {
  margin-left: auto;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: #22C55E;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.15);
}

.cx-dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.cx-dashboard-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  background-color: var(--cx-bg);
  border: none;
  border-radius: 14px;
  padding: 0.75rem;
  box-shadow:
    5px 5px 10px rgba(163, 177, 198, 0.45),
    -5px -5px 10px rgba(255, 255, 255, 0.85);
}

[data-theme="dark"] .cx-dashboard-card {
  background: radial-gradient(120% 90% at 15% 0%, #16223F 0%, #0B1224 50%, #060910 100%);
  border-style: solid;
  border-width: 1px 0 0 1px;
  border-color: rgb(116 185 255 / 45%);
  box-shadow: none;
  transition: border-color var(--cx-transition-fast);
}

[data-theme="dark"] .cx-dashboard-card:hover {
  border-color: rgb(102 245 255 / 60%);
}

.cx-dashboard-card-accent {
  background: var(--cx-gradient-brand);
  border: none;
  box-shadow:
    5px 5px 10px rgba(97, 66, 220, 0.35),
    -5px -5px 10px rgba(255, 255, 255, 0.5);
}

[data-theme="dark"] .cx-dashboard-card-accent {
  box-shadow:
    5px 5px 10px rgba(0, 0, 0, 0.5),
    -5px -5px 10px rgba(255, 255, 255, 0.03);
}

.cx-dashboard-card-accent .cx-dashboard-card-label,
.cx-dashboard-card-accent .cx-dashboard-card-title {
  color: #FFFFFF;
}

.cx-dashboard-card-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--cx-text-muted);
}

.cx-dashboard-card-title {
  font-family: var(--cx-font-display);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--cx-heading);
  line-height: 1.35;
}

.cx-dashboard-card-meta {
  font-size: 0.68rem;
  color: var(--cx-text-muted);
}

.cx-dashboard-progress {
  width: 100%;
  height: 5px;
  background-color: var(--cx-border);
  border-radius: var(--cx-radius-pill);
  overflow: hidden;
}

.cx-dashboard-progress-bar {
  height: 100%;
  background: var(--cx-gradient-brand);
  border-radius: var(--cx-radius-pill);
}

.cx-dashboard-online {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: rgba(255, 255, 255, 0.85);
}

.cx-dashboard-online-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #4ADE80;
}

.cx-dashboard-pill {
  align-self: flex-start;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: var(--cx-radius-pill);
}

.cx-dashboard-pill-success {
  background-color: #DCFCE7;
  color: #15803D;
}

/* ---------- Floating technology badges ---------- */
.cx-hero-float {
  position: absolute;
  z-index: 3;
  padding: 0.5rem 0.9rem;
  background-color: var(--cx-bg-alt);
  border: 1px solid var(--cx-border);
  border-radius: var(--cx-radius-pill);
  box-shadow: var(--cx-shadow-md);
  font-family: var(--cx-font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--cx-heading);
  white-space: nowrap;
  animation: cxFloat 4.5s ease-in-out infinite;
  animation-delay: var(--cx-delay, 0s);
}

.cx-float-ai {
  background: var(--cx-gradient-glow);
  color: #FFFFFF;
  border: none;
  box-shadow: var(--cx-shadow-brand);
}

.cx-float-html   { top: 4%;   left: -4%; }
.cx-float-css    { top: -5%;  left: 32%; }
.cx-float-js     { top: -6%;  right: 6%; }
.cx-float-react  { top: 24%;  right: -9%; }
.cx-float-figma  { top: 56%;  right: -11%; }
.cx-float-laravel{ bottom: -5%; right: 18%; }
.cx-float-php    { bottom: -4%; left: 12%; }
.cx-float-ai     { top: 50%;  left: -11%; }
.cx-float-wordpress { bottom: -11%;   }

/* ---------- Dark theme: colored outline pills ---------- */
[data-theme="dark"] .cx-hero-float {
  background-color: rgba(11, 18, 32, 0.6);
  backdrop-filter: blur(6px);
  box-shadow: none;
}

[data-theme="dark"] .cx-float-html,
[data-theme="dark"] .cx-float-react,
[data-theme="dark"] .cx-float-php {
  border-color: rgba(59, 130, 246, 0.55);
  color: #93C5FD;
}

[data-theme="dark"] .cx-float-css,
[data-theme="dark"] .cx-float-figma,
[data-theme="dark"] .cx-float-wordpress {
  border-color: rgba(139, 92, 246, 0.55);
  color: #C4B5FD;
}

[data-theme="dark"] .cx-float-js,
[data-theme="dark"] .cx-float-laravel {
  border-color: rgba(236, 72, 153, 0.55);
  color: #F9A8D4;
}

[data-theme="dark"] .cx-float-ai {
  box-shadow: 0 0 0 1px rgba(147, 197, 253, 0.5), 0 0 24px 2px rgba(59, 130, 246, 0.35);
}

@keyframes cxFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

@media (prefers-reduced-motion: reduce) {
  .cx-hero-float {
    animation: none;
  }
}