@import url("https://fonts.googleapis.com/css?family=Poppins:100,200,300,400,500,600,700,800,900");

/* ================= ROOT ================= */
:root {
  --primary-red: #c084fc;
  --primary:#c084fc;
  --cyan: #67e8f9;
  --dark-bg: #0f172a;
  --nav-bg: #020617;
  --transition-speed: 0.6s;
  --nav-size: 70px;
}

body {
  background:
    radial-gradient(circle at 20% 20%, rgba(220,38,38,0.15), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(220,38,38,0.08), transparent 50%),
    #0a0a0a;
  color: #5a149d;
  overflow-x: hidden;
  position: relative;
}
/* ================= RESET ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

/* ================= SLIDER ================= */

.slider-wrapper {
  position: relative;
  height: 100vh;
  height: 100dvh;
  overflow: visible; 
}

.slider-wrapper section {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 100%; /* ← bukan inset */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition: opacity 0.4s ease, transform 0.5s ease;
  transform: translateY(20px);
}


.slider-wrapper section.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  z-index: 10;
}

/* ================= NAVIGATION (DESKTOP) ================= */
.navigation-container {
  position: fixed;
  left: 25px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
}

.navigation {
  width: var(--nav-size);
  padding: 10px 0;
  background: var(--nav-bg);
  border-radius: 35px;
  border: 1px solid rgba(12, 164, 111, 0.2);
  display: flex;
  justify-content: center;
}

.navigation ul {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.navigation ul li {
  position: relative;
  width: var(--nav-size);
  height: var(--nav-size);
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ICON */
.navigation ul li a {
  z-index: 2;
}

.navigation ul li .icon {
  font-size: 1.4em;
  color: #444;
  transition: 0.4s;
}

.navigation ul li.active .icon {
  color: var(--cyan);
  filter: drop-shadow(0 0 8px var(--primary));
}

/* ================= INDICATOR (ANCHOR KE LI) ================= */
.navigation ul li .indicator {
  position: absolute;
  width: 55px;
  height: 55px;
  background: #000000;
  border-radius: 50%;
  border: 2px solid var(--primary);
  box-shadow: 0 0 15px rgba(192, 132, 252, 0.45);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  will-change: transform;
  z-index: 1;
}

.navigation ul li.active .indicator {
  transform: translate(-50%, -50%) scale(1);
}

/* ================= HEXAGON ================= */
.hexagon-grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 20px;
}

/* ================= HEXAGON MOBILE GRID ================= */
@media (max-width: 768px) {

  .hexagon-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    justify-items: center;
  }

  .hexagon-item {
    width: 130px;
    height: 150px;
  }

}
@media (max-width: 480px) {
  .skill-card {
    min-width: 90%;
    max-width: 260px;
  }
  .skill-img img {
  width: 100%;
  height: clamp(160px, 28vw, 220px);
  object-fit: cover;
}
}



.hexagon-item {
  width: 160px;
  height: 180px;
  cursor: pointer;
  transition: 0.3s;
}

.hex-shape {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #c084fc, #67e8f9);
  clip-path: polygon(
    50% 0%,
    100% 25%,
    100% 75%,
    50% 100%,
    0% 75%,
    0% 25%
  );
  display: flex;
  align-items: center;
  justify-content: center;
}

.hex-inner {
  width: calc(100% - 4px);
  height: calc(100% - 4px);
  background: var(--dark-bg);
  clip-path: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.icon-hex {
  font-size: 2.5rem;
  color: var(--cyan);
  margin-bottom: 5px;
}

.title-hex {
  font-size: 0.75rem;
  font-weight: bold;
  text-transform: uppercase;
  color: #fff;
  letter-spacing: 1.5px;
}

.hexagon-item:hover {
  transform: translateY(-10px);
  filter: drop-shadow(0 0 10px var(--primary-red));
}

/* ================= HEXAGON MENU (ADVANCED) ================= */


/* ================= MOBILE NAV ================= */
@media (max-width: 768px) {
  .navigation-container {
    left: 50%;
    bottom: 20px;
    top: auto;
    transform: translateX(-50%);
    width: 95%;
    max-width: 480px;
  }

  .navigation {
    width: 100%;
    height: 60px;
    border-radius: 15px;
    padding: 0;
  }

  .navigation ul {
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
  }

  .navigation ul li {
    width: 48px;
    height: 68px;
  }

  .navigation ul li .indicator {
    width: 45px;
    height: 45px;
    top: 50%;
  }

  .navigation ul li.active .icon {
    transform: translateY(-22px);
  }
}

/* ================= UTILITIES ================= */
.hero-title {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 900;
  line-height: 0.9;
  text-transform: uppercase;
  text-align: center;
}

.java-subtext {
  font-family: "Playfair Display", serif;
  font-style: italic;
  color: #26dc69;
  letter-spacing: 0.1em;
}

.btn-primary,
.btn-outline {
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 11px;
}

.btn-primary {
  background: linear-gradient(135deg, #c084fc, #a78bfa);
}

.btn-outline {
  border: 1px solid var(--primary-red);
}

.custom-scroll::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

.custom-scroll::-webkit-scrollbar-thumb {
  background: #c084fc;
  border-radius: 10px;
}

/* ================= RUNNING NEON BORDER ================= */

.profile-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
}

.profile-border {
  position: relative;
  width: clamp(240px, 28vw, 380px);
  aspect-ratio: 1 / 1;
  border-radius: 22px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}


/* GARIS NEON YANG JALAN (UPDATED TO PURPLE-CYAN) */
.profile-border::before {
  content: "";
  position: absolute;
  width: 220%;
  height: 220%;
  background: conic-gradient(
    transparent 0deg,
    transparent 280deg,
    #67e8f9 310deg, /* Warna Cyan (Biru Terang) */
    #c084fc 340deg, /* Warna Primary (Ungu) */
    #c084fc 355deg, /* Penguat warna di ujung garis */
    transparent 360deg
  );
  animation: spinNeon 3s linear infinite;
}

/* MASK UNTUK BORDER TIPIS */
.profile-border::after {
  content: "";
  position: absolute;
  inset: 4px; /* ketebalan border */
  background: var(--dark-bg);
  border-radius: 14px;
  z-index: 1;
}

/* FOTO */
.profile-img {
  width: calc(100% - 8px);
  height: calc(100% - 8px);
  object-fit: cover;
  border-radius: 14px;
  z-index: 2;
}

/* ANIMASI */
@keyframes spinNeon {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Glow soft */
.profile-border {
  box-shadow: 0 0 20px rgba(192,132,252,0.25);
}

/* ================= VALIDATED SKILLS SECTION ================= */

.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 200px));
  gap: 18px;
  padding: 20px;
}


/* CARD */
.skill-card {
  background-color: #1b2529;
  border-radius: 20px;
  box-shadow: 0 0 30px rgba(0,0,0,0.18);
  overflow: hidden;
  transition: 0.4s ease;
}


/* HOVER */

/* IMAGE */
.skill-img {
  position: relative;
  clip-path: polygon(0 0,100% 0, 100% 85%, 0 100%);
}


.skill-img img {
  width: 100%;
  display: block;
  border-radius: 20px 20px 0 0;
  object-fit: cover;
}


/* HOVER (desktop only, lebih clean & tidak terlalu neon) */
@media (hover: hover) {
  .skill-card:hover {
    transform: translateY(-10px);
    border-color: rgba(10, 208, 76, 0.5);
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.4);
  }

  .skill-card:hover .skill-img img {
    transform: scale(1.08);
  }
}


/* Overlay soft */
.skill-img::after {
  content: "";
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 20px 20px 0 0;
  opacity: 0.7;
}
/* .skill-card:nth-child(1) .skill-img::after {
  background-image: linear-gradient(135deg, #0100ec, #fb36f4);
}

.skill-card:nth-child(2) .skill-img::after {
  background-image: linear-gradient(135deg, #2bdce3, #42ffdb);
}

.skill-card:nth-child(3) .skill-img::after {
  background-image: linear-gradient(135deg, #ffab1d, #f8501c);
}
.skill-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.skill-card:active {
  transform: scale(0.96);
} */




/* CONTENT */
.skill-content {
  padding: 14px 12px;
}

.skill-content h4 {
  color: #ffffff;
  font-weight: 600;
  font-size: 16px;
  margin: 10px 0 15px 0;
}


.skill-content p {
  color: #a0a0a0;
  font-size: 14px;
  line-height: 22px;
  font-weight: 400;
}

/* ================= MOBILE CARD SLIDER ================= */

@media (max-width: 1024px) {
  .skills-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 20px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
  }

  .skills-container::-webkit-scrollbar {
    display: none;
  }
  .skill-card {
  min-width: 240px;
  max-width: 260px;
  flex: 0 0 auto;
  scroll-snap-align: center;
}

}



/* Custom Padding per Section */

@media (max-width: 1080px) and (min-width: 768px) {
    #sec-about {
        padding-left: 5rem !important;
        padding-right: 1.5rem !important;
    }
    #sec-learning {
        padding-left: 5rem !important;
        padding-right: 1.5rem !important;
    }
}

@media (max-width: 1400px) and (min-width: 768px) {
    #sec-skills {
        padding-left: 5rem !important;
        padding-right: 1.5rem !important;
    }
  }

  /* ================= BOOT MODE ================= */

body.booting {
  overflow: hidden;
}

body.booting .navigation-container,
body.booting main,
body.booting .fixed {
  opacity: 0;
  pointer-events: none;
}

/* ================= BOOT SCREEN ================= */

#boot-screen {
  position: fixed;
  inset: 0;
  background: #000;
  padding: 40px;
  z-index: 99999;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  font-family: "Courier New", monospace;
  color: #b0ccbf;
}

#terminal {
  white-space: pre-wrap;
  font-size: 14px;
  line-height: 1.6;
}

.boot-hide {
  animation: fadeBoot 1s forwards;
}

@keyframes fadeBoot {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

/* ================= RED TEAM CYBER BACKGROUND ================= */


/* GRID LAYER */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(192, 132, 252, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(192, 132, 252, 0.06) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: redGridMove 25s linear infinite;
  z-index: -2;
  pointer-events: none;
}

/* GLOW MOVING LIGHT */
body::after {
  content: "";
  position: fixed;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(192, 132, 252, 0.2), transparent 70%);
  top: -200px;
  left: -200px;
  filter: blur(80px);
  animation: redGlowMove 18s ease-in-out infinite;
  z-index: -1;
  pointer-events: none;
}


/* ================= PARTICLES ================= */

.red-particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0; /* ← FIX penting */
  overflow: hidden;
  will-change: transform; /* ← GPU hint */
}

.red-particle {
  position: absolute;
  bottom: -50px;
  color: rgba(220,38,38,0.8);
  font-family: "Courier New", monospace;
  font-size: 16px;
  animation: redParticleFloat linear infinite;
  text-shadow: 0 0 8px rgba(220,38,38,0.8);
  opacity: 0;
  will-change: transform, opacity; /* ← smooth */
}
/* ================= ANIMATIONS ================= */

@keyframes redParticleFloat {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0;
  }
  10% { opacity: 0.8; }
  90% { opacity: 0.8; }
  100% {
    transform: translateY(-120vh) rotate(360deg);
    opacity: 0;
  }
}

@keyframes redGridMove {
  from { transform: translateY(0); }
  to { transform: translateY(50px); }
}

@keyframes redGlowMove {
  0%,100% { transform: translate(0,0); }
  50% { transform: translate(400px,250px); }
}
main {
    position: relative;
    z-index: 1;
    padding-left: clamp(0px, 8vw, 110px);
}
@media (max-width: 768px) {
    main {
        padding-left: 0;
    }
}


/* ===== FLOATING CODE BACKGROUND ===== */

.floating-particles {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.particle {
  position: absolute;
  font-family: var(--font-code, monospace);
  font-size: 14px;
  color: var(--primary);
  opacity: 0;
  white-space: nowrap;
  user-select: none;
}

@keyframes floatCode {
  0% {
    transform: translateY(110vh) rotate(0deg);
    opacity: 0;
  }

  10% {
    opacity: 0.4;
  }

  90% {
    opacity: 0.4;
  }

  100% {
    transform: translateY(-10vh) rotate(360deg);
    opacity: 0;
  }
}


/* ================= NEW CYBER SKILLS SECTION ================= */
.skills-section { padding: 60px 0; }
.section-container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

.section-header { display: flex; align-items: center; gap: 15px; margin-bottom: 40px; }
.section-number { color: var(--primary); font-family: var(--font-code); font-size: 1.2rem; }
.section-title { font-size: 2rem; display: flex; gap: 5px; color: #fff; }
.title-bracket { color: #a78bfa; }
.title-text { 
    background: linear-gradient(90deg, var(--primary), var(--cyan)); 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
}
.section-line { flex: 1; height: 1px; background: rgba(255,255,255,0.1); }

.skills-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }

/* Code Side */
.code-block {
    background: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(192, 132, 252, 0.3); 
    border-radius: 12px;
    padding: 25px;
    font-family: 'Courier New', monospace;
    line-height: 1.7;
    font-size: 0.95rem;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}
.indent { padding-left: 25px; }
.code-keyword { color: #c678dd; } 
.code-variable { color: #e06c75; }
.code-operator { color: #56b6c2; }
.code-property { color: #d19a66; }
.code-string { color: #98c379; }
.code-brace, .code-bracket, .code-comma, .code-semicolon { color: #abb2bf; }

/* Progress Side */
.skill-item { margin-bottom: 25px; }
.skill-header { display: flex; justify-content: space-between; margin-bottom: 8px; font-family: 'Poppins', sans-serif; }
.skill-name { color: #cbd5e1; }
.skill-percent { color: var(--cyan); text-shadow: 0 0 8px var(--cyan); }

.skill-bar { 
    height: 10px; 
    background: rgba(30, 41, 59, 0.6); 
    border-radius: 10px; 
    overflow: hidden; 
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.skill-progress-cyber { 
    height: 100%; 
    width: 0%; 
    background: linear-gradient(90deg, var(--primary), var(--cyan));
    box-shadow: 0 0 15px var(--primary);
    position: relative;
}

/* Scan Animation */
.skill-progress-cyber::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: scan 2.5s infinite linear;
}

@keyframes scan {
    0% { transform: translateX(-110%); }
    100% { transform: translateX(110%); }
}

@media (max-width: 1200px) { .skills-layout { grid-template-columns: 1fr; } }



/* ================= PROJECT GRID ================= */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  width: 100%;
}

/* CARD */
.project-card {
  background: rgba(30, 41, 59, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(192, 132, 252, 0.25);
  border-radius: 16px;
  overflow: hidden;
  transition: 0.35s ease;
  position: relative;
}

.project-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
  box-shadow:
    0 20px 40px rgba(0,0,0,0.5),
    0 0 25px rgba(192,132,252,0.25);
}

/* IMAGE */
.project-image {
  position: relative;
  height: 180px;
  background: rgba(2, 6, 23, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-placeholder i {
  font-size: 3.5rem;
  color: var(--primary);
  opacity: 0.35;
}

/* OVERLAY */
.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: 0.3s;
}

.project-card:hover .project-overlay {
  opacity: 1;
  background: rgba(2, 6, 23, 0.55);
}

.project-links {
  display: flex;
  gap: 12px;
}

.project-link {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: 0.25s;
}

.project-link:hover {
  transform: scale(1.15);
}

/* CONTENT */
.project-content {
  padding: 1.3rem;
}

.project-title {
  font-family: "Courier New", monospace;
  color: var(--primary);
  margin-bottom: 8px;
}

.project-description {
  color: #cbd5e1;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* TAG */
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  font-size: 0.7rem;
  padding: 3px 8px;
  background: rgba(2, 6, 23, 0.8);
  border: 1px solid rgba(192,132,252,0.3);
  border-radius: 4px;
  color: var(--cyan);
  font-family: monospace;
}

/* ================= MOBILE PROJECT SLIDER ================= */

@media (max-width: 1200px) {

  .projects-grid {
    display: flex;              
    gap: 20px;
    overflow-x: auto;
    padding: 20px 4px 25px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
  }

  /* sembunyikan scrollbar */
  .projects-grid::-webkit-scrollbar {
    display: none;
  }

  .project-card {
    min-width: 240px;
    max-width: 260px;
    flex: 0 0 auto;
    scroll-snap-align: center;
  }

}