/* =========================================================
   RIDWAN RECRUITER PROFILE — RESPONSIVE CUSTOM CSS
   Struktur:
   01. Global / Shared Style
   02. Desktop Custom
   03. Tablet Custom
   04. Mobile Custom

   Catatan:
   - Desktop = 900px ke atas
   - Tablet  = 621px sampai 899px
   - Mobile  = 620px ke bawah
========================================================= */


/* =========================================================
   01. GLOBAL / SHARED STYLE
   Berlaku untuk semua ukuran layar.
========================================================= */

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

* {
  margin: 0;
  padding: 0;
}

html {
  width: 100%;
  max-width: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  color: var(--text);
  font-family: var(--body);
  line-height: 1.65;
  background:
    radial-gradient(circle at 18% 0%, rgba(34, 224, 111, 0.14), transparent 28rem),
    radial-gradient(circle at 86% 10%, rgba(34, 224, 111, 0.08), transparent 28rem),
    linear-gradient(180deg, var(--bg), #02100b 55%, var(--bg));
}

/* VARIABLES */
:root {
  --bg: #03150f;
  --panel: rgba(255, 255, 255, 0.045);
  --line: rgba(216, 255, 228, 0.13);
  --text: #f4f0df;
  --muted: rgba(244, 240, 223, 0.68);
  --soft: rgba(244, 240, 223, 0.42);
  --green: #22e06f;

  --max: 1120px;
  --radius: 20px;
  --section: 96px;

  --heading: "Fraunces", Georgia, serif;
  --body: "Inter", system-ui, sans-serif;
  --mono: "IBM Plex Mono", monospace;
}

/* BACKGROUND DETAILS */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(244, 240, 223, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 240, 223, 0.032) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at 50% 20%, black, transparent 72%);
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.052;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 260 260' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

/* BASE */
img {
  display: block;
  width: 100%;
  max-width: 100%;
}

a {
  color: inherit;
}

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

/* HEADER */
.topbar {
  position: fixed;
  z-index: 50;
  top: 18px;
  left: 50%;
  width: min(var(--max), calc(100% - 42px));
  min-height: 60px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 8px 0 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(3, 21, 15, 0.76);
  backdrop-filter: blur(18px);
}

.brand {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s ease;
}

.menu-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

.menu-toggle span {
  width: 17px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: 0.2s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.topbar nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.topbar nav a {
  color: var(--muted);
  text-decoration: none;
  border-radius: 999px;
  padding: 10px 13px;
  font-size: 12px;
  font-weight: 700;
  transition: 0.2s ease;
}

.topbar nav a.nav-cta {
  color: #03150f;
  background: var(--green);
}

.topbar nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
}

/* TYPOGRAPHY */
.eyebrow {
  color: var(--green);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1,
.section-head h2,
.contact h2 {
  font-family: var(--heading);
  font-weight: 600;
  font-variation-settings: "SOFT" 24, "WONK" 1;
  letter-spacing: -0.04em;
}

.hero h1 em {
  color: var(--green);
  font-style: italic;
  font-weight: 680;
  font-variation-settings: "SOFT" 34, "WONK" 1;
}

.lead {
  max-width: 570px;
  color: var(--muted);
}

.section-head {
  max-width: 680px;
  margin-bottom: 34px;
}

.section-head h2,
.contact h2 {
  margin-top: 12px;
}

/* BUTTONS */
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.button-row.center {
  justify-content: center;
}

.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: inherit;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  transition: 0.2s ease;
}

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

.btn.primary {
  color: #03150f;
  background: var(--green);
  box-shadow: 0 16px 42px rgba(34, 224, 111, 0.2);
}

.btn.ghost {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.035);
}

/* HERO BASE */
.hero {
  position: relative;
}

.hero-copy {
  max-width: 560px;
}

.photo-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    radial-gradient(circle at 50% 20%, rgba(34, 224, 111, 0.28), transparent 18rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
}

.photo-bg {
  position: absolute;
  inset: 44px 44px auto auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: var(--green);
  filter: blur(42px);
  opacity: 0.33;
}

.photo-card img {
  object-fit: contain;
  filter: drop-shadow(0 28px 60px rgba(0, 0, 0, 0.35));
}

/* SECTION SPACING */
.snapshot,
.impact,
.work,
.experience {
  padding-block: var(--section);
}

/* SNAPSHOT */
.snapshot-grid {
  display: grid;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.snapshot-grid article {
  min-width: 0;
  min-height: 170px;
  padding: 22px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.026);
}

.snapshot-grid span {
  color: var(--green);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.snapshot-grid strong {
  display: block;
  margin: 28px 0 6px;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.25;
}

.snapshot-grid p {
  color: var(--muted);
  font-size: 13px;
}

/* IMPACT */
.impact-grid {
  display: grid;
  gap: 14px;
}

.impact-grid article {
  min-width: 0;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.impact-grid small {
  color: var(--green);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
}

.impact-grid strong {
  display: block;
  margin-top: 5px;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.impact-grid p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

/* WORK */
.work-grid,
.motion-grid {
  display: grid;
  gap: 18px;
}

.work-card,
.motion-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
}

.work-card {
  cursor: pointer;
}

.menu-toggle:focus-visible,
.work-card:focus-visible,
.preview-close:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}

.work-card img {
  aspect-ratio: 4 / 4.6;
  object-fit: cover;
  filter: saturate(0.9) brightness(0.82);
}

.kol-report-card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: none;
}

.work-card div,
.motion-card div {
  padding: 16px;
}

.work-card h3 {
  margin-bottom: 2px;
}

.work-card h3,
.motion-card h4 {
  font-size: 17px;
  font-weight: 800;
}

.work-card p,
.motion-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

/* CAMPAIGN REPORTING / MOTION REELS */
.kol-report,
.motion-section {
  margin-top: 72px;
}

.kol-report-head,
.motion-head {
  margin-bottom: 24px;
}

.kol-report-head h3,
.motion-head h3 {
  margin-top: 10px;
  font-family: var(--heading);
  font-size: clamp(34px, 4vw, 56px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--text);
}

.motion-card video {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  background: #020b08;
  margin: 0;
  border: 0;
  vertical-align: top;
}

.motion-card div {
  position: relative;
  margin-top: -2px;
  background: rgba(3, 21, 15, 0.96);
}

.motion-card h4 {
  margin-bottom: 4px;
}

/* TIMELINE */
.timeline {
  border-top: 1px solid var(--line);
}

.timeline article {
  display: grid;
  gap: 28px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.timeline time {
  color: var(--green);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
}

.timeline h3 {
  margin-bottom: 5px;
  font-size: 22px;
  font-weight: 800;
}

.timeline p {
  max-width: 720px;
  color: var(--muted);
  font-size: 14px;
}

/* CONTACT */
.contact {
  margin-top: 24px;
  margin-bottom: 80px;
  padding: 78px 28px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 40%, rgba(34, 224, 111, 0.18), transparent 28rem),
    rgba(255, 255, 255, 0.03);
}

.contact h2 {
  max-width: 800px;
  margin-inline: auto;
}

/* FOOTER */
.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--soft);
  font-size: 13px;
}

/* POPUP PREVIEW PORTFOLIO */
.preview-popup {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(18px);
}

.preview-popup.active {
  display: flex;
}

.preview-box {
  width: fit-content;
  max-width: calc(100vw - 56px);
  max-height: calc(100vh - 56px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #03150f;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
}

.preview-box img {
  display: block;
  width: auto;
  max-width: calc(100vw - 56px);
  max-height: 76vh;
  object-fit: contain;
  background: #03150f;
}

.preview-info {
  width: 100%;
  padding: 18px 20px 20px;
  border-top: 1px solid var(--line);
  background: rgba(3, 21, 15, 0.96);
}

.preview-info h3 {
  margin-bottom: 4px;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
}

.preview-info p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.preview-close {
  position: fixed;
  top: 22px;
  right: 22px;
  z-index: 1000;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(3, 21, 15, 0.88);
  color: var(--text);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}


/* =========================================================
   02. DESKTOP CUSTOM
   Edit khusus desktop PC / laptop besar.
   Aktif di layar 900px ke atas.
========================================================= */

@media (min-width: 900px) {
  .hero {
    display: block;
    min-height: 760px;
    padding-top: 96px;
    padding-bottom: 80px;
  }

  .hero h1 {
    max-width: 650px;
    margin: 18px 0 22px;
    font-size: clamp(56px, 7.6vw, 90px);
    line-height: 0.9;
  }

  .lead {
    font-size: 16px;
    line-height: 1.85;
  }

  .photo-card {
    position: absolute;
    top: 140px;
    right: 0;
    width: 470px;
    min-height: 560px;
  }

  .photo-card img {
    position: absolute;
    left: 50%;
    bottom: 0;
    width: min(390px, 90%);
    transform: translateX(-50%);
  }

  .section-head h2,
  .contact h2 {
    font-size: clamp(38px, 5vw, 72px);
    line-height: 0.98;
    margin-bottom: 28px;
  }

  .snapshot-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .impact-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .work-grid {
  grid-template-columns: repeat(3, 1fr);
}

.motion-grid {
  grid-template-columns: repeat(3, 1fr);
}

  .timeline article {
    grid-template-columns: 220px 1fr;
  }
}


/* SHARED TABLET + MOBILE */
@media (max-width: 899px) {
  .menu-toggle {
    display: inline-flex;
  }

  .topbar nav {
    position: absolute;
    top: calc(100% + 10px);
    left: auto;
    right: 0;
    width: min(280px, calc(100vw - 24px));
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(3, 21, 15, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.46);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition:
      opacity 0.18s ease,
      transform 0.18s ease,
      visibility 0.18s ease;
  }

  .topbar nav.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .topbar nav a {
    padding: 12px 14px;
    text-align: left;
  }

  .topbar nav a.nav-cta {
    margin-top: 4px;
    text-align: center;
  }

  .hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 36px;
    padding-top: 108px;
    padding-bottom: 56px;
  }

  .hero-copy,
  .photo-card {
    grid-column: 1;
  }

  .photo-card {
    position: relative;
    margin-top: 20px;
    width: 100%;
  }

  .photo-card img {
    position: absolute;
    left: 50%;
    bottom: -6px;
  }

  .timeline article {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}


/* =========================================================
   03. TABLET CUSTOM
   Edit khusus tablet / laptop kecil.
   Aktif di layar 621px sampai 899px.
========================================================= */

@media (min-width: 621px) and (max-width: 899px) {
  :root {
    --section: 82px;
  }

  .wrap,
  .topbar {
    width: calc(100% - 42px);
    max-width: calc(100% - 42px);
  }

  .hero h1 {
    font-size: clamp(52px, 9vw, 78px);
    line-height: 0.92;
    margin-bottom: 25px;
    margin-top: 6px;
  }

  .lead {
    font-size: 16px;
    line-height: 1.8;
  }

  .photo-card {
    min-height: 560px;
  }

  .photo-card img {
    width: min(420px, 70%);
    transform: translateX(-50%) translateY(-10px);
  }

  .section-head h2,
  .contact h2 {
    font-size: clamp(38px, 8vw, 62px);
    line-height: 1;
    margin-bottom: 28px;
  }

  .snapshot-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .impact-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .work-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .motion-grid {
  grid-template-columns: repeat(3, 1fr);
}

.kol-report,
.motion-section {
  margin-top: 64px;
}

}


/* =========================================================
   04. MOBILE CUSTOM
   Edit khusus HP.
   Aktif di layar 620px ke bawah.
========================================================= */

@media (max-width: 620px) {
  :root {
    --section: 76px;
  }

  .wrap,
  .topbar {
    width: calc(100% - 24px);
    max-width: calc(100% - 24px);
  }

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

.kol-report,
.motion-section {
  margin-top: 56px;
}

.kol-report-head h3,
.motion-head h3 {
  font-size: clamp(34px, 11vw, 48px);
  line-height: 1.02;
}

  .topbar {
    top: 12px;
  }

  .hero h1 {
    font-size: clamp(44px, 14vw, 51px);
    line-height: 0.90;
    margin-bottom: 25px;
    margin-top: 6px;
  }

  .lead {
    font-size: 15px;
    line-height: 1.75;
  }

  .button-row {
    width: 100%;
    gap: 8px;
  }

  .btn {
    min-height: 42px;
    padding: 0 14px;
    font-size: 12px;
  }

  .photo-card {
    min-height: 500px;
  }

  .photo-card img {
    width: min(365px, 83%);
    transform: translateX(-50%) translateY(-22px);
  }

  .section-head h2,
  .contact h2 {
    font-size: clamp(34px, 11vw, 45px);
    line-height: 1.02;
    margin-bottom: 18px;
  }

  .snapshot-grid,
  .impact-grid,
  .work-grid {
    width: 100%;
    grid-template-columns: 1fr;
    overflow: hidden;
  }

  .preview-popup {
    padding: 14px;
  }

  .preview-box {
    max-width: calc(100vw - 28px);
    max-height: calc(100vh - 28px);
    border-radius: 18px;
  }

  .preview-box img {
    max-width: calc(100vw - 28px);
    max-height: 70vh;
  }

  .preview-info {
    padding: 15px 16px 17px;
  }

  .preview-close {
    top: 14px;
    right: 14px;
  }

  .footer {
    display: block;
  }

  .footer span {
    display: block;
    margin-top: 6px;
  }
}
