/* =============================================
   HEYDARISTO.MY.ID — style.css
   Edit bebas, tidak perlu sudo!
   ============================================= */

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ===== CSS VARIABLES — ubah warna di sini ===== */
:root {
  --bg:      #080c14;
  --bg2:     #0d1220;
  --bg3:     #111827;
  --cyan:    #00e5ff;
  --cyan2:   #00b4d8;
  --purple:  #7c3aed;
  --purple2: #a855f7;
  --green:   #00ff88;
  --text:    #e2e8f0;
  --muted:   #64748b;
  --border:  rgba(0, 229, 255, 0.15);
  --glow:    0 0 30px rgba(0, 229, 255, 0.25);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
  overflow-x: hidden;
  cursor: none;
}

/* ===== CUSTOM CURSOR ===== */
.cursor {
  width: 10px;
  height: 10px;
  background: var(--cyan);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s, width 0.2s, height 0.2s;
  box-shadow: 0 0 10px var(--cyan), 0 0 20px var(--cyan);
}
.cursor-ring {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(0, 229, 255, 0.5);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: left 0.12s ease, top 0.12s ease;
}

/* ===== GRID BG ===== */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* ===== GLOW ORBS ===== */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
}
.orb-1 {
  width: 500px; height: 500px;
  background: var(--purple);
  top: -100px; right: -100px;
  animation: float1 8s ease-in-out infinite;
}
.orb-2 {
  width: 400px; height: 400px;
  background: var(--cyan2);
  bottom: -100px; left: -100px;
  animation: float2 10s ease-in-out infinite;
}
@keyframes float1 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(-30px,30px)} }
@keyframes float2 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(30px,-30px)} }

/* ===== NAVBAR ===== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(8, 12, 20, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--cyan);
  text-decoration: none;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo-img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  flex-shrink: 0;
}
.nav-logo span { color: var(--purple2); }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--cyan);
  transition: width 0.3s;
}
.nav-links a:hover { color: var(--cyan); }
.nav-links a:hover::after { width: 100%; }

/* ===== STATUS BADGE ===== */
.status-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  color: var(--green);
  letter-spacing: 1px;
}
.status-dot {
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
  box-shadow: 0 0 6px var(--green);
}
@keyframes pulse-dot { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.5;transform:scale(1.4)} }

/* ===== MAIN ===== */
main { position: relative; z-index: 1; }

/* ===== HERO ===== */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 40px 60px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.hero-content { flex: 1; }
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 24px;
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 4px;
  animation: fadeUp 0.8s ease forwards;
}
.hero-name {
  font-family: 'Syne', sans-serif;
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 800;
  line-height: 0.95;
  text-transform: uppercase;
  animation: fadeUp 0.8s 0.1s ease both;
}
.hero-name .line1 { display: block; color: var(--text); }
.hero-name .line2 {
  display: block;
  background: linear-gradient(90deg, var(--cyan), var(--purple2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--muted);
  max-width: 500px;
  margin: 24px 0 40px;
  animation: fadeUp 0.8s 0.2s ease both;
}
.hero-desc .accent { color: var(--cyan); }
.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeUp 0.8s 0.3s ease both;
}
.btn {
  padding: 12px 28px;
  font-family: 'Space Mono', monospace;
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-primary {
  background: var(--cyan);
  color: var(--bg);
  font-weight: 700;
}
.btn-primary:hover {
  background: #fff;
  box-shadow: 0 0 30px rgba(0, 229, 255, 0.5);
  transform: translateY(-2px);
}
.btn-outline {
  border: 1px solid var(--border);
  color: var(--cyan);
}
.btn-outline:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.2);
  transform: translateY(-2px);
}

/* ===== TERMINAL ===== */
.hero-terminal {
  flex: 0 0 420px;
  margin-left: 60px;
  animation: fadeUp 0.8s 0.4s ease both;
}
.terminal-box {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--glow), 0 20px 60px rgba(0, 0, 0, 0.5);
}
.terminal-header {
  padding: 10px 16px;
  background: var(--bg3);
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border);
}
.t-dot { width: 10px; height: 10px; border-radius: 50%; }
.t-red    { background: #ff5f57; }
.t-yellow { background: #febc2e; }
.t-green  { background: #28c840; }
.terminal-title { font-size: 0.7rem; color: var(--muted); margin-left: 8px; letter-spacing: 1px; }
.terminal-body  { padding: 20px; font-size: 0.78rem; line-height: 2; }
.t-line { opacity: 0; animation: lineAppear 0.1s forwards; }
.t-prompt { color: var(--cyan); }
.t-cmd    { color: var(--text); }
.t-comment{ color: var(--muted); font-style: italic; }
.t-key    { color: var(--purple2); }
.t-val    { color: var(--green); }
.t-cursor {
  display: inline-block;
  width: 8px; height: 14px;
  background: var(--cyan);
  animation: blink 1s infinite;
  vertical-align: middle;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }
@keyframes lineAppear { to { opacity: 1; } }

/* ===== SECTION COMMON ===== */
section {
  padding: 80px 40px;
  max-width: 1200px;
  margin: 0 auto;
}
.section-label {
  font-size: 0.7rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-label::before { content: '//'; color: var(--purple2); }
.section-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 48px;
  line-height: 1;
}
.divider {
  width: calc(100% - 80px);
  height: 1px;
  background: var(--border);
  margin: 0 40px;
}

/* ===== ABOUT ===== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.about-text { font-size: 0.88rem; line-height: 2; color: var(--muted); }
.about-text p { margin-bottom: 16px; }
.about-text .hl { color: var(--cyan); }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.stat-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.stat-card:hover { border-color: var(--cyan); box-shadow: var(--glow); }
.stat-num {
  font-family: 'Syne', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--cyan), var(--purple2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-label { font-size: 0.7rem; letter-spacing: 2px; color: var(--muted); text-transform: uppercase; margin-top: 4px; }

/* ===== PROJECTS ===== */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.project-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.project-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--purple2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s;
}
.project-card:hover { border-color: rgba(0, 229, 255, 0.3); transform: translateY(-4px); box-shadow: var(--glow); }
.project-card:hover::before { transform: scaleX(1); }
.project-icon  { font-size: 2rem; margin-bottom: 16px; }
.project-name  { font-family: 'Syne', sans-serif; font-size: 1.2rem; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.project-desc  { font-size: 0.8rem; color: var(--muted); line-height: 1.8; margin-bottom: 20px; }
.project-tags  { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-size: 0.65rem;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.2);
  color: var(--cyan);
}
.project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-size: 0.75rem;
  color: var(--cyan);
  text-decoration: none;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: gap 0.2s;
}
.project-link:hover { gap: 10px; }

/* ===== SKILLS ===== */
.skills-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.skill-item {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  letter-spacing: 1px;
  transition: all 0.2s;
}
.skill-item:hover { border-color: var(--cyan); color: var(--cyan); transform: translateY(-2px); }
.skill-icon { font-size: 1.2rem; }

/* ===== CONTACT ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-links { display: flex; flex-direction: column; gap: 16px; }
.contact-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s;
}
.contact-link:hover { border-color: var(--cyan); box-shadow: var(--glow); transform: translateX(4px); }
.cl-icon   { font-size: 1.2rem; }
.cl-name   { font-size: 0.8rem; color: var(--text); letter-spacing: 1px; }
.cl-handle { font-size: 0.7rem; color: var(--cyan); margin-top: 2px; }
.contact-msg { font-size: 0.88rem; line-height: 2; color: var(--muted); }
.contact-msg .hl { color: var(--cyan); }
.contact-msg p { margin-bottom: 16px; }

/* ===== FOOTER ===== */
footer {
  padding: 40px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 2px;
}
.footer-love { color: var(--cyan); }

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s, transform 0.7s;
}
.reveal.visible { opacity: 1; transform: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero-terminal { display: none; }
  #hero { flex-direction: column; }
}
@media (max-width: 700px) {
  .about-grid    { grid-template-columns: 1fr; }
  .contact-grid  { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  nav { padding: 14px 20px; }
  .nav-links { display: none; }
  section { padding: 60px 20px; }
  #hero { padding: 100px 20px 60px; }
  .divider { width: calc(100% - 40px); margin: 0 20px; }
}