@import url("https://fonts.googleapis.com/css2?family=Orbitron:wght@700&family=Montserrat:wght@400;600&display=swap");

/* === VARIABEL WARNA & UTAMA === */
:root {
  --bg-color: #0a0a14;
  --primary-color: #1a1a2e;
  --accent-color: #00e5ff;
  --accent-glow: rgba(0, 229, 255, 0.6);
  --text-color: #c0c0e0;
  --heading-color: #ffffff;
  --border-color: rgba(42, 42, 62, 0.8);
  --nebula-start: #3a1c71;
  --nebula-end: #191935;
}

/* === STYLE GLOBAL & RESET === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Montserrat", sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.7;
  overflow-x: hidden;
}

/* === LATAR BELAKANG KOSMIK === */
#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1;
}
.background-nebula {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 0;
  background: linear-gradient(
    250deg,
    var(--nebula-start),
    var(--nebula-end),
    var(--bg-color)
  );
  background-size: 200% 200%;
  animation: move-bg 25s ease infinite;
}
@keyframes move-bg {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* === HEADER & NAVIGASI === */
header {
  background: rgba(10, 10, 20, 0.7);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  z-index: 100;
  transition: background 0.3s ease;
}
nav {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}
nav .logo {
  font-family: "Orbitron", sans-serif;
  font-size: 1.8rem;
  color: var(--heading-color);
  text-decoration: none;
  text-shadow: 0 0 8px var(--accent-glow);
}
nav .nav-links {
  list-style: none;
  display: flex;
  gap: 2.5rem;
}
nav a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.3s ease, text-shadow 0.3s ease;
  position: relative;
  padding-bottom: 5px;
}
nav a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}
nav a:hover::after,
nav a.active::after {
  width: 100%;
}
nav a:hover,
nav a.active {
  color: var(--accent-color);
  text-shadow: 0 0 5px var(--accent-color);
}
.hamburger-menu {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}
.hamburger-menu .bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: var(--heading-color);
  transition: all 0.3s ease-in-out;
}

/* === ELEMEN & ANIMASI UMUM === */
main {
  padding-top: 80px;
  position: relative;
  z-index: 2;
}
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 6rem 2rem;
}
section {
  border-bottom: 1px solid var(--border-color);
}
section:last-of-type {
  border-bottom: none;
}
.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.section-title {
  font-family: "Orbitron", sans-serif;
  font-size: 2.5rem;
  color: var(--heading-color);
  text-align: center;
  margin-bottom: 4rem;
  text-transform: capitalize;
  text-shadow: 0 0 10px var(--accent-glow);
}
.cta-button {
  display: inline-block;
  background: var(--accent-color);
  color: var(--bg-color);
  padding: 0.8rem 1.8rem;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  cursor: pointer;
  clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%, 0 10px);
}
.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 20px var(--accent-glow);
}

/* === HERO SECTION === */
#hero.container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: calc(90vh - 80px);
}
.hero-text {
  flex: 1;
  min-width: 300px;
  text-align: left;
}
.hero-title {
  font-family: "Orbitron", sans-serif;
  font-size: 4.5rem;
  line-height: 1.1;
  color: var(--heading-color);
  margin-bottom: 0.5rem;
  text-shadow: 0 0 15px var(--accent-glow);
}
.hero-text h2 {
  font-size: 1.5rem;
  color: var(--accent-color);
  margin-bottom: 1.5rem;
  font-weight: 600;
}
.highligh {
  text-align: justify;
}
.hero-text p {
  font-size: 1.1rem;
  max-width: 500px;
  margin-bottom: 2.5rem;
}
.profile-image-container {
  flex-shrink: 0;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--accent-color);
  box-shadow: 0 0 25px var(--accent-glow), inset 0 0 15px rgba(0, 0, 0, 0.5);
  position: relative;
}
.profile-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* === SKILL SET BARU (DENGAN GAMBAR & DIAGRAM) === */
.skill-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
}
.skill-card-new {
  background: linear-gradient(
    145deg,
    rgba(26, 26, 46, 0.7),
    rgba(10, 10, 20, 0.7)
  );
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  transition: transform 0.3s, box-shadow 0.3s;
}
.skill-card-new:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 15px var(--accent-glow);
}
.skill-logo-wrapper {
  position: relative;
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.skill-logo {
  max-width: 36px;
  max-height: 36px;
  object-fit: contain;
  position: relative;
  z-index: 3;
}
.skill-progress-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.skill-progress-ring__circle-bg,
.skill-progress-ring__circle {
  fill: none;
  stroke-width: 3;
}
.skill-progress-ring__circle-bg {
  stroke: var(--primary-color);
}
.skill-progress-ring__circle {
  stroke: var(--accent-color);
  stroke-linecap: round;
  transition: stroke-dasharray 1.5s 0.3s ease-out;
}
.skill-info {
  text-align: left;
}
.skill-info h4 {
  font-family: "Orbitron", sans-serif;
  color: var(--heading-color);
  font-size: 1.2rem;
  margin: 0;
}
.skill-info span {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* === TIMELINE (PENGALAMAN & PENDIDIKAN) === */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding-top: 2rem;
}
.timeline::after {
  content: "";
  position: absolute;
  width: 3px;
  background-color: var(--primary-color);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -1.5px;
}
.timeline-item {
  padding: 10px 40px;
  position: relative;
  width: 50%;
}
.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}
.timeline-item:nth-child(even) {
  left: 50%;
  text-align: left;
}
.timeline-item::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  top: 20px;
  border-radius: 50%;
  z-index: 1;
  background-color: var(--accent-color);
  border: 3px solid var(--bg-color);
  box-shadow: 0 0 10px var(--accent-glow);
}
.timeline-item:nth-child(odd)::after {
  right: -8px;
}
.timeline-item:nth-child(even)::after {
  left: -8px;
}
.timeline-content {
  padding: 25px;
  background-color: var(--primary-color);
  border: 1px solid var(--border-color);
}
.timeline-content h3 {
  color: var(--heading-color);
  font-weight: 700;
  font-size: 1.2rem;
}
.timeline-content .company,
.timeline-content .institution {
  font-weight: 600;
  color: var(--accent-color);
  margin: 0.25rem 0;
}
.timeline-content .period {
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 1rem;
}

/* === KARTU KONSISTEN (PROJEK, ARTIKEL, AKTIVITAS) === */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2.5rem;
}
.list-card-container {
  display: grid;
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}
.card-consistent,
.project-card,
.list-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(
    145deg,
    rgba(26, 26, 46, 0.7),
    rgba(10, 10, 20, 0.7)
  );
  border: 1px solid var(--border-color);
  backdrop-filter: blur(5px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  clip-path: polygon(
    0 0,
    100% 0,
    100% calc(100% - 20px),
    calc(100% - 20px) 100%,
    0 100%
  );
  overflow: hidden;
}
.card-consistent:hover,
.project-card:hover,
.list-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 0 25px var(--accent-glow);
  border-color: var(--accent-color);
}
.card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}
.card-content {
  padding: 1.5rem;
  text-align: left;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.card-content h3 {
  color: var(--heading-color);
  margin-bottom: 0.5rem;
}
.card-content p {
  flex-grow: 1;
  margin-bottom: 1rem;
}
.card-footer {
  font-size: 0.9rem;
  color: var(--accent-color);
  font-weight: 600;
  margin-top: auto;
}
.card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.article-card-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  height: 100%;
}
.article-card-link .project-content {
  padding: 1.5rem;
}

/* === HALAMAN DETAIL ARTIKEL === */
.single-article-page .container {
  max-width: 800px;
}

.article-full h1 {
  font-family: "Orbitron", sans-serif;
  color: var(--heading-color);
  font-size: 2.8rem;
  margin-bottom: 0.8rem;
  text-align: left;
}

.article-full .article-meta {
  font-size: 0.95rem;
  color: #a0a0a0;
  margin-bottom: 2.5rem;
  text-align: left;
}

.article-header-image {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 2.5rem;
  display: block;
}

.article-content-full {
  text-align: justify;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #e0e0e0;
}

.article-content-full p {
  margin-bottom: 1.2rem;
}

.article-content-full h2,
.article-content-full h3 {
  font-family: "Orbitron", sans-serif;
  color: var(--heading-color);
  margin: 3rem 0 1.2rem 0;
}

.article-content-full h2 {
  font-size: 2.1rem;
  color: var(--accent-color, #00e5ff);
}

.article-content-full h3 {
  font-size: 1.6rem;
  color: var(--accent-color, #00c2ff);
}

.article-content-full ul,
.article-content-full ol {
  margin-left: 2rem;
  margin-bottom: 1.5rem;
  padding-left: 0;
  list-style-position: outside;
}

.article-content-full li {
  margin-bottom: 0.8rem;
  padding-left: 0.2em;
}

.article-content-full pre {
  background-color: #1e1e2e;
  padding: 1rem;
  border-radius: 5px;
  overflow-x: auto;
  margin-bottom: 1.5rem;
  font-family: "Fira Code", "Cascadia Code", monospace;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #e0e0e0;
}

.article-content-full blockquote {
  border-left: 4px solid var(--accent-color, #00c2ff);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: #b0b0b0;
}
/* === HALAMAN KONTAK === */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  background: linear-gradient(
    145deg,
    rgba(26, 26, 46, 0.7),
    rgba(10, 10, 20, 0.7)
  );
  border: 1px solid var(--border-color);
  padding: 3rem;
  clip-path: polygon(
    0 0,
    100% 0,
    100% calc(100% - 20px),
    calc(100% - 20px) 100%,
    0 100%
  );
  text-align: left;
}

.contact-info h3,
.contact-form h3 {
  font-family: "Orbitron", sans-serif;
  color: var(--accent-color);
  margin-bottom: 1.5rem;
  text-transform: capitalize;
}

/* === Sosial Media & Kontak === */
.social-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.social-links a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s;
  display: flex;
  align-items: center;
  word-break: break-word;
}

.social-links a:hover {
  color: var(--accent-color);
}

.social-links i {
  margin-right: 10px;
  color: var(--accent-color);
  min-width: 20px;
}

/* === Informasi Tarif === */
.rate-info .rate {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--heading-color);
}

.rate-info .note {
  font-size: 0.9rem;
  opacity: 0.7;
}

/* === Form Kontak === */
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem;
  margin-bottom: 1.2rem;
  border: 1px solid var(--border-color);
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: "Montserrat", sans-serif;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 2px rgba(0, 194, 255, 0.3);
}

/* === Tombol Kirim === */
.cta-button {
  background-color: var(--accent-color);
  color: #fff;
  padding: 0.8rem 1.5rem;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s;
  font-family: "Orbitron", sans-serif;
}

.cta-button:hover {
  background-color: #00b8e6;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    padding: 2rem;
  }

  .social-links {
    flex-direction: column;
    gap: 0.8rem;
  }

  .cta-button {
    width: 100%;
    text-align: center;
  }
}
/* === FOOTER === */
footer {
  background-color: var(--primary-color);
  border-top: 1px solid var(--border-color);
  padding: 0;
  margin-top: 4rem;
  text-align: left;
  position: relative;
  z-index: 5;
}
.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  padding-top: 4rem;
  padding-bottom: 4rem;
}
.footer-column {
  flex: 1;
  min-width: 220px;
}
.footer-column .logo {
  display: inline-block;
  margin-bottom: 1rem;
  font-family: "Orbitron", sans-serif;
  font-size: 1.8rem;
  color: var(--heading-color);
  text-decoration: none;
  text-shadow: 0 0 8px var(--accent-glow);
}
.footer-column h4 {
  font-family: "Orbitron", sans-serif;
  color: var(--heading-color);
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}
.footer-column p {
  color: var(--text-color);
  opacity: 0.8;
  max-width: 300px;
}
.footer-column.links ul {
  list-style: none;
}
.footer-column.links a {
  color: var(--text-color);
  text-decoration: none;
  display: block;
  margin-bottom: 0.8rem;
  transition: color 0.3s, transform 0.3s;
}
.footer-column.links a:hover {
  color: var(--accent-color);
  transform: translateX(5px);
}
.social-links-footer {
  display: flex;
  gap: 1.5rem;
}
.social-links-footer a {
  color: var(--text-color);
  font-size: 1.5rem;
  transition: color 0.3s, transform 0.3s;
}
.social-links-footer a:hover {
  color: var(--accent-color);
  transform: translateY(-3px);
}
.footer-bottom {
  border-top: 1px solid var(--border-color);
  text-align: center;
  padding: 1.5rem 2rem;
  font-size: 0.9rem;
  opacity: 0.7;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  nav .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    width: 70%;
    height: 100vh;
    background: rgba(10, 10, 20, 0.9);
    backdrop-filter: blur(15px);
    justify-content: center;
    align-items: center;
    gap: 3rem;
    transform: translateX(100%);
    transition: transform 0.4s ease-in-out;
  }
  nav .nav-links.active {
    transform: translateX(0);
  }
  .hamburger-menu {
    display: block;
  }
  .hamburger-menu.active .bar:nth-child(2) {
    opacity: 0;
  }
  .hamburger-menu.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .hamburger-menu.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  .container {
    padding: 4rem 1.5rem;
  }
  .section-title {
    font-size: 2rem;
  }
  #hero.container {
    flex-direction: column;
    text-align: center;
    justify-content: center;
    padding: 2rem 1.5rem;
  }
  .hero-text {
    text-align: center;
    order: 2;
  }
  .profile-image-container {
    order: 1;
    width: 200px;
    height: 200px;
    margin-bottom: 2rem;
  }
  .hero-title {
    font-size: 3rem;
  }
  .hero-text p {
    margin-left: auto;
    margin-right: auto;
  }
  .timeline::after {
    left: 20px;
  }
  .timeline-item {
    width: 100%;
    padding-left: 60px;
    padding-right: 15px;
  }
  .timeline-item:nth-child(even) {
    left: 0%;
  }
  .timeline-item::after {
    left: 12px;
  }
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  .footer-column p {
    margin-left: auto;
    margin-right: auto;
  }
  .social-links-footer {
    justify-content: center;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}
