/* Import Font dari Google (contoh: Nunito & Poppins) */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;700&family=Poppins:wght@500;600;700&display=swap');

/* Variabel Palet Warna Pastel */
:root {
    --dusty-rose: #D6A99D;
    --cream: #FBF3D5;
    --light-gray: #D6DAC8;
    --sage-green: #9CAFAA;

    --heading-font: 'Poppins', sans-serif;
    --body-font: 'Nunito', sans-serif;
}

body {
    font-family: var(--body-font);
    background-color: var(--cream);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
}

/* Aturan dasar untuk smooth scroll (untuk one-page website) */
html {
    scroll-behavior: smooth;
}

#tim-kami {
  background-color: var(--light-gray);
  min-height: 100vh; /* biar section ini minimal setinggi layar */
  display: flex;
  align-items: center;
}

#tim-kami + section {
  margin-top: 0; /* hilangkan jarak antara section ini dan section berikutnya */
}

#tim-kami .container {
  max-width: 1100px; /* biar konten gak terlalu lebar */
}

#tim-kami .row {
  align-items: center;
  justify-content: center; /* pusatkan secara horizontal */
}

#tim-kami .col-md-6:first-child {
  padding-left: 60px;   /* dorong sedikit dari kiri */
  padding-right: 40px;  /* kasih ruang antar teks dan foto */
}

/* ukuran & gaya foto */
.owner-photo{
  width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: 10px;
  border: 4px solid var(--cream);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform .25s ease, box-shadow .25s ease;
}

/* teks paragraf rapi */
#tim-kami p{
  text-align: justify;
  text-justify: inter-word;
  font-size: 1rem;
  line-height: 1.8;
  color: #333;
}

/* container & alignment */
#tim-kami{ min-height: 100vh; display: flex; align-items: center; }
#tim-kami .container{ max-width: 1100px; }
#tim-kami .row{ align-items: center; justify-content: center; }

/* ---------- Animasi 1: Float foto ---------- */
@keyframes floaty{
  0%{ transform: translateY(0) }
  50%{ transform: translateY(-8px) }
  100%{ transform: translateY(0) }
}
.owner-photo{ animation: floaty 6s ease-in-out infinite; }
.owner-photo:hover{ transform: translateY(-2px) scale(1.02); box-shadow: 0 10px 22px rgba(0,0,0,.15); }

/* ---------- Animasi 2: Fade-in on scroll ---------- */
.reveal{ opacity:0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible{ opacity:1; transform:none; }
.from-left{ transform: translateX(-24px); }
.from-right{ transform: translateX(24px); }
.from-left.visible, .from-right.visible{ transform:none; }

/* ---------- Animasi 3: Tilt ringan ---------- */
.owner-tilt-wrap{ display:inline-block; perspective:800px; }
.owner-tilt-wrap .owner-photo{ transform-style: preserve-3d; }

/* hormati preferensi user yang matikan animasi */
@media (prefers-reduced-motion: reduce){
  .owner-photo{ animation:none; }
  .reveal{ transition:none; opacity:1; transform:none; }
}

/* --- Lokasi: kartu peta responsif --- */
.map-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
  padding: 6px;
}
.map-card iframe {
  display: block;
  width: 100%;
  height: 360px;          /* tinggi sedang */
  border-radius: 8px;
}

/* --- Tombol Aksi Fluffy Charmies --- */
.btn-fc {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background-color .2s ease, color .2s ease;
}
.btn-fc:hover { transform: translateY(-1px); box-shadow: 0 6px 14px rgba(0,0,0,.08); }

.btn-fc-primary { 
  background: var(--sage-green); 
  color: #fff; 
}
.btn-fc-primary:hover { filter: brightness(0.95); }

.btn-fc-outline {
  border: 2px solid var(--sage-green);
  color: var(--sage-green);
  background: transparent;
}
.btn-fc-outline:hover { background: var(--sage-green); color:#fff; }

.btn-fc-ghost {
  background: transparent;
  color: #333;
  border: 2px dashed var(--light-gray);
}
.btn-fc-ghost:hover { background: var(--light-gray); }

.admin-owner-photo {
  max-width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 14px;
  border: 4px solid var(--cream);
}
@media (max-width: 768px) {
  .admin-owner-photo { max-width: 200px; height: 200px; }
}

/* foto bulat rapi + ukuran konsisten */
/* pastikan foto owner benar-benar di tengah */
.owner-card-photo {
  display: block;              /* supaya bisa diatur margin */
  margin: 0 auto 16px auto;    /* auto kiri kanan = tengah */
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  border: 6px solid var(--cream);
  box-shadow: 0 6px 16px rgba(0,0,0,.08);
}


/* harmonisasi kartu dengan dashboard lain */
.card.border-0.shadow-sm{
  border-radius: 14px;
}

/* responsif kecil */
@media (max-width: 576px){
  .owner-card-photo{ width: 160px; height: 160px; }
}

/* ==== ANIMASI FOTO OWNER DI DASHBOARD ==== */

/* gerakan lembut naik-turun */
@keyframes floaty-owner {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}

/* terapkan animasi + efek hover */
.owner-card-photo {
  display: block;
  margin: 0 auto 16px auto;
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  border: 6px solid var(--cream);
  box-shadow: 0 6px 16px rgba(0,0,0,.08);
  animation: floaty-owner 6s ease-in-out infinite; /* animasi lembut */
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.owner-card-photo:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 10px 22px rgba(0,0,0,.15);
}

.hero-section {
  position: relative;
  display: flex;
  align-items: center;            /* vertikal tengah */
  justify-content: center;        /* horizontal tengah */
  text-align: center;             /* semua teks rata tengah */
  height: 100vh;
  background: url('../assets/produk/bg-produk.png') center/cover no-repeat;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.25);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;               /* biar teks ga melebar banget */
  margin: 0 auto;
}

/* warna & ukuran teks */
.hero-content h1 {
  color: var(--cream);
  font-size: 3rem;
  font-weight: 700;
  -webkit-text-stroke: 0.5px rgba(0,0,0,0.2);
  text-shadow:
    0 0 6px rgba(156,175,170,0.8),   /* glow lembut warna sage */
    0 0 12px rgba(156,175,170,0.6),  /* lapisan tambahan */
    0 0 20px rgba(156,175,170,0.4);  /* efek luar lebih diffuse */
  transition: text-shadow .3s ease;
}

/* tambahan opsional: glow lebih kuat pas hover */
.hero-content h1:hover {
  text-shadow:
    0 0 8px rgba(156,175,170,1),
    0 0 16px rgba(156,175,170,0.8),
    0 0 25px rgba(156,175,170,0.7);
}


.hero-content p {
  color: var(--light-gray);
  font-size: 1.25rem;
  margin-bottom: 2rem;            /* jarak dengan tombol */
}

/* tombol */
.hero-btn {
  background-color: var(--dusty-rose);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 10px;
  transition: background-color .3s ease, transform .2s ease;
}

.hero-btn:hover {
  background-color: #c48e84;
  transform: translateY(-2px);
}

.hero-content h1 {
  color: var(--cream);
  font-size: 3rem;
  font-weight: 700;
  -webkit-text-stroke: 1px rgba(0,0,0,0.3); /* garis halus di pinggir */
  text-shadow: 0 3px 10px rgba(0,0,0,0.25);
}

.hero-content p {
  color: #fff;
  -webkit-text-stroke: 0.5px rgba(0,0,0,0.2);
}

.hero-overlay {
  background: rgba(255, 255, 255, 0.25);   /* warna putih transparan */
  backdrop-filter: blur(6px);              /* efek blur lembut */
  border-radius: 16px;
  padding: 40px 50px;
  display: inline-block;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15); /* biar ada depth */
  z-index: 2;
}

/* pastikan section utama tetap tampil penuh */
.hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100vh;
  background: url('../assets/produk/bg-produk.png') center/cover no-repeat;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.25); /* lapisan gelap tipis */
  z-index: 1;
}

.hero-overlay h1 {
  color: var(--cream);
  -webkit-text-stroke: 0.5px rgba(0,0,0,0.2); /* garis luar tipis */
  text-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

/* ========== Produk Kami: Carousel Horizontal ========== */
.produk-sec{ background-color: var(--cream); padding:80px 0; }

.produk-wrap{
  position: relative;
}

/* rail */
.produk-rail{
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
}
.produk-rail::-webkit-scrollbar{ display:none; } /* hide scrollbar */
.produk-rail{ scrollbar-width: none; }

/* card */
.produk-card{
  flex: 0 0 300px;                 /* lebar tiap kartu */
  background:#fff;
  border-radius:16px;
  box-shadow:0 6px 18px rgba(0,0,0,.08);
  text-decoration:none;
  color:inherit;
  scroll-snap-align:start;
  transition: transform .28s ease, box-shadow .28s ease;
  position: relative;
  display:flex;
  flex-direction: column;
}
.produk-card img{
  width:100%;
  height:220px;
  object-fit:cover;
  border-radius:16px 16px 0 0;
}
.produk-info{ padding:14px; display:flex; flex-direction:column; gap:10px; }
.produk-title{ font-family: var(--heading-font); font-weight:600; margin:0; color:#222; }
.harga{ color:#e74c3c; font-weight:800; }
.btn-produk{
  display:inline-block;
  background: var(--dusty-rose);
  color:#fff;
  padding:7px 14px;
  border-radius:8px;
  font-weight:700;
  white-space: nowrap;
}

/* efek mengambang saat hover */
@keyframes float-card { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-6px)} }
.produk-card:hover{
  transform: translateY(-8px) scale(1.02);
  box-shadow:0 14px 28px rgba(0,0,0,.16);
  animation: float-card 4s ease-in-out infinite;
}

/* tombol panah */
.produk-nav{
  position:absolute; top:50%; transform:translateY(-50%);
  width:42px; height:42px; border:none; border-radius:50%;
  background: rgba(0,0,0,.18);
  color:#fff; font-size:28px; line-height:1; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  z-index:2;
  transition: background .2s ease, transform .2s ease;
}
.produk-nav:hover{ background: rgba(0,0,0,.28); transform:translateY(-50%) scale(1.05); }
.produk-nav.left{ left:-6px; }
.produk-nav.right{ right:-6px; }


/* responsive */
@media (max-width:576px){
  .produk-card{ flex-basis: 78vw; }          /* lebar kartu di HP */
  .produk-nav{ display:none; }               /* tombol panah disembunyikan, swipe saja */
}

.produk-rail.dragging { cursor: grabbing; scroll-behavior: auto; }

.produk-rail { position: relative; z-index: 3; }
.produk-card { position: relative; z-index: 4; }
.produk-nav  { z-index: 5; }

/* === Hero Section dengan efek partikel === */
#sparkleCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none; /* biar gak ganggu klik tombol */
}

.hero-overlay {
  position: relative;
  z-index: 2;
}

.hero-section {
  position: relative;
  overflow: hidden; /* cegah elemen keluar ke samping */
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-section * {
  box-sizing: border-box;
}

/* pastikan overlay tidak melebar */
.hero-overlay {
  position: relative;
  z-index: 2;
  max-width: 90%;
  margin: 0 auto;
}

/* cegah scroll horizontal di seluruh halaman */
body, html {
  overflow-x: hidden;
}

/* 1) Tambah ruang di kiri-kanan supaya tombol di kartu tepi
   tidak berada tepat di bawah area blur */
.produk-rail{
  padding: 8px 88px 12px; /* kiri/kanan = 88px (atau 72px jika ingin lebih sempit) */
}

/* 2) Overlay blur tipis di kiri-kanan */
.produk-wrap{
  position: relative;
}

.produk-wrap::before,
.produk-wrap::after{
  content:"";
  position:absolute;
  top:0; bottom:0;
  width: 72px;                /* lebar blur di tepi — kecil & halus */
  pointer-events: none;       /* penting: tidak menghalangi klik di bawahnya */
  z-index: 3;                 /* di atas kartu, tapi tidak menangkap pointer */
  /* efek “transparan + blur” agar natural */
  background: linear-gradient(90deg, rgba(251,243,213,0.85), rgba(251,243,213,0));
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

/* kiri */
.produk-wrap::before{
  left:0;
  /* transisi lembut ke transparan */
  mask-image: linear-gradient(to right, rgba(0,0,0,1), rgba(0,0,0,0));
}

/* kanan */
.produk-wrap::after{
  right:0;
  background: linear-gradient(-90deg, rgba(251,243,213,0.85), rgba(251,243,213,0));
  mask-image: linear-gradient(to left, rgba(0,0,0,1), rgba(0,0,0,0));
}

/* 3) Pastikan panah tetap di atas & bisa diklik */
.produk-nav{
  z-index: 4;
}


/* === FIXED NAVBAR FLAWFIX === */
:root {
  --nav-height: 74px; /* sesuaikan dengan tinggi navbar kamu */
}

.fc-nav{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 5000;
  height: var(--nav-height);
  display: flex; align-items: center;

  /* tampilan pastel kaca */
  background: rgba(251,243,213,0.9); /* var(--cream) dengan transparansi */
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
  transition: background .25s ease, box-shadow .25s ease;
}



/* Tambahkan ruang di atas halaman supaya tidak ketutup navbar */
body {
  padding-top: var(--nav-height);
}

/* Tambah margin saat loncat ke anchor (#produk dst) */
#beranda, #produk, #request, #lokasi {
  scroll-margin-top: calc(var(--nav-height) + 10px);
}

/* Efek saat discroll */
.fc-nav.scrolled{
  background: rgba(255,255,255,0.95);
  box-shadow: 0 10px 24px rgba(0,0,0,.12);
}

/* Kurangi jarak atas pada section produk */
#produk {
  scroll-margin-top: 70px; /* biar pas di klik link nav scroll-nya pas di bawah navbar */
  padding-top: 40px;        /* atau 60px kalau mau agak lega */
  margin-top: 0;            /* pastikan gak ada gap tambahan */
}

:root { --nav-h: 74px; } /* pastikan sama dengan tinggi navbar-mu */

/* LOKASI — pas layar, mulai dari atas (no space) */
#request {
  position: relative;
  min-height: 100vh; 
  display: flex;
  align-items: flex-start;   /* tetap nempel atas */
  justify-content: center;
  scroll-margin-top: 70px;   /* biar pas berhenti di bawah navbar */
  padding-top: 20px;         /* ubah ini buat geser ke atas/bawah */
  padding-bottom: 0;
}

/* supaya tombol kirim tetap kelihatan di 1 layar */
#request .container {
  max-height: calc(100vh - 90px);
  overflow-y: auto;
}


/* Hilangkan margin atas heading pertama di Lokasi (kalau ada) */
#lokasi h2:first-child { margin-top: 0; }


/* ==== PENYESUAIAN TAMPILAN SECTION LOKASI ==== */
#lokasi {
  position: relative;
  min-height: calc(100vh - var(--nav-h)); /* tinggi layar dikurangi navbar */
  display: flex;
  align-items: center;
  justify-content: center;
  scroll-margin-top: var(--nav-h); /* agar anchor pas di bawah navbar */
}

/* container di dalam lokasi */
#lokasi .container {
  max-height: calc(100vh - var(--nav-h) - 24px); /* biar gak overflow */
  overflow-y: auto; /* kalau isi terlalu panjang */
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* Glow tebal untuk judul hero */
.hero-section .hero-overlay h1 {
  color: var(--cream);
  font-weight: 700;
  -webkit-text-stroke: 0;             /* hapus garis hitam */
  /* Glow sage-green (var(--sage-green) = #9CAFAA) */
  text-shadow:
    0 0 2px rgba(255,255,255,.9),      /* ring putih tipis agar teks tetap crisp */
    0 0 8px  rgba(156,175,170,.95),
    0 0 16px rgba(156,175,170,.8),
    0 0 28px rgba(156,175,170,.65);
  /* Tambahan supaya lebih “nendang” di atas backdrop-blur */
  filter:
    drop-shadow(0 0 6px rgba(156,175,170,.9))
    drop-shadow(0 0 16px rgba(156,175,170,.6));
}

/* Opsional: sedikit menyala saat hover */
.hero-section .hero-overlay h1:hover {
  text-shadow:
    0 0 3px rgba(255,255,255,1),
    0 0 10px rgba(156,175,170,1),
    0 0 22px rgba(156,175,170,.9),
    0 0 36px rgba(156,175,170,.75);
  filter:
    drop-shadow(0 0 10px rgba(156,175,170,1))
    drop-shadow(0 0 22px rgba(156,175,170,.8));
}

/* === Efek glass floating pada hero overlay === */
.hero-overlay {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 18px;
  padding: 40px 50px;
  box-shadow:
    0 8px 25px rgba(156, 175, 170, 0.35),
    0 4px 12px rgba(0, 0, 0, 0.05) inset;
  transform: translateY(0);
  transition: transform 1.5s ease-in-out, box-shadow 1.5s ease-in-out;
  animation: floatyOverlay 6s ease-in-out infinite;
}

/* animasi ngambang lembut */
@keyframes floatyOverlay {
  0%, 100% {
    transform: translateY(0);
    box-shadow:
      0 8px 25px rgba(156, 175, 170, 0.35),
      0 4px 12px rgba(0, 0, 0, 0.05) inset;
  }
  50% {
    transform: translateY(-8px);
    box-shadow:
      0 16px 35px rgba(156, 175, 170, 0.45),
      0 8px 16px rgba(0, 0, 0, 0.08) inset;
  }
}

/* sedikit efek glow tepi agar makin pop */
.hero-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background: radial-gradient(circle at top left, rgba(156,175,170,0.25), transparent 60%);
  z-index: -1;
}

/* Teks IG bawah bio */
.owner-ig-text {
  margin-top: 16px;
  font-size: 1rem;
  color: #333;
  font-weight: 500;
}

/* Link IG yang serasi dengan palet dusty rose + sage */
/* IG link — gaya kapsul pastel lembut */
.ig-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--dusty-rose);
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--dusty-rose);
  border-radius: 30px;
  padding: 6px 14px;
  background: rgba(214, 169, 157, 0.1); /* dusty rose lembut */
  transition: all 0.25s ease;
}

.ig-link:hover {
  color: var(--sage-green);
  border-color: var(--sage-green);
  background: rgba(156,175,170,0.15);
  box-shadow: 0 0 10px rgba(156,175,170,0.4);
  transform: translateY(-2px);
}

.ig-link i {
  font-size: 1.1rem;
  color: var(--dusty-rose);
  transition: color 0.25s ease;
}

.ig-link:hover i {
  color: var(--sage-green);
}

