/* GENERAL */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap");

html {
  scroll-behavior: smooth;
  font-size: 62.5%; /* 1rem = 10px supaya hitung mudah */
}

/* Variables */
:root {
  --font-family-base: "Inter", sans-serif;

  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 900;

  --font-size-h1: 4rem;
  --font-size-h2: 2.5rem;
  --font-size-h3: 2rem;
  --font-size-p: 1.5rem;

  --color-base: #efefef;
  --color-dark-gray: #424242;
  --color-black: #0e0707;
  --color-light-gray: #d9d9d9;
  --color-gray: #646464;
  --button-hover: #e24f35;
}

/* Body */
body {
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-regular);
  line-height: 1.5;
  margin: 0 15rem;
  padding: 0;
  font-size: 1.6rem;
}

p {
  color: var(--color-black);
  font-size: var(--font-size-p);
  margin: 0;
}

/* Headings */
h1 {
  font-size: var(--font-size-h1);
  font-weight: var(--font-weight-bold);
  color: var(--color-dark-gray);
  margin: 0;
}

h2 {
  font-size: var(--font-size-h2);
  font-weight: var(--font-weight-medium);
  color: var(--color-dark-gray);
  margin: 0;
}

h3 {
  font-size: var(--font-size-h3);
  font-weight: var(--font-weight-medium);
  color: var(--color-black);
}

/* Transition */
a,
.btn {
  transition: all 0.3s ease;
}

/* DESKTOP NAV */

nav,
.nav-links {
  display: flex;
}

nav {
  justify-content: space-between;
  align-items: center;
  height: 10rem;
}

.nav-links {
  gap: 2rem;
  list-style: none;
  font-size: 1.5rem;
}

a {
  color: var(--color-black);
  text-decoration: none;
}

a:hover {
  color: grey;
  text-decoration: underline;
  text-underline-offset: 1rem;
  text-decoration-color: rgb(181, 181, 181);
}

.logo {
  font-size: 2rem;
}

#desktop-nav {
  height: 4rem;
  margin: 4rem 0;
  position: sticky;
  top: 0;
  z-index: 999;
  background: white;
  padding: 1rem 2rem;
}

/* Hamburger Menu */

#hamburger-nav {
  display: none;
}

.hamburger-menu {
  display: inline-block;
  position: relative;
}

.hamburger-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 2.4rem;
  width: 3rem;
  cursor: pointer;
}

.hamburger-icon span {
  width: 100%;
  height: 0.2rem;
  background-color: var(--color-black);
  transition: all 0.3s ease-in-out;
}

.menu-links {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease-in-out;
  width: fit-content;
}

.menu-links a {
  display: block;
  padding: 1rem;
  text-align: center;
  font-size: 1.5rem;
}

.menu-links.open {
  max-height: 30rem;
}

.hero-section {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7.4rem;
}

.hero-section .left-column img {
  height: 40rem;
}

.career {
  color: var(--color-gray);
}

button {
  width: 20.5rem;
  height: 5.4rem;
  border-radius: 3rem;
}

.button-section {
  display: flex;
  gap: 1rem;
  margin: 1.5rem 0;
}

.button-cv {
  background-color: var(--color-dark-gray);
  font-weight: var(--font-weight-semibold);
  color: white;
  font-size: var(--font-size-p);
}

.button-contact {
  font-weight: var(--font-weight-semibold);
  color: var(--color-dark-gray);
  font-size: var(--font-size-p);
  border: 0.25rem solid var(--color-dark-gray);
}

.hero-section .contact {
  text-align: center;
}

.hero-section .contact i {
  font-size: 2.5rem;
  color: var(--color-dark-gray);
  margin: 0.5rem;
}

section {
  margin-bottom: 5rem;
}

/* ABOUT */
.about-us-section {
  text-align: center;
}

.about-us-header {
  margin-bottom: 2.5rem;
}

.about-us-content {
  display: flex;
  gap: 4rem;
  justify-content: center;
  align-items: center;
}

.about-us-content .about-us-text {
  width: 50%;
}

/* TIMELINE */

.exp-header {
  margin-bottom: 2.5rem;
}

.timeline-container {
  display: flex;
  justify-content: space-evenly;
}

.timeline {
  position: relative;
  padding-left: 3rem;
}

.timeline-left,
.timeline-right {
  width: 50%;
}

.timeline-left::before,
.timeline-right::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 0.2rem;
  height: 100%;
  background: #ccc;
}

.timeline-item {
  position: relative;
  margin: 4.5rem;
}

.timeline-item h3 {
  margin-top: 0;
  margin-bottom: 1rem;
}
.timeline-item h4 {
  margin: 0;
  font-weight: 200;
}

.timeline-item .circle {
  width: 2rem;
  height: 2rem;
  background: var(--color-gray);
  border-radius: 50%;
  position: absolute;
  left: -8.35rem;
  top: 0.5rem;
}

/* EXPERIENCE */
.experience-wrapper {
  display: flex;
  gap: 5rem;
  margin-top: 4rem;
}

.experience-left {
  width: 50%;
  position: relative;
}

.timeline-line {
  position: absolute;
  left: 1.5rem;
  top: 0;
  width: 0.2rem;
  height: 100%;
  background: var(--color-light-gray);
}

.company-list {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 0;
  padding-left: 4rem;
}

.company {
  position: relative;
  font-size: 1.6rem;
  color: var(--color-gray);
  cursor: pointer;
  margin-bottom: 0;
  padding: 2rem 0;
  transition: color 0.25s ease, font-weight 0.25s ease;
}

.company.active {
  color: var(--color-black);
  font-weight: var(--font-weight-semibold);
}

.company.active::before {
  content: "";
  position: absolute;
  left: -2.6rem; /* atur sesuai posisi garis utama */
  top: 0;
  width: 0.4rem;
  height: 100%;
  background: var(--color-dark-gray);
  border-radius: 1rem;
  transition: 0.25s ease; /* biar halus */
}
.company::before {
  content: "";
  position: absolute;
  left: -2rem;
  top: 0;
  width: 0.4rem;
  height: 0;
  background: transparent;
  transition: 0.25s ease;
}

.experience-right {
  width: 50%;
  padding-left: 2rem;
}

.exp-content h3 {
  color: var(--color-dark-gray);
  margin-bottom: 0.5rem;
}

.exp-content .date {
  color: var(--color-gray);
  margin: 0.5rem 0 1.5rem;
  font-size: 1.4rem;
}

.exp-content li {
  margin-bottom: 0.8rem;
  font-size: 1.4rem;
  color: var(--color-dark-gray);
}

.exp-content {
  display: none;
  opacity: 0;
  transform: translateY(1rem);
  transition: 0.25s;
}

.exp-content.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}
/* PORTFOLIO */
.carousel-container {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.portfolio-content {
  display: flex;
  gap: 2rem;
  padding: 2rem 0;

  overflow-x: auto;
  scroll-behavior: smooth;

  /* snap */
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.portfolio-content::-webkit-scrollbar {
  display: none;
}

.card {
  flex-shrink: 0;
  width: 40rem;
  border-radius: 0.8rem;
  scroll-snap-align: start;
  position: relative;
  overflow: hidden;
}

.card img {
  width: 100%;
  height: auto;
  display: block;
}

.card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2rem 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
  text-align: center;
}

.card-overlay h3 {
  margin: 0;
  color: #fff;
  font-size: 1.7rem;
}

.carousel-dots {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 0.7rem;
}

.carousel-dots button {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  border: none;
  background: #bbb;
  cursor: pointer;
  transition: 0.25s;
}

.carousel-dots button.active {
  background: #333;
  transform: scale(1.25);
}

.detail-btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.7rem 1.6rem;
  background: #fff;
  color: #000;
  font-size: 1.4rem;
  font-weight: 500;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: 0.25s ease;
}

.detail-btn:hover {
  background: var(--color-light-gray);
  color: var(--color-dark-gray);
}

/* SKILLS */
.skills-content {
  display: flex;
  justify-content: space-between;
}

.skills-category {
  margin-bottom: 2rem;
}

/* CONTACT */
.contact-section {
  text-align: center;
  margin-bottom: 15rem;
}

.contact-header {
  margin-bottom: 5rem;
}

.contact-box {
  display: flex;
  width: 83rem;
  height: 4rem;
  justify-content: space-around;
  align-items: center;
  border: 0.3rem solid var(--color-dark-gray);
  border-radius: 3rem;
  padding: 1.5rem 2rem;
  gap: 1.5rem;
  margin: 0 auto;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem; /* jarak icon & text */
}

.contact-item i {
  font-size: 2rem;
}

.contact-item p {
  margin: 0;
  font-size: 1.4rem;
}

@media (max-width: 992px) {
  body {
    margin: 0 5rem;
  }
  /* Hero */
  .hero-section {
    flex-direction: column;
    text-align: center;
  }
  .hero-section .left-column img {
    height: 30rem;
  }

  /* About */
  .about-us-content {
    flex-direction: column;
    text-align: center;
  }
  .about-us-content .about-us-text {
    width: 100%;
  }

  /* Timeline */
  .timeline-container {
    flex-direction: column;
    gap: 4rem;
  }
  .timeline-left,
  .timeline-right {
    width: 100%;
  }

  /* Experience */
  .experience-wrapper {
    flex-direction: column;
  }
  .experience-left,
  .experience-right {
    width: 100%;
  }

  /* Portfolio */
  .card {
    width: 32rem;
  }

  /* Skills */
  .skills-content {
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
  }

  /* Contact */
  .contact-box {
    width: 100%;
    flex-direction: column;
    height: auto;
    padding: 2rem;
    gap: 1.5rem;
  }
}

/* ===========================
   RESPONSIVE — MOBILE (≤ 576px)
   =========================== */
@media (max-width: 576px) {
  body {
    margin: 0 2rem;
    font-size: 1.4rem;
  }

  h1 {
    font-size: 3.2rem;
  }
  h2 {
    font-size: 2rem;
  }
  h3 {
    font-size: 1.7rem;
  }

  /* Hero */
  .hero-section .left-column img {
    height: 24rem;
  }
  button {
    width: 16rem;
    height: 4.8rem;
  }

  /* About */
  .about-us-content img {
    width: 100%;
  }

  /* Experience */
  .company {
    font-size: 1.4rem;
    padding: 1.5rem 0;
  }
  .exp-content li {
    font-size: 1.3rem;
  }

  /* Portfolio */
  .card {
    width: 26rem;
  }
  .carousel-dots button {
    width: 0.7rem;
    height: 0.7rem;
  }

  /* Contact */
  .contact-box {
    width: 100%;
    font-size: 1.2rem;
    border-width: 0.2rem;
  }
  .contact-item i {
    font-size: 1.7rem;
  }
}


