/* ------------------- */
/* Custom properties   */
/* ------------------- */

:root {
  /* colors */
  --clr-dark: 230 35% 7%;
  --clr-light: 231 77% 90%;
  --clr-white: 0 0% 100%;

  /* font-sizes */
  --fs-900: clamp(5rem, 8vw + 1rem, 9.375rem);
  --fs-800: clamp(3.5rem, 5vw + 1rem, 5.5rem);
  --fs-700: 1.5rem;
  --fs-600: 1rem;
  --fs-500: 1.75rem;
  --fs-400: 0.9375rem;
  --fs-300: 1rem;
  --fs-200: 0.875rem;
}

@media (min-width: 35em) {
  :root {
    --fs-700: 2.5rem;
    --fs-600: 1.5rem;
    --fs-400: 1rem;
  }
}

@media (min-width: 45em) {
  :root {
    --fs-700: 3.5rem;
    --fs-600: 2rem;
    --fs-400: 1.125rem;
  }
}


/* ------------------- */
/* Reset               */
/* ------------------- */

/* https://piccalil.li/blog/a-modern-css-reset/ */

/* Box sizing */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Reset margins */
body,
h1,
h2,
h3,
h4,
h5,
p,
figure,
picture {
  margin: 0;
}

/* Default font and weight */
body {
  font-family: "Lato", sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  font-weight: 400;
}


/* ------------------- */
/* Font Utility Classes*/
/* ------------------- */

/* Font family - Lato Regular and Italic Variants */
.lato-regular {
  font-family: "Lato", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.lato-bold {
  font-family: "Lato", sans-serif;
  font-weight: 700;
  font-style: normal;
}

.lato-regular-italic {
  font-family: "Lato", sans-serif;
  font-weight: 400;
  font-style: italic;
}

.lato-bold-italic {
  font-family: "Lato", sans-serif;
  font-weight: 700;
  font-style: italic;
}


/* ------------------- */
/* Font Size Utilities */
/* ------------------- */

.fs-900 {
  font-size: var(--fs-900);
  line-height: 1.1;
}

.fs-800 {
  font-size: var(--fs-800);
  line-height: 1.1;
}

.fs-700 {
  font-size: var(--fs-700);
  line-height: 1.1;
}

.fs-600 {
  font-size: var(--fs-600);
  line-height: 1.1;
}

.fs-500 {
  font-size: var(--fs-500);
  line-height: 1.4;
}

.fs-400 {
  font-size: var(--fs-400);
  line-height: 1.4;
}

.fs-300 {
  font-size: var(--fs-300);
  line-height: 1.4;
}

.fs-200 {
  font-size: var(--fs-200);
  line-height: 1.4;
}

.uppercase {
  text-transform: uppercase;
}


/* For Body */

body {
  font-family: 'Lato', sans-serif;
  padding: 2rem;
}


.flex {
  display: flex;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1em;
  padding-inline: 2em;
  margin-inline: auto;
}

.center {
  justify-content: center;
  align-items: center;
}


/* colorrrrr brooooo */

.bg-dark {
  background-color: hsl(var(--clr-dark));
}

.bg-accent {
  background-color: hsl(var(--clr-light));
}

.bg-white {
  background-color: hsl(var(--clr-white));
}

.text-dark {
  color: hsl(var(--clr-dark));
}

.text-accent {
  color: hsl(var(--clr-light));
}

.text-white {
  color: hsl(var(--clr-white));
}


.center {
  display: flex;
  /* Tambahkan ini! */
  justify-content: center;
  /* Tengah horizontal */
  align-items: center;
  /* Tengah vertikal */
  height: auto;
}


/* --------------------------------------------------------------------------------------- */
/* --------------------------------------------------------------------------------------- */
/* --------------------------------------------------------------------------------------- */
/* desingn stystemnya selesaai */


/* navbar */

/* Navbar container */
.navbar {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 999;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1em 1.5em;
  backdrop-filter: blur(12px);
  /* background blur */
  transition: background-color 0.3s ease;
}

/* Logo */
.logo {
  font-weight: bold;
  font-size: 1.2rem;
  color: #f5e12e;
}

/* Nav links */
.nav-links {
  display: flex;
  gap: 1.5em;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-size: 1rem;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  background-color: #f5e12e;
  bottom: -4px;
  left: 0;
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Toggle button for mobile */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: white;
  cursor: pointer;
}

/* Mobile Styles */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: center;
    display: none;
    gap: 1em;
    padding: 1em 0;
  }

  .nav-links.show {
    display: flex;
  }
}

.navbar {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 999;
  padding: 1em 1.5em;
  display: flex;
  justify-content: space-around;
  align-items: center;
  backdrop-filter: blur(12px);
  transition: top 0.3s ease-in-out;
}

.navbar.hidden {
  top: -100px;
}



/* ini spesial di awalll */

.intro_me {
  display: flex;
  /* justify-content: center; */
  /* align-items: center; */
  height: 60dvh;
  position: relative;
  /* padding: 0 5vw; */
  box-sizing: border-box;
  padding-top: 20vw;
  padding-bottom: 0.5em;
}



.gambar-whatsapp-2025-02-04-puk-parent {
  width: 800px;
  position: relative;
  height: 310px;
  text-align: center;
  font-size: 64px;
  color: #f8f2f2;
}

.gambar-whatsapp-2025-02-04-puk {
  position: absolute;
  top: 2px;
  left: 380px;
  width: 128.7px;
  height: 229px;
  object-fit: cover;
}

.introduce-my-self {
  position: absolute;
  top: 200px;
  left: 0;
  display: inline-block;
  width: 769px;
}

.let-me {
  top: 50px;
  left: 0;
  display: inline-block;
  width: 769px;
}


/* =============================== */
/* bagian panah */
/* =============================== */

.panah {
  width: 100%;
  height: 120dvh;
  position: relative;
}

.panah path {
  stroke: whitesmoke;
  fill: none;
  stroke-width: 10;
  transition: stroke-dashoffset 0.2s ease-out;
}

@media screen and (max-width: 900px) {

  .intro_me,
  .panah {
    display: none;
  }
}




/* --------------------------- */
/* -section about mee */
/* --------------------------- */

.about {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  flex-wrap: wrap;
  /* biar responsif di layar kecil */
}

.text-about {
  flex: 1 1 70%;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.network a img {
  height: 3.5em;
  width: auto;
  transition: transform 0.2s ease;
}

.network a img:hover {
  transform: scale(1.06);
}

.michael {
  flex: 1 1 25%;
}

.michael img {
  width: 100%;
  height: auto;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
  background: transparent;
  border-radius: 10px;
}

.michael img:hover {
  filter: grayscale(0%);
}

.meme {
  display: inline-block;
  vertical-align: middle;
  transform: translateY(-0.3em);
  animation: spin-once 5s ease-in-out infinite;
  margin-left: 0.3rem;
}

.meme img {
  height: 4em;
  width: auto;
  transform-origin: top left;
  /* Kunci: pusat rotasi di pojok kiri atas */
}

/* Animasi: memutar sekali setiap 5 detik */
@keyframes spin-once {

  0%,
  90%,
  100% {
    transform: translateY(-0.3em) rotate(0deg);
  }

  45% {
    transform: translateY(-0.3em) rotate(90deg);
  }
}

/* experienceeee */

.timeline {
  position: relative;
  max-width: 1000px;
  margin: 50px auto;
  padding: 20px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 3px;
  height: 100%;
  background-color: #f5e12e;
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 20px 40px;
  box-sizing: border-box;
}

.timeline-item .content {
  /* background-color: #1a1a1a; */
  padding: 15px 20px;
  border-radius: 8px;
  /* border-left: 5px solid #f5e12e; */
  color: #fff;
  box-shadow: 0 0 8px rgba(245, 225, 46, 0.3);
}

.timeline-item.left {
  left: 0;
  text-align: right;
}

.timeline-item.left::before {
  content: '';
  position: absolute;
  top: 20px;
  right: -7.5px;
  width: 15px;
  height: 15px;
  background-color: #f5e12e;
  border-radius: 50%;
}

.timeline-item.right {
  left: 50%;
  text-align: left;
}

.timeline-item.right::before {
  content: '';
  position: absolute;
  top: 20px;
  left: -7.5px;
  width: 15px;
  height: 15px;
  background-color: #f5e12e;
  border-radius: 50%;
}

.duration {
  font-size: 0.9rem;
  opacity: 0.8;
  display: block;
  margin-top: 6px;
}

@media screen and (max-width: 768px) {
  .timeline {
    padding: 20px;
  }

  .timeline::before {
    display: none;
    /* hilangkan garis tengah */
  }

  .timeline-item {
    width: 100%;
    padding: 10px 20px;
    left: 0 !important;
    text-align: left;
  }

  .timeline-item.left,
  .timeline-item.right {
    text-align: left;
  }

  .timeline-item.left::before,
  .timeline-item.right::before {
    left: 20px;
    /* pindah bullet ke kiri */
    right: auto;
  }

  .timeline-item .content {
    margin-left: 40px;
    /* kasih spasi dari bullet */
  }
}

/* ========================================== */

.projects-section {
  padding: 60px 20px;
  /* background-color: #111; */
  color: #fff;
  text-align: center;
}

.projects-section h1 {
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: #f5e12e;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.project-card {
  /* background-color: #1a1a1a; */
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
}

.project-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.project-info {
  padding: 20px;
}

.project-title {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: #fff;
}

.project-description {
  font-size: 0.95rem;
  color: #ccc;
  margin-bottom: 15px;
}

.project-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.projects-section a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.projects-section a:hover {
  text-decoration: none;
  color: inherit;
}

.projects-section .project-card {
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  /* background-color: #1a1a1a; */
  cursor: pointer;
}

.projects-section .project-card:hover {
  transform: translateY(-8px);
}

.projects-section .project-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.projects-section .project-card:hover .project-image {
  transform: scale(1.05);
  filter: brightness(1.1);
}

/* icon section */

.icon-section {
  text-align: center;
  padding: 20px;
}

.icon-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 20px;
}

.icon {
  width: 60px;
  height: 60px;
  margin: 10px;
  transition: transform 0.3s;
}

.icon:hover {
  transform: scale(1.1);
}


/* ============================= */
/* sertification */
/* Certification Horizontal Section Responsive Layout */

/* Container flex settings */
.horizontal-section.flex {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

/* Grid layout for cards */
.horizontal-scroll {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(3, 1fr); /* 3 columns on desktop */
  width: 100%;
  padding: 1rem 0;
  box-sizing: border-box;
  /* REMOVE overflow-x: auto; */
}

/* Card styles */
.scroll-card {
  background: #181818;
  border-radius: 15px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.13);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  min-width: 0; /* allow shrinking for grid */
  transition: transform 0.2s;
}
.scroll-card img {
  width: 100%;
  max-width: 250px;
  border-radius: 10px;
  margin-bottom: 0.5rem;
  object-fit: cover;
}
.scroll-card p {
  color: #fff;
  margin: 0.5rem 0 0 0;
  text-align: center;
  font-size: 1rem;
  font-family: inherit;
}
.scroll-card:hover {
  transform: translateY(-5px) scale(1.03);
}

/* Responsive breakpoints */
@media (max-width: 1000px) {
  .horizontal-scroll {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 650px) {
  .horizontal-scroll {
    grid-template-columns: 1fr;
  }
  .scroll-card {
    min-width: 0;
  }
}

/* Modal Styling */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
}

.modal-content {
  /* background-color: #1a1a1a; */
  padding: 20px;
  border-radius: 16px;
  max-width: 500px;
  width: 90%;
  color: white;
  position: relative;
  text-align: center;
}

.modal-content img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 10px 0;
}

.close-btn {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 28px;
  color: white;
  cursor: pointer;
}
