/* ========== Design Tokens ========== */
:root {
  --bg: #0f1115;
  --card: #161a22;
  --muted: #8a94a6;
  --text: #ecf0f3;
  --brand: #6ea8fe;
  --brand-2: #74f0c0;
  --border: #232838;
  --ring: #9ab5ff;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
}

/* ========== Reset & Base ========== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font: 500 16px/1.6 system-ui, Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 800px at 10% -10%, #1a1f2f 0%, transparent 50%) fixed,
    radial-gradient(900px 700px at 110% 20%, #142033 0%, transparent 50%) fixed,
    var(--bg);
}
.container { width: min(1150px, 92%); margin-inline: auto; }
section { padding: 64px 0; }

/* ========== Header/Navbar ========== */
header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(140%) blur(8px);
  background: rgba(15,17,21,.75);
  border-bottom: 1px solid var(--border);
}
header .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px 0;
}
.logo {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #0b1020; font-weight: 800; box-shadow: var(--shadow);
}
nav { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
nav a {
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: #dfe7ff;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,0));
  transition: all .25s ease;
}
nav a:hover {
  transform: translateY(-2px);
  border-color: var(--brand);
  color: var(--brand);
}

/* ========== Hero/Home ========== */
.home { padding-top: 56px; }
.banner {
  height: clamp(220px, 40vw, 420px);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: grid; place-items: center;
  background: linear-gradient(135deg, #111522, #0b0d14);
  color: #c5d2ff; box-shadow: var(--shadow);
  text-align: center; font-size: 1.3rem;
}

/* ========== Headquarter Section ========== */
.headquarter h2 {
  text-align: center; margin-bottom: 40px;
  font-size: 1.8rem; color: var(--brand);
}
.cities {
  display: flex; justify-content: center; gap: 40px; flex-wrap: wrap;
}
.city {
  display: flex; flex-direction: column; align-items: center;
  gap: 14px; padding: 20px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 50%; width: 160px; height: 160px;
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
  cursor: pointer;
}
.city:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 28px rgba(0,0,0,0.45);
  border-color: var(--brand);
}
.city p { margin-top: auto; font-weight: 600; color: var(--text); }

/* ========== Message Section ========== */
.message-container {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex; flex-direction: column; gap: 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
  transition: transform .25s ease, box-shadow .25s ease;
}
form:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(0,0,0,0.5); }
form input, form textarea {
  width: 100%; padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #2a3147;
  background: #0b1020;
  color: #e9efff;
  transition: border-color .2s ease, box-shadow .2s ease;
}
form input:focus, form textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(110,168,254,0.2);
  outline: none;
}
form textarea { min-height: 110px; resize: vertical; }
fieldset { border: none; display: flex; gap: 16px; }
fieldset legend { margin-bottom: 6px; font-weight: 600; color: var(--brand); }
fieldset label {
  display: flex; align-items: center; gap: 6px;
  background: #1c2234; padding: 6px 12px;
  border-radius: 999px; cursor: pointer;
  transition: background .25s ease;
}
fieldset label:hover { background: #26304b; }
fieldset input[type="radio"] { accent-color: var(--brand); }
button[type="submit"] {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #324163;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #081021; font-weight: 800;
  cursor: pointer; transition: transform .2s ease, box-shadow .2s ease;
}
button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(110,168,254,0.4);
}
#message-output {
  display: flex; flex-direction: column; gap: 12px;
  min-height: 160px; padding: 14px;
  border-radius: var(--radius);
  background: rgba(15,17,21,0.6);
  border: 1px dashed var(--border);
}
.message-output {
  background: #1e1e2a; padding: 14px 18px;
  border-radius: 16px; border: 1px solid #2c3142;
  box-shadow: 0 8px 20px rgba(0,0,0,0.35);
  font-family: 'Courier New', monospace;
  white-space: pre-line; line-height: 1.5;
}
.message-output.user { background: #2e3a56; align-self: flex-end; }

/* ========== Footer ========== */
footer {
  text-align: center; padding: 24px 0;
  font-size: 0.9rem; color: var(--muted);
  border-top: 1px solid var(--border);
  margin-top: 40px;
}

/* ========== Popup ========== */
.popup {
  display: none; position: fixed;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  z-index: 9999;
  background: var(--card); border: 1px solid var(--border);
  padding: 20px; border-radius: 14px;
  box-shadow: var(--shadow); width: min(400px, 90%);
  text-align: center;
}
.popup-content { position: relative; }
.popup-close {
  position: absolute; top: 8px; right: 10px;
  background: none; border: none;
  font-size: 20px; color: var(--text);
  cursor: pointer;
}

/* ========== Profile Page ========== */
.profile-hero {
  background: linear-gradient(135deg, var(--brand), #0f3460);
  color: white; text-align: center;
  padding: 80px 20px;
}
.about {
  max-width: 800px; margin: 40px auto;
  text-align: center; line-height: 1.6;
}
.vision-mission {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px; padding: 40px;
}
.vision-mission .card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; padding: 20px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease;
}
.vision-mission .card:hover { transform: translateY(-6px); }
.team { text-align: center; padding: 40px 20px; }
.team-grid {
  display: flex; justify-content: center; gap: 30px; flex-wrap: wrap;
  margin-top: 30px;
}
.team-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; padding: 20px; width: 200px;
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.team-card img { border-radius: 50%; margin-bottom: 14px; }
.team-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 14px 28px rgba(0,0,0,0.4);
}

/* ========== Portfolio Section ========== */
.portfolio-section {
  padding: 60px 20px;
  text-align: center;
}
.section-title {
  font-size: 2.2rem;
  margin-bottom: 10px;
  color: var(--brand);
}
.section-subtitle {
  font-size: 1rem;
  margin-bottom: 40px;
  color: var(--muted);
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.portfolio-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: left;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}
.portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.45);
  border-color: var(--brand);
}
.portfolio-card img {
  width: 100%;
  display: block;
}
.portfolio-card h3 {
  font-size: 1.2rem;
  margin: 15px;
}
.portfolio-card p {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0 15px 15px;
}
.portfolio-card .btn {
  display: inline-block;
  margin: 0 15px 20px;
  padding: 8px 16px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #081021;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.portfolio-card .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(110,168,254,0.4);
}

/* ========== Responsive ========== */
@media (max-width: 900px) {
  .message-container { grid-template-columns: 1fr; }
  nav { gap: 6px; }
  nav a { padding: 6px 12px; font-size: 0.9rem; }
}
 .logo img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 50%; /* kalau mau bulat */
  box-shadow: var(--shadow);
}
