/* ===============================
   SCROLL PROGRESS BAR
=============================== */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, #00f0ff, #bd00ff);
  width: 0%;
  z-index: 9999;
  transition: width 0.1s ease-out;
  box-shadow: 0 0 10px #00f0ff;
}

@import url("https://fonts.googleapis.com/css2?family=Orbitron:wght@400..900&display=swap");

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", sans-serif;
}

/* BODY */
body {
  background: radial-gradient(circle at top, #020024, #050505 60%);
  background-size: 400% 400%;
  animation: gradientMove 12s ease infinite;
  color: white;
  overflow-x: hidden;

  /* FIX NAVBAR FIXED */
  padding-top: 80px;
}

@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* NAVBAR */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 18px 8%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(15px);
  background: rgba(0, 0, 0, 0.55);
  border-bottom: 1px solid rgba(0, 240, 255, 0.15);
  z-index: 100;
}

.logo {
  font-size: 24px;
  font-weight: bold;
}

.logo span {
  color: #00f0ff;
}

nav ul {
  display: flex;
  gap: 25px;
}

nav li {
  list-style: none;
}

nav a {
  color: white;
  text-decoration: none;
  position: relative;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: #00f0ff;
  transition: 0.3s;
}

nav a:hover::after {
  width: 100%;
}

/* HAMBURGER */
.menu-toggle {
  display: none;
  position: absolute;
  top: 22px;
  right: 8%;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 200;
}

.menu-toggle span {
  width: 28px;
  height: 3px;
  background: #00f0ff;
}

/* HERO */
.hero {
  min-height: calc(100vh - 80px); /* FIX */
  display: flex;
  justify-content: center;
  align-items: center;
}

.glass {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  padding: 60px;
  border-radius: 30px;
  text-align: center;
  box-shadow: 0 0 40px rgba(0, 255, 255, 0.3);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
  100% {
    transform: translateY(0);
  }
}

.glass span {
  color: #00f0ff;
}

.typing {
  color: #00f0ff;
  margin: 10px 0;
}

/* BUTTON */
.btn {
  padding: 12px 30px;
  background: #00f0ff;
  color: black;
  border-radius: 30px;
  margin: 10px;
  text-decoration: none;
  transition: 0.3s;
}

.btn:hover {
  box-shadow: 0 0 20px #00f0ff;
}

.outline {
  background: transparent;
  border: 1px solid #00f0ff;
  color: #00f0ff;
}

/* SECTION */
.section {
  padding: 120px 10% 100px;
  text-align: center;
}

.section-subtitle {
  color: rgba(255, 255, 255, 0.55);
  font-size: 15px;
  margin-top: -25px;
  margin-bottom: 45px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

body.light .section-subtitle {
  color: #555;
}

/* FIX ANCHOR OFFSET */
#about,
#skills,
#projects,
#contact,
#education,
#feedback {
  scroll-margin-top: 100px;
}

/* ===================================
   EDUCATION CAROUSEL (horizontal, mirip Projects)
=================================== */
.timeline {
  display: flex;
  gap: 25px;
  align-items: stretch;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 6px 4px 18px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  max-width: 100%;
}

.timeline::-webkit-scrollbar {
  display: none;
}

.timeline-item {
  flex: 0 0 auto;
  width: 300px;
  scroll-snap-align: start;
  text-align: left;
  display: flex;
  flex-direction: column;
}

.timeline-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #05050f;
  border: 2px solid #00f0ff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00f0ff;
  font-size: 15px;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.5);
  margin-bottom: 16px;
  flex-shrink: 0;
}

.timeline-content {
  flex: 1;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.06),
    rgba(0, 0, 0, 0.4)
  );
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 22px;
  backdrop-filter: blur(10px);
  transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.timeline-item:hover .timeline-content {
  transform: translateY(-8px);
  border-color: #00f0ff;
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.5),
    0 0 25px rgba(0, 240, 255, 0.4);
}

.timeline-year {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #00f0ff;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 20px;
  padding: 3px 12px;
  margin-bottom: 10px;
}

.timeline-content h3 {
  font-size: 17px;
  margin-bottom: 4px;
}

.timeline-content p {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.6);
}

body.light .timeline-content {
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(0, 0, 0, 0.08);
}

body.light .timeline-content p {
  color: #555;
}

body.light .timeline-icon {
  background: #f5f5f5;
}

@media (max-width: 640px) {
  .timeline-item {
    width: 82vw;
  }
}

/* ABOUT */
.about-container {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  background: rgba(255, 255, 255, 0.04);
  padding: 40px;
  border-radius: 25px;
  align-items: center;
}

.about-img img {
  width: 220px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #00f0ff;
}

.about-text p {
  color: #d4d4f5;
  line-height: 1.8;
  letter-spacing: 0.3px;
  font-size: 16px;
}

.about-text p strong {
  color: #00f0ff;
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.6);
}

/* Prodi & Univ dikasih warna beda (violet) biar kebeda dari nama (cyan) */
.about-text p strong.highlight-univ {
  color: #bd00ff;
  text-shadow: 0 0 8px rgba(189, 0, 255, 0.6);
}

/* ====================================
   NEW SKILLS SECTION (GLASS-GRID)
======================================= */

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 10px;
}

.skill-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 18px 24px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: white;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  cursor: default;
  position: relative;
  overflow: hidden;
  min-width: 190px;
}

.skill-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.skill-bar {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--skill-color);
  box-shadow: 0 0 8px var(--skill-color);
}

.skill-card small {
  font-weight: 500;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

body.light .skill-card small {
  color: #666;
}

/* Mengatur ukuran dan warna dasar ikon */
.skill-card i {
  font-size: 22px;
  transition:
    transform 0.3s ease,
    color 0.3s ease;
}

/* ====================================
   INTERACTIVE HOVER STATE
======================================= */

.skill-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.08);
  /* Memberikan efek border bercahaya sesuai warna brand teknologi */
  border-color: var(--skill-color);
  /* Efek pendaran glow halus di bawah kartu */
  box-shadow:
    0 10px 25px rgba(0, 0, 0, 0.3),
    0 0 15px var(--skill-color);
}

.skill-card:hover i {
  transform: scale(1.15) rotate(5deg);
}

/* Animasi khusus saat Light Mode aktif */
body.light .skill-card {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(0, 0, 0, 0.06);
  color: #111;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

body.light .skill-card:hover {
  background: white;
  border-color: var(--skill-color);
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.06),
    0 0 12px var(--skill-color);
}

/* Responsivitas untuk layar kecil */
@media (max-width: 600px) {
  .skills-grid {
    gap: 12px;
  }

  .skill-card {
    padding: 12px 20px;
    font-size: 14px;
    border-radius: 12px;
  }

  .skill-card i {
    font-size: 18px;
  }
}

/* PROJECTS */
.carousel-wrapper {
  display: flex;
  align-items: center;
  gap: 14px;
}

.projects {
  display: flex;
  gap: 25px;
  align-items: stretch;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 6px 4px 18px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.projects::-webkit-scrollbar {
  display: none;
}

.projects {
  cursor: grab;
}

.projects.dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

.project-card-wrapper {
  flex: 0 0 auto;
  width: 300px;
  scroll-snap-align: start;
}

.carousel-btn {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(5, 5, 15, 0.75);
  border: 1px solid rgba(0, 240, 255, 0.3);
  color: #00f0ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: all 0.25s ease;
}

.carousel-btn:hover {
  background: #00f0ff;
  color: #05050f;
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.5);
}

.carousel-btn:disabled {
  opacity: 0.3;
  cursor: default;
  box-shadow: none;
  background: rgba(5, 5, 15, 0.75);
  color: #00f0ff;
}

body.light .carousel-btn {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(0, 0, 0, 0.1);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.carousel-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.25s ease;
}

.carousel-dots .dot.active {
  width: 24px;
  border-radius: 4px;
  background: #00f0ff;
}

body.light .carousel-dots .dot {
  background: rgba(0, 0, 0, 0.15);
}

@media (max-width: 640px) {
  .carousel-btn {
    display: none;
  }

  .project-card-wrapper {
    width: 82vw;
  }
}

.card-link {
  display: flex;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.project-card-wrapper {
  position: relative;
}

.github-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(5, 5, 15, 0.75);
  border: 1px solid rgba(0, 240, 255, 0.3);
  color: #00f0ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  backdrop-filter: blur(6px);
  z-index: 6;
  text-decoration: none;
  transition: all 0.25s ease;
}

.github-badge:hover {
  background: #00f0ff;
  color: #05050f;
  transform: translateY(-2px);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.5);
}

body.light .github-badge {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(0, 0, 0, 0.1);
}

.card {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.06),
    rgba(0, 0, 0, 0.4)
  );
  backdrop-filter: blur(10px);
  transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transform-style: preserve-3d;
}

.card-link:hover .card {
  transform: translateY(-8px);
  border-color: var(--card-glow);
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.5),
    0 0 25px var(--card-glow);
}

.card-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  position: relative;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.card-thumb img {
  width: calc(100% - 16px);
  height: calc(100% - 16px);
  margin: 8px auto;
  object-fit: cover;
  display: block;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  transition: transform 0.4s ease;
}

.card-link:hover .card-thumb img {
  transform: scale(1.04);
}

.card-thumb::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 40%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.4), transparent);
  pointer-events: none;
}

.card-thumb-cta {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid var(--card-glow);
  color: var(--card-glow);
  font-size: 12px;
  opacity: 0;
  transform: translateY(-4px);
  transition: all 0.25s ease;
  z-index: 2;
}

.card-link:hover .card-thumb-cta {
  opacity: 1;
  transform: translateY(0);
}

.card-body {
  padding: 22px 22px 24px;
  text-align: left;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.card-desc {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
  margin-bottom: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.view-btn {
  font-size: 12px;
  color: var(--card-glow);
  font-weight: 600;
  margin-bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.3s ease;
}

.view-btn i {
  transition: transform 0.3s ease;
}

.card-link:hover .view-btn i {
  transform: translateX(4px);
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.tag {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
}

/* PARTICLES */
#particles {
  position: fixed;
  inset: 0;
  z-index: -1;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  nav ul {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .about-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* SCROLL ANIMATION */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.fade-up.show {
  opacity: 1;
  transform: translateY(0);
}

.stagger > * {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.stagger.show > * {
  opacity: 1;
  transform: translateY(0);
}

.stagger.show > *:nth-child(1) {
  transition-delay: 0.1s;
}
.stagger.show > *:nth-child(2) {
  transition-delay: 0.2s;
}
.stagger.show > *:nth-child(3) {
  transition-delay: 0.3s;
}
.stagger.show > *:nth-child(4) {
  transition-delay: 0.4s;
}
.stagger.show > *:nth-child(5) {
  transition-delay: 0.5s;
}

.section h2 {
  margin-bottom: 40px;
  font-size: 32px;
  letter-spacing: 1px;
}

.btn-group {
  margin-top: 25px;
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.contact-box {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

footer {
  text-align: center;
  padding: 30px 0;
  background: rgba(0, 0, 0, 0.4);
  border-top: 1px solid rgba(0, 240, 255, 0.15);
  margin-top: 80px;
  font-size: 14px;
  color: #aaa;
}

.fade-up.active {
  opacity: 1;
  transform: translateY(0);
}

.stagger.active > * {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 600px) {
  .glass {
    padding: 40px 25px;
  }
  .section {
    padding: 80px 8%;
  }
  .about-img img {
    margin: auto;
  }
}

/* ====================================
   CONTACT FINAL (MODERN GRID TATA LETAK)
======================================= */

.contact-final-box {
  display: flex;
  gap: 20px;
  align-items: stretch;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 6px 4px 18px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  max-width: 100%;
}

.contact-final-box::-webkit-scrollbar {
  display: none;
}

.contact-final-item {
  flex: 0 0 260px;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  border-radius: 20px;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.06),
    rgba(0, 0, 0, 0.4)
  );
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: white;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.contact-final-item i {
  font-size: 18px;
  color: #00f0ff;
  min-width: 24px;
  text-align: center;
}

.contact-final-item:hover {
  transform: translateY(-8px);
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.5),
    0 0 25px rgba(0, 240, 255, 0.4);
  background: rgba(0, 240, 255, 0.12);
  border-color: #00f0ff;
}

.contact-final-item span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

@media (max-width: 640px) {
  .contact-final-item {
    flex-basis: 82vw;
  }
}

.card-link .card {
  cursor: pointer;
}

html {
  font-size: 16px;
}

@media (max-width: 1200px) {
  html {
    font-size: 15px;
  }
}
@media (max-width: 992px) {
  html {
    font-size: 14px;
  }
}
@media (max-width: 768px) {
  html {
    font-size: 13px;
  }
}
@media (max-width: 480px) {
  html {
    font-size: 12px;
  }
}

@media (max-width: 768px) {
  nav ul {
    position: absolute;
    top: 80px;
    right: 8%;
    width: 200px;
    flex-direction: column;
    gap: 18px;
    background: rgba(0, 0, 0, 0.95);
    border-radius: 18px;
    padding: 20px;
    display: none;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
  }

  nav ul.active {
    display: flex;
  }
}

.hero .glass {
  max-width: 680px;
}

@media (max-width: 600px) {
  .hero .glass {
    padding: 35px 20px;
  }
}

@media (max-width: 768px) {
  .about-container {
    gap: 30px;
    padding: 30px 20px;
  }
}

@media (max-width: 400px) {
  .section h2 {
    font-size: 26px;
  }
  .card {
    padding: 0;
  }
}

/* DARK / LIGHT THEME */
body.light {
  background: #f5f5f5;
  color: #111;
}

body.light nav {
  background: rgba(255, 255, 255, 0.85);
  border-bottom-color: rgba(0, 240, 255, 0.2);
}

body.light .glass,
body.light .card,
body.light .contact-final-item {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(0, 0, 0, 0.05);
  color: #111;
}

body.light .card-desc {
  color: #444;
}

body.light .btn {
  background: #00f0ff;
  color: #000;
}

body.light .btn.outline {
  background: transparent;
  border-color: #00f0ff;
  color: #00f0ff;
}

body.light nav a,
body.light .skills span,
body.light .contact-final-item span {
  color: #111;
}

body.light .about-text p {
  color: #333;
}

body.light .about-text p strong {
  color: #0090a3;
  text-shadow: 0 0 4px rgba(0, 144, 163, 0.3);
}

body.light .futuristic-text {
  color: #0090a3;
  text-shadow:
    0 0 4px rgba(0, 144, 163, 0.4),
    0 0 10px rgba(0, 144, 163, 0.2);
}

body.light .org-card {
  background: rgba(255, 255, 255, 0.55);
}

body.light .org-card p {
  color: #333;
}

@media (max-width: 600px) {
  .org-card {
    padding: 20px;
  }
  .org-card h3 {
    font-size: 17px;
  }
  .org-card p {
    font-size: 14px;
  }
}

html {
  scroll-behavior: smooth;
}

section {
  scroll-margin-top: 90px;
}

@media (max-width: 768px) {
  .theme-toggle {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 9999;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.5);
    border: 1px solid #00e5ff;
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  #themeToggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(12px);
    border: 1px solid #00f0ff;
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.5);
  }
}

#themeToggle {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  border: 2px solid #00f0ff;
  color: #00f0ff;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

#themeToggle:hover {
  transform: scale(1.1);
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.6);
}

/* FORM */
.contact-form {
  max-width: 500px;
  margin: 30px auto 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 25px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
}

.contact-form input,
.contact-form textarea {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(0, 240, 255, 0.3);
  background: rgba(0, 0, 0, 0.4);
  color: white;
  outline: none;
}

.contact-form textarea {
  min-height: 110px;
}

.contact-form button {
  padding: 12px;
  border-radius: 25px;
  border: none;
  background: #00f0ff;
  color: black;
  font-weight: bold;
  cursor: pointer;
}

.contact-form button:hover {
  box-shadow: 0 0 15px #00f0ff;
}

body.light .contact-form {
  background: rgba(255, 255, 255, 0.8);
}

body.light .contact-form input,
body.light .contact-form textarea {
  background: white;
  color: black;
  border: 1px solid rgba(0, 0, 0, 0.15);
}

.fa-html5 {
  color: #e34f26;
}
.fa-css3-alt {
  color: #1572b6;
}
.fa-js {
  color: #f7df1e;
}
.fa-pencil-ruler {
  color: #4caf50;
}
.fa-mobile-alt {
  color: #ff5722;
}

/* HERO PILL BUTTONS */
.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(0, 240, 255, 0.25);
  color: white;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.15);
  transition: all 0.3s ease;
}

.btn-pill i {
  font-size: 12px;
  color: #00f0ff;
}

.btn-pill:hover {
  background: rgba(0, 240, 255, 0.12);
  box-shadow: 0 0 26px rgba(0, 240, 255, 0.35);
  transform: translateY(-2px);
}

.btn-pill-solid {
  background: linear-gradient(135deg, #00f0ff, #6a5cff);
  color: #05050f;
  border: none;
  cursor: pointer;
}

.btn-pill-solid i {
  color: #05050f;
}

.btn-pill-solid:hover {
  background: linear-gradient(135deg, #33f5ff, #8a7dff);
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.45);
}

/* HERO SOCIAL ROW */
.hero-social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-top: 22px;
}

.hero-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(0, 240, 255, 0.2);
  color: #00f0ff;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.hero-social a:hover {
  background: rgba(0, 240, 255, 0.15);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.4);
  transform: translateY(-3px);
}

.hero-social .netlify-icon {
  width: 1em;
  height: 1em;
  vertical-align: middle;
  filter: brightness(0) saturate(100%) invert(72%) sepia(56%) saturate(1000%)
    hue-rotate(140deg) brightness(100%) contrast(100%);
}

/* REDUPKAN HOVER GLOW DI LIGHT MODE */
body.light .card-link:hover .card {
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.08),
    0 0 15px var(--card-glow);
  border-color: var(--card-glow);
}

body.light .contact-final-item:hover {
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.08),
    0 0 15px rgba(0, 240, 255, 0.3);
  background: rgba(0, 240, 255, 0.08);
  border-color: #00f0ff;
}

.futuristic-text {
  font-family: "Orbitron", sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #00f0ff;
  text-shadow:
    0 0 5px #00f0ff,
    0 0 10px #00f0ff,
    0 0 20px #00f0ff,
    0 0 40px #00f0ff;
}

/* --- Global Styles untuk Section Prestasi --- */
.achievements-section {
  background: transparent; /* Nyatu dengan background utama body */
  color: #fff;
  font-family: "Poppins", sans-serif; /* Pastikan font ini di-import */
  padding: 80px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Tambahkan efek partikel bintang sederhana dengan pseudo-element */
.achievements-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(white, rgba(255, 255, 255, 0.2) 2px, transparent 3px),
    radial-gradient(white, rgba(255, 255, 255, 0.15) 1px, transparent 2px),
    radial-gradient(white, rgba(255, 255, 255, 0.1) 2px, transparent 3px);
  background-size:
    550px 550px,
    350px 350px,
    250px 250px;
  background-position:
    0 0,
    40px 60px,
    130px 270px;
  z-index: 0;
  opacity: 0.6;
}

/* --- Gaya Judul Neon --- */
.section-title-neon {
  font-size: 3rem;
  font-weight: 800;
  color: #00ffff; /* Warna Cyan Dasar */
  text-transform: uppercase;
  letter-spacing: 4px;
  margin-bottom: 60px;
  position: relative;
  z-index: 1;
  text-shadow:
    0 0 10px #00ffff,
    0 0 20px #00ffff,
    0 0 40px #00ffff,
    0 0 80px #00ffff;
  animation: pulsateNeon 2.5s infinite alternate;
}

@keyframes pulsateNeon {
  0% {
    text-shadow:
      0 0 10px #00ffff,
      0 0 20px #00ffff,
      0 0 40px #00ffff,
      0 0 80px #00ffff;
  }
  100% {
    text-shadow:
      0 0 5px #00ffff,
      0 0 10px #00ffff,
      0 0 20px #00ffff,
      0 0 40px #00ffff;
    opacity: 0.8;
  }
}

/* --- Container Kartu --- */
.achievements-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* --- Gaya Kartu (Glassmorphism + Neon Border) --- */
.achievement-card {
  background: rgba(255, 255, 255, 0.05); /* Transparansi dasar */
  backdrop-filter: blur(10px); /* Efek Blur Kaca */
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 255, 255, 0.3); /* Border Cyan Halus */
  border-radius: 15px;
  padding: 30px;
  display: flex;
  align-items: center;
  gap: 30px;
  text-align: left;
  transition: all 0.4s ease;
  position: relative;
}

.achievement-card:hover {
  transform: translateY(-5px) scale(1.02);
  background: rgba(255, 255, 255, 0.1);
  border-color: #00ffff; /* Border Cyan Terang saat Hover */
  box-shadow: 0 10px 30px rgba(0, 255, 255, 0.4); /* Glow saat Hover */
}

/* Efek Glow Cyan Tambahan di Pojok Kartu saat Hover */
.achievement-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0);
  transition: box-shadow 0.4s ease;
  z-index: -1;
}

.achievement-card:hover::after {
  box-shadow: 0 0 20px #00ffff;
}

/* --- Container Ikon --- */
.card-icon-container {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Background Cahaya di belakang ikon */
.card-icon-container::before {
  content: "";
  position: absolute;
  width: 120%;
  height: 120%;
  background: radial-gradient(
    circle,
    rgba(0, 255, 255, 0.5) 0%,
    transparent 70%
  );
  border-radius: 50%;
  z-index: 0;
  filter: blur(10px);
}

.card-icon-3d {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  position: relative;
  z-index: 1;
  transform: translateZ(20px); /* Efek sedikit pop-out */
}

/* --- Konten Teks Kartu --- */
.card-content {
  flex-grow: 1;
}

.card-content h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 10px 0;
  color: #fff;
  line-height: 1.3;
}

.card-content p {
  font-size: 1rem;
  font-weight: 400;
  margin: 0;
  color: #ddd; /* Warna abu-abu terang untuk sub-teks */
}

/* --- Media Queries untuk Responsivitas (Mobile) --- */
@media (max-width: 768px) {
  .section-title-neon {
    font-size: 2.2rem;
  }

  .achievement-card {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }

  .card-icon-container {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
  }

  .card-content h3 {
    font-size: 1.2rem;
  }
}

/* Slider Track Prestasi */
.achievements-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 1rem 0;
  scrollbar-width: none; /* Sembunyikan scrollbar Firefox */
}

.achievements-track::-webkit-scrollbar {
  display: none; /* Sembunyikan scrollbar Chrome/Safari */
}

/* Setiap Kartu di Slider */
.achievements-track .achievement-card {
  flex: 0 0 320px; /* Ukuran lebar kartu horizontal */
  scroll-snap-align: start;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.05);
  transition:
    transform 0.3s ease,
    border-color 0.3s ease;
}

.achievements-track .achievement-card:hover {
  transform: translateY(-5px);
  border-color: #00f0ff;
}

/* ===================================================
   SLIDE ANIMATION STYLES
=================================================== */

/* 1. Slide dari Kiri untuk Timeline Ganjil */
.timeline-item {
  opacity: 0 !important;
  transform: translateX(-60px) !important;
  transition:
    opacity 0.7s ease,
    transform 0.7s ease !important;
}

/* Slide dari Kanan untuk Timeline Genap */
.timeline-item:nth-child(even) {
  transform: translateX(60px) !important;
}

.timeline-item.visible {
  opacity: 1 !important;
  transform: translateX(0) !important;
}

/* 2. Slide Up untuk Contact Items */
.contact-final-item {
  opacity: 0 !important;
  transform: translateY(40px) !important;
  transition:
    opacity 0.6s ease,
    transform 0.6s ease !important;
}

.contact-final-item.visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* 3. Slide Up + Scale untuk Achievement Cards */
.achievement-card {
  opacity: 0 !important;
  transform: translateY(50px) scale(0.95) !important;
  transition:
    opacity 0.6s ease,
    transform 0.6s ease !important;
}

.achievement-card.visible {
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
}

/* ===================================================
   STAGGERED DELAYS (Kemunculan Bergantian)
=================================================== */

/* Delay Timeline */
.timeline-item:nth-child(1) {
  transition-delay: 0s;
}
.timeline-item:nth-child(2) {
  transition-delay: 0.15s;
}
.timeline-item:nth-child(3) {
  transition-delay: 0.3s;
}
.timeline-item:nth-child(4) {
  transition-delay: 0.45s;
}

/* Delay Contact Items */
.contact-final-item:nth-child(1) {
  transition-delay: 0s;
}
.contact-final-item:nth-child(2) {
  transition-delay: 0.1s;
}
.contact-final-item:nth-child(3) {
  transition-delay: 0.2s;
}
.contact-final-item:nth-child(4) {
  transition-delay: 0.3s;
}
.contact-final-item:nth-child(5) {
  transition-delay: 0.4s;
}

/* Delay Achievement Cards */
.achievement-card:nth-child(1) {
  transition-delay: 0s;
}
.achievement-card:nth-child(2) {
  transition-delay: 0.15s;
}
.achievement-card:nth-child(3) {
  transition-delay: 0.3s;
}
.achievement-card:nth-child(4) {
  transition-delay: 0.45s;
}

/* ===================================================
   MOBILE RESPONSIVE FIX (iOS & Android)
=================================================== */

/* 1. Cegah horizontal scroll/overflow di semua device */
html,
body {
  overflow-x: hidden;
  max-width: 100%;
}

/* 2. Momentum scroll halus buat carousel di iOS Safari */
.projects,
.timeline,
.contact-final-box,
.achievements-track {
  -webkit-overflow-scrolling: touch;
}

/* 3. Safe-area: hindari elemen fixed ketutup notch/home-indicator */
nav {
  padding-top: calc(18px + env(safe-area-inset-top));
}

#themeToggle {
  bottom: calc(20px + env(safe-area-inset-bottom));
  right: calc(20px + env(safe-area-inset-right));
}

#scroll-progress {
  top: env(safe-area-inset-top);
}

/* 4. Hamburger jadi animasi silang (X) saat menu dibuka */
.menu-toggle span {
  transition: all 0.3s ease;
}

.menu-toggle.open span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* 5. Tap target lebih nyaman disentuh jari (min 44px area) */
.carousel-dots .dot {
  padding: 10px 6px;
  background-clip: content-box;
}

nav ul li a,
.contact-final-item,
.btn-pill {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* 6. Fluid typography, biar teks nyaman di layar kecil-besar tanpa patah aneh */
.glass h1 {
  font-size: clamp(22px, 6vw, 40px);
  line-height: 1.25;
}

.glass h2 {
  font-size: clamp(15px, 4vw, 20px);
}

.section h2,
.futuristic-text {
  font-size: clamp(22px, 5vw, 32px) !important;
}

.section-title-neon {
  font-size: clamp(1.6rem, 7vw, 3rem) !important;
}

/* 7. Penyesuaian ekstra untuk layar sangat kecil (iPhone SE dkk, ~375px) */
@media (max-width: 380px) {
  .hero .glass {
    padding: 28px 16px;
  }

  .btn-group {
    gap: 10px;
  }

  .btn-pill {
    padding: 10px 16px;
    font-size: 12.5px;
  }

  .hero-social {
    gap: 12px;
  }

  .hero-social a {
    width: 38px;
    height: 38px;
    font-size: 14px;
  }

  .section {
    padding: 60px 6% 80px;
  }

  .timeline-item,
  .project-card-wrapper,
  .contact-final-item {
    width: 78vw;
  }
}

/* 8. Judul/teks panjang jangan sampai bikin card melebar/overflow */
.card-title,
.timeline-content h3,
.card-content h3 {
  overflow-wrap: break-word;
  word-break: break-word;
}

/* 9. Gambar responsif, tidak pernah melebihi lebar container-nya */
img {
  max-width: 100%;
  height: auto;
}
/* ===================================================
   TOAST NOTIFICATION (pengganti alert() bawaan browser)
=================================================== */
.toast-notif {
  position: fixed;
  bottom: 30px;
  left: 50%;
  /* sembunyikan: geser ke bawah layar + transparan */
  transform: translate(-50%, 120%);
  opacity: 0;
  pointer-events: none;

  display: flex;
  align-items: center;
  gap: 12px;
  max-width: min(420px, 88vw);
  background: rgba(10, 10, 20, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 14px;
  padding: 14px 22px;
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
  box-shadow: 0 8px 30px rgba(0, 240, 255, 0.15);
  z-index: 9999;
  transition:
    transform 0.4s cubic-bezier(0.25, 1, 0.5, 1),
    opacity 0.4s ease;
}

/* class ini yang ditambahin JS pas mau muncul */
.toast-notif.show {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}

/* varian warna beda tergantung jenis pesan */
.toast-notif.success {
  border-color: rgba(74, 222, 156, 0.4);
}
.toast-notif.error {
  border-color: rgba(244, 113, 92, 0.4);
}

.toast-icon {
  font-size: 18px;
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .toast-notif {
    bottom: 20px;
    padding: 12px 18px;
    font-size: 13px;
  }
}

/* ===================================================
   TYPEWRITER CURSOR (About Me)
=================================================== */
.typing-cursor::after {
  content: "|";
  display: inline-block;
  margin-left: 2px;
  color: #00f0ff;
  animation: blink-cursor 0.8s steps(1) infinite;
}

@keyframes blink-cursor {
  50% {
    opacity: 0;
  }
}

.typing-cursor {
  position: relative;
}
.typing-cursor::after {
  content: "|";
  position: absolute;
  right: -10px;
  color: #00f0ff;
  animation: blink 0.7s infinite;
}

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