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

/* ================= ROOT ================= */
:root {
  --primary-red: #dc2626;
  --dark-bg: #0a0a0a;
  --nav-bg: #111111;
  --transition-speed: 0.6s;
  --nav-size: 70px;
}

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

body {
  background-color: var(--dark-bg);
  color: #e2e8f0;
  overflow: hidden;
}

/* ================= SLIDER ================= */
.slider-wrapper section {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}


.slider-wrapper section.active {
  display: flex;
  animation: sectionReveal var(--transition-speed)
    cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

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

/* ================= 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(220, 38, 38, 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: #fff;
  filter: drop-shadow(0 0 8px var(--primary-red));
}

/* ================= INDICATOR (ANCHOR KE LI) ================= */
.navigation ul li .indicator {
  position: absolute;
  width: 55px;
  height: 55px;
  background: #000;
  border-radius: 50%;
  border: 2px solid var(--primary-red);
  box-shadow: 0 0 15px rgba(220, 38, 38, 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);
  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;
  }

}


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

.hex-shape {
  width: 100%;
  height: 100%;
  background: var(--primary-red);
  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(--primary-red);
  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: 40px;
    height: 60px;
  }

  .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: #84754e;
  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: var(--primary-red);
}

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

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

.custom-scroll::-webkit-scrollbar-thumb {
  background: var(--primary-red);
  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 */
.profile-border::before {
  content: "";
  position: absolute;
  width: 220%;
  height: 220%;
  background: conic-gradient(
    transparent 0deg,
    transparent 300deg,
    rgba(220, 38, 38, 0.9) 330deg,
    rgba(220, 38, 38, 1) 350deg,
    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 15px rgba(220, 38, 38, 0.25);
}

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

.skills-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  width: 100%;
}

/* CARD */
.skill-card {
  background: #111111;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(220, 38, 38, 0.15);
  transition: 0.4s ease;
}

/* HOVER */

/* IMAGE */
.skill-img {
  position: relative;
  overflow: hidden;
}

.skill-img img {
  width: 100%;
  height: 160px; /* lebih pendek supaya muat 1 layar */
  object-fit: cover;
  transition: transform 0.6s ease;
}

/* HOVER (desktop only, lebih clean & tidak terlalu neon) */
@media (hover: hover) {
  .skill-card:hover {
    transform: translateY(-10px);
    border-color: rgba(220, 38, 38, 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: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0) 40%,
    rgba(220, 38, 38, 0.25) 100%
  );
}

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

.skill-content h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary-red);
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.skill-content p {
  font-size: 11px;
  color: #9ca3af;
  line-height: 1.5;
}

/* ================= RESPONSIVE ================= */

/* Tablet */
@media (max-width: 1024px) {
  .skills-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .skill-img img {
    height: 140px;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .skills-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .skill-img img {
    height: 120px;
  }

  .skill-content h4 {
    font-size: 12px;
  }

  .skill-content p {
    font-size: 10px;
  }
}

/* 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;
  }
}
