@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  border: none;
  outline: none;
  scroll-behavior: smooth;
  font-family: "Poppins", sans-serif;
}

:root {
  --bg-color: #081b29;
  --second-bg-color: #112e42;
  --text-color: #ededed;
  --main-color: #00abf0;
}

html {
  font-size: 62.5%;
  overflow-x: hidden;
}

body {
  background: var(--bg-color);
  color: var(--text-color);
}

section {
  position: relative; /* Membuat setiap section menjadi "dunia"-nya sendiri */
  z-index: 1;         /* Atur tumpukan dasarnya */
  min-height: 100vh;
  padding: 10rem 9% 2rem;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 2rem 9%;
  background: var(--bg-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100; /* Pastikan nilainya tinggi, seperti 100 */
  transition: 0.3s;
}

.header.sticky {
  background: var(--bg-color);
}

.logo {
  font-size: 2.5rem;
  color: var(--text-color);
  font-weight: 600;
}

.navbar a {
  font-size: 1.7rem;
  color: var(--text-color);
  font-weight: 500;
  margin-left: 3.5rem;
}

.navbar :hover,
.navbar a.active {
  color: var(--main-color);
}

#menu-icon {
  font-size: 3.6rem;
  color: var(--text-color);
  cursor: pointer;
  display: none;
}

section {
  min-height: 100vh;
  padding: 10rem 9% 2rem;
}

.home {
  display: flex;
  align-items: center;
  padding: 0 9%;
  background: url("assets/images/sebelumhome.png") no-repeat;
  background-size: cover;
  background-position: center;
}

/* Sembunyikan gambar mobile di layar besar */
.home-img-mobile {
  display: none;
}

.home-content {
  max-width: 60rem;
  z-index: 99;
}

.home-content h1 {
  font-size: 5.6rem;
  font-weight: 700;
  line-height: 1.3;
}

.home-content h1 span {
  color: var(--text-color);
}

.home-content .text-animate {
  position: relative;
  width: 32.8rem;
}

.home-content .text-animate h3 {
  font-size: 3.2rem;
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 0.7px var(--main-color);
}

.home-content p {
  font-size: 1.6rem;
  margin: 2rem 0 4rem;
}

.btn-box {
  position: relative;
  display: flex;
  justify-content: space-between;
  width: 34.5rem;
  height: 5rem;
}

.btn-box .btn {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 15rem;
  height: 100%;
  background-color: var(--main-color);
  border: 0.2rem solid var(--main-color);
  border-radius: 0.8rem;
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: 0.1rem;
  color: var(--bg-color);
  z-index: 1;
  overflow: hidden;
  transition: 0.5s;
}
.btn-box .btn:hover {
  color: var(--main-color);
}

.btn-box .btn:nth-child(2) {
  background: transparent;
  color: var(--main-color);
}

.btn-box .btn:nth-child(2):hover {
  color: var(--bg-color);
}

.btn-box .btn:nth-child(2)::before {
  background: var(--main-color);
}

.btn-box .btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: var(--bg-color);
  z-index: -1;
  transition: 0.5s;
}

.btn-box .btn:hover::before {
  width: 100%;
}

.home-sci {
  position: absolute;
  bottom: 4rem;
  width: 170px;
  display: flex;
  justify-content: space-between;
}

.home-sci a {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 0.2rem solid var(--main-color);
  border-radius: 50%;
  font-size: 20px;
  color: var(--main-color);
  z-index: 1;
  overflow: hidden;
}

.home-sci a:hover {
  color: var(--bg-color);
}

.home-sci a::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: var(--main-color);
  z-index: -1;
  transition: 0.5s;
}

.home-sci a:hover::before {
  width: 100%;
}

.home-imgHover {
  position: absolute;
  top: 0;
  right: 0;
  width: 45%;
  height: 100%;
  background: transparent;
  transition: 3s;
}

.home-imgHover:hover {
  background: var(--bg-color);
  opacity: 0.8;
}

.about {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background: var(--second-bg-color);
  padding: 10rem 9% 8rem;
  overflow: hidden;
}

.about::before {
  content: "";
  position: absolute;
  width: 32rem;
  height: 32rem;
  background: rgba(0, 171, 240, 0.12);
  filter: blur(90px);
  top: 8rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 0;
}

.heading {
  position: relative;
  z-index: 1;
  font-size: 4.8rem;
  margin-bottom: 4rem;
  text-align: center;
  line-height: 1.2;
}

span {
  color: var(--main-color);
}

.about-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 95rem;
  padding: 4rem 3rem;
  border: 1px solid rgba(0, 171, 240, 0.25);
  border-radius: 2.4rem;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.about-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.about-img {
  position: relative;
  width: 22rem;
  height: 22rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-img img {
  width: 84%;
  border-radius: 50%;
  border: 0.3rem solid var(--main-color);
  box-shadow: 0 0 30px rgba(0, 171, 240, 0.28);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.about-card:hover .about-img img {
  transform: scale(1.04);
  box-shadow: 0 0 40px rgba(0, 171, 240, 0.4);
}

.about-img .circle-spin {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border-top: 0.3rem solid transparent;
  border-bottom: 0.3rem solid transparent;
  border-left: 0.3rem solid var(--main-color);
  border-right: 0.3rem solid var(--main-color);
  animation: aboutSpin 8s linear infinite;
}

@keyframes aboutSpin {
  100% {
    transform: rotate(360deg);
  }
}

.about-content {
  text-align: center;
  max-width: 72rem;
}

.about-subtitle {
  display: inline-block;
  font-size: 1.35rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  color: #8fdcff;
  margin-bottom: 1rem;
}

.about-content h3 {
  font-size: 3.4rem;
  font-weight: 700;
  margin-bottom: 1.6rem;
  line-height: 1.2;
}

.about-content p {
  font-size: 1.7rem;
  line-height: 1.9;
  color: #d9e7f2;
  margin-bottom: 1.8rem;
}

/* tombol: tetap pakai style btn lama */
.btn-box.btns {
  display: inline-block;
  width: 18rem;
  height: 5rem;
  margin-top: 1rem;
}

.btn-box.btns a {
  width: 100%;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-box.btns a::before {
  background: var(--second-bg-color);
}

@media (max-width: 768px) {
  .about {
    padding: 8rem 6% 6rem;
  }

  .heading {
    font-size: 3.8rem;
    margin-bottom: 3rem;
  }

  .about-card {
    padding: 3rem 2rem;
    border-radius: 2rem;
  }

  .about-img {
    width: 18rem;
    height: 18rem;
  }

  .about-content h3 {
    font-size: 2.8rem;
  }

  .about-content p {
    font-size: 1.55rem;
    line-height: 1.8;
  }

  .btn-box.btns {
    width: 16rem;
    height: 5rem;
  }
}


.education {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  min-height: auto;
  padding-bottom: 5rem;
}

.education .education-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5rem;
}

.education-row .education-column {
  flex: 1 1 40rem;
}

.education-column .title {
  font-size: 2.5rem;
  margin: 0 0 1.5rem 2rem;
}

.education-column .education-box {
  border-left: 0.2rem solid var(--main-color);
}

.education-box .education-content {
  position: relative;
  padding-left: 2rem;
}

.education-box .education-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: -1.1rem;
  width: 2rem;
  height: 2rem;
  background: var(--main-color);
  border-radius: 50%;
}

.education-content .content {
  position: relative;
  padding: 1.5rem;
  border: 0.2rem solid var(--main-color);
  border-radius: 0.6rem;
  margin-bottom: 2rem;
  overflow: hidden;
}

.education-content .content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: var(--second-bg-color);
  z-index: -1;
  transition: 0.5s;
}

.education-content .content:hover::before {
  width: 100%;
}

.education-content .content .year {
  font-size: 1.5rem;
  color: var(--main-color);
  padding-bottom: 0.5rem;
}

.education-content .content .year i {
  padding-right: 0.5rem;
}

.education-content .content h3 {
  font-size: 2rem;
}

.education-content .content p {
  font-size: 1.6rem;
  padding-top: 0.5rem;
}

.skills {
  min-height: auto;
  padding: 7rem 9% 7rem;
  background: var(--second-bg-color);
}

.skills-container {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.4rem;
  margin-top: 4rem;
}

.skills-box {
  background: rgba(255, 255, 255, 0.03);
  border: 0.2rem solid rgba(0, 171, 240, 0.9);
  border-radius: 1.8rem;
  padding: 2.2rem;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.skills-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 1.8rem rgba(0, 171, 240, 0.18);
  border-color: var(--main-color);
}

.skills-box.wide {
  grid-column: span 2;
}

.skills-title {
  position: relative;
  display: inline-block;
  font-size: 2.2rem;
  margin-bottom: 2rem;
  color: var(--text-color);
  font-weight: 700;
}

.skills-title::after {
  content: "";
  display: block;
  width: 7rem;
  height: 0.3rem;
  margin-top: 0.7rem;
  border-radius: 999px;
  background: var(--main-color);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.skills-grid .skill-item:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.skill-item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-height: 5.2rem;
  padding: 1rem 1.3rem;
  border: 0.18rem solid rgba(0, 171, 240, 0.9);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-color);
  font-size: 1.5rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.skill-item i {
  font-size: 1.9rem;
  color: var(--main-color);
  flex-shrink: 0;
  transition: color 0.3s ease, transform 0.3s ease;
}

.skill-item span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.3s ease;
}

.skill-item:hover {
  background: var(--main-color);
  border-color: var(--main-color);
  color: #0b2230;
  transform: translateY(-2px);
  box-shadow: 0 0 1.2rem rgba(0, 171, 240, 0.35);
}

.skill-item:hover i,
.skill-item:hover span {
  color: #0b2230;
}

.skill-item:hover i {
  transform: scale(1.05);
}

.skill-item.active {
  background: var(--main-color);
  border-color: var(--main-color);
  color: #0b2230;
  box-shadow: 0 0 1.2rem rgba(0, 171, 240, 0.35);
}

.skill-item.active i,
.skill-item.active span {
  color: #0b2230;
}

@media (max-width: 1200px) {
  .skills-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .skills-box.wide {
    grid-column: span 2;
  }
}

@media (max-width: 991px) {
  .skills {
    padding: 7rem 5% 7rem;
  }
}

@media (max-width: 768px) {
  .skills-container {
    grid-template-columns: 1fr;
  }

  .skills-box.wide {
    grid-column: auto;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .skills-grid .skill-item:last-child:nth-child(odd) {
    grid-column: auto;
  }

  .skills-title {
    font-size: 2rem;
  }

  .skill-item {
    font-size: 1.4rem;
  }
}

/* ================================================================= */
/* ===== CSS DESKTOP FINAL & STABIL UNTUK SECTION PROJECT ===== */
/* ================================================================= */

/* ================================================================= */
/* ===== CSS DESKTOP FINAL & STABIL UNTUK SECTION PROJECT (FIXED) ===== */
/* ================================================================= */

/* --- main project anchor --- */
/* ================================================================= */
/* ===== PROJECT SECTION (FIX: no bleed + nicer layout) ===== */
/* ================================================================= */

/* ============================================================= */
/* ===================== PROJECT FINAL FIX ===================== */
/* ============================================================= */

#project{
  scroll-margin-top: 11rem;
}

.project{
  position: relative;
  min-height: 100vh;
  padding: 12rem 9% 8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.project .heading{
  margin-bottom: 2.5rem;
}

/* ================= CAROUSEL ================= */

.carousel{
  position: relative;
  width: 100%;
  max-width: 1100px;
  height: clamp(520px, 92vh, 760px);
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: stretch;
}

/* ================= LEFT SIDE ================= */

.carousel .box-info{
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  padding-right: 1.5rem;
  min-height: 0;
}

.list-info{
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 650ms cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.list-info .info{
  flex: 0 0 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 0 2rem 6rem 0;
  box-sizing: border-box;
  min-height: 0;
  overflow: hidden;
}

.info h2{
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.15;
  color: var(--main-color);
  margin-bottom: 1.2rem;
  word-break: break-word;
}

.info-scroll{
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  padding-right: .5rem;
  scrollbar-width: none;
}

.info-scroll::-webkit-scrollbar{
  display: none;
}

.info p{
  font-size: 1.6rem;
  margin-bottom: 1.8rem;
  max-width: 52ch;
  line-height: 1.6;
}

.info-footer{
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: auto;
}

.project-links{
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.info .btn-carousel{
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 180px;
  min-height: 50px;
  padding: 0 1.6rem;
  border-radius: 40px;
  border: 2px solid var(--main-color);
  background: transparent;
  color: var(--main-color);
  font-size: 1.6rem;
  font-weight: 600;
  text-decoration: none;
  transition: .3s ease;
}

.info .btn-carousel:hover{
  background: var(--main-color);
  color: var(--bg-color);
  box-shadow: 0 0 18px rgba(0, 191, 255, 0.25);
}

.btn-carousel.ghost{
  background: rgba(255,255,255,0.05);
}

.mini{
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
}

.mini span{
  font-size: 1.2rem;
  padding: .6rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.18);
  color: var(--text-color);
}

/* ================= RIGHT SIDE ================= */

.image-viewport{
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 2rem;
  min-height: 0;
  transform: translate(30px, -90px);
}

.list-img{
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 650ms cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.list-img .item{
  flex: 0 0 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  box-sizing: border-box;
}

/* ================= FRAME DASAR ================= */

.project-frame{
  position: relative;
  width: 100%;
  max-width: 520px;
  height: min(78%, 430px);
  border-radius: 2rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  border: 1px solid rgba(0, 191, 255, 0.22);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.03) inset,
    0 18px 50px rgba(0,0,0,0.35),
    0 0 30px rgba(0, 191, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}

.project-frame:hover{
  transform: translateY(-4px);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04) inset,
    0 24px 60px rgba(0,0,0,0.42),
    0 0 36px rgba(0, 191, 255, 0.14);
  border-color: rgba(0, 191, 255, 0.36);
}

.project-frame::before{
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(0, 191, 255, 0.45),
    rgba(255,255,255,0.08),
    rgba(0, 191, 255, 0.15)
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}

.project-frame::after{
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 64px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.08), transparent);
  pointer-events: none;
}

.frame-body{
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 2rem 1.6rem 1.6rem;
  box-sizing: border-box;
}

.frame-body img{
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 1.2rem;
}

/* ================= BROWSER FRAME ================= */

.browser-frame{
  padding-top: 3.8rem;
}

.frame-topbar{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3.8rem;
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: 0 1.4rem;
  background: rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  z-index: 2;
}

.frame-topbar span{
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: rgba(0, 191, 255, 0.75);
  box-shadow: 0 0 10px rgba(0, 191, 255, 0.3);
}

.browser-frame .frame-body{
  padding: 1rem 1rem 1rem;
  align-items: center;
}

.browser-frame .frame-body img{
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ================= PHONE SHOWCASE ================= */

.phone-showcase{
  max-width: 560px;
  background:
    radial-gradient(circle at top, rgba(0,191,255,0.14), transparent 45%),
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
}

.phone-showcase .frame-body{
  padding: 1.2rem 1.4rem 1rem;
  align-items: flex-start;
}

.phone-showcase .frame-body img{
  width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 18px 30px rgba(0,0,0,0.4));
}

.frame-glow{
  position: absolute;
  width: 220px;
  height: 220px;
  right: -40px;
  top: -40px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,191,255,0.22), transparent 70%);
  pointer-events: none;
}

/* ================= MEDIA FRAME / GIF ================= */

.media-frame{
  max-width: 500px;
  height: min(72%, 360px);
  background: linear-gradient(180deg, rgba(7, 18, 28, 0.92), rgba(10, 26, 40, 0.95));
  border: 1px solid rgba(0,191,255,0.18);
}

.media-frame .frame-body{
  padding: 1.2rem;
  align-items: center;
}

.media-frame .frame-body img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0c1620;
  border-radius: 1.4rem;
}

.frame-label{
  position: absolute;
  top: 1.2rem;
  left: 1.2rem;
  z-index: 2;
  padding: .6rem 1rem;
  border-radius: 999px;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--main-color);
  background: rgba(0,191,255,0.08);
  border: 1px solid rgba(0,191,255,0.22);
}

/* ================= NAVIGATION ================= */

.navigation-btn{
  position: absolute;
  left: 50%;
  bottom: 1.4rem;
  transform: translateX(-50%);
  display: flex;
  gap: 1.6rem;
  z-index: 10;
}

.navigation-btn span{
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--text-color);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 3.5rem;
  cursor: pointer;
  transition: .3s ease;
  background: rgba(17,46,66,0.85);
}

.navigation-btn span:hover{
  background: var(--main-color);
  border-color: var(--main-color);
  color: var(--bg-color);
  box-shadow: 0 0 18px rgba(0, 191, 255, 0.25);
}

/* ================= RESPONSIVE ================= */

@media (max-width: 1200px){
  .carousel{
    gap: 3rem;
  }

  .info h2{
    font-size: clamp(2.4rem, 4.4vw, 4rem);
  }
}

@media (max-width: 991px){
  .project{
    padding: 11rem 6% 7rem;
  }

  .carousel{
    grid-template-columns: 1fr;
    height: auto;
    gap: 2.5rem;
  }

  .carousel .box-info{
    height: auto;
    padding-right: 0;
    overflow: visible;
  }

  .list-info{
    height: auto;
  }

  .list-info .info{
    height: auto;
    padding: 0;
    overflow: visible;
  }

  .info-scroll{
    overflow: visible;
    padding-right: 0;
  }

  .image-viewport{
    min-height: 320px;
    margin-left: 30px;
    margin-top: -20px;
  }

  .list-img .item{
    padding: 0.5rem;
  }

  .project-frame{
    max-width: 100%;
    height: 320px;
  }

  .media-frame{
    height: 300px;
  }

  .navigation-btn{
    position: static;
    transform: none;
    justify-content: center;
    margin-top: 1.5rem;
  }
}

@media (max-width: 768px){
  .project{
    padding: 10rem 5% 6rem;
  }

  .project .heading{
    margin-bottom: 1.8rem;
  }

  .carousel{
    margin-top: 1rem;
  }

  .info h2{
    font-size: clamp(2.1rem, 8vw, 3.4rem);
    margin-bottom: 1rem;
  }

  .info p{
    font-size: 1.45rem;
    max-width: 100%;
  }

  .info .btn-carousel{
    width: 100%;
  }

  .project-links{
    flex-direction: column;
  }

  .mini span{
    font-size: 1.1rem;
  }

  .project-frame{
    height: 280px;
    border-radius: 1.6rem;
  }

  .frame-body{
    padding: 1.2rem 1rem 1rem;
  }

  .phone-showcase .frame-body{
    padding: 1rem;
  }

  .media-frame{
    height: 260px;
  }

  .navigation-btn span{
    width: 48px;
    height: 48px;
    font-size: 3rem;
  }
}

@media (max-width: 480px){
  .project{
    padding: 9rem 4% 5rem;
  }

  .carousel{
    gap: 2rem;
  }

  .info h2{
    font-size: 2.5rem;
    line-height: 1.2;
  }

  .info p{
    font-size: 1.35rem;
    line-height: 1.7;
  }

  .project-frame{
    height: 240px;
  }

  .media-frame{
    height: 220px;
  }

  .frame-topbar{
    height: 3.4rem;
  }

  .browser-frame{
    padding-top: 3.4rem;
  }
}

.contact {
  min-height: auto;
  padding-bottom: 7rem;
  background: var(--second-bg-color);
}

.contact form {
  max-width: 70rem;
  margin: 0 auto;
  text-align: center;
}

.contact form .input-box {
  position: relative;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.contact form .input-box .input-field {
  position: relative;
  width: 49%;
  margin: 0.8rem 0;
}

.contact form .input-box .input-field input,
.contact form .textarea-field textarea {
  width: 100%;
  height: 100%;
  padding: 1.5rem;
  font-size: 1.6rem;
  color: var(--text-color);
  background: transparent;
  border-radius: 0.6rem;
  border: 0.2rem solid var(--main-color);
}

.contact form .input-box .input-field input::placeholder,
.contact form .textarea-field textarea::placeholder {
  color: var(--text-color);
}

.contact form .focus {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--second-bg-color);
  border-radius: 0.6rem;
  z-index: -1;
  transition: 0.5s;
}

.contact form .input-box .input-field input:focus ~ .focus,
.contact form .input-box .input-field input:valid ~ .focus,
.contact form .textarea-field textarea:focus ~ .focus,
.contact form .textarea-field textarea:valid ~ .focus {
  width: 100%;
}

.contact form .textarea-field {
  position: relative;
  margin: 0.8rem 0 2.7rem;
  display: flex;
}

.contact form .textarea-field textarea {
  resize: none;
}

.contact form .btn-box.btns .btn {
  cursor: pointer;
}

.contact-direct{
  margin-top:3rem;
  text-align:center;
}

.contact-direct p{
  font-size:1.4rem;
  margin-bottom:1rem;
  color:var(--text-color);
}

.contact-links{
  display:flex;
  justify-content:center;
  gap:1.2rem;
  flex-wrap:wrap;
}

.contact-btn{
  display:flex;
  align-items:center;
  gap:.6rem;
  padding:.8rem 1.4rem;
  border:.15rem solid var(--main-color);
  border-radius:999px;
  color:var(--main-color);
  font-size:1.4rem;
  text-decoration:none;
  transition:.3s;
}

.contact-btn i{
  font-size:1.6rem;
}

.contact-btn:hover{
  background:var(--main-color);
  color:var(--bg-color);
}

.footer-text p {
  font-size: 1.6rem;
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 2rem 9%;
  background: var(--second-bg-color);
}

.footer-iconTop a {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 0.8rem;
  background: var(--main-color);
  border: 0.2rem solid var(--main-color);
  border-radius: 0.6rem;
  z-index: 1;
  overflow: hidden;
}

.footer-iconTop a::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: var(--second-bg-color);
  z-index: -1;
  transition: 0.5s;
}

.footer-iconTop a:hover::before {
  width: 100%;
}

.footer-iconTop a i {
  font-size: 2.4rem;
  color: var(--bg-color);
  transition: 0.5s;
}

.footer-iconTop a:hover i {
  color: var(--main-color);
}

/* =========================
   RESPONSIVE
========================= */

/* =========================
   RESPONSIVE
========================= */

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1200px) {
  html { font-size: 55%; }
}

/* =========================
   TABLET / MOBILE BESAR
========================= */
@media (max-width: 991px){

  .project{
    min-height: auto;
    padding: 10rem 5% 6rem;
  }

  .project .heading{
    margin-bottom: 1.8rem;
    text-align: center;
  }

  /* ================= MY PROJECT ================= */
  .carousel{
    position: relative;
    width: 100%;
    max-width: 700px;
    height: auto;
    margin-top: 1.2rem;

    display: grid;
    grid-template-columns: 1fr;
    gap: 1.6rem;
    align-items: start;
  }

  /* TEXT VIEWPORT - tetap slide */
  .carousel .box-info{
    position: relative;
    width: 100%;
    height: 420px;
    overflow: hidden;
    padding: 0;
    min-height: 0;
  }

  .list-info{
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 650ms cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
  }

  .list-info .info{
    flex: 0 0 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 0;
    overflow: hidden;
    min-height: 0;
    box-sizing: border-box;
  }

  .info h2{
    font-size: clamp(2.4rem, 6vw, 3.6rem);
    line-height: 1.15;
    margin-bottom: 1rem;
    word-break: break-word;
  }

  .info-scroll{
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    padding-right: .4rem;
    scrollbar-width: none;
  }

  .info-scroll::-webkit-scrollbar{
    display: none;
  }

  .info p{
    font-size: 1.5rem;
    line-height: 1.7;
    max-width: 100%;
    margin: 0 0 1.3rem;
  }

  .info-footer{
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: auto;
    padding-bottom: .2rem;
  }

  .project-links{
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .info .btn-carousel{
    width: 100%;
    min-height: 48px;
  }

  .mini{
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: .7rem;
    margin-top: .2rem;
  }

  .mini span{
    font-size: 1.1rem;
  }

  /* IMAGE VIEWPORT - tetap slide */
  .image-viewport{
    width: 100%;
    height: 260px;
    min-height: 260px;
    overflow: hidden;
    border-radius: 1.6rem;
    transform: none;
    margin: 0;
  }

  .list-img{
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 650ms cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
  }

  .list-img .item{
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: .5rem;
    box-sizing: border-box;
  }

  .project-frame{
    width: 100%;
    max-width: 100%;
    height: 100%;
    min-height: unset;
    transform: none;
  }

  .project-frame:hover{
    transform: none;
  }

  .frame-body{
    padding: 1rem;
  }

  .browser-frame{
    padding-top: 3.2rem;
  }

  .frame-topbar{
    height: 3.2rem;
  }

  .phone-showcase .frame-body{
    padding: .9rem;
  }

  .media-frame{
    height: 100%;
    max-width: 100%;
  }

  .frame-label{
    top: .9rem;
    left: .9rem;
    font-size: 1.05rem;
  }

  /* NAV */
  .navigation-btn{
    position: static;
    left: auto;
    bottom: auto;
    transform: none;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    margin-top: .4rem;
    padding: 0;
  }

  .navigation-btn span{
    width: 48px;
    height: 48px;
    font-size: 3rem;
  }

  /* ================= HOME ================= */
  .home {
    flex-direction: column;
    justify-content: center;
    background-image: none;
    padding-top: 10rem;
    padding-bottom: 5rem;
  }

  .home-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    order: 2;
    text-align: center;
  }

  .home-content .btn-box {
    width: 100%;
    flex-direction: column;
    gap: 1.5rem;
    height: auto;
  }

  .home-content .btn-box .btn {
    width: 100%;
  }

  .home-img-mobile {
    display: block;
    order: 1;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: .4rem solid var(--main-color);
    margin-bottom: 3rem;
    object-fit: cover;
    object-position: center;
  }

  .home-imgHover {
    display: none;
  }

  .header {
    background: var(--bg-color);
  }

  #menu-icon {
    display: block;
  }

  .navbar {
    position: absolute;
    top: 100%;
    left: -100%;
    width: 100%;
    padding: 1rem 4%;
    background: var(--main-color);
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, 2);
    z-index: 1;
    transition: .25s ease;
    transition-delay: .25s;
  }

  .navbar.active {
    left: 0;
    transition-delay: 0s;
  }

  .navbar .active-nav {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    border-top: .1rem solid rgba(0, 0, 0, 2);
    z-index: -1;
    transition: .25s ease;
    transition-delay: 0s;
  }

  .navbar.active .active-nav {
    left: 0;
    transition-delay: .25s;
  }

  .navbar a {
    display: block;
    font-size: 2rem;
    margin: 3rem 0;
    transform: translateX(-20rem);
    transition: .25s ease;
    transition-delay: 0s;
  }

  .navbar.active a {
    transform: translateX(0);
    transition-delay: .25s;
  }

  .home-imgHover {
    pointer-events: none;
    background: var(--bg-color);
    opacity: .6;
  }

  .home-sci {
    position: relative;
    bottom: auto;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 2rem;
    order: 3;
    margin-top: 4rem;
  }
}

/* =========================
   MOBILE
========================= */
@media (max-width: 768px) {
  .project{
    padding: 9rem 4.5% 5rem;
  }

  .project .heading{
    margin-bottom: 1.4rem;
  }

  .carousel{
    gap: 1.4rem;
  }

  .carousel .box-info{
    height: 390px;
  }

  .info h2{
    font-size: clamp(2.2rem, 8vw, 3.1rem);
  }

  .info p{
    font-size: 1.42rem;
  }

  .image-viewport{
    height: 240px;
    min-height: 240px;
  }

  .project-frame{
    border-radius: 1.4rem;
  }

  .mini span{
    font-size: 1.05rem;
    padding: .55rem .9rem;
  }
}

/* =========================
   MOBILE KECIL
========================= */
@media (max-width: 520px) {
  html { font-size: 50%; }

  .project{
    padding: 8.5rem 4% 4.5rem;
  }

  .info h2{
    font-size: 2.6rem;
    line-height: 1.18;
  }

  .info p{
    font-size: 1.35rem;
    line-height: 1.75;
  }

  .carousel .box-info{
    height: 370px;
  }

  .info .btn-carousel{
    width: 100%;
    max-width: 100%;
  }

  .image-viewport{
    height: 220px;
    min-height: 220px;
  }

  .navigation-btn{
    margin-top: .6rem;
  }

  .navigation-btn span{
    width: 46px;
    height: 46px;
    font-size: 2.8rem;
  }

  .home-content h1 {
    display: flex;
    flex-direction: column;
  }

  .home-sci {
    width: 160px;
  }

  .home-sci a {
    width: 38px;
    height: 38px;
  }
}

@media (max-width: 462px) {
  .home-content h1 {
    font-size: 5.2rem;
  }

  .education {
    padding: 10rem 4% 5rem 5%;
  }

  .contact form .input-box .input-field {
    width: 100%;
  }

  .footer {
    flex-direction: column-reverse;
  }

  .footer p {
    margin-top: 2rem;
    text-align: center;
  }
}

@media (max-width: 371px) {
  .home {
    justify-content: center;
  }

  .home-content{
    display: flex;
    align-items: center;
    flex-direction: column;
    text-align: center;
  }

  .home-content h1 {
    font-size: 5rem;
  }
}