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

:root {
  /* Brand */
  --purple:        #9239df;
  --purple-hover:  #7b2cbe;
  --purple-dim:    rgba(146, 57, 223, 0.12);
  --purple-glow:   rgba(146, 57, 223, 0.25);

  /* Surfaces */
  --bg:            #191d1f;
  --bg-card:       #1e2326;
  --bg-input:      #22282c;

  /* Type */
  --white:         #ffffff;
  --gray-100:      #f3f4f6;
  --gray-300:      #d1d5db;
  --gray-400:      #9ca3af;
  --gray-500:      #6b7280;
  --gray-600:      #4b5563;

  /* Borders */
  --border-color:  #d1d5db;
  --border:        #2d3438;
  --border-focus:  #9239df;

  /* Feedback */
  --error:         #f87171;
  --success:       #34d399;
  --rating:        #facc15;

  /* Tokens */
  --radius:        999px;
  --radius-sm:     6px;
  --radius-md:     10px;
  --radius-lg:     14px;
  --transition:    0.3s ease;
  --font:          "Inter", sans-serif;
  --font-mono:     "DM Mono", monospace;
}

::selection {
  background: var(--purple);
  color: #fff;
}

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
  width: 100vw;
  min-height: 100vh;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

em {
  font-weight: 100;
  font-style: italic;
}

strong {
  font-weight: 600;
}

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

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

/* Section styles */
section {
  min-height: 90vh;
  padding: 100px clamp(24px, 10vw, 150px);
  background: var(--bg);
}

.section-heading {
  font-size: clamp(36px, 4vw, 48px);
  color: var(--white);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.header {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 900px;
}

.header p {
  font-size: 16px;
  color: var(--gray-300);
  line-height: 1.6;
  max-width: 500px;
}

/* Button styles */
.btn {
  max-width: fit-content;
  max-height: fit-content;
  font-family: var(--nb-font-menu);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 8px 20px;
  background-color: transparent;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition:
    background var(--transition),
    color var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.14);
}

.purple {
  color: var(--white);
  border: 1px solid var(--purple);
  background-color: var(--purple);
}

.outline {
  border: 1px solid var(--white);
  color: var(--white);
}

.purple:hover,
.outline:hover {
  color: var(--white);
  background: var(--purple-hover);
  border-color: var(--purple-hover);
}

/* ─── Badge / tag pill ───────────────────────────────────────────── */
.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-400);
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: fit-content;
}

.badge-tag svg {
  width: 12px;
  height: 12px;
  fill: var(--rating);
  flex-shrink: 0;
}

.badge-tag.centered {
  margin-left: auto;
  margin-right: auto;
}

/* ── HERO ── */
#hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  gap: 350px;
  width: 100%;
  height: 100%;
  padding: 0;
}

.hero-title {
  font-weight: 800;
  font-size: clamp(60px, 12vw, 150px);
  line-height: 1;
  color: var(--white);
  text-transform: uppercase;
  text-align: center;
  width: 100%;
  margin-top: 200px;
  z-index: 10;
}

.hero-sub {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 900px;
  z-index: 20;
}

.hero-desc {
  color: var(--white);
  max-width: 220px;
}

.hero-badge {
  position: absolute;
  top: 15%;
  left: -30%;
  background: var(--purple);
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 8px 16px;
  border-radius: 4px;
  z-index: 20;
}

.hero-btns {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-badge svg {
  width: 16px;
  height: 16px;
  color: var(--rating);
  fill: var(--rating);
}
.hero-badge span {
  font-size: 14px;
  color: var(--white);
}

.badge-tag {
  background: var(--purple);
  width: fit-content;
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 8px 16px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--white);
  border-radius: 5px;
}
.badge-tag svg {
  width: 20px;
  height: 20px;
}

/* ── VALUE PROP ── */
#valueprop {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9rem;
}

.vp-tagline {
  display: flex;
  gap: 16px;
  align-items: center;
}
.vp-tagline svg {
  height: 24px;
  color: var(--purple);
}

.vp-tagline span {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--purple);
    display: flex;
}

.vp-cards {
  display: flex;
  width: 100%;
  border-top: 1px solid var(--border-color);
  overflow: hidden;
}

.vp-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 32px;
  border-right: 1px solid var(--border-color);
}
.vp-card:last-child {
  border-right: none;
}

.check-icon {
  background: var(--purple);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.check-icon svg {
  width: 24px;
  height: 24px;
  color: var(--white);
}

.vp-card h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--white);
}
.vp-card p {
  font-size: 16px;
  font-weight: 300;
  color: var(--gray-300);
  line-height: 1.6;
}

/* ── FRAMEWORK ── */
#framework {
  display: flex;
  flex-direction: column;
  gap: 48px;
  align-items: flex-start;
  padding: 0;
}

.fw-steps {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.fw-step {
  display: flex;
  height: 100vh;
  border-top: 1px solid var(--border-color);
}

.fw-step-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 32px;
  padding: 64px;
  padding-left: 15%;
  border-right: 1px solid var(--border-color);
}

.step-label {
  display: flex;
  gap: 12px;
  align-items: center;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}
.step-dot {
  width: 7px;
  height: 7px;
  background: var(--purple);
  border-radius: 50%;
  flex-shrink: 0;
}
.step-label span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray-500);
}

.fw-step-content h3 {
  font-size: 30px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--white);
}
.fw-step-content > p {
  font-size: 16px;
  color: var(--gray-300);
  max-width: 400px;
  line-height: 1.6;
}

.fw-what {
  padding-top: 32px;
}
.fw-what strong {
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  display: block;
  margin-bottom: 12px;
}
.fw-what ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
}
.fw-what li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  font-size: 16px;
  font-weight: 300;
  color: var(--gray-300);
  line-height: 1.5;
}
.fw-what li svg {
  width: 12px;
  height: 12px;
  margin-top: 4px;
  flex-shrink: 0;
  fill: var(--gray-400);
  color: var(--gray-400);
}

.fw-step-img {
  flex: 1;
  position: relative;
  overflow: hidden;
  min-height: 300px;
}
.fw-step-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: screen;
}

/* ── WORK BODY ── */
.work-body {
  width: 100%;
  height: fit-content;
  padding: 100px clamp(24px, 10vw, 150px);
}

/* ── TESTIMONIALS ── */
#testimonials {
  display: flex;
  flex-direction: column;
  gap: 48px;
  align-items: flex-start;
  overflow: hidden;
  padding-bottom: 5rem;
  height: 110vh;
}

.testi-header {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 900px;
}

.testi-scroll {
  display: flex;
  gap: 32px;
  width: 100%;
  overflow-x: auto;
  padding-bottom: 32px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.testi-scroll::-webkit-scrollbar {
  display: none;
}

.testi-card {
  flex-shrink: 0;
  width: min(1000px, 90vw);
  border: 1px dashed var(--border-dashed);
  padding: 32px;
}

.testi-inner {
  display: flex;
  gap: 32px;
}

.testi-avatar {
  width: 214px;
  height: 214px;
  flex-shrink: 0;
  overflow: hidden;
  background: #374151;
  filter: grayscale(1);
}
.testi-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testi-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.testi-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}

.testi-name {
  font-size: 24px;
  font-weight: 600;
  color: var(--white);
}
.testi-role {
  font-size: 16px;
  font-weight: 200;
  color: var(--gray-300);
}
.testi-role strong {
  font-weight: 400;
  color: var(--white);
}
.testi-role br {
  display: none;
}

.testi-monogram {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 24px;
  flex-shrink: 0;
}

.testi-text {
  font-size: 18px;
  color: #e5e7eb;
  line-height: 1.6;
}

.testi-stars {
  display: flex;
  gap: 6px;
  margin-top: auto;
  padding-top: 24px;
}
.testi-stars svg {
  width: 20px;
  height: 20px;
  fill: var(--white);
  color: var(--white);
}

.scroll-track {
  width: 100%;
  height: 8px;
  background: #151718;
  border-radius: 999px;
}
.scroll-thumb {
  width: 50%;
  height: 100%;
  background: var(--white);
  border-radius: 999px;
}

/* ── FAQ ── */
#faq {
  display: flex;
  gap: 64px;
}

.faq-left {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.faq-left p {
  font-size: 16px;
  color: var(--gray-300);
  max-width: 400px;
  line-height: 1.6;
}

.faq-list {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.faq-item {
  border-bottom: 1px solid var(--border-color);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  cursor: pointer;
  background: transparent;
  border: none;
  text-align: left;
  transition: background 0.2s;
}
.faq-question:hover {
  background: rgba(255, 255, 255, 0.05);
}
.faq-question h3 {
  font-size: 15px;
  font-weight: 500;
  color: var(--white);
  line-height: 1.4;
}

.faq-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--gray-400);
  transition: border-color var(--transition), color var(--transition);
}
.faq-icon svg {
  width: 14px;
  height: 14px;
}
.faq-item.open .faq-icon {
  border-color: var(--purple);
  color: var(--purple);
}

.faq-answer {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition:
    max-height 0.3s ease,
    opacity 0.3s ease,
    padding 0.3s ease;
  padding: 0 16px;
}
.faq-item.open .faq-answer {
  max-height: 500px;
  opacity: 1;
  padding: 0 16px 24px;
}
.faq-answer p {
  font-size: 13px;
  color: var(--gray-400);
  line-height: 1.75;
  padding-left: 16px;
  /* border-left: 2px solid var(--border-color); */
}

/* ── ABOUT ME SECTION ── */
  #about {
    width: 100%;
    gap: 40px;
    display: flex;
    flex-direction: column;
  }

  /* Pengaturan Grid untuk Card */
  .cards-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
  }

   .cards-wrapper a {
    text-decoration: none;
    color: inherit;
   }

  /* Pengaturan Dasar Card */
  .card {
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 380px;
  }

  /* Placeholder Gradien CSS untuk menggantikan Mesh Gradient */
  .card-linkedin { background-image: url('/img/home-img/fractal-1.png'); }
  .card-fiverr   { background-image: url('/img/home-img/fractal-2.png'); }
  .card-social   { background-image: url('/img/home-img/fractal-3.png'); }

  .card-linkedin, .card-fiverr, .card-social {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }

  /* Bagian Header Card (Ikon + Judul) */
  .card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 32px;
  }

  /* Ikon Lingkaran (Placeholder tanpa library external) */
  .icon-circle {
    width: 28px;
    height: 28px;
    background-color: #ffffff;
    color: #000000;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 0.8rem;
  }

  /* Tipografi Judul di dalam Card */
  .card-title {
    font-size: 1.4rem;
    line-height: 1.4;
    font-weight: 400;
    margin-bottom: auto; /* Mendorong kotak deskripsi ke bawah */
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  .card-title strong { font-weight: 700; }
  .card-title i { font-style: italic; font-weight: 300; }

  /* Kotak Gelap Transparan untuk Deskripsi */
  .card-desc-box {
    background-color: rgba(0, 0, 0, 0.2); 
    padding: 20px;
    border-radius: 4px;
    margin-top: 32px;
    height: 100%;
  }

  .card-desc-box p {
    font-size: 0.85rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
  }

  /* Responsivitas untuk layar HP */
  @media (max-width: 768px) {
    .main-heading { font-size: 2rem; }
  }

/* ── CTA ── */
#cta {
  position: relative;
  display: flex;
  align-items: center; 
  justify-content: center;
  width: 100%;
  padding: 192px 24px;
  overflow: hidden;
}
#cta .cta-bg {
  position: absolute;
  inset: 0;
  background: var(--bg);
}
#cta .cta-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  mix-blend-mode: screen;
  transform: scale(1.1);
}
#cta .cta-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  text-align: center;
  max-width: 900px;
}
#cta h2 {
  font-size: clamp(40px, 7vw, 80px);
  font-weight: 600;
  color: var(--white);
  line-height: 1.1;
}
#cta h2 em {
  font-weight: 200;
  font-style: italic;
}
#cta p {
  font-size: 18px;
  color: #e5e7eb;
  max-width: 500px;
  line-height: 1.6;
}
#cta .btn-purple {
  padding: 16px 32px;
  font-size: 16px;
  margin-top: 16px;
  box-shadow: 0 4px 30px rgba(146, 57, 223, 0.3);
}

/* ── FOOTER ── */
footer {
  display: flex;
  flex-direction: column;
  gap: 64px;
  width: 100%;
  padding: 100px clamp(24px, 10vw, 150px);
  padding-top: 80px;
  padding-bottom: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background-color: var(--bg);
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.footer-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
}

.footer-logo {
  font-weight: 600;
  font-size: clamp(40px, 6vw, 80px);
  color: var(--white);
  white-space: nowrap;
}
.footer-logo em {
  font-weight: 200;
  font-style: italic;
}

.footer-clutch {
  width: 270px;
  height: 48px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  border-radius: 4px;
  transition: opacity 0.2s;
}
.footer-clutch:hover {
  opacity: 0.9;
}
.footer-clutch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 105px;
  align-items: center;
  margin-bottom: 15px;
}
.footer-links a {
  font-size: 16px;
  color: var(--gray-300);
  text-decoration: none;
  text-decoration-color: rgba(255, 255, 255, 0.4);
  transition:
    color 0.2s,
    text-decoration-color 0.2s;
}
.footer-links a:hover {
  color: var(--white);
  text-decoration-color: var(--white);
  text-decoration: underline;

}

.footer-bottom-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 32px;
  font-size: 14px;
  color: #8c8c8c;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  #hero {
    justify-content: space-between;
    padding-bottom: 100px;
  }
  .hero-title {
    margin-top: 100px;
    padding: 0 50px;
    font-size: 72px;
    display: flex;
    flex-wrap: wrap;
  }
  .hero-sub {
    flex-direction: column;
    align-items: center;
  }

  .hero-badge {
    top: -5%;
    left: -5%;
  }

  .hero-btns {
   justify-content: center;
  align-items: center;
  }

  .vp-cards {
    flex-direction: column;
    border: 1px solid var(--border-color);
  }
  .vp-card {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }
  .vp-card:last-child {
    border-bottom: none;
  }

  #services {
    padding-bottom: 0;
  }

  .service-item {
    padding: 48px 24px;
  }

  .fw-step {
    flex-direction: column;
  }
  .fw-step-content {
    padding: 32px;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }
  .fw-step-img {
    min-height: 300px;
  }

  .work-body {
    background-color: var(--bg);
  }

  .work-header br {
    display: none;
  }

  .testi-card {
    padding: 0;
    width: 300px;
  }
  .testi-inner {
    flex-direction: column;
  }
  .testi-top {
    flex-direction: column-reverse;
  }
  .testi-text {
    width: 300px;
  }
  .testi-role br {
    display: block;
  }

  #faq {
    flex-direction: column;
    gap: 48px;
  }

  #cta {
    padding: 128px 24px;
  }

  .footer-brand-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-bottom {
    flex-direction: column;
  }
  .footer-links {
    row-gap: 15px;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .page-wrapper {
    padding: 0 48px;
  }
  .hero-portrait {
    margin-top: -200px;
  }
}

@media (min-width: 1024px) {
  .page-wrapper {
    padding: 0 100px;
  }
}
