/* Global Styles */
body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  background-color: #f4f4f9;
  color: #333;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Header Styles */
.header {
  background: url('./images/header.png') no-repeat center center/cover;
  color: #fff;
  text-align: center;
  padding: 60px 20px;
  position: relative;
}

.header .header-content {
  background: rgba(0, 0, 0, 0.5);
  padding: 20px;
  border-radius: 8px;
  display: inline-block;
}

.header h1 {
  font-size: 3rem;
  margin: 0;
}

.header p {
  font-size: 1.2rem;
  margin: 10px 0 20px;
}

.header .header-button {
  display: inline-block;
  background-color: #007BFF;
  color: #fff;
  text-transform: uppercase;
  padding: 12px 25px;
  font-size: 0.9rem;
  border-radius: 25px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.header .header-button:hover {
  background-color: #0056b3;
}

/* Navbar Styles */
.navbar {
  background: #333; /* Warna latar tetap */
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: top 0.3s ease, opacity 0.3s ease;
}

.navbar ul {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 10px 0;
  list-style: none;
}

.navbar ul li {
  margin: 0 15px;
}

.navbar ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

/* Footer Styles */
.footer {
  background-color: #333; /* Warna latar gelap */
  color: #fff; /* Teks putih */
  text-align: center;
  padding: 20px 0;
  font-size: 0.9rem;
  position: relative;
}
.footer p {
  margin: 0;
  font-weight: 400;
}
.footer p strong {
  font-weight: 600;
}
.footer-links {
  list-style: none;
  display: flex;
  justify-content: center;
  padding: 10px 0;
  margin: 0;
}
.footer-links li {
  margin: 0 15px;
}
.footer-links li a {
  color: #00C6FF; 
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}
.footer-links li a:hover {
  color: #007BFF;
}

.navbar ul li a:hover {
  color: #00C6FF;
}

/* Section Styles */
.section {
  padding: 60px 0;
  background-color: #f9f9f9;
}

.section h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 40px;
  color: #007BFF;
  text-transform: uppercase;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Project Grid Styles */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  grid-auto-flow: row; /* New */
}

.project-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  padding: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  /* min-height: 400px;  (New) */
}

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

.project-logo {
  width: 60px;
  height: 60px;
  margin-bottom: 15px;
  border-radius: 50%;
  background: #f1f1f1;
  padding: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  align-self: center;
}

.project-card h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #333;
}

.project-card p {
  font-size: 1rem;
  margin-bottom: 15px;
  color: #666;
}

.project-link {
  display: inline-block;
  background-color: #007BFF;
  color: #fff;
  text-transform: uppercase;
  padding: 10px 20px;
  font-size: 0.9rem;
  border-radius: 25px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.project-link:hover {
  background-color: #0056b3;
}

/* Contact Styles */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.contact-item {
  background: linear-gradient(135deg, #007BFF, #00C6FF);
  color: #fff;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.contact-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: #fff;
}

.contact-item h3 {
  margin-bottom: 10px;
  font-size: 1.5rem;
}

.contact-item p {
  margin: 0;
}

.contact-item a {
  color: #fff;
  text-decoration: underline;
  font-weight: 600;
}

.contact-item a:hover {
  text-decoration: none;
}

/* Animation Styles */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

/* Profile Picture Styles */
.profile-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

.profile-picture {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border: 3px solid #d3d9df5b;
  transition: transform 0.3s ease;
}

.profile-picture:hover {
  transform: scale(1.1);
}
@media (min-width: 440px) {
  .project-button-container .project-link {
    font-size: 0.6rem;
  }
}

@media (min-width: 768px) {
  .profile-picture {
    width: 200px;
    height: 200px;
  }
}

@media (min-width: 1200px) {
  .profile-picture {
    width: 250px;
    height: 250px;
  }
}

.project-description {
  max-height: 100px; /* Atur tinggi maksimum sesuai kebutuhan */
  overflow-y: auto; /* Membuat konten dapat di-scroll jika melebihi max-height */
  margin-bottom: 15px;
  color: #666;
  padding-right: 10px; /* Memberikan ruang untuk scrollbar */
  /* CSS Baru */
  flex: 1; /* Membuat deskripsi mengisi ruang yang tersedia */
}

/* Optional: Menyesuaikan tampilan scrollbar */
.project-description::-webkit-scrollbar {
  width: 8px;
}

.project-description::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.project-description::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

.project-description::-webkit-scrollbar-thumb:hover {
  background: #555;
}
/* New Parts */
/* Project Details Styles */
.project-details {
  text-align: left;
  margin-bottom: 15px;
  color: #666;
}

.project-details div {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.project-details i {
  margin-right: 8px;
  color: #007BFF;
  flex-shrink: 0;
  font-size: 1.2rem;
  color: #007BFF;
}

.project-details span {
  flex: 1;
  min-width: 0;
}

/* Project Button Container */
.project-button-container {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
}

.project-button-container .project-link {
  flex: 1;
  text-align: center;
  padding: 12px 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 25px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Primary Buttons */
.project-button-container .project-link {
  background: linear-gradient(135deg, #007BFF, #0056b3);
  color: #fff;
  border: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.project-button-container .project-link:hover {
  background: linear-gradient(135deg, #0056b3, #003f7f);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* Disabled Button Styles */
.project-link.disabled {
  background: linear-gradient(135deg, #FFA500, #FF6347);
  color: #fff;
  cursor: default;
  pointer-events: none;
  position: relative;
  overflow: hidden;
}

.project-link.disabled::after {
  content: '\f110';
  font-family: "Font Awesome 5 Free";
  display: inline-block;
  margin-left: 10px;
  animation: spin 1.5s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.project-link.disabled:hover {
  background-color: #ccc;
}
