/* ============================================================
   William — CV Profile Page
   Tema: gelap profesional, aksen teal & amber (senada rakumaro.com)
   ============================================================ */

:root {
  --bg: #0a0c0e;
  --bg-alt: #0e1114;
  --panel: #14181c;
  --line: rgba(240, 234, 220, 0.10);
  --line-strong: rgba(240, 234, 220, 0.20);

  --text: #eef0ec;
  --text-dim: #a5aba3;
  --text-faint: #7d847c;

  --teal: #43a39c;
  --teal-bright: #5cc4bb;
  --amber: #f6cf6f;

  --radius: 18px;
  --nav-h: 68px;
  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  font-weight: 700;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

::selection { background: var(--teal-deep, #2f7a78); color: var(--text); }

.accent { color: var(--teal-bright); }

/* ============ NAV ============ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.nav.scrolled {
  background: rgba(10, 12, 14, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.nav-inner {
  max-width: 1080px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: #06211f;
  background: linear-gradient(135deg, var(--teal-bright), var(--teal));
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.03em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-links > a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-dim);
  transition: color 0.2s ease;
}

.nav-links > a:hover { color: var(--text); }

.nav-cta {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 8px 18px !important;
  color: var(--text) !important;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.nav-cta:hover {
  border-color: var(--teal-bright);
  background: rgba(92, 196, 187, 0.08);
}

/* ============ HERO ============ */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + 90px) 0 90px;
  background:
    radial-gradient(700px 380px at 82% -8%, rgba(67, 163, 156, 0.16), transparent 65%),
    radial-gradient(560px 320px at 8% 8%, rgba(246, 207, 111, 0.07), transparent 60%);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 28px;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal-bright);
  box-shadow: 0 0 0 4px rgba(92, 196, 187, 0.15);
}

.hero-title {
  font-size: clamp(2.4rem, 6vw, 4rem);
  letter-spacing: -0.02em;
  max-width: 18ch;
}

.hero-sub {
  margin-top: 24px;
  max-width: 640px;
  font-size: 1.1rem;
  color: var(--text-dim);
}

.hero-actions {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 13px 26px;
  font-weight: 700;
  font-size: 0.98rem;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--teal);
  color: #06211f;
}

.btn-primary:hover { background: var(--teal-bright); }

.btn-ghost {
  border: 1px solid var(--line-strong);
  color: var(--text);
}

.btn-ghost:hover { border-color: var(--teal-bright); }

.hero-stats {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  border-top: 1px solid var(--line);
  padding-top: 32px;
}

.stat dt {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: var(--amber);
}

.stat dd {
  color: var(--text-faint);
  font-size: 0.92rem;
  margin-top: 4px;
}

/* ============ SECTIONS ============ */
.section { padding: 96px 0; }

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-label {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-bright);
  margin-bottom: 12px;
}

.section h2 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  letter-spacing: -0.01em;
  margin-bottom: 40px;
}

/* ============ ABOUT ============ */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: start;
}

.about-grid > div:first-child p {
  color: var(--text-dim);
  margin-bottom: 16px;
}

.about-grid > div:first-child h2 { margin-bottom: 20px; }

.contact-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

.contact-card h3 { font-size: 1.15rem; margin-bottom: 18px; }

.contact-list {
  list-style: none;
  display: grid;
  gap: 14px;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.96rem;
}

.contact-list a:hover { color: var(--teal-bright); }

.contact-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: rgba(67, 163, 156, 0.12);
  color: var(--teal-bright);
  font-size: 0.85rem;
  font-weight: 700;
}

/* ============ SKILLS ============ */
.skill-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.skill-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}

.skill-card h3 { font-size: 1.05rem; margin-bottom: 16px; color: var(--amber); }

.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.chips li {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-dim);
}

.languages {
  margin-top: 28px;
  color: var(--text-dim);
  font-size: 0.96rem;
}

.languages strong { color: var(--text); }

/* ============ EXPERIENCE ============ */
.timeline {
  list-style: none;
  position: relative;
  display: grid;
  gap: 28px;
  padding-left: 28px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(var(--teal), rgba(67, 163, 156, 0.05));
}

.timeline-item { position: relative; }

.timeline-item::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 26px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--teal-bright);
}

.timeline-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 30px;
}

.job-meta {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--teal-bright);
  margin-bottom: 8px;
}

.timeline-card h3 { font-size: 1.3rem; }

.job-company {
  color: var(--text-dim);
  font-weight: 500;
  margin: 4px 0 16px;
}

.job-points {
  list-style: none;
  display: grid;
  gap: 8px;
}

.job-points li {
  position: relative;
  padding-left: 20px;
  color: var(--text-dim);
  font-size: 0.97rem;
}

.job-points li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--teal-bright);
}

.edu-card {
  margin-top: 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 30px;
}

.edu-card h3 { font-size: 1.05rem; margin-bottom: 6px; color: var(--amber); }

/* ============ PORTFOLIO ============ */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.work-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.work-card:hover {
  transform: translateY(-3px);
  border-color: var(--teal);
}

.work-card h3 { font-size: 1.12rem; }

.work-type { color: var(--text-dim); font-size: 0.92rem; }

.work-company {
  color: var(--text-faint);
  font-size: 0.85rem;
}

.work-link {
  margin-top: 14px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--teal-bright);
}

.work-card-plain .work-link { color: var(--text-faint); }

/* ============ FOOTER ============ */
.footer {
  border-top: 1px solid var(--line);
  padding: 34px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--text-faint);
  font-size: 0.92rem;
}

.footer-links { display: flex; gap: 22px; }

.footer-links a:hover { color: var(--teal-bright); }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .section { padding: 72px 0; }
  .skill-grid { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .timeline-card { padding: 22px; }
  .hero { padding-top: calc(var(--nav-h) + 56px); }
}
