/* ========== HALISI BRAND PARTNER SECTION ========== */

@keyframes halisi-float {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: .6; }
  33%       { transform: translateY(-18px) rotate(8deg); opacity: .9; }
  66%       { transform: translateY(10px) rotate(-5deg); opacity: .5; }
}

@keyframes halisi-pulse-ring {
  0%   { transform: scale(1);   opacity: .55; }
  100% { transform: scale(1.55); opacity: 0; }
}

@keyframes halisi-badge-pop {
  0%   { transform: scale(.8) translateY(8px); opacity: 0; }
  60%  { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(1); }
}

/* ---- Section shell ---- */
.halisi-section {
  /* Inject Halisi's specific brand red into the CSS cascade for this section */
  --accent: #c1272d;
  --accent-rgb: 193, 39, 45;

  position: relative;
  border-top: 1px solid var(--line);
  overflow: hidden;
  padding: clamp(80px, 12vw, 160px) 0;
  background: var(--bg);
  text-align: center;
}

/* Multi-layer background glow */
.halisi-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 0%, rgba(var(--accent-rgb), .13), transparent 65%),
    radial-gradient(ellipse 50% 40% at 15% 80%, rgba(var(--accent-rgb), .07), transparent 60%),
    radial-gradient(ellipse 50% 40% at 85% 85%, rgba(41, 52, 61, .15), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* ---- Floating particles ---- */
.halisi-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.halisi-particles span {
  position: absolute;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  animation: halisi-float linear infinite;
}
.halisi-particles span:nth-child(1)  { width:7px;  height:7px;  left:8%;   top:20%; animation-duration:6.2s;  animation-delay:0s;    opacity:.45; }
.halisi-particles span:nth-child(2)  { width:4px;  height:4px;  left:18%;  top:72%; animation-duration:8.1s;  animation-delay:1.1s;  opacity:.30; }
.halisi-particles span:nth-child(3)  { width:10px; height:10px; left:76%;  top:14%; animation-duration:7.4s;  animation-delay:0.5s;  opacity:.35; }
.halisi-particles span:nth-child(4)  { width:5px;  height:5px;  left:88%;  top:66%; animation-duration:9.0s;  animation-delay:2.2s;  opacity:.28; }
.halisi-particles span:nth-child(5)  { width:8px;  height:8px;  left:50%;  top:80%; animation-duration:5.8s;  animation-delay:0.3s;  opacity:.40; }
.halisi-particles span:nth-child(6)  { width:3px;  height:3px;  left:33%;  top:10%; animation-duration:10.5s; animation-delay:1.8s;  opacity:.50; }
.halisi-particles span:nth-child(7)  { width:6px;  height:6px;  left:65%;  top:55%; animation-duration:7.0s;  animation-delay:3.1s;  opacity:.33; }
.halisi-particles span:nth-child(8)  { width:4px;  height:4px;  left:5%;   top:55%; animation-duration:8.8s;  animation-delay:0.8s;  opacity:.38; }
.halisi-particles span:nth-child(9)  { width:9px;  height:9px;  left:92%;  top:35%; animation-duration:6.5s;  animation-delay:2.6s;  opacity:.25; }
.halisi-particles span:nth-child(10) { width:5px;  height:5px;  left:42%;  top:40%; animation-duration:11.2s; animation-delay:1.4s;  opacity:.45; }

/* ---- Inner wrapper ---- */
.halisi-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

/* ---- Badge ---- */
.halisi-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(var(--accent-rgb), .45);
  border-radius: 20px;
  padding: 6px 18px;
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
  background: rgba(var(--accent-rgb), .08);
  animation: halisi-badge-pop .7s var(--ease) both;
}
.halisi-badge::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  box-shadow: 0 0 6px var(--accent);
}

/* ---- Logo Wrapper & SVG ---- */
.halisi-logo-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 10px 0;
}

.halisi-logo-mark {
  position: relative;
  height: clamp(50px, 10vw, 100px);
  width: auto;
  user-select: none;
  pointer-events: none;
  z-index: 2;
}

/* Pulse rings behind the logo */
.halisi-logo-wrap::before {
  content: '';
  position: absolute;
  width: clamp(140px, 25vw, 220px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px solid rgba(var(--accent-rgb), .3);
  animation: halisi-pulse-ring 2.6s ease-out infinite;
  z-index: 1;
}
.halisi-logo-wrap::after {
  content: '';
  position: absolute;
  width: clamp(140px, 25vw, 220px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px solid rgba(var(--accent-rgb), .15);
  animation: halisi-pulse-ring 2.6s ease-out infinite .9s;
  z-index: 1;
}

/* ---- Title ---- */
.halisi-title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  letter-spacing: -0.04em;
  line-height: .95;
  margin: 0;
}
.halisi-accent {
  color: var(--accent);
  display: inline;
}

/* ---- Sub-paragraph ---- */
.halisi-sub {
  color: var(--ink-dim);
  font-size: clamp(.95rem, 1.8vw, 1.1rem);
  line-height: 1.65;
  max-width: 520px;
  margin: 0 auto;
}

/* ---- Pill tags ---- */
.halisi-tags {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.halisi-tags li {
  border: 1px solid var(--line-strong);
  border-radius: 99px;
  padding: 7px 18px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--ink-dim);
  background: var(--bg-raised);
  transition: border-color .3s, color .3s, background .3s, transform .3s var(--ease);
}
.halisi-tags li:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(var(--accent-rgb), .08);
  transform: translateY(-3px);
}

/* ---- CTA Button ---- */
.halisi-btn {
  margin-top: 10px;
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: #fff !important;
  font-size: .95rem;
  padding: 16px 38px;
  border-radius: 3px;
  position: relative;
  overflow: hidden;
}
.halisi-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.18) 50%, transparent 70%);
  background-size: 200% 100%;
  background-position: -200% 0;
  transition: background-position .55s ease;
}
.halisi-btn:hover::after {
  background-position: 200% 0;
}
.halisi-btn:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 14px 40px rgba(var(--accent-rgb), .35);
}
.halisi-btn svg {
  transition: transform .35s var(--ease);
}
.halisi-btn:hover svg {
  transform: translateX(5px);
}

/* ---- Light-mode adjustments ---- */
html.light-mode .halisi-section::before {
  background:
    radial-gradient(ellipse 70% 55% at 50% 0%, rgba(var(--accent-rgb), .10), transparent 65%),
    radial-gradient(ellipse 50% 40% at 15% 80%, rgba(var(--accent-rgb), .05), transparent 60%);
}
html.light-mode .halisi-tags li {
  background: #fff;
}
