:root {
  --biru-gelap: #0a0f1e;
  --biru-neon: #3b82f6;
  --biru-glow: #60a5fa;
  --putih: #f8fafc;
  --hitam: #020617;
  --border-tebal: 3px solid var(--biru-glow);
  --shadow-neo: 8px 8px 0 rgba(59, 130, 246, 0.3);
  --shadow-neo-sm: 5px 5px 0 rgba(59, 130, 246, 0.25);
  --glass: rgba(255, 255, 255, 0.03);
  --transition-cepat: 0.25s cubic-bezier(0.23, 1, 0.32, 1);
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Outfit", "Space Grotesk", sans-serif;
  background: var(--hitam);
  background-image:
    radial-gradient(
      circle at 20% 20%,
      rgba(59, 130, 246, 0.08) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(59, 130, 246, 0.05) 0%,
      transparent 50%
    );
  color: var(--putih);
  overflow-x: hidden;
  text-align: center;
  margin: 0;
}

/* ========== NAVBAR ULTIMATE CYBER ========== */
.navbar {
  background: rgba(2, 6, 23, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 2px solid;
  border-image: linear-gradient(
      90deg,
      transparent 0%,
      var(--biru-glow) 30%,
      var(--biru-neon) 70%,
      transparent 100%
    )
    1;
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.25);
  text-align: left;
  animation: navbarPulse 3s infinite alternate;
}

@keyframes navbarPulse {
  0% {
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.25);
  }
  100% {
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.45);
  }
}

.navbar-toggler {
  border: 1px solid var(--biru-glow) !important;
  box-shadow: 0 0 10px rgba(96, 165, 250, 0.3) !important;
  background: rgba(15, 23, 42, 0.5) !important;
  transition: all 0.3s ease;
}

.navbar-toggler:hover, .navbar-toggler:focus {
  box-shadow: 0 0 15px rgba(96, 165, 250, 0.8) !important;
  outline: none;
}

.logo {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -1px;
  background: linear-gradient(135deg, #fff, var(--biru-glow), #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  padding: 0.4rem 0;
  text-transform: uppercase;
  transition: all 0.3s ease;
  position: relative;
}

.logo::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--biru-glow), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
  filter: blur(2px);
}

.logo:hover::after {
  transform: scaleX(1);
}

.logo:hover {
  filter: drop-shadow(0 0 15px var(--biru-neon));
}

.nav-link {
  font-weight: 700 !important;
  font-size: 1rem;
  color: var(--putih) !important;
  text-transform: uppercase;
  padding: 0.6rem 1.2rem !important;
  margin: 0 0.3rem;
  transition: all 0.3s ease;
  position: relative;
  letter-spacing: 2px;
  border: none !important;
  background: transparent;
}

.nav-link::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--biru-glow);
  transition: all 0.3s ease;
  box-shadow: 0 0 10px var(--biru-neon);
}

.nav-link:hover::before {
  width: 100%;
  left: 0;
}

.nav-link:hover {
  color: var(--biru-glow) !important;
  text-shadow:
    0 0 12px var(--biru-neon),
    0 0 24px var(--biru-neon);
  transform: translateY(-1px);
}

/* Container */
.custom-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  position: relative;
  z-index: 2;
}

/* ========== PARTICLES ========== */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.particle {
  position: absolute;
  background: var(--biru-glow);
  border-radius: 50%;
  opacity: 0.15;
  animation: drift 12s infinite alternate;
  filter: blur(2px);
  -webkit-filter:;
}

@keyframes drift {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0.1;
  }
  100% {
    transform: translate(30px, -40px) scale(1.8);
    opacity: 0.35;
  }
}

/* ========== HERO ========== */
.section-left {
  text-align: left;
  margin-bottom: 5rem;
}

.foto-hero-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  gap: 2.5rem;
  flex-wrap: wrap;
  width: 100%;
  max-width: 1100px;
}

.foto-container {
  flex: 0 0 320px;
  max-width: 320px;
  position: relative;
}

.foto-image-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
  filter: drop-shadow(0 0 18px rgba(59, 130, 246, 0.5));
  -webkit-filter:;
}

.foto-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  clip-path: polygon(0 10%, 10% 0, 100% 0, 100% 85%, 90% 100%, 0 100%);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  object-fit: contain;
}

.foto-image-wrapper img:hover {
  transform: scale(1.03) translateY(-8px);
  filter: drop-shadow(0 0 25px rgba(96, 165, 250, 0.6));
}

.floating-icons {
  position: absolute;
  top: -20px;
  left: -20px;
  width: calc(100% + 40px);
  height: calc(100% + 40px);
  z-index: 1;
  pointer-events: none;
}

.floating-icon {
  position: absolute;
  font-size: 2.8rem;
  color: var(--biru-glow);
  opacity: 0.35;
  animation: floatOrbit 10s infinite linear;
  filter: drop-shadow(0 0 12px var(--biru-neon));
}

.floating-icon:nth-child(1) {
  top: 5%;
  left: -10%;
  animation-duration: 9s;
}
.floating-icon:nth-child(2) {
  top: 25%;
  right: -12%;
  animation-duration: 11s;
}
.floating-icon:nth-child(3) {
  bottom: 15%;
  left: -8%;
  animation-duration: 13s;
}
.floating-icon:nth-child(4) {
  bottom: 25%;
  right: -14%;
  animation-duration: 8s;
}
.floating-icon:nth-child(5) {
  top: 45%;
  left: -20%;
  animation-duration: 12s;
}
.floating-icon:nth-child(6) {
  top: 65%;
  right: -18%;
  animation-duration: 14s;
}
.floating-icon:nth-child(7) {
  bottom: 8%;
  left: 18%;
  animation-duration: 10s;
}

@keyframes floatOrbit {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(-12px, -25px) rotate(90deg);
  }
  50% {
    transform: translate(-20px, 10px) rotate(180deg);
  }
  75% {
    transform: translate(10px, 20px) rotate(270deg);
  }
  100% {
    transform: translate(0, 0) rotate(360deg);
  }
}

.hero-content {
  flex: 1;
  text-align: left;
}

.hero-content h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.1;
  background: linear-gradient(135deg, #fff, var(--biru-glow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.7rem;
  filter: drop-shadow(0 0 8px rgba(96, 165, 250, 0.6));
}

.hero-tag {
  display: inline-block;
  background: rgba(59, 130, 246, 0.15);
  backdrop-filter: blur(12px);
  color: var(--biru-glow);
  font-weight: 800;
  padding: 0.6rem 1.8rem;
  border: 1px solid var(--biru-glow);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
  text-transform: uppercase;
  margin: 0.5rem 0 1.2rem;
  letter-spacing: 2px;
  position: relative;
}

.hero-tag::after {
  content: "|";
  animation: blink 1s infinite;
  margin-left: 5px;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-desc {
  font-weight: 500;
  font-size: 1.1rem;
  border-left: 3px solid var(--biru-glow);
  padding-left: 1.5rem;
  max-width: 500px;
  color: #cbd5e1;
}

/* ========== BUTTONS ========== */
.btn-cyber {
  display: inline-block;
  background: var(--biru-glow);
  color: var(--hitam);
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.8rem 2rem;
  text-decoration: none;
  letter-spacing: 1px;
  box-shadow: 0 0 15px rgba(96, 165, 250, 0.5);
  transition: all 0.3s ease;
  clip-path: polygon(10% 0, 100% 0, 100% 70%, 90% 100%, 0 100%, 0 30%);
}

.btn-cyber:hover {
  background: var(--putih);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.8);
  transform: translateY(-3px);
  color: var(--hitam);
}

.btn-cyber-outline {
  display: inline-block;
  background: transparent;
  color: var(--biru-glow);
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.8rem 2rem;
  text-decoration: none;
  letter-spacing: 1px;
  border: 2px solid var(--biru-glow);
  box-shadow: 0 0 10px rgba(96, 165, 250, 0.2) inset, 0 0 10px rgba(96, 165, 250, 0.2);
  transition: all 0.3s ease;
  clip-path: polygon(10% 0, 100% 0, 100% 70%, 90% 100%, 0 100%, 0 30%);
}

.btn-cyber-outline:hover {
  background: var(--biru-glow);
  color: var(--hitam);
  box-shadow: 0 0 25px rgba(96, 165, 250, 0.6);
  transform: translateY(-3px);
}

/* ========== SECTION HEADINGS ========== */
.section-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 5rem;
}

.section-heading {
  font-size: clamp(1.8rem, 4vw, 2.2rem);
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
  color: var(--putih);
  position: relative;
  letter-spacing: 2px;
}

.section-heading::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 4px;
  background: var(--biru-glow);
  box-shadow: 0 0 15px var(--biru-neon);
}

/* ========== ABOUT & EDUCATION BOXES ========== */
.box-neo {
  background: rgba(2, 6, 23, 0.7);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(59, 130, 246, 0.5);
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.15);
  transition: var(--transition-cepat);
}

.box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  cursor: pointer;
  background: rgba(15, 23, 42, 0.5);
  border-bottom: 1px solid rgba(59, 130, 246, 0.3);
}

.box-header:hover {
  background: rgba(59, 130, 246, 0.1);
}

.box-heading {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  font-weight: 800;
  margin: 0;
  color: var(--putih);
  letter-spacing: 1px;
}

.toggle-icon {
  font-size: 1.8rem;
  color: var(--biru-glow);
  transition: transform 0.4s;
}

.box-content {
  max-height: 0;
  overflow: hidden;
  padding: 0 2rem;
  transition:
    max-height 0.5s ease,
    padding 0.5s ease;
  background: rgba(0, 0, 0, 0.2);
  color: #cbd5e1;
  text-align: left;
}

.expandable-box.active .box-content {
  max-height: 2500px;
  padding: 2rem;
}

.expandable-box.active .toggle-icon {
  transform: rotate(180deg);
}

.edu-item {
  margin-bottom: 1.8rem;
}

.edu-title {
  font-weight: 800;
  font-size: 1.2rem;
  color: white;
}

.edu-year {
  display: inline-block;
  background: rgba(59, 130, 246, 0.25);
  backdrop-filter: blur(8px);
  color: var(--biru-glow);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.3rem 1.2rem;
  border: 1px solid var(--biru-glow);
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.3);
  margin: 0.6rem 0;
}

.edu-detail {
  list-style: none;
  padding-left: 0;
}

.edu-detail li {
  position: relative;
  padding-left: 1.8rem;
  margin-bottom: 0.5rem;
}

.edu-detail li::before {
  content: "▹";
  position: absolute;
  left: 0;
  color: var(--biru-glow);
  font-weight: bold;
}

/* ========== PROJECT CARDS ========== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.8rem;
  width: 100%;
  max-width: 950px;
  margin: 0 auto;
}

.project-card {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(59, 130, 246, 0.5);
  box-shadow: 0 0 25px rgba(59, 130, 246, 0.15);
  padding: 2rem 1.5rem;
  transition: var(--transition-cepat);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(59, 130, 246, 0.1) 0%,
    transparent 70%
  );
  opacity: 0;
  transition: 0.5s;
}

.project-card:hover::before {
  opacity: 1;
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: var(--biru-glow);
  box-shadow: 0 0 50px rgba(59, 130, 246, 0.5);
}

.project-card > i {
  font-size: 3.2rem;
  color: var(--biru-glow);
  margin-bottom: 1.2rem;
  filter: drop-shadow(0 0 10px var(--biru-neon));
}

.project-card h3 {
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: white;
}

.project-card p {
  color: #94a3b8;
  margin-bottom: 0;
}

.tech-badges {
  margin: 0.8rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.tech-badge {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: var(--biru-glow);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}

.project-actions {
  margin-top: 1.5rem;
}

.btn-cyber-small, .btn-cyber-outline-small {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  padding: 0.25rem 0.8rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-cyber-small {
  background: var(--biru-glow);
  color: var(--hitam);
  box-shadow: 0 0 10px rgba(96, 165, 250, 0.4);
}

.btn-cyber-small:hover {
  background: white;
  color: black;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
}

.btn-cyber-outline-small {
  background: transparent;
  color: var(--biru-glow);
  border: 1px solid var(--biru-glow);
}

.btn-cyber-outline-small:hover {
  background: var(--biru-glow);
  color: var(--hitam);
  box-shadow: 0 0 15px rgba(96, 165, 250, 0.5);
}

/* ========== SKILLS ========== */
/* ========== SKILLS ========== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(125px, 1fr));
  gap: 1.2rem;
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
}

.skill-item {
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(59, 130, 246, 0.5);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.15);
  padding: 1.5rem 0.8rem;
  text-align: center;
  transition: all 0.3s ease;
}

.skill-item i {
  font-size: 2.6rem;
  margin-bottom: 0.7rem;
  display: block;
  transition: color 0.3s ease;
  /* Warna diatur inline dari data, jadi tidak usah diberi warna default */
}

.cisco-icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  background-image: url("https://cdn.simpleicons.org/cisco/3b82f6");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin: 0 auto 0.7rem auto;
}

.skill-item span {
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #cbd5e1;
  transition: color 0.3s ease;
}

.skill-item:hover {
  background: rgba(59, 130, 246, 0.2);
  border-color: var(--biru-glow);
  transform: translateY(-4px);
  box-shadow: 0 0 35px rgba(59, 130, 246, 0.5);
}

.skill-item:hover i {
  color: white !important;
  /*saathover,ikonjadiputih*/
  filter: drop-shadow(0 0 8px var(--biru-neon));
  -webkit-filter: drop-shadow(0 0 8px var(--biru-neon));
}

.skill-item:hover span {
  color: white;
}

/* ========== SOCIAL LINKS ========== */
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  justify-content: center;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(12px);
  font-weight: 700;
  color: var(--putih);
  text-decoration: none;
  padding: 0.8rem 2rem;
  border: 1px solid rgba(59, 130, 246, 0.6);
  box-shadow: 0 0 18px rgba(59, 130, 246, 0.3);
  transition: var(--transition-cepat);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
}

.social-link::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(59, 130, 246, 0.3),
    transparent
  );
  transition: 0.5s;
}

.social-link:hover::after {
  left: 100%;
}

.social-link:hover {
  background: rgba(59, 130, 246, 0.25);
  color: white;
  border-color: var(--biru-glow);
  box-shadow: 0 0 35px var(--biru-neon);
  transform: translateY(-3px);
}

/* ========== FOOTER ========== */
.footer-simple {
  border-top: 1px solid rgba(59, 130, 246, 0.4);
  background: rgba(2, 6, 23, 0.8);
  backdrop-filter: blur(14px);
  font-weight: 600;
  color: #94a3b8;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .foto-hero-wrapper {
    flex-direction: column;
    text-align: center;
  }
  .hero-content {
    text-align: center;
  }
  .hero-desc {
    border-left: none;
    padding-left: 0;
  }
  .foto-container {
    max-width: 260px;
    margin: 0 auto;
  }
}

/* ========== PRELOADER ========== */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--gelap);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader-content {
  text-align: center;
}

.neon-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(59, 130, 246, 0.2);
  border-top-color: var(--biru-glow);
  border-radius: 50%;
  animation: spin 1s linear infinite, neonPulse 2s ease-in-out infinite;
  margin: 0 auto 1.5rem;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

.loader-text {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--biru-glow);
  text-shadow: 0 0 10px rgba(59, 130, 246, 0.6);
  text-transform: uppercase;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes neonPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(59, 130, 246, 0.4), inset 0 0 10px rgba(59, 130, 246, 0.2); }
  50% { box-shadow: 0 0 40px rgba(59, 130, 246, 0.8), inset 0 0 20px rgba(59, 130, 246, 0.5); }
}

/* ========== BACK TO TOP BUTTON ========== */
#back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--biru-glow);
  color: var(--biru-glow);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  font-size: 1.2rem;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
  backdrop-filter: blur(5px);
}

#back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#back-to-top:hover {
  background: var(--biru-glow);
  color: var(--hitam);
  box-shadow: 0 0 25px rgba(59, 130, 246, 0.6);
  transform: translateY(-5px);
}

/* ========== TERMINAL UI ========== */
.terminal-window {
  background: #0f172a;
  border-radius: 0 0 10px 10px;
  font-family: 'Courier New', Courier, monospace;
  text-align: left;
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-top: none;
}

.terminal-header {
  background: #1e293b;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #334155;
}

.term-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 8px;
}

.term-red { background: #ef4444; }
.term-yellow { background: #eab308; }
.term-green { background: #22c55e; }

.term-title {
  color: #94a3b8;
  font-size: 0.85rem;
  margin-left: auto;
  margin-right: auto;
  font-family: "Space Grotesk", sans-serif;
}

.terminal-body {
  padding: 1.5rem;
}

.terminal-body p {
  margin-bottom: 0.5rem;
}

.term-prompt {
  color: #22c55e;
  font-weight: bold;
  margin-right: 8px;
}

.term-output {
  color: #e2e8f0;
  line-height: 1.6;
}

.term-cursor {
  animation: blink 1s infinite;
  display: inline-block;
  width: 8px;
  height: 15px;
  background: #cbd5e1;
  vertical-align: middle;
  margin-left: 2px;
}
