/* ========================================= */
/* TEMA: PREMIUM DARK UI - EMERALD NATURE    */
/* ========================================= */

:root {
  --bg-color: #080a0c; /* Hitam pekat */
  --bg-alt: #0d1116;
  --card-bg: #12181d; /* Navy gelap tint hijau */
  --card-border: rgba(46, 204, 113, 0.1); /* Border hijau transparan */
  --text-color: #ecf0f1;
  --text-muted: #95a5a6;
  --accent-color: #2ecc71; /* Hijau Emerald */
  --accent-hover: #27ae60;
  --accent-glow: rgba(46, 204, 113, 0.2);
  --border-radius-lg: 16px;
  --border-radius-md: 12px;
}

/* Scroll Mulus & Jarak Menu */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;

  /* Implementasi Tekstur Topografi Baru */
  background-image:
    radial-gradient(
      circle at 2px 2px,
      rgba(255, 255, 255, 0.02) 1px,
      transparent 0
    ),
    url("images/tp.png"); /* Menggunakan file yang kamu siapkan */
  background-size:
    40px 40px,
    800px 800px;
  background-position: center;
  background-repeat: repeat;
  background-attachment: fixed;
}

a {
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 5%;
}

.section-block {
  margin-bottom: 80px;
}

.section-title {
  font-size: 1.8rem;
  margin-bottom: 40px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Poppins", sans-serif;
}

.section-title::before {
  content: "";
  width: 20px;
  height: 3px;
  background: var(--accent-color);
  display: inline-block;
  border-radius: 5px;
}

/* ========================================= */
/* NAVBAR PILL (Nature Glass)                */
/* ========================================= */
.navbar-pill {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  position: fixed;
  top: 25px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  background: rgba(11, 15, 25, 0.85);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.navbar-pill a {
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 8px 18px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.navbar-pill a:hover {
  color: var(--text-color);
  background: rgba(46, 204, 113, 0.1);
}

.navbar-pill a.active {
  color: #080a0c;
  background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
  box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
}

/* ========================================= */
/* HERO SECTION FIX                          */
/* ========================================= */
.hero-split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  padding: 160px 0 100px 0; /* Padding atas lebih besar agar tidak tertutup nav */
}

.hero-left h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  color: var(--text-color);
  font-family: "Poppins", sans-serif;
}

.badge-item {
  background: rgba(46, 204, 113, 0.1);
  border: 1px solid var(--card-border);
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--accent-color);
}

/* Sisa CSS kartu dan form tetap menggunakan variabel baru di atas */
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-lg);
  padding: 30px;
}

.skill-box:hover {
  border-color: var(--accent-color);
  box-shadow: 0 0 20px var(--accent-glow);
}

/* ========================================= */
/* NAVBAR PILL (Nature-Tech Glass)           */
/* ========================================= */
.navbar-pill {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;

  position: fixed;
  top: 25px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;

  /* Glass Effect yang lebih gelap agar teks terbaca */
  background: rgba(11, 15, 25, 0.8);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.navbar-pill a {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

/* Hover: Warna berubah ke aksen hijau */
.navbar-pill a:hover {
  color: var(--text-color);
  background: rgba(46, 204, 113, 0.1); /* Menggunakan alpha dari Emerald */
}

/* Active State: Gradasi Hijau (Vibe Hutan/Nature) */
.navbar-pill a.active {
  color: #080a0c;
  background: linear-gradient(135deg, #2ecc71, #27ae60);
  box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
}

/* ========================================= */
/* HERO SPLIT LAYOUT                         */
/* ========================================= */
.hero-split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  padding: 120px 0 100px 0;
}

.hero-left {
  flex: 1;
  text-align: left;
}
.greeting {
  color: var(--text-color);
  font-weight: 600;
  margin-bottom: 5px;
  font-size: 1.2rem;
}
.im-text {
  color: var(--text-muted);
  margin-bottom: 10px;
  font-size: 1.1rem;
}
.hero-left h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  line-height: 1.1;
  font-family: "Poppins", sans-serif;
}

.hero-badges {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}
.badge-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero-desc {
  color: var(--text-muted);
  margin-bottom: 40px;
  line-height: 1.8;
  font-size: 0.95rem;
  max-width: 500px;
}

.hero-actions {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}
.btn-download {
  background: var(--text-color);
  color: var(--bg-color);
  padding: 12px 25px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: 0.3s;
  display: inline-block;
}
.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.1);
}
.social-icons-top {
  display: flex;
  gap: 15px;
}
.social-icons-top a {
  color: var(--text-color);
  font-size: 1.5rem;
  transition: 0.3s;
}
.social-icons-top a:hover {
  color: var(--accent-color);
}

/* KANAN: FOTO BESAR */
.hero-right {
  flex: 1;
  display: flex;
  justify-content: center;
  position: relative;
}

.profile-circle {
  position: relative;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 2px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

.profile-circle img {
  width: 95%;
  height: 95%;
  object-fit: cover;
  border-radius: 50%;
  filter: grayscale(10%);
  transition: 0.5s;
}
.profile-circle img:hover {
  filter: grayscale(0%);
}

.floating-badge {
  position: absolute;
  width: 45px;
  height: 45px;
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1.1rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  z-index: 10;
}
.fb-left {
  left: -20px;
  top: 30%;
}
.fb-right {
  right: -15px;
  bottom: 25%;
}

/* ========================================= */
/* KARTU, TIMELINE, SKILLS & PROJECTS        */
/* ========================================= */
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-lg);
  padding: 30px;
}

.timeline {
  position: relative;
  padding-left: 30px;
  border-left: 2px solid rgba(255, 255, 255, 0.1);
  margin-left: 15px;
}
.timeline-item {
  position: relative;
  margin-bottom: 40px;
}
.timeline-dot {
  position: absolute;
  left: -37px;
  top: 30px;
  width: 12px;
  height: 12px;
  background: var(--text-color);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.card-header {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--card-border);
}

/* LOGO PERUSAHAAN/SEKOLAH */
.company-logo {
  width: 50px;
  height: 50px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  overflow: hidden;
}
.company-logo img {
  width: 85%;
  height: 85%;
  object-fit: contain;
}

.company-info h3 {
  font-size: 1.1rem;
  color: var(--text-color);
}
.badge-green {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.2);
  padding: 3px 10px;
  border-radius: 5px;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-block;
  margin-top: 5px;
}

.role-title {
  color: var(--text-color);
  font-size: 1.1rem;
  margin-bottom: 10px;
}
.role-meta {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 15px;
}
.role-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 15px;
}
.role-tasks {
  color: var(--text-muted);
  font-size: 0.9rem;
  padding-left: 20px;
  margin-bottom: 20px;
}
.role-tasks li {
  margin-bottom: 8px;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tech-stack span {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.skills-grid-modern {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
}
.skill-box {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-lg);
  padding: 30px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: 0.3s;
}
.skill-box:hover {
  transform: translateY(-5px);
  border-color: var(--accent-color);
}
.icon-skill {
  font-size: 2.5rem;
  color: var(--accent-color);
  margin-bottom: 15px;
}
.skill-box h3 {
  font-size: 1rem;
  color: var(--text-color);
  margin-bottom: 5px;
}
.level-badge {
  padding: 4px 12px;
  border-radius: 5px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
}
.level-badge.expert {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.2);
}
.level-badge.intermediate {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.2);
}
.level-badge.advanced {
  background: rgba(56, 189, 248, 0.1);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}
.project-card {
  padding: 0;
  transition: 0.3s;
  overflow: hidden;
}
.project-card:hover {
  border-color: var(--text-muted);
  transform: translateY(-5px);
}
.project-img-wrapper {
  height: 200px;
  overflow: hidden;
  border-bottom: 1px solid var(--card-border);
  background-color: #000;
}
.project-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
  transition: 0.5s;
}
.project-card:hover .project-img-wrapper img {
  opacity: 1;
  transform: scale(1.05);
}
.project-content {
  padding: 25px;
}
.project-content h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--text-color);
}
.project-date {
  display: block;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 5px;
  margin-bottom: 15px;
}
.project-content p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

/* ========================================= */
/* CONTACT FORM                              */
/* ========================================= */
.contact-section {
  position: relative;
  padding: 40px 0;
}
.contact-container {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.modern-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: var(--card-bg);
  padding: 40px;
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--card-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.form-group {
  position: relative;
  width: 100%;
}
.modern-form input,
.modern-form textarea {
  width: 100%;
  padding: 16px 20px;
  background-color: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-md);
  color: var(--text-color);
  font-size: 0.95rem;
  font-family: inherit;
  transition: 0.3s ease;
  outline: none;
}
.modern-form textarea {
  resize: vertical;
  min-height: 120px;
}
.modern-form input:focus,
.modern-form textarea:focus {
  border-color: var(--accent-color);
  background-color: rgba(255, 255, 255, 0.03);
  box-shadow: 0 0 0 4px var(--accent-glow);
}

.btn-submit {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 16px;
  background-color: var(--text-color);
  color: var(--bg-color);
  border: none;
  border-radius: var(--border-radius-md);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s ease;
}
.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.15);
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
}
.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  border-radius: 50%;
  color: var(--text-muted);
  font-size: 1.2rem;
  transition: 0.3s ease;
}
.social-icons a:hover {
  background: var(--card-bg);
  border-color: var(--accent-color);
  color: var(--text-color);
  transform: translateY(-3px);
}

.modern-footer {
  text-align: center;
  padding: 40px 0;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--card-border);
  margin-top: 50px;
}

/* ========================================= */
/* EFEK BACKGROUND BALON KODING & BOKEH      */
/* ========================================= */
.code-particle-bg {
  position: fixed;
  bottom: -50px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 8px 15px;
  border-radius: 8px;
  font-family: "Courier New", monospace;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.15);
  pointer-events: none;
  z-index: -1;
  user-select: none;
  animation: floatUp linear infinite;
}
@keyframes floatUp {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-120vh) rotate(var(--end-rotate));
    opacity: 0;
  }
}

body::before,
body::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  opacity: 0.5;
  pointer-events: none;
  z-index: -2;
  animation: floatElegantBubble infinite ease-in-out;
}
body::before {
  width: 300px;
  height: 300px;
  left: -100px;
  top: 20%;
  animation-duration: 20s;
}
body::after {
  width: 400px;
  height: 400px;
  right: -150px;
  bottom: 10%;
  animation-duration: 25s;
  animation-delay: 5s;
}
@keyframes floatElegantBubble {
  0%,
  100% {
    transform: translateY(0) translateX(0);
  }
  33% {
    transform: translateY(-50px) translateX(30px) scale(1.1);
  }
  66% {
    transform: translateY(-20px) translateX(-40px);
  }
}

/* ========================================= */
/* RESPONSIVE (HP)                           */
/* ========================================= */
@media (max-width: 900px) {
  .hero-split {
    flex-direction: column-reverse;
    text-align: center;
    gap: 40px;
    padding-top: 100px;
  }
  .hero-left {
    text-align: center;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-badges {
    justify-content: center;
  }
  .navbar-pill {
    width: 90%;
    justify-content: center;
  }
}
@media (max-width: 768px) {
  .hero-left h1 {
    font-size: 2.5rem;
  }
  .profile-circle {
    width: 280px;
    height: 280px;
  }
}
/* ========================================= */
/* PRINT OPTIMIZATION (FORCE A4 SINGLE PAGE) */
/* ========================================= */
@media print {
  /* 1. Atur Kertas A4 & Hilangkan Margin Browser */
  @page {
    size: A4 portrait;
    margin: 10mm; /* Memberi ruang napas di pinggir kertas */
  }

  /* 2. Bersihkan Background & Elemen Pengganggu */
  body {
    background: white !important;
    color: black !important;
    overflow: visible !important;
  }

  body::before,
  body::after,
  .navbar-pill,
  .code-particle-bg,
  .social-icons-top,
  .contact-section,
  .modern-footer {
    display: none !important; /* Sembunyikan hiasan & tombol */
  }

  /* 3. Paksa Layout Jadi Putih & Bersih */
  :root {
    --bg-color: #ffffff;
    --text-color: #000000;
    --text-muted: #4b5563;
    --card-bg: #ffffff;
    --card-border: #e5e7eb;
  }

  .container {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* 4. Sesuaikan Ukuran Hero (Foto & Teks) agar tidak makan tempat */
  .hero-split {
    padding: 0 0 20px 0 !important;
    gap: 20px !important;
    flex-direction: row !important; /* Pastikan tetap kiri-kanan */
  }

  .hero-left h1 {
    font-size: 2rem !important; /* Perkecil ukuran nama */
    color: black !important;
  }

  .profile-circle {
    width: 150px !important; /* Perkecil foto profil */
    height: 150px !important;
    border: 1px solid #ccc !important;
  }

  /* 5. Optimasi Jarak Antar Bagian */
  .section-block {
    margin-bottom: 20px !important; /* Rapatkan jarak antar section */
    page-break-inside: avoid; /* Jangan potong satu section ke halaman baru */
  }

  .section-title {
    font-size: 1.2rem !important;
    margin-bottom: 15px !important;
  }

  .card {
    padding: 15px !important;
    border: 1px solid #eee !important;
  }

  /* 6. Hilangkan Efek Hover & Shadow yang bikin berat */
  * {
    box-shadow: none !important;
    text-shadow: none !important;
    transition: none !important;
    transform: none !important;
  }

  /* 7. Paksa Konten yang Luber untuk Sembunyi */
  html,
  body {
    height: 99%; /* Mencegah munculnya halaman kosong ke-2 */
  }
}

.modern-form {
  background: rgba(18, 24, 29, 0.8); /* Card-bg dengan transparansi */
  backdrop-filter: blur(10px);
  border: 1px solid var(--accent-glow);
  padding: 40px;
  border-radius: var(--border-radius-lg);
}

.form-group {
  position: relative; /* Penting untuk posisi ikon */
  margin-bottom: 20px;
}

.input-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent-color);
  font-size: 0.9rem;
  pointer-events: none;
}

/* Penyesuaian khusus untuk textarea agar ikon tetap di atas */
.form-group textarea + .input-icon {
  top: 25px;
}

.modern-form input,
.modern-form textarea {
  padding-left: 45px; /* Memberi ruang untuk ikon */
  background-color: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.modern-form input:focus,
.modern-form textarea:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 15px var(--accent-glow);
}

.btn-submit {
  background: var(--accent-color); /* Menggunakan warna aksen baru */
  color: var(--bg-color);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-submit:hover {
  background: var(--accent-hover);
  transform: scale(1.02);
}

.skills-dual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.skill-category-card {
  background: linear-gradient(145deg, #12181d, #080a0c);
  border-left: 4px solid var(--accent-color);
  padding: 25px;
  border-radius: 10px;
}
