/* ========== BASE STYLES ========== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  background-color: #fff;
}

/* ========== HEADER ========== */
header {
  background-color: white;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #ddd;
  position: sticky;
  top: 0;
  z-index: 999;
}

.header-left h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

.header-right a {
  margin-left: 20px;
  text-decoration: none;
  color: black;
  font-weight: 600;
  transition: color 0.3s ease;
}

.header-right a:hover {
color:#357ABD}

/* ========== SECTION LAYOUT ========== */
.section {
  padding: 80px 20px;
  text-align: center;
}

.section-card {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px;

}

.section h2 {
  font-size: 28px;
  margin-bottom: 20px;
  font-weight: 700;
}

/* ========== HOME SECTION ========== */
#home {
  background: linear-gradient(180deg, #E3F2FD 0%, #FFFFFF 100%);
}

.profile-pic {
  width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 20px;
  border: 3px solid #E3F2FD;
}

.lead {
  font-size: 18px;
}

/* ========== RESUME SECTION ========== */
#resume {
  background: linear-gradient(180deg, #FFFFFF 0%, #E8F5E9 100%);
}

.resume-entry {
  text-align: left;
  margin-bottom: 24px;
}

.resume-entry, .project-content p {
  text-align: justify;
}

.entry-meta {
  font-weight: 600;
  margin-bottom: 6px; 
}

.muted {
  color: #666;
  font-weight: 400;
}

.resume-skills {
  margin-top: 40px;
  text-align: left;
}

.skill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 15px 0;
}

.skill-chip {
  background: #E3F2FD;
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 500;
  font-size: 14px;
}

/* ========== PROJECT SECTION ========== */
#projects {
  background: linear-gradient(180deg, #E8F5E9 0%, #E8EAF6 100%);
}

.project-item {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.project-image {
  flex-shrink: 0;
  border-radius: 12px;  
  overflow: hidden;
}

.project-image img {
  display: block;
  width: 100%;
  height: auto;
}

/* Pembeda gambar landscape sama potrait */
.project-image.portrait {
  width: 160px;
  height: auto;
}

.project-image.landscape {
  width: 420px;
  height: 260px;
}

.project-content {
  flex: 1;
  text-align: left;
}

.project-content h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

.project-meta {
  font-size: 14px;
  color:#444040;
  margin-bottom: 10px;
}

/* ========== CONTACT SECTION ========== */
#contact {
  background: linear-gradient(180deg, #E8EAF6 0%, #FFF3E0 100%);
}

.contact-form {
  display: flex;
  flex-direction: column;
  text-align: left;
  gap: 12px;
}

.contact-form input,
.contact-form textarea {
   width: 100%;
    border: none;
    border-bottom: 2px solid #ccc;
    background: transparent;
    font-size: 14px;
    transition: all 0.3s ease;
    color: #222;
    outline: none;
}

#contact input:focus,
#contact textarea:focus {
    border-bottom-color: #87CEFA;   /* biru muda lembut */
}

.btn-primary {
  color: #007bff;
  border: 1px;
  padding: 10px 20px;
  border-radius: 12px;
  font-size: 16px;
  transition: background 0.3s;
}

.btn-primary:hover {
  background-color: #5ad4f3;
}


/* ========== FOOTER ========== */
footer {
  background: #f8f9fa;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 40px;
}

footer a {
  color: #333;
  margin: 0 10px;
  font-size: 18px;
  transition: color 0.3s ease;
}

footer a:hover {
color: #5a9fd8;}

footer p {
  font-size: 14px;
}

@media (max-width: 768px) {
  .project-item {
    flex-direction: column;
    text-align: center;
  }

  .project-content {
    text-align: center;
  }

  .project-image.portrait,
  .project-image.landscape {
    width: 100%;
    height: auto;
  }
}
