/* --------------------------------------------------
   Feri Iskandar Portfolio
   -------------------------------------------------- */

:root {
  --bg: #0b0d0c;
  --surface: #111412;
  --surface-2: #161a17;
  --text: #edf0eb;
  --muted: #9ba39b;
  --line: rgba(237, 240, 235, 0.12);
  --accent: #c7f36b;
  --accent-dark: #9fc64d;
  --max-width: 1120px;
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "DM Sans", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.container {
  width: min(calc(100% - 48px), var(--max-width));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  width: 100%;
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.site-header.scrolled {
  background: rgba(11, 13, 12, 0.88);
  border-color: var(--line);
  backdrop-filter: blur(16px);
}

.nav-wrap {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font: 700 1.35rem/1 "Space Grotesk", sans-serif;
  letter-spacing: -0.06em;
}

.logo span {
  color: var(--accent);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.88rem;
  color: var(--muted);
}

.site-nav a {
  transition: color 0.2s ease;
}

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

.site-nav .nav-cta {
  color: var(--bg);
  background: var(--accent);
  padding: 9px 15px;
  border-radius: 999px;
  font-weight: 700;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 1px;
  margin: 5px auto;
  background: var(--text);
  transition: transform 0.2s ease;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 150px 0 100px;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 80px;
  align-items: end;
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.hero h1,
.section-heading h2,
.contact-inner h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.hero h1 {
  max-width: 900px;
  font-size: clamp(3.7rem, 8vw, 7.2rem);
}

.hero h1 span {
  color: var(--accent);
}

.hero-text {
  max-width: 630px;
  margin: 32px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  min-height: 50px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--bg);
  background: var(--accent);
  border-color: var(--accent);
}

.button-ghost:hover {
  background: var(--surface-2);
}

.availability {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 58px;
  color: var(--muted);
  font-size: 0.8rem;
}

.status-dot {
  width: 7px;
  height: 7px;
  display: inline-block;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(199, 243, 107, 0.08);
}

.hero-meta {
  padding-bottom: 5px;
  color: var(--muted);
  font-size: 0.8rem;
}

.hero-meta p {
  margin: 20px 0 0;
}

.hero-meta strong {
  color: var(--text);
  font-weight: 500;
}

.hero-line {
  width: 42px;
  height: 1px;
  background: var(--accent);
}

.section {
  padding: 140px 0;
  border-bottom: 1px solid var(--line);
}

.section-heading {
  margin-bottom: 72px;
}

.section-heading h2 {
  font-size: clamp(2.8rem, 5vw, 5.2rem);
}

.section-heading em,
.contact-inner em {
  color: var(--muted);
  font-style: normal;
}

.project {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.project:hover {
  transform: translateY(-4px);
  border-color: rgba(199, 243, 107, 0.32);
}

.project-featured {
  display: grid;
  grid-template-columns: 90px 1fr;
  min-height: 470px;
}

.project-number {
  padding: 30px;
  color: var(--accent);
  font: 600 0.75rem "Space Grotesk", sans-serif;
}

.project-content {
  padding: 48px 52px 52px 0;
}

.project-top {
  display: flex;
  justify-content: space-between;
  gap: 30px;
}

.project-kicker {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.project h3,
.service h3,
.experience-card h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.project-featured h3 {
  max-width: 650px;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.05;
}

.project-arrow {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--accent);
}

.project-description {
  max-width: 720px;
  margin: 30px 0;
  color: var(--muted);
  font-size: 1rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tags span {
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.72rem;
}

.project-result {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 55px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.project-result span {
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.project-result strong {
  font-size: 1rem;
  font-weight: 500;
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}

.project-small {
  min-height: 390px;
  display: grid;
  grid-template-columns: 64px 1fr;
}

.project-small .project-number {
  padding: 28px 22px;
}

.project-small .project-content {
  padding: 40px 38px 40px 0;
}

.project-small h3 {
  font-size: 1.75rem;
  line-height: 1.08;
}

.project-small .project-description {
  margin: 22px 0 28px;
  font-size: 0.92rem;
}

.services-section {
  background: #0e100f;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
}

.service {
  min-height: 245px;
  padding: 34px 34px 38px 0;
  border-bottom: 1px solid var(--line);
}

.service:nth-child(odd) {
  padding-right: 60px;
  border-right: 1px solid var(--line);
}

.service:nth-child(even) {
  padding-left: 60px;
}

.service:nth-child(5) {
  grid-column: 1 / -1;
  border-right: 0;
}

.service-index {
  display: block;
  margin-bottom: 38px;
  color: var(--accent);
  font: 600 0.72rem "Space Grotesk", sans-serif;
}

.service h3 {
  font-size: 1.45rem;
}

.service p {
  max-width: 480px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.two-column {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 100px;
  align-items: start;
}

.two-column .section-heading {
  margin-bottom: 0;
}

.experience-card {
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.experience-head {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: flex-start;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.experience-card h3 {
  font-size: 1.6rem;
}

.experience-card .experience-head p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.experience-card > p {
  margin: 28px 0 0;
  color: var(--muted);
}

.experience-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.stack-section {
  background: var(--surface);
}

.stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.stack span {
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: var(--bg);
  font-size: 0.85rem;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.stack span:hover {
  border-color: rgba(199, 243, 107, 0.4);
  color: var(--accent);
}

.about-section {
  background: #0e100f;
}

.about-copy {
  max-width: 650px;
}

.about-copy p {
  color: var(--muted);
  font-size: 1rem;
}

.about-copy .lead {
  margin-top: 0;
  color: var(--text);
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
  line-height: 1.4;
}

.contact-section {
  padding: 160px 0 130px;
  background: var(--accent);
  color: var(--bg);
}

.contact-inner {
  text-align: center;
}

.contact-inner .eyebrow {
  color: rgba(11, 13, 12, 0.65);
}

.contact-inner h2 {
  font-size: clamp(3.4rem, 8vw, 7.5rem);
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 48px;
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(11, 13, 12, 0.45);
  font-size: clamp(1rem, 2vw, 1.4rem);
  font-weight: 600;
}

.socials {
  display: flex;
  justify-content: center;
  gap: 26px;
  margin-top: 48px;
  font-size: 0.8rem;
  font-weight: 700;
}

.socials a {
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.socials a:hover {
  opacity: 1;
}

.site-footer {
  background: var(--bg);
  color: var(--muted);
  font-size: 0.75rem;
}

.footer-inner {
  min-height: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-inner a:hover {
  color: var(--text);
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Responsive */
@media (max-width: 820px) {
  .container {
    width: min(calc(100% - 36px), var(--max-width));
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: 78px 18px auto 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(17, 20, 18, 0.98);
    backdrop-filter: blur(16px);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 13px;
  }

  .site-nav .nav-cta {
    text-align: center;
    margin-top: 5px;
  }

  .hero {
    min-height: auto;
    padding: 145px 0 90px;
  }

  .hero-grid,
  .two-column {
    grid-template-columns: 1fr;
    gap: 55px;
  }

  .hero-meta {
    display: flex;
    gap: 35px;
  }

  .hero-line {
    display: none;
  }

  .section {
    padding: 100px 0;
  }

  .section-heading {
    margin-bottom: 50px;
  }

  .project-featured {
    grid-template-columns: 1fr;
  }

  .project-featured .project-number {
    padding-bottom: 0;
  }

  .project-featured .project-content {
    padding: 25px 30px 35px;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-small .project-content {
    padding-right: 30px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service,
  .service:nth-child(odd),
  .service:nth-child(even) {
    min-height: auto;
    padding: 30px 0;
    border-right: 0;
  }

  .service:nth-child(5) {
    grid-column: auto;
  }

  .contact-section {
    padding: 110px 0 90px;
  }
}

@media (max-width: 520px) {
  .hero h1 {
    font-size: clamp(3.2rem, 17vw, 5rem);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    justify-content: space-between;
  }

  .hero-meta {
    flex-direction: column;
    gap: 5px;
  }

  .project-small {
    grid-template-columns: 1fr;
  }

  .project-small .project-number {
    padding-bottom: 0;
  }

  .project-small .project-content {
    padding: 22px 28px 30px;
  }

  .experience-card {
    padding: 26px;
  }

  .footer-inner {
    flex-direction: column;
    justify-content: center;
    gap: 5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}


/* Experience entries */
.experience-list {
  display: grid;
  gap: 18px;
}

.experience-company {
  margin: 0 0 9px !important;
  color: var(--accent) !important;
  font-size: 0.68rem !important;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.experience-detail {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.experience-detail h4 {
  margin: 0 0 14px;
  font: 600 0.95rem "Space Grotesk", sans-serif;
}

.experience-detail ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.experience-detail li {
  margin: 10px 0;
  padding-left: 4px;
}

.experience-detail a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: rgba(199, 243, 107, 0.45);
  text-underline-offset: 3px;
}

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

.experience-detail .client-projects {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 9px;
  padding-left: 18px;
}

.experience-detail .client-projects li {
  margin: 0;
}

.experience-tags {
  margin-top: 25px;
}
