@media screen and (max-width: 1000px) {
  p {
    font-size: 0.9rem;
    line-height: 1.8;
  }

  .grid-3 {
    gap: 1rem;
  }

  .learnings-right ul li {
    font-size: 0.9rem;
  }

  .logo {
    font-size: 22px;
    margin-top: 5px;
    margin-left: 20px;
  }

  @keyframes typing {
    from {
      width: 0;
    }
    to {
      width: 67%;
    }
  }

  @keyframes reverseTyping {
    from {
      width: 67%;
    }
    to {
      width: 0;
    }
  }

  .hero-name {
    width: 100%;
    text-align: center;
    font-size: 2.3rem;
    margin-bottom: 0.5rem;
  }
}

@media screen and (max-width: 840px) {
  .hero-right img {
    height: 325px;
    width: 325px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 30px;
    cursor: pointer;
  }

  /* Burger */
  .burger {
    display: block;
    cursor: pointer;
    right: 20px;
  }

  .toggle-burger .line-1 {
    transform: rotate(-45deg) translate(-5px, 7px);
  }

  .toggle-burger .line-2 {
    opacity: 0;
  }

  .toggle-burger .line-3 {
    transform: rotate(45deg) translate(-5px, -7px);
  }

  /* Navigation */
  nav {
    position: fixed;
    width: 50%;
    right: 0;
    top: 0;
    height: 100vh;
    flex-direction: column;
    background: var(--primaryBackgroundColor);
    border-left: 1px solid var(--borderColor);
    z-index: 9;
    transform: translateX(100%);
    transition: 0.2s ease-in-out;
  }

  .nav {
    position: absolute;
    display: flex;
    justify-content: space-between;
    padding: 2rem 0;
    height: 90px;
  }

  nav ul {
    height: 100vh;
    align-items: center;
    flex-direction: column;
    justify-content: center;
  }

  .nav-active {
    transform: translateX(0);
  }
  /* End of Navigation */

  :root {
    --sectionPadding: 4rem 0;
    --abu-abu: #dcdcdc;
  }

  /* Titles */
  .section-title {
    font-size: 1.6rem;
    margin: 0.6rem 0 2.5rem;
  }

  .pre-title {
    font-size: 0.8rem;
  }

  /* Hero Section */
  #hero {
    grid-template-columns: 1fr;
    height: fit-content;
    margin-top: 125px;
  }

  .hero-right {
    order: -1;
  }

  .hero-right img {
    width: 70%;
  }

  .hero-left {
    text-align: center;
    padding-bottom: 5rem;
  }

  .hero-left .pre-title {
    margin: 0 auto;
  }

  @keyframes typing {
    from {
      width: 0;
    }
    to {
      width: 100%;
    }
  }

  @keyframes reverseTyping {
    from {
      width: 100%;
    }
    to {
      width: 0;
    }
  }

  .hero-name {
    width: 100%;
    text-align: center;
    font-size: 2.3rem;
    margin-bottom: 0.5rem;
  }

  /* learnings Section */
  .learnings-grid {
    gap: 1rem;
  }

  .learnings-grid h2 {
    font-size: 1.2rem;
  }

  /* Footer */
  footer {
    padding: 2rem 0;
  }
}

/* Mobile Size */
@media screen and (max-width: 640px) {
  /* Titles */
  .section-title {
    font-size: 1.3rem;
  }

  .pre-title {
    font-size: 0.7rem;
  }

  .logo {
    font-size: 20px;
    margin-top: 5px;
    margin-left: 20px;
  }

  .hero-right img {
    height: 180px;
    width: 180px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 30px;
    cursor: pointer;
  }
}

@media screen and (min-width: 1001px) and (max-width: 1150px) {
  @keyframes typing {
    from {
      width: 0;
    }
    to {
      width: 52%;
    }
  }

  @keyframes reverseTyping {
    from {
      width: 52%;
    }
    to {
      width: 0;
    }
  }

  .hero-name {
    width: 100%;
    text-align: center;
    font-size: 2.3rem;
    margin-bottom: 0.5rem;
  }
  .nav {
    display: flex;
    justify-content: space-between;
    padding: 2rem 0;
    border-bottom: 2px solid var(--abu-abu);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    background-color: white;
    z-index: 1000;
    height: 90px;
  }
}

@media screen and (max-width: 350px) {
  /* Navigation */
  .nav {
    height: 40px;
  }

  .burger {
    top: 20px;
  }

  .hero-right img {
    height: 150px;
    width: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 30px;
    cursor: pointer;
  }

  .learnings-right p {
    width: 78%;
  }

  .contact {
    padding: 0 10px;
  }

  .contact form {
    width: 100%;
    max-width: 275px;
  }
}

/* --- Desktop & Tablet (Minimal 769px) --- */
@media screen and (min-width: 769px) {
  .grid-3 {
    display: grid;
    /* Memaksa tepat 3 kolom */
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
  .carousel-controls {
    display: none; /* Sembunyikan navigasi di desktop */
  }
}

/* --- Mobile (Maksimal 768px) --- */
@media screen and (max-width: 768px) {
  #sert-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 1.5rem;
    padding: 1rem 0;
    scrollbar-width: none; /* Hilangkan scrollbar default */
  }

  #sert-grid::-webkit-scrollbar {
    display: none;
  }

  .sert-card {
    flex: 0 0 85%; /* Lebar kartu 85% agar kartu berikutnya terlihat sedikit */
    scroll-snap-align: center;
  }

  /* Styling Navigasi */
  .carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
  }

  .ctrl-btn {
    background: var(--primaryIconColor);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
  }

  .carousel-indicators {
    display: flex;
    gap: 8px;
  }

  .dot {
    width: 10px;
    height: 10px;
    background: var(--lineColor);
    border-radius: 50%;
    transition: 0.3s;
  }

  .dot.active {
    background: var(--primaryIconColor);
    width: 25px;
    border-radius: 5px;
  }
}
