/* ================= GLOBAL RESET ================= */
*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ================= MODERN CUSTOM NEON SCROLLBAR ================= */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #030408;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(#3B82F6, #10B981);
  border-radius: 50px;
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.5);
}

::-webkit-scrollbar-thumb:hover {
  background: #60A5FA;
}

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  background: #030408; 
  color: white;
  font-family: 'Segoe UI', Arial, sans-serif;
  position: relative;
}

/* ================= AMBIENT ORBITAL BACKGROUND ================= */
.orbital-bg {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 800px;
  height: 800px;
  pointer-events: none; 
  z-index: 0; 
  opacity: 0.25; 
}

.orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px dashed rgba(59, 130, 246, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.ring-1 {
  width: 300px;
  height: 300px;
  animation: rotateOrbit 25s linear infinite;
}

.ring-2 {
  width: 500px;
  height: 500px;
  border: 1px solid rgba(16, 185, 129, 0.15);
  border-dasharray: 20 40;
  animation: rotateOrbitReverse 40s linear infinite;
}

.ring-3 {
  width: 700px;
  height: 700px;
  animation: rotateOrbit 60s linear infinite;
}

@keyframes rotateOrbit {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes rotateOrbitReverse {
  from { transform: translate(-50%, -50%) rotate(360deg); }
  to { transform: translate(-50%, -50%) rotate(0deg); }
}


/* ================= HEADER & HERO ================= */
.header {
  padding: 25px 20px 0 20px;
  font-weight: bold;
  font-size: 1.1rem;
  text-align: center;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  position: relative;
  z-index: 10;
}

.hero{
  height: auto; 
  padding: 40px 20px 15px 20px; 
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 10;
}

/* CYBERPUNK GLITCH EFFECT (Nama Niel) */
.hero h1 {
  font-size: 2.2rem;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #fff 0%, #60A5FA 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}

.hero h1:hover {
  text-shadow: -2px 0 #ff0055, 2px 0 #00ffcc;
  animation: textGlitch 0.3s linear infinite;
}

@keyframes textGlitch {
  0% { transform: translate(0); }
  20% { transform: translate(-1px, 1px); }
  40% { transform: translate(-1px, -1px); }
  60% { transform: translate(1px, 1px); }
  80% { transform: translate(1px, -1px); }
  100% { transform: translate(0); }
}

.hero p {
  color: #64748B;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}


/* ================= HERO PROFILE WITH ACCORDION NEON PULSE ================= */
.profile {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  overflow: visible; 
  border: 2px solid #3B82F6;
  margin-bottom: 20px;
  position: relative;
  z-index: 10;
  animation: profilePulse 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.profile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%; 
}

.profile:hover {
  transform: scale(1.08) rotate(5deg);
  border-color: #60A5FA;
}

@keyframes profilePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.5), 
                0 0 0 0 rgba(59, 130, 246, 0.3);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(59, 130, 246, 0), 
                0 0 0 30px rgba(59, 130, 246, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0), 
                0 0 0 0 rgba(59, 130, 246, 0);
  }
}


/* ================= FLOW AREA (NORMAL 2 CARDS) ================= */
.flow{
  width: 100%;
  margin-top: -5px; 
  padding-bottom: 20px; 
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 10;
}

.flow-container {
  position: relative;
  width: 100%;
  max-width: 900px; 
  height: 600px;
}

.svg{
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 600px;
  z-index: 1;
}

.main{
  fill: none;
  stroke: #3B82F6;
  stroke-width: 3;
  stroke-dasharray: 8 6;
  animation: flowLine 2s linear infinite; 
}

.branch{
  fill: none;
  stroke: #60A5FA;
  stroke-width: 2.5;
  opacity: 0.6;
}

@keyframes flowLine {
  to { stroke-dashoffset: -28; }
}

.svg-node-blue { fill: #3B82F6; filter: drop-shadow(0px 0px 8px #3B82F6); }
.svg-node-green { fill: #10B981; filter: drop-shadow(0px 0px 8px #10B981); }

.pulse-node {
  transform-origin: center;
  animation: breathe 2.5s ease-in-out infinite alternate;
}

@keyframes breathe {
  0% { r: 6px; opacity: 0.7; }
  100% { r: 8.5px; opacity: 1; }
}

/* POSISI 2 CARD ALUR NORMAL */
.card{
  position: absolute;
  width: 230px;
  padding: 18px;
  background: rgba(10, 15, 28, 0.75); 
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 14px;
  backdrop-filter: blur(12px); 
  z-index: 3;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.card:hover {
  transform: translateY(-8px); 
  border-color: rgba(96, 165, 250, 0.7);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.25);
  background: rgba(15, 23, 42, 0.85);
}

.card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: #60A5FA;
}

.card p {
  font-size: 0.85rem;
  color: #94A3B8;
  line-height: 1.4;
}

.c1{ top: 230px; left: calc(50% - 340px); }
.c2{ top: 450px; left: calc(50% + 110px); }


/* ================= MATRIX SKILLS FUTURISTIK & MINI ================= */
.skills {
  max-width: 450px; 
  margin: 10px auto 60px auto; 
  padding: 0 20px;
  position: relative;
  z-index: 10;
}

.skills-header {
  text-align: center;
  margin-bottom: 25px;
}

.skills-header h2 {
  font-size: 0.85rem; 
  color: #60A5FA;
  letter-spacing: 4px; 
  text-transform: uppercase;
  opacity: 0.9;
}

.line-deco {
  width: 40px;
  height: 2px;
  background: #3B82F6;
  margin: 8px auto 0 auto;
  box-shadow: 0 0 8px #3B82F6;
}

.skill-item {
  margin-bottom: 15px;
}

.skill-info {
  display: flex;
  justify-content: space-between; 
  align-items: center;
  margin-bottom: 6px;
}

.skill-name {
  font-size: 0.8rem;
  color: #94A3B8;
  font-weight: 500;
}

.skill-percentage {
  font-size: 0.75rem;
  color: #60A5FA;
  font-family: monospace; 
}

.bar-wrapper {
  width: 100%;
  height: 4px; 
  background: rgba(10, 15, 28, 0.8);
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid rgba(59, 130, 246, 0.1);
}

.fill-bar {
  height: 100%;
  background: linear-gradient(90deg, #3B82F6, #10B981); 
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(59,130,246,0.6);
  background-size: 200% 100%;
  animation: shimmer 4s linear infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}


/* ================= NEW PROJECT SHOWCASE SECTION ================= */
.project-showcase {
  max-width: 850px;
  margin: 40px auto 60px auto;
  padding: 0 20px;
  position: relative;
  z-index: 10;
}

.section-title {
  text-align: center;
  margin-bottom: 35px;
}

.section-title h2 {
  font-size: 1.1rem;
  color: #60A5FA;
  letter-spacing: 5px;
}

/* Grid Kartu Proyek Normal Sejajar */
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}

.project-card {
  background: rgba(10, 15, 28, 0.6);
  border: 1px solid rgba(59, 130, 246, 0.15);
  border-radius: 12px;
  padding: 25px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: #10B981;
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.15);
}

.proj-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 0.65rem;
  font-family: monospace;
  background: rgba(59, 130, 246, 0.15);
  color: #60A5FA;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(59, 130, 246, 0.3);
  letter-spacing: 1px;
}

.project-card:hover .proj-badge {
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
  border-color: rgba(16, 185, 129, 0.3);
}

.project-card h3 {
  font-size: 1.1rem;
  color: white;
  margin-bottom: 12px;
  margin-top: 5px;
}

.project-card p {
  font-size: 0.85rem;
  color: #94A3B8;
  line-height: 1.5;
  margin-bottom: 20px;
  min-height: 65px; /* Biar tinggi kotak deskripsi seimbang */
}

.view-project-btn {
  display: inline-block;
  text-decoration: none;
  font-size: 0.7rem;
  color: #60A5FA;
  font-family: monospace;
  letter-spacing: 2px;
  border-bottom: 1px dashed rgba(59, 130, 246, 0.5);
  padding-bottom: 2px;
  transition: color 0.2s;
}

.project-card:hover .view-project-btn {
  color: #10B981;
  border-color: #10B981;
}


/* ================= ACTION BUTTON (CTA) ================= */
.cta-container {
  width: 100%;
  display: flex;
  justify-content: center;
  padding-bottom: 40px;
  position: relative;
  z-index: 10;
}

.cyber-btn {
  text-decoration: none;
  color: #60A5FA;
  font-size: 0.8rem;
  letter-spacing: 3px;
  padding: 12px 30px;
  border: 1px solid rgba(59, 130, 246, 0.4);
  border-radius: 4px;
  background: rgba(10, 15, 28, 0.6);
  backdrop-filter: blur(5px);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.1);
  transition: all 0.3s ease;
}

.cyber-btn:hover {
  color: #fff;
  border-color: #10B981;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
  transform: translateY(-2px);
}


/* ================= FOOTER COMPONENT ================= */
.footer {
  width: 100%;
  text-align: center;
  padding: 20px;
  font-size: 0.7rem;
  color: #334155;
  letter-spacing: 1px;
  border-top: 1px solid rgba(59, 130, 246, 0.05);
  position: relative;
  z-index: 10;
}


/* ================= MONITOR RESPONSIVE MOBILE ================= */
@media (max-width: 768px) {
  .orbital-bg {
    max-width: 400px;
    height: 400px;
    top: 35%;
  }
  
  .ring-1 { width: 180px; height: 180px; }
  .ring-2 { width: 280px; height: 280px; }
  .ring-3 { width: 380px; height: 380px; }

  .flow-container { height: 390px; }
  .svg { width: 320px; height: 384px; }

  .card {
    width: 125px; 
    padding: 10px;
  }

  .card:hover { transform: translateY(-3px); }
  .card h3 { font-size: 0.8rem; margin-bottom: 4px; }
  .card p { font-size: 0.7rem; line-height: 1.2; }

  .c1 { top: 172px; left: calc(50% - 148px); }
  .c2 { top: 312px; left: calc(50% + 22px); }

  .skills {
    max-width: 320px;
    margin-top: 0px;
    margin-bottom: 35px;
  }

  /* Susun Vertikal Kartu Proyek pas di HP */
  .project-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .project-card {
    padding: 20px;
  }

  .project-card p {
    min-height: auto;
  }
}

@media (max-width: 360px) {
  .card { width: 110px; }
  .c1 { left: calc(50% - 135px); }
  .c2 { left: calc(50% + 25px); }
}
