﻿:root {
  --bg: #f7f6f2;
  --text: #1e2422;
  --muted: #5a6762;
  --card: #ffffff;
  --border: #d6d9d3;
  --accent: #0f3b2d;
  --accent-2: #1f5a45;
  --shadow: 0 12px 40px rgba(17, 23, 22, 0.08);
  --radius: 18px;
  --max: 1120px;
  --base-font: 16px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: "Neue Haas Grotesk Text", "Avenir Next", "Gill Sans", "Trebuchet MS", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: var(--base-font);
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 56px;
  padding: 40px 24px 60px;
  width: 100%;
}

header.header {
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  gap: 16px;
  flex-wrap: wrap;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.nav {
  display: flex;
  gap: 16px;
  font-size: 14px;
  color: var(--muted);
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.nav a:hover {
  color: var(--accent);
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
}

.lang-pill {
  position: relative;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 6px 10px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  gap: 4px;
  min-width: 96px;
  cursor: pointer;
}

.lang-option {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  z-index: 1;
}

.lang-thumb {
  position: absolute;
  top: 4px;
  bottom: 4px;
  width: calc(50% - 4px);
  left: 5px;
  border-radius: 999px;
  background: var(--accent);
  transition: transform 0.2s ease;
}

body[data-lang="en"] .lang-thumb {
  transform: translateX(100%);
}

body[data-lang="id"] .lang-option[data-lang="id"],
body[data-lang="en"] .lang-option[data-lang="en"] {
  color: #fff;
}

body[data-lang="id"] [data-lang="en"] {
  display: none;
}

body[data-lang="en"] [data-lang="id"] {
  display: none;
}

main {
  display: flex;
  flex-direction: column;
  gap: 64px;
}

section {
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  align-items: center;
  padding: 32px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero h1 {
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.1;
  font-weight: 600;
  margin-bottom: 16px;
}

.hero p {
  color: var(--muted);
  font-size: 16px;
  max-width: 560px;
}

.hero .cta {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn.secondary {
  background: transparent;
  color: var(--accent);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(15, 59, 45, 0.18);
  background: var(--accent-2);
  color: #fff;
}

.btn.secondary:hover {
  background: var(--accent);
}

.about {
  display: grid;
  gap: 14px;
}

.section-title {
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.section-body {
  font-size: 17px;
  max-width: 860px;
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.focus-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 14px;
  letter-spacing: 0.02em;
}

.focus-icon {
  font-size: 18px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  width: 100%;
}

.project-card {
  background: var(--card);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 280px;
  min-width: 0;
}

.project-card h3 {
  font-size: 20px;
  word-break: break-word;
}

.project-title-en {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.project-card p {
  color: var(--muted);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.project-docs {
  list-style: none;
  display: grid;
  gap: 8px;
  font-size: 14px;
}

.project-docs a {
  color: var(--accent);
  text-decoration: none;
}

.project-docs a:hover {
  text-decoration: underline;
}

.project-actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.contact-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  background: var(--card);
}

.contact-card h4 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 8px;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  text-decoration: none;
  font-size: 14px;
  word-break: break-word;
  max-width: 100%;
}

.contact-link:hover {
  text-decoration: underline;
}

.contact-logo {
  width: 18px;
  height: 18px;
  display: inline-block;
}

img {
  max-width: 100%;
  height: auto;
}

.contact-card a {
  color: var(--accent);
  text-decoration: none;
}

.footer {
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  border-top: 1px solid var(--border);
  padding-top: 20px;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 720px) {
  .page {
    padding: 28px 18px 40px;
  }

  header.header {
    align-items: flex-start;
    gap: 10px;
  }

  .brand {
    font-size: 18px;
  }

  .brand-logo {
    width: 36px;
    height: 36px;
  }

  .nav {
    flex-wrap: wrap;
    gap: 10px;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .lang-switch {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    padding: 22px;
    gap: 20px;
  }

  .hero h1 {
    font-size: clamp(28px, 8vw, 42px);
  }

  .hero p {
    font-size: 15px;
  }

  .section-title {
    font-size: 16px;
  }

  .section-body {
    font-size: 15px;
  }

  .projects-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .project-card {
    min-height: auto;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}
