/* Reset dan font */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
  font-family: 'Poppins', sans-serif;
}

body {
  background-color: #f4fff7;
  color: #1e1e1e;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: #1f7a3a;
}

ul {
  list-style: none;
}

.container {
  max-width: 1000px;
  margin: auto;
  padding: 40px 20px;
}

/* Navbar */
.navbar {
  background-color: #1f7a3a;
  color: white;
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 10;
}

.logo {
  font-size: 1.7rem;
  font-weight: bold;
}

.nav-links li {
  display: inline-block;
  margin-left: 20px;
}

.nav-links a {
  color: white;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #d4f1db;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #d1f5d3, #b3e9c7);
  padding: 100px 20px;
  text-align: center;
  animation: fadeIn 1s ease-in-out;
}

.hero h1 {
  font-size: 2.8em;
  color: #144d29;
}

.hero p {
  font-size: 1.2em;
  color: #2f593f;
  margin-top: 10px;
}

.hero .cta-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 25px;
  background-color: #1f7a3a;
  color: white;
  border-radius: 25px;
  transition: all 0.3s;
  font-weight: 600;
}

.hero .cta-btn:hover {
  background-color: #145c2b;
}

/* About Section */
.about-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;
  animation: slideUp 1s ease-in-out;
}

.about-text {
  flex: 1.5;
  font-size: 1.1em;
}

.about-img img {
  border-radius: 50%;
  width: 100%;
  max-width: 250px;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.15);
}

/* Skills Section */
.skills {
  animation: fadeIn 1s ease-in-out;
}

.skill-boxes {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.skill-card {
  background-color: #a2dfb2;
  padding: 20px;
  flex: 1;
  text-align: center;
  border-radius: 15px;
  font-size: 1.2em;
  font-weight: bold;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s, background-color 0.3s;
}

.skill-card:hover {
  transform: scale(1.05);
  background-color: #87cf9e;
}

/* Contact Section */
.contact {
  animation: slideUp 1s ease-in-out;
}

.contact ul li {
  margin-bottom: 10px;
  font-size: 1.1em;
}

.contact a:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  background-color: #e9f6ed;
  text-align: center;
  padding: 20px;
  font-size: 0.9em;
  color: #444;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(50px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
  .about-content {
    flex-direction: column;
    text-align: center;
  }

  .nav-links {
    display: none;
  }

  .skill-boxes {
    flex-direction: column;
  }
}
