/*
  Futuristic Neon Portfolio UI
  Author content: Muhammad Dimas Arya Nugroho (data wajib, tidak diubah)
*/

:root{
  --bg: #070A12;
  --bg2: #0A0F1D;
  --card: rgba(255,255,255,0.06);
  --stroke: rgba(255,255,255,0.10);
  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.68);

  --cyan: #32E7FF;
  --blue: #3B5BFF;
  --purple: #A855F7;
  --pink: #FF4FD8;

  --shadow: 0 18px 70px rgba(0,0,0,0.55);
  --radius: 18px;
  --radius2: 26px;

  --max: 1120px;
  --navH: 74px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: "Space Grotesk", system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(900px 500px at 10% 10%, rgba(59,91,255,0.25), transparent 55%),
              radial-gradient(700px 500px at 90% 20%, rgba(168,85,247,0.22), transparent 55%),
              radial-gradient(700px 500px at 60% 90%, rgba(50,231,255,0.18), transparent 55%),
              linear-gradient(180deg, var(--bg), var(--bg2));
  overflow-x: hidden;
}

a{ color: inherit; text-decoration: none; }
img{ max-width: 100%; display: block; }

.container{
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.section{
  position: relative;
  padding: 92px 0;
}

.section-head{
  display: grid;
  gap: 10px;
  margin-bottom: 26px;
}
.section-head h2{
  margin: 0;
  font-size: clamp(1.55rem, 1.1rem + 1.7vw, 2.25rem);
  letter-spacing: -0.02em;
}
.section-head p{
  margin: 0;
  color: var(--muted);
}

.muted{ color: var(--muted); }

/* Background layers */
.bg{
  position: fixed;
  inset: 0;
  z-index: -3;
  overflow: hidden;
}
#particles{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.bg-gradient{
  position: absolute;
  inset: -40%;
  background: conic-gradient(from 180deg at 50% 50%, rgba(50,231,255,0.20), rgba(168,85,247,0.20), rgba(59,91,255,0.20), rgba(255,79,216,0.16), rgba(50,231,255,0.20));
  filter: blur(60px);
  opacity: 0.42;
  animation: drift 14s linear infinite;
}
.bg-grid{
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse 60% 40% at 50% 20%, rgba(0,0,0,1), rgba(0,0,0,0));
  opacity: 0.35;
}
.bg-glow{
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(50,231,255,0.22), transparent 60%),
    radial-gradient(500px 320px at 20% 90%, rgba(168,85,247,0.18), transparent 60%),
    radial-gradient(500px 320px at 90% 85%, rgba(59,91,255,0.16), transparent 60%);
}
@keyframes drift{
  0%{ transform: translate3d(0,0,0) rotate(0deg); }
  50%{ transform: translate3d(4%, -2%, 0) rotate(180deg); }
  100%{ transform: translate3d(0,0,0) rotate(360deg); }
}

/* Navbar */
.nav-wrap{
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav{
  height: var(--navH);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(var(--max), calc(100% - 20px));
  margin: 10px auto;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: 220ms ease;
}
.nav.is-scrolled{
  background: rgba(10,15,29,0.55);
  border-color: rgba(255,255,255,0.10);
  box-shadow: 0 18px 60px rgba(0,0,0,0.45);
  backdrop-filter: blur(14px);
}
.brand{ display:flex; align-items:center; gap: 10px; }
.brand-mark{
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, var(--cyan), var(--purple));
  box-shadow: 0 0 22px rgba(50,231,255,0.50), 0 0 30px rgba(168,85,247,0.35);
}
.brand-text{ font-weight: 700; letter-spacing: 0.2px; }

.nav-menu{
  display: flex;
  align-items: center;
  gap: 14px;
}
.nav-menu a{
  color: rgba(255,255,255,0.78);
  font-weight: 500;
  padding: 10px 12px;
  border-radius: 12px;
  transition: 180ms ease;
}
.nav-menu a:hover{
  color: rgba(255,255,255,0.96);
  background: rgba(255,255,255,0.06);
}

.nav-toggle{
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  color: var(--text);
}
.nav-toggle span{
  display: block;
  width: 18px;
  height: 2px;
  background: rgba(255,255,255,0.86);
  margin: 4px auto;
  border-radius: 6px;
}

/* Buttons */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.92);
  font-weight: 600;
  letter-spacing: 0.2px;
  transition: 200ms ease;
  position: relative;
  overflow: hidden;
}
.btn:hover{
  transform: translateY(-1px);
  border-color: rgba(50,231,255,0.32);
  box-shadow:
    0 10px 30px rgba(0,0,0,0.40),
    0 0 0 1px rgba(50,231,255,0.16) inset,
    0 0 34px rgba(50,231,255,0.18);
}
.btn:active{ transform: translateY(0px); }
.btn-primary{
  border-color: rgba(50,231,255,0.30);
  background: linear-gradient(135deg, rgba(50,231,255,0.22), rgba(168,85,247,0.18));
}
.btn-ghost{
  background: rgba(255,255,255,0.04);
}
.btn-sm{ padding: 10px 12px; border-radius: 12px; font-size: 0.95rem; }

/* Cards */
.card{
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: var(--shadow);
  padding: 18px;
  position: relative;
  overflow: hidden;
  transition: 220ms ease;
}
.card::before{
  content: "";
  position: absolute;
  inset: -2px;
  background: radial-gradient(300px 220px at var(--mx, 20%) var(--my, 10%), rgba(50,231,255,0.22), transparent 60%);
  opacity: 0;
  transition: 220ms ease;
}
.card:hover::before{ opacity: 1; }
.card:hover{
  border-color: rgba(50,231,255,0.22);
  transform: translateY(-2px);
}
.card h3{ margin: 0 0 10px; font-size: 1.12rem; }
.card p{ margin: 0; color: rgba(255,255,255,0.72); line-height: 1.65; }

.grid{
  display: grid;
  gap: 16px;
}
.cards{ grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Hero */
.hero{ padding-top: 110px; padding-bottom: 70px; }
.hero-grid{
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 24px;
  align-items: center;
}

.chip{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.74);
  width: fit-content;
}
.dot{
  width: 8px; height: 8px; border-radius: 999px;
  background: var(--cyan);
  box-shadow: 0 0 16px rgba(50,231,255,0.55);
}

.hero-title{
  margin: 14px 0 10px;
  font-size: clamp(2.0rem, 1.35rem + 2.7vw, 3.35rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
}
.hero-title .muted{ display:block; font-size: 0.85em; margin-bottom: 6px; }

.hero-typing{
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.type{ color: rgba(255,255,255,0.96); }
.type-sep{ color: rgba(255,255,255,0.35); }
.type-caret{
  width: 10px;
  height: 1.1em;
  border-right: 2px solid rgba(50,231,255,0.85);
  transform: translateY(0.06em);
  animation: blink 0.9s step-end infinite;
}
@keyframes blink{ 50%{ opacity: 0; } }

.hero-desc{ margin: 0 0 18px; color: rgba(255,255,255,0.72); line-height: 1.7; max-width: 58ch; }
.hero-cta{ display:flex; gap: 12px; flex-wrap: wrap; }

.hero-meta{
  margin-top: 18px;
  display: grid;
  gap: 10px;
}
.stat{
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
  border-radius: 16px;
  padding: 12px 14px;
}
.stat-k{ color: rgba(255,255,255,0.62); font-weight: 600; font-size: 0.95rem; }
.stat-v{ color: rgba(255,255,255,0.86); margin-top: 6px; line-height: 1.55; }
.stat-v a{ text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(50,231,255,0.25); }
.sep{ margin: 0 8px; color: rgba(255,255,255,0.34); }

.hero-art{ position: relative; }
.orbit{
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius2);
  min-height: 380px;
}
.ring{
  position: absolute;
  inset: 7%;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 0 0 1px rgba(50,231,255,0.10) inset;
  mask-image: radial-gradient(circle at 50% 50%, rgba(0,0,0,0.2), rgba(0,0,0,1));
}

.glass-card{
  position: absolute;
  inset: 16%;
  border-radius: 22px;
  background: rgba(7,10,18,0.34);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 18px 70px rgba(0,0,0,0.55);
  backdrop-filter: blur(16px);
  overflow: hidden;
}
.glass-top{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
  background: linear-gradient(135deg, rgba(50,231,255,0.10), rgba(168,85,247,0.08));
}
.pulse{
  width: 10px; height: 10px; border-radius: 999px;
  background: rgba(50,231,255,0.95);
  box-shadow: 0 0 0 0 rgba(50,231,255,0.45);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse{
  0%{ box-shadow: 0 0 0 0 rgba(50,231,255,0.42); }
  70%{ box-shadow: 0 0 0 12px rgba(50,231,255,0.0); }
  100%{ box-shadow: 0 0 0 0 rgba(50,231,255,0.0); }
}
.glass-title{ font-weight: 700; letter-spacing: 0.2px; }
.glass-body{ padding: 14px 16px 6px; display:grid; gap: 10px; }
.row{ display:grid; grid-template-columns: 110px 1fr; gap: 10px; align-items: baseline; }
.label{ color: rgba(255,255,255,0.62); font-weight: 600; }
.value{ color: rgba(255,255,255,0.90); }
.glass-actions{ padding: 12px 16px 16px; display:flex; gap: 10px; flex-wrap: wrap; }

/* Floating icons */
.float-icon{
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  animation: float 4.4s ease-in-out infinite;
  animation-delay: var(--d);
}
@keyframes float{
  0%,100%{ transform: translate(-50%, -50%) translateY(0); }
  50%{ transform: translate(-50%, -50%) translateY(-12px); }
}
.tech{
  display:inline-flex;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.2px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.45);
}
.tech-html{ box-shadow: 0 0 32px rgba(50,231,255,0.16); }
.tech-css{ box-shadow: 0 0 32px rgba(168,85,247,0.16); }
.tech-js{ box-shadow: 0 0 32px rgba(59,91,255,0.16); }
.tech-react{ box-shadow: 0 0 32px rgba(50,231,255,0.16); }
.tech-laravel{ box-shadow: 0 0 32px rgba(255,79,216,0.16); }

/* Scroll hint */
.scroll-hint{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.55);
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
}
.mouse{
  width: 20px; height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.22);
  position: relative;
}
.mouse::after{
  content: "";
  width: 4px; height: 4px;
  border-radius: 999px;
  background: rgba(50,231,255,0.85);
  position: absolute;
  left: 50%;
  top: 7px;
  transform: translateX(-50%);
  animation: wheel 1.2s ease-in-out infinite;
}
@keyframes wheel{
  0%{ opacity: 0; transform: translateX(-50%) translateY(0); }
  30%{ opacity: 1; }
  100%{ opacity: 0; transform: translateX(-50%) translateY(10px); }
}

/* About */
.about-grid{
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
  align-items: start;
}
.pill-row{ display:flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.pill{
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.78);
  font-weight: 600;
  font-size: 0.95rem;
}

.skills{ display:grid; gap: 12px; }
.skill-top{ display:flex; align-items:center; justify-content: space-between; color: rgba(255,255,255,0.84); font-weight: 600; }
.pct{ color: rgba(255,255,255,0.62); font-weight: 700; }
.bar{
  height: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}
.bar span{
  display:block;
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(50,231,255,0.9), rgba(168,85,247,0.85), rgba(59,91,255,0.85));
  box-shadow: 0 0 22px rgba(50,231,255,0.25);
  transition: width 1200ms cubic-bezier(.2,.9,.2,1);
}

.list{ margin: 0; padding-left: 18px; color: rgba(255,255,255,0.76); line-height: 1.8; }
.kv{ display:grid; grid-template-columns: 120px 1fr; gap: 10px; }
.k{ color: rgba(255,255,255,0.62); font-weight: 700; }
.v{ color: rgba(255,255,255,0.86); }
.note{ margin-top: 14px; display:flex; gap: 10px; align-items:center; color: rgba(255,255,255,0.72); }
.note-dot{ width: 10px; height: 10px; border-radius: 999px; background: rgba(168,85,247,0.85); box-shadow: 0 0 18px rgba(168,85,247,0.35); }

/* Services */
.service .tag-row{ margin-top: 14px; display:flex; flex-wrap: wrap; gap: 10px; }
.tag{
  font-weight: 700;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.75);
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
}

/* Portfolio */
.portfolio{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
.work{ padding: 0; }
.work-link{ display:block; }
.work-media{
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.10);
}
.work-media img{
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  transform: scale(1);
  transition: transform 360ms ease;
}
.work-overlay{
  position: absolute;
  inset: 0;
  padding: 16px;
  display:flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  background: linear-gradient(180deg, rgba(0,0,0,0.0), rgba(0,0,0,0.68));
  opacity: 0;
  transition: 220ms ease;
}
.work:hover .work-overlay{ opacity: 1; }
.work:hover .work-media img{ transform: scale(1.06); }
.overlay-title{ font-weight: 800; letter-spacing: -0.01em; }
.overlay-sub{ color: rgba(255,255,255,0.78); }
.overlay-tech{ color: rgba(255,255,255,0.70); font-weight: 600; font-size: 0.95rem; }
.work-body{ padding: 14px 16px 16px; }
.work-body h3{ margin: 0 0 6px; }
.work-body p{ margin: 0; }
.chips{ margin-top: 12px; display:flex; flex-wrap: wrap; gap: 8px; }
.chip-mini{
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.76);
  font-weight: 700;
  font-size: 0.86rem;
}

/* Testimonials */
.quote{ padding: 20px; }
.quote-mark{ font-size: 2.4rem; color: rgba(50,231,255,0.78); line-height: 1; margin-bottom: 10px; }
.quote-meta{ margin-top: 14px; color: rgba(255,255,255,0.60); font-weight: 700; }

/* Contact */
.contact-grid{
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 16px;
}
.contact-card h3{ margin-bottom: 12px; }
.contact-list{ display:grid; gap: 10px; }
.contact-item{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
}
.contact-item:hover{ border-color: rgba(50,231,255,0.22); }
.contact-k{ color: rgba(255,255,255,0.62); font-weight: 700; }
.contact-v{ color: rgba(255,255,255,0.90); font-weight: 600; }
.contact-actions{ margin-top: 14px; display:flex; gap: 10px; flex-wrap: wrap; }

.form{ display:grid; gap: 12px; margin-top: 14px; }
label{ display:grid; gap: 6px; }
label span{ color: rgba(255,255,255,0.70); font-weight: 700; font-size: 0.95rem; }
input, select, textarea{
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(7,10,18,0.32);
  color: rgba(255,255,255,0.92);
  outline: none;
  transition: 180ms ease;
}
input:focus, select:focus, textarea:focus{ border-color: rgba(50,231,255,0.32); box-shadow: 0 0 0 3px rgba(50,231,255,0.10); }
.tiny{ font-size: 0.92rem; }

/* Footer */
.footer{
  padding: 28px 0 40px;
  border-top: 1px solid rgba(255,255,255,0.08);
  background: rgba(7,10,18,0.35);
  backdrop-filter: blur(12px);
}
.footer-grid{
  display:flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.footer-brand{ font-weight: 800; letter-spacing: -0.02em; }
.footer-sub{ color: rgba(255,255,255,0.60); margin-top: 4px; }
.footer-right{ display:flex; gap: 14px; flex-wrap: wrap; }
.footer-right a{ color: rgba(255,255,255,0.70); padding: 8px 10px; border-radius: 12px; }
.footer-right a:hover{ background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.92); }
.footer-bottom{ margin-top: 18px; color: rgba(255,255,255,0.55); }

/* Cursor glow */
.cursor{
  position: fixed;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  pointer-events: none;
  z-index: 999;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at 30% 30%, rgba(50,231,255,0.85), rgba(168,85,247,0.08));
  box-shadow: 0 0 30px rgba(50,231,255,0.22), 0 0 40px rgba(168,85,247,0.16);
  opacity: 0;
  transition: opacity 180ms ease;
}

/* Responsive */
@media (max-width: 980px){
  .hero-grid{ grid-template-columns: 1fr; }
  .orbit{ min-height: 360px; }
  .about-grid{ grid-template-columns: 1fr; }
  .contact-grid{ grid-template-columns: 1fr; }
  .cards{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portfolio{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px){
  .section{ padding: 76px 0; }
  .nav{ width: calc(100% - 20px); }

  .nav-toggle{ display: inline-flex; align-items: center; justify-content: center; }
  .nav-menu{
    position: absolute;
    top: calc(10px + var(--navH));
    left: 10px;
    right: 10px;
    display: grid;
    gap: 10px;
    padding: 14px;
    border-radius: 18px;
    background: rgba(10,15,29,0.70);
    border: 1px solid rgba(255,255,255,0.10);
    box-shadow: 0 18px 70px rgba(0,0,0,0.55);
    backdrop-filter: blur(14px);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: 180ms ease;
  }
  .nav-menu.is-open{
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .cards{ grid-template-columns: 1fr; }
  .portfolio{ grid-template-columns: 1fr; }
  .row{ grid-template-columns: 92px 1fr; }
}

@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{ animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
