
/* =========================================================
   GLOBAL
   ========================================================= */

:root {
  --bg: #0a0a0a;
  --panel: #111111;
  --card: #151515;
  --text: #f5f5f5;
  --muted: #999999;
  --border: #292929;
  --border-light: #444444;
  --white: #ffffff;
  --black: #111111;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background:
    radial-gradient(
      circle at top right,
      rgba(255, 255, 255, 0.04),
      transparent 30%
    ),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}


/* =========================================================
   CONTAINER
   ========================================================= */

.container {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
}


/* =========================================================
   HEADER & NAVBAR
   ========================================================= */

header {
  position: sticky;
  top: 0;
  z-index: 1000;

  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  border-bottom: 1px solid #222222;
  box-shadow: 0 3px 25px rgba(70, 23, 146, 0.603);
}

nav {
  min-height: 80px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;

  color: #ffffff;

  font-size: 1.2rem;
  font-weight: 700;

  letter-spacing: 0.08em;
  text-transform: uppercase;

  white-space: nowrap;
}

.brand img {
  width: 44px;
  height: 44px;

  object-fit: contain;
  border-radius: 8px;
}

.nav-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;

  gap: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-links a {
  padding: 9px 16px;

  color: #eeeeee;
  background: #111111;

  border: 1px solid #292929;
  border-radius: 34px;

  transition:
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
}

.nav-links a:hover {
  background: #ffffff;
  color: #111111;
  border-color: #ffffff;
  transform: translateY(-2px);
}

.nav-links a.active {
  background: #ffffff;
  color: #111111;
  border-color: #ffffff;
}


/* =========================================================
   THEME TOGGLE
   ========================================================= */

.theme-toggle {
  position: relative;

  width: 64px;
  min-width: 64px;
  height: 34px;

  padding: 0;

  border: 1px solid #444444;
  border-radius: 999px;

  background: #1a1a1a;

  cursor: pointer;

  transition: 0.3s ease;
}

.toggle-circle {
  position: absolute;

  top: 3px;
  left: 4px;

  width: 26px;
  height: 26px;

  border-radius: 50%;
  background: #ffffff;

  transition: transform 0.35s ease;

  z-index: 2;
}

.theme-icon {
  position: absolute;

  top: 50%;

  transform: translateY(-50%);

  font-size: 14px;
  line-height: 1;

  pointer-events: none;
  z-index: 3;
}

.moon {
  right: 9px;
  color: #ffffff;
}

.sun {
  left: 9px;
  color: #111111;
  opacity: 0;
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
  padding: 100px 0 60px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;

  align-items: center;

  gap: 40px;
}

.eyebrow {
  margin-bottom: 16px;

  color: #d4d4d4;

  font-size: 0.85rem;
  font-weight: 700;

  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 18px;

  color: #ffffff;

  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.05;

  letter-spacing: -0.05em;
}

.hero p {
  max-width: 620px;

  margin: 0;

  color: #999999;

  font-size: 1.08rem;
  line-height: 1.8;
}


/* =========================================================
   BUTTON
   ========================================================= */

.actions {
  display: flex;
  flex-wrap: wrap;

  gap: 16px;

  margin-top: 28px;
}

.btn {
  display: inline-block;

  padding: 14px 22px;

  border-radius: 999px;

  font-weight: 700;

  transition:
    transform 0.25s ease,
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
  text-decoration: none;
  

}

.btn-primary {
  background: #ffffff;
  color: #0a0a0a;

  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.08);
}

.btn-primary:hover {
  background: #e5e5e5;
}

.btn-secondary {
  background: transparent;
  color: #ffffff;

  border: 1px solid #444444;
}

.btn-secondary:hover {
  background: #ffffff;
  color: #111111;
  border-color: #ffffff;
}


/* =========================================================
   PROFILE CARD
   ========================================================= */

.profile-card {
  padding: 22px;

  background: #111111;

  border: 1px solid #252525;
  border-radius: 34px;

  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);

  transition:
    transform 0.4s ease,
    border-color 0.4s ease,
    box-shadow 0.4s ease;
}

.profile-card:hover {
  transform: translateY(-5px);

  border-color: #3a3a3a;

  box-shadow: 0 30px 70px rgba(56, 2, 126, 0.486);
}

.avatar {
  width: 100%;
  aspect-ratio: 1;

  display: grid;
  place-items: center;

  overflow: hidden;

  background: #ffffff;

  border: 1px solid #ffffff;
  border-radius: 22px;
}

.avatar img {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: cover;

  transition:
    transform 0.4s ease,
    filter 0.4s ease;
}

.profile-card:hover .avatar img {
  transform: scale(1.03);
}


/* =========================================================
   STATS
   ========================================================= */

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);

  gap: 12px;

  margin-top: 18px;
}

.stat {
  padding: 16px 12px;

  text-align: center;

  background: #151515;

  border: 1px solid #292929;
  border-radius: 14px;

  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.stat strong {
  display: block;

  color: #ffffff;

  font-size: 1.3rem;
}

.stat span {
  color: #888888;
  font-size: 0.8rem;
}


/* =========================================================
   SECTION
   ========================================================= */

section {
  padding: 70px 0;
}

.section-title {
  margin: 0 0 18px;

  color: #ffffff;

  font-size: clamp(1.9rem, 3vw, 2.6rem);
  line-height: 1.1;

  letter-spacing: -0.04em;
}

.section-copy {
  max-width: 750px;

  margin: 0 0 28px;

  color: #999999;

  line-height: 1.8;
}


/* =========================================================
   GRID
   ========================================================= */

.grid {
  display: grid;
  gap: 22px;
}

.about-grid,
.project-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}


/* =========================================================
   CARD
   ========================================================= */

.card {
  padding: 22px;

  background: #111111;

  border: 1px solid #252525;
  border-radius: 18px;

  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);

  transition:
    transform 0.3s ease,
    background 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.card:hover {
  background: #151515;

  border-color: #444444;

  transform: translateY(-5px);

  box-shadow: 0 20px 45px rgba(49, 1, 104, 0.411);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 12px;

  color: #ffffff;

  font-size: 1.2rem;
}

.card p,
.card li {
  color: #999999;
}


/* Logo card - DARK MODE */
.card-title img {
  filter: brightness(0) invert(1);
}

/* Logo card - LIGHT MODE */
body.light-mode .card-title img {
  filter: brightness(0);
}




/* =========================================================
   CARD TITLE
   ========================================================= */

.card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 15px;

  margin-bottom: 12px;
}

.card-title h3 {
  margin: 0;
}

.card-title img {
  width: 40px;
  height: 40px;

  object-fit: cover;
  aspect-ratio: 1;

  border-radius: 8px;

  transition: transform 0.3s ease;
}

.card:hover .card-title img {
  transform: scale(1.08);
}


/* =========================================================
   PROJECT
   ========================================================= */

.project-card {
  cursor: pointer;
  overflow: hidden;
}

.thumb {
  width: 100%;
  height: 200px;

  overflow: hidden;

  margin-bottom: 20px;

  background: #0a0a0a;

  border: 1px solid #333333;
  border-radius: 12px;
}

.thumb img {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: cover;

  transition: transform 0.4s ease;
}

.project-card:hover .thumb img {
  transform: scale(1.05);
}


/* =========================================================
   TAG
   ========================================================= */

.tag-list {
  display: flex;
  flex-wrap: wrap;

  gap: 8px;

  list-style: none;

  padding: 0;
  margin: 16px 0 0;
}

.tag-list li {
  padding: 6px 10px;

  color: #111111;
  background: #ffffff;

  border: none;
  border-radius: 999px;

  font-size: 0.78rem;
}


/* =========================================================
   CONTACT
   ========================================================= */

.contact-wrap {
  display: grid;

  grid-template-columns: 1.1fr 1.4fr;

  gap: 24px;
}

form {
  display: grid;
  gap: 14px;
}

input,
textarea {
  width: 100%;

  padding: 14px 16px;

  color: #ffffff;
  background: #111111;

  border: 1px solid #292929;
  border-radius: 12px;

  font: inherit;

  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

input::placeholder,
textarea::placeholder {
  color: #666666;
}

input:focus,
textarea:focus {
  outline: none;

  border-color: #ffffff;

  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06);
}

textarea {
  min-height: 140px;
  resize: vertical;
}


/* =========================================================
   FOOTER
   ========================================================= */

footer {
  padding: 26px 0 42px;

  color: #777777;

  text-align: center;

  border-top: 1px solid #222222;
}


/* =========================================================
   PROJECT MODAL
   ========================================================= */

.project-modal {
  position: fixed;
  inset: 0;

  z-index: 99999;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 25px;

  background: rgba(0, 0, 0, 0.7);

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition: opacity 0.3s ease;
}

.project-modal.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-content {
  position: relative;

  width: min(1000px, 95vw);
  max-height: 90vh;

  overflow-y: auto;

  padding: 15px;

  background: #151515;

  border: 1px solid #292929;
  border-radius: 20px;

  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);

  transform: scale(0.8);

  transition: transform 0.3s ease;
}

.project-modal.active .modal-content {
  transform: scale(1);
}

.modal-content > img {
  width: 100%;
  max-height: 65vh;

  display: block;

  object-fit: contain;

  border-radius: 12px;
}

.modal-info {
  padding: 10px 5px;
}

.modal-info h3 {
  margin: 0 0 8px;

  color: #ffffff;
}

.modal-info p {
  margin: 0;

  color: #999999;
}

.modal-close {
  position: absolute;

  top: 15px;
  right: 15px;

  width: 40px;
  height: 40px;

  border: none;
  border-radius: 50%;

  background: rgba(0, 0, 0, 0.75);

  color: #ffffff;

  font-size: 28px;

  cursor: pointer;

  z-index: 10;

  transition: transform 0.2s ease;
}

.modal-close:hover {
  transform: scale(1.1);
}


/* =========================================================
   LIGHT MODE
   ========================================================= */

body.light-mode {
  background: #f4f1ec;
  color: #171717;
}

body.light-mode header {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: #e5e5e5;

  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

body.light-mode .brand {
  color: #111111;
}

body.light-mode .nav-links a {
  background: #ffffff;
  color: #111111;

  border-color: #dddddd;

  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

body.light-mode .nav-links a:hover,
body.light-mode .nav-links a.active {
  background: #111111;
  color: #ffffff;
  border-color: #111111;
}

body.light-mode .theme-toggle {
  background: #e2e2e2;
  border-color: #cccccc;
}

body.light-mode .toggle-circle {
  transform: translateX(30px);
  background: #111111;
}

body.light-mode .moon {
  opacity: 0;
}

body.light-mode .sun {
  opacity: 1;
}

body.light-mode h1,
body.light-mode .section-title {
  color: #111111;
}

body.light-mode .eyebrow {
  color: #111111;
}

body.light-mode .hero p,
body.light-mode .section-copy {
  color: #68645f;
}

body.light-mode .btn-primary {
  background: #111111;
  color: #ffffff;

  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

body.light-mode .btn-primary:hover {
  background: #2a2a2a;
}

body.light-mode .btn-secondary {
  background: #ffffff;
  color: #111111;

  border-color: #111111;
}

body.light-mode .btn-secondary:hover {
  background: #111111;
  color: #ffffff;
}

body.light-mode .profile-card {
  background: #fafafa;

  border-color: #e5e5e5;

  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

body.light-mode .avatar {
  background: #111111;
  border-color: #222222;
}

body.light-mode .stat {
  background: #ffffff;
  border-color: #e5e5e5;

  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

body.light-mode .stat strong {
  color: #111111;
}

body.light-mode .stat span {
  color: #777777;
}

body.light-mode .card {
  background: #fafafa;

  border-color: #e5e5e5;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

body.light-mode .card:hover {
  background: #ffffff;

  border-color: #cccccc;

  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.15);
}

body.light-mode .card h3 {
  color: #111111;
}

body.light-mode .card p,
body.light-mode .card li {
  color: #666666;
}

body.light-mode .card-title img {
  filter: none;
}

body.light-mode .thumb {
  background: #111111;
  border-color: #222222;
}

body.light-mode .tag-list li {
  background: #111111;
  color: #ffffff;
}

body.light-mode input,
body.light-mode textarea {
  background: #ffffff;
  color: #111111;

  border-color: #dddddd;
}

body.light-mode input::placeholder,
body.light-mode textarea::placeholder {
  color: #999999;
}

body.light-mode input:focus,
body.light-mode textarea:focus {
  border-color: #111111;

  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

body.light-mode footer {
  color: #777777;
  border-top-color: #eeeeee;
}

body.light-mode .modal-content {
  background: #ffffff;
  border-color: #dddddd;
}

body.light-mode .modal-info h3 {
  color: #111111;
}

body.light-mode .modal-info p {
  color: #666666;
}


/* =========================================================
   TABLET
   601px - 900px
   ========================================================= */

@media (max-width: 900px) {

  .container {
    width: min(100% - 40px, 760px);
  }

  nav {
    min-height: 74px;
  }

  .nav-links {
    gap: 6px;
  }

  .nav-links a {
    padding: 8px 13px;
    font-size: 0.88rem;
  }

  .theme-toggle {
    width: 60px;
    min-width: 60px;
  }

  .hero {
    padding: 75px 0 50px;
  }

  .hero-inner {
    grid-template-columns: 1fr 0.8fr;
    gap: 30px;
  }

  h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
  }

  .hero p {
    font-size: 1rem;
  }

  .profile-card {
    padding: 18px;
    border-radius: 26px;
  }

  .avatar {
    border-radius: 18px;
  }

  .stat {
    padding: 13px 8px;
  }

  .stat strong {
    font-size: 1.1rem;
  }

  .stat span {
    font-size: 0.75rem;
  }

  section {
    padding: 60px 0;
  }

  .about-grid,
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-grid .card:last-child {
    grid-column: 1 / -1;
  }

  .contact-wrap {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}



/* =========================================================
   HP
   401px - 600px
   ========================================================= */

@media (max-width: 600px) {

  .container {
    width: calc(100% - 28px);
  }

  /* ================= NAVBAR ================= */

  nav {
    min-height: 68px;
    gap: 8px;
  }

  .brand {
    font-size: 0.95rem;
    gap: 7px;
  }

  .brand img {
    width: 38px;
    height: 38px;
  }

  .nav-right {
    gap: 6px;
  }

  .nav-links {
    gap: 4px;
  }

  .nav-links a {
    padding: 7px 9px;
    font-size: 0.72rem;
  }

  .theme-toggle {
    width: 52px;
    min-width: 52px;
    height: 30px;
  }

  .toggle-circle {
    width: 22px;
    height: 22px;
    top: 3px;
    left: 3px;
  }

  body.light-mode .toggle-circle {
    transform: translateX(24px);
  }

  .theme-icon {
    font-size: 12px;
  }

  .moon {
    right: 7px;
  }

  .sun {
    left: 7px;
  }


  /* ================= HERO ================= */

.hero {
  padding: 65px 0 45px;
}

.hero-inner {
  grid-template-columns: 1fr 0.8fr;
  gap: 25px;
}

.eyebrow {
  font-size: 0.68rem;
  margin-bottom: 10px;
}

h1 {
  font-size: clamp(2rem, 6vw, 2.8rem);
  line-height: 1;
  margin-bottom: 12px;
}

.hero p {
  font-size: 0.82rem;
  line-height: 1.6;
}

.actions {
  margin-top: 18px;
  gap: 8px;
}

.btn {
  padding: 11px 15px;
  font-size: 0.78rem;
}


  /* ================= PROFILE CARD ================= */

  .profile-card {
    width: 100%;
    padding: 18px;
    border-radius: 26px;
  }

  .avatar {
    border-radius: 18px;
  }

  .stats {
    gap: 8px;
    margin-top: 14px;
  }

  .stat {
    padding: 13px 8px;
    border-radius: 12px;
  }

  .stat strong {
    font-size: 1.1rem;
  }

  .stat span {
    font-size: 0.75rem;
  }


  /* ================= SECTION ================= */

  section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 2.2rem;
  }

  .section-copy {
    font-size: 0.98rem;
    line-height: 1.8;
  }


  /* ================= ABOUT ================= */

  .about-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .about-grid .card:last-child {
    grid-column: 1 / -1;
  }


  /* ================= PROJECT ================= */

  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }


  /* ================= CARD ================= */

  .card {
    padding: 20px;
    border-radius: 17px;
  }

  .card h3 {
    font-size: 1.1rem;
  }

  .card p,
  .card li {
    font-size: 0.92rem;
    line-height: 1.7;
  }

  .card-title img {
    width: 38px;
    height: 38px;
  }


  /* ================= PROJECT ================= */

  .project-card {
    padding: 17px;
  }

  .thumb {
    height: 190px;
    margin-bottom: 17px;
  }

  .tag-list {
    gap: 7px;
    margin-top: 14px;
  }

  .tag-list li {
    padding: 6px 9px;
    font-size: 0.72rem;
  }


  /* ================= CONTACT ================= */

  .contact-wrap {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  input,
  textarea {
    padding: 13px 15px;
    font-size: 0.92rem;
  }

  textarea {
    min-height: 130px;
  }

  form .btn {
    width: auto;
    text-align: center;
  }


  /* ================= FOOTER ================= */

  footer {
    padding: 24px 0 32px;
    font-size: 0.8rem;
  }


  /* ================= MODAL ================= */

  .project-modal {
    padding: 15px;
  }

  .modal-content {
    width: 100%;
    max-height: 90vh;
    padding: 10px;
    border-radius: 16px;
  }

  .modal-close {
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    font-size: 24px;
  }
}


/* =========================================================
   HP KECIL
   <= 400px
   ========================================================= */

@media (max-width: 400px) {

  .container {
    width: calc(100% - 22px);
  }

  /* ================= NAVBAR ================= */

  nav {
    min-height: 64px;
  }

  .brand {
    font-size: 0.8rem;
  }

  .brand img {
    width: 34px;
    height: 34px;
  }

  .nav-links {
    gap: 3px;
  }

  .nav-links a {
    padding: 6px 7px;
    font-size: 0.65rem;
  }

  .theme-toggle {
    width: 48px;
    min-width: 48px;
    height: 28px;
  }

  .toggle-circle {
    width: 21px;
    height: 21px;
  }

  body.light-mode .toggle-circle {
    transform: translateX(21px);
  }


  /* ================= HERO ================= */

  .hero {
    padding-top: 55px;
  }

  /*
    Tetap 2 kolom seperti tablet,
    tetapi kolom dibuat sedikit lebih seimbang
    agar tetap muat di layar kecil.
  */

  .hero-inner {
    grid-template-columns: 1fr 0.75fr;
    gap: 18px;
  }

  h1 {
    font-size: 2.25rem;
  }

  .hero p {
    font-size: 0.82rem;
  }

  .actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .actions .btn {
    width: auto;
    text-align: center;
  }


  /* ================= PROFILE ================= */

  .profile-card {
    padding: 12px;
    border-radius: 20px;
  }

  .stats {
    gap: 5px;
  }

  .stat {
    padding: 10px 4px;
  }

  .stat strong {
    font-size: 0.9rem;
  }

  .stat span {
    font-size: 0.62rem;
  }


  /* ================= SECTION ================= */

  section {
    padding: 45px 0;
  }

  .section-title {
    font-size: 1.8rem;
  }


  /* ================= ABOUT ================= */

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-grid .card:last-child {
    grid-column: auto;
  }


  /* ================= PROJECT ================= */

  .project-grid {
    grid-template-columns: 1fr;
  }

  .thumb {
    height: 170px;
  }
}



/* =========================================================
   HAMBURGER MENU
   ========================================================= */

.menu-toggle {
  display: none;

  width: 42px;
  height: 42px;

  padding: 0;

  background: #111111;

  border: 1px solid #292929;
  border-radius: 12px;

  cursor: pointer;

  align-items: center;
  justify-content: center;
  flex-direction: column;

  gap: 5px;

  transition:
    background 0.25s ease,
    border-color 0.25s ease;
}

.menu-toggle span {
  width: 18px;
  height: 2px;

  display: block;

  background: #ffffff;

  border-radius: 10px;

  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}


/* =========================================================
   HAMBURGER TABLET / HP
   ========================================================= */

@media (max-width: 700px) {

  .menu-toggle {
    display: flex;
  }

  .nav-right {
    position: relative;
  }

  .nav-links {
    position: absolute;

    top: calc(100% + 14px);
    right: 0;

    width: 190px;

    padding: 8px;

    display: flex;
    flex-direction: column;
    align-items: stretch;

    gap: 5px;

    background: #111111;

    border: 1px solid #292929;
    border-radius: 16px;

    box-shadow:
      0 15px 35px rgba(0, 0, 0, 0.45);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform: translateY(-8px);

    transition:
      opacity 0.25s ease,
      visibility 0.25s ease,
      transform 0.25s ease;
  }

  .nav-links.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transform: translateY(0);
  }

  .nav-links a {
    width: 100%;

    padding: 11px 14px;

    border-radius: 10px;

    text-align: left;
  }


  /* HAMBURGER MENJADI X */

  .menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }


  /* LIGHT MODE */

  body.light-mode .menu-toggle {
    background: #ffffff;

    border-color: #dddddd;
  }

  body.light-mode .menu-toggle span {
    background: #111111;
  }

  body.light-mode .nav-links {
    background: #ffffff;

    border-color: #dddddd;

    box-shadow:
      0 15px 35px rgba(0, 0, 0, 0.12);
  }

  body.light-mode .nav-links a {
    background: #ffffff;

    color: #111111;

    border-color: transparent;
  }

  body.light-mode .nav-links a:hover,
  body.light-mode .nav-links a.active {
    background: #111111;

    color: #ffffff;
  }
}

body {
  animation: pageFadeIn 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes pageFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================
   OPENING ANIMATION
========================= */

body {
  animation: pageFadeIn 0.7s ease-out;
}

@keyframes pageFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Hero */
.hero > .container {
  animation: contentUp 0.8s ease-out both;
}

/* Semua card */
.card {
  animation: cardUp 0.7s ease-out both;
}

/* Card muncul bergantian */
.about-grid .card:nth-child(1) {
  animation-delay: 0.15s;
}

.about-grid .card:nth-child(2) {
  animation-delay: 0.25s;
}

.about-grid .card:nth-child(3) {
  animation-delay: 0.35s;
}

.project-grid .card:nth-child(1) {
  animation-delay: 0.15s;
}

.project-grid .card:nth-child(2) {
  animation-delay: 0.25s;
}

.project-grid .card:nth-child(3) {
  animation-delay: 0.35s;
}

@keyframes contentUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cardUp {
  from {
    opacity: 0;
    transform: translateY(25px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================
   SCROLL REVEAL ANIMATION
========================= */

.card {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.card.show {
  opacity: 1;
  transform: translateY(0);
}
