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

:root {
  --color-hitam: #1a1a1a;
  --color-putih: #ffffff;
  --color-ungu: #8685ef;
  --text-color: #ffffff;
  --text-color-opacity: rgba(255, 255, 255, 0.5);
}

.container {
  width: 80%;
  margin-inline: auto;
}

.navbar {
  width: 100%;
  padding: 25px 0;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  background-color: #1a1a1a;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar .navbar-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar .navbar-box .logo {
  background-color: var(--color-putih);
  width: 35px;
  height: 35px;
  border-radius: 100%;
  -webkit-border-radius: 100%;
  -moz-border-radius: 100%;
  -ms-border-radius: 100%;
  -o-border-radius: 100%;
  display: grid;
  place-items: center;
}

.navbar .navbar-box .logo p {
  font-weight: bold;
}

.navbar .navbar-box .menu {
  display: flex;
  gap: 40px;
}

.navbar .navbar-box .menu li {
  list-style-type: none;
}

.navbar .navbar-box .menu li a {
  color: var(--text-color-opacity);
  text-decoration: none;
  font-size: 14px;
}

.navbar .navbar-box .social {
  display: flex;
  gap: 15px;
}

.navbar .navbar-box .social a {
  color: var(--text-color-opacity);
  text-decoration: none;
}

.navbar .navbar-box .menu li a:hover,

.navbar .navbar-box .social a:hover {
  color: var(--text-color);
}

.hamburger {
  padding: 0;
  margin-left: 20px;
  height: 24px;
  display: none;
}

.hamburger .hamburger-box {
  width: 30px;
}

.hamburger-inner,

.hamburger-inner::before,

.hamburger-inner::after {
  width: 40px;
  height: 4px;
  background-color: white;
}

.hamburger.is-active .hamburger-inner,

.hamburger.is-active .hamburger-inner::before,

.hamburger.is-active .hamburger-inner::after {
  background-color: white;
}

.header {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background-color: #1a1a1a;
  opacity: 1;
  background-image: linear-gradient(#1b1b1b 4px, transparent 4px), linear-gradient(to right, #1b1b1b 4px, #1a1a1a 4px);
  background-size: 80px 80px;
  padding-top: 150px;
  padding-bottom: 100px;
}

.header .header-box {
  text-align: center;
}

.header .header-box img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  object-position:center 30%;
  margin-bottom: 20px;
  border-radius: 100%;
  --animate-delay: 3s;
}

.header .header-box h2 {
  color: var(--text-color);
  font-weight: 500;
  margin-bottom: 40px;
  --animate-delay: 3.7s;
}

.header .header-box h1 {
  color: var(--text-color);
  font-weight: 600;
  font-size: 50px;
  margin-bottom: 30px;
  line-height: 1.3;
  --animate-delay: 4.2s;
}

.header .header-box p {
  width: 60%;
  margin-inline: auto;
  color: var(--text-color-opacity);
  line-height: 2;
  font-size: 14px;
  margin-bottom: 50px;
  --animate-delay: 4.7s;
}

.header .header-box a {
  padding: 15px 25px 15px 25px;
  background-color: var(--color-putih);
  text-decoration: none;
  color: var(--color-hitam);
  border-radius: 5px;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  -ms-border-radius: 5px;
  -o-border-radius: 5px;
  font-weight: 500;
  border: none;
  --animate-delay: 5.2s;
}

.header .header-box a:hover {
  background-color: var(--color-ungu);
  color: white;
}

.header-info {
  display: flex;
  gap: 30px;
  align-items: center;
  position: absolute;
  --animate-delay: 5.2s;
}

.header-info div {
  background-color: #3f4451;
  padding: 10px 15px 10px 15px;
  border-radius: 50px;
  -webkit-border-radius: 50px;
  -moz-border-radius: 50px;
  -ms-border-radius: 50px;
  -o-border-radius: 50px;
  font-size: 14px;
  color: var(--text-color);
}

.header-info i {
  font-size: 24px;
  color: var(--text-color-opacity);
  transform: rotate(15deg);
  -webkit-transform: rotate(15deg);
  -moz-transform: rotate(15deg);
  -ms-transform: rotate(15deg);
  -o-transform: rotate(15deg);
}

.header-info.info1 {
  top: 300px;
  left: 250px;
}

.header-info.info2 {
  top: 300px;
  right: 250px;
}

.header-info.info2 i {
  transform: rotate(-95deg);
  -webkit-transform: rotate(-95deg);
  -moz-transform: rotate(-95deg);
  -ms-transform: rotate(-95deg);
  -o-transform: rotate(-95deg);
}

.header-info.info3 {
  top: 600px;
  right: 100px;
}

.header-info.info3 i {
  transform: rotate(-95deg);
  -webkit-transform: rotate(-95deg);
  -moz-transform: rotate(-95deg);
  -ms-transform: rotate(-95deg);
  -o-transform: rotate(-95deg);
}

.header-info.info4 {
  top: 600px;
  left: 100px;
}

.about {
  width: 100%;
  min-height: 100vh;
  padding: 150px 0 150px 0;
  display: flex;
  align-items: center;
}

.about .title {
  margin-bottom: 100px;
  text-align: center;
}

.about .title h1 {
  font-size: 40px;
}

.about .title p {
  color: rgba(0, 0, 0, 0.5);
}

.about .about-box {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  justify-content: center;
}

.about .about-box .box:nth-child(1) img {
  width: 100%;
}

.about .about-box .box:nth-child(2) {
  padding-left: 80px;
}

.about .about-box .box:nth-child(2) h1 {
  margin-bottom: 5px;
}

.about .about-box .box .ability {
  margin-bottom: 20px;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.5);
}

.about .about-box .box .desc {
  font-size: 14px;
  line-height: 2;
  margin-bottom: 30px;
}

.about .about-box .box a {
  padding: 15px 25px 15px 25px;
  text-decoration: none;
  background-color: var(--color-ungu);
  color: white;
  border-radius: 5px;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  -ms-border-radius: 5px;
  -o-border-radius: 5px;
}

.about .about-box .box a:hover {
  background-color: #6c5bc2;
}

.about .about-box .box .desc span {
  font-weight: 600;
}
.projects {
  padding: 150px 0 150px 0;
}

.projects .title {
  text-align: center;
  margin-bottom: 150px;
}

.projects .title h1 {
  font-size: 40px;
}

.projects .title p {
  color: rgba(0, 0, 0, 0.5);
}

.projects .big-projects {
  margin-bottom: 150px;
}

.projects .big-projects h1 {
  text-align: center;
  margin-bottom: 20px;
}

.projects .big-projects .big-projects-box {
  display: flex;
  flex-wrap: wrap;
  column-gap: 20px;
  row-gap: 50px;
  justify-content: center;
}

.projects .big-projects .big-projects-box .box {
  width: 320px;
  max-width: 100%;
}

.projects .big-projects .big-projects-box .box img {
  width: 100%;
  height: 250px;
  margin-bottom: 20px;
}

.projects .big-projects .big-projects-box .box h1 {
  margin-bottom: 5px;
}

.projects .big-projects .big-projects-box .box p {
  margin-bottom: 10px;
  font-size: 14px;
}

.projects .big-projects .big-projects-box .box .tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.projects .big-projects .big-projects-box .box .tools button {
  width: 100px;
  height: 30px;
  background-color: transparent;
  border-radius: 100px;
  -webkit-border-radius: 100px;
  -moz-border-radius: 100px;
  -ms-border-radius: 100px;
  -o-border-radius: 100px;
  border: 1px solid black;
}

.projects .big-projects .big-projects-box .box .detail-projects {
  display: flex;
  justify-content: center;
  gap: 5px;
}

.projects .big-projects .big-projects-box .box .detail-projects a {
  text-decoration: none;
  padding: 5px 20px 5px 20px;
  color: var(--text-color);
}

.projects .big-projects .big-projects-box .box .detail-projects a:nth-child(1) {
  background-color: #833bec;
}

.projects .big-projects .big-projects-box .box .detail-projects a:nth-child(2) {
  background-color: green;
}

.projects .big-projects .big-projects-box .box .detail-projects a:hover {
  opacity: 80%;
}

.projects .front-projects {
  margin-bottom: 150px;
}

.projects .front-projects h1 {
  text-align: center;
  margin-bottom: 20px;
}

.projects .front-projects .front-projects-box {
  display: flex;
  flex-wrap: wrap;
  column-gap: 20px;
  row-gap: 50px;
  justify-content: center;
}

.projects .front-projects .front-projects-box .box {
  width: 320px;
  max-width: 100%;
}

.projects .front-projects .front-projects-box .box img {
  width: 100%;
  height: 250px;
  margin-bottom: 20px;
}

.projects .front-projects .front-projects-box .box h1 {
  margin-bottom: 5px;
}

.projects .front-projects .front-projects-box .box p {
  margin-bottom: 10px;
  font-size: 14px;
}

.projects .front-projects .front-projects-box .box .tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.projects .front-projects .front-projects-box .box .tools button {
  width: 100px;
  height: 30px;
  background-color: transparent;
  border-radius: 100px;
  -webkit-border-radius: 100px;
  -moz-border-radius: 100px;
  -ms-border-radius: 100px;
  -o-border-radius: 100px;
  border: 1px solid black;
}

.projects .front-projects .front-projects-box .box .detail-projects {
  display: flex;
  justify-content: center;
  gap: 5px;
}

.projects .front-projects .front-projects-box .box .detail-projects a {
  text-decoration: none;
  padding: 5px 20px 5px 20px;
  color: var(--text-color);
}

.projects .front-projects .front-projects-box .box .detail-projects a:nth-child(1) {
  background-color: #833bec;
}

.projects .front-projects .front-projects-box .box .detail-projects a:nth-child(2) {
  background-color: green;
}

.projects .front-projects .front-projects-box .box .detail-projects a:hover {
  opacity: 80%;
}

.projects .ui-ux-design {
  margin-bottom: 100px;
}

.projects .ui-ux-design h1 {
  text-align: center;
  margin-bottom: 20px;
}

.projects .ui-ux-design .ui-ux-design-box {
  display: flex;
  flex-wrap: wrap;
  column-gap: 20px;
  row-gap: 30px;
  justify-content: center;
}

.projects .ui-ux-design .ui-ux-design-box .box {
  width: 320px;
  max-width: 100%;
}

.projects .ui-ux-design .ui-ux-design-box .box img {
  width: 100%;
  height: 250px;
  margin-bottom: 20px;
}

.projects .ui-ux-design .ui-ux-design-box .box h1 {
  margin-bottom: 5px;
}

.projects .ui-ux-design .ui-ux-design-box .box p {
  margin-bottom: 10px;
  font-size: 14px;
}

.projects .ui-ux-design .ui-ux-design-box .box .tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.projects .ui-ux-design .ui-ux-design-box .box .tools button {
  width: 100px;
  height: 30px;
  background-color: transparent;
  border-radius: 100px;
  -webkit-border-radius: 100px;
  -moz-border-radius: 100px;
  -ms-border-radius: 100px;
  -o-border-radius: 100px;
  border: 1px solid black;
}

.projects .ui-ux-design .dribbble {
  text-align: center;
  margin-top: 50px;
}

.projects .ui-ux-design .dribbble a {
  text-decoration: none;
  padding: 10px 20px 10px 20px;
  background-color: #ff006e;
  color: var(--text-color);
}

.projects .ui-ux-design .dribbble a:hover {
  opacity: 80%;
}

.projects .ui-ux-design .dribbble a i {
  margin-left: 5px;
}

.resume {
  padding: 150px 0 150px 0;
  background-color: var(--color-hitam);
}

.resume .resume-box {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  gap: 100px;
}

.resume .resume-box .box img {
  width: 100%;
}

.resume .resume-box .box h1 {
  color: var(--text-color);
  margin-bottom: 10px;
  font-size: 40px;
}

.resume .resume-box .box p {
  color: var(--text-color-opacity);
  margin-bottom: 40px;
}

.resume .resume-box .box a {
  text-decoration: none;
  color: var(--text-color);
  padding: 15px 30px 15px 30px;
  background-color: var(--color-ungu);
}

.resume .resume-box .box a:hover {
  opacity: 80%;
}

.footer {
  padding: 100px 0 100px 0;
  background-color: var(--color-hitam);
  margin-top: -10px;
}

.footer .footer-box {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 50px;
}

.footer .footer-box .box:nth-child(1) {
  width: min(500px, 100%);
  color: var(--text-color);
}

.footer .footer-box .box:nth-child(1) h2 {
  margin-bottom: 20px;
}

.footer .footer-box .box:nth-child(1) p {
  color: var(--text-color-opacity);
}

.footer .footer-box .box:nth-child(2) {
  width: 100px;
  display: flex;
  flex-direction: column;
}

.footer .footer-box .box:nth-child(2) h3 {
  color: var(--text-color);
  margin-bottom: 20px;
}

.footer .footer-box .box:nth-child(2) a {
  text-decoration: none;
  color: var(--text-color-opacity);
  margin-bottom: 5px;
}

.footer .footer-box .box:nth-child(2) a:hover {
  color: var(--text-color);
}

.footer .footer-box .box:nth-child(3) {
  width: 150px;
  display: flex;
  flex-direction: column;
}

.footer .footer-box .box:nth-child(3) h3 {
  color: var(--text-color);
  margin-bottom: 20px;
}

.footer .footer-box .box:nth-child(3) a {
  text-decoration: none;
  color: var(--text-color-opacity);
  margin-bottom: 5px;
}

.footer .footer-box .box:nth-child(3) a:hover {
  color: var(--text-color);
}

.loader {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  background-color: #f1f2f3;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}

.loader img {
  width: 50px;
  height: 50px;
}

.loader.loader-active {
  display: none;
}

@media screen and (max-width: 1200px) {
  .header .header-box img {
    width: 150px;
    height: 150px;
  }
  .header .header-box h2 {
    font-size: 20px;
  }
  .header .header-box h1 {
    font-size: 40px;
  }
  .header .header-box p {
    font-size: 12px;
  }
  .header-info {
    gap: 20px;
  }
  .header-info.info1 {
    left: 200px;
  }
  .header-info.info2 {
    right: 200px;
  }
  .header-info.info3 {
    top: 700px;
  }
  .header-info.info4 {
    top: 700px;
  }
}

@media screen and (max-width: 992px) {
  .header .header-box p {
    width: 75%;
  }
  .header-info.info1 {
    left: 100px;
  }
  .header-info.info2 {
    right: 100px;
  }
  .header-info.info3 {
    right: 50px;
  }
  .header-info.info4 {
    left: 50px;
  }
  .about .about-box {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(2, 1fr);
    gap: 100px;
  }
  .about .about-box .box:nth-child(1) img {
    width: min(500px, 100%);
    margin-inline: auto;
    display: block;
  }
  .about .about-box .box:nth-child(2) {
    text-align: center;
    padding: 0;
  }
  .resume .resume-box .box p {
    font-size: 14px;
  }
}

@media screen and (max-width: 768px) {
  .navbar .navbar-box .menu {
    position: absolute;
    flex-direction: column;
    top: 100px;
    gap: 0;
    background-color: var(--color-putih);
    width: 80%;
    transform: scaleY(0);
    -webkit-transform: scaleY(0);
    -moz-transform: scaleY(0);
    -ms-transform: scaleY(0);
    -o-transform: scaleY(0);
    transform-origin: top;
    transition: all 0.2s ease;
    -webkit-transition: all 0.2s ease;
    -moz-transition: all 0.2s ease;
    -ms-transition: all 0.2s ease;
    -o-transition: all 0.2s ease;
    opacity: 0;
  }
  .navbar .navbar-box .menu.menu-active {
    transform: scaleY(1);
    -webkit-transform: scaleY(1);
    -moz-transform: scaleY(1);
    -ms-transform: scaleY(1);
    -o-transform: scaleY(1);
    opacity: 1;
  }
  .navbar .navbar-box .menu li {
    text-align: center;
    padding: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.2);
  }
  .navbar .navbar-box .menu li:hover {
    background-color: var(--color-ungu);
  }
  .navbar .navbar-box .menu li a {
    color: var(--color-hitam);
    font-weight: bold;
  }
  .navbar .navbar-box .social {
    margin-left: auto;
  }
  .hamburger {
    display: block;
  }
  .header-info {
    display: none;
  }
  .header .header-box h1 {
    font-size: 30px;
  }
  .header .header-box p {
    width: 85%;
  }
  .about .about-box .box:nth-child(1) img {
    width: min(400px, 100%);
  }
  .resume .resume-box {
    grid-template-columns: 1fr;
  }
  .resume .resume-box .box img {
    width: min(300px, 100%);
    margin-inline: auto;
    display: block;
  }
  .resume .resume-box .box:nth-child(2) {
    text-align: center;
  }
}

@media screen and (max-width: 475px) {
  .header .header-box h2 {
    font-size: 16px;
  }
  .header .header-box h1 {
    font-size: 24px;
    line-height: 1.5;
  }
  .header .header-box p {
    width: 100%;
    font-size: 10px;
  }
  .about .title {
    margin-bottom: 50px;
  }
  .about .title h1 {
    font-size: 35px;
  }
  .about .about-box {
    gap: 30px;
  }
  .about .about-box .box:nth-child(1) img {
    width: min(300px, 100%);
  }
  .about .about-box .box h1 {
    font-size: 28px;
  }
  .projects .big-projects .big-projects-box .box img {
    height: 220px;
  }
  .projects .front-projects .front-projects-box .box img {
    height: 220px;
  }
  .projects .ui-ux-design .ui-ux-design-box .box img {
    height: 220px;
  }
  .resume .resume-box .box img {
    width: min(250px, 100%);
  }
  .resume .resume-box .box p {
    font-size: 12px;
  }
  .footer .footer-box .box:nth-child(1) p {
    font-size: 14px;
    line-height: 2;
  }
}

@media screen and (max-width: 375px) {
  .header .header-box h1 {
    font-size: 20px;
  }
  .about .title {
    margin-bottom: 20px;
  }
  .about .title h1 {
    font-size: 30px;
  }
  .skills .title h1 {
    font-size: 30px;
  }
}

/* ===== PORTFOLIO SECTIONS ===== */

.portfolio-section {
  padding: 100px 0;
  scroll-margin-top: 90px;
}

.portfolio-section .title {
  margin-bottom: 45px;
}

.portfolio-section .title h1 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
}

.portfolio-section .title p {
  max-width: 650px;
  line-height: 1.8;
}

/* PROJECTS */

.project-grid,

.achievement-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.portfolio-card,

.certificate-card,

.achievement-card {
  background: var(--card-bg, #ffffff);
  border: 1px solid rgba(128, 128, 128, 0.18);
  border-radius: 18px;
  padding: 28px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-card:hover,

.certificate-card:hover,

.achievement-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.08);
}

.portfolio-card-icon,

.certificate-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(245, 166, 35, 0.13);
  color: #d58b0a;
  font-size: 23px;
  margin-bottom: 22px;
}

.portfolio-label,

.achievement-category {
  display: inline-block;
  color: #b47a0a;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  margin-bottom: 12px;
}

.portfolio-card h3,

.certificate-card h3,

.achievement-card h3 {
  font-size: 20px;
  line-height: 1.5;
  margin: 0 0 12px;
}

.portfolio-card p,

.certificate-card p,

.achievement-card p {
  font-size: 14px;
  line-height: 1.85;
  opacity: 0.85;
}

.portfolio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.portfolio-tags span {
  padding: 7px 11px;
  border-radius: 20px;
  background: rgba(128, 128, 128, 0.10);
  font-size: 11px;
}

/* CERTIFICATIONS */

.certificate-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}

.certificate-card {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.certificate-icon {
  flex-shrink: 0;
}

.certificate-provider {
  font-weight: 600;
}

.certificate-date,

.certificate-id {
  font-size: 12px !important;
  opacity: 0.7 !important;
}

.section-note {
  margin-top: 20px;
  font-size: 12px;
  opacity: 0.65;
}

/* ACHIEVEMENTS */

.achievement-number {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  margin-bottom: 18px;
  color: #d58b0a;
  font-size: 35px;
  font-weight: 800;
}

.achievement-number span {
  font-size: 17px;
  font-weight: 600;
}

.achievement-number i {
  font-size: 30px;
}

.achievement-category {
  margin-top: 12px;
  margin-bottom: 0;
}

/* RESPONSIVE */

@media (max-width: 768px) {
  .portfolio-section {
    padding: 70px 0;
  }
  .project-grid,
  .achievement-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .portfolio-card,
  .certificate-card,
  .achievement-card {
    padding: 22px;
  }
  .certificate-card {
    flex-direction: column;
    gap: 8px;
  }
  .portfolio-card h3,
  .certificate-card h3,
  .achievement-card h3 {
    font-size: 18px;
  }
}

/* ===== EXPERIENCE CATEGORY TABS ===== */

.experience {
  padding: 100px 0;
  scroll-margin-top: 90px;
}

.experience .title {
  margin-bottom: 35px;
}

.experience-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 40px;
}

.experience-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 58px;
  padding: 14px 16px;
  border: 1px solid rgba(128, 128, 128, 0.22);
  border-radius: 12px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.25s ease,
              color 0.25s ease,
              border-color 0.25s ease,
              transform 0.25s ease;
}

.experience-tab i {
  font-size: 17px;
}

.experience-tab:hover {
  transform: translateY(-2px);
  border-color: #e7a126;
}

.experience-tab.active {
  background: #202b42;
  border-color: #202b42;
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(32, 43, 66, 0.15);
}

.experience-tab.active i {
  color: #f5b544;
}

/* ===== EXPERIENCE PANELS ===== */

.experience-panel {
  min-width: 0;
  animation: experienceFadeIn 0.35s ease;
}

.experience-panel[hidden] {
  display: none !important;
}

@keyframes experienceFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.experience-panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 25px;
}

.experience-eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  color: #c38b25;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.experience-panel-heading h2 {
  margin: 0 0 8px;
  font-size: clamp(22px, 3vw, 30px);
}

.experience-panel-heading p {
  margin: 0;
  font-size: 13px;
  line-height: 1.8;
  opacity: 0.7;
}

.experience-count {
  flex-shrink: 0;
  padding: 8px 12px;
  border-radius: 20px;
  background: rgba(128, 128, 128, 0.1);
  font-size: 11px;
  font-weight: 600;
}

/* ===== HORIZONTAL EXPERIENCE CARDS ===== */

.experience-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 5px 3px 22px;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #c9c9c9 transparent;
}

.experience-card {
  box-sizing: border-box;
  flex: 0 0 calc((100% - 40px) / 3);
  min-width: 0;
  padding: 25px;
  border: 1px solid rgba(128, 128, 128, 0.2);
  border-radius: 16px;
  background: var(--card-bg, #ffffff);
  scroll-snap-align: start;
  transition: transform 0.25s ease,
              box-shadow 0.25s ease;
}

.experience-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.07);
}

.experience-type {
  display: inline-block;
  padding: 7px 10px;
  margin-bottom: 12px;
  border-radius: 5px;
  background: rgba(245, 166, 35, 0.13);
  color: #a76c06;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.8px;
}

.experience-date {
  margin: 0 0 12px;
  font-size: 11px;
  opacity: 0.65;
}

.experience-card h3 {
  margin: 0 0 7px;
  font-size: 17px;
  line-height: 1.5;
}

.experience-card h4 {
  margin: 0 0 17px;
  font-size: 12px;
  line-height: 1.7;
  font-weight: 600;
  opacity: 0.75;
}

.experience-card ul {
  padding-left: 18px;
  margin: 0;
}

.experience-card li {
  padding-left: 2px;
  margin-bottom: 10px;
  font-size: 12px;
  line-height: 1.8;
  opacity: 0.85;
}

.experience-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 20px;
}

.experience-tags span {
  padding: 6px 9px;
  border-radius: 20px;
  background: rgba(128, 128, 128, 0.1);
  font-size: 10px;
}

/* ===== PREVIOUS / NEXT BUTTONS ===== */

.experience-controls {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
}

.experience-controls button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(128, 128, 128, 0.3);
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: background 0.2s ease,
              color 0.2s ease;
}

.experience-controls button:hover {
  background: #202b42;
  color: #ffffff;
}

/* ===== TABLET ===== */

@media (max-width: 1024px) {
  .experience-card {
    flex-basis: calc((100% - 20px) / 2);
  }
  .experience-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ===== MOBILE ===== */

@media (max-width: 600px) {
  .experience {
    padding: 70px 0;
  }
  .experience-tabs {
    gap: 8px;
    margin-bottom: 30px;
  }
  .experience-tab {
    justify-content: flex-start;
    min-height: 52px;
    padding: 12px;
    font-size: 11px;
    gap: 8px;
  }
  .experience-tab i {
    font-size: 15px;
  }
  .experience-panel-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .experience-card {
    flex: 0 0 86%;
    padding: 22px;
  }
  .experience-card h3 {
    font-size: 16px;
  }
  .experience-card li {
    font-size: 12px;
  }
}

/* ===== FIXED NAVBAR ===== */

/* Supaya bagian header tidak tertutup navbar */

body {
  padding-top: 80px;
  scroll-padding-top: 90px;
}

/* Navigasi menuju section tetap terlihat rapi */

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

/* Tampilan mobile */

@media (max-width: 768px) {
  body {
    padding-top: 70px;
  }
  html {
    scroll-padding-top: 80px;
  }
}

/* ===== PROJECT CARDS ===== */

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 24px;
  align-items: stretch;
  margin-top: 35px;
}

.project-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 14px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.project-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f2f2f2;
}

.project-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.04);
}

.project-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px 20px 20px;
}

.project-label {
  display: inline-block;
  margin-bottom: 10px;
  color: #c18400;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.1px;
  line-height: 1.6;
}

.project-content h3 {
  margin: 0 0 10px;
  color: #171717;
  font-size: 20px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.project-content p {
  margin: 0 0 18px;
  color: #555555;
  font-size: 14px;
  line-height: 1.8;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.project-tags span {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 20px;
  background: #f1f1f1;
  color: #333333;
  font-size: 11px;
  line-height: 1.5;
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 4px;
}

.project-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 40px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: 5px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.project-btn:hover {
  transform: translateY(-2px);
}

.github-btn {
  background: #8038e8;
}

.github-btn:hover {
  background: #6925cc;
}

.demo-btn {
  background: #078b16;
}

.demo-btn:hover {
  background: #056b10;
}

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

@media (max-width: 1024px) {
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
}

@media (max-width: 640px) {
  .project-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .project-content {
    padding: 18px 16px;
  }

  .project-content h3 {
    font-size: 18px;
  }

  .project-actions {
    gap: 8px;
  }

  .project-btn {
    flex: 1;
    padding: 10px 14px;
  }
}

/* ===== INTERNSHIP DOCUMENTATION SLIDESHOW ===== */

.experience-gallery {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 18px 0 22px;
  overflow: hidden;
  border-radius: 12px;
  background: #eeeeee;
  isolation: isolate;
}

.experience-gallery-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.experience-gallery .gallery-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.03);
  transition:
    opacity 0.7s ease,
    transform 1.2s ease;
  pointer-events: none;
}

.experience-gallery .gallery-image.active {
  opacity: 1;
  transform: scale(1);
}

/* Previous and next arrows */
.experience-gallery .gallery-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(20, 20, 20, 0.65);
  color: #ffffff;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.2s ease, opacity 0.2s ease;
}

.experience-gallery .gallery-prev {
  left: 12px;
}

.experience-gallery .gallery-next {
  right: 12px;
}

.experience-gallery .gallery-arrow:hover {
  background: rgba(20, 20, 20, 0.9);
}

/* Image indicators */
.experience-gallery .gallery-indicators {
  position: absolute;
  z-index: 2;
  bottom: 12px;
  left: 50%;
  display: flex;
  justify-content: center;
  gap: 7px;
  transform: translateX(-50%);
}

.experience-gallery .gallery-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.65);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.experience-gallery .gallery-dot.active {
  width: 22px;
  border-radius: 10px;
  background: #ffffff;
}

/* Caption overlay */
.experience-gallery .gallery-caption {
  position: absolute;
  z-index: 1;
  top: 12px;
  left: 12px;
  padding: 6px 10px;
  border-radius: 5px;
  background: rgba(20, 20, 20, 0.65);
  color: #ffffff;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  pointer-events: none;
}

/* Mobile adjustments */
@media (max-width: 640px) {
  .experience-gallery {
    margin: 14px 0 18px;
    border-radius: 9px;
  }

  .experience-gallery .gallery-arrow {
    width: 32px;
    height: 32px;
  }

  .experience-gallery .gallery-prev {
    left: 8px;
  }

  .experience-gallery .gallery-next {
    right: 8px;
  }
}

/* Respect reduced-motion accessibility settings */
@media (prefers-reduced-motion: reduce) {
  .experience-gallery .gallery-image,
  .experience-gallery .gallery-arrow,
  .experience-gallery .gallery-dot {
    transition: none;
  }
}


/* ===== CERTIFICATIONS SECTION ===== */

.certificate-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-top: 32px;
  align-items: stretch;
}

.certificate-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e5e5e5;
  border-radius: 16px;
  background: #ffffff;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.certificate-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

/* Certificate preview image */
.certificate-image-link {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f1f1f1;
  text-decoration: none;
}

.certificate-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  transition: transform 0.4s ease;
}

.certificate-card:hover .certificate-image {
  transform: scale(1.03);
}

.certificate-image-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: rgba(0, 0, 0, 0.58);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.certificate-image-link:hover .certificate-image-overlay,
.certificate-image-link:focus-visible .certificate-image-overlay {
  opacity: 1;
}

/* Certificate information */
.certificate-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px;
}

.certificate-content .portfolio-label {
  margin-bottom: 10px;
}

.certificate-content h3 {
  margin: 0 0 8px;
  color: #171717;
  font-size: 21px;
  line-height: 1.4;
}

.certificate-provider {
  margin: 0 0 14px;
  color: #8a6200;
  font-size: 14px;
  font-weight: 600;
}

.certificate-description {
  margin: 0 0 18px;
  color: #555555;
  font-size: 14px;
  line-height: 1.8;
}

.certificate-date,
.certificate-id {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 0 0 10px;
  color: #666666;
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.certificate-date i,
.certificate-id i {
  margin-top: 3px;
  flex-shrink: 0;
}

/* Certificate action buttons */
.certificate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  margin-top: auto;
  padding-top: 20px;
}

.certificate-btn {
  display: inline-flex;
  flex: 1 1 150px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 11px 14px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.certificate-btn:hover {
  transform: translateY(-2px);
}

.certificate-view-btn {
  background: #7c3aed;
  color: #ffffff;
}

.certificate-view-btn:hover {
  background: #6528cb;
}

.certificate-verify-btn {
  border-color: #dddddd;
  background: #ffffff;
  color: #333333;
}

.certificate-verify-btn:hover {
  border-color: #7c3aed;
  color: #7c3aed;
}

/* Section note */
.certifications .section-note {
  margin-top: 24px;
  color: #777777;
  font-size: 13px;
  line-height: 1.7;
}

/* Tablet */
@media (max-width: 900px) {
  .certificate-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .certificate-content {
    padding: 20px;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .certificate-grid {
    grid-template-columns: 1fr;
  }

  .certificate-content h3 {
    font-size: 19px;
  }

  .certificate-actions {
    flex-direction: column;
  }

  .certificate-btn {
    flex-basis: auto;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .certificate-card,
  .certificate-image,
  .certificate-image-overlay,
  .certificate-btn {
    transition: none;
  }
}

.social {
  display: flex;
  align-items: center;
  gap: 15px;
}

.social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--main-color);
  border-radius: 50%;
  color: var(--main-color);
  font-size: 20px;
  text-decoration: none;
  transition: 0.3s ease;
}

.social a:hover {
  background: var(--main-color);
  color: var(--bg-color);
  transform: translateY(-5px);
  box-shadow: 0 0 15px var(--main-color);
}

/* ================= SKILLS SECTION ================= */

.skills-section {
  padding: 100px 8%;
  background: var(--bg-color);
}

.skills-section .title {
  text-align: center;
  margin-bottom: 60px;
}

.skills-section .title h1 {
  font-size: 3.5rem;
  margin-bottom: 15px;
}

.skills-section .title p {
  font-size: 1.5rem;
  color: var(--text-color);
  max-width: 750px;
  margin: auto;
  line-height: 1.7;
}


/* ================= SOFT SKILLS ================= */

.soft-skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.soft-skill-card {
  padding: 35px 25px;
  text-align: center;
  background: var(--second-bg-color);
  border-radius: 15px;
  border: 1px solid transparent;
  transition: 0.3s ease;
}

.soft-skill-card:hover {
  transform: translateY(-8px);
  border-color: var(--main-color);
  box-shadow: 0 0 15px rgba(0, 171, 240, 0.15);
}

.soft-skill-card i {
  font-size: 3.5rem;
  color: var(--main-color);
  margin-bottom: 20px;
}

.soft-skill-card h3 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.soft-skill-card p {
  font-size: 1.4rem;
  line-height: 1.7;
  color: var(--text-color);
}


/* ================= HARD SKILLS ================= */

.hard-skill-category {
  margin-bottom: 75px;
}

.hard-skill-category h2 {
  font-size: 2.3rem;
  text-align: center;
  margin-bottom: 45px;
  position: relative;
}

.hard-skill-category h2::after {
  content: "";
  display: block;
  width: 65px;
  height: 3px;
  background: var(--main-color);
  margin: 15px auto 0;
  border-radius: 5px;
}

.hard-skills-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 55px 35px;
  max-width: 1000px;
  margin: auto;
}

.hard-skill-item {
  text-align: center;
  padding: 25px 15px;
  transition: 0.3s ease;
}

.hard-skill-item:hover {
  transform: translateY(-8px);
}

.hard-skill-item img {
  width: 75px;
  height: 75px;
  object-fit: contain;
  margin-bottom: 15px;
  transition: 0.3s ease;
}

.hard-skill-item:hover img {
  transform: scale(1.12);
}

.hard-skill-item h3 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: var(--text-color);
}

.hard-skill-item p {
  font-size: 1.4rem;
  line-height: 1.6;
  color: var(--text-color);
  opacity: 0.7;
}


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

@media (max-width: 991px) {

  .skills-section {
    padding: 80px 5%;
  }

  .soft-skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hard-skills-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 35px 20px;
  }

}

@media (max-width: 600px) {

  .skills-section {
    padding: 70px 5%;
  }

  .skills-section .title h1 {
    font-size: 2.8rem;
  }

  .skills-section .title p {
    font-size: 1.3rem;
  }

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

  .hard-skills-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px 10px;
  }

  .hard-skill-category h2 {
    font-size: 1.9rem;
  }

  .hard-skill-item img {
    width: 60px;
    height: 60px;
  }

  .hard-skill-item h3 {
    font-size: 1.7rem;
  }

  .hard-skill-item p {
    font-size: 1.2rem;
  }

}

/* ================= FIX SKILLS DARK THEME ================= */

#skills,
#hard-skills {
    background: #1b1b1b !important;
    color: #ffffff !important;
}

/* Section Title */
#skills .title h1,
#hard-skills .title h1 {
    color: #ffffff !important;
}

#skills .title p,
#hard-skills .title p {
    color: #b5b5b5 !important;
}

/* Soft Skills Card */
#skills .soft-skill-card {
    background: #252525 !important;
    color: #ffffff !important;
    border: 1px solid #383838 !important;
}

#skills .soft-skill-card i {
    color: #00abf0 !important;
}

#skills .soft-skill-card h3 {
    color: #ffffff !important;
}

#skills .soft-skill-card p {
    color: #b5b5b5 !important;
}

/* Hard Skills */
#hard-skills .hard-skill-category h2 {
    color: #ffffff !important;
}

#hard-skills .hard-skill-item h3 {
    color: #ffffff !important;
}

#hard-skills .hard-skill-item p {
    color: #b5b5b5 !important;
}

/* Hover Effect */
#skills .soft-skill-card:hover {
    border-color: #00abf0 !important;
    box-shadow: 0 0 15px rgba(0, 171, 240, 0.2);
}
