/* ============================
   KOPERASI LUX THEME (Modern • Elegant • Premium)
   Tidak mengubah logic. Hanya styling.
   ============================ */

:root{
  --bg: #070A12;
  --surface: rgba(255,255,255,.06);
  --surface-2: rgba(255,255,255,.10);
  --stroke: rgba(255,255,255,.12);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.70);

  --brand: #C8A45D;        /* gold */
  --brand-2: #7BE3D6;      /* mint accent */
  --brand-3: #4AA3FF;      /* blue accent */

  --shadow: 0 18px 60px rgba(0,0,0,.55);
  --shadow-soft: 0 10px 30px rgba(0,0,0,.35);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 16px;

  --ease: cubic-bezier(.2,.8,.2,1);
}

html,body{
  background: radial-gradient(1200px 600px at 20% 10%, rgba(74,163,255,.14), transparent 60%),
              radial-gradient(900px 500px at 80% 20%, rgba(123,227,214,.14), transparent 55%),
              radial-gradient(900px 500px at 60% 85%, rgba(200,164,93,.12), transparent 60%),
              var(--bg);
  color: var(--text);
}

a{ text-decoration:none; }
a:hover{ text-decoration:none; }

.container{
  max-width: 1160px;
}

/* ---------- Typography polish ---------- */
.section-title{
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  font-size: clamp(1.4rem, 2.2vw, 2rem);
}

.section-lead{
  color: var(--muted);
  max-width: 780px;
  font-size: 1.02rem;
  line-height: 1.7;
}

/* ---------- Buttons ---------- */
.btn{
  border-radius: 999px;
  padding: .72rem 1.05rem;
  font-weight: 700;
  letter-spacing: .2px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s var(--ease);
  will-change: transform;
}

.btn:focus{
  box-shadow: 0 0 0 .25rem rgba(200,164,93,.25) !important;
}

.btn-primary{
  border: 1px solid rgba(200,164,93,.45);
  background: linear-gradient(135deg, rgba(200,164,93,.95), rgba(200,164,93,.65));
  color: #0B0E16;
  box-shadow: 0 14px 40px rgba(200,164,93,.18);
}

.btn-primary:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 60px rgba(200,164,93,.24);
}

.btn-outline-primary{
  border: 1px solid rgba(200,164,93,.45);
  color: rgba(255,255,255,.92);
  background: rgba(255,255,255,.04);
}

.btn-outline-primary:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.95);
}

.btn-light{
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.92);
  color: #0B0E16;
}

.btn-light:hover{
  transform: translateY(-2px);
  background: #fff;
}

.btn-outline-light{
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.92);
}
.btn-outline-light:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,.10);
}

/* ---------- Badges / chips ---------- */
.badge-soft{
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .42rem .75rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.90);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .25px;
}

/* ---------- Hero slider ---------- */
.hero-slider{
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.hero-carousel{
  border-radius: 0 0 42px 42px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-slide{
  height: min(78vh, 720px);
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
  filter: saturate(1.05) contrast(1.03);
}

.carousel-item.active .hero-slide{
  animation: heroZoom 6.2s var(--ease) both;
}

@keyframes heroZoom{
  0%{ transform: scale(1.08); }
  100%{ transform: scale(1.02); }
}

.hero-overlay{
  position:absolute;
  inset:0;
  background:
    linear-gradient(90deg, rgba(7,10,18,.90) 0%, rgba(7,10,18,.70) 45%, rgba(7,10,18,.50) 70%, rgba(7,10,18,.65) 100%),
    radial-gradient(900px 500px at 20% 25%, rgba(200,164,93,.18), transparent 55%),
    radial-gradient(900px 500px at 80% 20%, rgba(74,163,255,.14), transparent 55%);
  pointer-events:none;
}

.hero-content{
  position:absolute;
  inset:0;
  display:grid;
  grid-template-columns: 1.35fr .85fr;
  gap: 22px;
  align-items: center;
  padding-top: 6.2rem;
  padding-bottom: 3.2rem;
}

.hero-content-inner{
  max-width: 720px;
}

.hero-content h1{
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: rgba(255,255,255,.97);
  text-shadow: 0 10px 40px rgba(0,0,0,.55);
}

.hero-content p{
  color: rgba(255,255,255,.78);
  text-shadow: 0 10px 40px rgba(0,0,0,.55);
}

/* Aside: glass card */
.hero-aside{
  border-radius: var(--radius-xl);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 1.25rem 1.25rem 1.1rem;
  box-shadow: var(--shadow-soft);
}

.hero-aside h5{
  color: rgba(255,255,255,.95);
  font-weight: 800;
  letter-spacing: -0.015em;
}

.hero-metrics{
  display:grid;
  gap: .75rem;
}

.metric{
  padding: .85rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.14);
  transition: transform .25s var(--ease), background-color .25s var(--ease), border-color .25s var(--ease);
}
.metric:hover{
  transform: translateY(-2px);
  background: rgba(0,0,0,.22);
  border-color: rgba(200,164,93,.35);
}

.metric .value{
  font-weight: 900;
  letter-spacing: .2px;
  color: rgba(255,255,255,.95);
}
.metric .label{
  color: rgba(255,255,255,.72);
  font-size: .92rem;
}

/* controls */
.carousel-control-prev-icon,
.carousel-control-next-icon{
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.6));
}

.carousel-control-prev,
.carousel-control-next{
  width: 9%;
}

/* ---------- Section spacing ---------- */
.section-pad{
  padding: 4.8rem 0;
}
.service-section{
  margin-top: -3.5rem;
}

/* ---------- Service cards grid ---------- */
.service-grid{
  display:grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card{
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.12);
  padding: 1.35rem 1.35rem 1.25rem;
  box-shadow: 0 18px 50px rgba(0,0,0,.32);
  position: relative;
  overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}

.service-card::before{
  content:"";
  position:absolute;
  inset:-1px;
  background: radial-gradient(500px 280px at 20% 10%, rgba(200,164,93,.18), transparent 60%),
              radial-gradient(520px 300px at 90% 30%, rgba(74,163,255,.14), transparent 60%);
  opacity:.8;
  pointer-events:none;
}

.service-card > *{ position: relative; z-index:1; }

.service-card:hover{
  transform: translateY(-6px);
  border-color: rgba(200,164,93,.35);
  box-shadow: 0 28px 70px rgba(0,0,0,.45);
}

.service-card h5{
  font-weight: 850;
  letter-spacing: -0.02em;
  color: rgba(255,255,255,.95);
}

.service-card p{
  color: rgba(255,255,255,.72);
  line-height: 1.7;
}

.service-tag{
  display:inline-flex;
  align-items:center;
  gap:.4rem;
  padding: .35rem .7rem;
  border-radius: 999px;
  border: 1px solid rgba(200,164,93,.30);
  color: rgba(255,255,255,.92);
  background: rgba(200,164,93,.10);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .25px;
  margin-bottom: .85rem;
}

/* ---------- CTA strip ---------- */
.cta-strip{
  margin-top: 22px;
  border-radius: var(--radius-xl);
  padding: 1.4rem 1.4rem;
  border: 1px solid rgba(200,164,93,.25);
  background: linear-gradient(135deg, rgba(200,164,93,.16), rgba(255,255,255,.05));
  box-shadow: 0 18px 60px rgba(0,0,0,.35);
}

.cta-strip h4{
  font-weight: 900;
  letter-spacing: -0.02em;
  margin:0;
  color: rgba(255,255,255,.95);
}

.cta-strip p{
  color: rgba(255,255,255,.72);
}

/* ---------- Value section surfaces ---------- */
.soft-surface{
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  box-shadow: 0 12px 40px rgba(0,0,0,.25);
}

.soft-surface strong{
  color: rgba(255,255,255,.92);
}
.soft-surface .text-muted{
  color: rgba(255,255,255,.68) !important;
}

/* Elevated ghost card */
.card-elevated{
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  box-shadow: var(--shadow);
}
.card-ghost{
  position: relative;
  overflow: hidden;
}
.card-ghost::after{
  content:"";
  position:absolute;
  inset:-1px;
  background: radial-gradient(520px 280px at 20% 15%, rgba(123,227,214,.18), transparent 60%),
              radial-gradient(520px 280px at 85% 20%, rgba(200,164,93,.16), transparent 60%);
  opacity:.85;
  pointer-events:none;
}
.card-ghost > *{ position: relative; z-index: 1; }

.text-muted{
  color: rgba(255,255,255,.68) !important;
}

/* Progress */
.progress{
  background: rgba(255,255,255,.10);
  border-radius: 999px;
  overflow: hidden;
}
.progress-bar{
  border-radius: 999px;
}

/* ---------- Reveal animation (class .reveal sudah ada di HTML kamu) ---------- */
.reveal{
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-visible{
  opacity: 1;
  transform: translateY(0);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  *{ animation: none !important; transition: none !important; }
  .reveal{ opacity:1; transform:none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 991px){
  .hero-content{
    grid-template-columns: 1fr;
    padding-top: 5.5rem;
  }
  .hero-aside{ max-width: 560px; }
  .service-grid{
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
  .service-section{ margin-top: -2.2rem; }
}

@media (max-width: 575px){
  .hero-slide{ height: 76vh; }
  .service-grid{
    grid-template-columns: 1fr;
  }
  .hero-carousel{
    border-radius: 0 0 28px 28px;
  }
}