/* ============================================
   BRANDFILLS — PREMIUM HERO SLIDER v3
   ============================================ */

.hero-slider {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  margin-top: 68px;
}

/* ---- BASE SLIDE ---- */
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1s cubic-bezier(0.4,0,0.2,1);
  display: flex; align-items: center;
}
.hero-slide.active { opacity: 1; }

/* ---- SLIDE 1: SPLIT ORANGE ---- */
.hero-slide[data-style="split-orange"] {
  background: var(--bg);
}
/* Diagonal right panel */
.hero-slide[data-style="split-orange"] .hero-bg-shape {
  position: absolute;
  top: 0; right: 0;
  width: 48%;
  height: 100%;
  background: var(--orange);
  clip-path: polygon(12% 0, 100% 0, 100% 100%, 0% 100%);
  z-index: 1;
}
/* Diagonal stripe overlay */
.hero-slide[data-style="split-orange"] .hero-bg-shape::after {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    -55deg, transparent 0, transparent 12px,
    rgba(255,255,255,0.06) 12px, rgba(255,255,255,0.06) 24px
  );
}
/* Floating circles on orange side */
.hero-slide[data-style="split-orange"] .hero-circle-1,
.hero-slide[data-style="split-orange"] .hero-circle-2 {
  position: absolute; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  z-index: 2;
}
.hero-slide[data-style="split-orange"] .hero-circle-1 {
  width: 320px; height: 320px;
  right: 5%; top: -80px;
  animation: floatUp 7s ease-in-out infinite;
}
.hero-slide[data-style="split-orange"] .hero-circle-2 {
  width: 180px; height: 180px;
  right: 28%; bottom: 40px;
  animation: floatUp 5s ease-in-out infinite reverse;
}
/* Big transparent brand text */
.hero-slide[data-style="split-orange"] .hero-watermark {
  position: absolute; right: 2%; bottom: -30px; z-index: 2;
  font-size: 11rem; font-weight: 900; color: rgba(255,255,255,0.07);
  letter-spacing: -0.05em; line-height: 1; pointer-events: none;
  font-family: var(--font);
}

/* ---- SLIDE 2: DARK GRID ---- */
.hero-slide[data-style="dark-grid"] {
  background: var(--bg);
}
.hero-slide[data-style="dark-grid"] .hero-grid-bg {
  position: absolute; inset: 0; z-index: 1;
  background-image:
    linear-gradient(rgba(255,107,0,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,107,0,0.07) 1px, transparent 1px);
  background-size: 56px 56px;
}
.hero-slide[data-style="dark-grid"] .hero-glow-1 {
  position: absolute; z-index: 2;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,107,0,0.18) 0%, transparent 65%);
  right: -100px; top: -100px;
  animation: orbPulse 6s ease-in-out infinite;
}
.hero-slide[data-style="dark-grid"] .hero-glow-2 {
  position: absolute; z-index: 2;
  width: 350px; height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,107,0,0.1) 0%, transparent 65%);
  left: 15%; bottom: -60px;
  animation: orbPulse 8s ease-in-out infinite reverse;
}
/* Floating icon badges */
.hero-float-badge {
  position: absolute; z-index: 4;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 18px;
  display: flex; align-items: center; gap: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  font-size: 0.82rem; font-weight: 600;
  white-space: nowrap;
}
.hero-float-badge .badge-icon { font-size: 1.3rem; }
.hero-float-badge.fb1 { top: 18%; right: 8%; animation: badgeFloat 4s ease-in-out infinite; }
.hero-float-badge.fb2 { bottom: 22%; right: 15%; animation: badgeFloat 5s ease-in-out infinite reverse; }
.hero-float-badge.fb3 { top: 60%; right: 5%; animation: badgeFloat 6s ease-in-out infinite 1s; }

/* ---- IMAGE SLIDE ---- */
.hero-slide[data-style="image-slide"] .hero-bg-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.hero-slide[data-style="image-slide"]::after {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to right, rgba(0,0,0,0.72) 45%, rgba(0,0,0,0.1) 100%);
}

/* ---- HERO CONTENT ---- */
.hero-content {
  position: relative; z-index: 10;
  max-width: 1280px; width: 100%;
  margin: 0 auto;
  padding: 0 48px;
}

.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 18px; border-radius: 50px; margin-bottom: 26px;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--orange-glow);
  border: 1px solid rgba(255,107,0,0.3);
  color: var(--orange);
  animation: slideInTag 0.7s ease both;
}
.hero-slide[data-style="image-slide"] .hero-tag {
  background: rgba(255,107,0,0.2); color: #fff; border-color: rgba(255,255,255,0.2);
}
.hero-tag-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--orange);
  animation: blink 1.5s infinite;
}
.hero-slide[data-style="image-slide"] .hero-tag-dot { background: white; }

.hero-headline {
  font-size: clamp(3rem, 6.5vw, 6rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: 26px;
  animation: slideInHeadline 0.8s 0.1s ease both;
}
.hero-headline .line1 { display: block; color: var(--text); }
.hero-headline .line2 { display: block; color: var(--orange); }
.hero-slide[data-style="image-slide"] .hero-headline .line1,
.hero-slide[data-style="image-slide"] .hero-headline .line2 { color: white; }
.hero-slide[data-style="image-slide"] .hero-headline .line2 { color: var(--orange-light); }

.hero-sub {
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  font-weight: 400;
  color: var(--text2);
  line-height: 1.75;
  max-width: 500px;
  margin-bottom: 38px;
  animation: slideInHeadline 0.8s 0.2s ease both;
}
.hero-slide[data-style="image-slide"] .hero-sub { color: rgba(255,255,255,0.8); }

.hero-actions {
  display: flex; gap: 14px; flex-wrap: wrap;
  animation: slideInHeadline 0.8s 0.3s ease both;
}
/* Stats row */
.hero-stats {
  display: flex; gap: 32px; margin-top: 48px;
  animation: slideInHeadline 0.8s 0.45s ease both;
  flex-wrap: wrap;
}
.hero-stat-item { text-align: left; }
.hero-stat-num {
  font-size: 1.8rem; font-weight: 900;
  color: var(--orange); line-height: 1; letter-spacing: -0.04em;
}
.hero-stat-label { font-size: 0.75rem; color: var(--text2); margin-top: 2px; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 500; }
.hero-slide[data-style="image-slide"] .hero-stat-label { color: rgba(255,255,255,0.55); }
.hero-stat-divider { width: 1px; background: var(--border); align-self: stretch; }

/* ---- SLIDER CONTROLS ---- */
.hero-dots {
  position: absolute; bottom: 32px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 20;
}
.hero-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.3);
  cursor: pointer; transition: all 0.35s ease;
}
.hero-dot.active { background: var(--orange); width: 28px; border-radius: 4px; }
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 20;
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,107,0,0.85); color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; cursor: pointer; transition: all 0.25s ease; border: none;
}
.hero-arrow:hover { background: var(--orange); transform: translateY(-50%) scale(1.1); }
.hero-arrow.prev { left: 24px; }
.hero-arrow.next { right: 24px; }

/* ---- SCROLL INDICATOR ---- */
.hero-scroll {
  position: absolute; bottom: 32px; right: 40px; z-index: 20;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: var(--text2); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase;
}
.hero-scroll-line {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, transparent, var(--orange), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

/* ---- KEYFRAMES ---- */
@keyframes slideInTag {
  from { opacity:0; transform: translateX(-20px); }
  to   { opacity:1; transform: translateX(0); }
}
@keyframes slideInHeadline {
  from { opacity:0; transform: translateY(30px); }
  to   { opacity:1; transform: translateY(0); }
}
@keyframes floatUp {
  0%,100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-20px) scale(1.03); }
}
@keyframes orbPulse {
  0%,100% { transform: scale(1); opacity:1; }
  50%      { transform: scale(1.1); opacity:0.8; }
}
@keyframes badgeFloat {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}
@keyframes blink {
  0%,100% { opacity:1; }
  50%      { opacity:0.3; }
}

/* Re-trigger animation when slide activates */
.hero-slide .hero-tag,
.hero-slide .hero-headline,
.hero-slide .hero-sub,
.hero-slide .hero-actions,
.hero-slide .hero-stats {
  opacity: 0;
}
.hero-slide.active .hero-tag { animation: slideInTag 0.7s 0.1s ease both; }
.hero-slide.active .hero-headline { animation: slideInHeadline 0.8s 0.2s ease both; }
.hero-slide.active .hero-sub { animation: slideInHeadline 0.8s 0.32s ease both; }
.hero-slide.active .hero-actions { animation: slideInHeadline 0.8s 0.44s ease both; }
.hero-slide.active .hero-stats { animation: slideInHeadline 0.8s 0.56s ease both; }

/* Responsive */
@media(max-width:768px){
  .hero-content { padding: 0 22px; }
  .hero-headline { font-size: clamp(2.5rem, 10vw, 4rem); }
  .hero-float-badge { display: none; }
  .hero-watermark { font-size: 5rem; }
  .hero-slide[data-style="split-orange"] .hero-bg-shape { width: 100%; clip-path: polygon(0 65%, 100% 50%, 100% 100%, 0% 100%); }
  .hero-stats { gap: 20px; }
  .hero-stat-divider { display: none; }
  .hero-scroll { display: none; }
}
