:root {
  --cyber-blue: #00d4ff;
  --deep-blue: #005b96;
}

[data-theme="dark"] {
  --bg-body: #0a0a0a;
  --menu-bg: #080a08;
  --menu-text: #e0e0e0;
  --menu-border: #333333;
  --item-hover: #1a1a1a;
  --navbar-bg: #080a08;
  --navbar-border: #333;
  --navbar-text: #ffffff;
  --card-bg: rgba(22, 22, 22, 0.8);
  --accent-color: var(--cyber-blue);
  --course-title: var(--cyber-blue);
  --about-text-color: #e0e0e0;
}

[data-theme="light"] {
  --bg-body: #f8f9fa;
  --menu-bg: #ffffff;
  --menu-text: #111111;
  --menu-border: #dddddd;
  --item-hover: #f1f3f5;
  --navbar-bg: #ffffff;
  --navbar-border: #cccccc;
  --navbar-text: #005b96;
  --card-bg: #ffffff;
  --accent-color: #005b96;
  --course-title: #005b96;
}

/* KHUSUS DARK MODE: Warna Teks Menjadi Cyber Accent */
[data-theme="dark"] .main-navbar a {
  color: var(--accent-color) !important;
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

/* Tambahkan juga rule khusus untuk about-text di dark mode */
[data-theme="dark"] .about-text {
  color: #e0e0e0;
}

[data-theme="dark"] .about-text p {
  color: #cccccc;
}

[data-theme="dark"] .about-text .bio-line {
  color: #dddddd;
}

/* Pastikan teks di dalam about-text tetap terbaca */
[data-theme="dark"] .about-text span {
  color: var(--cyber-blue); /* Warna biru terang untuk highlight */
}

[data-theme="dark"] .about-text [style*="opacity"] {
  opacity: 0.7 !important;
}

/* Efek Aura Biru Tua di Dark Mode */
[data-theme="dark"] .profile-img {
    /* 0 0 25px adalah jangkauan cahayanya, rgba diatur agar biru tua */
    box-shadow: 0 0 25px rgba(0, 91, 150, 0.6), 
                0 0 50px rgba(0, 91, 150, 0.3);
    border: 2px solid var(--deep-blue);
    transition: box-shadow 0.5s ease;
}

/* Saat di-hover, birunya sedikit lebih menyala agar interaktif */
[data-theme="dark"] .profile-img:hover {
    box-shadow: 0 0 35px rgba(0, 91, 150, 0.8), 
                0 0 70px rgba(0, 91, 150, 0.4);
}

/* Efek saat Hover agar lebih hidup */
.main-navbar a:hover {
  opacity: 0.8;
  filter: brightness(1.2);
}

[data-theme="dark"] .timeline-role {
  color: #fff;
  font-weight: normal;
}

body,
html {
  margin: 0;
  padding: 0;
  height: 100%;
  background-color: var(--bg-body);
  overflow-x: hidden;
  font-family: "Roboto", sans-serif;
  /*font-family: 'Orbitron', sans-serif;*/
  transition: background-color 0.3s ease;
}

/* Orbitron hanya untuk judul & aksen cyber */
.main-navbar a,
.glitch-logo,
.profile-name,
.section-title,
.section-title-center,
.timeline-role,
.cyber-badge,
.status-text,
.cert-badge-mini,
.nav-link,
.menu-item span,
.btn-project,
.arsenal,
.decrypt {
  font-family: "Orbitron", sans-serif;
}

/* Roboto untuk teks panjang & deskripsi */
.about-text,
.project-desc,
.timeline-content p,
.cert-info-desc,
.course-desc,
.skill-name,
.footer-text,
.footer-version {
  font-family: "Roboto", sans-serif;
}
#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: 1;
  top: 0;
  left: 0;
  pointer-events: none;
}

/* Ubah menjadi lebih fleksibel: */
.container {
  width: 100%;
  max-width: 800px; /* Agar tetap rapi di laptop tapi bisa melebar */
  margin: 0 auto;
  padding: 20px;
}

.hero-section {
  position: relative;
  overflow: hidden;
  height: 380px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url("../img/a-breach-wall.png") !important;
  background-size: cover;
  background-position: center !important;
  z-index: 2;
  cursor: pointer;
}

/* Efek garis scanning BERGERAK */
.hero-section.scan-active::after {
  content: "";
  position: absolute;
  top: -10%;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 212, 255, 0.9),
    #00d4ff,
    rgba(0, 212, 255, 0.9),
    transparent
  );
  filter: blur(2px);
  z-index: 15;
  pointer-events: none;
  animation: scanMove 1.2s ease-out forwards;
  box-shadow: 0 0 20px #00d4ff;
}


/* Container Utama Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0a0a0a; /* Hitam pekat agar fokus ke teks */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999; /* Pastikan di atas segalanya */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.1s ease, visibility 0.5s ease;
    }
    
    /* Class untuk menampilkan preloader */
    #preloader.show {
    opacity: 1;
    visibility: visible;
    }
    
    /* Class untuk menyembunyikan */
    #preloader.hide {
    opacity: 0;
    visibility: hidden;
    }

.preloader-content {
    text-align: center;
}

/* Teks Breach Cipher di Loading */
.loading-text {
    font-family: 'Orbitron', sans-serif;
    color: var(--cyber-blue);
    letter-spacing: 5px;
    font-size: 1.5rem;
    margin-bottom: 15px;
    text-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
}

/* Container Loading */
.loading-bar-container {
    width: 250px;
    height: 3px; /* Tipis agar elegan */
    background: rgba(255, 255, 255, 0.05);
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    border-radius: 5px;
}

/* Garis Loading yang Sangat Halus */
.loading-line {
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--cyber-blue), transparent);
    position: absolute;
    /* Menggunakan transform untuk performa 60fps yang halus */
    animation: smooth-scan 1s infinite ease-in-out alternate;
    filter: drop-shadow(0 0 8px var(--cyber-blue));
}

/* Animasi Bolak-Balik yang Halus */
@keyframes smooth-scan {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(250%); /* Angka ini disesuaikan dengan lebar container */
    }
}

/* Efek Memudar Saat Selesai */
#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
    transition: opacity 2s cubic-bezier(0.4, 0, 0.2, 1);
}

.status-code {
    display: block;
    font-family: 'Courier New', monospace;
    color: #555;
    font-size: 10px;
    margin-top: 10px;
    letter-spacing: 2px;
}

/* Animasi Garis Bergerak */
@keyframes scan-loading {
    0% { left: -40%; }
    100% { left: 100%; }
}



.loading-text {
    font-family: 'Orbitron', sans-serif;
    color: var(--cyber-blue);
    letter-spacing: 5px;
    font-size: 1.5rem;
    margin-bottom: 15px;
    text-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
    animation: glitchWithPause 1s infinite;
}

@keyframes glitchWithPause {
    0%, 80%, 100% {
        opacity: 1;
        text-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
        transform: skew(0deg);
    }
    85% {
        opacity: 0.5;
        text-shadow: -2px 0 #ff00ff, 2px 0 #00d4ff;
        transform: skew(2deg);
    }
    88% {
        opacity: 0.8;
        text-shadow: 2px 0 #ff00ff, -2px 0 #00d4ff;
        transform: skew(-2deg);
    }
    91% {
        opacity: 1;
        text-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
        transform: skew(0deg);
    }
}

/* FIX NAVBAR POSITION */
.main-navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--navbar-bg);
  border-bottom: 1px solid var(--navbar-border);
  padding: 15px 25px;
  z-index: 5000;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.main-navbar a {
  color: var(--navbar-text) !important;
  font-size: 1.5rem;
  font-weight: bold;
  text-decoration: none;
}

/* Tombol Dark Mode di Navbar */
.theme-nav-btn {
  background: transparent;
  border: 1px solid var(--menu-border);
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.theme-nav-btn:hover {
  transform: scale(1.1) rotate(15deg);
  box-shadow: 0 0 10px var(--accent-color);
  border-color: var(--accent-color);
}

.profile-wrapper {
  position: relative;
  width: 100%;
  padding: 0 20px;
  margin-top: -65px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.profile-img {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  border: 4px solid var(--bg-body);
  object-fit: cover;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.profile-name {
  font-size: 1.6rem;
  font-weight: bold;
  color: var(--accent-color);
  margin: 0;
}

.social-links {
  display: flex;
  gap: 15px;
}
.social-links a {
  color: #71767b;
  font-size: 1.3rem;
  transition: 0.3s;
}
.social-links a:hover {
  color: var(--accent-color);
  filter: drop-shadow(0 0 5px var(--accent-color));
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid var(--accent-color);
  padding: 5px 15px;
  border-radius: 20px;
}

.dot-blue {
  width: 10px;
  height: 10px;
  background-color: var(--accent-color);
  border-radius: 50%;
  position: relative;
}

.dot-blue::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--accent-color);
  border-radius: 50%;
  animation: pulse-blue 2s infinite;
}

@keyframes pulse-blue {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  70% {
    transform: scale(2.5);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}

.status-text {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent-color);
  text-transform: uppercase;
}

/* Style untuk Card Detail Sertifikat dengan Foto */
.cert-detail-card {
  background: var(--card-bg);
  border: 1px solid var(--accent-color);
  border-radius: 12px;
  padding: 15px;
  margin-top: 10px;
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.1);
  font-family: "Courier New", monospace;
  display: flex;
  align-items: center;
  gap: 15px;
}

.cert-detail-img {
  width: 230px;
  height: 230px;
  object-fit: contain;
  filter: drop-shadow(0 0 5px rgba(0, 212, 255, 0.3));
}

.cert-badge-mini {
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  background: var(--accent-color);
  color: white;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.65rem;
  font-weight: bold;
}

.cert-badge-mini:hover {
  filter: brightness(1.2);
  box-shadow: 0 0 10px var(--accent-color);
}

.cert-info-text {
  flex: 1;
}

.cert-info-title {
  color: var(--accent-color);
  font-weight: bold;
  font-size: 0.8rem;
  display: block;
  margin-bottom: 3px;
}

.cert-info-desc {
  color: var(--menu-text);
  font-size: 0.75rem;
  opacity: 0.9;
  line-height: 1.4;
}

.section-title {
  font-size: 1.4rem;
  color: var(--accent-color);
  margin: 40px 0 20px;
  font-weight: 600;
}

.timeline {
  position: relative;
  padding-left: 50px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 10px;
  bottom: 10px;
  width: 4px;
  background: linear-gradient(
    to bottom,
    var(--cyber-blue),
    var(--deep-blue),
    var(--cyber-blue)
  );
}

.timeline-item {
  position: relative;
  margin-bottom: 45px;
  padding-left: 30px;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 8px;
  width: 22px;
  height: 22px;
  background: var(--bg-body);
  border: 4px solid var(--accent-color);
  border-radius: 50%;
  z-index: 2;
}

.timeline-content {
  background: var(--card-bg);
  border: 1px solid var(--menu-border);
  border-left: 3px solid var(--accent-color);
  border-radius: 12px;
  padding: 22px 25px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: 0.3s;
}

.timeline-date {
  font-size: 0.85rem;
  color: var(--accent-color);
  font-weight: 600;
}
.timeline-role {
  font-size: 1.15rem;
  font-weight: bold;
  margin: 6px 0 8px;
  font-family: "Courier New", monospace;
}

/* MENU OVERLAY */
.menu-overlay {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 500px;
  height: 100dvh;
  background: var(--menu-bg);
  color: var(--menu-text);
  z-index: 4000;
  padding-top: 80px;
  overflow-y: auto;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(100%);
  box-shadow: -10px 0 20px rgba(0, 0, 0, 0.5);
}
.menu-overlay.active {
  transform: translateX(0);
}

.menu-item {
  padding: 20px 25px;
  border-bottom: 1px solid var(--menu-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--menu-text) !important;
  text-decoration: none;
  font-weight: 600;
  background: transparent;
  transition: 0.2s;
}
.menu-item:hover {
  background: var(--item-hover);
  padding-left: 35px;
}

.nav-toggle-btn {
  background: transparent;
  color: var(--accent-color);
  border: 1px solid var(--menu-border);
  width: 45px;
  height: 45px;
  border-radius: 8px;
  font-size: 1.4rem;
  position: relative;
  transition: all 0.3s ease;
}

.nav-pills .nav-link {
  color: var(--menu-text);
  font-size: 0.8rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.nav-pills .nav-link.active {
  background: transparent !important;
  color: var(--accent-color) !important;
  border: 1px solid var(--accent-color);
  box-shadow: 0 0 10px var(--accent-color);
}

.course-card {
  padding: 15px 25px;
  border-bottom: 1px solid var(--menu-border);
  cursor: pointer;
}
.course-card:hover {
  background: var(--item-hover);
}
.course-name {
  color: var(--course-title);
  font-weight: 700;
}
.course-desc {
  color: var(--menu-text);
  opacity: 0.7;
  font-size: 0.9rem;
}

/* Style untuk Grid Skill Card dengan IMG */
.skill-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.skill-item-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--menu-border);
  border-radius: 10px;
  padding: 15px 5px;
  text-align: center;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.skill-item-card:hover {
  border-color: var(--accent-color);
  transform: translateY(-3px);
  background: rgba(0, 212, 255, 0.05);
  box-shadow: 0 4px 12px rgba(0, 212, 255, 0.1);
}

.skill-icon-img {
  width: 40px;
  height: 40px;
  margin-bottom: 10px;
  object-fit: contain;
  filter: drop-shadow(0 0 5px rgba(0, 212, 255, 0.2));
}

.skill-name {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--menu-text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

@media (max-width: 480px) {
  .skill-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .skill-icon-img {
    width: 85px;
    height: 85px;
  }
  .skill-name {
    font-size: 0.6rem;
  }
}

/* Update About Me agar teks ke tengah */
.about-section {
  min-height: 25vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1000px !important;
  margin: 0 auto;
  padding: 20px 0;
  text-align: center;
}

.about-text {
  line-height: 1.8;
  color: var(--text-muted);
  font-family: "Roboto", sans-serif;
  background: rgba(0, 212, 255, 0.03);
  padding: 20px;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  /* Efek miring di sudut kiri bawah agar senada dengan notif kamu */
  clip-path: polygon(0 0, 100% 0, 100% 100%, 15% 100%, 0 85%);
  border: 1px solid rgba(0, 212, 255, 0.1);
}

/* Warna khusus untuk kata kunci (highlight) */
.about-text span {
  color: #00d4ff;
  font-weight: bold;
}

/* Efek garis dekorasi di sebelah kiri */
.about-text::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 3px;
  background: var(--accent-color);
  box-shadow: 0 0 10px var(--accent-color);
}

.bio-line {
  display: inline-block;
  margin-bottom: 8px;
  opacity: 0.9;
}

/* Style untuk Footer Simpel */
.main-footer {
  padding: 40px 0 20px;
  text-align: center;
  border-top: 1px solid var(--menu-border);
  margin-top: 50px;
  position: relative;
  z-index: 10;
}

.footer-text {
  font-size: 0.75rem;
  color: var(--menu-text);
  opacity: 0.5;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.footer-version {
  font-size: 0.65rem;
  color: var(--accent-color);
  margin-top: 5px;
  font-family: "Courier New", monospace;
}

.footer-line {
  width: 30px;
  height: 2px;
  background: var(--accent-color);
  margin: 15px auto;
  opacity: 0.3;
}

/* Efek Kursor Ketik */
.typing-cursor {
  border-right: 2px solid var(--accent-color);
  animation: blink-cursor 0.75s step-end infinite;
}

@keyframes blink-cursor {
  from,
  to {
    border-color: transparent;
  }
  50% {
    border-color: var(--accent-color);
  }
}

/* Animasi Kedap-Kedip untuk Tulisan (opsional setelah selesai mengetik) */
.blink-final {
  animation: blink-text 0.8s ease-in-out 3;
}

@keyframes blink-text {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

/* Container Utama Project - Mengetengahkan Grid */
.project-section-container {
  max-width: 1100px;
  margin: 60px auto;
  padding: 0 20px;
  position: relative;
  z-index: 10;
}

/* Judul Section di Tengah */
.section-title-center {
  text-align: center;
  font-size: 1.6rem;
  color: var(--accent-color);
  margin-bottom: 40px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

/* Grid Project - Menggunakan auto-fit agar otomatis ke tengah */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  justify-content: center;
}

/* Card Project */
.project-card {
  background: var(--card-bg);
  border: 1px solid var(--menu-border);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
  height: 100%;
  backdrop-filter: blur(10px);
}

.project-card:hover {
  border-color: var(--accent-color);
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 212, 255, 0.2);
}

/* Wrapper Gambar - Mencegah layout hancur jika gambar error */
.project-img-wrapper {
  width: 100%;
  height: 280px;
  background: #111;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--menu-border);
}

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

.project-card:hover .project-img-wrapper img {
  transform: scale(1.1);
}

/* Konten di dalam Card */
.project-content {
  padding: 20px;
  flex-grow: 1;
}

.project-tag {
  font-size: 0.65rem;
  color: var(--accent-color);
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 1.5px;
  display: block;
  margin-bottom: 8px;
}

.project-title {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--menu-text);
  margin-bottom: 12px;
}

.project-desc {
  font-size: 0.85rem;
  color: var(--menu-text);
  opacity: 0.7;
  line-height: 1.6;
}

/* Footer Card (Tombol Link) */
.project-footer {
  padding: 15px 20px;
  border-top: 1px solid var(--menu-border);
  display: flex;
  gap: 20px;
  background: rgba(255, 255, 255, 0.02);
}

.btn-project {
  font-size: 0.8rem;
  color: var(--accent-color);
  text-decoration: none;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: 0.3s;
}

.btn-project:hover {
  color: #fff;
  text-shadow: 0 0 8px var(--accent-color);
}

/* Penyesuaian Mobile */
@media (max-width: 480px) {
  .project-grid {
    grid-template-columns: 1fr;
  }
  .section-title-center {
    font-size: 1.3rem;
  }
}

/* Container Utama Loading Screen */
#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #080a08;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition:
    opacity 0.5s ease,
    visibility 0.5s ease;
}

/* State saat Loading Selesai (dipicu oleh JS) */
#loading-screen.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Wrapper untuk Meratakan Teks dan Spinner */
.glitch-wrapper {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* Styling Teks Logo 'BREACH CIPHER' */
.glitch-logo {
  font-family: "Orbitron", sans-serif;
  font-size: 2.5rem;
  font-weight: bold;
  color: #fff;
  letter-spacing: 4px;
  position: relative;
  text-transform: uppercase;
  margin: 0;
  text-shadow: 0 0 15px rgba(0, 212, 255, 0.7);
}

/* Efek Glitch Warna (Pseudo-elements) */
.glitch-logo::before,
.glitch-logo::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #080a08;
}

/* Glitch Warna Cyan (Geser Kiri) */
.glitch-logo::before {
  left: 2px;
  text-shadow: -2px 0 #00d4ff;
  clip: rect(44px, 450px, 56px, 0);
  animation: glitch-anim-1 1s infinite linear alternate-reverse;
}

/* Glitch Warna Magenta (Geser Kanan) */
.glitch-logo::after {
  left: -2px;
  text-shadow: 2px 0 #ff00ff;
  clip: rect(100px, 450px, 120px, 0);
  animation: glitch-anim-2 1s infinite linear alternate-reverse;
}

/* Styling Spinner Dot Melingkar */
.cipher-loader {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: conic-gradient(#0000 10%, #00d4ff);
  -webkit-mask: radial-gradient(farthest-side, #0000 calc(100% - 4px), #000 0);
  mask: radial-gradient(farthest-side, #0000 calc(100% - 4px), #000 0);
  animation: spin-loader 0.8s infinite linear;
}

/* --- KEYFRAMES ANIMASI --- */

/* Animasi Putaran Spinner */
@keyframes spin-loader {
  to {
    transform: rotate(1turn);
  }
}

/* Animasi Glitch 1 (Cyan) */
@keyframes glitch-anim-1 {
  0% {
    clip: rect(10px, 9999px, 9px, 0);
  }
  20% {
    clip: rect(30px, 9999px, 50px, 0);
  }
  40% {
    clip: rect(60px, 9999px, 20px, 0);
  }
  60% {
    clip: rect(10px, 9999px, 80px, 0);
  }
  80% {
    clip: rect(90px, 9999px, 40px, 0);
  }
  100% {
    clip: rect(20px, 9999px, 70px, 0);
  }
}

/* Animasi Glitch 2 (Magenta) */
@keyframes glitch-anim-2 {
  0% {
    clip: rect(70px, 9999px, 20px, 0);
  }
  20% {
    clip: rect(40px, 9999px, 90px, 0);
  }
  40% {
    clip: rect(80px, 9999px, 10px, 0);
  }
  60% {
    clip: rect(20px, 9999px, 60px, 0);
  }
  80% {
    clip: rect(50px, 9999px, 30px, 0);
  }
  100% {
    clip: rect(9px, 9999px, 10px, 0);
  }
}

/* Responsif Mobile */
@media (max-width: 480px) {
  .glitch-logo {
    font-size: 1.5rem;
    letter-spacing: 2px;
  }
}

/* Container khusus agar grid bisa di-scroll */
.skill-scroll-wrapper {
  width: 100%;
  overflow-x: auto;
  padding-bottom: 10px;
  -webkit-overflow-scrolling: touch;
}

/* Memastikan grid tidak mengecil dan tetap pada ukurannya */
.skill-grid-scrollable {
  display: grid;
  grid-template-columns: repeat(6, 120px);
  gap: 12px;
  min-width: max-content;
}

/* Opsional: Mempercantik tampilan scrollbar agar ala Cyberpunk */
.skill-scroll-wrapper::-webkit-scrollbar {
  height: 4px;
}
.skill-scroll-wrapper::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}
.skill-scroll-wrapper::-webkit-scrollbar-thumb {
  background: var(--accent-color);
  border-radius: 10px;
}

/* Efek Glitch untuk Jumbotron */

/* 1. Atur Garis Awal (Berjarak) */
.timeline::before {
  content: "";
  position: absolute;
  left: 31px;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(
    to bottom,
    var(--cyber-blue),
    var(--deep-blue),
    var(--cyber-blue)
  );
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 1;
  opacity: 0.5;
}

/* 2. Atur Bulatan (Tetap di Tempat) */
.timeline-item::before {
  content: "";
  position: absolute;
  left: -22px;
  top: 8px;
  width: 16px;
  height: 16px;
  background: var(--bg-body);
  border: 3px solid var(--accent-color);
  border-radius: 50%;
  z-index: 5;
  transition: all 0.3s ease;
}

/* 3. LOGIKA HOVER: Garis Menempel ke Bulat */
.timeline:has(.timeline-item:hover)::before {
  left: 39px;
  opacity: 1;
  box-shadow: 0 0 15px var(--accent-color);
}

.timeline-item:hover::before {
  background: var(--accent-color);
  transform: scale(1.2);
  box-shadow: 0 0 10px var(--accent-color);
}

/* Menghilangkan panah default bootstrap jika ingin lebih minimalis */
.dropdown-toggle::after {
  display: none;
}

.lang-dropdown-menu {
  background: var(--menu-bg);
  border: 1px solid var(--accent-color);
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
  min-width: 120px;
}

.lang-dropdown-menu .dropdown-item {
  color: var(--menu-text);
  font-family: "Orbitron", sans-serif;
  font-size: 0.75rem;
  padding: 10px 15px;
  transition: all 0.2s;
}

.lang-dropdown-menu .dropdown-item:hover {
  background: var(--item-hover);
  color: var(--accent-color);
  padding-left: 20px;
}

/* Memastikan tombol translate tetap rapi */
.translate-btn {
  background: transparent;
  color: var(--accent-color);
  border: 1px solid var(--menu-border);
  padding: 5px 12px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: 0.3s;
}

/* Warna ikon theme toggle */
[data-theme="dark"] #themeIconNav {
  color: #f1c40f;
}

[data-theme="light"] #themeIconNav {
  color: #2c3e50;
}

/* --- LAYAR LEBAR (DESKTOP) ATAU POSISI LANDSCAPE --- */
@media (min-width: 992px), (orientation: landscape) {
  .profile-wrapper {
    align-items: center; /* Foto ke tengah */
    padding: 0;
  }

  .profile-info {
    display: flex;
    flex-direction: column;
    align-items: center; /* Konten info ke tengah */
    text-align: center;
  }

  .profile-info .d-flex {
    justify-content: center; /* Nama & Sosmed ke tengah */
    width: 100%;
  }

  .profile-name {
    text-align: center;
  }
}

/* --- KHUSUS MOBILE PORTRAIT (HP BERDIRI) --- */
@media (max-width: 768px) and (orientation: portrait) {
  .profile-wrapper {
    align-items: flex-start; /* Tetap di kiri */
    padding-left: 20px;
  }

  .profile-info {
    text-align: left;
    align-items: flex-start;
  }

  .profile-info .d-flex {
    justify-content: flex-start;
  }
}

.decrypt {
  animation: glitch 2s infinite;
}

@keyframes glitch {
  0% {
    text-shadow:
      2px 0 var(--accent-color),
      -2px 0 #ff00ff;
  }
  25% {
    text-shadow:
      -2px 0 var(--accent-color),
      2px 0 #ff00ff;
  }
  50% {
    text-shadow:
      2px 0 #ff00ff,
      -2px 0 var(--accent-color);
  }
  100% {
    text-shadow: 0 0 5px var(--accent-color);
  }
}

/* Gaya Badge Cyber */
.cyber-badge {
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid var(--accent-color);
  color: var(--accent-color);
  font-family: "Orbitron", sans-serif;
  font-size: 10px;
  padding: 4px 10px;
  letter-spacing: 1px;
  font-weight: bold;
  /* Efek potong miring khas Parrot OS */
  clip-path: polygon(0 0, 90% 0, 100% 30%, 100% 100%, 0 100%);
  display: flex;
  align-items: center;
  text-transform: uppercase;
}

/* Warna khusus untuk status Online (Hijau) */
.status-online {
  background: rgba(0, 255, 13, 0.05);
  border-color: #00ff0d;
  color: #00ff0d;
}

/* Animasi Kedip untuk icon Online */
.blink-icon {
  font-size: 7px;
  animation: blinker 1.5s linear infinite;
}

@keyframes blinker {
  50% {
    opacity: 0;
  }
}

/* Penyesuaian agar di mobile tetap rapi */
@media (max-width: 768px) {
  .system-status {
    justify-content: flex-start;
  }
}
@media (min-width: 992px) {
  .system-status {
    justify-content: center;
  }
}
/* Pastikan smooth scroll aktif */
html {
  scroll-behavior: smooth !important;
  scroll-padding-top: 90px !important; /* Sesuaikan dengan tinggi navbar + sedikit margin */
}

/* Alternatif yang lebih reliable untuk fixed navbar */
section[id],
div[id],
h3[id] {
  scroll-margin-top: 90px !important;
  scroll-padding-top: 90px !important;
}

/* Khusus untuk section projects dan arsenal yang sering jadi target */
#projects-section,
#arsenal-section {
  scroll-margin-top: 100px !important;
}

/* ============================================ */
/* TAMBAHAN KHUSUS DESKTOP (BESAR & LEBAR) */
/* TIDAK MENGUBAH VERSI MOBILE SAMA SEKALI */
/* ============================================ */

@media (min-width: 992px) {
  /* HERO - LEBIH BESAR */
  .hero-section {
    height: 550px !important;
  }

  /* NAVBAR - LEBIH BESAR */
  .main-navbar {
    padding: 20px 40px;
  }

  .main-navbar a {
    font-size: 2rem;
  }

  .theme-nav-btn {
    width: 45px;
    height: 45px;
  }

  .nav-toggle-btn {
    width: 55px;
    height: 55px;
    font-size: 1.8rem;
  }

  /* PROFILE - DIPUSATKAN & DIPERBESAR */
  .profile-wrapper {
    align-items: center;
    padding: 0;
    margin-top: -80px;
  }

  .profile-img {
    width: 180px;
    height: 180px;
    border-width: 5px;
  }

  .profile-name {
    font-size: 2.5rem;
  }

  .social-links a {
    font-size: 1.8rem;
  }

  .status-badge {
    padding: 8px 25px;
  }

  .status-text {
    font-size: 0.9rem;
  }

  /* CERTIFICATE - LEBIH BESAR */
  .cert-badge-mini {
    padding: 8px 18px;
    font-size: 0.85rem;
  }

  .cert-detail-card {
    flex-direction: row;
    padding: 25px;
  }

  .cert-detail-img {
    width: 250px;
    height: 250px;
  }

  .cert-info-title {
    font-size: 1rem;
  }

  .cert-info-desc {
    font-size: 0.9rem;
  }

  /* ABOUT - LEBIH LEBAR */
  .about-section {
    max-width: 1200px;
    margin: 40px auto;
  }

  .about-text {
    padding: 35px;
    font-size: 1.05rem;
  }

  /* ARSENAL CONTAINER - LEBAR */
  #arsenal-section {
    max-width: 1200px !important;
  }

  /* SKILL GRID DESKTOP - BANYAK KOLOM & BESAR */
  .skill-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 25px;
  }

  .skill-item-card {
    padding: 25px 10px;
  }

  .skill-icon-img {
    width: 65px;
    height: 65px;
    margin-bottom: 15px;
  }

  .skill-name {
    font-size: 0.85rem;
  }

  /* SCROLLABLE OTHERS - DESKTOP */
  .skill-grid-scrollable {
    grid-template-columns: repeat(6, 150px);
    gap: 20px;
  }

  /* TIMELINE - LEBIH BESAR */
  .timeline {
    padding-left: 70px;
  }

  .timeline::before {
    left: 32px;
    width: 5px;
  }

  .timeline-item::before {
    left: -12px;
    width: 28px;
    height: 28px;
  }

  .timeline-content {
    padding: 30px 35px;
  }

  .timeline-date {
    font-size: 1rem;
  }

  .timeline-role {
    font-size: 1.4rem;
  }

  /* SECTION TITLE - LEBIH BESAR */
  .section-title {
    font-size: 1.8rem;
  }

  /* PROJECTS - FULL WIDTH & BESAR */
  .project-section-container {
    max-width: 1400px;
    margin: 80px auto;
    padding: 0 40px;
  }

  .section-title-center {
    font-size: 2.2rem;
    margin-bottom: 60px;
    letter-spacing: 5px;
  }

  .project-grid {
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 40px;
  }

  .project-img-wrapper {
    height: 260px;
  }

  .project-title {
    font-size: 1.4rem;
  }

  .project-desc {
    font-size: 0.95rem;
  }

  .btn-project {
    font-size: 0.9rem;
  }

  /* FOOTER - LEBIH BESAR */
  .main-footer {
    padding: 60px 0 30px;
  }

  .footer-text {
    font-size: 0.9rem;
  }

  .footer-version {
    font-size: 0.8rem;
  }

  /* LOADING SCREEN - DESKTOP */
  .glitch-logo {
    font-size: 4rem;
    letter-spacing: 8px;
  }

  /* SYSTEM STATUS - TENGAH */
  .system-status {
    justify-content: center;
  }

  .cyber-badge {
    font-size: 12px;
    padding: 6px 15px;
  }

  /* NAV PILLS - DESKTOP */
  .nav-pills .nav-link {
    font-size: 0.9rem;
    padding: 10px 25px;
  }
}

/* ============================================ */
/* DESKTOP SANGAT BESAR (1200px KE ATAS) */
/* ============================================ */

@media (min-width: 1200px) {
  .hero-section {
    height: 600px !important;
  }

  .profile-img {
    width: 200px;
    height: 200px;
  }

  .profile-name {
    font-size: 3rem;
  }

  .skill-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 30px;
  }

  .skill-icon-img {
    width: 80px;
    height: 80px;
  }

  .skill-name {
    font-size: 0.95rem;
  }

  .project-grid {
    grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
    gap: 45px;
  }

  .project-img-wrapper {
    height: 300px;
  }

  .glitch-logo {
    font-size: 5rem;
    letter-spacing: 12px;
  }
}

/* ============================================ */
/* TABLET (LANDSCAPE) - SEDANG */
/* ============================================ */

@media (min-width: 768px) and (max-width: 991px) {
  .skill-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
  }

  .skill-icon-img {
    width: 50px;
    height: 50px;
  }

  .project-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  .profile-img {
    width: 150px;
    height: 150px;
  }

  .profile-name {
    font-size: 2rem;
  }

  .hero-section {
    height: 420px !important;
  }
}

/* ============================================ */
/* PERBAIKAN JARAK FONT (READABILITY)           */
/* ============================================ */

/* 1. KHUSUS TEKS PANJANG & PARAGRAF (About, Project Desc, Timeline) */
.about-text,
.project-desc,
.timeline-content p,
.cert-info-desc,
.course-desc {
  line-height: 1.7 !important; /* Jarak antar baris jadi lebih lega */
  letter-spacing: 0.3px !important; /* Sedikit renggang agar tidak dempet */
  font-weight: 400;
}

/* 2. JUDUL & SUB JUDUL TETAP KEREN (TIDAK BERUBAH BANYAK) */
.section-title,
.section-title-center,
.profile-name,
.timeline-role,
.course-name {
  letter-spacing: 1px; /* standar */
  line-height: 1.3;
}

/* 3. SKILL NAME DI BAWAH ICON */
.skill-name {
  letter-spacing: 0.5px;
  font-weight: 500;
  line-height: 1.4;
}

/* 4. BADGE & STATUS TEXT AGAR TIDAK SESAK */
.cyber-badge,
.status-text,
.cert-badge-mini {
  letter-spacing: 1px;
  line-height: 1.2;
}

/* 5. KHUSUS TEKS DI MENU OVERLAY */
.menu-item span,
.course-card .course-name {
  letter-spacing: 0.8px;
}

/* 6. OPTIONAL: TOMBOL PROJECT */
.btn-project {
  letter-spacing: 0.5px;
}

/* Khusus Section Arsenal */
.arsenal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.arsenal-item {
  background: rgba(0, 212, 255, 0.03);
  border: 1px solid var(--menu-border);
  border-radius: 8px;
  padding: 15px;
  text-align: center;
  transition: 0.3s;
}

.arsenal-item:hover {
  border-color: var(--accent-color);
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
  transform: translateY(-5px);
}

.arsenal-icon {
  font-size: 2rem;
  color: var(--accent-color);
  margin-bottom: 10px;
  display: block;
}

.arsenal-name {
  font-family: "Orbitron", sans-serif;
  font-size: 0.7rem;
  font-weight: bold;
  color: var(--menu-text);
  text-transform: uppercase;
}
