﻿/* Portfolio overrides — no cookie/newsletter; layout/a11y polish */

.newsletter-popup,
.js-site-notice,
.site-notice,
.modal-backdrop.newsletter,
#newsletter-popup {
  display: none !important;
}

/* SplitText-less titles remain visible (no green highlight — copy will diverge from demo) */
.split-text {
  opacity: 1;
}
.split-text > div {
  display: block;
}

/*
 * main-content uses pointer-events:none; only .wrap-container gets all.
 * Footer is a sibling of wrap-container (demo structure) — restore clicks.
 */
.main-content #footer,
.main-content .tf-footer {
  pointer-events: all;
}

/* Logo size parity with demo (~40px display; assets are 60×60) */
.sidebar-user .user-logo img,
.tf-header-wrap .logo-site img {
  width: 40px;
  height: 40px;
  max-width: 40px;
  object-fit: contain;
}

/*
 * Sidebar photo scrim (opsi A): full-bleed to photo corners (L/R/bottom),
 * so white overlay text stays readable without edge gaps.
 */
.sidebar-user .user-image {
  isolation: isolate;
}
.sidebar-user .user-image::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.94) 0%,
    rgba(0, 0, 0, 0.82) 28%,
    rgba(0, 0, 0, 0.55) 52%,
    rgba(0, 0, 0, 0.2) 72%,
    rgba(0, 0, 0, 0) 86%
  );
}
.sidebar-user .user-info,
.sidebar-user .user-social,
.sidebar-user .user-logo {
  z-index: 3;
}
/* Keep vertical availability badge above the scrim */
.sidebar-user .user-image .meta-left {
  z-index: 3;
}

/*
 * Mobile ≤991px (A+B):
 * A) object-position bias ke wajah — kurangi band hitam studio + garis tajam
 *    tengah (crop aspect-ratio tema menonjolkan hitam atas / baju putih).
 * B) scrim lebih pendek & lembut di tengah, tetap kuat di zona teks bawah.
 * Harus menang atas tema `.user-image::before { height:50% }` di styles.css.
 */
@media (max-width: 991px) {
  .sidebar-user .user-image .image img {
    object-fit: cover;
    object-position: center 28%;
  }
  .sidebar-user .user-image::before {
    inset: auto 0 0 0;
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    height: 58%;
    z-index: 2;
    border-radius: 0 0 18px 18px;
    background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.92) 0%,
      rgba(0, 0, 0, 0.7) 38%,
      rgba(0, 0, 0, 0.32) 72%,
      rgba(0, 0, 0, 0) 100%
    );
  }
}
@media (max-width: 425px) {
  .sidebar-user .user-image .image img {
    object-position: center 24%;
  }
  .sidebar-user .user-image::before {
    height: 55%;
  }
}

/* Intro author: tighten name ↔ role vertical gap */
.section-intro .intro-author .author-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}
.section-intro .intro-author .info_name,
.section-intro .intro-author .info_duty {
  margin: 0;
  line-height: 1.25;
}

/*
 * Availability badge: longer ID copy (“Terbuka untuk Kolaborasi”)
 * needs a taller capsule SVG than the demo’s 227px.
 */
.sidebar-user .user-image .bg-item-svg img {
  width: 32px;
  height: 300px;
  object-fit: fill;
}
.sidebar-user .user-image .avaiable-dot.vertical .text-vertical {
  letter-spacing: 0.02em;
}

/* Skills list (replaces awards): no hover preview image */
.section-about .skill-list .skill-item {
  cursor: default;
}
.section-about .skill-list .skill-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  opacity: 0.72;
}
.section-about .skill-list .skill-icon .icon,
.section-about .skill-list .skill-icon svg {
  width: 22px;
  height: 22px;
}

/* Process steps (replaces testimonials slider) */
.section-process .process-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.section-process .process-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  align-items: start;
  padding: 20px 0;
}
.section-process .process-step {
  margin: 0;
  line-height: 1.2;
  color: var(--primary, #00de51);
}
.section-process .process-title {
  margin: 0 0 6px;
}
.section-process .process-desc {
  margin: 0;
}
.section-process .br-line {
  display: block;
  height: 1px;
  padding: 0;
  margin: 0;
  background: var(--black-6, rgba(0, 0, 0, 0.06));
  list-style: none;
}
.dark-mode .section-process .br-line {
  background: rgba(255, 255, 255, 0.08);
}

/* Footer wordmarks: AlBasri (fill paths) + Dev (stroke paths), Isak-style */
.tf-footer .foot-inner .isak {
  max-width: 520px;
}
.tf-footer .foot-bottom .isak {
  max-width: 260px;
}
.tf-footer .brand-wordmark svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}
.dark-mode .tf-footer .foot-inner .brand-wordmark path {
  fill: #fff;
  fill-opacity: 0.85;
}
.dark-mode .tf-footer .foot-bottom .brand-wordmark path {
  stroke: #fff;
  stroke-opacity: 0.56;
  fill: none;
}

/* Timeline: keep date text clear of the vertical/progress line (ID copy can be wider) */
@media (min-width: 992px) {
  .timeline-item .timeline-date {
    min-width: 142px;
    padding-right: 8px;
    box-sizing: border-box;
  }
  .section-education-experience .timeline-line {
    left: 148px;
  }
  body[dir="rtl"] .section-education-experience .timeline-line {
    left: auto;
    right: 148px;
  }
}

/*
 * Language pill toggle (ID | EN) under Kontak.
 * Wrapper uses theme `.offcanvas-language-list` (border-top + padding)
 * so spacing matches other menu separators.
 */
.offcanvas-language-list .offcanvas-lang-toggle {
  display: inline-flex;
  align-items: stretch;
  margin-top: 2px;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  gap: 0;
}
body:not(.dark-mode) .offcanvas-language-list .offcanvas-lang-toggle {
  border-color: rgba(0, 0, 0, 0.12);
  background: rgba(0, 0, 0, 0.04);
}
.offcanvas-lang-toggle .lang-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}
body:not(.dark-mode) .offcanvas-lang-toggle .lang-pill {
  color: rgba(0, 0, 0, 0.45);
}
.offcanvas-lang-toggle .lang-pill:hover {
  color: rgba(255, 255, 255, 0.9);
}
body:not(.dark-mode) .offcanvas-lang-toggle .lang-pill:hover {
  color: rgba(0, 0, 0, 0.85);
}
.offcanvas-lang-toggle .lang-pill.active {
  background: var(--primary, #00de51);
  color: #0f0f0f;
}
.offcanvas-lang-toggle .lang-pill:focus-visible {
  outline: 2px solid var(--primary, #00de51);
  outline-offset: 2px;
}

/* Contact terms: keep checkbox + label usable (theme can hide labels) */
.section-contact .form-check,
.section-contact .form-check-label {
  visibility: visible !important;
}
.section-contact .form-check-input {
  visibility: visible !important;
  position: static !important;
  opacity: 1 !important;
  width: 1.1em;
  height: 1.1em;
  margin-right: 0.5rem;
  flex-shrink: 0;
  pointer-events: auto !important;
  accent-color: var(--primary, #00de51);
  -webkit-appearance: auto;
  appearance: auto;
}
.section-contact .form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
  color: inherit;
  cursor: pointer;
}
.section-contact .form-check-label {
  cursor: pointer;
}

/* Flash messages after contact submit */
.section-contact .flat-alert {
  padding: 12px 16px;
  border-radius: 12px;
  margin-bottom: 16px;
  pointer-events: all;
}
.section-contact .flat-alert.msg-success {
  background: rgba(61, 171, 37, 0.15);
  color: var(--success, #3dab25);
}
.section-contact .flat-alert.msg-error {
  background: rgba(244, 67, 54, 0.12);
  color: var(--error, #f44336);
}

/*
 * Rail under translucent offcanvas looks like a vertical “line”.
 * Hide rail chrome while the gear menu is open (Bootstrap .showing / .show).
 * :has() keeps this CSS-only — no race with offcanvas JS events.
 *
 * Mobile hamburger (.action-open-mobile) must stay ABOVE .overlay-pop (z-index:98)
 * or the dropdown opens “empty” behind the blur. Theme default is 99.
 */
.sidebar-tools,
.tf-left-bar {
  pointer-events: all;
  z-index: 50;
}
.action-open-mobile {
  pointer-events: all;
  z-index: 99;
}
body:has(#settingColorMenu.showing) .sidebar-tools,
body:has(#settingColorMenu.show) .sidebar-tools,
body:has(#settingColorMenu.showing) .tf-left-bar,
body:has(#settingColorMenu.show) .tf-left-bar {
  visibility: hidden;
  pointer-events: none;
}

/* Active rail link affordance (scroll spy) */
.sidebar-tools .scroll-link.active,
.nav-mobile-list .scroll-link.active {
  color: var(--primary, #00de51);
}

/* Brand marquee: demo max-width + avoid page overflow */
.brand-slider-wrap {
  overflow: hidden;
  max-width: 464px;
}

/* Tech icons: keep crisp SVG sizing inside 64px circle */
.wg-tech .tech_image img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

/* Prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .scribble.is-drawn path {
    animation: none !important;
    stroke-dashoffset: 0 !important;
  }
  .brand-slider.slick-initialized .slick-track {
    transition: none !important;
  }
}
