* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #000;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.692);
  --border: rgba(255, 255, 255, 0.425);
  --borderHover: rgba(255,255,255,0.3);
  --card: rgba(255,255,255,0.06);
}

html { scroll-behavior: smooth; }
body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

canvas#stars {
  position: fixed;
  inset: 0;
  z-index: 0;
}

main {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

/* subtle vignette like screenshot */
main::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(
      circle at center,
      rgba(0,0,0,0) 0%,
      rgba(0,0,0,0.25) 55%,
      rgba(0,0,0,0.65) 100%
    );
  }
  

/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 24px;
}

.hero-title {
    font-size: clamp(48px, 6vw, 84px);
    font-weight: 800;
    letter-spacing: -0.03em;
    position: relative;
    opacity: 0;
    transform: translateY(12px) scale(0.96);
    animation: heroTitleIn 0.9s ease-out forwards;
  }
  
  /* hover efek halus, nggak berlebihan */
  .hero-title:hover {
    text-shadow: 0 0 16px rgba(255,255,255,0.35);
    transform: translateY(0) scale(1.02);
    transition: transform 0.2s ease, text-shadow 0.2s ease;
  }
  
  /* animasi masuk dari bawah */
  @keyframes heroTitleIn {
    from {
      opacity: 0;
      transform: translateY(18px) scale(0.94);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }
  
  /* animasi garis glow di bawah nama */
  @keyframes heroTitleUnderline {
    from {
      opacity: 0;
      transform: translateX(-50%) scaleX(0.3);
    }
    to {
      opacity: 1;
      transform: translateX(-50%) scaleX(1);
    }
  }
  

.hero p {
  margin-top: 14px;
  color: var(--muted);
}

.hero-actions {
  margin-top: 32px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* BUTTON */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.08);
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  transition: 0.2s ease;
}

.btn:hover {
  border-color: var(--borderHover);
  background: rgba(255,255,255,0.12);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
}

.btn-submit {
  width: 100%;
  margin-top: 6px;
}

/* SECTIONS */
.projects {
    padding: 50px 24px 90px;  /* atas lebih kecil */
  }
  
  .contact {
    padding: 90px 24px;       /* contact tetap agak lega */
  }  

.section-head {
  max-width: 900px;
  margin: 0 auto 38px auto;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-head p {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.6;
}

/* PROJECT GRID */
.project-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: center;  /* ini yang bikin baris terakhir ke tengah */
  }
  

  .card {
    display: block;
    text-decoration: none;
    color: var(--text);
    padding: 22px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--card);
    backdrop-filter: blur(8px);
    transition: 0.2s ease;
    width: 100%;
    max-width: 320px;   /* tiap card lebar “kartu”, bukan full row */
  }
  

.card:hover {
  border-color: var(--borderHover);
  transform: translateY(-6px);
}

.card h3 {
  font-size: 18px;
  font-weight: 650;
}

.card p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.tags {
  margin-top: 14px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* STYLE DASAR — TERLIHAT SEPERTI TAG, BUKAN TOMBOL */
.tags span,
.chip,
.contact-badges span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 4px 10px; /* lebih tipis dari sebelumnya */
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 1px solid rgba(255,255,255,0.24);
  color: rgba(255,255,255,0.75);
  background: transparent;   /* transparan, bukan tombol solid */
}

/* hover halus dikit aja */
.tags span:hover,
.chip:hover,
.contact-badges span:hover {
  background: rgba(255,255,255,0.06);
}

/* ====== VARIASI WARNA (outline + text) ====== */

/* biru – backend / web */
.tags span.tag-blue,
.chip.tag-blue,
.contact-badges span.tag-blue {
  border-color: rgba(56,189,248,0.8);
  color: rgba(125,211,252,0.95);
}

/* hijau – security / SOC */
.tags span.tag-green,
.chip.tag-green,
.contact-badges span.tag-green {
  border-color: rgba(52,211,153,0.85);
  color: rgba(110,231,183,0.98);
}

/* ungu – AI */
.tags span.tag-purple,
.chip.tag-purple,
.contact-badges span.tag-purple {
  border-color: rgba(196,181,253,0.9);
  color: rgba(216,180,254,1);
}

/* oranye – telephony / bot */
.tags span.tag-orange,
.chip.tag-orange,
.contact-badges span.tag-orange {
  border-color: rgba(253,186,116,0.9);
  color: rgba(253,186,116,1);
}

/* merah/pink – bahasa pemrograman */
.tags span.tag-red,
.chip.tag-red,
.contact-badges span.tag-red {
  border-color: rgba(248,113,113,0.9);
  color: rgba(252,165,165,1);
}

/* SECTION PROJECTS YANG BARU */
.projects-showcase {
    padding-top: 70px; /* bisa diatur biar jarak dari Skill pas */
  }
  
  /* grid khusus project (pakai flex, card ditengah) */
  .projects-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: center;
  }
  
  /* card untuk project (sedikit lebih lebar) */
  .project-card {
    max-width: 360px;          /* biar nggak kelebaran, tapi tetap enak */
    cursor: pointer;
  }
  
  /* meta kecil di atas judul */
  .project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
  }
  
  .project-link-btn {
    margin-top: 14px;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: transparent;
    color: rgba(255,255,255,0.9);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }
  
  .project-link-btn:hover {
    border-color: var(--borderHover);
    background: rgba(255,255,255,0.08);
    transform: translateY(-1px);
  }
  
  .project-card {
    /* kalau belum ada, pastikan tetap tampil sebagai card biasa */
    cursor: default; /* card bukan link lagi, hanya button yang bisa diklik */
  }  
  

/* CONTACT */
.contact-card {
    flex: 1 1 320px;
    max-width: 460px;             /* <= BATAS LEBAR FORM, biar nggak melebar banget */
    width: 100%;
    margin: 0;
    padding: 22px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--card);
    backdrop-filter: blur(8px);
  }

.contact-card label {
  display: block;
  margin-bottom: 14px;
}

.contact-card span {
  display: block;
  font-size: 13px;
  margin-bottom: 8px;
  color: rgba(255,255,255,0.85);
}

.contact-card input,
.contact-card textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.08);
  color: var(--text);
  padding: 12px 12px;
  outline: none;
  transition: 0.2s ease;
}

.contact-card textarea { resize: vertical; }

.contact-card input:focus,
.contact-card textarea:focus {
  border-color: rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.10);
}

.form-hint {
  margin-top: 10px;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  min-height: 18px;
}

.contact-layout {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;      /* ini yang bikin mereka center */
    align-items: flex-start;
  }
  
/* HP / tablet: stack ke bawah */
@media (max-width: 768px) {
    .contact-layout {
      justify-content: stretch;
    }
  
    .contact-info,
    .contact-card {
      max-width: 100%;
    }
  } 
  
  .contact-info {
    flex: 1 1 280px;
    min-width: 260px;
  }
  
  .contact-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
  }
  
  .contact-info ul {
    list-style: none;
    margin-top: 8px;
    margin-bottom: 18px;
    padding-left: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
  }
  
  .contact-info ul li {
    position: relative;
    padding-left: 16px;
    margin-bottom: 6px;
  }
  
  .contact-info ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: rgba(255,255,255,0.7);
  }
  
  .contact-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
  }
  
  .contact-direct p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.712);
    margin-bottom: 4px;
  }
  
  .contact-direct a {
    font-size: 16px;
    font-weight: 500;
    color: #ffffff;
    text-decoration: none;
  }
  

  .discord-button {
    background-color: #5865F2; /* Discord's primary color */
    margin-top: 12px;
    color: white;
    padding: 9px 18px;
    border-radius: 8px;
    text-decoration: none; /* Removes default underline from links */
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 700;
    display: inline-block;
    transition: background-color 0.3s ease;
    
  }
  
  .discord-button:hover {
    background-color: #4752C4; /* A slightly darker shade for hover effect */
  }
  
/* FOOTER */
.footer {
  border-top: 1px solid rgba(255,255,255,0.10);
  padding: 26px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: rgb(255, 255, 255);
}

.footer a {
  color: rgb(255, 255, 255);
  text-decoration: none;
}
.footer a:hover { color: white; }

.social {
  display: flex;
  gap: 18px;
}

/* === Back To Top Button === */

.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(15,15,15,0.85);
    color: rgba(255,255,255,0.85);
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(8px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.45);
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition:
      opacity 0.2s ease,
      transform 0.2s ease,
      background 0.2s ease,
      border-color 0.2s ease;
    z-index: 30;
  }
  
  .back-to-top:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.4);
  }
  
  .back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  
  /* smooth scroll global */
  html {
    scroll-behavior: smooth;
  }
  