/* ==========================================
   DESIGN SYSTEM & VARIABLES
   ========================================== */
:root {
  --bg-color: #000000;
  --bg-alternate: #080808;
  --text-primary: #ffffff;
  --text-secondary: #aaaaaa;
  --text-muted: #555555;
  --border-color: #333333;
  --border-light: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.3);
  --font-sans: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --transition-base: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-image: filter 0.4s ease;
}

/* ==========================================
   RESET & BASE STYLING
   ========================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: auto; /* Handled by custom JS for smooth control */
  overflow-x: hidden;
  background-color: var(--bg-color);
}

body {
  background-color: var(--bg-color);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
  background: #222;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #444;
}

/* Selection */
::selection {
  background-color: #ffffff;
  color: #000000;
}

/* Headers */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: -0.02em;
}

a {
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition-base);
}
a:hover {
  color: var(--text-secondary);
}

/* Grid helper */
.section-spacing {
  padding: 120px 0;
  position: relative;
}

.border-top-divider {
  border-top: 1px solid var(--border-color);
}

/* ==========================================
   CUSTOM CURSOR
   ========================================== */
.custom-cursor-dot {
  width: 8px;
  height: 8px;
  background-color: #ffffff;
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background-color 0.2s;
}

.custom-cursor-follower {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.08s ease-out, width 0.3s, height 0.3s, border-color 0.3s, background-color 0.3s;
}

/* Cursor states */
body.hovering-link .custom-cursor-dot {
  width: 4px;
  height: 4px;
  background-color: #000000;
}
body.hovering-link .custom-cursor-follower {
  width: 48px;
  height: 48px;
  background-color: rgba(255, 255, 255, 1);
  border-color: #ffffff;
  mix-blend-mode: difference;
}

@media (max-width: 991.98px) {
  .custom-cursor-dot, .custom-cursor-follower {
    display: none !important;
  }
}

@media (min-width: 992px) {
  html, body, a, button, select, input, textarea, [role="button"] {
    cursor: none !important;
  }
}

/* ==========================================
   SCROLL PROGRESS BAR
   ========================================== */
.scroll-progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  z-index: 1050;
  background: transparent;
}
.scroll-progress-bar {
  height: 100%;
  background: #ffffff;
  width: 0%;
  transition: width 0.1s ease-out;
}

/* ==========================================
   NAVIGATION BAR
   ========================================== */
.navbar-custom {
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  padding: 20px 0;
  transition: var(--transition-base);
}
.navbar-custom.scrolled {
  padding: 14px 0;
  border-bottom: 1px solid var(--border-color);
  background-color: rgba(0, 0, 0, 0.95);
}

.navbar-brand-custom {
  display: inline-block;
  width: 50px; /* Lu wajib nentuin lebar area logo */
  height: 50px; /* Lu wajib nentuin tinggi area logo */
  background-image: url('img/logo.png'); /* Panggil file gambar lu di sini */
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.nav-link-custom {
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 6px 16px !important;
  position: relative;
}
.nav-link-custom::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: 0;
  left: 16px;
  background-color: var(--text-primary);
  transition: var(--transition-base);
}
.nav-link-custom:hover::after,
.nav-link-custom.active::after {
  width: calc(100% - 32px);
}
.nav-link-custom:hover,
.nav-link-custom.active {
  color: var(--text-primary) !important;
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background-color: var(--bg-color);
  overflow: hidden;
  padding: 100px 0;
}

.hero-watermark {
  position: absolute;
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: 12vw;
  color: rgba(255, 255, 255, 0.03);
  white-space: nowrap;
  pointer-events: none;
  z-index: 1;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  text-align: center;
  letter-spacing: -0.03em;
}

.hero-container {
  position: relative;
  z-index: 2;
}

.hero-headline {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

@media (max-width: 767.98px) {
  .hero-headline {
    font-size: 2rem;
  }
}

.hero-subheadline {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 40px auto;
  line-height: 1.7;
}

/* Elegant Minimal Buttons */
.btn-minimal {
  display: inline-block;
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: 14px 32px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  transition: var(--transition-base);
  border-radius: 0;
  position: relative;
}
.btn-minimal:hover {
  background: var(--text-primary);
  color: #000000;
  border-color: var(--text-primary);
  transform: translateY(-2px);
}

.btn-minimal-active {
  background: var(--text-primary);
  color: #000000;
  border-color: var(--text-primary);
}
.btn-minimal-active:hover {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-hover);
}

/* ==========================================
   ABOUT ME SECTION
   ========================================== */
.about-title {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-transform: uppercase;
  position: relative;
}

.about-body {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

/* ==========================================
   TOOLS SECTION (APBN)
   ========================================== */
.tools-tagline {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 50px;
  font-family: var(--font-mono);
}

.tool-column {
  border: 1px solid var(--border-light);
  padding: 40px;
  height: 100%;
  background: var(--bg-alternate);
  transition: var(--transition-base);
}
.tool-column:hover {
  border-color: var(--border-hover);
  transform: translateY(-5px);
}

.tool-category-title {
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
}

.tool-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tool-item {
  padding: 10px 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
}

.tool-item::before {
  content: '→';
  margin-right: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  transition: var(--transition-base);
}

.tool-column:hover .tool-item::before {
  color: var(--text-primary);
  transform: translateX(4px);
}

/* ==========================================
   WORK EXPERIENCE SECTION
   ========================================== */
/* ==========================================
   WORK EXPERIENCE SECTION (UPDATED DARI GAMBAR.PNG)
   ========================================== */
.experience-section {
  background-color: var(--bg-alternate);
  position: relative;
  overflow: hidden;
}

/* Style Sticker Badge Putih Miring */
.sticker-badge {
  display: inline-block;
  background-color: #ffffff;
  color: #000000;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 4px 12px;
  /* Membuat posisi menumpuk sedikit di atas h2 */
  transform: rotate(-2deg) translate(140px, 1px); 
  z-index: 10;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  letter-spacing: -0.01em;
}

/* Responsif untuk layar kecil agar posisi sticker tetap pas di atas teks */
@media (max-width: 767.98px) {
  .sticker-badge {
    transform: rotate(-4deg) translate(0, 0);
    margin-bottom: 10px;
  }
}

/* Grayscale Image Placeholder Wrapper */
.card-img-wrapper {
  position: relative;
  width: 100%;
  height: 200px;
  background-color: #111111;
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
  filter: grayscale(100%);
  transition: var(--transition-image);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-img-placeholder-tag {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  background-color: rgba(0, 0, 0, 0.8);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  padding: 6px 12px;
  pointer-events: none;
  z-index: 3;
  letter-spacing: 0.05em;
  transition: var(--transition-base);
}

.portfolio-card:hover .card-img-wrapper {
  filter: grayscale(0%);
}

.portfolio-card:hover .card-img-placeholder-tag {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.6);
  background-color: rgba(0, 0, 0, 0.95);
}

/* High quality vector artwork inside wrappers */
.card-svg-artwork {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: var(--transition-base);
}

.portfolio-card:hover .card-svg-artwork {
  opacity: 1;
  transform: scale(1.03);
}

/* Card Box */
.portfolio-card {
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: var(--transition-base);
  border-radius: 0;
  position: relative;
}

.portfolio-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transform: translateY(-5px);
}

.card-content {
  padding: 30px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: block;
}

.portfolio-card:hover .card-tag {
  color: var(--text-primary);
}

.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.card-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 0;
}

/* ==========================================
   STATS DASHBOARD SECTION
   ========================================== */
.stats-intro {
  font-size: 1.05rem;
  max-width: 720px;
  margin: 0 auto 60px auto;
  line-height: 1.7;
}

.stats-card {
  border: 1px solid var(--border-color);
  background-color: var(--bg-color);
  padding: 40px 30px;
  height: 100%;
  text-align: center;
  transition: var(--transition-base);
}

.stats-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.stats-header-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 20px;
  display: block;
}

.stats-val-group {
  margin-bottom: 15px;
}

.stats-value {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1;
}

.stats-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  margin-top: 5px;
}

.stats-divider {
  width: 40px;
  height: 1px;
  background-color: var(--border-color);
  margin: 15px auto;
}

.stats-detail {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0;
  transition: var(--transition-base);
}

.stats-card:hover .stats-detail {
  color: var(--text-secondary);
}

/* ==========================================
   EDUCATION SECTION
   ========================================== */
.education-row {
  padding: 35px 0;
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition-base);
}
.education-row:last-child {
  border-bottom: none;
}
.education-row:hover {
  border-color: var(--border-hover);
}

.education-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 5px;
}

.education-meta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.education-row:hover .education-meta {
  color: var(--text-secondary);
}

.education-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 0;
  max-width: 800px;
}

/* ==========================================
   LET'S CONNECT (FOOTER)
   ========================================== */
.connect-section {
  background-color: var(--bg-alternate);
  border-top: 1px solid var(--border-color);
  padding-bottom: 60px;
}

.connect-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 50px;
}

.connect-links-grid {
  border-top: 1px solid var(--border-light);
  padding-top: 40px;
  margin-bottom: 60px;
}

.connect-link-item {
  display: flex;
  flex-direction: column;
  margin-bottom: 24px;
}

.connect-link-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.connect-link-value {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  display: inline-block;
  position: relative;
  padding-bottom: 4px;
  align-self: flex-start;
}

.connect-link-value::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: 0;
  left: 0;
  background-color: var(--text-primary);
  transition: var(--transition-base);
}

.connect-link-value:hover::after {
  width: 100%;
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* ==========================================
   BACK TO TOP BUTTON
   ========================================== */
.back-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 44px;
  height: 44px;
  background-color: #000000;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: var(--transition-base);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background-color: #ffffff;
  color: #000000;
  border-color: #ffffff;
}

/* ==========================================
   ANIMATIONS & REVEALS
   ========================================== */
.reveal-element {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-element.active {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ==========================================
   UNIQUE BRUTALIST POLAROID PHOTO FRAME
   ========================================== */
.dezet-photo-wrapper {
  position: relative;
  display: inline-block;
  padding: 20px;
  transform: rotate(-3deg);
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  max-width: 100%;
}

.dezet-photo-wrapper:hover {
  transform: rotate(1deg) scale(1.05);
}

.dezet-photo-card {
  background: #111111;
  border: 2px solid #ffffff;
  padding: 12px 12px 24px 12px;
  box-shadow: 12px 12px 0px rgba(255, 255, 255, 0.1);
  transition: box-shadow 0.4s ease, border-color 0.4s ease;
  position: relative;
  display: inline-block;
}

.dezet-photo-wrapper:hover .dezet-photo-card {
  box-shadow: 16px 16px 0px #ffffff;
  border-color: #ffffff;
}

.dezet-photo-inner {
  position: relative;
  width: 250px;
  height: 280px;
  max-width: 100%;
  background-color: #0c0c0e;
  overflow: hidden;
  border: 1px solid #222;
}

.dezet-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.dezet-photo-wrapper:hover .dezet-photo-img {
  transform: scale(1.05);
}

.dezet-photo-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, transparent 50%, rgba(0,0,0,0.3) 100%);
  pointer-events: none;
}

.dezet-photo-caption {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.8rem;
  margin-top: 15px;
  letter-spacing: 0.15em;
  font-weight: 600;
  transition: color 0.4s ease;
}

.dezet-photo-wrapper:hover .dezet-photo-caption {
  color: #ffffff;
}

/* Washi Tape (Plester) Effect */
.dezet-photo-tape {
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%) rotate(4deg);
  width: 110px;
  height: 30px;
  background-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-left: 1px dashed rgba(255, 255, 255, 0.3);
  border-right: 1px dashed rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 10;
  pointer-events: none;
  transition: background-color 0.4s ease;
}

.dezet-photo-wrapper:hover .dezet-photo-tape {
  background-color: rgba(255, 255, 255, 0.35);
}

@media (max-width: 575.98px) {
  .dezet-photo-inner {
    width: 200px;
    height: 230px;
  }
  .dezet-photo-tape {
    width: 80px;
    height: 25px;
  }
}
