/* ============================================================
   immersive.css — Immersive Layer
   zidCreative v4.0 — Final, no conflict
   ============================================================ */

/* ============================================================
   1) TEMA PER SECTION
   ============================================================ */
.section-hero{
  --theme-primary: #0ea5e9;
  --theme-accent:  #67e8f9;
  --theme-deep:    #6366f1;
  --theme-glow:    rgba(14,165,233,.45);
  --theme-glow-2:  rgba(99,102,241,.20);
}

.section-usaha{
  --theme-primary: #f59e0b;
  --theme-accent:  #fbbf24;
  --theme-deep:    #ef4444;
  --theme-glow:    rgba(245,158,11,.40);
  --theme-glow-2:  rgba(239,68,68,.18);
}

.section-rnd{
  --theme-primary: #a855f7;
  --theme-accent:  #c084fc;
  --theme-deep:    #6366f1;
  --theme-glow:    rgba(168,85,247,.42);
  --theme-glow-2:  rgba(99,102,241,.18);
}

.section-blog{
  --theme-primary: #06b6d4;
  --theme-accent:  #22d3ee;
  --theme-deep:    #14b8a6;
  --theme-glow:    rgba(6,182,212,.42);
  --theme-glow-2:  rgba(20,184,166,.18);
}

.section-books{
  --theme-primary: #10b981;
  --theme-accent:  #34d399;
  --theme-deep:    #84cc16;
  --theme-glow:    rgba(16,185,129,.42);
  --theme-glow-2:  rgba(132,204,22,.18);
}

.section-footer{
  --theme-primary: #64748b;
  --theme-accent:  #818cf8;
  --theme-deep:    #6366f1;
  --theme-glow:    rgba(99,102,241,.30);
}

/* ============================================================
   2) SECTION BACKGROUND VARIATION
   ============================================================ */
.section{
  position:relative;
  overflow:hidden;
}
.section::before{
  content:'';
  position:absolute;
  inset:0;
  pointer-events:none;
  z-index:0;
  opacity:.75;
  transition:opacity .6s ease;
}
.section-hero::before{
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%,   var(--theme-glow-2), transparent 65%),
    radial-gradient(ellipse 50% 40% at 85% 30%,  rgba(99,102,241,.10), transparent 60%);
}
.section-usaha::before{
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%,   var(--theme-glow-2), transparent 65%),
    radial-gradient(ellipse 40% 40% at 15% 90%,  rgba(239,68,68,.10),  transparent 60%);
}
.section-rnd::before{
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%,   var(--theme-glow-2), transparent 65%),
    radial-gradient(ellipse 45% 45% at 90% 80%,  rgba(99,102,241,.12), transparent 60%);
}
.section-blog::before{
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%,   var(--theme-glow-2), transparent 65%),
    radial-gradient(ellipse 45% 40% at 10% 30%,  rgba(20,184,166,.12), transparent 60%);
}
.section-books::before{
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%,   var(--theme-glow-2), transparent 65%),
    radial-gradient(ellipse 45% 40% at 90% 70%,  rgba(132,204,22,.10), transparent 60%);
}

/* ============================================================
   3) SECTION DECOR (pola bentuk per section)
   ============================================================ */
.section-decor{
  position:absolute;
  inset:0;
  pointer-events:none;
  z-index:0;
  overflow:hidden;
}
.section-decor > *{
  position:absolute;
  will-change:transform;
}

/* HERO: orbit + particles */
.decor-orbit{
  top:50%;left:50%;
  width:520px;height:520px;
  margin:-260px 0 0 -260px;
  border-radius:50%;
  border:1px solid rgba(56,189,248,.14);
  animation:orbitSpin 40s linear infinite;
}
.decor-orbit::before{
  content:'';
  position:absolute;
  top:-4px;left:50%;
  width:8px;height:8px;
  margin-left:-4px;
  border-radius:50%;
  background:var(--theme-accent, #67e8f9);
  box-shadow:0 0 20px 4px var(--theme-glow, rgba(14,165,233,.6));
}
.decor-orbit-2{
  top:50%;left:50%;
  width:720px;height:720px;
  margin:-360px 0 0 -360px;
  border-radius:50%;
  border:1px dashed rgba(99,102,241,.12);
  animation:orbitSpin 60s linear infinite reverse;
}
.decor-particle{
  width:4px;height:4px;
  border-radius:50%;
  background:var(--theme-accent, #67e8f9);
  box-shadow:0 0 14px 2px var(--theme-glow, rgba(14,165,233,.5));
  animation:particleFloat 12s ease-in-out infinite;
}
@keyframes orbitSpin{to{transform:rotate(360deg)}}
@keyframes particleFloat{
  0%,100%{transform:translate(0,0);opacity:.6}
  50%    {transform:translate(30px,-40px);opacity:1}
}

/* USAHA: hex grid */
.decor-hex{
  width:120px;height:104px;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='104' viewBox='0 0 120 104'><polygon points='30,2 90,2 120,52 90,102 30,102 0,52' fill='none' stroke='rgba(245,158,11,0.18)' stroke-width='1'/></svg>");
  background-size:120px 104px;
  opacity:.5;
  animation:hexDrift 30s linear infinite;
}
@keyframes hexDrift{
  0%{transform:translate(0,0)}
  100%{transform:translate(120px,104px)}
}

/* RND: molecule */
.decor-molecule{
  width:100%;height:100%;
  background-image:
    radial-gradient(circle, rgba(168,85,247,.35) 1.5px, transparent 2px);
  background-size:60px 60px;
  opacity:.35;
  mask-image:radial-gradient(ellipse 60% 60% at 50% 50%, #000, transparent 80%);
  -webkit-mask-image:radial-gradient(ellipse 60% 60% at 50% 50%, #000, transparent 80%);
  animation:moleculeShift 25s ease-in-out infinite;
}
@keyframes moleculeShift{
  0%,100%{background-position:0 0}
  50%    {background-position:60px 60px}
}

/* BLOG: wave */
.decor-wave{
  width:200%;height:200px;
  background:
    radial-gradient(ellipse 50% 100% at 50% 0%, transparent 60%, rgba(6,182,212,.10) 61%, transparent 62%),
    radial-gradient(ellipse 50% 100% at 50% 100%, transparent 60%, rgba(34,211,238,.08) 61%, transparent 62%);
  animation:waveFlow 20s linear infinite;
}
@keyframes waveFlow{
  0%  {transform:translateX(-50%)}
  100%{transform:translateX(0)}
}

/* BOOKS: stacked */
.decor-books{
  width:180px;height:180px;
  background:
    linear-gradient(135deg, rgba(16,185,129,.14) 0 12px, transparent 12px),
    linear-gradient(135deg, rgba(52,211,153,.10) 0 12px, transparent 12px),
    linear-gradient(135deg, rgba(132,204,22,.08) 0 12px, transparent 12px);
  background-size:60px 60px, 60px 60px, 60px 60px;
  background-position:0 0, 12px 12px, 24px 24px;
  opacity:.4;
  animation:booksStack 18s ease-in-out infinite;
}
@keyframes booksStack{
  0%,100%{transform:translate(0,0) rotate(0deg)}
  50%    {transform:translate(-20px,-20px) rotate(-3deg)}
}

/* ============================================================
   4) IMMERSIVE CARD — Generic (Blog, dll)
   ============================================================ */
.card-3d-wrap{
  perspective:1400px;
  perspective-origin:center;
  transform-style:preserve-3d;
}

.card-3d{
  position:relative;
  border-radius:22px;
  background:
    linear-gradient(145deg,
      rgba(17,26,46,.85) 0%,
      rgba(11,17,32,.92) 100%);
  border:1px solid transparent;
  background-clip:padding-box;
  transform-style:preserve-3d;
  transition:
    transform .55s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow .55s cubic-bezier(0.22, 1, 0.36, 1),
    border-color .5s ease;
  will-change:transform;
  overflow:hidden;
  isolation:isolate;
}
.card-3d::before{
  content:'';
  position:absolute;
  inset:0;
  padding:1px;
  border-radius:inherit;
  background:linear-gradient(135deg,
    rgba(255,255,255,.10) 0%,
    var(--theme-glow, rgba(14,165,233,.35)) 35%,
    var(--theme-glow-2, rgba(14,165,233,.10)) 65%,
    rgba(255,255,255,.06) 100%);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite:xor;
  mask-composite:exclude;
  pointer-events:none;
  opacity:.7;
  transition:opacity .5s ease;
  z-index:2;
}
.card-3d::after{
  content:'';
  position:absolute;
  inset:-1px;
  border-radius:inherit;
  background:radial-gradient(circle at var(--mx, 50%) var(--my, 50%),
    var(--theme-glow, rgba(14,165,233,.35)),
    transparent 55%);
  opacity:0;
  transition:opacity .5s ease;
  pointer-events:none;
  z-index:0;
}
.card-3d:hover{
  box-shadow:
    0 30px 60px -25px rgba(0,0,0,.7),
    0 0 50px -18px var(--theme-glow, rgba(14,165,233,.4));
}
.card-3d:hover::before{opacity:1}
.card-3d:hover::after{opacity:.55}

.card-shine{
  position:absolute;
  inset:0;
  border-radius:inherit;
  overflow:hidden;
  pointer-events:none;
  z-index:3;
}
.card-shine::before{
  content:'';
  position:absolute;
  top:0;left:-100%;
  width:60%;height:100%;
  background:linear-gradient(105deg,
    transparent 0%,
    rgba(255,255,255,.10) 45%,
    rgba(255,255,255,.16) 50%,
    rgba(255,255,255,.10) 55%,
    transparent 100%);
  transform:skewX(-18deg);
  transition:left 1s cubic-bezier(0.22, 1, 0.36, 1);
}
.card-3d:hover .card-shine::before{left:150%}

.card-media{
  position:relative;
  overflow:hidden;
  transform:translateZ(0);
}
.card-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .8s cubic-bezier(0.22, 1, 0.36, 1),
             filter .5s ease;
}
.card-3d:hover .card-media img{
  transform:scale(1.06);
  filter:saturate(1.1) brightness(1.05);
}
.card-media::after{
  content:'';
  position:absolute;
  inset:0;
  background:linear-gradient(to top,
    rgba(7,11,20,.92) 0%,
    rgba(7,11,20,.35) 45%,
    transparent 75%);
  pointer-events:none;
}

.card-badge{
  position:absolute;
  top:1rem;left:1rem;
  display:inline-flex;
  align-items:center;
  gap:.35rem;
  padding:.35rem .75rem;
  border-radius:9999px;
  font-size:.7rem;
  font-weight:600;
  letter-spacing:.02em;
  background:rgba(7,11,20,.75);
  color:var(--theme-accent, #67e8f9);
  border:1px solid var(--theme-glow, rgba(14,165,233,.4));
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  box-shadow:0 4px 14px -6px var(--theme-glow, rgba(14,165,233,.5));
  z-index:4;
}

.card-corner{
  position:absolute;
  top:0;right:0;
  width:56px;height:56px;
  background:linear-gradient(135deg,
    var(--theme-glow, rgba(14,165,233,.4)),
    transparent 60%);
  opacity:.7;
  pointer-events:none;
  z-index:1;
}
.card-corner::after{
  content:'';
  position:absolute;
  top:10px;right:10px;
  width:6px;height:6px;
  border-radius:50%;
  background:var(--theme-accent, #67e8f9);
  box-shadow:0 0 12px 3px var(--theme-glow, rgba(14,165,233,.6));
}

.card-body{
  position:relative;
  padding:1.5rem;
  z-index:4;
}

.card-icon-shell{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:72px;height:72px;
  border-radius:20px;
  background:linear-gradient(145deg,
    rgba(255,255,255,.06),
    rgba(255,255,255,.02));
  border:1px solid rgba(255,255,255,.08);
  box-shadow:
    0 10px 30px -12px rgba(0,0,0,.6),
    inset 0 1px 0 rgba(255,255,255,.08);
  transition:transform .55s cubic-bezier(0.22, 1, 0.36, 1),
             box-shadow .55s ease;
}
.card-3d:hover .card-icon-shell{
  transform:scale(1.06);
  box-shadow:
    0 18px 40px -12px rgba(0,0,0,.7),
    0 0 30px -6px var(--theme-glow, rgba(14,165,233,.5)),
    inset 0 1px 0 rgba(255,255,255,.12);
}

.feature-item{
  display:flex;
  align-items:flex-start;
  gap:.6rem;
  padding:.45rem 0;
  font-size:.8rem;
  color:#9ca3af;
  transition:color .3s ease, transform .3s ease;
}
.card-3d:hover .feature-item{color:#d1d5db}
.feature-item i{
  color:var(--theme-accent, #67e8f9);
  margin-top:.15rem;
  font-size:.75rem;
  transition:transform .3s ease;
}
.card-3d:hover .feature-item i{
  transform:scale(1.15) rotate(-8deg);
}

.card-link{
  display:inline-flex;
  align-items:center;
  gap:.4rem;
  font-size:.85rem;
  font-weight:600;
  color:var(--theme-accent, #67e8f9);
  transition:color .3s ease, gap .3s ease;
}
.card-link:hover{
  color:var(--theme-primary, #0ea5e9);
  gap:.65rem;
}
.card-link i{transition:transform .3s ease}
.card-link:hover i{transform:translateX(3px)}

/* ============================================================
   5) HERO ENHANCEMENT — Cosmic Portal
   ============================================================ */

/* ---------- HERO LAYOUT ---------- */
.hero-portal{
  display:grid;
  grid-template-columns:1fr;
  gap:3rem;
  align-items:center;
}
@media (min-width:1024px){
  .hero-portal{
    grid-template-columns:1.15fr 1fr;
    gap:4rem;
  }
}

.hero-content{
  position:relative;
  z-index:2;
  text-align:center;
}
@media (min-width:1024px){
  .hero-content{text-align:left}
}

/* ---------- HERO BADGE ---------- */
.hero-badge{
  display:inline-flex;
  align-items:center;
  gap:.6rem;
  padding:.45rem 1rem;
  border-radius:9999px;
  background:rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.10);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  font-size:.75rem;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:#9ca3af;
  margin-bottom:1.5rem;
  position:relative;
  overflow:hidden;
}
.hero-badge::before{
  content:'';
  position:absolute;
  inset:0;
  background:linear-gradient(90deg,
    transparent 0%,
    rgba(56,189,248,.15) 50%,
    transparent 100%);
  transform:translateX(-100%);
  animation:badgeShimmer 3s ease-in-out infinite;
}
@keyframes badgeShimmer{
  0%,100%{transform:translateX(-100%)}
  50%    {transform:translateX(100%)}
}
.hero-badge-dot{
  position:relative;
  width:6px;height:6px;
  border-radius:50%;
  background:#34d399;
  box-shadow:0 0 12px 2px rgba(52,211,153,.8);
  animation:badgeDot 2s ease-in-out infinite;
}
.hero-badge-dot::after{
  content:'';
  position:absolute;
  inset:-4px;
  border-radius:50%;
  border:1px solid rgba(52,211,153,.5);
  animation:badgePulse 2s ease-out infinite;
}
@keyframes badgeDot{
  0%,100%{transform:scale(1)}
  50%    {transform:scale(1.15)}
}
@keyframes badgePulse{
  0%  {transform:scale(.6);opacity:1}
  100%{transform:scale(1.8);opacity:0}
}

/* ---------- HERO HEADLINE ---------- */
.hero-headline{
  font-family:'Space Grotesk',sans-serif;
  font-weight:700;
  font-size:clamp(2.25rem, 5.5vw, 4rem);
  line-height:1.05;
  letter-spacing:-.035em;
  margin:0 0 1.5rem;
}

.hero-headline-line{
  display:block;
}

.hero-headline-accent{
  display:inline-block;
  position:relative;
  background:linear-gradient(120deg,
    var(--theme-accent, #67e8f9) 0%,
    var(--theme-primary, #0ea5e9) 45%,
    var(--theme-deep, #6366f1) 100%);
  background-size:200% 200%;
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
  color:transparent;
  animation:heroGradient 10s ease infinite;
}
@keyframes heroGradient{
  0%,100%{background-position:0% 50%}
  50%    {background-position:100% 50%}
}

/* Underline sweep di bawah teks */
.hero-headline-accent::after{
  content:'';
  position:absolute;
  left:0;
  bottom:-.15em;
  width:100%;
  height:3px;
  border-radius:9999px;
  background:linear-gradient(90deg,
    var(--theme-accent, #67e8f9),
    var(--theme-primary, #0ea5e9) 50%,
    transparent 100%);
  transform:scaleX(0);
  transform-origin:left center;
  animation:underlineSweep 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.8s forwards;
  box-shadow:0 0 16px -2px var(--theme-glow, rgba(14,165,233,.6));
}
@keyframes underlineSweep{
  to{transform:scaleX(1)}
}

/* ---------- HERO SUBTITLE ---------- */
.hero-sub{
  color:#9ca3af;
  font-size:1.0625rem;
  line-height:1.7;
  max-width:34rem;
  margin:0 0 2rem;
}
@media (min-width:1024px){
  .hero-sub{margin-left:0;margin-right:0}
}
@media (max-width:1023px){
  .hero-sub{margin-left:auto;margin-right:auto}
}

.typewriter-text{
  color:#e5e7eb;
  font-weight:500;
}
.typewriter-text.cursor-blink::after{
  color:var(--theme-accent, #67e8f9);
  text-shadow:0 0 12px var(--theme-glow, rgba(14,165,233,.8));
}

/* ---------- HERO CTA ---------- */
.hero-cta{
  display:flex;
  flex-wrap:wrap;
  gap:.9rem;
  margin-bottom:2.5rem;
}
@media (max-width:1023px){
  .hero-cta{justify-content:center}
}

/* ---------- HERO STATS ---------- */
.hero-stats{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:1.5rem;
  max-width:28rem;
  padding-top:1.75rem;
  border-top:1px solid rgba(255,255,255,.06);
}
@media (max-width:1023px){
  .hero-stats{margin-left:auto;margin-right:auto}
}

.hero-stat{
  text-align:left;
}
@media (max-width:1023px){
  .hero-stat{text-align:center}
}

.hero-stat-value{
  font-family:'Space Grotesk',sans-serif;
  font-weight:700;
  font-size:1.75rem;
  line-height:1;
  letter-spacing:-.02em;
  background:linear-gradient(120deg,
    var(--theme-accent, #67e8f9),
    var(--theme-primary, #0ea5e9));
  background-size:200% 200%;
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
  color:transparent;
  animation:heroGradient 6s ease infinite;
}

.hero-stat-label{
  font-size:.7rem;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:#6b7280;
  margin-top:.4rem;
}

/* ---------- HERO VISUAL (Orb) ---------- */
.hero-visual{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:340px;
  perspective:1200px;
}
@media (min-width:1024px){
  .hero-visual{min-height:480px}
}

.hero-orb-wrap{
  position:relative;
  width:280px;
  height:280px;
  animation:orbFloat 8s ease-in-out infinite;
}
@media (min-width:768px){
  .hero-orb-wrap{
    width:340px;
    height:340px;
  }
}
@media (min-width:1024px){
  .hero-orb-wrap{
    width:420px;
    height:420px;
  }
}
@keyframes orbFloat{
  0%,100%{transform:translateY(0) rotate(0deg)}
  50%    {transform:translateY(-18px) rotate(2deg)}
}

/* Inti orb */
.hero-orb-core{
  position:absolute;
  inset:25%;
  border-radius:50%;
  background:
    radial-gradient(circle at 35% 30%,
      #67e8f9 0%,
      #0ea5e9 25%,
      #6366f1 55%,
      #1e1b4b 90%);
  box-shadow:
    0 0 60px 10px var(--theme-glow, rgba(14,165,233,.35)),
    0 0 120px 20px rgba(99,102,241,.20),
    inset -12px -12px 40px rgba(0,0,0,.5),
    inset 12px 12px 40px rgba(103,232,249,.25);
  animation:orbCore 6s ease-in-out infinite;
}
@keyframes orbCore{
  0%,100%{transform:scale(1)}
  50%    {transform:scale(1.04)}
}

/* Glow halo */
.hero-orb-halo{
  position:absolute;
  inset:15%;
  border-radius:50%;
  background:radial-gradient(circle,
    var(--theme-glow, rgba(14,165,233,.35)) 0%,
    transparent 70%);
  filter:blur(24px);
  opacity:.7;
  animation:orbHalo 5s ease-in-out infinite;
}
@keyframes orbHalo{
  0%,100%{transform:scale(1);opacity:.7}
  50%    {transform:scale(1.1);opacity:.4}
}

/* Ring berlapis */
.hero-ring{
  position:absolute;
  top:50%;left:50%;
  border-radius:50%;
  border:1px solid rgba(103,232,249,.25);
  transform-style:preserve-3d;
  pointer-events:none;
}
.hero-ring-1{
  width:100%;height:100%;
  margin:-50% 0 0 -50%;
  transform:rotateX(72deg) rotateZ(0deg);
  animation:ringSpin1 20s linear infinite;
}
.hero-ring-2{
  width:100%;height:100%;
  margin:-50% 0 0 -50%;
  border-color:rgba(99,102,241,.28);
  transform:rotateX(65deg) rotateY(15deg);
  animation:ringSpin2 28s linear infinite reverse;
}
.hero-ring-3{
  width:100%;height:100%;
  margin:-50% 0 0 -50%;
  border-style:dashed;
  border-color:rgba(168,85,247,.22);
  transform:rotateX(78deg) rotateZ(45deg);
  animation:ringSpin3 36s linear infinite;
}
@keyframes ringSpin1{
  to{transform:rotateX(72deg) rotateZ(360deg)}
}
@keyframes ringSpin2{
  to{transform:rotateX(65deg) rotateY(15deg) rotateZ(-360deg)}
}
@keyframes ringSpin3{
  to{transform:rotateX(78deg) rotateZ(405deg)}
}

/* Titik orbit di atas ring */
.hero-ring-1::before,
.hero-ring-2::before,
.hero-ring-3::before{
  content:'';
  position:absolute;
  top:-4px;left:50%;
  width:8px;height:8px;
  margin-left:-4px;
  border-radius:50%;
  box-shadow:0 0 16px 3px currentColor;
}
.hero-ring-1::before{background:#67e8f9;color:#67e8f9}
.hero-ring-2::before{background:#818cf8;color:#818cf8}
.hero-ring-3::before{background:#c084fc;color:#c084fc}

/* Partikel kecil mengorbit */
.hero-orbit-dot{
  position:absolute;
  top:50%;left:50%;
  width:4px;height:4px;
  margin:-2px 0 0 -2px;
  border-radius:50%;
  background:#67e8f9;
  box-shadow:0 0 12px 2px rgba(103,232,249,.7);
  animation:orbitDot 14s linear infinite;
  transform-origin:0 0;
}
.hero-orbit-dot:nth-child(2){
  background:#818cf8;
  box-shadow:0 0 12px 2px rgba(129,140,248,.7);
  animation-duration:20s;
  animation-direction:reverse;
}
.hero-orbit-dot:nth-child(3){
  background:#c084fc;
  box-shadow:0 0 12px 2px rgba(192,132,252,.7);
  animation-duration:26s;
}
@keyframes orbitDot{
  from{transform:rotate(0deg) translateX(45%) rotate(0deg)}
  to  {transform:rotate(360deg) translateX(45%) rotate(-360deg)}
}

/* Partikel background kecil */
.hero-particle{
  position:absolute;
  width:3px;height:3px;
  border-radius:50%;
  background:var(--theme-accent, #67e8f9);
  box-shadow:0 0 10px 1px var(--theme-glow, rgba(14,165,233,.6));
  opacity:.6;
  animation:heroParticle 12s ease-in-out infinite;
}
@keyframes heroParticle{
  0%,100%{transform:translate(0,0) scale(1);opacity:.4}
  50%    {transform:translate(20px,-30px) scale(1.3);opacity:.9}
}

/* ---------- SCROLL INDICATOR ---------- */
.hero-scroll{
  position:relative;
  width:28px;
  height:48px;
  margin:3rem auto 0;
  border:2px solid rgba(56,189,248,.35);
  border-radius:9999px;
  display:flex;
  justify-content:center;
  padding-top:8px;
  transition:border-color .4s ease;
}
.hero-scroll:hover{border-color:rgba(56,189,248,.7)}

.hero-scroll-dot{
  width:4px;
  height:8px;
  border-radius:9999px;
  background:linear-gradient(180deg,
    var(--theme-accent, #67e8f9),
    var(--theme-primary, #0ea5e9));
  box-shadow:0 0 10px var(--theme-glow, rgba(14,165,233,.8));
  animation:scrollDot 2.2s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}
@keyframes scrollDot{
  0%  {transform:translateY(0);opacity:1}
  70% {transform:translateY(20px);opacity:0}
  71% {transform:translateY(0);opacity:0}
  100%{transform:translateY(0);opacity:1}
}

.hero-scroll-text{
  text-align:center;
  font-size:.7rem;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:#4b5563;
  margin-top:.75rem;
  animation:scrollTextPulse 3s ease-in-out infinite;
}
@keyframes scrollTextPulse{
  0%,100%{opacity:.5}
  50%    {opacity:1}
}

/* Logo kecil di atas headline */
.hero-logo{
  width:64px;
  height:64px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom:1.75rem;
  position:relative;
  background:radial-gradient(circle at 50% 50%,
    rgba(14,165,233,.20) 0%,
    rgba(99,102,241,.08) 45%,
    transparent 75%);
  border:1px solid rgba(56,189,248,.25);
  box-shadow:
    0 0 40px rgba(14,165,233,.20),
    inset 0 0 30px rgba(14,165,233,.10);
}
@media (min-width:1024px){
  .hero-logo{margin-left:0}
}
@media (max-width:1023px){
  .hero-logo{margin-left:auto;margin-right:auto}
}
.hero-logo img{
  width:42px;
  height:auto;
  animation:logoPulseSoft 3.5s ease-in-out infinite;
}
@keyframes logoPulseSoft{
  0%,100%{transform:scale(1);opacity:1}
  50%    {transform:scale(1.06);opacity:.92}
}
.hero-logo::before{
  content:'';
  position:absolute;
  inset:-14px;
  border-radius:50%;
  background:radial-gradient(circle,
    var(--theme-glow-2, rgba(14,165,233,.18)) 0%,
    transparent 70%);
  animation:logoHalo 4s ease-in-out infinite;
  z-index:-1;
}
@keyframes logoHalo{
  0%,100%{transform:scale(1);opacity:.7}
  50%    {transform:scale(1.15);opacity:.35}
}

/* ============================================================
   6) BUTTON 3D
   ============================================================ */
.btn-3d{
  position:relative;
  transform-style:preserve-3d;
  transition:transform .3s cubic-bezier(0.22, 1, 0.36, 1),
             box-shadow .3s ease;
  box-shadow:
    0 4px 0 rgba(0,0,0,.30),
    0 10px 24px -10px var(--theme-glow, rgba(14,165,233,.6));
}
.btn-3d:hover{
  transform:translateY(-3px);
  box-shadow:
    0 7px 0 rgba(0,0,0,.30),
    0 16px 36px -10px var(--theme-glow, rgba(14,165,233,.9)),
    0 0 34px -8px var(--theme-glow, rgba(14,165,233,.7));
}
.btn-3d:active{
  transform:translateY(1px);
  box-shadow:
    0 2px 0 rgba(0,0,0,.30),
    0 4px 12px -4px var(--theme-glow, rgba(14,165,233,.6));
}

.btn-ripple{
  position:absolute;
  width:10px;height:10px;
  border-radius:50%;
  background:rgba(255,255,255,.55);
  transform:translate(-50%,-50%) scale(0);
  animation:rippleAnim .7s ease-out forwards;
  pointer-events:none;
}
@keyframes rippleAnim{
  to{transform:translate(-50%,-50%) scale(32);opacity:0}
}

/* ============================================================
   7) SCROLL REVEAL
   ============================================================ */
.reveal-3d{
  opacity:0;
  transform:translateY(36px) scale(.985) rotateX(8deg);
  transition:
    opacity 1.1s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
  transform-origin:center top;
  will-change:transform,opacity;
}
.reveal-3d.in{
  opacity:1;
  transform:translateY(0) scale(1) rotateX(0deg);
}

.reveal-d1{transition-delay:.06s}
.reveal-d2{transition-delay:.14s}
.reveal-d3{transition-delay:.22s}
.reveal-d4{transition-delay:.30s}

/* ============================================================
   8) FLOAT SOFT
   ============================================================ */
.float-soft{animation:floatSoft 6s ease-in-out infinite}
@keyframes floatSoft{
  0%,100%{transform:translateY(0)}
  50%    {transform:translateY(-9px)}
}
.float-soft-delay-1{animation-delay:.6s}
.float-soft-delay-2{animation-delay:1.2s}
.float-soft-delay-3{animation-delay:1.8s}

/* ============================================================
   9) GLOW PULSE
   ============================================================ */
.glow-pulse{
  animation:glowPulse 4s ease-in-out infinite;
}
@keyframes glowPulse{
  0%,100%{
    box-shadow:
      0 0 22px -6px var(--theme-glow, rgba(14,165,233,.45)),
      0 0 44px -12px var(--theme-glow-2, rgba(14,165,233,.20));
  }
  50%{
    box-shadow:
      0 0 32px -4px var(--theme-glow, rgba(14,165,233,.65)),
      0 0 68px -10px var(--theme-glow-2, rgba(14,165,233,.30));
  }
}

/* ============================================================
   10) SECTION ICON
   ============================================================ */
.section-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:64px;height:64px;
  border-radius:20px;
  background:linear-gradient(135deg,
    var(--theme-primary, #0ea5e9),
    var(--theme-deep, #0284c7));
  color:#fff;
  font-size:1.5rem;
  box-shadow:
    0 12px 32px -12px var(--theme-glow, rgba(14,165,233,.6)),
    inset 0 1px 0 rgba(255,255,255,.15);
  position:relative;
}
.section-icon::after{
  content:'';
  position:absolute;
  inset:-2px;
  border-radius:inherit;
  background:linear-gradient(135deg,
    var(--theme-accent, #67e8f9),
    transparent 60%);
  opacity:.5;
  z-index:-1;
  filter:blur(10px);
}

/* ============================================================
   11) BOOK CARD
   ============================================================ */
.book-card .book-cover-3d{
  transform:translateZ(0) rotateY(0deg);
  transition:transform .7s cubic-bezier(0.22, 1, 0.36, 1),
             box-shadow .7s ease;
  transform-origin:left center;
  box-shadow:
    -8px 8px 22px -12px rgba(0,0,0,.7),
    0 0 30px -12px var(--theme-glow-2, rgba(16,185,129,.15));
  border-radius:8px;
}
.book-card:hover .book-cover-3d{
  transform:translateZ(35px) rotateY(-9deg) scale(1.04);
  box-shadow:
    -16px 16px 34px -12px rgba(0,0,0,.85),
    0 0 48px -10px var(--theme-glow, rgba(16,185,129,.5));
}

/* ============================================================
   12) CURSOR GLOW
   ============================================================ */
.cursor-glow{
  position:fixed;
  top:0;left:0;
  width:440px;height:440px;
  border-radius:50%;
  pointer-events:none;
  z-index:1;
  background:radial-gradient(circle,
    var(--theme-glow-2, rgba(14,165,233,.10)) 0%,
    transparent 65%);
  mix-blend-mode:screen;
  will-change:transform;
  opacity:0;
  animation:fadeInGlow .8s ease .4s forwards;
  transition:background .6s ease;
}
@keyframes fadeInGlow{to{opacity:1}}
@media (max-width:1024px){.cursor-glow{display:none}}

/* ============================================================
   13) STAT COUNTER
   ============================================================ */
.stat-number{
  font-family:'Space Grotesk',sans-serif;
  font-weight:700;
  background:linear-gradient(120deg,
    var(--theme-accent, #67e8f9),
    var(--theme-primary, #0ea5e9));
  background-size:200% 200%;
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
  color:transparent;
  animation:gradientFlow 6s ease infinite;
}

/* ============================================================
   14) REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion:reduce){
  .glow-pulse,
  .float-soft,
  .hero-3d-logo,
  .shape,
  .card-3d,
  .reveal-3d,
  .decor-orbit,
  .decor-orbit-2,
  .decor-particle,
  .decor-hex,
  .decor-molecule,
  .decor-wave,
  .decor-books,
  .rnd-card,
  .rnd-number{
    animation:none !important;
    transition-duration:.01s !important;
    transform:none !important;
    opacity:1 !important;
  }
}

/* ============================================================
   15) R&D SECTION — v2 (standalone, no card-3d-wrap)
   ============================================================ */

/* ---------- HEADER ---------- */
.rnd-header{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  gap:1rem;
  margin-bottom:3.5rem;
  max-width:42rem;
  margin-left:auto;
  margin-right:auto;
}

.rnd-header-icon{
  display:flex;
  justify-content:center;
  margin-bottom:.25rem;
}

.rnd-eyebrow{
  display:inline-flex;
  align-items:center;
  gap:.45rem;
  font-size:.7rem;
  font-weight:600;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--theme-accent, #c084fc);
  opacity:.9;
  padding:.35rem .85rem;
  border-radius:9999px;
  background:rgba(168,85,247,.08);
  border:1px solid rgba(168,85,247,.20);
}
.rnd-eyebrow i{font-size:.65rem;opacity:.85}

.rnd-header-title{
  font-family:'Space Grotesk',sans-serif;
  font-size:1.875rem;
  font-weight:700;
  line-height:1.15;
  letter-spacing:-.02em;
  margin:0;
}
@media (min-width:768px){
  .rnd-header-title{font-size:2.25rem}
}
@media (min-width:1024px){
  .rnd-header-title{font-size:2.5rem}
}

.rnd-divider{
  width:5rem;
  height:3px;
  border-radius:9999px;
  background:linear-gradient(90deg,
    var(--theme-primary, #a855f7),
    var(--theme-accent, #c084fc));
  box-shadow:0 0 16px -2px var(--theme-glow, rgba(168,85,247,.6));
  margin:.25rem 0 .5rem;
}

.rnd-header-desc{
  color:#9ca3af;
  font-size:.925rem;
  line-height:1.7;
  margin:0;
  max-width:36rem;
}
@media (min-width:768px){
  .rnd-header-desc{font-size:1rem}
}

.rnd-hl{
  color:#c084fc;
  font-weight:600;
  transition:color .3s ease;
}

/* ---------- GRID ---------- */
.rnd-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:1.75rem;
  max-width:72rem;
  margin:0 auto;
}
@media (min-width:768px){
  .rnd-grid{grid-template-columns:repeat(2, 1fr)}
}
@media (min-width:1024px){
  .rnd-grid{grid-template-columns:repeat(3, 1fr); gap:2rem}
}

/* ---------- CARD ---------- */
.rnd-card{
  position:relative;
  display:flex;
  flex-direction:column;
  height:100%;
  border-radius:22px;
  background:linear-gradient(160deg,
    rgba(17,26,46,.92) 0%,
    rgba(11,17,32,.96) 100%);
  border:1px solid rgba(168,85,247,.15);
  overflow:hidden;
  isolation:isolate;
  transition:
    transform .5s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow .5s cubic-bezier(0.22, 1, 0.36, 1),
    border-color .5s ease;
  will-change:transform;
}

.card-3d:hover{
  transform:translateY(-4px);
  box-shadow:
    0 30px 60px -25px rgba(0,0,0,.7),
    0 0 50px -18px var(--theme-glow, rgba(14,165,233,.4));
}

.rnd-card::after{
  content:'';
  position:absolute;
  inset:0;
  border-radius:inherit;
  background:radial-gradient(circle at var(--mx, 50%) var(--my, 50%),
    rgba(168,85,247,.18),
    transparent 55%);
  opacity:0;
  transition:opacity .5s ease;
  pointer-events:none;
  z-index:0;
}
.rnd-card:hover::after{opacity:.7}

/* ---------- NUMBER INDICATOR ---------- */
.rnd-number{
  position:absolute;
  top:1rem;
  right:1.15rem;
  z-index:10;
  font-family:'Space Grotesk',sans-serif;
  font-weight:700;
  font-size:2.5rem;
  line-height:1;
  letter-spacing:-.04em;
  color:transparent;
  background:linear-gradient(180deg,
    rgba(192,132,252,.35) 0%,
    rgba(192,132,252,.05) 100%);
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
  pointer-events:none;
  transition:transform .5s cubic-bezier(0.22, 1, 0.36, 1),
             opacity .5s ease;
  opacity:.85;
  text-shadow:0 2px 12px rgba(168,85,247,.3);
}
.rnd-card:hover .rnd-number{
  transform:translateY(-3px) scale(1.05);
  opacity:1;
}

/* ---------- MEDIA ---------- */
.rnd-media{
  position:relative;
  height:12rem;
  overflow:hidden;
  flex-shrink:0;
  background:linear-gradient(160deg,
    rgba(99,102,241,.15) 0%,
    rgba(30,27,75,.4) 100%);
}
.rnd-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .8s cubic-bezier(0.22, 1, 0.36, 1),
             filter .5s ease;
}
.rnd-card:hover .rnd-media img{
  transform:scale(1.06);
  filter:saturate(1.15) brightness(1.05);
}

.rnd-media-placeholder{
  width:100%;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:
    radial-gradient(circle at 50% 40%,
      rgba(168,85,247,.22) 0%,
      transparent 65%),
    linear-gradient(160deg,
      rgba(99,102,241,.12) 0%,
      rgba(30,27,75,.35) 100%);
}
.rnd-media-placeholder i{
  font-size:3rem;
  color:rgba(192,132,252,.45);
}

.rnd-media-fade{
  position:absolute;
  inset:0;
  background:linear-gradient(to bottom,
    transparent 0%,
    transparent 50%,
    rgba(11,17,32,.6) 100%);
  pointer-events:none;
}

/* ---------- BODY ---------- */
.rnd-body{
  position:relative;
  padding:1.25rem 1.35rem 1.35rem;
  display:flex;
  flex-direction:column;
  flex:1;
  gap:.7rem;
  z-index:3;
}

/* ---------- CATEGORY CHIP ---------- */
.rnd-chip{
  display:inline-flex;
  align-items:center;
  gap:.35rem;
  align-self:flex-start;
  padding:.3rem .7rem;
  border-radius:9999px;
  font-size:.65rem;
  font-weight:600;
  letter-spacing:.05em;
  text-transform:uppercase;
  background:rgba(168,85,247,.12);
  color:#d8b4fe;
  border:1px solid rgba(168,85,247,.3);
  transition:background .3s ease, border-color .3s ease;
}
.rnd-card:hover .rnd-chip{
  background:rgba(168,85,247,.2);
  border-color:rgba(168,85,247,.5);
}
.rnd-chip i{font-size:.6rem;opacity:.85}

/* ---------- TITLE ---------- */
.rnd-title{
  font-family:'Space Grotesk',sans-serif;
  font-size:1.0625rem;
  font-weight:700;
  line-height:1.35;
  color:#fff;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  margin:0;
}
.rnd-title a{
  color:inherit;
  transition:color .3s ease;
}
.rnd-title a:hover{
  color:#e9d5ff;
}

/* ---------- AUTHOR ---------- */
.rnd-author{
  display:flex;
  align-items:center;
  gap:.5rem;
  font-size:.75rem;
  color:#9ca3af;
  flex-wrap:wrap;
}

.rnd-avatar{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:22px;
  height:22px;
  border-radius:50%;
  background:linear-gradient(135deg,
    rgba(168,85,247,.5),
    rgba(99,102,241,.4));
  color:#fff;
  font-size:.65rem;
  font-weight:700;
  font-family:'Space Grotesk',sans-serif;
  flex-shrink:0;
  border:1px solid rgba(192,132,252,.4);
  box-shadow:0 2px 8px -3px rgba(168,85,247,.6);
}

.rnd-author-name{
  color:#cbd5e1;
  font-weight:500;
  max-width:9rem;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.rnd-dot{
  width:3px;
  height:3px;
  border-radius:50%;
  background:#4b5563;
  flex-shrink:0;
}

.rnd-date{
  display:inline-flex;
  align-items:center;
  gap:.3rem;
  color:#6b7280;
  font-size:.72rem;
}
.rnd-date i{
  font-size:.68rem;
  color:#a855f7;
  opacity:.7;
}

/* ---------- ABSTRACT ---------- */
.rnd-abstract{
  position:relative;
  padding-left:.8rem;
  font-size:.825rem;
  line-height:1.6;
  color:#9ca3af;
  border-left:2px solid rgba(168,85,247,.3);
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
  transition:border-color .4s ease, color .4s ease;
}
.rnd-card:hover .rnd-abstract{
  border-left-color:rgba(192,132,252,.7);
  color:#cbd5e1;
}

/* ---------- FOOTER ---------- */
.rnd-footer{
  margin-top:auto;
  padding-top:.9rem;
  border-top:1px solid rgba(168,85,247,.12);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.75rem;
  transition:border-color .4s ease;
}
.rnd-card:hover .rnd-footer{
  border-top-color:rgba(168,85,247,.35);
}

.rnd-link{
  display:inline-flex;
  align-items:center;
  gap:.4rem;
  font-size:.78rem;
  font-weight:600;
  color:#c084fc;
  transition:color .3s ease, gap .3s ease;
}
.rnd-link i{
  font-size:.7rem;
  transition:transform .3s ease;
}
.rnd-link:hover{
  color:#e9d5ff;
  gap:.6rem;
}
.rnd-link:hover i{
  transform:translateX(3px);
}

.rnd-division{
  display:inline-flex;
  align-items:center;
  gap:.3rem;
  font-size:.65rem;
  font-weight:500;
  color:#6b7280;
  text-transform:uppercase;
  letter-spacing:.05em;
  padding:.25rem .55rem;
  border-radius:6px;
  background:rgba(168,85,247,.08);
  border:1px solid rgba(168,85,247,.15);
  white-space:nowrap;
}
.rnd-division i{font-size:.6rem;color:#a855f7}

/* ---------- CORNER ACCENT ---------- */
.rnd-corner{
  position:absolute;
  bottom:-1px;
  right:-1px;
  width:70px;
  height:70px;
  background:radial-gradient(circle at 100% 100%,
    rgba(192,132,252,.3) 0%,
    transparent 65%);
  pointer-events:none;
  z-index:1;
  opacity:.6;
  transition:opacity .5s ease;
}
.rnd-card:hover .rnd-corner{opacity:1}

/* ---------- EMPTY STATE ---------- */
.rnd-empty{
  text-align:center;
  padding:4rem 1rem;
}
.rnd-empty-icon{
  width:5rem;
  height:5rem;
  margin:0 auto 1.25rem;
  border-radius:50%;
  background:
    radial-gradient(circle at 50% 40%,
      rgba(168,85,247,.18),
      transparent 70%),
    rgba(31,41,55,.5);
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(168,85,247,.2);
}
.rnd-empty-icon i{
  font-size:2rem;
  color:rgba(192,132,252,.55);
}

/* ============================================================
   R&D — Responsive
   ============================================================ */
@media (max-width:640px){
  .rnd-number{font-size:2rem;top:.85rem;right:1rem}
  .rnd-media{height:10.5rem}
  .rnd-body{padding:1.1rem 1.15rem 1.2rem}
  .rnd-title{font-size:1rem}
  .rnd-footer{flex-wrap:wrap;gap:.5rem}
}

/* Mobile: kurangi efek berat */
@media (max-width:768px){
  .card-3d:hover{transform:translateY(-5px)}
  .shape,
  .decor-orbit,
  .decor-orbit-2{display:none}
  .cursor-glow{display:none}
}

/* ============================================================
   HERO — Reduce top padding
   ============================================================ */
.section-hero{
  padding-top:2.5rem;
  padding-bottom:4rem;
}
@media (min-width:768px){
  .section-hero{
    padding-top:4rem;
    padding-bottom:6rem;
  }
}