:root {
  --primary-color: #00f2fe;
  --secondary-color: #4facfe;
  --dark-bg-1: #080c10;
  --dark-bg-2: #0d1218;
  --text-light: #f0f4f8;
  --text-secondary: #a0aec0;
  --border-color: rgba(255, 255, 255, 0.08);
}

body {
  font-family: "Outfit", sans-serif;
  background-color: var(--dark-bg-1);
  color: var(--text-light);
  scroll-behavior: smooth;
  cursor: none; /* Hide default cursor */
}

/* Custom Cursor */
.custom-cursor {
  position: fixed;
  top: 0; left: 0;
  width: 8px; height: 8px;
  background-color: var(--primary-color);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.1s ease, width 0.3s, height 0.3s, background-color 0.3s;
}
.custom-cursor-follower {
  position: fixed;
  top: 0; left: 0;
  width: 30px; height: 30px;
  border: 1px solid rgba(0, 242, 254, 0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), width 0.3s, height 0.3s, border-color 0.3s;
}
.cursor-hover {
  width: 0; height: 0;
}
.follower-hover {
  width: 60px; height: 60px;
  background-color: rgba(0, 242, 254, 0.1);
  border-color: var(--primary-color);
}


/* Padding atas untuk konten di bawah navbar fixed */
#hero {
  padding-top: 70px;
}

/* Efek Navbar Transparan ke Solid */
.navbar {
  background-color: transparent;
  transition: background-color 0.4s ease-in-out;
}
.navbar.navbar-scrolled {
  background-color: rgba(30, 30, 30, 0.85);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
.nav-link {
  transition: color 0.3s;
}
.nav-link:hover {
  color: var(--primary-color) !important;
}

.hero {
  background: radial-gradient(circle at center, #0d1218 0%, #080c10 100%);
  height: 100vh;
  display: flex;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}
#particles-js {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 1;
}
#typed-text {
  min-height: 2.2rem;
}

.section-padding {
  padding: 100px 0;
}
#about,
#skills,
#experience {
  background-color: var(--dark-bg-2);
}

h2.section-title {
  font-weight: 700;
  margin-bottom: 50px;
  position: relative;
}
h2.section-title::after {
  content: "";
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
  border-radius: 2px;
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
}

/* --- Tombol Kustom --- */
.btn-custom {
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  border: 2px solid transparent;
  padding: 10px 25px;
  font-weight: 500;
  color: white;
  border-radius: 50px;
  transition: all 0.3s ease-in-out;
}
.btn-custom:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(13, 110, 253, 0.3);
  color: white;
}
.btn-outline-custom {
  background-color: transparent;
  border: 2px solid white;
  padding: 10px 25px;
  font-weight: 500;
  color: white;
  border-radius: 50px;
  transition: all 0.3s ease-in-out;
}
.btn-outline-custom:hover {
  background-color: white;
  color: var(--dark-bg-1);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(255, 255, 255, 0.2);
}

/* --- Timeline --- */
.timeline {
  position: relative;
  padding-left: 4rem;
  border-left: 2px solid var(--border-color);
}
.timeline-item {
  position: relative;
  margin-bottom: 50px;
}
.timeline-item:last-child {
  margin-bottom: 0;
}
.timeline-dot {
  position: absolute;
  left: -4.5rem;
  top: 0.5rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--dark-bg-1);
  border: 3px solid var(--primary-color);
}
.timeline-date {
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 5px;
}
.timeline-content {
  background-color: var(--dark-bg-1);
  padding: 20px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}
.timeline-content h5 {
  font-weight: 700;
  margin-bottom: 10px;
}

/* --- Keahlian & Bento Grid --- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

@media (min-width: 992px) {
  .bento-skills {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto auto;
  }
  .bento-skill-large {
    grid-column: span 2;
    grid-row: span 2;
  }
  .bento-skill-wide {
    grid-column: span 2;
  }
}

.bento-card {
  background: rgba(16, 20, 24, 0.6);
  backdrop-filter: blur(12px);
  padding: 30px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s, border-color 0.4s;
  position: relative;
  overflow: hidden;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.bento-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at top right, rgba(0, 242, 254, 0.1), transparent 60%);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s;
}

.bento-card:hover::before {
  opacity: 1;
}

.bento-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 242, 254, 0.15);
  border-color: rgba(0, 242, 254, 0.5);
}

.bento-icon {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: rgba(0, 242, 254, 0.1);
  border-radius: 15px;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.2);
}
.bento-icon.large-icon {
  font-size: 3rem;
  width: 80px;
  height: 80px;
}

/* --- IDE Mockup --- */
.ide-mockup {
  background: #1e1e1e;
  border-radius: 12px;
  border: 1px solid #333;
  box-shadow: 0 25px 50px rgba(0,0,0,0.5);
  overflow: hidden;
  text-align: left;
  transform-style: preserve-3d;
}
.ide-header {
  background: #2d2d2d;
  padding: 10px 15px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #1e1e1e;
}
.ide-dots {
  display: flex;
  gap: 8px;
}
.ide-dots span {
  width: 12px; height: 12px;
  border-radius: 50%;
}
.ide-dots span:nth-child(1) { background: #ff5f56; }
.ide-dots span:nth-child(2) { background: #ffbd2e; }
.ide-dots span:nth-child(3) { background: #27c93f; }
.ide-title {
  color: #858585;
  font-size: 0.85rem;
  font-family: 'Fira Code', monospace;
  margin: 0 auto;
}
.ide-body {
  padding: 20px;
  font-family: 'Fira Code', monospace;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #d4d4d4;
  overflow-x: auto;
}
.ide-body pre {
  margin: 0;
}
.ide-body .language-python .keyword { color: #569cd6; }
.ide-body .language-python .string { color: #ce9178; }
.ide-body .language-python .function { color: #dcdcaa; }
.ide-cursor {
  animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* --- Kartu Proyek --- */
.card-project {
  background: rgba(16, 20, 24, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s, border-color 0.4s;
  overflow: hidden;
}
.card-project:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 242, 254, 0.15);
  border-color: var(--primary-color);
}
.card-project .img-wrapper {
  overflow: hidden;
  height: 220px;
  background-color: #343a40;
}
.card-project .card-img-top {
  height: 100%;
  width: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.card-project:hover .card-img-top {
  transform: scale(1.05);
}
.tech-tags .badge {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-light);
  font-weight: 400;
  padding: 0.4em 0.7em;
  margin-right: 5px;
  margin-bottom: 5px;
}

/* --- Footer & Kontak --- */
.footer {
  background-color: var(--dark-bg-1); /* Sama dengan skill card */
  padding: 80px 0 20px 0;
  border-top: 1px solid var(--border-color);
}
.form-control {
  background-color: var(--dark-bg-2);
  border: 1px solid var(--border-color);
  padding: 12px 15px;
  color: var(--text-light);
}
.form-control:focus {
  background-color: var(--dark-bg-2);
  color: var(--text-light);
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}
.social-icons a {
  font-size: 1.8rem;
  margin: 0 15px;
  color: var(--text-secondary);
  transition: color 0.3s, transform 0.3s;
}
.social-icons a:hover {
  color: var(--primary-color);
  transform: translateY(-5px);
}
.footer .copyright {
  margin-top: 30px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* --- Modal Proyek --- */
.modal-content {
  background-color: var(--dark-bg-2);
  border: 1px solid var(--border-color);
}
.modal-header,
.modal-footer {
  border-color: var(--border-color);
}

/* --- Tombol Back to Top --- */
#back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 99;
  display: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  padding: 0;
  font-size: 1.5rem;
  line-height: 50px;
  text-align: center;
}
