/* =========================================================
   FEBRIYAN PORTFOLIO — WHITE / BLUE THEME
   Only selectors used by index.html, project-detail.html,
   portfolio.js and lanyard.js are kept in this stylesheet.
   Responsive rules: mobile.css
========================================================= */
:root {
  color-scheme: light;
  --page: #f6f9ff;
  --surface: #ffffff;
  --surface-soft: #f0f6ff;
  --ink: #132b50;
  --muted: #61748f;
  --blue: #1664d9;
  --blue-dark: #0c429f;
  --blue-soft: #e7f1ff;
  --line: #dbe8f8;
  --shadow: 0 18px 55px rgba(25, 75, 145, 0.09);
  --radius: 24px;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 98px;
}
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--page);
  color: var(--ink);
  font-family: "Poppins", sans-serif;
  -webkit-font-smoothing: antialiased;
}
::selection {
  color: #fff;
  background: var(--blue);
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
}
img {
  display: block;
  max-width: 100%;
}
section {
  scroll-margin-top: 85px;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible,
a:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #5fa6ff;
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
.section-shell,
.resume-container,
.mywork,
.music-feature,
.contact-layout {
  width: min(1200px, calc(100% - 64px));
  margin-inline: auto;
}
.section-space {
  padding-block: 112px;
}

/* Header and site navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(202, 221, 246, 0.83);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.nav-shell {
  width: min(1260px, calc(100% - 64px));
  min-height: 83px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  flex-shrink: 0;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 57px;
  height: 49px;
  overflow: hidden;
  border-radius: 15px;
  background: linear-gradient(135deg, #0e368b, #1885ed);
  box-shadow: 0 8px 22px rgba(22, 100, 217, 0.22);
}
.brand-mark img {
  width: 49px;
  height: 30px;
  object-fit: contain;
}
.brand-name,
.footer-brand,
.detail-brand {
  font-size: 23px;
  letter-spacing: -1px;
  font-weight: 800;
  color: var(--ink);
}
.brand-name span,
.footer-brand span,
.detail-brand span {
  color: var(--blue);
}
.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 34px;
  padding: 0;
  margin: 0;
}
.nav-links a {
  font-weight: 600;
  color: #566a84;
  font-size: 13px;
  transition: color 0.2s ease;
}
.nav-links a:is(:hover, .active-link) {
  color: var(--blue);
}
.nav-contact,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  padding: 14px 22px;
  border-radius: 13px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition:
    transform 0.25s,
    box-shadow 0.25s,
    background 0.25s,
    border-color 0.25s;
}
.nav-contact,
.button-primary {
  color: white;
  background: linear-gradient(135deg, #186add, #0e4aaa);
  box-shadow: 0 10px 24px rgba(22, 100, 217, 0.2);
}
.nav-contact:hover,
.button-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(22, 100, 217, 0.26);
}
.nav-toggle {
  display: none;
}
.scroll-progress {
  height: 2px;
  width: 100%;
  background: transparent;
}
#scroll-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #6fc1ff, #1664d9);
}

/* Hero: spacious light background with softly blended blue glows */
.hero-section {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse 42% 65% at 93% 45%, rgba(128, 191, 255, 0.25), transparent 78%), radial-gradient(ellipse 52% 80% at -8% 4%, rgba(203, 229, 255, 0.54), transparent 76%), linear-gradient(115deg, #f3f8ff 0%, #fff 50%, #eaf4ff 100%);
}
.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(#7db7f8 0.85px, transparent 0.85px);
  background-size: 28px 28px;
  opacity: 0.13;
  mask-image: linear-gradient(to right, transparent 25%, black 100%);
}
.hero-grid {
  min-height: 690px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 20px;
}
.hero-copy {
  z-index: 2;
  position: relative;
  padding: 45px 0 75px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 32px;
  padding: 9px 15px;
  border: 1px solid #bdd9fb;
  border-radius: 30px;
  color: var(--blue-dark);
  background: rgba(235, 245, 255, 0.9);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.6px;
}
.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3b9dff;
  box-shadow: 0 0 0 4px #d5eaff;
}
.hero-greeting {
  margin: 0 0 14px;
  color: #526f94;
  font-size: clamp(15px, 1.8vw, 18px);
}
.hero-greeting strong {
  color: var(--blue);
}
.hero-title {
  margin: 0 0 24px;
  max-width: 670px;
  font-size: clamp(40px, 4.55vw, 66px);
  line-height: 1.17;
  letter-spacing: -2.8px;
  font-weight: 800;
}
.hero-title span {
  color: var(--blue);
}
.hero-description {
  max-width: 600px;
  color: var(--muted);
  font-size: 14px;
  line-height: 2;
  margin: 0 0 32px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
}
.button-secondary {
  color: var(--blue-dark);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #c6defa;
}
.button-secondary:hover {
  transform: translateY(-3px);
  border-color: var(--blue);
}
.hero-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 29px;
}
.hero-topics span {
  color: #4f7097;
  font-size: 11px;
  font-weight: 600;
  border-left: 2px solid #7bb7f7;
  padding: 1px 10px;
}
.lanyard-stage {
  position: relative;
  height: 660px;
  width: 100%;
  min-width: 0;
}
.stage-halo {
  width: min(88%, 470px);
  aspect-ratio: 1;
  position: absolute;
  top: 49%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.98) 0 34%, rgba(184, 218, 255, 0.52) 53%, rgba(188, 219, 255, 0) 74%);
  box-shadow: 0 0 95px 25px rgba(122, 188, 255, 0.12);
  pointer-events: none;
}
/* Transparent viewport overlay: Canvas no longer clips to .lanyard-stage.
   Pointer events are managed by the global lanyard handler, so links work. */
#lanyardCanvas {
  display: block;
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  pointer-events: none;
  background: transparent;
  z-index: 60;
}
body.lanyard-hover,
body.lanyard-hover * {
  cursor: grab !important;
}
body.lanyard-dragging,
body.lanyard-dragging * {
  cursor: grabbing !important;
  user-select: none !important;
}

.stage-hint {
  position: absolute;
  right: 6%;
  bottom: 22px;
  z-index: 2;
  font-size: 11px;
  font-weight: 600;
  color: #6c8bad;
  pointer-events: none;
}
.stage-hint i {
  margin-right: 5px;
}
.hero-endline {
  height: 2px;
  background: linear-gradient(to right, transparent, #b8d8ff 48%, transparent);
}

/* Education and experience timeline */
.resume-section {
  background: linear-gradient(180deg, #fff 0%, #f5f9ff 100%);
}
.resume-header,
.mywork-header {
  text-align: center;
  margin: 0 auto 54px;
}
.resume-header h1,
.mywork-header h2 {
  margin: 0 0 16px;
  font-size: clamp(33px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: -1.8px;
  line-height: 1.25;
}
.resume-header h1 span,
.mywork-header h2 span {
  color: var(--blue);
}
.resume-subtitle,
.mywork-header p {
  margin: auto;
  max-width: 650px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}
.resume-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 25px;
  align-items: start;
}
.resume-column {
  padding: 30px;
  border-radius: 26px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  min-width: 0;
}
.resume-column-title {
  display: flex;
  align-items: center;
  gap: 15px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 31px;
  padding-bottom: 25px;
}
.resume-title-icon {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 22px;
}
.resume-title-label {
  color: #7b91ad;
  font-weight: 700;
  font-size: 9px;
  letter-spacing: 1.9px;
}
.resume-column-title h2 {
  margin: 3px 0 0;
  font-size: 26px;
  letter-spacing: -0.7px;
}
.resume-timeline {
  position: relative;
  padding-left: 25px;
}
.resume-timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: linear-gradient(#6aaeff, #d8eaff);
}
.resume-item {
  position: relative;
  margin-bottom: 22px;
}
.resume-item:last-child {
  margin-bottom: 0;
}
.resume-dot {
  position: absolute;
  z-index: 1;
  left: -25px;
  top: 26px;
  width: 16px;
  height: 16px;
  border: 4px solid #b7d9ff;
  background: var(--blue);
  border-radius: 50%;
  box-shadow: 0 0 0 4px #f1f7ff;
}
.resume-item-content {
  padding: 22px;
  border: 1px solid #e2ecfa;
  border-radius: 19px;
  background: #f9fbff;
  transition:
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.resume-item-content:hover {
  transform: translateY(-3px);
  border-color: #b7d3f8;
  box-shadow: 0 10px 22px rgba(34, 103, 191, 0.07);
}
.resume-entry-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.resume-org-logo {
  position: relative;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  background: white;
  border: 1px solid #dfebfa;
  border-radius: 14px;
  overflow: hidden;
}
.resume-org-logo > span {
  font-size: 11px;
  font-weight: 800;
  color: var(--blue);
}
.resume-org-logo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 5px;
  background: white;
  object-fit: contain;
}
.resume-org-info {
  min-width: 0;
  flex: 1;
}
.resume-period {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--blue-dark);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.5;
  margin: 0 0 10px;
}
.resume-item h3 {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
  font-weight: 700;
  margin: 0 0 5px;
}
.resume-role {
  color: #577292;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.7;
  margin: 0;
}
.resume-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
}
.resume-tags span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 11px;
  border-radius: 30px;
  background: #e9f3ff;
  border: 1px solid #d9eafa;
  color: #2464b3;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.45;
}

/* Portfolio carousel: projects and certificates */
.portfolio-section {
  background: linear-gradient(180deg, #f5f9ff 0%, #fff 100%);
}
.mywork-tabs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 6px;
  margin: 0 auto 34px;
  border-radius: 16px;
  background: #e8f1fe;
  border: 1px solid #d8e8fc;
}
.mywork-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 12px;
  padding: 13px 21px;
  background: transparent;
  color: #64809e;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  transition:
    background 0.2s,
    color 0.2s;
}
.mywork-tab.active {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 7px 16px rgba(22, 100, 217, 0.17);
}
.mywork-panel {
  position: relative;
}
.mywork-carousel {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 13px;
}
.mywork-arrow {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid #ccddf2;
  background: white;
  color: var(--blue);
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(28, 88, 168, 0.09);
  transition:
    background 0.2s,
    color 0.2s;
}
.mywork-arrow:hover {
  background: var(--blue);
  color: white;
}
.mywork-track {
  display: flex;
  gap: 18px;
  min-width: 0;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 9px 2px 26px;
}
.mywork-track::-webkit-scrollbar {
  display: none;
}
.mywork-card {
  flex: 0 0 calc((100% - 36px) / 3);
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 12px 28px rgba(30, 86, 155, 0.07);
  scroll-snap-align: start;
  transition:
    transform 0.25s,
    border-color 0.25s;
}
.mywork-card:hover {
  transform: translateY(-5px);
  border-color: #abcffb;
}
.mywork-cover {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  height: 174px;
  color: #2475d6;
  font-size: 59px;
  background: radial-gradient(circle at 70% 30%, #fff 0%, #e5f1ff 56%, #d9eafb 100%);
}
.mywork-cover::after {
  content: "";
  position: absolute;
  width: 160px;
  aspect-ratio: 1;
  right: -55px;
  top: -90px;
  border: 22px solid rgba(104, 174, 255, 0.12);
  border-radius: 50%;
}
.mywork-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mywork-card-body {
  padding: 22px 20px 24px;
}
.mywork-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 13px;
}
.mywork-tags span {
  padding: 6px 9px;
  border-radius: 18px;
  color: var(--blue-dark);
  background: var(--blue-soft);
  font-size: 10px;
  font-weight: 600;
}
.mywork-card h3 {
  font-size: 16px;
  line-height: 1.5;
  margin: 0 0 9px;
}
.mywork-card p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
  margin: 0 0 20px;
  min-height: 65px;
}
.mywork-detail-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}
.mywork-detail-btn:hover {
  color: var(--blue-dark);
}

/* Music section */
.music-feature {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 70px;
  margin-top: 104px;
  padding: 48px 65px;
  border-radius: 34px;
  background: linear-gradient(130deg, #e8f3ff, #fff 58%, #e6f0ff);
  border: 1px solid #d9e9fb;
  overflow: hidden;
}
.music-art {
  display: flex;
  justify-content: center;
  min-width: 0;
}
.music-phone {
  position: relative;
  width: min(320px, 100%);
}
.music-phone::before {
  content: "";
  position: absolute;
  border-radius: 50%;
  width: 100%;
  height: 67%;
  top: 17%;
  left: 0;
  background: rgba(117, 178, 248, 0.28);
  filter: blur(50px);
}
.music-phone-image {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 23px 30px rgba(17, 58, 114, 0.17));
}
.music-copy {
  min-width: 0;
}
.music-copy h2 {
  font-size: clamp(29px, 3.5vw, 43px);
  line-height: 1.35;
  letter-spacing: -1.4px;
  margin: 0 0 25px;
}
.music-copy h2 span {
  color: var(--blue);
}
.music-player {
  overflow: hidden;
  border: 1px solid #d1e0f7;
  background: white;
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.music-player iframe {
  display: block;
  width: 100%;
  height: 352px;
  border: 0;
}


/* =========================================================
   Skills & Technologies — 15 tiles (5 columns × 3 rows)
   Icons are local SVG assets: assets/images/skills/
========================================================= */
.skills-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #f6faff 0%, #edf5ff 100%);
  border-top: 1px solid #e2eefc;
}
.skills-section::before {
  content: "";
  position: absolute;
  width: 540px;
  height: 540px;
  border-radius: 50%;
  top: -340px;
  right: -180px;
  background: radial-gradient(circle, rgba(106, 169, 246, .13), transparent 68%);
  pointer-events: none;
}
.skills-container {
  position: relative;
  width: min(1200px, calc(100% - 64px));
  margin-inline: auto;
}
.skills-heading {
  text-align: center;
  max-width: 690px;
  margin: 0 auto 47px;
}
.skills-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 15px;
  background: #e4f0ff;
  border: 1px solid #cce2fc;
  color: var(--blue);
  border-radius: 50px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.65px;
}
.skills-eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2a82ee;
  box-shadow: 0 0 0 4px rgba(42,130,238,.12);
}
.skills-heading h2 {
  font-size: clamp(32px, 4.4vw, 53px);
  line-height: 1.16;
  letter-spacing: -1.7px;
  margin: 19px 0 15px;
  color: var(--ink);
}
.skills-heading h2 span {
  color: var(--blue);
}
.skills-heading p {
  color: var(--muted);
  line-height: 1.9;
  font-size: 14px;
  margin: 0 auto;
  max-width: 600px;
}
.skills-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.skill-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 178px;
  gap: 8px;
  padding: 20px 9px 17px;
  border: 1px solid #dce9f9;
  border-radius: 21px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 9px 26px rgba(18, 72, 142, .045);
  text-align: center;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.skill-card::after {
  content: "";
  position: absolute;
  left: 28%;
  right: 28%;
  bottom: -1px;
  height: 2px;
  border-radius: 8px;
  background: var(--skill-accent);
  transform: scaleX(0);
  transition: transform .25s ease;
}
.skill-card:hover {
  transform: translateY(-7px);
  border-color: #b8d8fb;
  box-shadow: 0 20px 37px rgba(23, 80, 151, .13);
}
.skill-card:hover::after {
  transform: scaleX(1);
}
.skill-card-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--skill-accent) 8%, white);
  margin-bottom: 4px;
}
.skill-card-icon img {
  width: 47px;
  height: 47px;
  object-fit: contain;
  transition: transform .25s ease;
}
.skill-card:hover .skill-card-icon img {
  transform: scale(1.09);
}
.skill-card-name {
  font-size: 14px;
  line-height: 1.38;
  font-weight: 700;
  color: #163659;
  overflow-wrap: break-word;
}
.skill-card-category {
  color: #7c90ab;
  font-size: 10px;
  line-height: 1.45;
  font-weight: 500;
}
@media (prefers-reduced-motion: reduce) {
  .skill-card, .skill-card::after, .skill-card-icon img {
    transition: none;
  }
}

/* Contact */
.contact-section {
  position: relative;
  overflow: hidden;
  color: white;
  background: radial-gradient(ellipse at 5% 95%, rgba(126, 205, 255, 0.26), transparent 52%), linear-gradient(135deg, #0c327e, #1456ba 60%, #207ee7);
}
.contact-section::after {
  content: "";
  position: absolute;
  top: -200px;
  right: -120px;
  width: 450px;
  height: 450px;
  border: 85px solid rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  pointer-events: none;
}
.contact-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 70px;
}
.contact-title {
  margin: 0 0 20px;
  font-size: clamp(39px, 4.8vw, 66px);
  letter-spacing: -2px;
  line-height: 1.18;
}
.contact-title span {
  color: #9fceff;
}
.contact-copy p {
  max-width: 480px;
  color: #dceaff;
  line-height: 1.9;
  font-size: 14px;
}
.contact-card {
  background: rgba(255, 255, 255, 0.12);
  padding: 27px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 26px;
  backdrop-filter: blur(9px);
}
.contact-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}
.contact-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 15px;
  border-radius: 13px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  background: white;
  transition:
    background 0.22s,
    transform 0.22s,
    color 0.22s;
}
.contact-link i {
  font-size: 20px;
  color: var(--blue);
}
.contact-link:hover {
  transform: translateY(-3px);
  background: #e7f3ff;
}

/* Footer */
.site-footer {
  background: #fff;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.9fr 1fr 1.25fr 1fr;
  gap: 40px;
  padding-block: 65px 48px;
}
.footer-intro p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
  max-width: 290px;
}
.footer-column {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 12px;
}
.footer-column h3 {
  margin: 2px 0 9px;
  color: var(--ink);
  font-size: 13px;
}
.footer-column a,
.footer-column span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.footer-column a:hover {
  color: var(--blue);
}
.footer-bottom {
  padding-block: 20px 27px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: #8393a7;
}

/* Project details — same blue/white visual language */
.detail-page {
  background: radial-gradient(ellipse at 90% 0%, #e4f1ff, transparent 48%), var(--page);
  min-height: 100vh;
}
.detail-topbar {
  width: min(1200px, calc(100% - 64px));
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-block: 29px;
}
.detail-back {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 19px;
  border: 1px solid #c5daf5;
  border-radius: 13px;
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 700;
  background: white;
  transition:
    background 0.2s,
    transform 0.2s;
}
.detail-back:hover {
  background: var(--blue-soft);
  transform: translateX(-3px);
}
.detail-shell {
  width: min(1200px, calc(100% - 64px));
  margin: 55px auto 100px;
}
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 1.03fr;
  align-items: center;
  gap: 60px;
  margin-bottom: 95px;
}
.detail-left,
.detail-right {
  min-width: 0;
}
.detail-intro {
  margin-bottom: 36px;
}
.detail-label {
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  margin: 0 0 20px;
}
.detail-intro h1 {
  font-size: clamp(32px, 4.6vw, 56px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.2;
  margin: 0;
  overflow-wrap: anywhere;
}
.detail-info {
  display: flex;
  flex-direction: column;
  gap: 29px;
}
.detail-info h2 {
  font-size: 19px;
  margin: 0 0 12px;
}
#detail-description {
  white-space: pre-line;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.95;
  margin: 0;
}
.detail-tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.detail-tech-list span {
  background: var(--blue-soft);
  color: var(--blue-dark);
  border: 1px solid #cbe1fb;
  padding: 9px 14px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 600;
}
.detail-photo-wrap {
  min-height: 400px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #d5e5f8;
  background: linear-gradient(135deg, #e4f1ff, #fff);
  border-radius: 28px;
  box-shadow: var(--shadow);
}
#detail-photo {
  max-height: 550px;
  width: 100%;
  object-fit: contain;
}
#detail-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  padding: 60px 24px;
  color: #6c8bad;
  text-align: center;
  font-size: 13px;
}
#detail-fallback i {
  color: var(--blue);
  font-size: 65px;
}
.related-header {
  margin-bottom: 28px;
}
.related-header h2 {
  font-size: 28px;
  margin: 0 0 5px;
}
.related-header p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.related-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.related-card {
  overflow: hidden;
  background: white;
  border: 1px solid var(--line);
  border-radius: 19px;
  box-shadow: 0 10px 25px rgba(22, 82, 161, 0.06);
  transition: transform 0.25s;
}
.related-card:hover {
  transform: translateY(-5px);
}
.related-thumb {
  position: relative;
  display: grid;
  place-items: center;
  height: 150px;
  overflow: hidden;
  background: linear-gradient(135deg, #d9ecff, #f8fbff);
  color: var(--blue);
}
.related-thumb > i {
  font-size: 43px;
}
.related-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.related-card-body {
  padding: 18px;
}
.related-card strong {
  display: block;
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 8px;
}
.related-card small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* Full-viewport white / blue preloader (home & project details) */
.page-loader {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 28px;
  background: radial-gradient(circle at 20% 18%, rgba(168, 211, 255, 0.46), transparent 42%), radial-gradient(circle at 85% 84%, rgba(125, 183, 255, 0.28), transparent 48%), #f8fbff;
  opacity: 1;
  visibility: visible;
  transition:
    opacity 0.48s ease,
    visibility 0.48s ease;
}
.page-loader.is-finished {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader-content {
  width: min(320px, 100%);
  text-align: center;
}
.loader-logo {
  position: relative;
  width: 92px;
  height: 92px;
  margin: 0 auto 28px;
  display: grid;
  place-items: center;
  border-radius: 25px;
  background: linear-gradient(135deg, #145ac3, #2d8df1);
  box-shadow: 0 20px 46px rgba(24, 100, 217, 0.23);
}
.loader-logo img {
  width: 62px;
  height: auto;
  object-fit: contain;
}
.loader-orbit {
  position: absolute;
  inset: -12px;
  border-radius: 32px;
  border: 2px solid rgba(41, 127, 225, 0.15);
  border-top-color: #1e73db;
  border-right-color: #59b0ff;
  animation: loader-spin 1.3s linear infinite;
}
.loader-eyebrow {
  color: #5c81b0;
  font-weight: 800;
  font-size: 10px;
  letter-spacing: 2px;
  margin: 0 0 9px;
}
.loader-name {
  color: #153760;
  font-size: clamp(32px, 8vw, 43px);
  font-weight: 800;
  letter-spacing: -1.8px;
  line-height: 1.25;
  margin: 0 0 8px;
}
.loader-name span {
  color: var(--blue);
}
.loader-description {
  color: #6e88a8;
  font-size: 12px;
  margin: 0 0 28px;
}
.loader-progress {
  height: 5px;
  border-radius: 99px;
  overflow: hidden;
  background: #deebfa;
}
.loader-progress span {
  display: block;
  width: 40%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1b5dc4, #68bbff);
  animation: loader-progress 1.5s ease-in-out infinite;
}
@keyframes loader-spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes loader-progress {
  0% {
    transform: translateX(-105%);
  }
  100% {
    transform: translateX(360%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .loader-orbit,
  .loader-progress span {
    animation: none;
  }
  .loader-progress span {
    width: 100%;
  }
}

.typing-description {
  font-size: 16px;
  line-height: 1.8;
  color: #475569;
  min-height: 120px;
}

.typing-description::after {
  content: "|";
  color: #2563eb;
  font-weight: bold;
  animation: blink 0.7s infinite;
}

@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}
.music-phone {
  animation: spotifyFloating 4s ease-in-out infinite;
  will-change: transform;
}

@keyframes spotifyFloating {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-20px);
  }
}

/* Animasi lebih ringan pada mobile */
@media (max-width: 768px) {
  .music-phone {
    animation-duration: 5s;
  }
}

/* Menghormati pengaturan pengurangan animasi */
@media (prefers-reduced-motion: reduce) {
  .music-phone {
    animation: none;
  }
}
