:root {
  --bg: #f3f5fb;
  --bg-2: #eef1f9;
  --card: #ffffff;
  --text: #111418;
  --muted: #5f6b7a;
  --primary: #6b5cf6;
  /* violet */
  --primary-2: #2dd4bf;
  /* teal accent */
  --accent: #ffc857;
  /* warm dot */
  --ok: #22c55e;
  /* green */
  --shadow: 0 10px 30px rgba(17, 20, 24, 0.08);
  --radius-xl: 22px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-pill: 999px;
  --ring: 0 0 0 6px rgba(107, 92, 246, 0.12);
  --transition-fast: 200ms cubic-bezier(.2, .8, .2, 1);
  --transition-slow: 650ms cubic-bezier(.18, .84, .2, 1);
}

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

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 20% -10%, #c7d2ff40, transparent 60%),
    radial-gradient(1000px 600px at 110% 10%, #a7ffeb40, transparent 55%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
  background-attachment: fixed;
  background-size: 100% 100%, 100% 100%, 100% 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

button {
  font: inherit;
}

/* =====================
   LAYOUT / SHELL
====================== */

.shell {
  width: min(100%, 960px);
  margin-inline: auto;
  padding: 28px 16px 64px;
}

/* =====================
   FLOATING BLOBS
====================== */

.blob {
  position: fixed;
  z-index: -1;
  filter: blur(40px);
  opacity: .45;
  transform: translateZ(0);
}

.blob--violet {
  width: 360px;
  height: 360px;
  background: radial-gradient(circle at 30% 30%, #7c6dfc, transparent 60%);
  top: -80px;
  left: -60px;
  animation: float 18s ease-in-out infinite;
}

.blob--mint {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle at 70% 40%, #34e5c0, transparent 55%);
  top: 40vh;
  right: -120px;
  animation: float 22s ease-in-out -4s infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(0, 24px, 0);
  }
}

/* Animated gradient background */

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* =====================
   HEADER / PROFILE
====================== */

header {
  display: grid;
  place-items: center;
  gap: 14px;
  text-align: center;
}

.avatar-wrap {
  position: relative;
  width: 112px;
  height: 112px;
}

.avatar {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow);
  border: 6px solid #ffffff;
  animation: avatarAppear 1s ease-out forwards;
  opacity: 0;
  transform: translateY(10px);
}

@keyframes avatarAppear {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  pointer-events: none;
  box-shadow: var(--ring);
  animation: ringPulse 3s infinite ease-in-out;
}

@keyframes ringPulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.8;
  }
}

h1 {
  font-size: clamp(1.6rem, 3.6vw, 2.4rem);
  margin: 6px 0 2px;
  letter-spacing: .2px;
  animation: fadeInUp 0.8s 0.2s forwards;
  opacity: 0;
  transform: translateY(10px);
}

.role {
  color: #3b3f46;
  font-weight: 600;
  animation: fadeInUp 0.8s 0.4s forwards;
  opacity: 0;
  transform: translateY(10px);
}

.tagline {
  color: var(--muted);
  line-height: 1.6;
  max-width: 54ch;
  padding-inline: 8px;
  animation: fadeInUp 0.8s 0.6s forwards;
  opacity: 0;
  transform: translateY(10px);
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Typing animation for tagline */

.typing-container {
  display: inline-block;
  position: relative;
}

.typing-container::after {
  content: "|";
  position: absolute;
  right: -8px;
  animation: blink 1s infinite;
  color: var(--primary);
}

@keyframes blink {

  0%,
  50% {
    opacity: 1;
  }

  51%,
  100% {
    opacity: 0;
  }
}

/* Social icon bar */

nav.social {
  margin-top: 14px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.icon-btn {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  background: var(--card);
  border-radius: 20px;
  box-shadow: var(--shadow);
  border: 1px solid #edf0f7;
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    background var(--transition-fast);
  will-change: transform;
  animation: iconAppear 0.5s var(--delay) forwards;
  opacity: 0;
  transform: scale(0.8) translateY(10px);
}

.icon-btn:nth-child(1) {
  --delay: 0.8s;
}

.icon-btn:nth-child(2) {
  --delay: 0.9s;
}

.icon-btn:nth-child(3) {
  --delay: 1s;
}

.icon-btn:nth-child(4) {
  --delay: 1.1s;
}

.icon-btn:nth-child(5) {
  --delay: 1.2s;
}

@keyframes iconAppear {
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.icon-btn:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 14px 36px rgba(17, 20, 24, 0.12);
}

.icon-btn:active {
  transform: translateY(0) scale(.98);
}

.icon-btn svg {
  width: 26px;
  height: 26px;
  transition: transform 0.3s ease;
}

.icon-btn:hover svg {
  transform: scale(1.1);
}

/* =====================
   CARD ("Let's Work Together")
====================== */

.card {
  background: var(--card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  border: 1px solid #edf0f7;
  padding: 20px;
  margin-top: 22px;
  transition:
    transform 0.5s ease,
    box-shadow 0.5s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(17, 20, 24, 0.12);
}

.card .frame {
  border-radius: 18px;
  border: 1px solid #edf0f7;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 230px;
  background: linear-gradient(180deg, #fafbff, #f4f6fd);
  overflow: hidden;
}

.card .frame img {
  transition: transform 1.2s cubic-bezier(0.18, 0.84, 0.22, 1);
}

.card:hover .frame img {
  transform: scale(1.05);
}

.card h2 {
  font-size: 1.3rem;
  margin: 18px 0 8px;
}

.card p {
  color: var(--muted);
  line-height: 1.7;
}

.cta-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.btn {
  padding: 14px 22px;
  border-radius: var(--radius-pill);
  border: 0;
  cursor: pointer;
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    background var(--transition-fast),
    color var(--transition-fast);
}

.btn[data-ripple] {
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: #0f1115;
  color: #fff;
  box-shadow: 0 10px 22px rgba(15, 17, 21, 0.22);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(15, 17, 21, 0.25);
}

.btn-soft {
  background: #d9ffee;
  color: #064e3b;
}

.btn-soft .dot {
  width: 10px;
  height: 10px;
  background: var(--ok);
  border-radius: 50%;
  display: inline-block;
  margin-right: 10px;
  box-shadow: 0 0 0 8px rgba(34, 197, 94, 0.15);
  vertical-align: 1px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
  }

  70% {
    box-shadow: 0 0 0 12px rgba(34, 197, 94, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

/* =====================
   GALLERY → TIMELINE
====================== */
.gallery {
  margin-top: 32px;
  max-width: 760px;
  margin-inline: auto;
}

.timeline-header h2 {
  font-size: 1.26rem;
  margin: 0 0 4px;
}

.timeline-header p {
  margin: 0;
  color: var(--muted);
  font-size: .94rem;
  line-height: 1.6;
}

.timeline-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  position: relative;
}

/* Garis vertikal utama */

.timeline-list::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 16px;
  width: 2px;
  background: linear-gradient(to bottom, #d4ddff, #c4f5ea);
  opacity: .85;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding-bottom: 22px;
}

.timeline-marker {
  position: relative;
  padding-top: 2px;
  padding-right: 6px;
  text-align: right;
  min-width: 70px;
}

.timeline-dot {
  position: absolute;
  top: 6px;
  right: -5px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--primary), #4f46e5);
  box-shadow:
    0 0 0 4px rgba(107, 92, 246, 0.22),
    0 6px 14px rgba(15, 23, 42, 0.25);
}

.timeline-year {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  padding: 4px 10px 4px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.04);
  font-size: .82rem;
  font-weight: 600;
  color: #111827;
}

.timeline-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  border: 1px solid #edf0f7;
  box-shadow: var(--shadow);
  padding: 14px 14px 12px;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.5s ease,
    box-shadow 0.5s ease;
}

.timeline-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(17, 20, 24, 0.12);
}

.timeline-card::before {
  content: "";
  position: absolute;
  inset: -40% auto auto -40%;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle at 30% 30%, rgba(107, 92, 246, 0.18), transparent 60%);
  opacity: .45;
  pointer-events: none;
}

.timeline-card h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.timeline-meta {
  margin: 0 0 8px;
  font-size: .8rem;
  color: var(--muted);
}

.timeline-desc {
  margin: 0 0 10px;
  font-size: .9rem;
  line-height: 1.6;
  color: #2d3340;
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0 0;
}

.timeline-tags span {
  font-size: .78rem;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: linear-gradient(135deg, #f9fafb, #eef2ff);
  color: #334155;
  white-space: nowrap;
}

/* Timeline in-view animations */
.timeline-item .timeline-year,
.timeline-item .timeline-card {
  transition:
    transform 850ms cubic-bezier(.18, .84, .22, 1),
    opacity 650ms ease-out;
  will-change: transform, opacity;
}

/* Posisi awal: tahun dari kiri, card dari kanan (hidden) */
.timeline-item:not(.is-inview) .timeline-year {
  opacity: 0;
  transform: translateX(-26px);
}

.timeline-item:not(.is-inview) .timeline-card {
  opacity: 0;
  transform: translateX(26px);
}

/* Saat item terlihat di layar */
.timeline-item.is-inview .timeline-year,
.timeline-item.is-inview .timeline-card {
  opacity: 1;
  transform: translateX(0);
}

.timeline-media {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #f3f4ff;
  border: 1px solid #e5e7f5;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.1);
}

.timeline-media img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  transition:
    transform 1000ms cubic-bezier(.18, .84, .22, 1),
    filter 400ms;
}

.timeline-card:hover .timeline-media img {
  transform: scale(1.06);
  filter: saturate(1.05);
}

.timeline-body {
  position: relative;
  margin-top: 10px;
}

.timeline-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0 0;
}

.tech-pill {
  font-size: .78rem;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.75);
  background: linear-gradient(135deg, #f9fafb, #eef2ff);
  color: #1e293b;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.timeline-actions {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

/* =====================
   PROJECT GALLERY GRID
====================== */

.projects {
  margin-top: 32px;
  max-width: 960px;
  margin-inline: auto;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.project-card {
  position: relative;
  background: var(--card);
  border-radius: 18px;
  border: 1px solid #e5e7f5;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.project-media {
  padding: 10px 10px 0;
}

.project-thumb {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #f3f4ff;
}

.project-thumb img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  transition:
    transform 700ms cubic-bezier(.18, .84, .22, 1),
    filter 300ms ease;
}

.project-card:hover .project-thumb img {
  transform: scale(1.06);
  filter: saturate(1.05);
}

/* Thumbnail subtle lift saat card muncul */
.project-card.reveal .project-thumb img {
  transform: scale(1.03);
  opacity: 0.96;
}

.project-card.reveal.is-visible .project-thumb img {
  transform: scale(1.0);
  opacity: 1;
}

/* Label “Okt 2025” dikasih sedikit float & glow */
.project-card.reveal .project-label {
  transform: translateY(-4px);
  opacity: 0;
}

.project-card.reveal.is-visible .project-label {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 400ms ease-out 120ms,
    transform 400ms ease-out 120ms,
    box-shadow 600ms ease-out;
  box-shadow: 0 10px 24px rgba(248, 113, 22, 0.55);
}

/* Label pojok kiri atas (mis. Feb 2025) */
.project-label {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f97316;
  color: #fff;
  font-size: .72rem;
  font-weight: 600;
  box-shadow: 0 8px 18px rgba(248, 113, 22, 0.4);
}

.project-body {
  padding: 12px;
}

.project-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.project-body h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

/* Tombol titik tiga */
.project-menu-toggle {
  position: relative;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.project-menu-toggle span {
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: #94a3b8;
  display: block;
}

.project-menu-toggle span+span {
  margin-left: 2px;
}

/* Dropdown kecil */
.project-menu {
  position: absolute;
  top: 120px;
  right: 0;
  background: var(--card);
  border-radius: 12px;
  border: 1px solid #e5e7f5;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.22);
  padding: 4px;
  min-width: 130px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition:
    opacity 0.18s ease-out,
    transform 0.18s ease-out;
  z-index: 10;
}

.project-card.has-menu-open .project-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.project-menu-item {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 7px 10px;
  border-radius: 10px;
  font-size: .8rem;
  text-align: left;
  cursor: pointer;
  color: #1f2933;
}

.project-menu-item:hover {
  background: #eef2ff;
}

.btn-gradient {
  position: relative;
  background: linear-gradient(135deg, var(--primary), var(--primary-2), #ffffff);
  background-size: 250% 250%;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 10px 26px rgba(107, 92, 246, 0.2);
  border: 0;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  animation: gradientShift 5.5s ease infinite;
  transition:
    transform .25s ease,
    box-shadow .25s ease;
}

.btn-gradient:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 14px 36px rgba(107, 92, 246, 0.28);
}

.btn-gradient:active {
  transform: translateY(0) scale(.97);
  box-shadow: 0 6px 18px rgba(107, 92, 246, 0.22);
}

.project-card.reveal {
  opacity: 0;
  transform: translateY(18px) scale(.96);
  transition:
    opacity var(--transition-slow),
    transform var(--transition-slow),
    box-shadow var(--transition-slow),
    filter var(--transition-slow);
}

.project-card.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.16);
}

.project-card.reveal.is-visible:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 22px 40px rgba(15, 23, 42, 0.22);
}

/* Refine hover: sedikit tilt & lift */

/* Hover ke thumbnail */
.project-card:hover .project-thumb img {
  transform: scale(1.05);
}

/* Three dots micro-interaction */
.project-menu-toggle {
  transition:
    background 180ms ease-out,
    transform 180ms ease-out;
}

.project-menu-toggle:hover {
  background: #e5e7f5;
  transform: translateY(-1px);
}

.project-menu-toggle span {
  transition: background 160ms ease-out, transform 160ms ease-out;
}

.project-menu-toggle:hover span {
  background: #475569;
}

/* Meta: client di bawah – FINAL */
.project-meta {
  margin: 6px 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Desktop: sedikit lebih besar */
@media (min-width: 641px) {
  .project-meta {
    font-size: 0.85rem;
  }
}

/* Mobile: sedikit lebih kecil */
@media (max-width: 640px) {
  .project-meta {
    font-size: 0.75rem;
  }
}

/* =====================
   CONTACT MODAL
====================== */

.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  z-index: 40;
}

.modal .overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1200px 600px at 30% 0%, rgba(124, 109, 252, 0.18), transparent 60%),
    rgba(15, 17, 21, 0.45);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity var(--transition-slow);
}

.modal .panel {
  position: relative;
  width: min(94vw, 560px);
  background: var(--card);
  border-radius: 24px;
  box-shadow: 0 40px 90px rgba(17, 20, 24, 0.28);
  border: 1px solid #edf0f7;
  transform: translateY(18px) scale(.96);
  opacity: 0;
  transition:
    transform var(--transition-slow),
    opacity var(--transition-slow);
  padding: 22px;
}

.modal.is-open {
  pointer-events: auto;
}

.modal.is-open .overlay {
  opacity: 1;
}

.modal.is-open .panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.modal header {
  gap: 6px;
  margin-bottom: 6px;
}

.modal h3 {
  margin: 0 0 2px;
  font-size: 1.28rem;
}

.modal p.small {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.modal .close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  border: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: #111;
  opacity: .7;
  transition:
    background 0.3s ease,
    opacity 0.3s ease;
}

.modal .close:hover {
  background: #f4f6fd;
  opacity: 1;
}

.grid {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.input {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid #e6e9f3;
  outline: none;
  background: #fafbff;
  transition:
    border var(--transition-fast),
    box-shadow var(--transition-fast);
}

.input:focus {
  border-color: #c7ccff;
  box-shadow: 0 0 0 6px rgba(107, 92, 246, 0.08);
}

textarea.input {
  min-height: 120px;
  resize: vertical;
}

/* =====================
   SCROLL REVEAL
====================== */
.reveal {
  opacity: 0;
  filter: saturate(.9);
  transition:
    opacity var(--transition-slow),
    transform var(--transition-slow),
    filter var(--transition-slow);
}

/* Default reveal slide-up: untuk elemen biasa (header, teks, dsb) */
.reveal:not(.project-card) {
  transform: translateY(14px);
}

.reveal.is-visible {
  opacity: 1;
  filter: saturate(1);
}

.reveal.is-visible:not(.project-card) {
  transform: translateY(0);
}

/* =====================
   FOOTER
====================== */

footer {
  text-align: center;
  color: #6b7280;
  margin-top: 30px;
  font-size: .9rem;
}

/* =====================
   PROJECT DETAIL MODAL
====================== */

.project-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  z-index: 45;
}

.project-modal .overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1200px 600px at 30% 0%, rgba(124, 109, 252, 0.18), transparent 60%),
    rgba(15, 17, 21, 0.55);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity var(--transition-slow);
}

.project-panel {
  position: relative;
  width: min(96vw, 960px);
  max-height: 88vh;
  background: var(--card);
  border-radius: 26px;
  border: 1px solid #e5e7f5;
  box-shadow: 0 40px 90px rgba(15, 23, 42, 0.32);
  padding: 20px 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
  transform: translateY(24px) scale(.96);
  opacity: 0;
  transition:
    transform var(--transition-slow),
    opacity var(--transition-slow);
}

.project-content {
  margin-top: 4px;
  padding-right: 4px;
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.project-modal.is-open {
  pointer-events: auto;
}

.project-modal.is-open .overlay {
  opacity: 1;
}

.project-modal.is-open .project-panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.project-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  border: 0;
  background: rgba(248, 250, 252, 0.9);
  display: grid;
  place-items: center;
  cursor: pointer;
  color: #111827;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
  transition:
    background .25s ease,
    transform .2s ease,
    box-shadow .2s ease,
    opacity .2s ease;
  opacity: .9;
}

.project-close:hover {
  background: #eef2ff;
  transform: translateY(-1px);
  opacity: 1;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.16);
}

.project-close:active {
  transform: translateY(0);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.18);
}

.project-header {
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}

.project-cover {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #f3f4ff;
  border: 1px solid #e5e7f5;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
}

.project-cover img {
  width: 100%;
  height: 100%;
  max-height: 260px;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  transition: transform 1100ms cubic-bezier(.18, .84, .22, 1);
}

.project-panel:hover .project-cover img {
  transform: scale(1.06);
}

.project-main {
  position: relative;
  padding: 4px 2px;
}

.project-main::before {
  content: "";
  position: absolute;
  inset: -40% auto auto -40%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle at 30% 30%, rgba(107, 92, 246, 0.16), transparent 65%);
  opacity: .6;
  pointer-events: none;
}

.project-main h3 {
  margin: 0 0 6px;
  font-size: 1.16rem;
}

.project-client,
.project-datetime {
  margin: 0 0 4px;
  font-size: .86rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.project-tech {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.project-body {
  overflow-y: auto;
}

.project-body p {
  margin: 0;
  font-size: .94rem;
  line-height: 1.7;
  color: #1f2933;
}

.project-shots {
  border-top: 1px solid #e5e7f5;
  margin-top: 4px;
  padding-top: 10px;
  padding-bottom: 4px;
}

.project-shots-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.project-shots-header h4 {
  margin: 0;
  font-size: .96rem;
}

.project-shots-header p {
  margin: 0;
  font-size: .8rem;
  color: var(--muted);
}

.project-shots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 10px;
  padding-right: 2px;
}

.project-shot {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  background: linear-gradient(135deg, #f9fafb, #eef2ff);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.12);
}
.project-shot figcaption {
  padding: 8px 10px 9px;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--muted);
  background: rgba(248, 250, 252, 0.9);
  border-top: 1px solid #e2e8f0;
}

.project-shot img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  transition: transform 800ms cubic-bezier(.18, .84, .22, 1);
}

.project-shot:hover img {
  transform: scale(1.07);
}

.more-project {
  width: 100%;
  text-align: center;
  margin: 50px 0;
  color: #818181;
  transition: all .4s ease;
}

.more-project:hover {
  transform: scale(1.05) translateX(-10px);
  color: var(--primary);
}

.go-home {
  position: fixed;
  bottom: 82px;
  right: 20px;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: var(--card);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
  border: 1px solid #e5e7f5;
  display: grid;
  place-items: center;
  color: var(--primary);
  backdrop-filter: blur(6px);
  cursor: pointer;
  z-index: 50;
  transition:
    transform 220ms cubic-bezier(.2, .8, .2, 1),
    box-shadow 220ms cubic-bezier(.2, .8, .2, 1),
    background 200ms ease-out;
}

.go-home:hover {
  transform: translateY(-4px);
  background: #eef2ff;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.22);
}

.go-home:active {
  transform: translateY(0);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.18);
}
/* =====================
   IMAGE VIEWER FULLSCREEN
====================== */

.image-viewer {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: 0;
  z-index: 60;
  transition: opacity var(--transition-slow);
}

.image-viewer-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1200px 600px at 30% 0%, rgba(124, 109, 252, 0.22), transparent 60%),
    rgba(15, 17, 21, 0.75);
  backdrop-filter: blur(4px);
}

.image-viewer-inner {
  position: relative;
  max-width: min(96vw, 960px);
  max-height: min(90vh, 680px);
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  background: #020617;
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: 0 40px 90px rgba(15, 23, 42, 0.6);
  display: flex;
  flex-direction: column;
}

.image-viewer img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  background: #020617;
}

.image-viewer figcaption {
  padding: 10px 14px 12px;
  font-size: 0.86rem;
  color: #e5e7eb;
  background: radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.16), transparent 60%),
    rgba(15, 23, 42, 0.96);
  border-top: 1px solid rgba(30, 64, 175, 0.7);
}

.image-viewer-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 0;
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.6);
  transition:
    background 160ms ease-out,
    transform 160ms ease-out,
    box-shadow 160ms ease-out,
    opacity 160ms ease-out;
}

.image-viewer-close:hover {
  background: rgba(30, 64, 175, 0.9);
  transform: translateY(-1px);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.8);
}

.image-viewer-close:active {
  transform: translateY(0);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.8);
}

.image-viewer.is-open {
  pointer-events: auto;
  opacity: 1;
}

/* =====================
   MEDIA QUERIES
====================== */

/* Shell padding breakpoints */
@media (min-width: 480px) {
  .shell {
    padding: 32px 20px 72px;
  }
}

@media (min-width: 680px) {
  .shell {
    padding: 48px 28px 96px;
  }
}

/* Timeline card layout upgrade */
@media (min-width: 720px) {
  .timeline-card {
    display: grid;
    grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
    gap: 16px;
    align-items: stretch;
  }

  .timeline-body {
    margin-top: 0;
  }

  .timeline-media img {
    height: 100%;
  }
}

/* Timeline small screens */
@media (max-width: 480px) {
  .timeline-list::before {
    inset: 0 auto 0 12px;
  }

  .timeline-marker {
    min-width: 64px;
  }

  .timeline-year {
    font-size: .78rem;
  }

  .timeline-card {
    padding: 12px 12px 10px;
  }

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

/* Accessibility: reduce motion */
@media (prefers-reduced-motion: reduce) {
  .blob {
    display: none;
  }

  .reveal,
  .modal .panel,
  .project-modal .project-panel {
    transition: none;
  }

  .shot img {
    transition: none;
  }

  .icon-btn,
  .btn {
    transition: none;
  }

  .typing-container::after {
    display: none;
  }

  .project-card,
  .project-thumb img,
  .project-label {
    transition: none !important;
  }

}

/* Global responsive tweaks: header & card */
@media (max-width: 480px) {
  .avatar-wrap {
    width: 96px;
    height: 96px;
  }

  .avatar {
    width: 96px;
    height: 96px;
  }

  .icon-btn {
    width: 56px;
    height: 56px;
  }

  .icon-btn svg {
    width: 22px;
    height: 22px;
  }

  .card {
    padding: 16px;
  }

  .cta-row {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Extra small devices */
@media (max-width: 360px) {
  .shell {
    padding: 24px 12px 60px;
  }

  nav.social {
    gap: 10px;
  }

  .icon-btn {
    width: 50px;
    height: 50px;
  }

  .icon-btn svg {
    width: 20px;
    height: 20px;
  }
}

/* Project modal: mobile drawer */
@media (max-width: 640px) {
  .project-modal {
    align-items: flex-end;
  }

  .project-panel {
    width: 100%;
    max-width: 100%;
    max-height: 90vh;
    border-radius: 24px 24px 0 0;
    padding: 16px 16px 14px;
    transform: translateY(100%);
  }

  .project-modal.is-open .project-panel {
    transform: translateY(0);
  }

  .project-header {
    grid-template-columns: minmax(0, 1fr);
  }

  .project-cover img {
    max-height: 220px;
  }
}

@media (max-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .project-body {
    padding: 8px 9px 9px;
  }
}

/* Mobile: 2 kolom ala e-commerce */
@media (max-width: 640px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .project-thumb img {
    height: 110px;
  }

  .project-body {
    padding: 8px 9px 9px;
  }

  .project-body h3 {
    font-size: .82rem;
  }

  .project-menu {
    top: 100px;
    right: 8px;
  }
}
@media (max-width: 640px) {
  .project-shots-grid {
    grid-template-columns: 1fr;
  }

  .project-shot img {
    height: auto;
    max-height: 260px;
  }

  .project-shot figcaption {
    font-size: 0.78rem;
    line-height: 1.5;
  }
}

.project-card .project-body h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #5146b8;
  margin: 0 0 2px;
}

.project-card .project-body .project-meta {
  font-size: 0.78rem !important;
  line-height: 1.4;
  color: #4e4e50 !important;
  /* abu-abu lebih soft */
  margin-top: 2px;
}
/* Notifikasi Form */
.notification {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 14px 22px;
  border-radius: 12px;
  color: white;
  font-weight: 500;
  z-index: 1000;
  opacity: 0;
  animation: slideDown 0.5s forwards;
}

.notification.success {
  background-color: var(--ok); /* Hijau */
}

.notification.error {
  background-color: #ef4444; /* Merah */
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}
/* =====================
   LOADING SCREEN
====================== */

/* Sembunyikan konten utama saat halaman pertama kali dimuat */
body {
  opacity: 0;
  transition: opacity 0.5s ease-in;
}

/* Tampilkan konten dengan transisi halus setelah loading selesai */
body.loaded {
  opacity: 1;
}

#loading-screen {
  position: fixed;
  inset: 0; /* Sama dengan top: 0; right: 0; bottom: 0; left: 0; */
  background-color: var(--bg); /* Gunakan warna background utama */
  display: grid;
  place-items: center;
  z-index: 9999; /* Pastikan selalu di paling atas */
  transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

#loading-screen.loaded {
  opacity: 0;
  visibility: hidden; /* Agar tidak bisa diklik lagi saat sudah menghilang */
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

/* Animasi Spinner */
.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(107, 92, 246, 0.15); /* Warna border samar */
  border-top-color: var(--primary); /* Warna border atas yang berputar */
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Style teks persentase */
.loading-percentage {
 font-size: 1.2rem;
  font-weight: 600;
  color: var(--muted);
  font-family: 'Inter', monospace; /* Gunakan font monospace agar angka tidak meloncat-loncat */
}

/* Untuk performa, sembunyikan loading screen dari DOM setelah transisi selesai */
#loading-screen.loaded .loader-content {
  display: none;
}

/* Pada perangkat dengan prefers-reduced-motion, hentikan animasi */
@media (prefers-reduced-motion: reduce) {
  .spinner {
    animation: none;
    border-top-color: transparent;
    border-left-color: var(--primary);
  }
}