/* General Styles */
body {
  font-family: "Poppins", sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f9f9f9;
  color: #333;
}

/* Header Styles */
header {
  background: linear-gradient(135deg, #667eea, #764ba2);
  padding: 20px;
  text-align: center;
  color: white;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

nav li {
  display: inline-block;
  margin: 0 15px;
}

nav a {
  text-decoration: none;
  color: white;
  font-weight: bold;
  transition: color 0.3s;
}

nav a:hover {
  color: #ffdd57;
}

/* Section Styles */
section {
  padding: 100px 20px;
  text-align: center;
}

#about {
  background-color: #ffffff;
  padding-top: 150px;
}

.about-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.about-content img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s;
}

.about-content img:hover {
  transform: scale(1.1);
}

/* Projects Section */
.projects-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.project {
  width: 300px;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s, box-shadow 0.3s;
}

.project:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.project img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/* Skills Section */
.skills-list {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 15px;
}

.skills-list li {
  background-color: #667eea;
  color: white;
  padding: 10px 15px;
  border-radius: 5px;
  font-weight: bold;
  transition: background 0.3s;
}

.skills-list li:hover {
  background-color: #764ba2;
}

/* Footer */
footer {
  background-color: #333;
  color: white;
  padding: 20px;
  text-align: center;
  position: relative;
  bottom: 0;
  width: 100%;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

section {
  animation: fadeIn 1s ease-in-out;
}

/* FIX NAVBAR DI MOBILE */
@media (max-width: 480px) {
  nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.9); /* Transparan agar tetap terlihat */
    z-index: 1000;
  }

  nav ul {
    display: none; /* Sembunyikan menu saat belum diklik */
    flex-direction: column;
    text-align: center;
    width: 100%;
    padding: 20px 0;
  }

  nav ul.active {
    display: flex; /* Tampilkan saat aktif */
  }

  nav li {
    margin: 10px 0;
  }

  .menu-toggle {
    display: block;
    cursor: pointer;
    color: white;
    font-size: 24px;
    padding: 15px;
    text-align: center;
  }
}
