:root {
  --bg: #0b0b0b;
  --card: #0f1112;
  --muted: #9aa3a6;
  --neon: #08e6d6;
  --accent: #00d7d0;
  --glass: rgba(255, 255, 255, 0.02);
  --radius: 16px;
  --container: 1100px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Poppins", system-ui, Arial;
  background: radial-gradient(
      1200px 600px at 10% 20%,
      rgba(8, 230, 214, 0.04),
      transparent 6%
    ),
    radial-gradient(
      900px 400px at 90% 80%,
      rgba(8, 230, 214, 0.03),
      transparent 6%
    ),
    var(--bg);
  color: #e6eef0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 40px 24px;
}
/* Header */
header {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  height: 64px;
  display: flex;
  align-items: center;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.02),
    rgba(255, 255, 255, 0.01)
  );
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(6px);
  z-index: 40;
}

.nav-inner {
  width: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  gap: 12px;
}

.brand h1 {
  padding-left: 125px;
}

.brand span {
  color: var(--neon);
}

.brand-gif {
  width: 40px;
  height: 40px;
  display: none;
}

nav ul {
  display: flex;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding-right: 200px;
  align-items: center;
}

nav a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
}

nav a.active {
  background-color: var(--accent);
  color: #fff;
  font-weight: bold;
  padding: 5px;
  box-shadow: 0px 2px 8px var(--neon);
  border-radius: 5px;
}

nav a:hover {
  color: var(--accent);
  text-shadow: 0px 2px 8px var(--neon);
  transition: all 0.3s ease-in-out;
}

nav a.active:hover {
  background-color: #fff;
  color: var(--accent);
  transition: all 0.3s ease-in-out;
}

.cta {
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: transparent;
  color: var(--neon);
  font-weight: 600;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 40px;
  align-items: center;
  padding: 110px 0 80px;
}

.hero-left h1 {
  font-size: 44px;
  margin: 0 0 10px;
  line-height: 1;
  letter-spacing: -0.5px;
}

.glitch {
  position: relative;
  display: inline-block;
  font-weight: 700;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  clip: rect(0, 900px, 0, 0);
}

.glitch::before {
  left: 2px;
  text-shadow: -2px 0 #ff00c1;
  animation: glitch-anim 2s infinite linear alternate-reverse;
}

.glitch::after {
  left: -2px;
  text-shadow: -2px 0 #00fff9;
  animation: glitch-anim2 2s infinite linear alternate-reverse;
}

/* Animasi glitch */
@keyframes glitch-anim {
  0% {
    clip: rect(42px, 9999px, 44px, 0);
  }
  20% {
    clip: rect(12px, 9999px, 16px, 0);
  }
  40% {
    clip: rect(62px, 9999px, 65px, 0);
  }
  60% {
    clip: rect(5px, 9999px, 8px, 0);
  }
  80% {
    clip: rect(72px, 9999px, 80px, 0);
  }
  100% {
    clip: rect(32px, 9999px, 34px, 0);
  }
}

@keyframes glitch-anim2 {
  0% {
    clip: rect(12px, 9999px, 18px, 0);
  }
  20% {
    clip: rect(52px, 9999px, 56px, 0);
  }
  40% {
    clip: rect(32px, 9999px, 34px, 0);
  }
  60% {
    clip: rect(72px, 9999px, 76px, 0);
  }
  80% {
    clip: rect(22px, 9999px, 28px, 0);
  }
  100% {
    clip: rect(42px, 9999px, 44px, 0);
  }
}

.lead {
  color: var(--muted);
  max-width: 560px;
}

.buttons {
  margin-top: 18px;
  display: flex;
  gap: 12px;
  align-items: center;
}

.btn {
  padding: 10px 18px;
  border-radius: 8px;
  border: 1px solid rgba(8, 230, 214, 0.25);
  box-shadow: 0 8px 30px rgba(8, 230, 214, 0.06),
    inset 0 0 18px rgba(8, 230, 214, 0.02);
  background: linear-gradient(
    90deg,
    rgba(0, 215, 208, 0.08),
    rgba(8, 230, 214, 0.03)
  );
  font-weight: 600;
  color: var(--neon);
}

.btn-primary {
  background: linear-gradient(
    90deg,
    rgba(0, 215, 208, 0.08),
    rgba(8, 230, 214, 0.03)
  );
  color: var(--neon);
  box-shadow: 0 8px 30px rgba(8, 230, 214, 0.06),
    inset 0 0 18px rgba(8, 230, 214, 0.02);
  border: 1px solid rgba(8, 230, 214, 0.25);
}

.avatar-wrap {
  display: flex;
  justify-content: center;
}

.avatar {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: linear-gradient(180deg, #0e1011, #0b0b0b);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: visible;
  border: 6px solid rgba(255, 255, 255, 0.02);
  box-shadow: 0 6px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(8, 230, 214, 0.06),
    0 0 18px rgba(8, 230, 214, 0.04) inset;
}

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

.avatar::before {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 30% 20%,
    rgba(8, 230, 214, 0.35),
    transparent 8%
  );
  filter: blur(10px);
  z-index: -1;
  box-shadow: 0 0 38px rgba(8, 230, 214, 0.7);
}

.avatar::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 3px solid rgba(8, 230, 214, 0.85);
  filter: blur(4px);
  opacity: 0.9;
}

/* About */
.section {
  padding: 80px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.02);
}

.section h2 {
  text-align: center;
  font-size: 32px;
  margin: 0 0 28px;
  color: white;
}

.section p {
  text-align: center;
  padding-bottom: 20px;
}

.about {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 36px;
  align-items: center;
}

.about .avatar-small {
  width: 260px;
  height: 260px;
  border-radius: 14px;
  padding: 14px;
  background: linear-gradient(180deg, #0b0b0b, #0f1112);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.about .avatar-small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.about p {
  color: var(--muted);
  padding-bottom: 20px;
  text-align: justify;
}

/* Projek */
.section-2 {
  display: flex;
  flex-direction: column;
  align-items: center; /* agar berada di tengah */
  gap: 2rem; /* jarak antar card */
  margin: 2rem auto;
  width: 100%;
  text-align: center;
  padding: 2rem 1rem;
}

.section-2 h2 {
  color: var(--neon);
  font-size: 2rem;
  margin-bottom: 2rem;
  text-shadow: 0 0 10px var(--neon);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

.project-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 30px;
  box-shadow: 0 0 15px rgba(0, 255, 200, 0.1);
  text-align: center;
  transition: 0.3s ease;
}

.project-card h3 {
  color: #fff;
  margin-bottom: 1rem;
}

.project-card img {
  width: 80%;
  border-radius: 12px;
}

.project-card p {
  text-align: center;
  font-weight: 300;
  padding-bottom: 10px;
}

.project-card a {
  text-decoration: none;
  color: var(--neon);
  padding-bottom: 20px;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 25px var(--neon);
}
/* Service */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 28px;
}

.services-grid p {
  text-align: left;
  padding-bottom: 0px;
  margin: 0;
}

.services-grid a {
  text-decoration: none;
  color: var(--neon);
}

.service-card {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.01),
    rgba(255, 255, 255, 0.02)
  );
  padding: 24px;
  border-radius: 14px;
  min-height: 180px;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.03);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
  transition: transform 0.25s, box-shadow 0.25s;
}

.service-card img {
  width: 70px;
  height: 70px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.service-card h3 {
  margin: 0 0 8px;
}

/* Highlighted service card */
.service-card.highlight {
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(8, 230, 214, 0.14),
    0 0 18px rgba(8, 230, 214, 0.14) inset;
  transform: translateY(-6px);
}

.service-card.highlight::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 18px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(8, 230, 214, 0.12),
    transparent
  );
  filter: blur(16px);
  z-index: -1;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 36px;
  align-items: start;
}

.contact-left p {
  color: var(--muted);
  font-size: 14px;
  text-align: left;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.01),
    rgba(255, 255, 255, 0.02)
  );
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.input {
  padding: 12px 14px;
  background: transparent;
  border-radius: 8px;
  border: 2px solid rgba(8, 230, 214, 0.12);
  outline: none;
  color: inherit;
  font-size: 14px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6) inset;
}

.textarea {
  min-height: 120px;
  resize: vertical;
}

.btn-send {
  margin-top: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  border: none;
  font-weight: 700;
  background: var(--neon);
  color: #021010;
  cursor: pointer;
  box-shadow: 0 6px 28px rgba(8, 230, 214, 0.16);
}

.btn-send:active {
  transform: translateY(1px);
}

/* Fullscreen Loader */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
}

/* GIF size */
#loader img {
  width: 300px;
  height: 300px;
}

/* footer */
footer {
  text-align: center;
  padding-right: 20px;
  padding-bottom: 20px;
}

.media {
  color: inherit;
  text-decoration: none;
}

.media i {
  color: white;
  font-size: 30px;
  padding-bottom: 30px;
}

.media i:hover {
  color: var(--accent);
  text-shadow: 0px 2px 8px var(--neon);
}

.text {
  color: #fff;
}

.text span {
  color: var(--neon);
  text-shadow: var(--accent);
}

/* Responsif */
@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 26px;
    padding-top: 120px;
  }

  .hero-left h1 {
    font-size: 34px;
  }

  .avatar {
    width: 220px;
    height: 220px;
  }

  .about {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .about .avatar-small {
    width: 320px;
    height: 320px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .brand {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .brand-gif {
    display: block;
  }

  .brand h1 {
    padding-left: 0;
  }

  nav ul {
    display: none;
  }

  .avatar {
    width: 180px;
    height: 180px;
  }

  .about .avatar-small {
    width: 260px;
    height: 260px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .about p {
    text-align: center;
  }
}
@media (max-width: 520px) {
  .brand {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .brand-gif {
    display: block;
  }

  .brand h1 {
    padding-left: 0;
  }

  nav ul {
    display: none;
  }

  .avatar {
    width: 180px;
    height: 180px;
  }

  .about .avatar-small {
    width: 260px;
    height: 260px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .about p {
    text-align: center;
  }
}
@media (max-width: 480px) {
  .brand {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .brand-gif {
    display: block;
  }

  .brand h1 {
    padding-left: 0;
  }

  nav ul {
    display: none;
  }

  .avatar {
    width: 180px;
    height: 180px;
  }

  .about .avatar-small {
    width: 260px;
    height: 260px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .about p {
    text-align: center;
  }
}
