/* General Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", sans-serif;
}

body {
  background-color: #fdfdfd;
  color: #333;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: #333;
}

section {
  padding: 60px 20px;
  max-width: 1000px;
  margin: auto;
}

h1,
h2 {
  text-align: center;
  margin-bottom: 20px;
}

/* Navbar */
.navbar {
  background-color: #fff;
  padding: 15px 30px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar .logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #000000;
}

.navbar .nav-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

.navbar .nav-links li a {
  font-weight: 500;
  transition: color 0.3s ease;
}

.navbar .nav-links li a:hover {
  color: #000000;
}

/* Hero Section */
.hero {
  text-align: center;
  padding-top: 80px;
}

.profile-pic {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid #000000;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 2.5rem;
  color: #000000;
}

.hero h2 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #777;
}

.hero p {
  max-width: 600px;
  margin: 0 auto 20px auto;
}

.btn {
  display: inline-block;
  background-color: #000000;
  color: white;
  padding: 10px 25px;
  border-radius: 5px;
  margin-top: 15px;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #000000;
}

/* Project Section */
.projects {
  background-color: #f9f9f9;
  padding: 40px 20px;
  text-align: center;
}

.projects h2 {
  font-size: 2.5em;
  margin-bottom: 40px;
}

.projects-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  justify-items: center;
}

.project-card {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  width: 100%;
  max-width: 350px;
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: translateY(-10px);
}

.project-image img {
  width: 100%;
  height: auto;
  display: block;
}

.project-info {
  padding: 20px;
}

.project-info h3 {
  font-size: 1.8em;
  color: #333;
  margin-bottom: 10px;
}

.project-info p {
  font-size: 1em;
  color: #555;
  line-height: 1.6;
}

/* Responsiveness for smaller screens */
@media (max-width: 768px) {
  .projects-container {
    grid-template-columns: 2fr;
  }
}

/* Skill Bar Styles */
.skill-bar {
  background-color: #ddd;
  border-radius: 20px;
  overflow: hidden;
  height: 20px;
  margin-top: 5px;
  margin-bottom: 20px;
}

.skill-fill {
  background-color: #000000;
  height: 100%;
  line-height: 20px;
  color: white;
  text-align: right;
  padding-right: 10px;
  border-radius: 20px 0 0 20px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: width 0.5s ease-in-out;
}

/* Education */
.education ul {
  list-style: none;
  padding: 0;
}

.education li {
  margin-bottom: 15px;
  background-color: #f2f2f2;
  padding: 15px;
  border-left: 5px solid #000000;
}

/* Activities */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.gallery img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.gallery figcaption {
  text-align: center;
  margin-top: 8px;
  font-size: 0.95rem;
}

/* Contact */
.contact-form-section,
.contact-info-section {
  padding: 40px 20px;
  background-color: #f9f9f9;
  font-family: sans-serif;
  text-align: center;
}

/* Formulir */
.contact-form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

.contact-form button {
  background-color: #000000;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s;
}

.contact-form button:hover {
  background-color: #0056b3;
}

/* Info Kontak */
.contact-info-section p {
  font-size: 1rem;
  margin: 10px 0;
}

.contact-info-section i {
  margin-right: 8px;
}

.contact-info-section a {
  color: #000000;
  text-decoration: none;
}

.contact-info-section a:hover {
  text-decoration: underline;
}
.contact-info {
  text-align: center;
  margin-top: 40px;
  font-size: 1rem;
}

/* Footer */
footer {
  background-color: #f2f2f2;
  text-align: center;
  padding: 15px;
  margin-top: 40px;
  font-size: 0.9rem;
  color: #555;
}

/* Responsive */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .btn {
    padding: 8px 20px;
  }
}
