/* === THEME: Comic Flat (Hitam & Putih) === */
:root {
  --bg: #ffffff;
  --accent: #000000;
  --muted: #f0f0f0;
  --text-muted: #5a5a5a;
  /* --muted: #f8f8f8; */
}
/* Hilangkan scrollbar tapi tetap bisa scroll */
html, body {
  scrollbar-width: none;        /* Firefox */
  -ms-overflow-style: none;     /* Internet Explorer dan Edge lama */
}
/* ===== Ubah warna blok teks (highlight) seluruh halaman ===== */
::selection {
  background: #000;   /* warna background hitam */
  color: #fff;        /* warna teks saat diblok, biar tetap terbaca */
}

::-moz-selection {
  background: #000;
  color: #fff;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;                /* Chrome, Safari, Edge modern */
}

body {
  background: var(--bg);
  color: var(--accent);
  font-family: 'Comic Neue', 'Poppins', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

* {
  border-radius: 0 !important;
  box-shadow: none !important;
  transition: all 0.3s ease;
}

a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}
a:hover {
  text-decoration: none;
  color: var(--accent);
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}


/* Summernote Customization */
p {
    margin-bottom: 0rem !important;
}

dl, ol, ul {
    margin-bottom: 0rem !important;
}
ol, ul {
    padding-left: 1.5rem !important;
}

b,strong {
    font-weight: 800 !important;
    color: #2b405b !important;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 400 !important;
    color: #2b405b !important;
    font-family: 'Comic Neue', 'Poppins', system-ui, sans-serif;
}
/* === Navbar === */
.navbar {
  background: var(--bg);
  text-transform: uppercase;
  border-bottom: 2px solid var(--accent);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.navbar .nav-link {
  color: #000;
  text-transform: uppercase;
  letter-spacing: .5px;
  text-decoration: none;
  transition: all 0.2s ease; /* agar efek halus */
}
.navbar .nav-link:hover {
  font-weight: bold;
  color: var(--text-muted); /* bisa sekalian ubah warna */
}
.navbar .nav-link.active {
  border-bottom: 2px solid #000;
}

/* === Hero === */
.hero {
  padding: 5rem 0;
  text-align: center;
  background: var(--muted);
}
.hero h1 {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 3px solid var(--accent);
  box-shadow: #000 3px 3px 0px 0px !important;
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--bg);
}

/* === Sections === */
section {
  padding: 4rem 0;
}
.section-title {
  font-weight: 700;
  text-transform: uppercase;
  border-bottom: 3px solid var(--accent);
  display: inline-block;
  margin-bottom: 2rem;
  padding-bottom: 0.3rem;
}

/* === Card Flat Style === */
.card {
  border: 2px solid var(--accent);
  background: var(--bg);
  box-shadow: #000 0px 0px 0px 0px;
  transition:
    transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: #000 3px 3px 0px 0px !important;
}

/* Saat ditekan — efek klik seperti tombol fisik */
.card:active {
  transform: translateY(0);
  box-shadow: #000 0px 0px 0px 0px;
}


.btn-flat {
  border: 2px solid var(--accent);
  background: var(--bg);
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.5rem 1.2rem;
  display: inline-block;
  box-shadow: #000 0px 0px 0px 0px;
  cursor: pointer;

  /* Transisi lembut untuk transform, shadow, dan warna */
  transition:
    transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    background 0.3s ease,
    color 0.3s ease;
}

.btn-flat:hover {
  border: 2px solid var(--accent);
  transform: translateY(-4px);
  box-shadow: #000 3px 3px 0px 0px !important;
  text-decoration: none;
}


.badge-flat {
  display: inline-block;
  padding: 0.35em 0.75em;
  font-size: 0.75em;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.03em;

  color: var(--bg);
  background: var(--accent);
  border: 2px solid var(--accent);
  box-shadow: #000 2px 2px 0px 0px;
  position: relative;
  cursor: default;
  user-select: none;

  transition:
    transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1),
    background 0.25s ease,
    color 0.25s ease;
}
/* versi link */
a.badge-flat {
  text-decoration: none;
  cursor: pointer;
}

/* hover: efek lompat komik */
a.badge-flat:hover,
a.badge-flat:focus {
  background: var(--bg);
  color: var(--accent);
  transform: translate(-2px, -2px);
  box-shadow: #000 4px 4px 0px 0px;
}

/* efek klik (tertekan) */
a.badge-flat:active {
  transform: translate(0, 0);
  box-shadow: #000 1px 1px 0px 0px;
}

/* variasi bentuk pil opsional */
.badge-flat.rounded-pill {
  border-radius: 999px;
  padding: 0.35em 1em;
}


/* === Portfolio === */
#portfolio {
  border-top: 2px solid var(--accent);
}
#portfolio .portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 5px;
  padding: 0 5px;
  max-width: 100%;
}

/* === Item === */
.masonry-item {
  background: var(--bg);
  padding: 0.5rem;
  border: 2px solid var(--accent);
  overflow: hidden;
  text-align: center;
  cursor: pointer;
  box-shadow: #000 0px 0px 0px 0px;

  /* Transisi lebih halus */
  transition:
    transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.masonry-item:hover {
  transform: translateY(-6px);
  box-shadow: #000 4px 4px 0px 0px !important;
}

/* === Gambar === */
.masonry-item img {
  width: 100%;
  aspect-ratio: 1 / 1;   /* Bikin kotak */
  object-fit: cover;     /* Crop ke tengah */
  border: 1px solid var(--accent);
  display: block;

  /* Transisi lembut agar tidak kaku saat hover */
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              filter 0.4s ease;
}

/* Saat hover: gambar sedikit membesar halus */
.masonry-item:hover img {
  transform: scale(1.03);
  filter: brightness(1.05);
}


/* Judul dan tanggal */
.masonry-item h6 {
  text-transform: uppercase;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.masonry-item small {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Responsif */
@media (max-width: 575px) {
  #portfolio .portfolio-grid { grid-template-columns: repeat(1, 1fr); }
}
@media (min-width: 576px) and (max-width: 991px) {
  #portfolio .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 992px) and (max-width: 1399px) {
  #portfolio .portfolio-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1400px) {
  #portfolio .portfolio-grid { grid-template-columns: repeat(5, 1fr); }
}
/* === Product Section (Masonry Style) === */
#products {
  border-top: 2px solid var(--accent);
  background: var(--muted);
}
#products .masonry {
  column-gap: 1.5rem;
}

@media (max-width: 575px) {
  #products .masonry { column-count: 1; }
}
@media (min-width: 576px) and (max-width: 991px) {
  #products .masonry { column-count: 2; }
}
@media (min-width: 992px) {
  #products .masonry { column-count: 4; }
}

#products .masonry-item {
  display: inline-block;
  width: 100%;
  margin: 0 0 1.5rem;
  break-inside: avoid;
  border: 2px solid var(--accent);
  background: var(--bg);
  padding: 0.35rem;
  transition: transform 0.25s ease;
}

#products .masonry-item:hover {
  transform: translateY(-6px);
}

#products .masonry-item img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border: 2px solid var(--accent);
}
#products .masonry-item h6 {
  margin: 0.6rem 0 0;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
  text-align: center;
}

.product-link {
  color: inherit;
  text-decoration: none ! important;
}
.product-link:hover h6 {
  text-decoration: none ! important;
}

/* Product Modal */
.modal-content {
  border: 2px solid #000 !important;
  border-radius: 0 !important;
  box-shadow: #000 5px 5px 0px 0px !important;
  font-family: 'Poppins', sans-serif;
}

.modal-header {
  border-bottom: 2px solid #000;
}

.modal-footer {
  border-top: 2px solid #000;
}

.modal-title {
  font-family: 'Comic Neue', cursive;
  font-size: 1.5rem;
  font-weight: 700;
}

#about {
  background: var(--bg);
  border-top: 2px solid var(--accent);
}

#contact {
  background: var(--bg);
  border-top: 2px solid var(--accent);
}
/* === Skill Set === */
#skills {
  border-top: 2px solid var(--accent);
  background: var(--muted);
}

.skill-item h6 {
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.skill-bar {
  width: 100%;
  height: 10px;
  background: var(--muted);
  border: 2px solid var(--accent);
  overflow: hidden;
  position: relative;
}

.skill-bar .fill {
  width: 0;
  height: 100%;
  background: var(--accent);
  transition: width 1s ease;
}

/* === Footer === */
footer {
  border-top: 2px solid var(--accent);
  text-align: center;
  padding: 2rem 0;
  color: var(--text-muted);
  background: var(--muted);
}

/* === Social Media Buttons === */
footer .social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

footer .social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

footer .social:hover {
  background: var(--accent);
  text-decoration: none;
  color: var(--bg);
  transform: translateY(-3px);
}

.modal-backdrop.show {
  display: none !important; /* pastikan backdrop tidak muncul */
}
/* === Icon Keranjang di Produk === */
.icon-cart {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(255, 255, 255, 0.8);
  border: 2px solid var(--accent);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.4rem;
  transition: all 0.3s ease;
  z-index: 2;
}

.product-link:hover .icon-cart {
  background: var(--accent);
  color: var(--bg);
  transform: translateY(-2px);
}

/* === Tombol Scroll to Top === */
.btn-scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 46px;
  height: 46px;
  border: 2px solid var(--accent);
  background: var(--bg);
  color: var(--accent);
  font-weight: 800;
  font-size: 1.3rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  z-index: 999;
  box-shadow: #000 0px 0px 0px 0px;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease,
    background 0.3s ease;
}

/* Saat tombol aktif muncul */
.btn-scroll-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  background: rgba(255,255,255,0.12); /* transparan, sesuaikan warna/alpha */
  backdrop-filter: blur(10px);        /* <-- Gaussian blur ke apa di belakang */
  -webkit-backdrop-filter: blur(10px);/* Safari */
  box-shadow: #000 3px 3px 0px 0px;
}

/* Hover — gaya khas flat */
.btn-scroll-top:hover {
  transform: translateY(-4px);
  box-shadow: #000 4px 4px 0px 0px !important;
  background: var(--accent);
  color: var(--bg);
}

/* Saat ditekan */
.btn-scroll-top:active {
  transform: translateY(0);
  box-shadow: #000 0px 0px 0px 0px !important;
}

/* ------------------------------ */
/* ARTIKETL CSS */
blockquote {
  font-style: italic;
  color: var(--text-muted);
  border-left: 4px solid var(--accent-color, var(--text-muted)) !important;
  padding: 0.8rem 1.2rem !important;
  margin: 1.2rem 0 !important;
  background: rgba(0, 0, 0, 0.03);
  border-radius: 4px !important;
}

blockquote p {
  margin: 0 ! important;
}

blockquote::before {
  content: "“";
  font-size: 2.6rem;
  line-height: 1;
  margin-right: 0.2rem;
  vertical-align: -0.4rem;
  color: var(--accent-color, var(--text-muted));
}

p {
  margin: 0.6rem 0 !important;
  font-family: 'Comic Neue', 'Poppins', system-ui, sans-serif ! important;
  line-height: 1.5 ! important;
}

li {
  margin: 0.6rem 0 !important;
  font-family: 'Comic Neue', 'Poppins', system-ui, sans-serif ! important;
  line-height: 1.5 ! important;
}

