/* ========================================
   RESET & DASAR
======================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, sans-serif;
  background: #080b12;
  color: #ffffff;
  line-height: 1.6;
}

/* ========================================
   BACKGROUND
======================================== */

body::before {
  content: "";
  position: fixed;
  width: 400px;
  height: 400px;
  background: #2563eb;
  filter: blur(180px);
  opacity: 0.15;
  top: -100px;
  left: -100px;
  z-index: -1;
}

body::after {
  content: "";
  position: fixed;
  width: 350px;
  height: 350px;
  background: #7c3aed;
  filter: blur(180px);
  opacity: 0.12;
  right: -100px;
  bottom: -100px;
  z-index: -1;
}

/* ========================================
   NAVBAR
======================================== */

header {
  display: flex;
  position: sticky;
  top: 0;
  z-index: 1000;

  background: rgba(8, 11, 18, 0.75);
  backdrop-filter: blur(15px);

  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  justify-content: center;
}

header {
  width: 100%;

  position: sticky;
  top: 0;

  z-index: 1000;

  background: rgba(8, 11, 18, 0.9);

  backdrop-filter: blur(15px);

  border-bottom: 1px solid rgba(59, 130, 246, 0.15);

  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.25);
}

/* Container navbar */

.navbar {
  max-width: 1150px;

  margin: auto;

  padding: 18px 25px;

  display: flex;

  justify-content: space-between;

  align-items: center;
}

/* ========================================
   LOGO / NAMA WEBSITE
======================================== */

.logo {
  margin: 0;

  font-size: 25px;

  font-weight: bold;

  color: #ffffff;

  letter-spacing: -0.5px;
}

/* Titik biru setelah nama */

.logo::after {
  content: ".";

  color: #3b82f6;
}

/* ========================================
   MENU NAVIGASI
======================================== */

.nav-links {
  display: flex;

  align-items: center;

  gap: 8px;

  list-style: none;

  margin: 0;

  padding: 0;
}

/* Link */

.nav-links a {
  position: relative;

  display: block;

  padding: 9px 15px;

  color: #94a3b8;

  text-decoration: none;

  font-size: 14px;

  font-weight: 500;

  border-radius: 8px;

  transition: all 0.3s ease;
}

/* Hover */

.nav-links a:hover {
  color: #ffffff;

  background: rgba(59, 130, 246, 0.08);
}

/* Garis biru di bawah */

.nav-links a::after {
  content: "";

  position: absolute;

  left: 50%;

  bottom: 2px;

  width: 0;

  height: 2px;

  background: #3b82f6;

  border-radius: 10px;

  transform: translateX(-50%);

  transition: width 0.3s ease;
}

/* Saat hover */

.nav-links a:hover::after {
  width: 55%;
}

/* Menu yang sedang aktif */

.nav-links a.active {
  color: #3b82f6;

  background: rgba(59, 130, 246, 0.08);
}

/* Garis menu aktif */

.nav-links a.active::after {
  width: 55%;
}

/* ========================================
   HERO
======================================== */

.hero {
  max-width: 1150px;
  min-height: 90vh;

  margin: auto;
  padding: 80px 20px;

  display: flex;
  justify-content: space-between;
  align-items: center;

  gap: 70px;
}

.hero-text {
  flex: 1;
}

/* tulisan kecil */

.greeting {
  color: #3b82f6;

  font-size: 18px;
  font-weight: bold;

  margin-bottom: 10px;
}

/* nama */

.hero h1 {
  font-size: 58px;
  line-height: 1.1;

  margin-bottom: 20px;

  background: linear-gradient(90deg, #ffffff, #93c5fd);

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* pekerjaan */

.hero h3 {
  color: #94a3b8;

  font-size: 20px;
  font-weight: normal;

  margin-bottom: 25px;
}

/* deskripsi */

.hero-text > p:not(.greeting) {
  color: #94a3b8;

  max-width: 600px;

  margin-bottom: 30px;
}

/* ========================================
   BUTTON
======================================== */

.button {
  display: inline-block;

  padding: 13px 24px;

  border-radius: 8px;

  background: linear-gradient(135deg, #2563eb, #4f46e5);

  color: white;

  text-decoration: none;

  font-weight: bold;

  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.25);

  transition: 0.3s;
}

.button:hover {
  transform: translateY(-3px);

  box-shadow: 0 15px 35px rgba(37, 99, 235, 0.4);
}

/* ========================================
   FOTO PROFILE
======================================== */

.hero-image {
  flex: 1;

  display: flex;
  justify-content: center;

  position: relative;
}

/* lingkaran cahaya di belakang foto */

.hero-image::before {
  content: "";

  position: absolute;

  width: 300px;
  height: 300px;

  border-radius: 50%;

  background: #2563eb;

  opacity: 0.15;

  filter: blur(40px);
}

/* foto */

.hero-image img {
  position: relative;

  width: 280px;
  height: 280px;

  object-fit: cover;

  border-radius: 50%;

  border: 5px solid rgba(255, 255, 255, 0.1);

  box-shadow:
    0 0 0 10px rgba(37, 99, 235, 0.05),
    0 0 60px rgba(37, 99, 235, 0.3);

  transition: 0.5s;
}

.hero-image img:hover {
  transform: scale(1.05);
}

/* ========================================
   SECTION
======================================== */

.section {
  max-width: 1150px;

  margin: auto;

  padding: 100px 20px;
}

/* judul section */

.section-title {
  text-align: center;

  font-size: 38px;

  margin-bottom: 10px;
}

/* garis kecil di bawah judul */

.section-title::after {
  content: "";

  display: block;

  width: 50px;
  height: 3px;

  margin: 12px auto;

  background: #3b82f6;

  border-radius: 10px;
}

.section-description {
  text-align: center;

  color: #64748b;

  margin-bottom: 50px;
}

/* ========================================
   ABOUT
======================================== */

.about-container {
  display: flex;

  gap: 25px;
}

.about-text,
.biodata {
  flex: 1;

  padding: 35px;

  background: rgba(255, 255, 255, 0.04);

  border: 1px solid rgba(255, 255, 255, 0.08);

  border-radius: 16px;

  backdrop-filter: blur(10px);

  transition: 0.3s;
}

.about-text:hover,
.biodata:hover {
  transform: translateY(-5px);

  border-color: rgba(59, 130, 246, 0.4);
}

.about-text h3 {
  font-size: 24px;

  margin-bottom: 15px;
}

.about-text p {
  color: #94a3b8;

  margin-bottom: 15px;
}

.biodata p {
  color: #94a3b8;

  padding: 10px 0;

  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.biodata strong {
  color: white;
}

/* ========================================
   TIMELINE
======================================== */

.timeline {
  max-width: 800px;

  margin: auto;

  position: relative;
}

/* garis timeline */

.timeline::before {
  content: "";

  position: absolute;

  left: 10px;
  top: 0;
  bottom: 0;

  width: 2px;

  background: #2563eb;
}

.timeline-item {
  position: relative;

  margin-bottom: 30px;

  margin-left: 35px;

  padding: 25px;

  background: rgba(255, 255, 255, 0.04);

  border: 1px solid rgba(255, 255, 255, 0.08);

  border-radius: 14px;

  transition: 0.3s;
}

/* titik timeline */

.timeline-item::before {
  content: "";

  position: absolute;

  left: -31px;
  top: 30px;

  width: 12px;
  height: 12px;

  background: #3b82f6;

  border-radius: 50%;

  box-shadow: 0 0 15px rgba(59, 130, 246, 0.8);
}

.timeline-item:hover {
  transform: translateX(8px);

  border-color: rgba(59, 130, 246, 0.4);
}

.year {
  color: #3b82f6;

  font-size: 14px;

  font-weight: bold;
}

.timeline-item h3 {
  margin: 8px 0;

  font-size: 21px;
}

.timeline-item p {
  color: #94a3b8;
}

/* ========================================
   ACHIEVEMENTS
======================================== */

.card-container {
  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 25px;
}

.card {
  position: relative;

  padding: 30px;

  background: rgba(255, 255, 255, 0.04);

  border: 1px solid rgba(255, 255, 255, 0.08);

  border-radius: 16px;

  overflow: hidden;

  transition: 0.4s;
}

/* garis biru di atas card */

.card::before {
  content: "";

  position: absolute;

  top: 0;
  left: 0;

  width: 100%;
  height: 3px;

  background: linear-gradient(90deg, #2563eb, #7c3aed);
}

.card:hover {
  transform: translateY(-8px);

  border-color: rgba(59, 130, 246, 0.4);

  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.card h3 {
  font-size: 21px;

  margin-bottom: 12px;
}

.card p {
  color: #94a3b8;
}

.badge {
  display: inline-block;

  margin-top: 20px;

  padding: 5px 12px;

  border-radius: 20px;

  background: rgba(37, 99, 235, 0.15);

  border: 1px solid rgba(59, 130, 246, 0.3);

  color: #60a5fa;

  font-size: 12px;

  font-weight: bold;
}

/* ========================================
   SKILLS
======================================== */

.skills-container {
  display: grid;

  grid-template-columns: repeat(4, 1fr);

  gap: 20px;
}

.skill {
  padding: 30px 20px;

  text-align: center;

  background: rgba(255, 255, 255, 0.04);

  border: 1px solid rgba(255, 255, 255, 0.08);

  border-radius: 14px;

  transition: 0.3s;
}

.skill:hover {
  transform: translateY(-7px);

  background: rgba(37, 99, 235, 0.08);

  border-color: rgba(59, 130, 246, 0.4);
}

.skill h3 {
  color: #60a5fa;

  margin-bottom: 10px;
}

.skill p {
  color: #94a3b8;

  font-size: 14px;
}

/* ========================================
   CONTACT
======================================== */

.contact {
  text-align: center;

  padding-bottom: 120px;
}

.contact p {
  color: #94a3b8;

  margin-bottom: 15px;
}

/* ========================================
   FOOTER
======================================== */

footer {
  padding: 30px;

  text-align: center;

  background: #05070c;

  border-top: 1px solid rgba(255, 255, 255, 0.08);

  color: #64748b;

  font-size: 14px;
}

/* ========================================
   RESPONSIVE
======================================== */

@media (max-width: 768px) {
  /* NAVBAR */

  .navbar {
    flex-direction: column;

    gap: 15px;
  }

  .nav-links {
    gap: 15px;

    flex-wrap: wrap;

    justify-content: center;
  }

  /* HERO */

  .hero {
    flex-direction: column-reverse;

    text-align: center;

    padding-top: 60px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero h3 {
    font-size: 17px;
  }

  .hero-image img {
    width: 220px;
    height: 220px;
  }

  /* ABOUT */

  .about-container {
    flex-direction: column;
  }

  /* ACHIEVEMENTS */

  .card-container {
    grid-template-columns: 1fr;
  }

  /* SKILLS */

  .skills-container {
    grid-template-columns: repeat(2, 1fr);
  }

  /* SECTION */

  .section {
    padding: 70px 20px;
  }
}

/* ========================================
   RESPONSIVE HP KECIL
======================================== */

@media (max-width: 480px) {
  .hero h1 {
    font-size: 32px;
  }

  .nav-links {
    font-size: 13px;
  }

  .skills-container {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 30px;
  }
}
