/* BAYU Portfolio — Revisi 04: 4 opsional visual enhancements.
   Aktif/nonaktif tiap fitur di js/config.js > enhancements.
   Tidak mengubah komposisi, warna dasar, foto, atau copy portofolio. */

/* 01 — Progress bar di tepi atas, di atas header tanpa memakan ruang. */
.scroll-progress {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 1002;
  pointer-events: none;
  background: rgba(26, 125, 195, .16);
}
.feature-scroll-progress .scroll-progress { display: block; }
.scroll-progress-fill {
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, #078ef2, #42c5ff);
  box-shadow: 0 0 8px rgba(37, 161, 255, .38);
  will-change: transform;
}

/* 02 — Foto menyala samar saat hover. Hanya pointer mouse/trackpad.
   Transform tidak mengubah layout; foto Vendor tetap menggunakan object-fit yang sudah ada. */
@media (hover: hover) and (pointer: fine) {
  .feature-photo-hover .slide-project .project-media img,
  .feature-photo-hover .slide-gallery .gallery-art img,
  .feature-photo-hover .slide-videos .video-item img {
    transition: transform .3s ease, filter .3s ease;
  }
  .feature-photo-hover .slide-project .project-media:hover img,
  .feature-photo-hover .slide-gallery .gallery-art:hover img,
  .feature-photo-hover .slide-videos .video-item:hover img,
  .feature-photo-hover .slide-videos .video-item:focus-within img {
    transform: scale(1.012);
    filter: drop-shadow(0 0 12px rgba(18, 155, 255, .36));
  }
  /* Strip dokumentasi pekerjaan tidak diperbesar agar teks dalam gambar tak terpotong. */
  .feature-photo-hover .slide-work .experience-strip {
    transition: box-shadow .3s ease;
  }
  .feature-photo-hover .slide-work .experience-strip:hover {
    box-shadow: 0 0 0 1px rgba(34, 167, 255, .6), 0 0 16px rgba(34, 167, 255, .18);
  }
}

/* 03 — Mini metrik pada baris heading RESULT di tiga halaman proyek.
   Teks paragraf RESULT tetap utuh dan tak berubah. */
.result-metric { display: none; }
.feature-result-metrics .project-result .result-metric {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  vertical-align: middle;
  white-space: nowrap;
  margin: 0 0 8px 3px;
  padding: 6px 9px;
  border: 1px solid rgba(65, 175, 255, .34);
  border-radius: 4px;
  background: rgba(8, 74, 118, .58);
  color: #d4edff;
  font: 500 10px/1.2 'Poppins', sans-serif;
  letter-spacing: .03em;
}
.feature-result-metrics .result-metric strong {
  color: #65c4ff;
  font-size: 12px;
  font-weight: 700;
}

/* 04 — Reveal ringan; kelas efek baru ditambahkan setelah IntersectionObserver aktif. */
@media (prefers-reduced-motion: no-preference) {
  .feature-reveal .reveal-target {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .52s ease-out, transform .52s ease-out;
  }
  .feature-reveal .reveal-target.is-revealed {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .feature-reveal .reveal-target {
    opacity: 1 !important;
    transform: none !important;
  }
  .feature-photo-hover .slide-project img,
  .feature-photo-hover .slide-gallery img {
    transform: none !important;
  }
}
@media print {
  .scroll-progress { display: none !important; }
  .feature-reveal .reveal-target { opacity: 1 !important; transform: none !important; }
}


/* ===============================================================
   BAYU Portfolio — Revisi 05: MINIMAL & ELEGANT.
   Ditambahkan di atas Revisi 04 (bukan mengganti aturan lama).
   Semua selektor opt-in via js/config.js > elegantVisuals.
   Tanpa mengubah susunan/foto/isi dari 16 halaman portofolio.
   =============================================================== */
:root {
  --elegant-blue: #44b5ff;
  --elegant-stroke: rgba(95, 182, 250, .20);
  --elegant-glow: 0 0 0 1px rgba(45, 160, 239, .16), 0 10px 27px rgba(1, 10, 22, .14);
}

/* 1. Navbar active state, menyempurnakan underline yang sudah ada. */
.feature-elegant .site-header {
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(101, 183, 242, .065);
}
.feature-elegant .nav-link.is-active::after {
  background: linear-gradient(90deg, #ecf8ff 0%, #4cb6ff 90%);
  box-shadow: 0 0 8px rgba(76, 182, 255, .28);
  border-radius: 999px;
}
@media (hover: hover) and (pointer: fine) {
  .feature-elegant .nav-link:hover { color: #a8dcff; }
}

/* 2. Subtle ambient glow, behind content only; inherited background remains. */
.feature-elegant .slide { isolation: isolate; }
.feature-elegant .slide::before {
  content: '';
  position: absolute;
  width: clamp(180px, 24vw, 370px);
  aspect-ratio: 1;
  top: 16%;
  right: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(29, 132, 217, .095), rgba(29, 132, 217, 0) 68%);
  pointer-events: none;
  z-index: -1;
}
.feature-elegant .slide:nth-child(2n)::before { right: auto; left: 0; top: 60%; }
.feature-elegant .slide .stage { position: relative; z-index: 0; }
/* Existing media/gallery panels keep exact widths and positions. */
.feature-elegant .page-panel {
  box-shadow: inset 0 1px 0 rgba(232, 247, 255, .045),
              0 15px 45px rgba(0, 8, 22, .11);
}

/* 3. Existing small labels enhanced with blue outline/shadow, no shift. */
.feature-elegant .pill-label,
.feature-elegant .work-subtitle {
  box-shadow: inset 2px 0 0 rgba(83, 188, 255, .56),
              0 2px 14px rgba(0, 17, 36, .045);
}
.feature-elegant .work-banner {
  box-shadow: inset 0 1px 0 rgba(136, 205, 252, .13);
}
.feature-elegant .gallery-heading h2 {
  box-shadow: 0 3px 14px rgba(1, 88, 169, .13);
}
.feature-elegant .gallery-line {
  background: linear-gradient(90deg, rgba(238, 249, 255, .94), rgba(172, 225, 255, .58));
}

/* 4. Hover: elegant frames and very restrained movement. */
@media (hover: hover) and (pointer: fine) {
  .feature-elegant .project-media,
  .feature-elegant .gallery-art,
  .feature-elegant .education-photo-wrap,
  .feature-elegant .about-portrait {
    transition: filter .28s ease, box-shadow .28s ease;
  }
  .feature-elegant .project-media:hover,
  .feature-elegant .gallery-art:hover,
  .feature-elegant .education-photo-wrap:hover,
  .feature-elegant .about-portrait:hover {
    filter: drop-shadow(0 4px 13px rgba(48, 153, 236, .19));
  }
  /* Full images stay visible: no wrapper overflow, no enforced dimensions. */
  .feature-elegant .social-icons a {
    transition: border-color .22s ease, transform .22s ease, box-shadow .22s ease;
  }
  .feature-elegant .social-icons a:hover {
    transform: translateY(-2px);
    border-color: rgba(109, 199, 255, .7);
    box-shadow: 0 0 10px rgba(23, 150, 255, .19);
  }
  .feature-elegant #skills .skills-list li {
    transition: color .22s ease, text-shadow .22s ease;
  }
  .feature-elegant #skills .skills-list li:hover {
    color: #d5f1ff;
    text-shadow: 0 0 10px rgba(35, 159, 255, .18);
  }
  .feature-elegant .video-item:hover { filter: drop-shadow(0 3px 8px rgba(38, 156, 252, .15)); }
  .feature-elegant .contact-card:hover {
    box-shadow: var(--elegant-glow);
    border-color: rgba(87, 174, 239, .48);
  }
}

/* 5. Tiny gloss on existing buttons; icon/text and links stay the same. */
.feature-elegant .btn-primary,
.feature-elegant .nav-cta,
.feature-elegant .next-button,
.feature-elegant .video-item a {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(9, 133, 230, .12);
  transition: background .22s ease, transform .22s ease, box-shadow .25s ease;
}
/* Posisi NEXT pada Canva tetap absolut di kanan-bawah panel. */
.feature-elegant .page-panel > .next-button { position: absolute; }
.feature-elegant .btn-primary::after,
.feature-elegant .nav-cta::after,
.feature-elegant .next-button::after,
.feature-elegant .video-item a::after {
  content: '';
  position: absolute;
  top: -15%;
  bottom: -15%;
  width: 40%;
  left: -75%;
  transform: skewX(-22deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .16), transparent);
  pointer-events: none;
  transition: left .58s ease;
}
@media (hover: hover) and (pointer: fine) {
  .feature-elegant .btn-primary:hover,
  .feature-elegant .nav-cta:hover,
  .feature-elegant .next-button:hover,
  .feature-elegant .video-item a:hover {
    box-shadow: 0 6px 18px rgba(9, 133, 230, .22);
  }
  .feature-elegant .btn-primary:hover::after,
  .feature-elegant .nav-cta:hover::after,
  .feature-elegant .next-button:hover::after,
  .feature-elegant .video-item a:hover::after { left: 145%; }
}

/* 6. Result metrics: already present in Revisi 04; polish, no duplication. */
.feature-elegant.feature-result-metrics .project-result .result-metric {
  border-color: rgba(85, 179, 251, .38);
  box-shadow: 0 0 0 1px rgba(13, 77, 129, .08), 0 3px 12px rgba(3, 20, 40, .09);
}

/* 7. Do not alter the hard-won alignment of captions on pages 11–13. */
.feature-elegant :is(#social-ppds, #social-rsph, #social-hksis) .gallery-figure .gallery-caption {
  text-align: left;
}

@media (max-width: 768px) {
  .feature-elegant .slide::before { width: 150px; right: 0; }
  .feature-elegant .slide:nth-child(2n)::before { left: 0; }
  /* Buttons do not get larger; preserve the original mobile layout. */
}
@media (prefers-reduced-motion: reduce) {
  .feature-elegant .btn-primary::after,
  .feature-elegant .nav-cta::after,
  .feature-elegant .next-button::after,
  .feature-elegant .video-item a::after { display: none; }
  .feature-elegant .slide::before { display: none; }
}
@media print {
  .feature-elegant .slide::before,
  .feature-elegant .btn-primary::after,
  .feature-elegant .nav-cta::after { display: none !important; }
}
