/* =========================================================
   Farij Ariefqy — Personal profile
   Modern, minimal, recruiter-friendly
   ========================================================= */

:root {
  /* Palet hangat & natural: krem, charcoal, sage, clay */
  --bg: #fbf9f6;
  --bg-alt: #f3efe8;
  --surface: #ffffff;
  --text: #2b2926;
  --muted: #6f6a62;
  --border: #e7e0d6;
  --primary: #5b7f6e;        /* sage green */
  --primary-dark: #44634f;
  --primary-2: #7a9a8a;
  --primary-soft: #e9f0eb;
  --clay: #b9785a;           /* aksen hangat */
  --clay-soft: #f6e9e1;
  --success: #5b7f6e;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(60, 48, 36, .04), 0 8px 24px rgba(60, 48, 36, .06);
  --shadow-lg: 0 20px 50px rgba(60, 48, 36, .10);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  /* dipakai oleh chatbot.css */
  --default-font: var(--font);
  --accent-color: var(--primary);
  --secondary-accent: var(--primary-dark);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -0.02em; }
h1, h2 { font-family: var(--serif); font-weight: 600 !important; letter-spacing: -0.015em; }
p { margin: 0; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }

.gradient-text {
  color: var(--primary);
  font-style: italic;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 12px;
  font-weight: 600; font-size: 15px;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: 8px 16px; font-size: 14px; border-radius: 10px; }
.btn-primary { background: var(--text); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); box-shadow: 0 10px 24px rgba(68, 99, 79, .25); }
.btn-ghost { border-color: var(--border); background: var(--surface); }
.btn-ghost:hover { border-color: var(--text); }
.btn-light { background: #fbf9f6; color: var(--text); }
.btn-outline-light { border-color: rgba(255, 255, 255, .4); color: #fff; }
.btn-outline-light:hover { background: rgba(255, 255, 255, .12); }

/* ---------- Navbar ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 249, 246, .85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.nav.scrolled { border-bottom-color: var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { font-weight: 800; font-size: 20px; letter-spacing: -0.03em; }
.brand span { color: var(--clay); }
.nav-links { display: flex; gap: 6px; }
.nav-links a {
  padding: 8px 14px; border-radius: 10px;
  font-size: 15px; font-weight: 500; color: var(--muted);
  transition: color .2s, background .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--bg-alt); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-toggle {
  display: none; border: 0; background: transparent;
  font-size: 26px; cursor: pointer; color: var(--text); padding: 4px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 72px 0 40px;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: -200px -200px auto auto;
  width: 640px; height: 640px; border-radius: 50%;
  background: radial-gradient(circle, rgba(185, 120, 90, .10), transparent 65%);
  z-index: -1;
}
.hero::after {
  content: ""; position: absolute; left: -220px; top: 160px;
  width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(91, 127, 110, .10), transparent 65%);
  z-index: -1;
}
.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: center; }

.status-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: var(--primary-soft); color: var(--primary-dark); border: 1px solid #cfdcd3;
  font-size: 14px; font-weight: 600;
}
.status-badge .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--success);
  box-shadow: 0 0 0 0 rgba(91, 127, 110, .6);
  animation: ping 2s infinite;
}
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(91, 127, 110, .6); }
  70% { box-shadow: 0 0 0 8px rgba(91, 127, 110, 0); }
  100% { box-shadow: 0 0 0 0 rgba(91, 127, 110, 0); }
}

.hero h1 { font-size: clamp(38px, 5.4vw, 60px); font-weight: 800; margin-top: 20px; }
.hero-role {
  margin-top: 10px; font-family: var(--mono);
  font-size: clamp(15px, 1.6vw, 18px); color: var(--clay);
}
.hero-pitch { margin-top: 20px; font-size: 18px; color: var(--muted); max-width: 560px; }
.hero-pitch strong { color: var(--text); font-weight: 600; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-meta { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 6px; color: var(--muted); font-size: 15px; }
.hero-meta i { color: var(--primary); margin-right: 6px; }

.hero-photo { position: relative; justify-self: center; }
.photo-frame {
  width: min(360px, 80vw); aspect-ratio: 4 / 5;
  border-radius: 28px; overflow: hidden;
  background: var(--clay-soft);
  padding: 10px; border: 1px solid var(--border); box-shadow: var(--shadow-lg);
  transform: rotate(-1.5deg);
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; border-radius: 20px; background: #0b0806; }
.floating-card {
  position: absolute; display: flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--border);
  padding: 12px 16px; border-radius: 14px; box-shadow: var(--shadow);
  font-size: 14px; animation: float 5s ease-in-out infinite;
}
.floating-card i {
  font-size: 20px; width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary);
}
.floating-card strong { display: block; font-size: 14px; }
.floating-card span { color: var(--muted); font-size: 13px; }
.card-1 { left: -56px; bottom: 70px; }
.card-2 { right: -40px; top: 40px; animation-delay: -2.5s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* Stats */
.stats {
  margin-top: 64px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); box-shadow: var(--shadow);
}
.stat { padding: 24px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--border); }
.stat strong { display: block; font-size: 32px; font-weight: 800; letter-spacing: -0.03em; }
.stat > span { color: var(--muted); font-size: 14px; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { margin-bottom: 48px; }
.section-head.center { text-align: center; }
.section-head.center p { color: var(--muted); margin-top: 12px; }
.eyebrow {
  display: inline-block; font-family: var(--mono); font-size: 13px;
  text-transform: uppercase; letter-spacing: .12em; color: var(--clay);
  margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 56px; }
.about-grid .section-head { margin-bottom: 0; }
.about-body p { color: var(--muted); font-size: 17px; }
.about-body p + p { margin-top: 16px; }
.about-body strong { color: var(--text); }
.about-highlights { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
.about-highlights div {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px;
  font-size: 15px; font-weight: 500;
}
.about-highlights i { color: var(--primary); font-size: 20px; }

/* Experience timeline */
.timeline { position: relative; display: grid; gap: 20px; max-width: 860px; margin: 0 auto; padding-left: 28px; }
.timeline::before {
  content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px;
  width: 2px; background: var(--border);
}
.job {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.job:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.job::before {
  content: ""; position: absolute; left: -28px; top: 34px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--bg-alt); border: 3px solid var(--primary);
}
.job-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.job h3 { font-size: 20px; font-weight: 700; }
.company { color: var(--muted); margin-top: 4px; font-size: 15px; }
.period {
  font-family: var(--mono); font-size: 13px; white-space: nowrap;
  padding: 6px 12px; border-radius: 999px; background: var(--bg-alt); color: var(--muted);
}
.period.current { background: var(--primary-soft); color: var(--primary); }
.job ul { margin: 18px 0 0; padding-left: 20px; color: var(--muted); }
.job li + li { margin-top: 6px; }
.job li strong { color: var(--text); font-weight: 600; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tags span {
  font-size: 13px; font-weight: 500; padding: 4px 10px; border-radius: 8px;
  background: var(--bg-alt); color: var(--text); border: 1px solid var(--border);
}

.edu {
  display: flex; gap: 18px; align-items: center;
  max-width: 860px; margin: 32px auto 0; padding: 22px 28px;
  border: 1px dashed #d6cdbf; border-radius: var(--radius); background: var(--surface);
}
.edu > i { font-size: 28px; color: var(--clay); }
.edu h3 { font-size: 17px; font-weight: 700; }
.edu p { color: var(--muted); font-size: 15px; margin-top: 4px; }

/* Projects */
.projects { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.projects .project { grid-column: span 2; }
.projects .project.wide { grid-column: span 3; }
.project {
  display: flex; flex-direction: column;
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; background: var(--surface);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.project:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #d9d0c3; }
.project-icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  font-size: 22px; color: var(--primary-dark); margin-bottom: 18px;
  background: var(--primary-soft);
}
.project-client { font-family: var(--mono); font-size: 12px; color: var(--clay); text-transform: uppercase; letter-spacing: .06em; }
.project h3 { font-size: 18px; font-weight: 700; margin-top: 6px; }
.project p { color: var(--muted); font-size: 15px; margin-top: 10px; flex: 1; }

/* Certifications */
.certs { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.cert {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px;
}
.cert-icon {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; font-size: 20px;
  background: var(--clay-soft); color: var(--clay);
}
.cert h3 { font-size: 16px; font-weight: 700; }
.cert p { color: var(--muted); font-size: 14px; margin-top: 4px; }
.cert-id { display: inline-block; margin-top: 8px; font-family: var(--mono); font-size: 12px; color: var(--muted); }

.company a { border-bottom: 1px dashed currentColor; }
.company a:hover { color: var(--primary); }

/* Skills */
.skills { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.skill-group {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px;
}
.skill-group h3 { font-size: 17px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.skill-group h3 i { color: var(--primary); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip {
  padding: 7px 14px; border-radius: 999px; font-size: 14px; font-weight: 500;
  border: 1px solid var(--border); background: var(--bg-alt);
}
.chip.strong { background: var(--primary-soft); border-color: #cfdcd3; color: var(--primary-dark); font-weight: 600; }

/* Side projects */
.side-projects { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.side-card {
  display: flex; gap: 18px; align-items: flex-start;
  border: 1px solid var(--border); border-radius: var(--radius); padding: 26px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.side-card:hover { border-color: var(--primary); transform: translateY(-3px); box-shadow: var(--shadow); }
.side-card > i { font-size: 28px; color: var(--primary); }
.side-card h3 { font-size: 17px; font-weight: 700; }
.side-card h3 i { font-size: 14px; color: var(--muted); }
.side-card p { color: var(--muted); font-size: 15px; margin-top: 6px; }

/* Contact */
#contact { padding-top: 24px; padding-bottom: 64px; }
.contact-card {
  position: relative; overflow: hidden;
  text-align: center; color: #fff;
  border-radius: 28px; padding: 72px 32px;
  background: radial-gradient(circle at 90% 10%, rgba(233, 200, 175, .22), transparent 45%),
              #3e5a4c;
}
.contact-card h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; }
.contact-card p { color: #dfe7e1; margin: 14px auto 0; max-width: 560px; font-size: 17px; }
.contact-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 28px 0 28px; }
.footer-inner { padding-right: 96px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer p { color: var(--muted); font-size: 14px; }
.socials { display: flex; gap: 8px; }
.socials a {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  border: 1px solid var(--border); color: var(--muted); transition: all .2s;
}
.socials a:hover { color: var(--primary); border-color: var(--primary); }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .floating-card, .status-badge .dot { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding-top: 40px; }
  .hero-photo { order: -1; }
  .card-1 { left: -20px; }
  .card-2 { right: -16px; }
  .projects { grid-template-columns: 1fr 1fr; }
  .projects .project, .projects .project.wide { grid-column: auto; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--border); }
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 8px 16px 16px;
    background: var(--bg); border-bottom: 1px solid var(--border);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px; }
  .section { padding: 72px 0; }
  .projects, .skills, .side-projects, .about-highlights, .certs { grid-template-columns: 1fr; }
  .floating-card { display: none; }
  .photo-frame { width: min(200px, 55vw); border-radius: 22px; }
  .job { padding: 22px; }
  .contact-card { padding: 56px 22px; }
  .contact-actions .btn { width: 100%; justify-content: center; }
}
