:root {
  --bg: #06060a;
  --card: #0d0f14;
  --muted: #9aa4b2;
  --neon-cyan: #00f0ff;
  --neon-pink: #ff2dd4;
  --neon-green: #2dff88;
  --glass: rgba(255, 255, 255, 0.03);
  --glass-2: rgba(255, 255, 255, 0.02);
  --radius: 14px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    Roboto, "Helvetica Neue", Arial;
}
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
  margin: 0;
  background: radial-gradient(
      1200px 600px at 10% 10%,
      rgba(0, 240, 255, 0.03),
      transparent
    ),
    radial-gradient(
      1000px 400px at 95% 80%,
      rgba(255, 45, 212, 0.03),
      transparent
    ),
    var(--bg);
  color: #e6eef6;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

/* Layout */
.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 28px;
}

/* Navbar */
header {
  position: sticky;
  top: 12px;
  z-index: 50;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.02),
    rgba(255, 255, 255, 0.01)
  );
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(0, 255, 255, 0.03);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-pink));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #04060a;
  font-weight: 700;
}
.logo-name {
  font-weight: 700;
}
.logo-profile {
  font-size: 12px;
  color: var(--muted);
}
nav ul {
  display: flex;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 600;
  scroll-behavior: smooth;
}
nav a:hover {
  color: var(--neon-cyan);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.06);
}
.cta {
  display: flex;
  gap: 8px;
  align-items: center;
}
.btn {
  background: linear-gradient(90deg, var(--neon-pink), var(--neon-cyan));
  color: #071019;
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  border: none;
}
.ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--muted);
  cursor: pointer;
}
/* Mobile Menu */
.mobile-toggle {
  display: none;
}
#mobileMenu {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin-top: 12px;
  transition: max-height 0.4s ease, opacity 0.3s ease;
}
#mobileMenu.active {
  max-height: 300px;
  opacity: 1;
}
.card-menu {
  background: linear-gradient(180deg, var(--card), #081019);
  padding: 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}
.mobile-menu {
  display: block;
  color: var(--muted);
  text-decoration: none;
  text-align: center;
  border-radius: 8px;
  font-weight: 600;
  transition: color 0.3s, box-shadow 0.3s;
}

/* Mobile */
@media (max-width: 900px) {
  nav ul {
    display: none;
  }
  #downloadCv {
    display: none;
  }
  .mobile-toggle {
    display: inline-flex;
  }

  /* Hero */
  .tag {
    font-size: 12px;
  }
  .profile img {
    display: none;
  }

  /* Service */
  #services {
    padding-top: 50px;
  }

  /* Skills */
  #skills {
    padding-top: 50px;
  }

  /* Projects */
  #projects {
    padding-top: 50px;
  }

  /* Contact */
  #contact {
    padding-top: 50px;
  }
}

/* Hero */
.hero {
  scroll-margin-top: 120px;
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 50px;
  padding: 36px 0;
  align-items: center;
}
.hero-card {
  background: linear-gradient(180deg, var(--glass), transparent);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}
.title {
  font-size: 28px;
  margin: 0;
}
.subtitle {
  color: var(--muted);
  margin-top: 6px;
}
.social-links {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}
.social-links a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 2rem;
  height: 2rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  color: #fff;
  font-size: 1rem;
  text-decoration: none;
  transition: 0.3s linear;
}
.social-links a:hover {
  background: linear-gradient(90deg, var(--neon-pink), var(--neon-cyan));
  color: #000;
  transform: translateY(-4px);
}
.download-cv {
  margin-top: 18px;
  gap: 1rem;
  display: flex;
  flex-wrap: wrap;
}
.hero-tag {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.hero-theme {
  display: flex;
  gap: 1em;
  align-items: center;
  margin-top: 15px;
  font-size: 13px;
}
.profile img {
  width: 19rem;
  height: 19rem;
  border: 2px solid var(--neon-cyan);
  border-radius: 50%;
  float: right;
  margin-right: 4.5rem;
}

/* About */
.about {
  scroll-margin-top: 110px;
}
.about h2 {
  text-align: center;
  margin-top: 0;
}
.about-tag {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.card {
  background: linear-gradient(180deg, var(--card), #081019);
  padding: 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

/* Services */
#services {
  scroll-margin-top: 100px;
}
h2 {
  text-align: center;
}
.service {
  display: flex;
  gap: 12px;
  align-items: center;
}
.icon-bubble {
  width: 45px;
  height: 45px;
  padding: 0 20px;
  border-radius: 12px;
  background: linear-gradient(
    135deg,
    rgba(0, 240, 255, 0.06),
    rgba(255, 45, 212, 0.06)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--neon-cyan);
  border: 1px solid rgba(0, 240, 255, 0.06);
}
.desc-service {
  padding-top: 5px;
  font-size: 15px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .title {
    font-size: 24px;
  }
  h2 {
    font-size: 20px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .icon-bubble {
    width: 40px;
    height: 40px;
    padding: 0 20px;
    font-size: 80%;
    font-weight: 800;
  }
  .desc-service {
    padding-top: 5px;
    font-size: 13px;
  }
}

/* Skills */
#skills {
  scroll-margin-top: 100px;
}
.skill-name {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.skill-col {
  flex: 1;
  min-width: 220px;
}
.skill {
  margin-bottom: 12px;
}
.bar {
  height: 10px;
  background: var(--glass-2);
  border-radius: 999px;
  overflow: hidden;
}
.progress {
  height: 100%;
  border-radius: 999px;
  transform-origin: left;
  transition: width 900ms cubic-bezier(0.2, 0.9, 0.2, 1);
}
.fill-1 {
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-pink));
}
.fill-2 {
  background: linear-gradient(90deg, var(--neon-green), var(--neon-cyan));
}
.fill-3 {
  background: linear-gradient(90deg, var(--neon-pink), var(--neon-green));
}
.fill-4 {
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-green));
}
.fill-5 {
  background: linear-gradient(90deg, var(--neon-pink), var(--neon-cyan));
}
.fill-6 {
  background: linear-gradient(90deg, var(--neon-green), var(--neon-pink));
}

/* Projects */
#projects {
  scroll-margin-top: 100px;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (max-width: 600px) {
  .project-grid {
    grid-template-columns: 1fr;
  }
}
.project {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}
.project img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 7px;
}
.project-info {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.6));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
  opacity: 0;
  transition: opacity 0.25s;
}
.project:hover .project-info {
  opacity: 1;
}

/* Gallery */
#photoCarousel {
  padding: 8px;
  position: relative;
  width: 100%;
}
#photoCarousel .carousel-viewport {
  overflow: hidden;
  border-radius: 14px;
}
#photoCarousel .carousel-track {
  display: flex;
  gap: 12px;
  transition: transform 600ms cubic-bezier(0.22, 0.9, 0.3, 1);
  will-change: transform;
}

/* Setiap slide tampil satu per view */
#photoCarousel .slide {
  flex: 0 0 100%;
  max-width: 100%;
  box-sizing: border-box;
  position: relative;
  text-align: center;
}

/* Gambar */
#photoCarousel img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 6px 20px rgba(0, 240, 255, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Efek hover gambar */
#photoCarousel .slide img:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 30px rgba(0, 255, 255, 0.12);
}

/* Caption neon */
.caption {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.45);
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 1rem;
  color: var(--neon-cyan);
  text-shadow: 0 0 8px rgba(0, 255, 255, 0.6);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  opacity: 0;
  transition: opacity 0.8s ease;
}

.slide.active .caption {
  opacity: 1;
}

/* Tombol */
.carousel-controls {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.carousel-btn {
  pointer-events: auto;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(10, 14, 18, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--neon-cyan);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 22px;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: 0.2s;
}
.carousel-btn.prev {
  left: 10px;
}
.carousel-btn.next {
  right: 10px;
}
.carousel-btn:hover {
  transform: translateY(-50%) scale(1.1);
  background: rgba(0, 255, 255, 0.1);
}

/* Responsive */
@media (max-width: 900px) {
  #photoCarousel img {
    height: 400px;
  }
}
@media (max-width: 700px) {
  #photoCarousel img {
    height: 300px;
  }
}
@media (max-width: 450px) {
  #photoCarousel img {
    height: 200px;
  }
}

/* Contact */
#contact {
  scroll-margin-top: 100px;
}
.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 900px) {
  .contact-form {
    grid-template-columns: 1fr;
  }
}
input,
textarea {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 10px;
  border-radius: 8px;
  color: inherit;
}

footer {
  margin-top: 24px;
  padding: 18px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

/* Neon outlines and small touch */
.neon {
  box-shadow: 0 2px 18px rgba(0, 240, 255, 0.06);
  border: 1px solid rgba(0, 240, 255, 0.06);
}

/* small helpers */
.muted {
  color: var(--muted);
}
.tag {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.02);
  font-weight: 700;
  text-align: center;
}

/* modal */
.modal {
  position: fixed;
  inset: 0;
  background: linear-gradient(rgba(3, 6, 8, 0.66), rgba(3, 6, 8, 0.66));
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 80;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s;
}
.modal.open {
  opacity: 1;
  pointer-events: auto;
}
.modal .content {
  width: min(920px, 96%);
  background: linear-gradient(180deg, #071018, #08121a);
  padding: 18px;
  border-radius: 12px;
  border: 1px solid rgba(0, 240, 255, 0.04);
}

/* animations */
.glow-text {
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 12px rgba(0, 240, 255, 0.08);
}
