/* Reset dasar */
* {
  box-sizing: content-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI";
  background-color: #0d1117;
  color: #c9d1d9;
  line-height: 1.6;
}

/* ===== Accent color ===== */
.accent {
  color: #3a7ce0;
}

/* ===== Section label & desc ===== */
.section-label {
  display: inline-block;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #3a7ce0;
  margin-bottom: 0.5rem;
}

.section-desc {
  font-size: 1rem;
  color: #8b949e;
  max-width: 520px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

/* ===== Header ===== */
header {
  background-color: rgba(26, 28, 32, 0.9);
  padding: 1rem 4.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid #3a7ce0;
}

header h1 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #ffffff;
}

nav {
  display: flex;
  gap: 2rem; /* Jarak antar link */
  align-items: center;
}

nav a {
  font-size: 0.9rem;
  color: #8b949e;
  text-decoration: none;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.3s;
}

/* nav a::after {
  
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #3a7ce0;
  transition: width 0.3s;
} */

nav a:hover,
nav a.aktif {
  color: #3a7ce0;
}

/* nav a:hover::after,
nav a.aktif::after {
  width: 100%;
} */

/* ===== Hero / About Me ===== */
#about-me {
  background-color: #0d1117;
  padding: 6rem 4.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  min-height: 70vh;
}

.hero-kiri {
  max-width: 550px;
}

.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #3fb950;
  background-color: #97b29b28;
  border: 1px solid #07931c88;
  padding: 0.3rem 0.85rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
  /* letter-spacing: 0.5px; */
}

.hero-kiri .greeting {
  font-size: 1.2rem;
  color: #8b949e;
  margin-bottom: 0.25rem;
}

.hero-kiri h2 {
  font-size: 3.5rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.5rem;
  line-height: 1.1;
}

.hero-kiri .role {
  font-size: 1.4rem;
  font-weight: 600;
  color: #3a7ce0;
  margin-bottom: 1rem;
}

.hero-desc {
  font-size: 1rem;
  color: #8b949e;
  margin-bottom: 2rem;
  line-height: 1.7;
}

/* Tombol */
.hero-tombol {
  display: flex;
  gap: 1rem;
}

.btn-primary {
  padding: 0.75rem 1.8rem;
  background-color: #3a7ce0;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background-color 0.3s,
    transform 0.2s;
}

.btn-primary:hover {
  background-color: #3a7ce0;
  transform: translateY(-2px);
}

.btn-outline {
  padding: 0.75rem 1.8rem;
  background-color: transparent;
  color: #ffffff;
  border: 1px solid #30363d;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    border-color 0.3s,
    transform 0.2s;
}

.btn-outline:hover {
  border-color: #3a7ce0;
  transform: translateY(-2px);
}

/* Hero image */
.hero-img-wrapper {
  position: relative;
}

.hero-img-wrapper::before {
  content: "";
  position: absolute;
  top: -12px;
  left: -12px;
  right: 12px;
  bottom: 12px;
  border: 2px solid #3a7ce0;
  border-radius: 50%;
  opacity: 0.4;
}

.hero-kanan img {
  width: 400px;
  height: 400px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #21262d;
  transition: border-color 0.3s;
}

/* ===== Projects ===== */
#project {
  background-color: #161b22;
  padding: 5rem 4.5rem;
  text-align: center;
}

#project h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  text-align: left;
}

.project-grid article {
  background-color: #0d1117;
  border: 1px solid #21262d;
  border-radius: 12px;
  overflow: hidden;
  transition:
    transform 0.3s,
    border-color 0.3s,
    box-shadow 0.3s;
}

.project-grid article:hover {
  transform: translateY(-6px);
  border-color: #3a7ce0;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.project-img {
  overflow: hidden;
}

.project-img img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.4s;
}

.project-grid article:hover .project-img img {
  transform: scale(1.05);
}

.project-body {
  padding: 1.25rem;
}

.project-body h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.project-body p {
  font-size: 0.875rem;
  color: #8b949e;
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.project-tags {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.project-tags span {
  font-size: 0.7rem;
  font-weight: 600;
  color: #3a7ce0;
  background-color: rgba(224, 90, 58, 0.1);
  border: 1px solid rgba(224, 90, 58, 0.25);
  padding: 0.2rem 0.65rem;
  border-radius: 50px;
}

.project-body button {
  padding: 0.5rem 1.2rem;
  background-color: transparent;
  color: #3a7ce0;
  border: 1px solid #3a7ce0;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background-color 0.3s,
    color 0.3s;
}

.project-body button:hover {
  background-color: #3a7ce0;
  color: #ffffff;
}

/* ===== Skills ===== */
#skill {
  background-color: #0d1117;
  padding: 5rem 4.5rem;
  text-align: center;
}

#skill h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

#skill ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: center;
  list-style: none;
}

#skill ul li {
  background-color: #161b22;
  border: 1px solid #21262d;
  border-radius: 12px;
  padding: 1.5rem;
  width: 130px;
  text-align: center;
  transition:
    transform 0.3s,
    border-color 0.3s;
}

#skill ul li:hover {
  border-color: #3a7ce0;
  transform: translateY(-4px);
}

#skill ul li img {
  width: 48px;
  height: 48px;
  margin: 0 auto 0.75rem;
  display: block;
}

#skill ul li p {
  font-size: 0.85rem;
  color: #8b949e;
  font-weight: 500;
}

/* ===== Education ===== */
#education {
  background-color: #161b22;
  padding: 5rem 4.5rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#education h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.education-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1.5rem;
  max-width: 1200px;
  justify-content: center;
  margin: 0 auto;
}

.education-grid article {
  display: flex;
  flex-direction: row;
  align-items: center;
  background-color: #0d1117;
  border: 1px solid #21262d;
  border-radius: 12px;
  overflow: hidden;
  width: 480px;
  transition:
    transform 0.3s,
    border-color 0.3s,
    box-shadow 0.3s;
}

.education-grid article:hover {
  transform: translateY(-6px);
  border-color: #3a7ce0;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.education-img {
  flex-shrink: 0;
  width: 120px;
  padding: 1rem;
  overflow: hidden;
}

.education-img img {
  width: 100%;
  height: auto;
  object-fit: contain;
  padding: 0.5rem;
  transition: transform 0.4s;
}

.education-grid article:hover .education-img img {
  transform: scale(1.05);
}

.education-body {
  flex: 1;
  padding: 1.25rem;
}

.education-body h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.education-body p {
  font-size: 0.875rem;
  color: #8b949e;
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.education-tags {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.education-tags span {
  font-size: 0.7rem;
  font-weight: 600;
  color: #3a7ce0;
  background-color: rgba(224, 90, 58, 0.1);
  border: 1px solid rgba(224, 90, 58, 0.25);
  padding: 0.2rem 0.65rem;
  border-radius: 50px;
}

.education-body button {
  display: flex;
  padding: 0.5rem 1.2rem;
  background-color: transparent;
  color: #3a7ce0;
  border: 1px solid #3a7ce0;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background-color 0.3s,
    color 0.3s;
}

.education-body button:hover {
  background-color: #3a7ce0;
  color: #ffffff;
}

/* ===== Works ===== */
#work {
  background-color: #0d1117;
  padding: 5rem 4.5rem;
  text-align: center;
}

#work h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  text-align: left;
  max-width: 1400px;
  margin: 0 auto;
}

.work-grid article {
  background-color: #161b22;
  border: 1px solid #21262d;
  border-radius: 12px;
  overflow: hidden;
  transition:
    transform 0.3s,
    border-color 0.3s,
    box-shadow 0.3s;
}

.work-grid article:hover {
  transform: translateY(-6px);
  border-color: #3a7ce0;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.work-img {
  overflow: hidden;
}

.work-img img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.4s;
}

.work-grid article:hover .work-img img {
  transform: scale(1.05);
}

.work-body {
  padding: 1.25rem;
}

.work-body h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.work-body p {
  font-size: 0.875rem;
  color: #8b949e;
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.work-tags {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.work-tags span {
  font-size: 0.7rem;
  font-weight: 600;
  color: #3a7ce0;
  background-color: rgba(224, 90, 58, 0.1);
  border: 1px solid rgba(224, 90, 58, 0.25);
  padding: 0.2rem 0.65rem;
  border-radius: 50px;
}

.work-body button {
  padding: 0.5rem 1.2rem;
  background-color: transparent;
  color: #3a7ce0;
  border: 1px solid #3a7ce0;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background-color 0.3s,
    color 0.3s;
}

.work-body button:hover {
  background-color: #3a7ce0;
  color: #ffffff;
}

/* ===== Contact ===== */
#contact {
  background-color: #161b22;
  padding: 5rem 4.5rem;
  text-align: center;
}

#contact h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.contact-wrapper {
  display: flex;
  gap: 2rem;
  align-items: stretch;
  text-align: left;
}

.contact-info {
  flex: 1;
  background-color: #0d1117;
  border: 1px solid #21262d;
  border-radius: 12px;
  padding: 2rem;
}

.contact-info h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 1.5rem;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.info-icon {
  font-size: 1.3rem;
  color: #3a7ce0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(224, 90, 58, 0.1);
  border-radius: 10px;
  flex-shrink: 0;
}

.info-item .info-label {
  font-size: 0.78rem;
  color: #8b949e;
  margin-bottom: 0.15rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-item p {
  font-size: 0.9rem;
  color: #c9d1d9;
}

.contact-form {
  flex: 1;
  background-color: #0d1117;
  border: 1px solid #21262d;
  border-radius: 12px;
  padding: 2rem;
}

.contact-form h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 1.5rem;
}

.contact-form form div {
  margin-bottom: 1rem;
}

.contact-form label {
  display: block;
  font-size: 0.82rem;
  color: #8b949e;
  margin-bottom: 0.4rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: #161b22;
  border: 1px solid #21262d;
  border-radius: 8px;
  color: #ffffff;
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.3s;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #3a7ce0;
}

.contact-form button {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: #e05a3a;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 0.5rem;
  transition:
    background-color 0.3s,
    transform 0.2s;
}

.contact-form button:hover {
  background-color: #3a7ce0;
  transform: translateY(-2px);
}

.contact-form input,
.contact-form textarea,
.contact-form button {
  box-sizing: border-box;
}

/* ===== Footer ===== */
footer {
  background-color: #0d1117;
  border-top: 1px solid #21262d;
  padding: 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 3rem;
  padding: 3.5rem 4.5rem 2rem;
  flex-wrap: wrap;
}

.footer-brand {
  max-width: 300px;
}

.footer-brand h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  font-size: 0.85rem;
  color: #8b949e;
  line-height: 1.7;
}

.footer-links,
.footer-social {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links h4,
.footer-social h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.footer-links a,
.footer-social a {
  font-size: 0.85rem;
  color: #8b949e;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover,
.footer-social a:hover {
  color: #3a7ce0;
}

.footer-bottom {
  border-top: 1px solid #21262d;
  text-align: center;
  padding: 1.25rem 4.5rem;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: #484f58;
}
