@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  border: none;
}

/* Accessibility: Focus visible for keyboard users */
:focus-visible {
  outline: 2px solid #0066ff;
  outline-offset: 3px;
  border-radius: 3px;
}
:focus:not(:focus-visible) {
  outline: none;
}

/* Screen reader only utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
html {
  font-size: 62.5%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}
body {
  background: #f7f7f7;
  font-family: "Poppins", sans-serif;
}

*::selection {
  background: #2b3dda;
  color: #fff;
}

html::-webkit-scrollbar {
  width: 0.8rem;
}
html::-webkit-scrollbar-track {
  background: rgb(235, 202, 245);
}
html::-webkit-scrollbar-thumb {
  background: #420177;
}

/* pre loader start */
.loader-container {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10000;
  background: #e6eff1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
}
.loader-container.fade-out {
  top: -120%;
}
/* pre loader end */

/* ================================
   PDF DOWNLOAD OVERLAY
   ================================ */
.pdf-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(2, 9, 75, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.pdf-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.pdf-overlay-card {
  background: rgba(255, 255, 255, 0.97);
  border-radius: 24px;
  padding: 4.5rem 5rem;
  text-align: center;
  box-shadow: 0 32px 80px rgba(2, 9, 75, 0.35), 0 0 0 1px rgba(255,255,255,0.5);
  max-width: 420px;
  width: 90%;
  transform: translateY(20px) scale(0.96);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.pdf-overlay.active .pdf-overlay-card {
  transform: translateY(0) scale(1);
}

/* SVG Spinner */
.pdf-spinner-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 2.5rem;
}
.pdf-spinner {
  width: 62px;
  height: 62px;
  animation: rotateSpin 1.6s linear infinite;
}
.pdf-spinner .path {
  stroke: url(#spinnerGradient);
  stroke: #0066ff;
  stroke-linecap: round;
  stroke-dasharray: 90, 150;
  stroke-dashoffset: 0;
  animation: dashSpin 1.6s ease-in-out infinite;
}
@keyframes rotateSpin {
  100% { transform: rotate(360deg); }
}
@keyframes dashSpin {
  0%   { stroke-dasharray: 1, 150; stroke-dashoffset: 0; }
  50%  { stroke-dasharray: 90, 150; stroke-dashoffset: -35px; }
  100% { stroke-dasharray: 90, 150; stroke-dashoffset: -124px; }
}

.pdf-overlay-title {
  font-size: 2rem;
  font-weight: 800;
  color: #02094b;
  margin-bottom: 1rem;
}
.pdf-overlay-sub {
  font-size: 1.5rem;
  color: #666;
  margin-bottom: 2.5rem;
}

/* Animated progress bar */
.pdf-progress-bar {
  width: 100%;
  height: 6px;
  background: #eef2f6;
  border-radius: 50px;
  overflow: hidden;
  margin-bottom: 2.2rem;
}
.pdf-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 50px;
  background: linear-gradient(90deg, #0066ff, #00d4ff, #02094b);
  background-size: 200% 100%;
  animation: progressAnim 2.5s ease-in-out infinite, gradientShift 2s linear infinite;
}
@keyframes progressAnim {
  0%   { width: 0%; }
  40%  { width: 65%; }
  70%  { width: 85%; }
  90%  { width: 92%; }
  100% { width: 100%; }
}
@keyframes gradientShift {
  0%   { background-position: 0% 0%; }
  100% { background-position: -200% 0%; }
}

.pdf-overlay-hint {
  font-size: 1.25rem;
  color: #aaa;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.pdf-overlay-hint i {
  color: #43e97b;
}

/* Dark mode support */
body.dark-mode .pdf-overlay-card {
  background: rgba(16, 20, 60, 0.97);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255,255,255,0.08);
}
body.dark-mode .pdf-overlay-title {
  color: #fff;
}
body.dark-mode .pdf-overlay-sub {
  color: #aab;
}
body.dark-mode .pdf-progress-bar {
  background: rgba(255,255,255,0.08);
}
/* ================================ */


/* navbar starts */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 9%;
  height: 7rem;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.04);
  border-bottom: 1px solid rgba(255,255,255,0.4);
  transition: all 0.3s ease;
}
section {
  padding: 5rem 9%;
}
main {
  display: block;
}
.heading {
  font-size: 3.5rem;
  color: rgb(32, 32, 32);
  font-weight: 800;
  text-align: center;
  text-transform: capitalize;
}
.heading span {
  color: #0066ff;
}
header .logo {
  font-size: 2.2rem;
  font-weight: 900;
  text-decoration: none;
  color: #02094b;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
header .logo i {
  font-size: 2.4rem;
  background: linear-gradient(135deg, #0066ff, #00d4ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
header .logo:hover {
  color: #0066ff;
}
/* ---------------------------------
   SIDEBAR NAV DRAWER (Right Side)
   --------------------------------- */
header .navbar {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  max-width: 80vw;
  height: 100vh;
  background: rgba(4, 5, 20, 0.95);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-left: 1px solid rgba(255,255,255,0.05);
  display: flex;
  flex-direction: column;
  padding: 8rem 2rem 3rem;
  transition: right 0.4s cubic-bezier(0.77, 0.2, 0.05, 1);
  z-index: 998;
  overflow-y: auto;
  box-shadow: -10px 0 30px rgba(0,0,0,0.5);
}
header .navbar.nav-toggle {
  right: 0;
}
header .navbar ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}
header .navbar li {
  width: 100%;
}
header .navbar ul li a {
  display: block;
  font-size: 1.6rem;
  color: #a0aec0;
  font-weight: 600;
  text-decoration: none;
  padding: 1.2rem 1.5rem;
  border-radius: 12px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
header .navbar ul li a::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, rgba(0,102,255,0) 0%, rgba(0,102,255,0.1) 100%);
  transition: left 0.3s ease;
  z-index: -1;
}
header .navbar ul li a:hover::before,
header .navbar ul li a.active::before {
  left: 0;
}
header .navbar ul li a:hover,
header .navbar ul li a.active {
  color: #fff;
  padding-left: 2rem;
  background: rgba(255,255,255,0.03);
  border-left: 4px solid #0066ff;
}

/* Nav Overlay Backdrop */
.nav-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 997;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* hamburger icon starts*/
#menu {
  font-size: 2.8rem;
  cursor: pointer;
  color: #02094b;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  font-size: 2.2rem;
  cursor: pointer;
  color: #02094b;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.2rem;
  height: 4.2rem;
  background: rgba(0, 102, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1.5px solid rgba(0, 102, 255, 0.1);
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 999;
  order: 3;
  margin-left: 1rem;
}
#menu:hover {
  background: rgba(0, 102, 255, 0.15);
  border-color: rgba(0, 102, 255, 0.3);
  color: #0066ff;
  transform: translateY(-2px);
}

.fa-times {
  transform: rotate(180deg);
  color: #0066ff !important;
}

@media (max-width: 768px) {
  header .navbar {
    width: 280px;
    padding-top: 7rem;
  }
}
/* sidebar drawer ends */

/* hero section starts */
.home {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  min-height: 100vh;
  align-items: center;
  justify-content: space-between;
  padding-top: 8rem; /* Memberi ruang untuk navbar */
  overflow: hidden;
  background-color: #02094b; /* UBAH: Background jadi Navy Blue Gelap */
}

/* Pastikan ID ini sesuai dengan canvas Anda (ganti #particles-js jika sudah diubah) */
#matrix-canvas {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: 0;
  opacity: 0.35; /* Transparansi efek hacker */
  pointer-events: none;
}

.home .content {
  flex: 1 1 45rem;
  z-index: 1;
  animation: slideInLeft 1s ease-out forwards;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.6); /* UBAH: Tambahan shadow agar teks lebih tajam */
}

.home .content h1 {
  font-size: 5.5rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
}

.home .content h1 span {
  background: linear-gradient(to right, #0066ff, #00d4ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 5.5rem;
  font-weight: 800;
}

.home .content p {
  font-size: 2.5rem;
  color: #cbd0e6;
  font-weight: 600;
  padding: 0.5rem 0 0;
}

.home .content p span {
  color: #00b8ff;
  font-weight: 700;
}

/* Tombol Home */
.home .btn,
.home .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.4rem 3.2rem;
  border-radius: 50px;
  color: #fff;
  background: #0066ff;
  box-shadow: 0px 8px 20px rgba(0, 102, 255, 0.3);
  font-family: "Nunito", sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
  text-decoration: none;
}
.home .btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.35rem 3.2rem;
  border-radius: 50px;
  color: #fff;
  background: transparent;
  border: 2px solid rgba(255,255,255,0.4);
  font-family: "Nunito", sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
  text-decoration: none;
}
.home .btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: #fff;
  transform: translateY(-3px);
}

.home .btn span,
.home .btn-primary span,
.home .btn-outline span {
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 1px;
}
.home .btn i,
.home .btn-primary i,
.home .btn-outline i {
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}
.home .btn:hover,
.home .btn-primary:hover {
  background: #0052cc;
  box-shadow: 0px 8px 20px rgba(0, 82, 204, 0.45);
  transform: translateY(-3px);
}
.home .btn:hover i,
.home .btn-primary:hover i {
  transform: translateY(3px);
}

/* Social Icons */
.socials {
  margin-top: 4rem;
}
.socials .social-icons {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  flex-wrap: wrap;
}
.social-icons a {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  color: #02094b;
  background-color: #fff;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}
.social-icons a:hover {
  color: #fff;
  background-color: #0066ff;
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 102, 255, 0.3);
}

/* Hero Badge (Available for Work) */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(67, 233, 123, 0.12);
  border: 1px solid rgba(67, 233, 123, 0.35);
  color: #43e97b;
  font-size: 1.3rem;
  font-weight: 700;
  padding: 0.5rem 1.4rem;
  border-radius: 50px;
  margin-bottom: 1.8rem;
  letter-spacing: 0.04em;
  z-index: 1;
  position: relative;
}
.hero-badge i {
  font-size: 0.8rem;
  animation: pulseDot 2s infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* Hero Quick Stats */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin: 2.5rem 0 3rem;
  z-index: 1;
  position: relative;
}
.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero-stat strong {
  font-size: 2.8rem;
  font-weight: 900;
  color: #0066ff;
  line-height: 1;
  background: linear-gradient(135deg, #0066ff, #00d4ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-stat span {
  font-size: 1.2rem;
  color: #99a3c7;
  font-weight: 600;
  margin-top: 0.2rem;
  letter-spacing: 0.03em;
}
.hero-stat-divider {
  width: 1px;
  height: 3.5rem;
  background: rgba(255,255,255,0.15);
}

/* Hero CTA buttons row */
.hero-cta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 0;
  z-index: 1;
  position: relative;
}

/* Hero image area */
.home .image {
  flex: 1 1 40rem;
  z-index: 1;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-img-wrapper {
  position: relative;
  display: inline-block;
}
.hero-img-wrapper::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0066ff, #764ba2, #00b8ff);
  z-index: -1;
  filter: blur(16px);
  opacity: 0.55;
  animation: glowPulse 3s ease-in-out infinite;
}
@keyframes glowPulse {
  0%, 100% { opacity: 0.45; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.04); }
}
.home .image .hero-img {
  width: 75%;
  max-width: 420px;
  border-radius: 50%;
  border: 6px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  animation: floatHeroImage 4s ease-in-out infinite;
  display: block;
  margin: 0 auto;
}

/* Keyframes untuk animasi */
@keyframes floatHeroImage {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}
@keyframes slideInLeft {
  0% { opacity: 0; transform: translateX(-50px); }
  100% { opacity: 1; transform: translateX(0); }
}

/* hero media queries */
@media screen and (max-width: 900px) {
  .home {
    text-align: center;
    justify-content: center;
    padding-top: 10rem;
  }
  .home .content {
    order: 2;
  }
  .home .image {
    order: 1;
    margin-bottom: 2rem;
  }
  .home .image .hero-img {
    width: 60%;
    max-width: 280px;
  }
  .home .content h1,
  .home .content h1 span {
    font-size: 4rem;
  }
  .home .content p {
    font-size: 2rem;
  }
  .socials .social-icons {
    justify-content: center;
  }
  .hero-stats {
    justify-content: center;
  }
  .hero-cta {
    justify-content: center;
  }
}
@media (max-width: 450px) {
  .home .image .hero-img {
    width: 75%;
  }
  .home .content h1,
  .home .content h1 span {
    font-size: 3.2rem;
  }
  .home .btn,
  .home .btn-primary {
    padding: 1.2rem 2.5rem;
  }
}
/* hero section ends */

/* about section starts */
.about {
  background: #f8fafc; /* Disamakan dengan Experience agar transisi section mulus */
  padding-bottom: 5rem;
}
.about .heading {
  color: #02094b;
}
.about .heading span {
  color: #0066ff;
}
.about .row {
  display: flex;
  flex-direction: row;
  gap: 5rem; /* Memberikan ruang lega antara gambar dan teks */
  flex-wrap: wrap;
  align-items: center;
  margin-top: 4rem;
}

/* --- Area Gambar & Efek Bingkai --- */
.about .row .image {
  text-align: center;
  flex: 1 1 35rem;
  position: relative; /* Diperlukan untuk bingkai offset */
}
/* Efek bingkai oranye di belakang gambar */
.about .row .image::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 380px;
  height: 100%;
  background: transparent;
  border: 4px solid #0066ff;
  border-radius: 20px;
  z-index: 0;
  transition: 0.4s ease;
}
.about .row .image img {
  width: 100%;
  max-width: 380px;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1;
  transition: 0.4s ease;
  background: #fff;
}
.about .row .image:hover img {
  transform: translateY(-10px); /* Gambar naik saat hover */
}
.about .row .image:hover::before {
  transform: translateX(-50%) translateY(10px); /* Bingkai turun saat hover */
  background: rgba(0, 102, 255, 0.05); /* Tambahan warna tipis di dalam bingkai */
}

/* --- Area Konten Teks --- */
.about .row .content {
  flex: 1 1 45rem;
}
.about .row .content h3 {
  color: #02094b;
  font-size: 3.2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.about .row .content .tag {
  font-size: 1.5rem;
  color: #0066ff;
  font-weight: 700;
  display: inline-block;
  padding: 0.6rem 2rem;
  background: rgba(0, 102, 255, 0.1);
  border-radius: 50px;
  margin-bottom: 2rem;
}
.about .row .content p {
  font-size: 1.6rem;
  line-height: 1.8;
  color: #555;
  font-weight: 500;
  margin-bottom: 3rem;
}
.about .row .content p strong {
  color: #02094b;
}

/* about-contact inline */
.about-contact-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem 2rem;
  margin: 1.5rem 0 2.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid #eaeaea;
  border-bottom: 1px solid #eaeaea;
}
.about-contact-inline a,
.about-contact-inline span {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.4rem;
  color: #555;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}
.about-contact-inline a:hover {
  color: #0066ff;
}
.about-contact-inline i {
  color: #0066ff;
  font-size: 1.5rem;
}

/* About stat cards 2x2 */
.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 0 0 3rem;
}
.about-stat-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 14px;
  padding: 1.8rem 2rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
  transition: all 0.25s ease;
  border-left: 4px solid var(--stat-color, #0066ff);
}
.about-stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.about-stat-card i {
  font-size: 1.8rem;
  color: var(--stat-color, #0066ff);
  margin-bottom: 0.3rem;
}
.about-stat-card strong {
  font-size: 3rem;
  font-weight: 900;
  color: #02094b;
  line-height: 1;
}
.about-stat-card span {
  font-size: 1.3rem;
  color: #888;
  font-weight: 600;
}

/* --- Tombol Resume --- */
.about .row .content .resumebtn {
  margin-top: 1rem;
}
.about .row .content .resumebtn .btn {
  display: inline-flex;
  align-items: center;
  padding: 1.4rem 3.5rem;
  border-radius: 50px;
  color: #fff;
  background: #02094b;
  box-shadow: 0px 8px 20px rgba(2, 9, 75, 0.3);
  font-family: "Nunito", sans-serif;
  transition: all 0.3s ease;
}
.about .row .content .resumebtn .btn span {
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: 1px;
}
.about .row .content .resumebtn .btn i {
  margin-left: 1rem;
  font-size: 1.6rem;
  transition: transform 0.3s ease;
}
.about .row .content .resumebtn .btn:hover {
  background: #0066ff;
  box-shadow: 0px 8px 20px rgba(0, 102, 255, 0.4);
  transform: translateY(-3px);
}
.about .row .content .resumebtn .btn:hover i {
  transform: translateY(3px); /* Ikon download bergerak ke bawah */
}

/* --- about media queries --- */
@media screen and (max-width: 900px) {
  .about .row {
    flex-direction: column;
    text-align: center;
    gap: 3rem;
  }
  .about .row .image::before {
    display: none; /* Sembunyikan bingkai estetik di HP agar tidak mempersempit layar */
  }
  .about .row .content .personal-info {
    text-align: left; /* Teks di dalam kotak info tetap rata kiri */
  }
}
@media screen and (max-width: 600px) {
  .about .row .image img {
    width: 85%;
  }
  .about .row .content .personal-info {
    grid-template-columns: 1fr; /* Info box menjadi 1 kolom menyusun ke bawah di layar kecil */
  }
}
/* about section ends */

/* skills section starts */
.skills {
  background: #eef2f6;
  position: relative;
}
.skills::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 220px;
  background: linear-gradient(135deg, #02094b 0%, #1a1f6e 100%);
  z-index: 0;
}
.skills .heading {
  position: relative;
  z-index: 1;
  color: #ffffff;
}
.skills .heading span {
  color: #0066ff;
}

/* Grid layout */
#skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 5rem;
  max-width: 1300px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
  padding: 0 2rem;
}

/* ── Skill Card ─────────────────────── */
.skill-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(2, 9, 75, 0.07);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  display: flex;
  flex-direction: column;
}
.skill-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(2, 9, 75, 0.14);
}

/* Gradient accent bar on top */
.skill-card-accent {
  height: 6px;
  width: 100%;
  flex-shrink: 0;
}

/* Card header: icon + title + count */
.skill-card-header {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 2rem 2.2rem 1.6rem;
  border-bottom: 1px solid #f0f0f0;
}
.skill-card-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.skill-card-icon i {
  font-size: 1.8rem;
  color: #fff;
}
.skill-card-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #02094b;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  flex: 1;
}
.skill-card-count {
  font-size: 1.1rem;
  color: #999;
  font-weight: 600;
  background: #f4f5f9;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  white-space: nowrap;
}

/* ── Skill Chips container ──────────── */
.skill-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  padding: 1.8rem 2.2rem 2rem;
  align-content: flex-start;
}

/* Individual chip */
.skill-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 1.1rem 0.5rem 0.7rem;
  background: var(--chip-bg, rgba(2, 9, 75, 0.04));
  border: 1px solid var(--chip-border, rgba(2, 9, 75, 0.12));
  border-radius: 99px;
  cursor: default;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.skill-chip:hover {
  filter: brightness(0.94);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

/* Icon inside chip */
.skill-chip-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  flex-shrink: 0;
}
.skill-chip-img {
  width: 1.8rem;
  height: 1.8rem;
  object-fit: cover;
  display: block;
}
.skill-chip-icon i {
  font-size: 1.4rem;
  color: #555;
}

/* Chip label */
.skill-chip-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: #333;
  line-height: 1;
}

/* Learning badge */
.learning-badge {
  font-size: 0.9rem;
  font-weight: 700;
  color: #0066ff;
  background: rgba(0, 102, 255, 0.1);
  border: 1px solid rgba(0, 102, 255, 0.35);
  border-radius: 4px;
  padding: 0.1rem 0.45rem;
  margin-left: 0.2rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.skill-chip-learning {
  opacity: 0.82;
}
.skill-chip-learning:hover {
  opacity: 1;
}

/* ── Responsive ────────────────────── */
@media screen and (max-width: 1200px) {
  #skills-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media screen and (max-width: 900px) {
  #skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media screen and (max-width: 600px) {
  #skills-grid {
    grid-template-columns: 1fr;
    gap: 1.6rem;
    margin-top: 3rem;
    padding: 0 1rem;
  }
  .skill-card-header {
    padding: 1.6rem 1.8rem 1.2rem;
  }
  .skill-chips {
    padding: 1.4rem 1.8rem 1.6rem;
  }
}

/* ── Chip hidden / expand ─────────── */
.chip-hidden {
  display: none !important;
}
.chip-visible-extra {
  display: inline-flex;
  animation: chipFadeIn 0.22s ease forwards;
}
@keyframes chipFadeIn {
  from { opacity: 0; transform: scale(0.85); }
  to   { opacity: 1; transform: scale(1); }
}

/* Expand button */
.chip-expand-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.9rem 1rem;
  background: transparent;
  border: none;
  border-top: 1px dashed #e8e8e8;
  color: #888;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
  letter-spacing: 0.03em;
  margin-top: auto;
}
.btn {
  /* ... existing styles ... */
  transition: all 0.3s ease;
}
.navbar a { transition: color 0.3s ease; }
.logo { transition: color 0.3s ease; }
.footer .box a { transition: transform 0.3s ease, color 0.3s ease; }
.share a { transition: all 0.3s ease; }

/* Copy to Clipboard UI */
.copyable-contact {
  position: relative;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
}
.copy-icon {
  font-size: 1.2rem;
  opacity: 0;
  transform: translateX(-5px);
  transition: all 0.3s ease;
  color: #0066ff;
}
.copyable-contact:hover .copy-icon {
  opacity: 1;
  transform: translateX(0);
}
.copy-success {
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  background: #0066ff;
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}
.copy-success.visible {
  opacity: 1;
  top: -30px;
}
.chip-expand-btn:hover {
  color: #420177;
  background: rgba(66, 1, 119, 0.04);
}
.chip-expand-btn[aria-expanded="true"] {
  color: #0066ff;
}
.chip-expand-btn i {
  font-size: 1.1rem;
  transition: transform 0.25s ease;
}
.chip-expand-btn[aria-expanded="true"] i {
  transform: rotate(180deg);
}
/* skills section ends */



/* education section starts */
.education {
  background: #f8fafc; /* Warna biru pucat kalem sebagai pembeda dari section About */
}
.education .heading {
  color: #02094b;
}
.education .heading span {
  color: #0066ff;
}
.education .quote {
  font-size: 1.6rem;
  text-align: center;
  font-family: "Nunito", sans-serif;
  font-weight: 600;
  color: #555;
  margin-bottom: 4rem;
  font-style: italic;
  padding: 0 2rem;
}

/* Container untuk menjaga lebar maksimal */
.education .box-container {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 950px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Desain Card Education */
.education-card {
  background: #ffffff;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: row;
  overflow: hidden;
  transition: all 0.3s ease;
  width: 100%;
  border-left: 6px solid #02094b; /* Garis aksen Navy di kiri */
}
.education-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 102, 255, 0.15); 
  border-left-color: #0066ff; /* Garis aksen berubah biru */
}

/* Area Gambar */
.education-card .image {
  flex: 0 0 40%; /* Mengambil 40% dari lebar kartu */
  overflow: hidden;
  position: relative;
}
.education-card .image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Agar gambar tidak gepeng */
  transition: transform 0.5s ease;
}
.education-card:hover .image img {
  transform: scale(1.08); /* Efek zoom in pelan saat hover */
}

/* Area Konten Teks */
.education-card .content {
  flex: 1;
  padding: 4rem 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.education-card .content .year {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1.6rem;
  background: rgba(2, 9, 75, 0.08);
  color: #02094b;
  border-radius: 50px;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  align-self: flex-start;
}
.education-card .content .year i {
  margin-right: 0.8rem;
  color: #0066ff;
}
.education-card .content h3 {
  font-size: 2.2rem;
  color: #02094b;
  font-weight: 800;
  margin-bottom: 0.8rem;
  line-height: 1.4;
  text-transform: capitalize;
}
.education-card .content .institution {
  font-size: 1.6rem;
  color: #0066ff;
  font-weight: 700;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
}
.education-card .content .institution i {
  margin-right: 0.8rem;
}
.education-card .content .desc {
  font-size: 1.5rem;
  color: #555;
  line-height: 1.6;
}

/* education media queries */
@media screen and (max-width: 768px) {
  .education-card {
    flex-direction: column; /* Mengubah susunan menjadi atas-bawah di layar HP */
    border-left: none;
    border-top: 6px solid #02094b; /* Garis aksen pindah ke atas */
  }
  .education-card:hover {
    border-top-color: #0066ff;
  }
  .education-card .image {
    flex: 0 0 220px; /* Menentukan tinggi gambar di versi mobile */
  }
  .education-card .content {
    padding: 3rem 2rem;
  }
  .education-card .content h3 {
    font-size: 2rem;
  }
}
/* education section ends */

/* work section starts */
.work {
  background: #eef2f6;
}
.work h2 {
  color: #02094b;
  padding: 1rem;
}
.work .heading span {
  color: #0066ff;
}
.work .box-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2.8rem;
  margin: 3rem 0;
}

/* ── Project Card ─────────────────── */
.work .box {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #e8eaf0;
  box-shadow: 0 4px 20px rgba(2, 9, 75, 0.06);
  /* overflow: hidden; */ /* Removing to allow 3D pop-out */
  display: flex;
  flex-direction: column;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
  transform-style: flat;
}
.work .box:hover {
  transform: translateY(-7px);
  box-shadow: 0 16px 40px rgba(0, 102, 255, 0.15);
  border-color: rgba(0, 102, 255, 0.35);
}

/* ── Image area: full bleed ── */
.work .box .image-wrapper {
  position: relative;
  width: 100%;
  height: 220px;
  background: #f8fafc;
  padding: 0;
  box-sizing: border-box;
  overflow: hidden;
  flex-shrink: 0;
  transform-style: flat;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
}
.work .box .image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.45s ease;
}
.work .box:hover .image-wrapper img {
  transform: scale(1.04);
}

/* Gradient overlay on hover */
.work .box .image-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2, 9, 75, 0.18), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.work .box:hover .image-wrapper::after {
  opacity: 1;
}

/* Zoom button - Hidden when carousel is present to avoid double icon */
.work .box .zoom-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.6) translateZ(0);
  background: rgba(0, 102, 255, 0.95);
  color: #fff;
  border-radius: 50%;
  width: 52px;
  height: 52px;
  font-size: 1.8rem;
  cursor: pointer;
  opacity: 0;
  transition: all 0.28s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 2px solid #fff;
  backdrop-filter: blur(4px);
  z-index: 10000;
  pointer-events: auto;
}
/* Hide zoom button if carousel is present */
.work .box:has(.carousel-btn) .zoom-btn {
  display: none !important;
}
.image-wrapper:hover .zoom-btn {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1) translateZ(0);
}

.zoom-btn:hover {
  background: #02094b;
  transform: translate(-50%, -50%) scale(1.1) translateZ(0);
}



/* ── Carousel Controls ────────────────── */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%) translateZ(0);
  background: rgba(2, 9, 75, 0.95);
  color: #fff;
  border: 2px solid #fff;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 1.4rem;
  cursor: pointer;
  z-index: 9999; /* Topmost */
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.22s ease;
  opacity: 0;
  pointer-events: auto !important;
}
.carousel-btn:hover {
  background: #0066ff;
  transform: translateY(-50%) translateZ(0) scale(1.15);
  box-shadow: 0 0 20px rgba(0, 102, 255, 0.6);
}
.carousel-btn.prev { left: 0.8rem; }
.carousel-btn.next { right: 0.8rem; }
.image-wrapper:hover .carousel-btn,
.project-detail-wrapper:hover .carousel-btn {
  opacity: 1;
}


.carousel-dots {
  position: absolute;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%) translateZ(0);
  display: flex;
  gap: 1rem;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: auto !important;
}
.image-wrapper:hover .carousel-dots,
.project-detail-wrapper:hover .carousel-dots {
  opacity: 1;
}



.dot {
  width: 12px;
  height: 12px;
  background: rgba(2, 9, 75, 0.5);
  border: 1.5px solid #fff;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.25s ease;
  pointer-events: auto !important;
}
.dot.active {
  background: #0066ff;
  width: 24px;
  border-radius: 6px;
}


/* ── Content area ────────────────── */
.work .box .content {
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 0.6rem;
  position: relative;
  z-index: 100;
  background: #fff;
  transform: translateZ(0);
  transform-style: flat;
}


.work .box .content .title-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid #f0f0f0;
}
.work .box .content .title-wrap h3 {
  font-size: 1.85rem;
  color: #02094b;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.work .box .content .desc p {
  font-size: 1.35rem;
  color: #666;
  line-height: 1.65;
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Status badges — refined */
.status-badge {
  padding: 0.35rem 1rem;
  border-radius: 50px;
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.status-online  { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }
.status-offline { background: #f1f5f9; color: #475569; border: 1px solid #cbd5e1; }
.status-private { background: #ede9fe; color: #4c1d95; border: 1px solid #c4b5fd; }

/* Action buttons */
.work .box .btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: auto;
  padding-top: 1.5rem;
}
.work .box .btns .btn {
  flex: 1 1 calc(50% - 0.4rem);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem 1.2rem;
  border-radius: 10px;
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  background: #02094b;
  transition: all 0.22s ease;
  text-decoration: none;
  border: none;
  cursor: pointer;
}
.work .box .btns .btn.btn-detail {
  flex: 1 1 calc(50% - 0.4rem);
  background: transparent !important;
  color: #0066ff !important;
  border: 1.5px solid #0066ff !important;
  position: relative;
  z-index: 101;
  transition: all 0.3s ease;
}
.work .box .btns .btn.btn-detail:hover {
  background: #0066ff !important;
  color: #ffffff !important;
  box-shadow: 0 10px 25px rgba(0, 102, 255, 0.25);
}

.work .box .btns .btn:hover {
  background: #0066ff;
  box-shadow: 0 6px 16px rgba(0, 102, 255, 0.3);
}
.work .box .btns .btn-disabled {
  background: #f1f3f7;
  color: #94a3b8;
  cursor: not-allowed;
  pointer-events: none;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem 1.2rem;
  border-radius: 10px;
  font-size: 1.35rem;
  font-weight: 700;
  flex: 1 1 calc(50% - 0.4rem);
}

/* Image Modal (Lightbox) Styles */
.image-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.85);
  backdrop-filter: blur(5px);
}
.image-modal .modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 90vh;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.image-modal .close-modal {
  position: absolute;
  top: 2rem;
  right: 4rem;
  color: #f1f1f1;
  font-size: 5rem;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}
.image-modal .close-modal:hover {
  color: #0066ff;
}
/* work section ends */


/* experience section starts */
.experience {
  background: #eef2f6;
}
.experience .timeline {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}
.experience .timeline::after {
  content: "";
  position: absolute;
  width: 4px;
  background: linear-gradient(to bottom, #02094b, #0066ff, #00b8ff);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
  z-index: 0;
  border-radius: 50px;
}
.experience .container {
  padding: 10px 50px;
  position: relative;
  width: 50%;
  z-index: 1;
}
/*circles on timeline*/
.experience .container::after {
  content: "\f0b1";
  position: absolute;
  width: 32px;
  height: 32px;
  right: -16px;
  background-color: #fff;
  border: 3px solid #0066ff;
  top: 36px;
  border-radius: 50%;
  z-index: 100;
  font-size: 1.4rem;
  text-align: center;
  font-weight: 900;
  color: #0066ff;
  font-family: "Font Awesome 5 Free";
  line-height: 26px;
  box-shadow: 0 0 0 5px rgba(0, 102, 255, 0.15);
  transition: all 0.3s ease;
}
.experience .container:hover::after {
  background-color: #0066ff;
  color: #fff;
  box-shadow: 0 0 0 8px rgba(0, 102, 255, 0.25);
}
.experience .left {
  left: 0;
}
.experience .right {
  left: 50%;
}
.experience .right::after {
  left: -16px;
}

/* ========================================= */
/* UPDATE BAGIAN KONTEN EXPERIENCE DI SINI   */
/* ========================================= */

.experience .content {
  background-color: #ffffff;
  position: relative;
  border-radius: 18px;
  box-shadow: 0 8px 30px rgba(2, 9, 75, 0.08); /* Darkened the shadow from 0.05 to 0.08 */
  border: 1px solid #e5e7eb;
  transition: all 0.35s ease;
  overflow: visible; 
}
.experience .content:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(2, 9, 75, 0.08);
  border-color: rgba(0, 102, 255, 0.3);
}

/* arrows pointing left/right from cards */
.experience .left::before {
  content: " ";
  height: 0;
  position: absolute;
  top: 38px;
  width: 0;
  z-index: 1;
  right: -14px;
  border: medium solid #ffffff;
  border-width: 14px 0 14px 14px;
  border-color: transparent transparent transparent #ffffff;
  filter: drop-shadow(4px 0 2px rgba(0,0,0,0.04));
}
.experience .right::before {
  content: " ";
  height: 0;
  position: absolute;
  top: 38px;
  width: 0;
  z-index: 1;
  left: -14px;
  border: medium solid #ffffff;
  border-width: 14px 14px 14px 0;
  border-color: transparent #ffffff transparent transparent;
  filter: drop-shadow(-4px 0 2px rgba(0,0,0,0.04));
}

/* Header: Nama Perusahaan */
.experience .content .tag {
  background-color: transparent; 
  padding: 2.5rem 2.5rem 1.5rem 2.5rem;
  border-bottom: 1px dashed #e8eaf0;
}
.experience .content .tag h2 {
  font-size: 2.1rem;
  font-weight: 800;
  color: #02094b; 
  letter-spacing: -0.02em;
}

/* Body: Posisi, Jobdesc, Tanggal */
.experience .content .desc {
  padding: 1.5rem 2.5rem 2.5rem 2.5rem;
}
.experience .content .desc h3 {
  font-size: 1.7rem;
  font-weight: 700;
  color: #0066ff; 
  margin-bottom: 1.2rem;
}

/* Tanggal (Badge terang modern) */
.experience .content .desc p {
  display: inline-flex;
  align-items: center;
  font-size: 1.25rem;
  font-weight: 700;
  color: #0084ff;
  background-color: rgba(0, 132, 255, 0.1);
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  margin-bottom: 1.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.experience .content .desc p::before {
  display: none; /* Removed double icon, icon now in HTML */
}

/* List Jobdesc */
.experience .content .desc ul {
  list-style: none;
  margin: 1.5rem 0 0 0;
  border-top: 1px solid #f4f6fa;
  padding-top: 1.5rem;
}
.experience .content .desc ul li {
  font-size: 1.35rem;
  font-weight: 500;
  margin-top: 1rem;
  line-height: 1.6;
  color: #555; 
  display: flex;
  align-items: flex-start;
}
.experience .content .desc ul li i {
  color: #0066ff; 
  font-size: 1.2rem;
  margin-top: 0.35rem;
  margin-right: 1.2rem;
}
/* view all button */
.morebtn {
  display: flex;
  justify-content: center;
}
.morebtn .btn {
  position: relative;
  line-height: 0;
  padding: 1.6rem 3rem;
  border-radius: 0.5em;
  transition: 0.5s;
  color: #fff;
  background: #2506ad;
  box-shadow: 0px 5px 10px rgba(48, 68, 247, 0.6);
  text-align: center;
}
.morebtn .btn span {
  font-weight: 600;
  font-size: 1.7rem;
  font-family: "Nunito", sans-serif;
}
.morebtn .btn i {
  margin-left: 0.3rem;
  font-size: 1.5rem;
  transition: 0.3s;
}
.morebtn .btn:hover {
  background: #1a047e;
}
.morebtn .btn:hover i {
  transform: translateX(5px);
}

/* Media queries - Responsive timeline on screens less than 600px wide */
@media screen and (max-width: 600px) {
  .experience {
  }
  .experience .timeline {
    margin-top: 2rem;
  }
  .experience .timeline::after {
    left: 31px;
  }
  .experience .container {
    width: 100%;
    padding-left: 8rem;
    padding-right: 2rem;
  }
  .experience .container::after {
    font-size: 2.2rem;
  }
  .experience .container::before {
    left: 61px;
    border: medium solid #0066ff;
    border-width: 10px 10px 10px 0;
    border-color: transparent #0066ff transparent transparent;
  }
  .experience .left::after {
    left: 15px;
  }
  .experience .right::after {
    left: 15px;
  }
  .experience .right {
    left: 0%;
  }
  .morebtn {
    margin-top: 3rem;
  }
}
/* experience media queries ends */
/* experience section ends */

/* =========================================
   TIERED ROLES (Expandable Timeline)
   ========================================= */
.tiered-desc {
  padding-top: 1.5rem !important;
}

.total-period {
  display: inline-flex;
  align-items: center;
  font-size: 1.3rem;
  font-weight: 700;
  color: #0084ff;
  background-color: rgba(0, 132, 255, 0.08);
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.tiered-timeline-container {
  position: relative;
  padding-left: 1.5rem;
  margin-left: 0.5rem;
  border-left: 2px solid #e2e8f0;
  margin-bottom: 1rem;
}

.tiered-role {
  background: #fff;
  border: 1px solid #f0f2f6;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
}
.tiered-role::before {
  content: '';
  position: absolute;
  top: 1.8rem;
  left: -2.25rem;
  width: 1.2rem;
  height: 1.2rem;
  background: #0066ff;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.1);
  z-index: 2;
}

.tiered-role[open] {
  box-shadow: 0 10px 25px rgba(2, 9, 75, 0.05);
  border-color: rgba(0, 102, 255, 0.3);
}

.role-summary {
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  background: #fafbff;
  transition: background 0.3s ease;
}
.role-summary:hover {
  background: #fff;
}
.role-summary::-webkit-details-marker {
  display: none;
}

.summary-info {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.role-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #02094b;
}

.role-badge {
  font-size: 1.15rem;
  font-weight: 600;
  color: #718096;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.toggle-icon {
  color: #0066ff;
  font-size: 1.4rem;
  transition: transform 0.3s ease;
}
.tiered-role[open] .toggle-icon {
  transform: rotate(180deg);
}

.role-body {
  padding: 0 1.5rem 1.5rem 1.5rem;
  border-top: 1px solid #f0f2f6;
  background: #fff;
}

.role-body ul {
  border-top: none !important;
  padding-top: 1rem !important;
  margin-top: 0 !important;
}

.role-body ul li {
  font-size: 1.35rem !important;
  color: #4a5568 !important;
  margin-top: 0.8rem !important;
}

@media (max-width: 600px) {
  .tiered-timeline-container {
    margin-left: -0.5rem;
  }
}
/* ========================================= */

/* certifications section starts */
.certifications {
  background: #f8fafc;
  padding-bottom: 7rem;
}
.certifications h2 {
  color: #02094b;
}
.certifications .heading span {
  color: #0066ff;
}
.certifications .box-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  margin-top: 4rem;
}

/* Premium Card */
.certifications .box {
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  padding: 3rem 2.5rem;
  transition: all 0.35s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  border: 1px solid #f0f2f6;
}
/* Orange Accent Line Top */
.certifications .box::before {
  content: "";
  position: absolute;
  top: 0; 
  left: 0; 
  right: 0;
  height: 5px;
  background: linear-gradient(135deg, #02094b, #0066ff);
  transition: height 0.3s ease;
}
.certifications .box:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(2, 9, 75, 0.1);
  border-color: rgba(0, 102, 255, 0.25);
}

/* Glowing Ribbon/Certificate Icon */
.certifications .box .icon {
  font-size: 2.6rem;
  color: #0066ff;
  background: rgba(0, 102, 255, 0.1);
  width: 6.5rem;
  height: 6.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 16px;
  margin-bottom: 2rem;
  transition: all 0.4s ease;
}
.certifications .box:hover .icon {
  background: linear-gradient(135deg, #02094b, #0066ff);
  color: #fff;
  transform: scale(1.08) rotate(5deg);
  box-shadow: 0 10px 25px rgba(0, 102, 255, 0.35);
}

/* Content Area */
.certifications .box .content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.certifications .box .content h3 {
  font-size: 1.85rem;
  color: #02094b;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.4;
  letter-spacing: -0.02em;
}

/* Issuer Pill Badge */
.certifications .box .content .issuer {
  font-size: 1.15rem;
  color: #0084ff;
  font-weight: 800;
  margin-bottom: 2rem;
  display: inline-block;
  padding: 0.5rem 1.4rem;
  background: rgba(0, 132, 255, 0.1);
  border-radius: 50px;
  align-self: flex-start;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Date */
.certifications .box .content .date {
  font-size: 1.35rem;
  color: #666;
  font-weight: 600;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.certifications .box .content .date::before {
  content: '\f073'; /* FontAwesome calendar */
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  color: #a0a5ba;
  font-size: 1.3rem;
}

/* Credential ID Monospace Box */
.certifications .box .content .credential-id {
  font-size: 1.2rem;
  color: #777;
  font-family: 'Courier New', Courier, monospace; 
  word-break: break-all;
  background: #f4f6fa;
  padding: 0.9rem 1.2rem;
  border-radius: 8px;
  border: 1px dashed #d0d7e5;
  margin-top: auto; /* Memastikan kotak ini selalu di bawah card */
}
/* certifications section ends */

/* contact section starts */
.contact {
  background: #eef2f6;
}
.contact .heading {
  color: #02094b;
}
.contact .heading span {
  color: #0066ff;
}

/* Container Utama Split-Pane */
.contact-container {
  display: flex;
  max-width: 1050px;
  margin: 5rem auto 0;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  overflow: hidden; /* Memastikan sudut anak-elemen tidak keluar jalur */
}

/* --- KIRI: Area Informasi Kontak --- */
.contact-info {
  flex: 1;
  background: #02094b; /* Navy */
  color: #fff;
  padding: 5rem 4rem;
  position: relative;
}
.contact-info h3 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: #ffffff;
}
.contact-info > p {
  font-size: 1.5rem;
  color: #cbd0e6;
  line-height: 1.6;
  margin-bottom: 4rem;
}
.contact-info .info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 3rem;
}
.contact-info .info-item i {
  font-size: 2rem;
  color: #0066ff;
  margin-right: 2rem;
  margin-top: 0.5rem;
}
.contact-info .info-item span {
  display: block;
  font-size: 1.3rem;
  color: #cbd0e6;
  margin-bottom: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.contact-info .info-item a,
.contact-info .info-item p {
  font-size: 1.6rem;
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}
.contact-info .info-item a:hover {
  color: #0066ff;
}

/* --- KANAN: Area Formulir Kontak --- */
.contact-form-container {
  flex: 1.5;
  padding: 5rem 4rem;
  background: #ffffff;
}
.contact-form-container form {
  width: 100%;
}
.input-box {
  position: relative;
  margin-bottom: 3.5rem;
}

/* Desain Input Minimalis Tanpa Border Kotak */
.input-box input, 
.input-box textarea {
  width: 100%;
  padding: 1rem 0;
  font-size: 1.6rem;
  color: #333;
  background: transparent;
  border: none;
  border-bottom: 2px solid #ddd;
  outline: none;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
}
.input-box textarea {
  resize: vertical;
  min-height: 100px;
}

/* Label (Sebagai Placeholder Default) */
.input-box label {
  position: absolute;
  left: 0;
  top: 1rem;
  font-size: 1.5rem;
  color: #999;
  pointer-events: none; /* Memastikan klik tembus ke input */
  transition: all 0.3s ease;
}

/* Efek Animasi Floating Label saat diketik/difokus */
.input-box input:focus, 
.input-box textarea:focus {
  border-bottom-color: #0066ff;
}
.input-box input:focus ~ label,
.input-box input:valid ~ label,
.input-box textarea:focus ~ label,
.input-box textarea:valid ~ label {
  top: -18px; /* Naik ke atas */
  font-size: 1.2rem; /* Mengecil */
  color: #0066ff; /* Berubah biru */
  font-weight: 700;
}

/* Tombol Submit */
.contact-form-container .btn {
  display: inline-flex;
  align-items: center;
  padding: 1.4rem 3.5rem;
  border-radius: 50px;
  color: #fff;
  background: #02094b;
  box-shadow: 0px 8px 20px rgba(2, 9, 75, 0.2);
  font-family: "Nunito", sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1rem;
}
.contact-form-container .btn i {
  margin-left: 1rem;
  font-size: 1.6rem;
  transition: transform 0.3s ease;
}
.contact-form-container .btn:hover {
  background: #0066ff;
  box-shadow: 0px 8px 20px rgba(0, 102, 255, 0.4);
  transform: translateY(-3px);
}
.contact-form-container .btn:hover i {
  transform: translateX(5px) scale(1.1); /* Ikon pesawat kertas terlempar */
}

/* --- Contact Media Queries (Responsif) --- */
@media screen and (max-width: 900px) {
  .contact-container {
    flex-direction: column; /* Mengubah susunan menjadi atas-bawah */
    margin: 4rem 2rem 0;
  }
  .contact-info, .contact-form-container {
    padding: 4rem 3rem;
  }
}
@media screen and (max-width: 600px) {
  .contact-info, .contact-form-container {
    padding: 3rem 2rem;
  }
  .contact-info h3 {
    font-size: 2.4rem;
  }
}
/* contact section ends */

/* footer section starts */
.footer {
  background: #010115;
  padding: 8rem 9% 3rem;
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(0, 102, 255, 0.5), transparent);
}
.footer .box-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 4rem;
  margin-bottom: 5rem;
}
.footer .box-container .box h3 {
  font-size: 2.4rem;
  color: #fff;
  font-weight: 700;
  margin-bottom: 2.5rem;
  position: relative;
  letter-spacing: -0.01em;
}
.footer .box-container .box h3::after {
  content: '';
  position: absolute;
  bottom: -0.8rem; left: 0;
  width: 30px;
  height: 2px;
  background: #0066ff;
  border-radius: 2px;
}
.footer .box-container .box p {
  font-size: 1.5rem;
  color: #a0aec0;
  padding: 0.5rem 0;
  line-height: 1.7;
}
.footer .box-container .box p i {
  padding-right: 1rem;
  color: #0066ff;
  font-size: 1.6rem;
  width: 2.5rem;
  text-align: center;
}
.footer .box-container .box a {
  font-size: 1.5rem;
  color: #a0aec0;
  padding: 0.8rem 0;
  display: block;
  transition: all 0.3s ease;
}
.footer .box-container .box a:hover {
  color: #0066ff;
  padding-left: 0.8rem;
}
.footer .box-container .box .share {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2rem;
}
.footer .box-container .box .share a {
  height: 4.5rem;
  width: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 2rem;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0;
}
.footer .box-container .box .share a:hover {
  background: #0066ff;
  border-color: #0066ff;
  transform: translateY(-5px);
  color: #fff;
  box-shadow: 0 10px 20px rgba(0, 102, 255, 0.2);
}
.footer .credit {
  padding: 3rem 0;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 500;
  color: #718096;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  letter-spacing: 0.02em;
}
.footer .credit a {
  color: #0066ff;
  font-weight: 700;
  position: relative;
  transition: all 0.3s ease;
}
.footer .credit a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0;
  height: 1px;
  background: #0066ff;
  transition: width 0.3s ease;
}
.footer .credit a:hover::after {
  width: 100%;
}
.footer .pulse {
  color: #ff3e3e;
  margin: 0 0.5rem;
  font-size: 1.6rem;
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}
@media (max-width: 450px) {
  .footer .box-container .box {
    margin: 1.5rem;
  }
  .footer .box-container .box p {
    padding: 0.7rem;
  }
  .footer .box-container .box .share a {
    padding: 1.2rem;
  }
}
/* footer section ends */

/* common media queries starts*/
@media (max-width: 450px) {
  html {
    font-size: 55%;
  }
  body {
    padding-right: 0;
  }
  section {
    padding: 2rem;
  }
}
/* common media queries ends*/

/* scroll top starts */
#scroll-top {
  position: fixed;
  top: -140%;
  right: 2rem;
  padding: 1rem 1.5rem;
  font-size: 2rem;
  background: #0066ff;
  color: #fff;
  border-radius: 50%;
  transition: 1s linear;
  z-index: 1000;
}
#scroll-top.active {
  top: calc(100% - 12rem);
}
/* scroll top ends */

/* ========================================== */
/* VIEW MORE BUTTON & HIDDEN ITEMS STYLING    */
/* ========================================== */
.hidden-item {
  display: none !important;
}

/* Force visibility for items revealed via 'View More' to bypass ScrollReveal conflicts */
.revealed {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

.morebtn {
  display: flex;
  justify-content: center;
  width: 100%;
}
.morebtn .btn {
  cursor: pointer;
  padding: 1.2rem 3rem;
  border-radius: 50px;
  color: #fff;
  background: #02094b; /* Navy */
  box-shadow: 0px 5px 15px rgba(2, 9, 75, 0.3);
  font-family: "Nunito", sans-serif;
  display: inline-flex;
  align-items: center;
  border: none;
  font-size: 1.6rem;
  font-weight: 700;
  transition: 0.3s ease;
}
.morebtn .btn span {
  margin-right: 1rem;
}
.morebtn .btn i {
  transition: transform 0.3s ease;
}
.morebtn .btn:hover {
  background: #0066ff; /* Blue */
  box-shadow: 0px 5px 15px rgba(0, 102, 255, 0.4);
  transform: translateY(-3px);
}
/* ========================================== */
/* FIX MOBILE VIEW WORK & EXPERIENCE          */
/* ========================================== */
@media screen and (max-width: 600px) {
  /* Ubah grid project dan sertifikasi jadi 1 kolom di layar kecil */
  .work .box-container,
  .certifications .box-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* ========================================== */
/* SEMANTIC TAG ADDITIONS                     */
/* ========================================== */

/* Resume Download Button — resets since we changed from <a> to <button> */
.about .row .content .resumebtn .btn {
  cursor: pointer;
  font-family: "Nunito", sans-serif;
}

/* Close modal button reset */
.image-modal .close-modal {
  background: none;
  cursor: pointer;
}

/* About info-box links — seamless with surrounding text */
.about .row .content .personal-info .info-box span a {
  color: #555;
  font-size: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}
.about .row .content .personal-info .info-box span a:hover {
  color: #0066ff;
}

/* Footer contact info links */
.footer .box p a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer .box p a:hover {
  color: #0066ff;
}

/* ========================================== */
/* TECH STACK TAGS — Projects & Experience    */
/* ========================================== */

/* Project tech stack tags */
.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 0.5rem;
}
.tech-tag {
  display: inline-block;
  padding: 0.25rem 0.8rem;
  background: rgba(66, 1, 119, 0.08);
  color: #420177;
  border: 1px solid rgba(66, 1, 119, 0.2);
  border-radius: 20px;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all 0.2s ease;
}
.tech-tag:hover {
  background: #420177;
  color: #fff;
  transform: translateY(-1px);
}

/* Project meta: year + type */
.project-meta {
  display: flex;
  gap: 1.2rem;
  font-size: 1.2rem;
  color: #888;
  margin: 0.5rem 0 1rem;
}
.project-meta span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.project-meta i {
  color: #0066ff;
}

/* Experience tech badges */
.exp-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 0.5rem;
}
.tech-badge {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  background: rgba(2, 9, 75, 0.07);
  color: #02094b;
  border: 1px solid rgba(2, 9, 75, 0.15);
  border-radius: 4px;
  font-size: 1.1rem;
  font-weight: 600;
  transition: all 0.2s ease;
}
.tech-badge:hover {
  background: #02094b;
  color: #fff;
}

/* Experience meta: location + type */
.exp-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  font-size: 1.2rem;
  color: #888;
  margin: 0.5rem 0 0.3rem;
}
.exp-meta span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.exp-meta i {
  color: #0066ff;
}

/* Experience period */
.exp-period {
  font-size: 1.3rem;
  color: #666;
  font-style: italic;
  margin-top: 0.5rem !important;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.exp-period i {
  color: #0066ff;
}

/* ========================================== */
/* GITHUB REPOS SECTION                       */
/* ========================================== */

.repos {
  padding: 5rem 9%;
  background: #f8fafc;
}

.repos-subtitle {
  text-align: center;
  font-size: 1.55rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.6;
  margin: 1rem auto 3.5rem;
  max-width: 640px;
  padding: 0 2rem;
}
.repos-subtitle a {
  color: #4dabff;
  font-weight: 600;
  text-decoration: none;
}
.repos-subtitle a:hover {
  color: #7cc4ff;
}

.repos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(30rem, 1fr));
  gap: 2rem;
}

.repo-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  cursor: default;
}
.repo-card:hover {
  border-color: #02094b;
  box-shadow: 0 8px 24px rgba(2, 9, 75, 0.1);
  transform: translateY(-3px);
}

.repo-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}
.repo-header > i {
  color: #02094b;
  font-size: 1.6rem;
}
.repo-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #02094b;
  text-decoration: none;
  flex: 1;
  transition: color 0.2s ease;
}
.repo-name:hover {
  color: #0066ff;
  text-decoration: underline;
}
.repo-visibility {
  font-size: 1.1rem;
  padding: 0.15rem 0.6rem;
  border: 1px solid #57ab5a;
  border-radius: 20px;
  color: #57ab5a;
  font-weight: 600;
}

.repo-desc {
  font-size: 1.35rem;
  color: #555;
  line-height: 1.6;
  flex: 1;
}

.repo-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 0.8rem;
  border-top: 1px solid #f0f0f0;
  font-size: 1.2rem;
  color: #666;
}
.repo-lang {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.lang-dot {
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  display: inline-block;
}
.repo-stats {
  display: flex;
  gap: 1rem;
}
.repo-stats span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.repo-stats i {
  color: #0066ff;
}

/* ========================================= */
/* PROJECT DETAIL VIEW (project.html)        */
/* ========================================= */

.project-detail-view {
  min-height: 80vh;
  padding: 5rem 9%;
  background: #fdfdfd;
}

.project-detail-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 5rem;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
  padding: 4rem;
  margin-top: 4rem;
  border: 1px solid #f0f2f6;
}

.split.left-split {
  flex: 1 1 500px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.detail-img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  object-fit: cover;
  border: 1px solid #eee;
}

.split.right-split {
  flex: 1 1 400px;
  display: flex;
  flex-direction: column;
}

.detail-title {
  font-size: 3.5rem;
  font-weight: 800;
  color: #02094b;
  margin-bottom: 1.5rem;
}

.detail-badges {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
  border-bottom: 1px solid #f0f2f6;
  padding-bottom: 2rem;
}

.meta-badge {
  font-size: 1.3rem;
  color: #666;
  background: #f4f6fa;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
}
.meta-badge i { color: #0066ff; }

.detail-section {
  margin-bottom: 3rem;
}

.detail-section h3 {
  font-size: 2rem;
  color: #02094b;
  margin-bottom: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.detail-section h3::before {
  content: "";
  width: 4px;
  height: 20px;
  background: #0066ff;
  border-radius: 10px;
}

.detail-desc {
  font-size: 1.6rem;
  color: #555;
  line-height: 1.8;
}

.detail-tech-stack {
  gap: 1rem;
}

.detail-actions {
  margin-top: auto;
}

.back-link {
  font-size: 1.5rem;
  color: #666;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
}
.back-link:hover {
  color: #0066ff;
}
.back-link i { margin-right: 0.5rem; }

/* Responsive repos */
@media (max-width: 768px) {
  .repos-grid {
    grid-template-columns: 1fr;
  }
  .tech-tag, .tech-badge {
    font-size: 1rem;
  }
  .project-meta, .exp-meta {
    font-size: 1.1rem;
  }
}

/* ========================================= */
/* TEXT & BRAND COLORS                       */
/* ========================================= */

/* Theme Toggle Button */
.theme-btn {
  background: transparent;
  border: none;
  font-size: 2.2rem;
  color: #02094b;
  cursor: pointer;
  margin-left: 1.5rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.theme-btn:hover {
  color: #0066ff;
  transform: rotate(15deg) scale(1.1);
}

/* ========================================= */
/* DARK MODE OVERRIDES                       */
/* ========================================= */

body.dark-mode {
  background-color: #0d0f1a !important; /* Midnight blue-black */
  color: #e2e8f0 !important;
}

body.dark-mode h1, 
body.dark-mode h2, 
body.dark-mode h3, 
body.dark-mode h4,
body.dark-mode .heading {
  color: #ffffff !important;
}

/* Navbar */
body.dark-mode header {
  background: rgba(13, 15, 26, 0.85) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}
body.dark-mode #menu {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}
body.dark-mode #menu:hover {
  color: #0066ff !important;
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: #0066ff !important;
}
body.dark-mode header .logo,
body.dark-mode header .navbar ul li a,
body.dark-mode .theme-btn,
body.dark-mode #menu {
  color: #e2e8f0 !important;
}
body.dark-mode header .navbar ul li a:hover,
body.dark-mode header .navbar ul li a.active,
body.dark-mode header .logo:hover,
body.dark-mode .theme-btn:hover,
body.dark-mode #menu:hover {
  color: #0066ff !important;
}

/* Global Content wrappers */
body.dark-mode .content p, 
body.dark-mode .desc p {
  color: #a0aec0 !important;
}

/* Hero Section */
body.dark-mode .hero-img-wrapper::before {
  opacity: 0.3 !important;
}

/* About Section */
body.dark-mode .about { background-color: #080912 !important; }
body.dark-mode .about-stat-card {
  background: #111424 !important;
  border-color: #1a1e35 !important;
}
body.dark-mode .about-stat-card strong,
body.dark-mode .about .content p strong { color: #ffffff !important; }
body.dark-mode .about-stat-card span { color: #a0aec0 !important; }
body.dark-mode .about-contact-inline a,
body.dark-mode .about-contact-inline span { color: #cbd5e1 !important; }

/* Skills Section */
body.dark-mode .skills { background-color: #0d0f1a !important; }
body.dark-mode .skills .skill-card {
  background: #111424 !important;
  border-color: #1a1e35 !important;
}
body.dark-mode .skills .skill-card-title { color: #ffffff !important; }
body.dark-mode .skills .skill-chip-name { color: #cbd5e1 !important; }
body.dark-mode .skills .skill-chips { 
  --chip-bg: #181d33 !important; 
  --chip-border: #272d4c !important; 
}
body.dark-mode .skills .chip-expand-btn {
  color: #a0aec0 !important;
  background: #181d33 !important;
  border-color: #272d4c !important;
}

/* Global Tech Tags/Badges (Work & Experience) */
body.dark-mode .tech-tag,
body.dark-mode .tech-badge {
  background: #181d33 !important; 
  color: #cbd5e1 !important; 
  border: 1px solid #272d4c !important; 
}

/* Education Section */
body.dark-mode .education { background-color: #080912 !important; }
body.dark-mode .education-card { 
  background: #111424 !important; 
  border-color: #1a1e35 !important; 
}
body.dark-mode .education-card .content h3 { color: #ffffff !important; }
body.dark-mode .education-card .content p { color: #a0aec0 !important; }
body.dark-mode .education-card .content .year {
  background: #181d33 !important;
  color: #cbd5e1 !important;
  border-color: #272d4c !important;
}

/* Work/Projects Section */
body.dark-mode .work { background-color: #0d0f1a !important; }
body.dark-mode .work .box { 
  background: #111424 !important; 
  border-color: #1a1e35 !important; 
}
body.dark-mode .work .box .image-wrapper { background: #080912 !important; }
body.dark-mode .work .box .content h3 { color: #ffffff !important; }
body.dark-mode .work .box .content .desc p { color: #a0aec0 !important; }
body.dark-mode .work .box .btns .btn { background: #1a1e35 !important; color: #ffffff !important; border: none !important; }
body.dark-mode .work .box .btns .btn:hover { background: #0066ff !important; }
body.dark-mode .work .box .btns .btn-detail { background: transparent !important; color: #ffffff !important; border: 1px solid #ffffff !important; }
body.dark-mode .work .box .btns .btn-detail:hover { background: #ffffff !important; color: #111424 !important; }

/* GitHub Repos Section */
body.dark-mode .repos { background-color: #080912 !important; }
body.dark-mode .repo-card { 
  background: #111424 !important; 
  border-color: #1a1e35 !important; 
}
body.dark-mode .repo-name,
body.dark-mode .repo-header > i { color: #ffffff !important; }
body.dark-mode .repo-desc { color: #a0aec0 !important; }
body.dark-mode .repo-footer { border-top-color: #1a1e35 !important; }

/* Experience Section */
body.dark-mode .experience { background-color: #0d0f1a !important; }
body.dark-mode .experience .content { 
  background-color: #111424 !important; 
  border-color: #1a1e35 !important; 
}
body.dark-mode .experience .content .tag h2 { color: #ffffff !important; }
body.dark-mode .experience .content .tag { border-bottom-color: #1a1e35 !important; }
body.dark-mode .experience .content .desc ul { border-top-color: #1a1e35 !important; }
body.dark-mode .experience .content .desc ul li { color: #cbd5e1 !important; }
body.dark-mode .experience .left::before { border-color: transparent transparent transparent #111424 !important; }
body.dark-mode .experience .right::before { border-color: transparent #111424 transparent transparent !important; }
body.dark-mode .experience .container::after { background-color: #0d0f1a !important; }

/* Tiered Experience Dark Mode Fix */
body.dark-mode .tiered-role {
  background: #181d33 !important;
  border-color: #272d4c !important;
}
body.dark-mode .role-summary {
  background: #111424 !important;
}
body.dark-mode .role-summary:hover {
  background: #181d33 !important;
}
body.dark-mode .role-title {
  color: #ffffff !important;
}
body.dark-mode .role-badge {
  color: #a0aec0 !important;
}
body.dark-mode .role-body {
  background: #181d33 !important;
  border-top-color: #272d4c !important;
}
body.dark-mode .role-body ul li {
  color: #cbd5e1 !important;
}
body.dark-mode .total-period {
  background-color: rgba(66, 153, 225, 0.15) !important;
  color: #63b3ed !important;
}
body.dark-mode .tiered-timeline-container {
  border-left-color: #2d3748 !important;
}

/* Certifications Section */
body.dark-mode .certifications { background-color: #080912 !important; }
body.dark-mode .certifications .box { 
  background: #111424 !important; 
  border-color: #1a1e35 !important; 
}
body.dark-mode .certifications .box .content h3 { color: #ffffff !important; }
body.dark-mode .certifications .box .content .date { color: #a0aec0 !important; }
body.dark-mode .certifications .box .content .credential-id { 
  background: #181d33 !important; 
  border-color: #272d4c !important; 
  color: #cbd5e1 !important; 
}

/* Contact Section */
body.dark-mode .contact { background-color: #0d0f1a !important; }

body.dark-mode .contact-container {
  background: #111424 !important; 
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3) !important;
}

body.dark-mode .contact-info {
  background: #080912 !important;
}

body.dark-mode .contact-form-container {
  background: #111424 !important;
}

body.dark-mode .input-box input, 
body.dark-mode .input-box textarea {
  color: #e2e8f0 !important;
  border-bottom: 2px solid #2a2d40 !important;
}

body.dark-mode .input-box label {
  color: #6a7287 !important;
}

body.dark-mode .contact-info .info-item address {
  color: #ffffff !important;
  font-style: normal;
}

/* Project Detail View (Dark Mode) */
body.dark-mode .project-detail-view { background: #0d0f1a !important; }
body.dark-mode .project-detail-wrapper {
  background: #111424 !important;
  border-color: #1a1e35 !important;
}
body.dark-mode .detail-title { color: #ffffff !important; }
body.dark-mode .detail-badges { border-bottom-color: #1a1e35 !important; }
body.dark-mode .meta-badge {
  background: #181d33 !important;
  color: #cbd5e1 !important;
}
body.dark-mode .detail-section h3 { color: #ffffff !important; }
body.dark-mode .detail-desc { color: #a0aec0 !important; }
body.dark-mode .back-link { color: #a0aec0 !important; }
body.dark-mode .back-link:hover { color: #0066ff !important; }

/* Footer defaults to dark anyway, just ensuring blend */
body.dark-mode .footer { background: #04050b !important; }

/* ================================================
   AWARDS & HONORS SECTION
   ================================================ */
.awards {
  background: linear-gradient(135deg, #02094b 0%, #0e1560 100%);
  position: relative;
  overflow: hidden;
}
.awards::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,102,255,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.awards::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -80px;
  width: 350px; height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(102,126,234,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.awards .heading {
  color: #fff;
}
.awards .heading span {
  color: #0066ff;
}
.awards-subtitle {
  text-align: center;
  color: rgba(255,255,255,0.55);
  font-size: 1.55rem;
  margin: 1rem 0 4rem;
}
.awards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2.5rem;
  position: relative;
  z-index: 1;
}
.award-card {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-left: 4px solid var(--award-color, #0066ff);
  border-radius: 18px;
  padding: 2.5rem 2.8rem;
  backdrop-filter: blur(8px);
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}
.award-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, transparent 60%);
  border-radius: 18px;
  pointer-events: none;
}
.award-card:hover {
  transform: translateY(-6px);
  border-color: var(--award-color, #0066ff);
  background: rgba(255,255,255,0.09);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255,255,255,0.08);
}
.award-icon-wrap {
  flex-shrink: 0;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--award-color, #0066ff), rgba(255,255,255,0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  transition: transform 0.35s ease;
}
.award-card:hover .award-icon-wrap {
  transform: rotate(10deg) scale(1.1);
}
.award-icon {
  font-size: 2.2rem;
  color: #fff;
}
.award-content {
  flex: 1;
}
.award-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 2rem;
  margin-bottom: 1rem;
}
.award-issuer,
.award-date {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.3rem;
  color: rgba(255,255,255,0.55);
  font-weight: 600;
}
.award-issuer i,
.award-date i {
  color: var(--award-color, #0066ff);
  font-size: 1.15rem;
}
.award-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1rem;
  line-height: 1.3;
}
.award-desc {
  font-size: 1.4rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.65);
}

@media (max-width: 768px) {
  .awards-grid {
    grid-template-columns: 1fr;
  }
  .award-card {
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem 2.2rem;
  }
}

/* Dark mode — section already dark by default, no override needed */
body.dark-mode .awards {
  background: linear-gradient(135deg, #010620 0%, #080e40 100%);
}
/* ================================================ */
/* ================================================ */
/* DARK MODE OVERRIDES FOR CARDS                    */
/* ================================================ */

body.dark-mode .work .box,
body.dark-mode .experience .content,
body.dark-mode .education-card,
body.dark-mode .certifications .box {
  background: #0a1128 !important; /* Deep Navy */
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
}

body.dark-mode .work .box .content,
body.dark-mode .experience .content .desc,
body.dark-mode .education-card .content,
body.dark-mode .certifications .box .content {
  background: #0a1128 !important;
}

body.dark-mode .work .box .content .title-wrap h3,
body.dark-mode .experience .content .tag h2,
body.dark-mode .education-card .content h3,
body.dark-mode .certifications .box .content h3 {
  color: #fff !important;
}

body.dark-mode .work .box .content .desc p,
body.dark-mode .experience .content .desc ul li,
body.dark-mode .education-card .content p,
body.dark-mode .certifications .box .content .date {
  color: rgba(255, 255, 255, 0.7) !important;
}

body.dark-mode .work .box .image-wrapper {
  background: #02094b !important;
}

body.dark-mode .education-card .image {
  background: #02094b !important;
}

body.dark-mode .about-stat-card {
  background: #0a1128 !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

body.dark-mode .about-stat-card strong {
  color: #fff !important;
}

body.dark-mode .about-stat-card span {
  color: rgba(255, 255, 255, 0.7) !important;
}

body.dark-mode .work .box .content .title-wrap {
  border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}

body.dark-mode .work .box .btns .btn-disabled {
  background: rgba(255, 255, 255, 0.08) !important;
  color: rgba(255, 255, 255, 0.35) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

body.dark-mode .work .box .btns .btn-detail {
  border: 1px solid #0066ff !important;
  color: #0066ff !important;
}

body.dark-mode .work .box .btns .btn-detail:hover {
  background: #0066ff !important;
  color: #fff !important;
}

/* ================================================ */

/* ================================================ */
/* DARK MODE FOR PROJECT DETAIL VIEW                */
/* ================================================ */

body.dark-mode .project-detail-view {
  background: #010620 !important;
}

body.dark-mode .detail-title {
  color: #fff !important;
}

body.dark-mode .detail-section h3 {
  color: #0066ff !important;
}

body.dark-mode .detail-desc {
  color: rgba(255, 255, 255, 0.7) !important;
}

body.dark-mode .meta-badge {
  background: rgba(255, 255, 255, 0.05) !important;
  color: rgba(255, 255, 255, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

body.dark-mode .back-link {
  color: #0066ff !important;
}

body.dark-mode .back-link:hover {
  color: #fff !important;
}

/* ================================================ */

/* ================================================ */
/* PROJECT DETAIL TOP NAV                           */
/* ================================================ */

.detail-nav-top {
  margin-bottom: 3rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 2rem;
}

.back-btn-top {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 2rem !important;
  font-size: 1.4rem !important;
  border-radius: 50px !important;
  border: 1.5px solid #0066ff !important;
  color: #0066ff !important;
  background: transparent !important;
  transition: all 0.3s ease !important;
}

.back-btn-top:hover {
  background: #0066ff !important;
  color: #fff !important;
  transform: translateX(-5px);
  box-shadow: 0 8px 20px rgba(0, 102, 255, 0.2);
}

body.dark-mode .back-btn-top {
  border-color: rgba(255, 255, 255, 0.2) !important;
  color: rgba(255, 255, 255, 0.7) !important;
}

body.dark-mode .back-btn-top:hover {
  background: #0066ff !important;
  border-color: #0066ff !important;
  color: #fff !important;
}

/* ================================================ */

/* ================================================ */
/* EXPERIENCE TABS LAYOUT                           */
/* ================================================ */

.exp-tabs-layout {
  display: flex;
  gap: 4rem;
  margin-top: 3rem;
  min-height: 400px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 20px;
  padding: 1rem;
}

.exp-tabs-sidebar {
  display: flex;
  flex-direction: column;
  position: relative;
  min-width: 200px;
  border-left: 2px solid rgba(0, 102, 255, 0.1);
}

.exp-tab {
  background: transparent;
  border: none;
  padding: 1.5rem 2rem;
  text-align: left;
  font-size: 1.5rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  position: relative;
  outline: none;
}

.exp-tab:hover {
  color: #0066ff;
  background: rgba(0, 102, 255, 0.05);
}

.exp-tab.active {
  color: #0066ff;
  background: rgba(0, 102, 255, 0.08);
}

.active-indicator {
  position: absolute;
  left: -2px;
  top: 0;
  width: 2px;
  height: 52px; /* Matches tab height approx */
  background: #0066ff;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 10px rgba(0, 102, 255, 0.5);
}

.exp-tabs-content {
  flex: 1;
  padding: 1rem 0;
}

.exp-panel {
  display: none;
  animation: fadeInTabs 0.5s ease forwards;
}

.exp-panel.active {
  display: block;
}

@keyframes fadeInTabs {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.exp-panel-header h3 {
  font-size: 2.4rem;
  color: #02094b;
  margin-bottom: 0.5rem;
}

.exp-total-period {
  font-size: 1.4rem;
  color: #0066ff;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.exp-meta-tabs {
  display: flex;
  gap: 2rem;
  margin-bottom: 2.5rem;
  font-size: 1.3rem;
  color: #64748b;
}

.exp-meta-tabs span {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.exp-role-group {
  margin-bottom: 3rem;
}

.role-header-tabs {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding-bottom: 0.8rem;
}

.role-header-tabs h4 {
  font-size: 1.8rem;
  color: #02094b;
}

.role-period-tabs {
  font-size: 1.3rem;
  background: rgba(0, 102, 255, 0.08);
  color: #0066ff;
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  font-weight: 600;
}

.exp-tasks-tabs {
  list-style: none;
}

.exp-tasks-tabs li {
  font-size: 1.5rem;
  line-height: 1.6;
  color: #334155;
  margin-bottom: 1.2rem;
  display: flex;
  gap: 1.2rem;
}

.exp-tasks-tabs li i {
  color: #0066ff;
  margin-top: 0.4rem;
  flex-shrink: 0;
}

.exp-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

/* Dark Mode Overrides for Tabs */
body.dark-mode .exp-panel-header h3,
body.dark-mode .role-header-tabs h4 {
  color: #fff !important;
}

body.dark-mode .exp-tasks-tabs li {
  color: rgba(255, 255, 255, 0.7) !important;
}

body.dark-mode .exp-tab {
  color: rgba(255, 255, 255, 0.5);
}

body.dark-mode .exp-tab.active {
  color: #0066ff;
  background: rgba(0, 102, 255, 0.15);
}

body.dark-mode .role-header-tabs {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
  .exp-tabs-layout {
    flex-direction: column;
    gap: 2rem;
  }
  .exp-tabs-sidebar {
    flex-direction: row;
    overflow-x: auto;
    border-left: none;
    border-bottom: 2px solid rgba(0, 102, 255, 0.1);
    padding-bottom: 0.5rem;
  }
  .exp-tab {
    white-space: nowrap;
    width: auto;
    padding: 1rem 2rem;
  }
  .active-indicator {
    display: none;
  }
}

/* ================================================ */

/* Override old experience styles to prevent clutter */
.experience .timeline::after,
.experience .container::after,
.experience .container::before {
  display: none !important;
}

/* Polish Experience Tabs */
.exp-tabs-layout {
  border: 1px solid rgba(0, 102, 255, 0.1);
  background: rgba(2, 9, 75, 0.2);
  backdrop-filter: blur(10px);
}

.exp-tabs-sidebar {
  border-left: 2px solid rgba(255, 255, 255, 0.05);
}

.exp-tab {
  padding: 1.8rem 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
  font-size: 1.4rem;
}

.exp-tab.active {
  background: rgba(0, 102, 255, 0.12) !important;
  color: #0066ff !important;
}

.exp-panel-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 2rem;
  margin-bottom: 2rem;
}

.exp-panel-header h3 {
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.role-header-tabs {
  border-bottom: none;
  margin-bottom: 0.5rem;
}

.role-header-tabs h4 {
  font-weight: 700;
  color: #0066ff;
}

.exp-tasks-tabs li {
  margin-bottom: 1rem;
}

/* Dark mode specific fine-tuning */
body.dark-mode .exp-tabs-layout {
  background: rgba(10, 17, 40, 0.6) !important;
  border-color: rgba(255, 255, 255, 0.05) !important;
}

body.dark-mode .exp-tab:hover {
  background: rgba(255, 255, 255, 0.03);
}

/* Fix for the blue vertical line if it persists */
.timeline::after {
    display: none !important;
}
