body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1rem 2rem;
  z-index: 10; /* pastikan lebih tinggi dari video */
  background: transparent; /* biar menyatu dengan video */
}

@keyframes gradientBG {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.navbar {
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  color: black;
  font-family: "Segoe UI", sans-serif;
}

/* Brand */
.navbar-brand {
  font-size: 1.5rem;
  font-weight: bold;
}

/* Menu */
.navbar-menu {
  list-style: none;
  display: flex;
  align-items: center; /* ✅ ini yang memastikan semua item rata tengah vertikal */
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.navbar-menu li a {
  color: black;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.navbar-menu li a:hover {
  color: #ffd700; /* warna hover kuning keemasan */
}

/* Toggle Button (Burger) */
.navbar-toggle {
  display: none;
}

.navbar-icon {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  color: rgb(0, 0, 0);
}

/* Fade-in Animation (optional) */
.fade-in {
  animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .navbar-icon {
    display: block;
  }

  .navbar-menu {
    flex-direction: column;
    background-color: #c2c2c2;
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    display: none;
    padding: 1rem 2rem;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease-in-out;
    z-index: 99;
  }

  .navbar-menu li {
    margin: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
  }

  .navbar-menu li:last-child {
    border-bottom: none;
  }

  .navbar-toggle:checked ~ .navbar-menu {
    display: flex;
  }
}

.section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 40px 20px;
  /* background: linear-gradient(135deg, #ece9e6, #ffffff); */
}

.container {
  width: 80%;
  max-width: 1200px;
}

#project-container {
  background: #fffdf8;
}

#project-container h1 {
  margin-bottom: 40px;
  color: #333;
  text-transform: uppercase;
  font-size: 2rem;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 50px;
  margin-top: 50px;
  font-family: Arial, Helvetica, sans-serif;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: black;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-family: Arial, Helvetica, sans-serif;
}

h3 {
  font-family: Arial, Helvetica, sans-serif;
}

b {
  font-family: Arial, Helvetica, sans-serif;
}

p {
  color: grey;
  font-family: Arial, Helvetica, sans-serif;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  width: 100%;
}

.grid-container-project {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
}

.col {
  background: #ffffff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  font-size: 1.2rem;
  font-weight: bold;
  color: #444;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.col ul {
  list-style: disc;
  padding-left: 20px;
  text-align: left;
}

.col p,
.col li {
  font-size: 1rem;
  font-weight: normal;
  margin-top: 10px;
  color: #666;
}

.col:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.photo-col {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
}

/* .achievement-photo {
  width: 100%;
  max-width: 220px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
} */

.photo-container {
  display: grid;
  justify-content: center;
  gap: 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.photo-col {
  flex: 1;
}

.achievement-photo {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  -webkit-border-radius: 8px;
  -moz-border-radius: 8px;
  -ms-border-radius: 8px;
  -o-border-radius: 8px;
}

.newsection {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 10px;
}

#about::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 150px;
  width: 100%;
  background: linear-gradient(to top, transparent, rgba(255, 255, 255, 1));
  z-index: 0;
}

.about-container {
  position: relative;
  z-index: 1;
  padding: 200px;
  max-width: 800px;
  text-align: center;
  color: white;
  border-radius: 15px;
  animation: fadeInUp 1s ease-in-out;
  background: none;
}

.about-container h2 {
  position: relative;
  z-index: 2; /* Supaya teks berada di atas overlay */
  font-weight: bold;
  font-size: xx-large;
}

.about-container p {
  position: relative;
  z-index: 2; /* Supaya teks berada di atas overlay */
  font-size: larger;
}

/* Animasi fade-in */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .photo-container {
    grid-template-columns: repeat(2, 1fr); /* 2 columns for tablets */
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .photo-container {
    grid-template-columns: 1fr; /* 1 column for mobile */
    max-width: 100%;
    justify-items: center;
  }
}

/* Atur container utama */
#home {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 100px 0;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

#home::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 300px; /* sesuaikan tinggi gradasinya */
  width: 100%;
  background: linear-gradient(to bottom, transparent, rgb(255, 255, 255));
  z-index: 2; /* pastikan di atas video */
}

#about::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 200px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
  z-index: 0;
}

#achievement::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 200px;
  background: linear-gradient(to top, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
  z-index: 0;
}

.project-description {
  font-size: 0.95rem;
  font-weight: 500;
  color: #555;
  margin-bottom: 12px;
  font-family: Arial, Helvetica, sans-serif;
  text-align: center;
}

.image-section {
  margin-top: 30px;
}

.image-caption {
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: #333;
  text-align: center;
  font-weight: 500;
  font-family: Arial, Helvetica, sans-serif;
  margin-top: 20px;
}

.image-section img {
  margin-bottom: 20px;
}

#bg-video {
  position: absolute;
  top: 0;
  left: 0;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  z-index: -1;
}

/* Atur lebar container */
.home-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  gap: 50px;
}

/* Kolom teks */
.home-text {
  flex: 2;
  text-align: left;
}

.home-text h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.home-text p {
  font-size: 1.2rem;
  color: #555;
}

/* Kolom foto */
.home-photo {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.home-photo img {
  width: 100%;
  max-width: 600px;
  border-radius: 10px;
  opacity: 100%;
}

.project-photo {
  width: 100%;
  max-width: 300px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Responsif untuk layar kecil */
@media (max-width: 900px) {
  .home-content {
    flex-direction: column-reverse;
    text-align: center;
  }

  .home-photo img {
    max-width: 250px;
  }

  .about-container {
    padding: 50px;
  }
  .about-container h2 {
    position: relative;
    z-index: 2; /* Supaya teks berada di atas overlay */
    font-weight: bold;
    font-size: larger;
  }

  .about-container p {
    position: relative;
    z-index: 2; /* Supaya teks berada di atas overlay */
    font-size: medium;
  }
}

@media (max-width: 600px) {
  .home-content {
    flex-direction: column-reverse;
    text-align: center;
  }

  .home-photo img {
    max-width: 200px;
  }

  .home-text {
    flex: 2;
    text-align: center;
  }

  .home-text h1 {
    font-size: 1.5rem;
    margin-bottom: 10px;
  }

  .home-text p {
    font-size: 1.2rem;
    color: #555;
  }

  .about-container {
    padding: 15px;
  }
  .about-container h2 {
    position: relative;
    z-index: 2; /* Supaya teks berada di atas overlay */
    font-weight: bold;
    font-size: x-large;
  }

  .about-container p {
    position: relative;
    z-index: 2; /* Supaya teks berada di atas overlay */
    font-size: small;
    text-align: justify;
  }
}

#achievement {
  background: #f4f4f4;
  position: relative;
}

#contact {
  background: #f4f4f4;
}

#about {
  background-image: url("./assets/bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.container {
  max-width: 1500px;
}

form input,
form textarea {
  width: 100%;
  margin: 10px 0;
  padding: 10px;
}

button {
  background: #333;
  color: white;
  padding: 10px;
  border: none;
  cursor: pointer;
}

html {
  scroll-behavior: smooth;
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}
.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .grid-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .grid-container {
    grid-template-columns: 1fr; /* Stack items on smaller screens */
  }
}

.grid-container-project {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* default 3 kolom */
  gap: 20px;
  width: 100%;
}

/* Tablet: ubah jadi 2 kolom */
@media (max-width: 1024px) {
  .grid-container-project {
    grid-template-columns: repeat(1, 1fr);
  }
}

/* HP: ubah jadi 1 kolom */
@media (max-width: 768px) {
  .grid-container-project {
    grid-template-columns: 1fr;
  }

  .grid-container-project .col {
    margin-bottom: 30px;
  }

  .project-photo {
    max-width: 100%;
    height: auto;
  }
}

/* SECTION SKILLS */
#skills {
  background: #fffdf8;
  padding: 60px 20px;
}

.skills-box {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 30px;
  -webkit-border-radius: 15px;
  -moz-border-radius: 15px;
  -ms-border-radius: 15px;
  -o-border-radius: 15px;
}

.skill-row {
  text-align: center;
  margin-bottom: 40px;
}

.skill-title {
  font-size: 1.2rem;
  font-weight: bold;
  font-family: Arial, Helvetica, sans-serif;
  margin-bottom: 10px;
}

.skill-grid {
  display: flex;
  justify-content: center; /* Pusatkan isi grid */
  gap: 70px; /* Jarak antar item */
  flex-wrap: wrap;
  max-width: 500px;
  margin: 20px auto 0;
}

.skill-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 150px; /* Lebar tetap agar rapi */
}

.skill-gridvideo {
  display: flex;
  justify-content: center; /* Pusatkan isi grid */
  gap: 70px; /* Jarak antar item */
  flex-wrap: wrap;
  max-width: 600px;
  margin: 20px auto 0;
}

.skill-itemvideo {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 150px; /* Lebar tetap agar rapi */
}

.skill-image {
  width: 60px;
  height: auto;
  margin-bottom: 10px;
}

.skill-image:hover {
  transform: scale(1.1);
  -webkit-transform: scale(1.1);
  -moz-transform: scale(1.1);
  -ms-transform: scale(1.1);
  -o-transform: scale(1.1);
}

.star-rating {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-top: 8px;
  font-size: 20px; /* Ukuran menyesuaikan logo */
}

.star-rating .star {
  color: #ccc;
  transition: transform 0.2s ease;
}

.star-rating .star.filled {
  color: #374151; /* Warna bintang penuh, abu gelap */
}

/* Responsive Skill Box */
@media (max-width: 768px) {
  .skills-box {
    padding: 20px;
  }

  .skill-title {
    font-size: 1rem;
  }

  .skill-image {
    max-width: 100px;
  }

  .skill-images {
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .skill-image {
    max-width: 80px;
  }

  .skill-images {
    gap: 15px;
  }
}

.nav-button {
  display: inline-block;
  padding: 8px 18px;
  background: linear-gradient(135deg, #efefef, #e0e0e0); /* abu putih */
  color: #333; /* teks abu gelap */
  border-radius: 25px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* bayangan ringan */
}

.nav-button:hover {
  background: linear-gradient(135deg, #e0e0e0, #d5d5d5); /* lebih gelap sedikit saat hover */
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}
