/* ==========================================================================
   PERSONA 3 RELOAD - PAUSE MENU & PORTFOLIO
   Pure Vanilla HTML5 / CSS3 / ES6
   ========================================================================== */


/* --------------------------------------------------------------------------
   Font Declarations
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Rodin Pro";
  src: url("../fonts/Rodin Pro EB.otf") format("opentype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Rodin Pro Medium";
  src: url("../fonts/Rodin Pro DB.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Rodin Pro Bold";
  src: url("../fonts/Rodin Pro UB.otf") format("opentype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "NewRodin Pro";
  src: url("../fonts/NewRodin Pro DB.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "NewRodin Pro UB";
  src: url("../fonts/NewRodin Pro UB.otf") format("opentype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Skip Std B";
  src: url("../fonts/Skip Std B.otf") format("opentype");
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   Design Tokens & CSS Variables
   -------------------------------------------------------------------------- */
:root {
  --color-fg: #ffffff;
  --color-bg: #015fcc;
  --color-bg-dark: #031f64;
  --color-red: #ff0000;
  --color-muted: rgba(255, 255, 255, 0.4);
  --color-pink: #fd77d9;

  --color-button-1: #16cffb;
  --color-button-2: #7de6fd;
  --color-button-3: #77fefc;

  --color-border: #5d6a88;

  --font-rodin: "Rodin Pro Bold", "Rodin Pro", sans-serif;
  --font-rodin-medium: "Rodin Pro Medium", sans-serif;
  --font-new-rodin: "NewRodin Pro", sans-serif;
  --font-new-rodin-ub: "NewRodin Pro UB", "NewRodin Pro", sans-serif;
  --font-skip: "Skip Std B", sans-serif;
  --font-poppins: "Poppins", sans-serif;

  --text-shadow-under: 0 1px 6px rgba(0, 0, 0, 0.5), 0 -1px 6px rgba(0, 0, 0, 0.5),
    1px 0 6px rgba(0, 0, 0, 0.5), -1px 0 6px rgba(0, 0, 0, 0.5);
  --shadow-under: 0 1px 6px rgba(0, 0, 0, 0.5), 0 -1px 6px rgba(0, 0, 0, 0.5),
    1px 0 6px rgba(0, 0, 0, 0.5), -1px 0 6px rgba(0, 0, 0, 0.5);
  --text-shadow-border:
    0 2px 0 var(--color-border),
    0 -2px 0 var(--color-border),
    2px 0 0 var(--color-border),
    -2px 0 0 var(--color-border),
    -2px -2px 0 var(--color-border),
    2px -2px 0 var(--color-border),
    2px 2px 0 var(--color-border),
    -2px 2px 0 var(--color-border),
    0 1px 6px rgba(0, 0, 0, 0.5),
    0 -1px 6px rgba(0, 0, 0, 0.5),
    1px 0 6px rgba(0, 0, 0, 0.5),
    -1px 0 6px rgba(0, 0, 0, 0.5);
}

/* --------------------------------------------------------------------------
   Reset & Base Styles
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #001233;
  color: var(--color-fg);
  font-family: var(--font-rodin);
  user-select: none;
  -webkit-font-smoothing: antialiased;
}

/* Disable main menu interaction when project S.Link screen is active */
body.project-screen-active #menu-column,
body.project-screen-active .hud-controls,
body.project-screen-active .controls-guide,
body.project-screen-active .side-number {
  pointer-events: none !important;
}

/* --------------------------------------------------------------------------
   Small Screen Warning (identical to original)
   -------------------------------------------------------------------------- */
.mobile-warning {
  display: none;
  position: fixed;
  inset: 0;
  background-color: var(--color-bg);
  z-index: 1000;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
  font-family: var(--font-skip);
  font-weight: bold;
  font-size: 1.5rem;
  line-height: 1.6;
  display: none !important;
}

/* --------------------------------------------------------------------------
   Main Screen Container
   -------------------------------------------------------------------------- */
.p3r-main {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background-color: #001233;
}

/* --------------------------------------------------------------------------
   Background Video (Intro & Seamless Looping)
   Adapted for laptop screens:
   - Anchored to bottom-left so Makoto and water surface never get cropped
   - If aspect ratio doesn't fit vertically, crop strictly occurs at the TOP
   - If aspect ratio fits, 100% of the video is displayed uncropped
   -------------------------------------------------------------------------- */
.background-video {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  background-color: transparent;
}

.bg-video-loop {
  z-index: 1;
  opacity: 1;
}

/* --------------------------------------------------------------------------
   Persona 3 - Initial Loading Screen (Matched to Folder 2 Loading)
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Persona';
  src: url('../assets/UXFont.ttf') format('truetype');
  font-display: swap;
}

.p3r-loading-screen {
  position: fixed;
  inset: 0;
  z-index: 500;
  width: 100%;
  height: 100%;
  background-color: #c4001a;
  background-image: url('../assets/InitBG.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  user-select: none;
  cursor: pointer;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.p3r-loading-screen.dismissed {
  opacity: 0;
  transform: scale(1.04);
  pointer-events: none;
}

.loading-indicator-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.loading-gif {
  height: 60px;
  width: auto;
  image-rendering: pixelated;
  user-select: none;
  pointer-events: none;
}

.loading-text,
#loading-status-text {
  display: none !important;
}

/* ==========================================================================
   Persona 3 Reload Post-Loading Title Screen Prompt (Click to Continue)
   ========================================================================== */
.loading-continue-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 1.8vh, 16px);
  animation: p3rContinueFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
  user-select: none;
  z-index: 10;
}

@keyframes p3rContinueFadeIn {
  0% {
    opacity: 0;
    transform: scale(0.92) translateY(14px);
  }

  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.p3r-continue-btn {
  background: rgba(0, 0, 0, 0.55);
  border: 2px solid #ffffff;
  color: #ffffff;
  padding: clamp(10px, 1.8vh, 16px) clamp(28px, 4.0vw, 48px);
  font-family: 'Anton', 'Bebas Neue', var(--font-new-rodin-ub), var(--font-rodin), Impact, sans-serif;
  font-size: clamp(1.4rem, 2.8vw, 2.5rem);
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  outline: none;
  transform: skewX(-12deg);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.25), inset 0 0 12px rgba(255, 255, 255, 0.1);
  animation: p3rGameTitlePulse 1.35s ease-in-out infinite;
  transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.p3r-continue-btn .continue-text {
  display: inline-block;
  transform: skewX(12deg);
  color: #ffffff;
  transition: color 0.18s ease;
}

.p3r-continue-btn:hover {
  background: #ffffff;
  color: #000000;
  box-shadow: 0 0 35px rgba(255, 255, 255, 0.95), 0 0 15px #ffffff;
  transform: skewX(-12deg) scale(1.05);
}

.p3r-continue-btn:hover .continue-text {
  color: #000000;
}

.p3r-continue-btn:active,
.p3r-continue-btn.activating {
  background: #ffffff;
  color: #000000;
  transform: skewX(-12deg) scale(0.96);
  animation: p3rGameStartFlash 0.12s steps(2, start) infinite;
}

.p3r-continue-btn.activating .continue-text {
  color: #000000;
}

/* Classic Video Game Title Screen Pulsing Animation */
@keyframes p3rGameTitlePulse {
  0%,
  100% {
    opacity: 1;
    transform: skewX(-12deg) scale(1);
    box-shadow: 0 0 22px rgba(255, 255, 255, 0.4), inset 0 0 14px rgba(255, 255, 255, 0.15);
  }

  50% {
    opacity: 0.38;
    transform: skewX(-12deg) scale(0.985);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.15), inset 0 0 4px rgba(255, 255, 255, 0.05);
  }
}

@keyframes p3rGameStartFlash {
  0%,
  100% {
    filter: brightness(2.2);
    opacity: 1;
  }

  50% {
    filter: brightness(0.4);
    opacity: 0.15;
  }
}

.continue-subtext {
  font-family: var(--font-poppins), sans-serif;
  font-size: clamp(0.68rem, 1.1vw, 0.85rem);
  font-weight: 500;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
  animation: p3rGameSubPulse 1.35s ease-in-out infinite;
}

@keyframes p3rGameSubPulse {
  0%,
  100% {
    opacity: 0.85;
  }

  50% {
    opacity: 0.35;
  }
}

/* --------------------------------------------------------------------------
   Unified Left-Docked Hero & Main Menu Column (Persona 3 / 5 Layout)
   Generous breathing room from the top-left corner, beautifully scaled up,
   evenly aligned, and safely clear of the character artwork on the right.
   -------------------------------------------------------------------------- */
.menu-left-dock {
  position: absolute;
  top: clamp(4.4rem, 9.2vh, 6.4rem);
  left: clamp(2.0rem, 3.6vw, 4.2rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(1.2rem, 2.6vh, 1.8rem);
  z-index: 25;
  pointer-events: auto;
  max-width: min(540px, 44vw);
  opacity: 0;
  transform: translateX(-40px);
  will-change: transform, opacity;
}

.menu-left-dock.menu-entered,
.menu-column.menu-entered .menu-left-dock,
.menu-column.menu-entered,
.menu-profile-header.menu-entered {
  animation: p3rMenuLeftEntrance 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes p3rMenuLeftEntrance {
  0% {
    opacity: 0;
    transform: translateX(-40px) skewX(-4deg);
  }

  70% {
    opacity: 1;
    transform: translateX(4px) skewX(1deg);
  }

  100% {
    opacity: 1;
    transform: translateX(0) skewX(0);
  }
}

@media (min-width: 1800px) {
  .menu-left-dock {
    left: clamp(3.2rem, 5.0vw, 5.5rem);
    top: clamp(4.8rem, 9.5vh, 7.2rem);
    max-width: 580px;
  }
}

@media (max-width: 1200px) {
  .menu-left-dock {
    left: clamp(1.6rem, 3.0vw, 2.8rem);
    top: clamp(3.0rem, 6.5vh, 4.6rem);
    max-width: min(480px, 48vw);
  }
}

@media (max-width: 900px) {
  .menu-left-dock {
    left: clamp(1.4rem, 2.8vw, 2.2rem);
    top: clamp(2.4rem, 5.2vh, 3.8rem);
  }
}

@media (max-height: 850px) {
  .menu-left-dock {
    top: clamp(2.6rem, 5.5vh, 4.0rem);
    gap: clamp(0.75rem, 1.6vh, 1.15rem);
  }
}

/* --------------------------------------------------------------------------
   Hero Profile Header ("PORTFOLIO // FATKHUL BARRI" & Bio Card)
   -------------------------------------------------------------------------- */
.menu-profile-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 0;
  pointer-events: none;
  user-select: none;
}

/* Top Small Black Badge matching reference "PORTFOLIO // YOGATAMA DAFA" */
.profile-top-badge {
  display: inline-block;
  background: #000000;
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  font-family: 'Anton', 'Bebas Neue', var(--font-rodin), sans-serif;
  font-size: 0.86rem;
  letter-spacing: 0.09em;
  padding: 3.5px 12px;
  text-transform: uppercase;
  margin-bottom: 0.38rem;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.7);
}

/* Stacked Name Cutout: FATKHUL on row 1, BARRI on row 2 */
.profile-name-stacked {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.24rem;
}

.profile-name-stacked .p3r-cutout-char {
  font-size: clamp(2.35rem, 3.0vw, 3.35rem);
  padding: 0.12em 0.22em 0.14em;
}

/* Bio / Summary Card beneath name */
.profile-bio-card {
  margin-top: 0.5rem;
  background: rgba(2, 10, 24, 0.86);
  border: 1.5px solid rgba(22, 207, 251, 0.38);
  border-left: 4.5px solid #16cffb;
  border-radius: 4px;
  padding: 11px 16px;
  max-width: clamp(340px, 31vw, 470px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(6px);
}

.profile-bio-card p {
  margin: 0;
  font-family: var(--font-poppins), sans-serif;
  font-size: clamp(0.78rem, 0.88vw, 0.94rem);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.94);
  letter-spacing: 0.01em;
}

/* --------------------------------------------------------------------------
   Options List Layout: Plain White Unselected vs Stylized Jagged Selected
   Concept: Tulisan awalnya tidak ada style (putih polos), ketika di-select
   atau switch atas-bawah baru ber-style banner Persona 5 / 3 jagged.
   -------------------------------------------------------------------------- */
.menu-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  pointer-events: auto;
  z-index: 20;
}

.options-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(0.85rem, 1.8vh, 1.35rem);
  margin-top: clamp(0.35rem, 0.8vh, 0.75rem);
  pointer-events: auto;
  z-index: 20;
}

.option-item {
  position: relative;
  display: flex;
  align-items: center;
  pointer-events: auto;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.option-hitbox {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.2rem;
  outline: none;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  font-family: inherit;
  color: inherit;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* --- STATE 1: UNSELECTED (Putih Polos Tanpa Style) --- */
.option-plain-wrap {
  display: flex;
  align-items: center;
  padding: 0.15rem 0.35rem;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.option-plain-text {
  font-family: 'Anton', 'Bebas Neue', var(--font-rodin), 'Impact', sans-serif;
  font-weight: 900;
  font-size: clamp(2.45rem, 3.1vw, 3.4rem);
  line-height: 1;
  color: #ffffff;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.95),
    0 0 10px rgba(0, 0, 0, 0.85);
  transition: transform 0.15s ease, color 0.15s ease;
}

.option-item:hover .option-plain-text {
  color: #16cffb;
  transform: translateX(6px);
}

/* When option is selected, hide the plain text */
.option-item.selected .option-plain-wrap {
  display: none !important;
}

/* --- STATE 2: SELECTED (Persona Jagged Comic Calling-Card Banner) --- */
.option-styled-wrap {
  display: none !important;
}

.option-item.selected .option-styled-wrap {
  display: flex !important;
  align-items: center;
  animation: p3JaggedPop 0.22s cubic-bezier(0.175, 0.885, 0.32, 1.28) forwards;
}

@keyframes p3JaggedPop {
  0% {
    opacity: 0;
    transform: scale(0.92) translateX(-8px);
  }

  60% {
    opacity: 1;
    transform: scale(1.05) translateX(6px);
  }

  100% {
    opacity: 1;
    transform: scale(1) translateX(3px);
  }
}

/* Outer Jagged Container (Acts as the Crisp 2.5px White Jagged Border) */
.persona-jagged-banner {
  position: relative;
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  padding: 2px;
  clip-path: polygon(0% 16%,
      4% 0%,
      95% 0%,
      100% 22%,
      97% 50%,
      100% 78%,
      95% 100%,
      5% 100%,
      0% 76%,
      3% 48%);
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.95)) drop-shadow(0 0 16px rgba(22, 207, 251, 0.45));
}

/* Inner Jagged Fill (Deep Solid Black) */
.banner-jagged-inner {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: #000000;
  padding: 0.36rem 1.6rem 0.36rem 1.2rem;
  clip-path: polygon(0% 16%,
      4% 0%,
      95% 0%,
      100% 22%,
      97% 50%,
      100% 78%,
      95% 100%,
      5% 100%,
      0% 76%,
      3% 48%);
}

/* Cutout tile sizing inside selected banner */
.option-item.selected .p3r-cutout-char {
  font-size: clamp(2.15rem, 2.75vw, 3.1rem);
  padding: 0.12em 0.22em 0.14em;
}

/* Indicator Arrow ▶ at the right side of the selected item */
.selected-indicator-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(1.25rem, 1.55vw, 1.8rem);
  color: #ffffff;
  margin-left: 0.38rem;
  margin-right: 0.15rem;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.8));
  animation: p3ArrowPulse 0.75s ease-in-out infinite alternate;
}

@keyframes p3ArrowPulse {
  0% {
    transform: translateX(0);
    opacity: 0.85;
  }

  100% {
    transform: translateX(4px);
    opacity: 1;
  }
}

/* --------------------------------------------------------------------------
   Cutout Ransom Letter Typography (Gambar 1 Inspiration - Blue, White, Black)
   -------------------------------------------------------------------------- */
.p3r-cutout-group {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.22rem;
  user-select: none;
  pointer-events: none;
}

.p3r-cutout-word {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.12rem;
}

.p3r-cutout-char {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Anton', 'Bebas Neue', var(--font-rodin), 'Impact', sans-serif;
  font-weight: 900;
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding: 0.14em 0.24em 0.16em;
  margin: 0 0.03em;
  transform: rotate(var(--rot, 0deg));
  transform-origin: center center;
  box-shadow: 2px 3px 0 rgba(0, 0, 0, 0.8), 0 2px 6px rgba(0, 0, 0, 0.4);
  transition: transform 0.18s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Cutout Tile Palette (Persona 3 / 5 aesthetic: Midnight Black, White, Cyan, Atlus Blue) */
.p3r-cutout-char.tile-black {
  background-color: #070a14;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.p3r-cutout-char.tile-white {
  background-color: #ffffff;
  color: #060b18;
  border: 2px solid #060b18;
}

.p3r-cutout-char.tile-cyan {
  background-color: #16cffb;
  color: #02112a;
  border: 2px solid #02112a;
  box-shadow: 2px 3px 0 rgba(0, 0, 0, 0.8), 0 0 10px rgba(22, 207, 251, 0.6);
}

.p3r-cutout-char.tile-blue {
  background-color: #00549c;
  color: #ffffff;
  border: 2px solid #ffffff;
  box-shadow: 2px 3px 0 rgba(0, 0, 0, 0.8), 0 0 10px rgba(0, 153, 255, 0.5);
}

/* Subpage Headlines Cutout Typography (PROJECT, CERTIFICATE, ABOUT, MAIL) */
.p3r-banner-title .p3r-cutout-group {
  display: inline-flex;
  align-items: center;
  gap: clamp(0.12rem, 0.28vw, 0.32rem);
  margin-left: 0;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.95)) drop-shadow(0 0 10px rgba(22, 207, 251, 0.35));
}

.p3r-banner-title .p3r-cutout-char {
  font-family: 'Anton', 'Bebas Neue', var(--font-rodin), 'Impact', sans-serif;
  font-size: clamp(2.0rem, 2.6vw, 3.1rem);
  font-style: normal;
  font-weight: 900;
  line-height: 0.95;
  padding: 0.08em 0.18em 0.1em;
  margin: 0 0.02em;
  box-shadow: 2px 3px 0 rgba(0, 0, 0, 0.9), 0 3px 8px rgba(0, 0, 0, 0.5);
}

.p3r-mail-watermark .p3r-cutout-group {
  display: inline-flex;
  align-items: center;
  gap: clamp(0.2rem, 0.45vw, 0.45rem);
}

.p3r-mail-watermark .p3r-cutout-char {
  font-family: 'Anton', 'Bebas Neue', var(--font-rodin), 'Impact', sans-serif;
  font-size: clamp(2.35rem, 3.1vw, 3.7rem);
  font-style: normal;
  font-weight: 900;
  padding: 0.08em 0.18em 0.1em;
  margin: 0 0.02em;
  box-shadow: 3px 4px 0 rgba(0, 0, 0, 0.9), 0 4px 14px rgba(0, 0, 0, 0.6);
}

.menu-column.menu-entered .option-item:nth-of-type(4) {
  animation: p3rMenuLeftEntrance 0.52s cubic-bezier(0.16, 1, 0.3, 1) 0.32s forwards;
}

@keyframes p3rMenuLeftEntrance {
  0% {
    opacity: 0;
    transform: translateX(-70px) skewX(-10deg) scale(0.96);
  }

  70% {
    opacity: 1;
    transform: translateX(6px) skewX(2deg) scale(1.01);
  }

  100% {
    opacity: 1;
    transform: translateX(0) skewX(0) scale(1);
  }
}

/* --------------------------------------------------------------------------
   Side Watermark Number (Completely Hidden Sesuai Permintaan User)
   -------------------------------------------------------------------------- */
.side-number {
  display: none !important;
}

/* --------------------------------------------------------------------------
   Bottom-Right Command & Controls HUD
   -------------------------------------------------------------------------- */
.hud-controls {
  position: absolute;
  bottom: 1.5rem;
  right: 2.25rem;
  z-index: 25;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.hud-audio-btn {
  pointer-events: auto;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
  outline: none;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.hud-interactive-btn {
  pointer-events: auto;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
  outline: none;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.hud-audio-btn:hover .control-key,
.hud-interactive-btn:hover .control-key {
  background-color: var(--color-button-1);
  color: #031433;
  border-color: #ffffff;
  box-shadow: 0 0 14px rgba(22, 207, 251, 0.85), 0 2px 6px rgba(0, 0, 0, 0.6);
  transform: scale(1.06);
}

.hud-audio-btn:hover .control-text,
.hud-interactive-btn:hover .control-text {
  color: #ffffff;
  text-shadow: 0 0 10px rgba(22, 207, 251, 0.9), 0 2px 4px rgba(0, 0, 0, 0.8);
}

.hud-audio-btn:active,
.hud-interactive-btn:active {
  transform: translateY(1px) scale(0.96);
}

.hud-audio-btn.is-muted .control-key {
  background-color: rgba(20, 26, 40, 0.88);
  border-color: rgba(255, 255, 255, 0.35);
  color: rgba(255, 255, 255, 0.55);
}

.hud-audio-btn.is-muted .control-text {
  opacity: 0.6;
}

.buttons-row {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  justify-content: flex-end;
}

.control-item {
  display: flex;
  gap: 0.35rem;
  align-items: center;
}

.control-key {
  border-radius: 9999px;
  min-width: 1.85rem;
  height: 1.55rem;
  padding: 0 0.5rem;
  font-family: var(--font-rodin), sans-serif;
  font-weight: 900;
  background-color: rgba(3, 31, 100, 0.9);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  outline: 2px solid var(--color-border);
  font-size: 0.75rem;
  letter-spacing: -0.01em;
  border: 2px solid var(--color-fg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-fg);
  text-transform: uppercase;
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.hud-key-arrows {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 2.1rem;
}

.hud-key-arrows svg {
  stroke: var(--color-fg);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6));
}

.hud-select-item {
  user-select: none;
  opacity: 0.95;
  pointer-events: auto;
  cursor: default;
  transition: transform 0.15s ease;
}

.hud-select-item:hover .control-key {
  background-color: var(--color-button-1);
  color: #031433;
  border-color: #ffffff;
  box-shadow: 0 0 14px rgba(22, 207, 251, 0.85), 0 2px 6px rgba(0, 0, 0, 0.6);
  transform: scale(1.06);
}

.hud-select-item:hover .control-key svg {
  stroke: #031433;
}

.hud-select-item:hover .control-text {
  color: #ffffff;
  text-shadow: 0 0 10px rgba(22, 207, 251, 0.9), 0 2px 4px rgba(0, 0, 0, 0.8);
}

.control-text {
  text-shadow:
    0 1px 0 var(--color-border),
    0 -1px 0 var(--color-border),
    1px 0 0 var(--color-border),
    -1px 0 0 var(--color-border),
    -1px -1px 0 var(--color-border),
    1px -1px 0 var(--color-border),
    1px 1px 0 var(--color-border),
    -1px 1px 0 var(--color-border),
    0 1px 4px rgba(0, 0, 0, 0.5);
  font-size: 1.15rem;
  font-family: var(--font-new-rodin), sans-serif;
  letter-spacing: -0.02em;
  font-style: italic;
  font-weight: 800;
  color: var(--color-fg);
  transition: color 0.15s ease, text-shadow 0.15s ease;
}

/* --------------------------------------------------------------------------
   Portfolio Modal (Persona 3 Glassmorphism HUD Style)
   -------------------------------------------------------------------------- */
.portfolio-modal {
  position: fixed;
  inset: 0;
  background-color: rgba(3, 20, 70, 0.88);
  backdrop-filter: blur(6px);
  z-index: 300;
  display: none;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
}

.portfolio-modal.active {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}

.portfolio-modal.circle-transitioning {
  display: flex !important;
  opacity: 1 !important;
  pointer-events: none !important;
  will-change: clip-path;
}

.modal-card {
  width: 58rem;
  max-width: 90vw;
  max-height: 85vh;
  background: linear-gradient(135deg, rgba(1, 95, 204, 0.95), rgba(3, 31, 100, 0.98));
  border: 3px solid var(--color-fg);
  outline: 4px solid var(--color-border);
  border-radius: 0.75rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(22, 207, 251, 0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-modal.active .modal-card {
  transform: scale(1) translateY(0);
}

.modal-header {
  background-color: #ffffff;
  color: var(--color-bg-dark);
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 3px solid var(--color-bg);
}

.modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.modal-tag {
  background-color: var(--color-bg);
  color: #ffffff;
  font-family: var(--font-skip);
  font-size: 1rem;
  padding: 0.2rem 0.6rem;
  border-radius: 0.25rem;
  font-style: normal;
  letter-spacing: 0.05em;
}

.modal-title {
  font-size: 2.25rem;
  font-family: var(--font-rodin);
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.05em;
  color: var(--color-bg-dark);
}

.modal-close-btn {
  background: transparent;
  border: 2px solid var(--color-bg-dark);
  border-radius: 9999px;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-family: var(--font-rodin);
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--color-bg-dark);
  transition: all 0.15s ease;
}

.modal-close-btn:hover {
  background-color: var(--color-bg);
  color: #ffffff;
  border-color: var(--color-bg);
}

.modal-body {
  padding: 2.5rem;
  overflow-y: auto;
  font-family: var(--font-new-rodin);
  color: #ffffff;
  line-height: 1.6;
}

.modal-content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.modal-info-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(22, 207, 251, 0.4);
  border-left: 5px solid var(--color-button-1);
  padding: 1.25rem;
  border-radius: 0.375rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.modal-info-card:hover {
  transform: translateY(-3px);
  border-left-color: var(--color-pink);
  background: rgba(255, 255, 255, 0.12);
}

.info-card-title {
  font-family: var(--font-skip);
  font-size: 1.25rem;
  color: var(--color-button-2);
  margin-bottom: 0.5rem;
  font-weight: bold;
}

.info-card-desc {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
}

.modal-footer {
  padding: 1rem 2rem;
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: flex-end;
  gap: 1.5rem;
  align-items: center;
}

/* ==========================================================================
   PERSONA 3 RELOAD - SOCIAL LINK PROJECT SCREEN
   Exact 1:1 Layout recreation matching ATLUS S.Link List screen
   ========================================================================== */
.p3r-slink-screen {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #001233;
  display: none;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  user-select: none;
}

.p3r-slink-screen.active {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}

.p3r-slink-screen.circle-transitioning {
  display: flex !important;
  opacity: 1 !important;
  pointer-events: none !important;
  will-change: clip-path;
}

/* Project Screen Animated Video Background (Makoto Wallpaper) */
.slink-video-container {
  position: absolute;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.slink-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  pointer-events: none;
}

.slink-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 15, 40, 0.18) 0%, rgba(0, 15, 40, 0.04) 50%, rgba(0, 10, 30, 0.12) 100%);
  backdrop-filter: none;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Clean Wavy Circle Page Transition
   Pure GPU-accelerated clipPath wavy ripple reveal from menu text
   -------------------------------------------------------------------------- */
.wavy-transition-portal {
  display: none !important;
}

/* Main Viewport Layer */
.slink-viewport {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: space-between;
  padding: 4.2vh 0 4vh 0;
  pointer-events: none;
}

/* Top-Left Dark Corner Wedge (Removed to match reference image) */
.slink-top-left-wedge {
  display: none !important;
}

/* Persona 3 Reload Corner Back / Close Button (Pojok Kiri Atas - PC & Mobile) */
.p3r-mobile-corner-back,
.p3r-corner-back {
  position: fixed !important;
  top: clamp(16px, 2.5vh, 28px) !important;
  left: clamp(16px, 2.2vw, 28px) !important;
  width: 46px !important;
  height: 46px !important;
  border-radius: 50% !important;
  background: rgba(2, 11, 24, 0.94) !important;
  border: 2px solid #16cffb !important;
  box-shadow: 0 0 16px rgba(22, 207, 251, 0.8), 0 4px 12px rgba(0, 0, 0, 0.9) !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  z-index: 9999 !important;
  pointer-events: auto !important;
  transition: transform 0.16s ease, background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease !important;
  user-select: none !important;
  -webkit-tap-highlight-color: transparent !important;
  touch-action: manipulation !important;
}

.p3r-mobile-corner-back:hover,
.p3r-corner-back:hover {
  background: #16cffb !important;
  color: #020b18 !important;
  border-color: #ffffff !important;
  transform: scale(1.12) !important;
  box-shadow: 0 0 22px rgba(22, 207, 251, 1) !important;
}

.p3r-mobile-corner-back:active,
.p3r-corner-back:active {
  transform: scale(0.92) !important;
}

.p3r-mobile-corner-back svg,
.p3r-corner-back svg {
  stroke-width: 3.5;
  transition: transform 0.15s ease;
}

.p3r-mobile-corner-back:hover svg,
.p3r-corner-back:hover svg {
  transform: translateX(-2px);
}

/* Left Column: PROJECT Header + Cards Stack */
.slink-left-column {
  position: relative;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 60vw;
  z-index: 10;
}

/* Profile Sub-header removed per user request */
.slink-profile-header {
  display: none !important;
}

/* ==========================================================================
   Persona 3 Reload Shattered Geometric Header (Full-Bleed to Screen Left Edge)
   ========================================================================== */
.p3r-geometric-header {
  position: relative;
  width: clamp(460px, 33vw, 560px);
  height: clamp(124px, 14.5vh, 146px);
  margin-top: clamp(16px, 2.5vh, 32px);
  margin-bottom: clamp(18px, 2.4vh, 28px);
  overflow: visible;
  z-index: 10;
  display: flex;
  align-items: center;
  transform: rotate(-4.2deg);
  transform-origin: left center;
  cursor: default;
  user-select: none;
}

/* Custom Proportional Sizing per Headline - ABOUT (Extended Border to Right, Enlarged Cutout Text) */
#about-header-div {
  width: clamp(345px, 24vw, 440px);
  height: clamp(86px, 10.4vh, 104px);
}

#about-header-div .p3r-header-slash-main,
#about-header-div .p3r-shard-back-band {
  clip-path: polygon(0 0, 48% 10%, 51% 0%, 100% 0%, calc(100% - 36px) 100%, 0 100%);
}

#about-header-div #about-header-text {
  margin-left: clamp(56px, 5.0vw, 72px);
}

#about-header-text .p3r-cutout-group {
  gap: clamp(0.06rem, 0.16vw, 0.20rem);
}

#about-header-text .p3r-cutout-char {
  font-size: clamp(2.85rem, 3.8vw, 4.3rem);
  padding: 0.06em 0.14em 0.08em;
  margin: 0 0.015em;
}

/* Custom Proportional Sizing per Headline - PROJECT (Scaled identically to ABOUT) */
#slink-project-div {
  width: clamp(470px, 33vw, 580px);
  height: clamp(86px, 10.4vh, 104px);
}

#slink-project-div .p3r-header-slash-main,
#slink-project-div .p3r-shard-back-band {
  clip-path: polygon(0 0, 48% 10%, 51% 0%, 100% 0%, calc(100% - 36px) 100%, 0 100%);
}

#slink-project-div #slink-project-text {
  margin-left: clamp(56px, 5.0vw, 72px);
}

#slink-project-text .p3r-cutout-group {
  gap: clamp(0.06rem, 0.16vw, 0.20rem);
}

#slink-project-text .p3r-cutout-char {
  font-size: clamp(2.85rem, 3.8vw, 4.3rem);
  padding: 0.06em 0.14em 0.08em;
  margin: 0 0.015em;
}

/* Custom Proportional Sizing per Headline - CERTIFICATE (Scaled identically to ABOUT) */
#skill-header-div {
  width: clamp(520px, 36vw, 610px);
  height: clamp(86px, 10.4vh, 104px);
  margin-bottom: clamp(10px, 1.4vh, 16px);
}

#skill-header-div .p3r-header-slash-main,
#skill-header-div .p3r-shard-back-band {
  clip-path: polygon(0 0, 48% 10%, 51% 0%, 100% 0%, calc(100% - 36px) 100%, 0 100%);
}

#skill-header-div #skill-header-text {
  margin-left: clamp(56px, 5.0vw, 72px);
}

#skill-header-div #skill-header-text .p3r-cutout-group {
  gap: clamp(0.04rem, 0.12vw, 0.16rem);
}

#skill-header-text .p3r-cutout-char {
  font-size: clamp(2.65rem, 3.5vw, 4.0rem);
  padding: 0.06em 0.12em 0.08em;
  margin: 0 0.012em;
}

/* Page Open Entrance Animation */
.p3r-geometric-header.animating,
.p3r-slink-screen.circle-transitioning .p3r-geometric-header,
.p3r-slink-screen.active .p3r-geometric-header {
  animation: p3rBannerSlideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes p3rBannerSlideIn {
  0% {
    opacity: 0;
    transform: translateX(-150px) rotate(-4.2deg);
  }

  68% {
    opacity: 1;
    transform: translateX(12px) rotate(-4.2deg);
  }

  100% {
    opacity: 1;
    transform: translateX(0) rotate(-4.2deg);
  }
}

/* ==========================================================================
   Persona 3 Reload Dynamic Screen Shake & Vibration FX
   ========================================================================== */
@keyframes p3rSelectMicroShake {
  0% { transform: translate3d(0, 0, 0); }
  20% { transform: translate3d(-2px, 1.5px, 0) rotate(-0.12deg); }
  40% { transform: translate3d(2.5px, -1.5px, 0) rotate(0.12deg); }
  60% { transform: translate3d(-1.5px, -1px, 0); }
  80% { transform: translate3d(1px, 0.5px, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

@keyframes p3rConfirmImpactShake {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  15% { transform: translate3d(-4px, 3px, 0) rotate(-0.3deg) scale(1.006); }
  30% { transform: translate3d(5px, -3.5px, 0) rotate(0.25deg) scale(1.004); }
  45% { transform: translate3d(-3.5px, 2px, 0) rotate(-0.15deg); }
  60% { transform: translate3d(2.5px, -1.5px, 0) rotate(0.1deg); }
  75% { transform: translate3d(-1px, 1px, 0); }
  90% { transform: translate3d(0.8px, -0.5px, 0); }
  100% { transform: translate3d(0, 0, 0) scale(1); }
}

.p3r-main.p3r-select-shake {
  animation: p3rSelectMicroShake 0.12s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

.p3r-main.p3r-confirm-shake {
  animation: p3rConfirmImpactShake 0.28s cubic-bezier(0.25, 1, 0.5, 1) both;
}

/* Solid Light-Blue Hard Shadow Band Behind PROJECT Banner */
.p3r-shard-back-band {
  position: absolute;
  left: -106px;
  top: -8px;
  width: calc(100% + 120px);
  height: 100%;
  background: #16cffb;
  /* Solid Light Blue (Persona 3 Reload Cyan) */
  clip-path: polygon(0 0, 50% 10%, 53% 0%, 100% 0%, calc(100% - 48px) 100%, 0 100%);
  z-index: 1;
  pointer-events: none;
}

/* Secondary decorative shards hidden to preserve pure solid light-blue shadow */
.p3r-shard-cyan-peak,
.p3r-shard-right-cyan,
.p3r-shard-float {
  display: none !important;
}

/* Main Dark Midnight Blue Razor-Cut Banner (Extending all the way from screen left edge!) */
.p3r-header-slash-main {
  position: absolute;
  left: -120px;
  top: 0;
  width: calc(100% + 120px);
  height: 100%;
  background: linear-gradient(90deg, #020914 0%, #041224 55%, #061c3b 100%);
  clip-path: polygon(0 0, 50% 10%, 53% 0%, 100% 0%, calc(100% - 48px) 100%, 0 100%);
  z-index: 2;
  box-shadow: 0 6px 28px rgba(0, 5, 18, 0.85);
}

/* Bold Crisp Pure White Persona 3 Reload Title - Centered & Fitted Inside Banner */
.p3r-banner-title {
  position: relative;
  z-index: 3;
  margin: 0 0 0 5.0vw;
  padding: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  font-family: var(--font-rodin), sans-serif;
  line-height: 1;
  user-select: none;
  transform: none;
}

/* ==========================================================================
   Cards Stack (Collinear Parallel Slanted Layout: -22deg matching Screenshot)
   ========================================================================== */
.slink-cards-container {
  margin-left: 5.0vw;
  --slink-skew: -22deg;
  --card-height: clamp(70px, 9.0vh, 84px);
  --card-gap: clamp(10px, 1.4vh, 15px);
  display: flex;
  flex-direction: column;
  gap: var(--card-gap);
  width: fit-content;
  position: relative;
  overflow-x: hidden;
}

/* All cards share the EXACT SAME uniform slant (-22deg) with subtle staircase offset */
.slink-card {
  --card-skew: -22deg;
  --card-unskew: 22deg;
  --card-offset-x: 0px;
  width: clamp(580px, 51.5vw, 760px);
  height: var(--card-height);
  transform: skewX(var(--card-skew)) translateX(0px);
  margin-left: calc(var(--card-idx, 0) * 0.45vw);
  display: flex;
  flex-direction: row;
  cursor: pointer;
  position: relative;
  outline: none;
  border: none;
  background: transparent;
  padding: 0;
  user-select: none;
  text-align: left;

  /* Staggered non-simultaneous entrance animation */
  animation: slinkCardSlideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.slink-card:nth-child(1) {
  --card-delay: 0ms;
  animation-delay: calc(var(--card-delay) + 90ms);
}

.slink-card:nth-child(2) {
  --card-delay: 50ms;
  animation-delay: calc(var(--card-delay) + 90ms);
}

.slink-card:nth-child(3) {
  --card-delay: 100ms;
  animation-delay: calc(var(--card-delay) + 90ms);
}

.slink-card:nth-child(4) {
  --card-delay: 150ms;
  animation-delay: calc(var(--card-delay) + 90ms);
}

.slink-card:nth-child(5) {
  --card-delay: 200ms;
  animation-delay: calc(var(--card-delay) + 90ms);
}

@keyframes slinkCardSlideIn {
  0% {
    opacity: 0;
    transform: skewX(var(--card-skew, -22deg)) translateX(-140px);
  }

  70% {
    opacity: 1;
    transform: skewX(var(--card-skew, -22deg)) translateX(10px);
  }

  100% {
    opacity: 1;
    transform: skewX(var(--card-skew, -22deg)) translateX(0px);
  }
}

.slink-card:hover:not(.active) {
  transform: skewX(var(--card-skew)) translateX(8px);
  filter: drop-shadow(0 2px 12px rgba(0, 160, 255, 0.35));
}

.slink-card.active {
  width: clamp(620px, 55.5vw, 810px) !important;
  transform: skewX(var(--card-skew)) translateX(16px) !important;
  z-index: 10;
  filter: drop-shadow(0 6px 24px rgba(0, 160, 255, 0.45));
}

/* Unified Flex Row */
.card-unified-row {
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 100%;
  position: relative;
}

/* Sharp Solid Box for Roman Numeral */
.card-numeral-box {
  width: clamp(66px, 5.0vw, 82px);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #041630;
  border-right: 1.5px solid rgba(0, 210, 255, 0.45);
  flex-shrink: 0;
  position: relative;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.slink-card.active .card-numeral-box {
  background: #041630 !important;
  border-right: 2px solid rgba(0, 20, 60, 0.2) !important;
}

.card-numeral-text {
  font-family: var(--font-rodin), var(--font-skip), sans-serif;
  font-size: clamp(1.65rem, 1.9vw, 2.2rem);
  font-weight: 900;
  font-style: italic;
  transform: skewX(var(--card-unskew));
  color: #ffffff;
  letter-spacing: -0.02em;
}

/* Unified Main Body: Title & Caption */
.card-main-body {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 2.2rem 0 1.8rem;
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, #00549c 0%, #004282 100%);
  border-top: 1.5px solid rgba(110, 215, 255, 0.5);
  border-right: 2.5px solid rgba(0, 210, 255, 0.6);
  border-bottom: 1px solid rgba(0, 30, 70, 0.5);
  box-shadow: 0 4px 14px rgba(0, 20, 60, 0.35);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.slink-card.active .card-main-body {
  background: linear-gradient(90deg, #ffffff 0%, #f4f9ff 100%) !important;
  border-top: none !important;
  border-right: none !important;
  border-bottom: none !important;
  box-shadow: 0 4px 18px rgba(0, 20, 60, 0.25) !important;
}

/* Project Title Text - Now using Skip Std B as requested */
.card-title-text {
  font-family: var(--font-skip), sans-serif;
  font-weight: bold;
  font-style: italic;
  font-size: clamp(1.4rem, 1.6vw, 1.78rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  transform: skewX(var(--card-unskew));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #ffffff;
  text-shadow: 0 1px 4px rgba(0, 15, 45, 0.6);
  transition: color 0.2s ease;
}

.slink-card.active .card-title-text {
  color: #061a35 !important;
  text-shadow: none !important;
}

/* Subtitle / Caption Text */
.card-subtitle-text {
  font-family: var(--font-rodin-medium), var(--font-new-rodin), sans-serif;
  font-weight: 600;
  font-style: italic;
  font-size: clamp(0.9rem, 1.0vw, 1.12rem);
  line-height: 1.2;
  transform: skewX(var(--card-unskew));
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #8ee6ff;
  margin-top: 4px;
  transition: color 0.2s ease;
}

.slink-card.active .card-subtitle-text {
  color: #244b79 !important;
}

/* Red Accent Stripe on Right when Active */
.card-red-accent {
  display: none;
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 28px;
  background: #e60024;
  clip-path: polygon(42% 0, 100% 0, 100% 100%, 0% 100%);
  z-index: 5;
}

.slink-card.active .card-red-accent {
  display: block;
}

/* Bottom-Left Corner White Accent Wedge (Removed to match screenshot) */
.slink-corner-triangle {
  display: none !important;
}

/* Bottom Right HUD: Controls matching Menu Utama */
.slink-bottom-hud {
  position: absolute;
  right: 2.5rem;
  bottom: 2rem;
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  z-index: 25;
}

.slink-hud-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  outline: none;
  padding: 0;
  margin: 0;
  font-family: inherit;
  font-size: inherit;
  line-height: normal;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: transform 0.15s ease;
}

.control-key svg {
  display: block;
}

.slink-hud-btn:hover {
  transform: scale(1.08);
}

/* Responsive Scaling for Smaller Heights */
@media (max-height: 720px) {
  .slink-viewport {
    padding: 3.5vh 0 2.5vh 4.5vw;
  }

  .p3r-geometric-header {
    height: clamp(96px, 12vh, 112px);
  }

  .p3r-banner-title .p3r-cutout-char {
    font-size: clamp(1.6rem, 2.3vw, 2.2rem);
  }

  .slink-card {
    height: 50px;
    width: clamp(420px, 42vw, 540px);
  }

  .card-title-text {
    font-size: 1.15rem;
  }

  .card-subtitle-text {
    font-size: 0.72rem;
  }
}

/* ==========================================================================
   PERSONA 3 RELOAD - SKILLS STATS PAGE
   Adapted from porto-persona5 Stats Skill concept with authentic P3R aesthetic
   ========================================================================== */
/* .p3r-skill-screen inherits base layout from .p3r-slink-screen */

body.skill-screen-active .menu-options-container,
body.skill-screen-active .clock-hud,
body.skill-screen-active .character-viewport,
body.about-screen-active .menu-options-container,
body.about-screen-active .clock-hud,
body.about-screen-active .character-viewport {
  opacity: 0 !important;
  pointer-events: none !important;
}

/* .p3r-skill-viewport aligns with .slink-viewport */
.p3r-skill-viewport {
  padding: 2.8vh 0 2.4vh 0;
}

.p3r-skill-left-column {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 92vw;
  pointer-events: auto;
}

/* Category Filter Tabs (P3R Slanted Aesthetic) */
.p3r-skill-tabs {
  margin-left: 5.0vw;
  display: flex;
  gap: 12px;
  margin-bottom: clamp(10px, 1.3vh, 14px);
  flex-wrap: wrap;
  z-index: 10;
  position: relative;
  pointer-events: auto;
}

.p3r-skill-tab {
  transform: skewX(-14deg);
  background: rgba(2, 11, 24, 0.88);
  border: 1.5px solid rgba(22, 207, 251, 0.45);
  padding: 7px 18px;
  color: #a0d8ef;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 9px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  outline: none;
}

.p3r-tab-tag {
  display: inline-block;
  transform: skewX(14deg);
  color: #16cffb;
  font-family: var(--font-new-rodin-ub), sans-serif;
  font-style: italic;
  font-weight: 900;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.p3r-tab-label {
  display: inline-block;
  transform: skewX(14deg);
  color: #e0f6ff;
  font-family: var(--font-new-rodin-ub), sans-serif;
  font-style: italic;
  font-weight: 900;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
}

.p3r-skill-tab:hover {
  background: rgba(22, 207, 251, 0.22);
  border-color: #16cffb;
  transform: skewX(-14deg) translateY(-2px);
  box-shadow: 0 4px 14px rgba(22, 207, 251, 0.35);
}

.p3r-skill-tab.active {
  background: linear-gradient(90deg, #004fb3 0%, #16cffb 100%);
  border-color: #ffffff;
  transform: skewX(-14deg) translateY(-2px);
  box-shadow: 0 0 16px rgba(22, 207, 251, 0.65), 3px 3px 0 #000;
}

.p3r-skill-tab.active .p3r-tab-tag {
  color: #020914;
  background: #ffffff;
  padding: 0 5px;
  border-radius: 2px;
}

.p3r-skill-tab.active .p3r-tab-label {
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

/* Skills Stats Container (Single Category Focused Layout) */
.p3r-skills-container {
  margin-left: calc(5.0vw - 6px);
  width: min(89vw, 1180px);
  max-height: calc(100vh - 225px);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 6px 20px 84px 6px;
  scrollbar-width: thin;
  scrollbar-color: #16cffb rgba(2, 11, 24, 0.6);
  pointer-events: auto;
}

.p3r-skills-container::-webkit-scrollbar {
  width: 6px;
}

.p3r-skills-container::-webkit-scrollbar-track {
  background: rgba(2, 11, 24, 0.6);
}

.p3r-skills-container::-webkit-scrollbar-thumb {
  background: #16cffb;
  border-radius: 3px;
  box-shadow: 0 0 6px rgba(22, 207, 251, 0.8);
}

/* Skill Group Section */
.p3r-skill-group {
  display: flex;
  flex-direction: column;
}

.p3r-skill-group-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  user-select: none;
}

.p3r-group-badge {
  background: #16cffb;
  color: #020914;
  font-family: var(--font-new-rodin-ub), sans-serif;
  font-style: italic;
  font-weight: 900;
  font-size: 0.9rem;
  padding: 3px 8px;
  transform: skewX(-14deg);
  display: inline-block;
  letter-spacing: 0.05em;
}

.p3r-group-title {
  font-family: var(--font-new-rodin-ub), sans-serif;
  font-style: italic;
  font-weight: 900;
  font-size: clamp(1.15rem, 1.35vw, 1.45rem);
  color: #ffffff;
  letter-spacing: 0.08em;
  margin: 0;
  text-transform: uppercase;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.95);
}

.p3r-group-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, #16cffb 0%, rgba(22, 207, 251, 0.3) 60%, transparent 100%);
}

.p3r-skill-rows-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Individual Stat Skill Row (Staggered Animation Entrance) */
.p3r-stat-row {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 10px 20px;
  background: rgba(2, 9, 20, 0.82);
  border-left: 4px solid #16cffb;
  border-bottom: 1px solid rgba(22, 207, 251, 0.18);
  transform: skewX(-14deg);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s ease, border-left-color 0.2s ease;
  user-select: none;
  animation: p3rSkillRowIn 0.42s cubic-bezier(0.16, 1, 0.3, 1) both;
  will-change: transform, opacity;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

@keyframes p3rSkillRowIn {
  0% {
    opacity: 0;
    transform: translate3d(-35px, 0, 0) skewX(-14deg);
  }

  70% {
    opacity: 1;
    transform: translate3d(3px, 0, 0) skewX(-14deg);
  }

  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) skewX(-14deg);
  }
}

.p3r-stat-row:hover {
  background: rgba(0, 32, 74, 0.94);
  border-left-color: #ffffff;
  transform: skewX(-14deg) translateX(10px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
}

.p3r-stat-name-col {
  width: clamp(280px, 24vw, 410px);
  flex-shrink: 0;
  transform: skewX(14deg);
  /* Unskew text for crisp readability */
  overflow: hidden;
}

.p3r-stat-name {
  font-family: var(--font-skip), sans-serif;
  font-style: italic;
  font-weight: 700;
  font-size: clamp(1.02rem, 1.12vw, 1.22rem);
  color: #ffffff;
  letter-spacing: 0.02em;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.95);
}

/* Slanted Brilliant White Progress Bar (Indikator Putih Solid - Tanpa Glowing) */
.p3r-stat-bar-track {
  flex: 1;
  height: 20px;
  background: rgba(2, 12, 28, 0.75);
  border: 1.5px solid rgba(255, 255, 255, 0.65);
  transform: skewX(-8deg);
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.9);
  background-image: repeating-linear-gradient(90deg, transparent 0 22px, rgba(255, 255, 255, 0.12) 22px 24px);
}

.p3r-stat-bar-fill {
  position: absolute;
  inset: 0;
  background: #ffffff;
  /* Indikator Berwarna Putih Murni Bersih Tanpa Glowing */
  background-image: repeating-linear-gradient(90deg, transparent 0 22px, rgba(22, 207, 251, 0.45) 22px 25px);
  box-shadow: none !important;
  /* Glowing Dihilangkan Sesuai Permintaan */
  transition: none !important;
}

.p3r-stat-bar-tip {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: #e60024;
  box-shadow: none !important;
  /* Glowing Dihilangkan Sesuai Permintaan */
}

/* Level Indicator Dihilangkan Sesuai Permintaan */
.p3r-stat-lv {
  display: none !important;
}

/* ==========================================================================
   PERSONA 3 RELOAD - ABOUT ME PAGE
   Simple Left-Docked Layout with Photo Frame Placeholder & Developer Bio
   ========================================================================== */
/* .p3r-about-screen & .p3r-about-viewport inherit layout from .p3r-slink-screen & .slink-viewport */

.p3r-about-left-column {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: min(940px, 72vw);
  pointer-events: auto;
}

#about-page .p3r-geometric-header {
  margin-bottom: clamp(12px, 1.8vh, 20px);
}

/* Left-Docked About Card (Larger, Solid Deep Black, No Transparency, No Blue Line) */
.p3r-about-card {
  margin-left: clamp(24px, 3.8vw, 56px);
  width: min(860px, 64vw);
  background: #090d14;
  /* 100% Solid Deep Black - Tanpa Transparansi */
  border: 1px solid #1c2433;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.96);
  padding: clamp(22px, 2.6vh, 30px) clamp(28px, 2.8vw, 38px);
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.5vh, 16px);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
  position: relative;
  pointer-events: auto;
  user-select: text;
}

.p3r-about-card,
.p3r-about-card * {
  font-family: var(--font-poppins), sans-serif;
}

.p3r-about-card::before {
  display: none;
  /* Hilangkan segitiga biru di pojok */
}

.p3r-about-card-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  overflow: visible;
}

/* Top Section: Photo + Identity */
.p3r-about-top-row {
  display: flex;
  gap: 24px;
  align-items: center;
}

/* User Profile Photo Box */
.p3r-photo-box {
  width: 120px;
  height: 120px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid #2d3748;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
  background: #0d121c;
}

.p3r-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Identity Details */
.p3r-about-identity {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.p3r-about-name {
  font-family: var(--font-poppins), sans-serif;
  font-weight: 700;
  font-size: clamp(1.85rem, 2.3vw, 2.45rem);
  color: #ffffff;
  margin: 0;
  letter-spacing: 0.02em;
  line-height: 1.1;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.p3r-about-school {
  display: none !important;
  /* Dihilangkan sesuai permintaan user */
}

.p3r-about-title {
  font-family: var(--font-poppins), sans-serif;
  font-weight: 500;
  color: #94a3b8;
  font-size: 1.05rem;
  margin-top: 3px;
}

/* Divider Line Dihilangkan Sesuai Permintaan */
.p3r-about-line {
  display: none !important;
}

/* Bio Text */
.p3r-about-bio {
  display: flex;
  flex-direction: column;
  gap: 16px;
  line-height: 1.68;
}

.p3r-about-p {
  font-family: var(--font-poppins), sans-serif;
  font-size: clamp(0.96rem, 1.06vw, 1.06rem);
  color: #cbd5e1;
  margin: 0;
}

.p3r-about-p strong {
  color: #ffffff;
  font-weight: 600;
}

.p3r-about-p em {
  color: #f1f5f9;
  font-style: italic;
}

/* Inspiring Quote Box (Solid Charcoal, No Blue Lines) */
.p3r-about-quote {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: #111722;
  /* Solid dark charcoal - tanpa transparansi */
  border-left: 3px solid #334155;
  /* Soft gray border - tanpa garis biru */
  padding: 16px 22px;
  border-radius: 0 6px 6px 0;
  margin-top: 4px;
}

.p3r-quote-mark {
  font-family: var(--font-poppins), sans-serif;
  font-size: 2.0rem;
  line-height: 1;
  color: #94a3b8;
  /* Muted gray - tanpa biru */
  font-weight: 700;
  flex-shrink: 0;
}

.p3r-quote-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.p3r-quote-text {
  margin: 0;
  font-family: var(--font-poppins), sans-serif;
  font-style: italic;
  font-size: 0.95rem;
  color: #f1f5f9;
  line-height: 1.5;
}

.p3r-quote-author {
  font-family: var(--font-poppins), sans-serif;
  font-weight: 600;
  color: #94a3b8;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

/* Responsive adjustment for small screen heights */
@media (max-height: 760px) {
  .p3r-about-card {
    padding: 22px 28px;
    width: min(760px, 64vw);
    gap: 14px;
  }

  .p3r-photo-box {
    width: 92px;
    height: 92px;
  }

  .p3r-about-card-inner {
    gap: 12px;
  }

  .p3r-about-bio {
    gap: 10px;
  }

  .p3r-about-p {
    font-size: 0.88rem;
  }

  .p3r-quote-text {
    font-size: 0.84rem;
  }

  .p3r-about-scroll-list {
    max-height: 240px;
  }
}

/* ==========================================================================
   PERSONA 3 RELOAD - CONTACT SCREEN (MAIL / Phone UI Style)
   ========================================================================== */
:root {
  --mail-skew: -12.5deg;
  --mail-rot: -1.6deg;
}

/* .p3r-contact-screen inherits base layout from .p3r-slink-screen */

.p3r-contact-overlay {
  background: radial-gradient(circle at 65% 45%, rgba(2, 12, 30, 0.4) 0%, rgba(1, 6, 16, 0.88) 100%);
}

.p3r-contact-viewport {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: clamp(16px, 2.0vw, 32px);
  position: relative;
  z-index: 10;
  width: 100vw;
  height: 100vh;
  box-sizing: border-box;
}

/* Slanted Message Phone Pad Wrapper - Shifted right slightly so bottom-left point is not cut off */
.p3r-mail-phone-wrap {
  position: relative;
  width: clamp(630px, 42vw, 780px);
  height: clamp(640px, 75vh, 780px);
  margin-left: clamp(10px, 1.3vw, 24px);
  transform: skewX(var(--mail-skew)) rotate(var(--mail-rot));
  transform-origin: left bottom;
  user-select: none;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
}

/* SVG Chassis Background: Distinct White Linear Frame & Extended Black Body */
.p3r-mail-chassis-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: visible;
}

/* Phone Card Contents Area inside the White Linear Frame */
.p3r-mail-phone-card {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  padding: 24px 32px 28px 28px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

/* Header with prominent CONTACT watermark */
.p3r-mail-header-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: clamp(18px, 2.4vh, 26px);
  height: auto;
  min-height: 64px;
}

.p3r-mail-watermark {
  font-family: var(--font-rodin), sans-serif;
  font-size: clamp(4.0rem, 4.8vw, 5.6rem);
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.05em;
  color: #ffffff;
  line-height: 0.9;
  pointer-events: none;
  text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.9), 0 6px 18px rgba(0, 0, 0, 0.95);
  user-select: none;
  transform: translateY(2px);
}

/* List Container for Contact Rows (5 items: Gmail, GitHub, LinkedIn, Kaggle, Instagram) */
.p3r-mail-list-container {
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.5vh, 16px);
  position: relative;
  padding-right: 28px;
  margin-top: 2px;
}

/* Individual Mail Card Row */
.p3r-mail-row {
  display: flex;
  height: clamp(76px, 8.8vh, 88px);
  background: #111724;
  border: 1.5px solid #1f2c40;
  border-radius: 4px;
  overflow: hidden;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

/* Slanted Left Icon Block - Wide diagonal cut */
.p3r-mail-icon-block {
  width: 140px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  clip-path: polygon(0 0, 100% 0, 75% 100%, 0 100%);
  transition: transform 0.2s ease;
}

.p3r-mail-gmail {
  background: #ea4335;
  color: #ffffff;
}

.p3r-mail-github {
  background: #24292e;
  color: #ffffff;
}

.p3r-mail-tiktok {
  background: #010101;
  color: #00f2fe;
}

.p3r-mail-instagram {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: #ffffff;
}

.p3r-mail-linkedin {
  background: #0a66c2;
  color: #ffffff;
}

.p3r-mail-kaggle {
  background: #20beff;
  color: #041630;
}

.p3r-mail-whatsapp {
  background: #25d366;
  color: #ffffff;
}

.p3r-mail-list-6 {
  gap: clamp(8px, 1.1vh, 12px);
}

.p3r-mail-list-6 .p3r-mail-row {
  height: clamp(66px, 7.6vh, 84px);
}

.p3r-mail-list-6 .p3r-mail-icon-block {
  width: 120px;
}

.p3r-mail-list-6 .p3r-mail-msg-text {
  font-size: clamp(1.05rem, 1.25vw, 1.28rem);
}

.p3r-mail-list-6 .p3r-mail-sender-row {
  font-size: 1.02rem;
}

.p3r-mail-list-6 .p3r-mail-row-line {
  margin: 5px 0 4px 0;
}

/* Right Content Area */
.p3r-mail-content-block {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6px 20px 8px 14px;
  overflow: visible;
}

.p3r-mail-sender-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #8fa2bd;
  font-family: var(--font-skip), sans-serif;
  font-style: italic;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.1;
  transition: color 0.18s ease;
}

.p3r-mail-env-icon,
.p3r-mail-mini-icon {
  flex-shrink: 0;
  transition: color 0.18s ease, filter 0.18s ease;
}

.p3r-mail-row.is-gmail .p3r-mail-mini-icon {
  color: #ea4335;
}

.p3r-mail-row.is-github .p3r-mail-mini-icon {
  color: #cbd5e1;
}

.p3r-mail-row.is-linkedin .p3r-mail-mini-icon {
  color: #3b82f6;
}

.p3r-mail-row.is-kaggle .p3r-mail-mini-icon {
  color: #20beff;
}

.p3r-mail-row.is-instagram .p3r-mail-mini-icon {
  color: #e1306c;
}

.p3r-mail-row.is-whatsapp .p3r-mail-mini-icon {
  color: #25d366;
}

.p3r-mail-sender-name {
  letter-spacing: 0.02em;
}

.p3r-mail-row-line {
  height: 1px;
  background: rgba(255, 255, 255, 0.14);
  margin: 5px 0 4px 0;
  transition: background 0.18s ease;
}

.p3r-mail-msg-text {
  font-family: var(--font-skip), sans-serif;
  font-style: italic;
  font-weight: 700;
  font-size: clamp(1.15rem, 1.35vw, 1.30rem);
  color: #f1f5f9;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-bottom: 3px;
  transition: color 0.18s ease;
}

/* Hover & Active State - Solid White, Tanpa Glowing Biru */
.p3r-mail-row:hover,
.p3r-mail-row.active {
  background: #ffffff !important;
  border-color: #ffffff !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5) !important;
  /* Glowing Biru Dihilangkan Total */
  transform: translateX(10px);
}

.p3r-mail-row:hover .p3r-mail-sender-row,
.p3r-mail-row.active .p3r-mail-sender-row {
  color: #0c182b !important;
  /* Teks Hitam Pekat Persona, Bukan Biru Glowing */
}

.p3r-mail-row.is-gmail:hover .p3r-mail-mini-icon,
.p3r-mail-row.is-gmail.active .p3r-mail-mini-icon {
  color: #ea4335 !important;
  filter: drop-shadow(0 0 3px rgba(234, 67, 53, 0.35));
}

.p3r-mail-row.is-github:hover .p3r-mail-mini-icon,
.p3r-mail-row.is-github.active .p3r-mail-mini-icon {
  color: #24292e !important;
  filter: drop-shadow(0 0 3px rgba(36, 41, 46, 0.35));
}

.p3r-mail-row.is-linkedin:hover .p3r-mail-mini-icon,
.p3r-mail-row.is-linkedin.active .p3r-mail-mini-icon {
  color: #0a66c2 !important;
  filter: drop-shadow(0 0 3px rgba(10, 102, 194, 0.35));
}

.p3r-mail-row.is-kaggle:hover .p3r-mail-mini-icon,
.p3r-mail-row.is-kaggle.active .p3r-mail-mini-icon {
  color: #20beff !important;
  filter: drop-shadow(0 0 3px rgba(32, 190, 255, 0.45));
}

.p3r-mail-row.is-instagram:hover .p3r-mail-mini-icon,
.p3r-mail-row.is-instagram.active .p3r-mail-mini-icon {
  color: #e1306c !important;
  filter: drop-shadow(0 0 3px rgba(225, 48, 108, 0.4));
}

.p3r-mail-row.is-whatsapp:hover .p3r-mail-mini-icon,
.p3r-mail-row.is-whatsapp.active .p3r-mail-mini-icon {
  color: #25d366 !important;
  filter: drop-shadow(0 0 3px rgba(37, 211, 102, 0.4));
}

.p3r-mail-row:hover .p3r-mail-row-line,
.p3r-mail-row.active .p3r-mail-row-line {
  background: rgba(0, 0, 0, 0.18) !important;
  /* Garis Pemisah Abu Gelap Bersih */
}

.p3r-mail-row:hover .p3r-mail-msg-text,
.p3r-mail-row.active .p3r-mail-msg-text {
  color: #061122 !important;
  font-weight: 900;
}

/* Vertical Scrollbar Dihilangkan Sesuai Permintaan (Garis Putih Hitam di Samping List) */
.p3r-mail-scrollbar-track {
  display: none !important;
}

.p3r-mail-scrollbar-thumb {
  display: none !important;
}

/* Empty Slots Styling (Kosong) */
.p3r-mail-row-empty {
  opacity: 0.28;
  cursor: default;
  pointer-events: none;
  background: rgba(12, 17, 26, 0.5) !important;
  border: 1px dashed rgba(255, 255, 255, 0.12) !important;
  box-shadow: none !important;
  transform: none !important;
}

.p3r-mail-empty-icon {
  background: rgba(255, 255, 255, 0.03) !important;
}

.p3r-mail-empty-text {
  color: #485c78 !important;
  font-style: italic !important;
  font-weight: 500 !important;
}

/* Bottom Right HUD: ESC Close Button matched to other subpages */
.p3r-contact-bottom-hud {
  position: fixed;
  bottom: 2rem;
  right: 2.5rem;
  z-index: 30;
  pointer-events: auto;
}

/* Hide phone pad while circle transition is still expanding */
.p3r-contact-screen:not(.active) .p3r-mail-phone-wrap,
.p3r-contact-screen.circle-transitioning .p3r-mail-phone-wrap {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Persona 3 Reload Slide + Rotate Right (Berputar ke Kanan) Entrance Animation
   Dipercepat sedikit (0.78s) dan dioptimalkan hardware acceleration translate3d tanpa patah-patah */
@keyframes p3rMailPhoneSlideIn {
  0% {
    opacity: 0;
    transform: translate3d(-300px, 0, 0) skewX(var(--mail-skew)) rotate(-15deg);
  }

  35% {
    opacity: 1;
  }

  74% {
    transform: translate3d(12px, 0, 0) skewX(var(--mail-skew)) rotate(0.6deg);
  }

  88% {
    transform: translate3d(-3px, 0, 0) skewX(var(--mail-skew)) rotate(-2.2deg);
  }

  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) skewX(var(--mail-skew)) rotate(var(--mail-rot));
  }
}

.p3r-contact-screen.active .p3r-mail-phone-wrap {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  animation: p3rMailPhoneSlideIn 0.78s cubic-bezier(0.16, 0.95, 0.26, 1) forwards;
  will-change: transform, opacity;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* ==========================================================================
   GLOBAL SIDE VIGNETTE (Hitam Pudar di Samping Samping Website di Setiap Page)
   ========================================================================== */
.p3r-global-vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 22;
  background:
    linear-gradient(to right, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.25) 3.5%, transparent 12%, transparent 88%, rgba(0, 0, 0, 0.25) 96.5%, rgba(0, 0, 0, 0.6) 100%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.35) 0%, transparent 5%, transparent 95%, rgba(0, 0, 0, 0.45) 100%);
}

/* ==========================================================================
   PROJECT PREVIEW PANEL (Right Side of S.Link Project Screen)
   ========================================================================== */
#project-page .slink-viewport {
  gap: 2.5vw;
  align-items: flex-start;
  padding-right: 4.5vw;
  box-sizing: border-box;
}

#project-page .slink-left-column {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 54vw;
}

#project-page .slink-card {
  width: clamp(440px, 44vw, 680px);
  max-width: calc(100% - 20px);
}

#project-page .slink-card.active {
  width: clamp(470px, 47.5vw, 730px) !important;
  max-width: 100% !important;
}

@keyframes p3rPreviewCardIn {
  0% {
    opacity: 0;
    transform: translate3d(28px, 0, 0);
  }

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

.slink-preview-panel {
  position: relative;
  z-index: 10;
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  align-self: center;
  padding: 2vh 0 5vh;
  width: clamp(340px, 35vw, 490px);
  flex-shrink: 0;
}

.slink-preview-card {
  width: 100%;
  background: rgba(4, 18, 42, 0.94);
  border: 2px solid rgba(22, 207, 251, 0.65);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.85), 6px 6px 0 rgba(22, 207, 251, 0.35);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: p3rPreviewCardIn 0.48s cubic-bezier(0.16, 1, 0.3, 1) 0.14s both;
}

.slink-preview-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020914;
  overflow: hidden;
  border-bottom: 2px solid #16cffb;
}

.slink-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slink-preview-badge {
  position: absolute;
  left: 16px;
  bottom: 12px;
  background: #041630;
  color: #7de6fd;
  border: 1.5px solid #16cffb;
  font-family: var(--font-new-rodin-ub), sans-serif;
  font-style: italic;
  font-weight: 900;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  transform: skewX(-10deg);
}

.slink-preview-body {
  padding: 20px 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  font-family: var(--font-poppins), sans-serif;
}

.slink-preview-title {
  font-family: var(--font-skip), sans-serif;
  font-style: italic;
  font-weight: 800;
  font-size: clamp(1.15rem, 1.35vw, 1.42rem);
  color: #ffffff;
  line-height: 1.25;
}

.slink-preview-desc {
  font-family: var(--font-poppins), sans-serif;
  font-size: 0.88rem;
  line-height: 1.58;
  color: #cbd5e1;
}

.slink-preview-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 2px;
  padding-left: 2px;
}

.slink-tool-chip {
  font-family: var(--font-new-rodin), sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  color: #7de6fd;
  background: rgba(22, 207, 251, 0.12);
  border: 1px solid rgba(22, 207, 251, 0.4);
  padding: 3px 10px;
  transform: skewX(-8deg);
}

.slink-preview-actions {
  margin-top: 8px;
  display: flex;
  justify-content: flex-end;
  padding-right: 4px;
}

.slink-preview-open-btn {
  background: linear-gradient(90deg, #00549c 0%, #16cffb 100%);
  color: #020914;
  border: 2px solid #ffffff;
  font-family: var(--font-new-rodin-ub), sans-serif;
  font-style: italic;
  font-weight: 900;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  padding: 8px 18px;
  transform: skewX(-10deg);
  cursor: pointer;
  transition: transform 0.16s ease, filter 0.16s ease;
}

.slink-preview-open-btn:hover {
  transform: skewX(-10deg) translateY(-2px);
  filter: brightness(1.12);
}

@media (max-width: 1220px) {
  .slink-preview-panel {
    width: clamp(290px, 34vw, 390px);
  }
}

/* ==========================================================================
   CERTIFICATE SCREEN GRID & MODAL PREVIEW
   ========================================================================== */
@keyframes p3rCertCardIn {
  0% {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
  }

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

.p3r-cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  padding: 4px 6px 18px;
}

.p3r-cert-card {
  background: rgba(2, 11, 24, 0.9);
  border: 1.5px solid rgba(22, 207, 251, 0.38);
  border-left: 4px solid #16cffb;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, box-shadow 0.2s ease;
  animation: p3rCertCardIn 0.42s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.p3r-cert-card:hover {
  transform: translateY(-4px);
  border-color: #ffffff;
  border-left-color: #16cffb;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.75), 0 0 18px rgba(22, 207, 251, 0.35);
}

.p3r-cert-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 14px;
  background: #041630;
  border-bottom: 1.5px solid rgba(22, 207, 251, 0.35);
}

.p3r-cert-index {
  font-family: var(--font-new-rodin-ub), sans-serif;
  font-style: italic;
  font-weight: 900;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: #7de6fd;
}

.p3r-cert-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #020b18;
  overflow: hidden;
  cursor: pointer;
  border-bottom: 1.5px solid rgba(22, 207, 251, 0.35);
}

.p3r-cert-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.28s ease;
}

.p3r-cert-card:hover .p3r-cert-thumb {
  transform: scale(1.03);
}

.p3r-cert-badge {
  position: static;
  background: rgba(2, 9, 20, 0.95);
  color: #16cffb;
  border: 1px solid #16cffb;
  font-family: var(--font-new-rodin-ub), sans-serif;
  font-style: italic;
  font-weight: 900;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  padding: 2px 9px;
  transform: skewX(-10deg);
}

.p3r-cert-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  font-family: var(--font-poppins), sans-serif;
}

.p3r-cert-title {
  font-family: var(--font-skip), sans-serif;
  font-style: italic;
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.24;
  color: #ffffff;
  margin: 0;
}

.p3r-cert-issuer {
  font-size: 0.82rem;
  color: #94a3b8;
  margin: 0;
}

.p3r-cert-issuer span {
  color: #7de6fd;
  font-weight: 600;
}

.p3r-cert-actions {
  margin-top: auto;
  padding: 8px 2px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.p3r-cert-preview-btn,
.p3r-cert-link-btn,
.p3r-cert-credential-btn {
  font-family: var(--font-new-rodin-ub), sans-serif;
  font-style: italic;
  font-weight: 900;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  padding: 6px 14px;
  transform: skewX(-8deg);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.16s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.p3r-cert-preview-btn {
  background: transparent;
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
}

.p3r-cert-preview-btn:hover {
  background: #ffffff;
  color: #020914;
}

.p3r-cert-link-btn,
.p3r-cert-credential-btn {
  background: #16cffb;
  color: #020914;
  border: 1.5px solid #ffffff;
}

.p3r-cert-link-btn:hover,
.p3r-cert-credential-btn:hover {
  background: #ffffff;
  color: #020914;
}

.p3r-modal-cert-preview {
  display: flex;
  flex-direction: column;
  gap: 16px;
  grid-column: 1 / -1;
}

.p3r-modal-cert-img-wrap {
  width: 100%;
  max-height: 50vh;
  overflow: hidden;
  border: 2px solid #16cffb;
  background: #020914;
  display: flex;
  align-items: center;
  justify-content: center;
}

.p3r-modal-cert-img {
  width: 100%;
  max-height: 50vh;
  object-fit: contain;
  display: block;
}

.p3r-modal-cert-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.p3r-modal-cert-desc {
  margin: 0;
  font-family: var(--font-poppins), sans-serif;
  font-size: 0.96rem;
  color: #e2e8f0;
}

/* ==========================================================================
   ABOUT SCREEN SUB-TABS, EXPERIENCE, EDUCATION & ACTIONS
   ========================================================================== */
.p3r-about-location {
  font-family: var(--font-poppins), sans-serif;
  font-size: 0.84rem;
  color: #7de6fd;
  margin-top: 2px;
}

.p3r-about-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 2px 4px;
}

.p3r-about-tab {
  background: #111724;
  border: 1.5px solid #26334a;
  color: #94a3b8;
  padding: 7px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  transform: skewX(-10deg);
  cursor: pointer;
  transition: all 0.16s ease;
}

.p3r-about-tab:hover {
  border-color: #16cffb;
  color: #ffffff;
}

.p3r-about-tab.active {
  background: #16cffb;
  border-color: #ffffff;
  color: #020914;
}

.p3r-about-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.p3r-about-panel[hidden] {
  display: none !important;
}

.p3r-about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 2px 4px;
}

.p3r-about-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 20px;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  color: #ffffff;
  background: #111724;
  border: 1.5px solid #334155;
  transform: skewX(-8deg);
  transition: all 0.16s ease;
}

.p3r-about-btn:hover {
  border-color: #16cffb;
  color: #7de6fd;
}

.p3r-about-btn.primary {
  background: #16cffb;
  border-color: #ffffff;
  color: #020914;
}

.p3r-about-btn.primary:hover {
  background: #ffffff;
  color: #020914;
}

.p3r-about-scroll-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: min(350px, 39vh);
  overflow-y: auto;
  padding: 4px 12px 4px 2px;
  scrollbar-width: thin;
  scrollbar-color: #16cffb #0d121c;
}

.p3r-about-edu-tools-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 18px;
  align-items: start;
}

.p3r-about-section-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.p3r-tool-detail-item {
  background: #111722;
  border-left: 3px solid #7de6fd;
  padding: 10px 14px;
}

.p3r-tool-detail-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 3px;
}

.p3r-tool-detail-title span {
  display: inline-block;
  margin-left: 6px;
  font-size: 0.76rem;
  font-weight: 600;
  color: #16cffb;
}

@media (max-width: 1180px) {
  .p3r-about-edu-tools-grid {
    grid-template-columns: 1fr;
  }
}

.p3r-about-exp-item {
  background: #111722;
  border-left: 3px solid #16cffb;
  padding: 12px 16px;
}

.p3r-exp-meta {
  font-size: 0.76rem;
  color: #7de6fd;
  font-weight: 600;
  margin-bottom: 2px;
}

.p3r-exp-org {
  font-size: 0.94rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.p3r-exp-org span {
  color: #94a3b8;
  font-weight: 500;
}

.p3r-exp-desc {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.48;
  color: #cbd5e1;
}

.p3r-about-tools-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.p3r-tools-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #7de6fd;
}

.p3r-tools-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.p3r-tools-chips span {
  font-size: 0.78rem;
  font-weight: 600;
  color: #e2e8f0;
  background: #111724;
  border: 1px solid #2b384e;
  padding: 4px 10px;
}

/* ==========================================================================
   MOBILE, TABLET, IPAD & TOUCH OPTIMIZATIONS (Smooth & High Performance)
   ========================================================================== */
html,
body {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* Tablet & iPad (769px - 1024px) */
@media (max-width: 1024px) {
  .menu-left-dock {
    left: clamp(1.8rem, 3.5vw, 2.8rem);
    top: clamp(2.8rem, 6vh, 4.2rem);
    max-width: min(480px, 52vw);
    gap: 0.85rem;
  }

  .portfolio-modal .modal-card {
    max-width: 92vw;
    max-height: 86vh;
  }

  .p3r-cert-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  }
}

/* Mobile Devices (iPhone, Android, small tablets < 768px) */
@media (max-width: 768px) {
  .p3r-main {
    height: 100dvh;
    height: 100vh;
  }

  .background-video {
    object-position: 68% center;
  }

  /* Atmospheric gradient overlay on mobile for crystal clear legibility */
  .p3r-global-vignette {
    background: radial-gradient(circle at 30% 40%, rgba(0, 14, 38, 0.55) 0%, rgba(0, 10, 26, 0.85) 100%);
  }

  /* Mobile Left Dock: Styled to mirror PC spacing, scale, and clean rhythm */
  .menu-left-dock {
    top: clamp(2.4rem, 6vh, 4.0rem);
    left: clamp(1.2rem, 4vw, 2.0rem);
    right: auto;
    max-width: min(390px, 90vw);
    gap: clamp(0.75rem, 1.8vh, 1.15rem);
  }

  .profile-top-badge {
    font-size: 0.75rem;
    padding: 2.5px 9px;
    margin-bottom: 0.28rem;
  }

  .profile-name-stacked {
    gap: 0.16rem;
  }

  .profile-name-stacked .p3r-cutout-char {
    font-size: clamp(1.75rem, 5.6vw, 2.25rem);
    padding: 0.1em 0.18em 0.12em;
  }

  .profile-bio-card {
    margin-top: 0.35rem;
    padding: 8px 12px;
    max-width: 100%;
  }

  .profile-bio-card p {
    font-size: clamp(0.68rem, 2.6vw, 0.78rem);
    line-height: 1.38;
  }

  .options-list {
    gap: clamp(0.42rem, 1vh, 0.65rem);
  }

  .option-plain-text {
    font-size: clamp(1.85rem, 6.2vw, 2.45rem);
    line-height: 1.05;
  }

  .option-item.selected .p3r-cutout-char {
    font-size: clamp(1.6rem, 5.2vw, 2.1rem);
    padding: 0.1em 0.18em 0.12em;
  }

  .banner-jagged-inner {
    padding: 0.26rem 1.15rem 0.26rem 0.85rem;
    gap: 0.5rem;
  }

  /* Bottom HUD on Mobile: Show ONLY Music & SFX; Hide keyboard instructions */
  .hud-controls {
    bottom: 0.85rem;
    right: 0.85rem;
  }

  .hud-controls .buttons-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transform: none;
  }

  .hud-select-item,
  #hud-select-btn,
  .hud-confirm-item,
  #hud-confirm-btn,
  .slink-bottom-hud #slink-confirm-btn,
  .slink-bottom-hud #skill-confirm-btn,
  .slink-bottom-hud #about-confirm-btn,
  .slink-bottom-hud #contact-confirm-btn,
  #skill-tab-prev-btn,
  #skill-tab-next-btn {
    display: none !important;
  }

  /* Subpage Bottom Right HUD: Hidden on mobile per user request */
  .slink-bottom-hud,
  .p3r-contact-bottom-hud {
    display: none !important;
  }

  .slink-hud-btn {
    background: rgba(3, 14, 38, 0.94);
    border: 2px solid #16cffb;
    border-radius: 9999px;
    padding: 6px 14px 6px 9px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.9), 0 0 14px rgba(22, 207, 251, 0.65);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
  }

  .slink-hud-btn .control-key {
    background: #16cffb;
    color: #031433;
    font-weight: 900;
    font-size: 0.76rem;
    padding: 2px 7px;
    border-radius: 9999px;
  }

  .slink-hud-btn .control-text {
    color: #ffffff;
    font-size: 0.92rem;
    font-style: italic;
    font-weight: 800;
    text-shadow: 0 0 8px rgba(22, 207, 251, 0.8);
  }

  /* Modals Header & Body Mobile Adaptation (Clean, Organized, Easy to Read) */
  .portfolio-modal .modal-card {
    width: 95vw;
    max-width: 95vw;
    max-height: 92vh;
    border-radius: 0.6rem;
    overflow: hidden;
  }

  .modal-header {
    padding: 0.85rem 1.0rem;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    background: #ffffff;
    border-bottom: 2px solid #031433;
  }

  .modal-title-wrap {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

  .modal-category-badge {
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 3px;
    letter-spacing: 0.05em;
  }

  .modal-title {
    font-size: clamp(1.1rem, 4.2vw, 1.4rem);
    font-family: var(--font-poppins), sans-serif;
    font-weight: 800;
    font-style: italic;
    color: #031433;
    line-height: 1.25;
    letter-spacing: -0.02em;
    word-break: break-word;
    margin: 0;
  }

  .modal-close-btn {
    flex-shrink: 0;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 9999px;
    margin-top: 2px;
  }

  .modal-body {
    padding: 12px 14px;
    -webkit-overflow-scrolling: touch;
  }

  .slink-main-layout {
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .slink-cards-column {
    width: 100%;
    max-height: 38vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .p3r-cert-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .p3r-about-card {
    margin-left: 2.5vw;
    width: 95vw;
    padding: 16px 14px;
    max-height: 82vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .p3r-about-top-row {
    gap: 12px;
  }

  .p3r-photo-box {
    width: 75px;
    height: 75px;
  }

  .p3r-about-name {
    font-size: clamp(1.35rem, 4.2vw, 1.65rem);
  }

  .p3r-about-tabs {
    flex-wrap: wrap;
    gap: 4px;
  }

  .p3r-about-tab {
    padding: 5px 8px;
    font-size: 0.7rem;
  }

  .p3r-contact-card {
    width: 95vw;
    margin-left: 2.5vw;
    padding: 18px 14px;
  }

  .p3r-mail-row {
    padding: 10px 12px;
  }

  /* Subpage Cutout Headlines on Mobile */
  .p3r-banner-title .p3r-cutout-char {
    font-size: clamp(1.5rem, 5.8vw, 2.1rem);
    padding: 0.08em 0.16em 0.1em;
  }

  .p3r-mail-watermark .p3r-cutout-char {
    font-size: clamp(1.5rem, 5.8vw, 2.1rem);
    padding: 0.08em 0.16em 0.1em;
  }
}

/* ==========================================================================
   Persona 3 Reload - Interactive Floating Music Player & Playlist (Image 5)
   ========================================================================== */
/* Collapsed Floating Launcher Icon (Draggable floating assistive widget) */
.p3r-music-launcher {
  position: fixed;
  top: 1.5rem;
  right: 2.2rem;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(3, 14, 38, 0.92);
  border: 2px solid #16cffb;
  border-radius: 9999px;
  padding: 6px 14px 6px 9px;
  cursor: grab;
  outline: none;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.85), 0 0 14px rgba(22, 207, 251, 0.5);
  backdrop-filter: blur(8px);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: none;
}

.p3r-music-launcher:hover {
  transform: scale(1.06);
  border-color: #ffffff;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.95), 0 0 22px rgba(22, 207, 251, 0.9);
}

.p3r-music-launcher.is-dragging {
  cursor: grabbing !important;
  transform: scale(1.12) !important;
  border-color: #ffffff !important;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.98), 0 0 32px rgba(22, 207, 251, 1) !important;
  transition: none !important;
}

.p3r-music-launcher:active:not(.is-dragging) {
  transform: scale(0.96);
}

.launcher-pulse-ring {
  position: absolute;
  inset: -4px;
  border-radius: 9999px;
  border: 1.5px solid rgba(22, 207, 251, 0.4);
  animation: p3LauncherPulse 2.4s ease-out infinite;
  pointer-events: none;
}

@keyframes p3LauncherPulse {
  0% {
    transform: scale(0.96);
    opacity: 0.8;
  }

  50% {
    transform: scale(1.08);
    opacity: 0.2;
  }

  100% {
    transform: scale(1.15);
    opacity: 0;
  }
}

.launcher-disc-core {
  position: relative;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #16cffb;
  color: #031433;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(22, 207, 251, 0.8);
  flex-shrink: 0;
}

.launcher-note-icon {
  width: 16px;
  height: 16px;
  transition: opacity 0.2s ease;
}

.launcher-eq-bars {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.p3r-music-launcher.is-playing .launcher-note-icon {
  opacity: 0;
}

.p3r-music-launcher.is-playing .launcher-eq-bars {
  opacity: 1;
}

.eq-bar {
  width: 3px;
  height: 12px;
  background: #031433;
  border-radius: 1px;
  transform-origin: bottom;
  animation: eqBounce 0.7s ease-in-out infinite alternate;
}

.eq-bar.bar-1 {
  animation-delay: 0.1s;
}

.eq-bar.bar-2 {
  animation-delay: 0.35s;
  height: 16px;
}

.eq-bar.bar-3 {
  animation-delay: 0.2s;
}

@keyframes eqBounce {
  0% {
    transform: scaleY(0.25);
  }

  100% {
    transform: scaleY(1);
  }
}

.launcher-tag-pill {
  display: flex;
  align-items: center;
  gap: 5px;
}

.launcher-p3-badge {
  background: #000000;
  color: #16cffb;
  font-family: 'Anton', 'Bebas Neue', sans-serif;
  font-size: 0.72rem;
  font-weight: 900;
  padding: 1px 5px;
  border-radius: 3px;
  border: 1px solid rgba(22, 207, 251, 0.6);
  letter-spacing: 0.05em;
}

.launcher-status-label {
  font-family: var(--font-new-rodin), 'Anton', sans-serif;
  font-size: 0.85rem;
  font-style: italic;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.02em;
  text-shadow: 0 0 6px rgba(22, 207, 251, 0.7);
}

/* Expanded Persona 3 Reload Floating Player Window */
.p3r-music-modal {
  position: fixed;
  inset: 0;
  z-index: 9990;
  display: block;
  pointer-events: auto;
}

.music-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(1, 6, 18, 0.45);
  backdrop-filter: blur(2px);
  cursor: pointer;
}

.music-floating-dialog {
  position: fixed;
  z-index: 9995;
  width: clamp(340px, 32vw, 420px);
  background: transparent;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  user-select: none;
  animation: p3MusicWindowEntrance 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes p3MusicWindowEntrance {
  0% {
    opacity: 0;
    transform: translateY(-24px) scale(0.95);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Top Window Bar: Audio ON/OFF + Close */
.music-topbar-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
}

.music-topbar-btn {
  background: #040d22;
  border: 1.5px solid #16cffb;
  border-radius: 4px;
  color: #ffffff;
  font-family: 'Anton', 'Bebas Neue', sans-serif;
  font-size: 0.78rem;
  padding: 4px 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.75);
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}

.music-topbar-btn:hover {
  background: #16cffb;
  color: #031433;
  transform: translateY(-1px);
}

.music-topbar-btn.window-close-btn {
  font-size: 0.95rem;
  padding: 4px 10px;
  font-weight: 900;
}

.music-topbar-btn.is-muted {
  border-color: #ff3344;
  color: #ff9999;
}

/* Slanted Playlist Carousel Stack (Persona 3 Slanted Geometry) */
.music-deck-stack {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  position: relative;
}

.music-deck-card {
  outline: none;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease, filter 0.2s ease;
}

.deck-card-slanted {
  position: relative;
  background: #030a1c;
  border: 1.5px solid #16cffb;
  padding: 0.45rem 1.1rem;
  transform: skewX(-12deg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.85);
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.music-deck-card:hover .deck-card-slanted {
  background: #071738;
  border-color: #ffffff;
  transform: skewX(-12deg) translateX(4px);
}

/* Slot Prev & Next (Subtle Dimmed Slanted Cards) */
.music-deck-card.card-prev,
.music-deck-card.card-next {
  opacity: 0.82;
  transform: scale(0.96);
}

.music-deck-card.card-prev:hover,
.music-deck-card.card-next:hover {
  opacity: 1;
  transform: scale(0.98);
}

.deck-card-sym {
  font-family: 'Anton', 'Bebas Neue', sans-serif;
  color: #16cffb;
  font-size: 1.05rem;
  margin-right: 0.65rem;
}

.deck-card-details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  transform: skewX(12deg);
}

.deck-card-title {
  font-family: 'Anton', 'Bebas Neue', var(--font-rodin), sans-serif;
  font-size: 1.05rem;
  color: #ffffff;
  letter-spacing: 0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.deck-card-artist {
  font-family: var(--font-poppins), sans-serif;
  font-size: 0.68rem;
  color: rgba(22, 207, 251, 0.85);
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.deck-chevron-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 4px 8px;
  transform: skewX(12deg);
  transition: color 0.15s ease, transform 0.15s ease;
}

.deck-chevron-btn:hover {
  color: #16cffb;
  transform: skewX(12deg) scale(1.2);
}

.deck-card-next-label {
  font-family: 'Anton', 'Bebas Neue', sans-serif;
  font-size: 0.72rem;
  color: #16cffb;
  border: 1px solid #16cffb;
  padding: 1px 6px;
  border-radius: 2px;
  transform: skewX(12deg);
}

/* Active Hero Card (Center Spotlight Card) */
.music-deck-card.card-active {
  z-index: 5;
  transform: scale(1.02);
}

.deck-hero-slanted {
  background: #040e24;
  border: 2.5px solid #ffffff;
  box-shadow: 0 0 24px rgba(22, 207, 251, 0.85), 0 14px 34px rgba(0, 0, 0, 0.95);
  padding: 0.85rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.deck-hero-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}

.deck-disc-badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #000000;
  border: 2px solid #16cffb;
  box-shadow: 0 0 10px rgba(22, 207, 251, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transform: skewX(12deg);
}

.deck-disc-p3 {
  font-family: 'Anton', 'Bebas Neue', sans-serif;
  font-size: 0.82rem;
  font-weight: 900;
  color: #ffffff;
}

.deck-hero-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  transform: skewX(12deg);
}

.deck-hero-title {
  font-family: 'Anton', 'Bebas Neue', var(--font-rodin), sans-serif;
  font-size: 1.35rem;
  color: #ffffff;
  letter-spacing: 0.04em;
  text-shadow: 0 0 10px rgba(22, 207, 251, 0.9), 0 2px 4px rgba(0, 0, 0, 0.9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.deck-hero-artist {
  font-family: var(--font-poppins), sans-serif;
  font-size: 0.74rem;
  color: #16cffb;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.deck-hero-playbtn {
  background: #ffffff;
  color: #031433;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.9);
  flex-shrink: 0;
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.deck-hero-playbtn:hover {
  background: #16cffb;
  transform: scale(1.1);
  box-shadow: 0 0 16px rgba(22, 207, 251, 1);
}

/* Timeline / Scrubber */
.deck-timeline-container {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  transform: skewX(12deg);
}

.deck-time-label {
  font-family: 'Anton', 'Bebas Neue', sans-serif;
  font-size: 0.78rem;
  color: #ffffff;
  letter-spacing: 0.04em;
  min-width: 30px;
}

.deck-time-track {
  flex: 1;
  height: 6px;
  background: #02091a;
  border-radius: 9999px;
  border: 1px solid rgba(22, 207, 251, 0.4);
  position: relative;
  cursor: pointer;
  overflow: visible;
}

.deck-time-fill {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  background: linear-gradient(90deg, #0088cc, #16cffb);
  border-radius: 9999px;
  pointer-events: none;
}

.deck-time-thumb {
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #16cffb;
  box-shadow: 0 0 8px rgba(22, 207, 251, 1);
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: transform 0.1s ease;
}

.deck-time-track:hover .deck-time-thumb {
  transform: translate(-50%, -50%) scale(1.3);
}

/* Playback Controls Row: Prev Track, Rewind 10s, Pause/Play, Skip 10s, Next Track */
.deck-center-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
  transform: skewX(12deg);
}

.deck-ctrl-track-btn {
  background: rgba(2, 9, 26, 0.95);
  color: #16cffb;
  border: 1.5px solid rgba(22, 207, 251, 0.85);
  border-radius: 9999px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
  user-select: none;
  padding: 0;
  flex-shrink: 0;
}

.deck-ctrl-track-btn svg {
  width: 15px;
  height: 15px;
}

.deck-ctrl-track-btn:hover {
  background: #16cffb;
  color: #02091a;
  border-color: #ffffff;
  box-shadow: 0 0 14px rgba(22, 207, 251, 0.95);
  transform: scale(1.1);
}

.deck-ctrl-track-btn:active {
  transform: scale(0.95);
}

.deck-seek-btn {
  background: rgba(2, 9, 26, 0.9);
  color: #16cffb;
  border: 1.5px solid rgba(22, 207, 251, 0.65);
  border-radius: 9999px;
  padding: 4px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-family: 'Anton', 'Bebas Neue', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
  user-select: none;
}

.deck-seek-btn:hover {
  background: #16cffb;
  color: #02091a;
  border-color: #ffffff;
  box-shadow: 0 0 14px rgba(22, 207, 251, 0.95);
  transform: scale(1.08);
}

.deck-seek-btn:active {
  transform: scale(0.95);
}

.deck-seek-arrow {
  font-size: 0.95rem;
  line-height: 1;
}

.deck-seek-sec {
  font-weight: 700;
  line-height: 1;
}

.deck-center-playbtn {
  width: 38px;
  height: 38px;
  font-size: 1.0rem;
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.95), 0 0 20px rgba(22, 207, 251, 0.85);
  flex-shrink: 0;
}

/* Hide separate previous/next track cards and bottom nav */
.card-prev,
.card-next,
.music-bottom-nav {
  display: none !important;
}

.music-nav-pill {
  font-family: 'Anton', 'Bebas Neue', var(--font-rodin), sans-serif;
  font-size: 0.88rem;
  font-weight: 900;
  font-style: italic;
  padding: 4px 14px;
  cursor: pointer;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.7);
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.12s ease;
}

.music-nav-pill:hover {
  background: #16cffb;
  border-color: #16cffb;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(22, 207, 251, 0.7);
}

/* Floating Player Mobile Adaptation */
@media (max-width: 768px) {
  .p3r-music-launcher {
    top: clamp(10px, 1.8vh, 16px) !important;
    right: clamp(12px, 2.5vw, 20px) !important;
    z-index: 9999 !important;
    padding: 5px 10px 5px 8px;
  }

  .music-floating-dialog {
    margin: auto;
    width: 92vw;
    max-width: 380px;
  }
}

/* ==========================================================================
   PERSONA 3 RELOAD - MOBILE PORTRAIT BLOCKER & ORIENTATION GUIDE
   ========================================================================== */

/* Default: Hidden on Desktop and all landscape viewports */
.p3r-rotate-overlay {
  display: none;
}

/* Portrait Blocker Activation for Mobile & Handheld Devices */
@media screen and (orientation: portrait) and (max-width: 1024px),
screen and (max-aspect-ratio: 1/1) and (max-width: 1024px) {
  .p3r-rotate-overlay {
    display: flex !important;
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    z-index: 9999999;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 50% 38%, #071f48 0%, #030d22 55%, #010610 100%);
    box-sizing: border-box;
    padding: 1.5rem 1.25rem;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
  }

  body.portrait-locked {
    overflow: hidden !important;
  }
}

.rotate-overlay-backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.rotate-grid-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(22, 207, 251, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 207, 251, 0.07) 1px, transparent 1px);
  background-size: 24px 24px;
}

.rotate-glow-orb {
  position: absolute;
  top: 35%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(480px, 90vw);
  height: min(480px, 90vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(22, 207, 251, 0.22) 0%, rgba(22, 207, 251, 0) 70%);
  filter: blur(28px);
}

.rotate-ambient-lines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg,
      rgba(0, 0, 0, 0.2) 0px,
      rgba(0, 0, 0, 0.2) 2px,
      transparent 2px,
      transparent 4px);
  opacity: 0.6;
}

.rotate-overlay-card {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 440px;
  width: 90vw;
  background: rgba(4, 15, 38, 0.92);
  border: 2px solid rgba(22, 207, 251, 0.55);
  border-radius: 20px;
  padding: 1.8rem 1.4rem;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.95), 0 0 32px rgba(22, 207, 251, 0.35);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.rotate-system-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #020b18;
  border: 1.5px solid #16cffb;
  border-radius: 9999px;
  padding: 3px 12px;
  box-shadow: 0 0 14px rgba(22, 207, 251, 0.5);
  margin-bottom: 0.6rem;
}

.rotate-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #16cffb;
  box-shadow: 0 0 8px #16cffb;
  animation: p3rDotBlink 1.4s ease-in-out infinite alternate;
}

.rotate-badge-text {
  font-family: var(--font-poppins), sans-serif;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #16cffb;
}

/* Rotating Phone Animation Stage */
.rotate-anim-stage {
  position: relative;
  width: 170px;
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0.4rem auto 1.0rem;
}

.rotate-stage-halo {
  position: absolute;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(22, 207, 251, 0.35) 0%, rgba(22, 207, 251, 0) 70%);
  animation: p3rHaloPulse 3.4s ease-in-out infinite;
}

.rotate-orbit-svg {
  position: absolute;
  width: 160px;
  height: 160px;
  animation: p3rOrbitPulse 3.4s ease-in-out infinite;
  pointer-events: none;
}

.rotate-device-phone {
  position: relative;
  width: 68px;
  height: 120px;
  background: #04122d;
  border: 2.5px solid #16cffb;
  border-radius: 14px;
  box-shadow: 0 0 20px rgba(22, 207, 251, 0.5), inset 0 0 10px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 6px 4px;
  box-sizing: border-box;
  animation: p3rPhoneRotateLoop 3.4s cubic-bezier(0.68, -0.2, 0.27, 1.25) infinite;
  transform-origin: center center;
  z-index: 2;
}

.phone-speaker-earpiece {
  width: 18px;
  height: 3px;
  background: #16cffb;
  border-radius: 3px;
  opacity: 0.8;
}

.phone-screen-display {
  position: relative;
  width: 100%;
  flex: 1;
  margin: 4px 0;
  background: linear-gradient(135deg, #071f48 0%, #030d22 100%);
  border: 1px solid rgba(22, 207, 251, 0.35);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.phone-screen-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(22, 207, 251, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 207, 251, 0.08) 1px, transparent 1px);
  background-size: 8px 8px;
  pointer-events: none;
}

.phone-p3-badge {
  font-family: var(--font-impact), Impact, sans-serif;
  font-size: 0.75rem;
  font-weight: 900;
  color: #16cffb;
  letter-spacing: 0.08em;
  text-shadow: 0 0 6px rgba(22, 207, 251, 0.8);
}

.phone-aspect-pill {
  font-family: var(--font-poppins), sans-serif;
  font-size: 0.55rem;
  font-weight: 700;
  padding: 1px 4px;
  background: rgba(22, 207, 251, 0.2);
  color: #ffffff;
  border-radius: 3px;
}

.phone-landscape-glow {
  position: absolute;
  inset: 0;
  background: rgba(22, 207, 251, 0.95);
  color: #031433;
  font-family: var(--font-impact), Impact, sans-serif;
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: p3rScreenGlowPulse 3.4s ease-in-out infinite;
}

.phone-home-dash {
  width: 24px;
  height: 2.5px;
  background: #ffffff;
  border-radius: 2px;
  opacity: 0.6;
}

/* Keyframes for Rotating Phone Animation */
@keyframes p3rPhoneRotateLoop {

  0%,
  12% {
    transform: rotate(0deg) scale(1);
    border-color: #16cffb;
    box-shadow: 0 0 16px rgba(22, 207, 251, 0.4), inset 0 0 10px rgba(0, 0, 0, 0.8);
  }

  28%,
  68% {
    transform: rotate(-90deg) scale(1.06);
    border-color: #ffffff;
    box-shadow: 0 0 30px rgba(22, 207, 251, 0.95), 0 0 60px rgba(22, 207, 251, 0.45);
  }

  84%,
  100% {
    transform: rotate(0deg) scale(1);
    border-color: #16cffb;
    box-shadow: 0 0 16px rgba(22, 207, 251, 0.4), inset 0 0 10px rgba(0, 0, 0, 0.8);
  }
}

@keyframes p3rScreenGlowPulse {

  0%,
  24% {
    opacity: 0;
    pointer-events: none;
  }

  32%,
  64% {
    opacity: 1;
    pointer-events: auto;
  }

  74%,
  100% {
    opacity: 0;
    pointer-events: none;
  }
}

@keyframes p3rHaloPulse {

  0%,
  100% {
    transform: scale(0.92);
    opacity: 0.45;
  }

  50% {
    transform: scale(1.15);
    opacity: 0.85;
  }
}

@keyframes p3rOrbitPulse {

  0%,
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 0.65;
  }

  50% {
    transform: scale(1.06) rotate(-10deg);
    opacity: 1;
  }
}

/* Typography & Instruction Elements */
.rotate-heading-group {
  margin-bottom: 0.4rem;
}

.rotate-cutout-title {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap !important;
  white-space: nowrap !important;
  gap: clamp(2px, 0.6vw, 4px);
  margin-bottom: 0.45rem;
  max-width: 100%;
}

.rotate-cutout-title .p3r-cutout-char {
  font-size: clamp(1.0rem, 3.8vw, 1.55rem);
  font-family: var(--font-impact), Impact, sans-serif;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.08em 0.16em 0.08em;
  line-height: 1;
  text-transform: uppercase;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.7);
  flex-shrink: 0;
}

.rotate-cutout-title .char-white {
  background: #ffffff;
  color: #031433;
  transform: rotate(-2deg);
}

.rotate-cutout-title .char-cyan {
  background: #16cffb;
  color: #031433;
  transform: rotate(3deg);
}

.rotate-char-space {
  display: inline-block;
  width: clamp(0.25rem, 1.2vw, 0.48rem);
  flex-shrink: 0;
}

.rotate-action-text {
  font-family: var(--font-poppins), sans-serif;
  font-size: clamp(0.85rem, 3.2vw, 1.02rem);
  font-weight: 800;
  font-style: italic;
  color: #ffffff;
  letter-spacing: 0.04em;
  margin: 0.15rem 0 0.45rem;
  text-shadow: 0 0 12px rgba(22, 207, 251, 0.7);
}

.rotate-desc-text {
  font-family: var(--font-poppins), sans-serif;
  font-size: clamp(0.72rem, 2.5vw, 0.82rem);
  line-height: 1.45;
  color: #cbd5e1;
  max-width: 370px;
  margin: 0 auto 1.0rem;
  text-align: center;
}

.rotate-desc-text strong {
  color: #16cffb;
  font-weight: 700;
}

.rotate-prompt-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(22, 207, 251, 0.12);
  border: 1.5px solid rgba(22, 207, 251, 0.6);
  border-radius: 9999px;
  padding: 6px 14px;
  color: #16cffb;
  font-family: var(--font-impact), Impact, sans-serif;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  box-shadow: 0 0 16px rgba(22, 207, 251, 0.25);
}

.rotate-pill-icon {
  font-size: 1.1rem;
  animation: p3rSpinSlow 4s linear infinite;
}

@keyframes p3rSpinSlow {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}


/* ==========================================================================
   PERSONA 3 RELOAD - MOBILE & COMPACT HANDHELD ADAPTATION ONLY
   Applies STRICTLY to mobile viewports (<= 900px width OR handheld landscape <= 500px height)
   Desktop PCs and Laptops NEVER enter this query, preserving 100% full-size PC layout!
   ========================================================================== */
@media (max-width: 600px),
((max-height: 500px) and (orientation: landscape)) {

  /* 1. Main Canvas & Makoto Yuki Video Placement */
  .p3r-main {
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
  }

  .background-video {
    object-fit: cover;
    object-position: 74% center !important;
  }

  .p3r-global-vignette {
    background: radial-gradient(circle at 35% 45%, rgba(0, 14, 38, 0.45) 0%, rgba(0, 10, 26, 0.8) 100%);
  }

  /* 2. Menu Left Dock (Hero Name + Bio Card + Options List) */
  .menu-left-dock {
    top: clamp(0.5rem, 2.5vh, 1.2rem) !important;
    left: clamp(1.0rem, 3.0vw, 2.0rem) !important;
    gap: clamp(0.2rem, 1.0vh, 0.6rem) !important;
    max-width: min(380px, 48vw) !important;
  }

  .profile-top-badge {
    font-size: 0.66rem !important;
    padding: 1.5px 7px !important;
    margin-bottom: 0.15rem !important;
  }

  .profile-name-stacked {
    gap: 0.10rem !important;
  }

  .profile-name-stacked .p3r-cutout-char {
    font-size: clamp(1.2rem, 3.6vh, 1.6rem) !important;
    padding: 0.06em 0.14em 0.08em !important;
  }

  .profile-bio-card {
    margin-top: 0.15rem !important;
    padding: 5px 9px !important;
    max-width: 340px !important;
  }

  .profile-bio-card p {
    font-size: clamp(0.60rem, 1.6vh, 0.72rem) !important;
    line-height: 1.28 !important;
    margin: 0 !important;
  }

  .options-list {
    gap: clamp(0.20rem, 0.8vh, 0.45rem) !important;
  }

  .option-plain-text {
    font-size: clamp(1.2rem, 3.8vh, 1.6rem) !important;
    line-height: 1.08 !important;
  }

  .option-item.selected .p3r-cutout-char {
    font-size: clamp(1.1rem, 3.5vh, 1.45rem) !important;
    padding: 0.06em 0.14em 0.08em !important;
  }

  .banner-jagged-inner {
    padding: 0.16rem 0.8rem 0.16rem 0.6rem !important;
    gap: 0.4rem !important;
  }

  /* 3. Bottom HUD Controls (Menu Utama) */
  .hud-controls {
    bottom: 0.5rem !important;
    right: 0.8rem !important;
  }

  .hud-controls .buttons-row {
    display: flex !important;
    align-items: center !important;
    gap: 0.45rem !important;
  }

  .hud-controls .control-item {
    padding: 3px 8px !important;
    gap: 4px !important;
  }

  .hud-controls .control-key {
    font-size: 0.66rem !important;
    padding: 1px 5px !important;
  }

  .hud-controls .control-text {
    font-size: 0.76rem !important;
  }

  /* 4. Top-Right Corner: ONLY Floating Music Player (Zero Collisions!) */
  .p3r-music-launcher {
    position: fixed !important;
    top: clamp(8px, 1.6vh, 14px) !important;
    right: clamp(10px, 2vw, 18px) !important;
    padding: 4px 10px 4px 7px !important;
    gap: 6px !important;
    z-index: 9999 !important;
  }

  .music-launcher-disc {
    width: 22px !important;
    height: 22px !important;
  }

  .music-launcher-text {
    font-size: 0.72rem !important;
  }

  .music-floating-dialog {
    position: fixed !important;
    z-index: 9995 !important;
    margin: 0 !important;
    width: min(320px, 84vw) !important;
    max-height: 88vh !important;
    max-height: 88dvh !important;
    padding: 6px 14px 10px !important;
    gap: 4px !important;
    overflow-x: hidden !important;
    overflow-y: visible !important;
    box-sizing: border-box !important;
  }

  .deck-hero-slanted {
    padding: 0.55rem 1.0rem !important;
    gap: 0.45rem !important;
  }

  .deck-hero-title {
    font-size: clamp(0.85rem, 1.25vw, 1.05rem) !important;
  }

  .deck-center-controls {
    gap: 6px !important;
    margin-top: 5px !important;
  }

  .deck-ctrl-track-btn {
    width: 28px !important;
    height: 28px !important;
  }

  .deck-ctrl-track-btn svg {
    width: 13px !important;
    height: 13px !important;
  }

  .deck-seek-btn {
    padding: 2.5px 7px !important;
    font-size: 0.68rem !important;
  }

  .deck-center-playbtn {
    width: 34px !important;
    height: 34px !important;
    font-size: 0.88rem !important;
  }

  /* 5. Top-Left Corner: Circular Back Button with Clean Air Gap */
  .p3r-mobile-corner-back,
  .p3r-corner-back {
    position: fixed !important;
    width: clamp(36px, 4.4vw, 40px) !important;
    height: clamp(36px, 4.4vw, 40px) !important;
    top: clamp(8px, 1.6vh, 14px) !important;
    left: clamp(10px, 2vw, 18px) !important;
    z-index: 9999 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.8), 0 0 10px rgba(22, 207, 251, 0.45) !important;
  }

  .p3r-mobile-corner-back svg,
  .p3r-corner-back svg {
    width: 17px !important;
    height: 17px !important;
  }

  /* Subpage Headline Clearance: Consistent Persona 3 angled headers without scale jumps */
  .p3r-geometric-header {
    transform: rotate(-4.2deg) !important;
    transform-origin: left center !important;
    margin-top: 0 !important;
    margin-bottom: 2px !important;
    padding: 0 !important;
  }

  .p3r-banner-title,
  #skill-header-div #skill-header-text,
  #slink-project-div #slink-project-text,
  #about-header-div #about-header-text {
    margin-left: clamp(48px, 5.5vw, 64px) !important;
    width: auto !important;
    justify-content: flex-start !important;
  }

  #skill-header-div {
    width: clamp(340px, 46vw, 440px) !important;
    height: clamp(52px, 10.5vh, 66px) !important;
    margin-top: 0 !important;
    margin-bottom: clamp(3px, 0.7vh, 6px) !important;
    transform: rotate(-4.2deg) !important;
    transform-origin: left center !important;
  }

  #skill-header-div .p3r-shard-back-band,
  #skill-header-div .p3r-header-slash-main {
    left: -40px !important;
    top: 0 !important;
    width: calc(100% + 40px) !important;
    height: 100% !important;
  }

  #skill-header-div #skill-header-text {
    margin-left: clamp(48px, 5.5vw, 64px) !important;
  }

  #skill-header-div #skill-header-text .p3r-cutout-group {
    gap: clamp(0.02rem, 0.08vw, 0.10rem) !important;
  }

  #skill-header-text .p3r-cutout-char {
    font-size: clamp(1.45rem, 2.6vw, 1.85rem) !important;
    padding: 0.05em 0.11em 0.07em !important;
    box-shadow: 2px 3px 0 rgba(0, 0, 0, 0.9), 0 3px 8px rgba(0, 0, 0, 0.5) !important;
  }

  /* Mobile Corner Back Button on Mobile: Compact & sleek */
  .p3r-mobile-corner-back,
  .p3r-corner-back {
    top: clamp(8px, 1.6vh, 14px) !important;
    left: clamp(10px, 2.0vw, 18px) !important;
    width: clamp(34px, 5.2vh, 40px) !important;
    height: clamp(34px, 5.2vh, 40px) !important;
  }

  /* 6. Subpage Bottom-Right HUD: Hidden on mobile viewports per user request so exit is only via top-left corner back button */
  .slink-bottom-hud,
  .p3r-contact-bottom-hud {
    display: none !important;
  }

  #skill-tab-prev-btn,
  #skill-tab-next-btn {
    display: none !important;
  }

  /* 7. PROJECT Subpage: Clean Side-by-Side matching PC layout with -20deg slanted cards */
  #project-page .slink-viewport {
    display: flex !important;
    flex-direction: row !important;
    justify-content: flex-start !important;
    align-items: flex-start !important;
    gap: clamp(14px, 2.8vw, 32px) !important;
    padding: clamp(6px, 1.2vh, 12px) clamp(12px, 2.0vw, 22px) !important;
    height: 100vh !important;
    height: 100dvh !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  #project-page .slink-left-column {
    flex: 0 0 clamp(240px, 38vw, 330px) !important;
    width: clamp(240px, 38vw, 330px) !important;
    max-width: 44vw !important;
    display: flex !important;
    flex-direction: column !important;
    min-width: 0 !important;
    overflow: visible !important;
  }

  /* PROJECT Geometric Banner matching PC angled aesthetic */
  #project-page .p3r-geometric-header {
    width: clamp(260px, 35vw, 330px) !important;
    height: clamp(52px, 10.5vh, 64px) !important;
    transform: rotate(-4.2deg) !important;
    transform-origin: left center !important;
    margin-top: 0 !important;
    margin-bottom: clamp(2px, 0.6vh, 5px) !important;
    overflow: visible !important;
    position: relative !important;
    box-sizing: border-box !important;
  }

  #project-page .p3r-shard-back-band {
    left: -40px !important;
    top: -4px !important;
    width: calc(100% + 40px) !important;
    height: 100% !important;
    clip-path: polygon(0 0, 85% 0%, 100% 100%, 0 100%) !important;
  }

  #project-page .p3r-header-slash-main {
    left: -40px !important;
    top: 0 !important;
    width: calc(100% + 40px) !important;
    height: 100% !important;
    clip-path: polygon(0 0, 85% 0%, 100% 100%, 0 100%) !important;
  }

  #project-page .p3r-banner-title {
    margin-left: clamp(48px, 5.5vw, 64px) !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
  }

  #project-page .p3r-banner-title .p3r-cutout-char {
    font-size: clamp(1.50rem, 2.7vw, 1.95rem) !important;
    padding: 0.05em 0.12em 0.07em !important;
    box-shadow: 2px 3px 0 rgba(0, 0, 0, 0.9), 0 3px 8px rgba(0, 0, 0, 0.5) !important;
  }

  #project-page .slink-cards-container {
    display: flex !important;
    flex-direction: column !important;
    gap: clamp(3px, 0.6vh, 5px) !important;
    max-height: calc(100vh - clamp(60px, 11vh, 76px)) !important;
    max-height: calc(100dvh - clamp(60px, 11vh, 76px)) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 2px 6px 12px 2px !important;
    margin-left: 0 !important;
    --slink-skew: -20deg !important;
    width: 100% !important;
    scrollbar-width: thin !important;
  }

  #project-page .slink-cards-container::-webkit-scrollbar {
    width: 4px !important;
    height: 0px !important;
    display: none !important;
  }

  #project-page .slink-card {
    height: clamp(32px, 4.4vh, 38px) !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  #project-page .slink-card.active {
    width: 100% !important;
    max-width: 100% !important;
    transform: skewX(-20deg) translateX(4px) !important;
  }

  #project-page .card-unified-row {
    overflow: hidden !important;
    border-radius: 2px !important;
  }

  #project-page .card-numeral-box {
    width: clamp(32px, 3.8vw, 40px) !important;
  }

  #project-page .card-numeral-text {
    font-size: clamp(0.90rem, 1.3vw, 1.15rem) !important;
  }

  #project-page .card-main-body {
    padding: 0 clamp(7px, 1.0vw, 11px) !important;
    overflow: hidden !important;
  }

  #project-page .card-title-text {
    font-size: clamp(0.68rem, 0.95vw, 0.82rem) !important;
  }

  #project-page .card-subtitle-text {
    font-size: clamp(0.46rem, 0.64vw, 0.56rem) !important;
    margin-top: 1px !important;
  }

  #project-page .card-red-accent {
    width: 15px !important;
  }

  /* PREVIEW PANEL: Proportionate width, full-bleed 16:9 hero image, gorgeous balanced typography */
  #project-page .slink-preview-panel {
    flex: 0 0 clamp(270px, 40vw, 350px) !important;
    width: clamp(270px, 40vw, 350px) !important;
    max-width: 360px !important;
    align-self: flex-start !important;
    margin-top: clamp(8px, 1.8vh, 16px) !important;
    padding: 0 !important;
    max-height: calc(100vh - clamp(18px, 3.8vh, 28px)) !important;
    max-height: calc(100dvh - clamp(18px, 3.8vh, 28px)) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
  }

  #project-page .slink-preview-card {
    padding: 0 0 clamp(6px, 1.0vh, 8px) 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    background: rgba(4, 15, 38, 0.94) !important;
    border: 2px solid #16cffb !important;
    border-radius: 6px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.85), 0 0 16px rgba(22, 207, 251, 0.35) !important;
    overflow: hidden !important;
  }

  #project-page .slink-preview-image-wrap {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9 !important;
    max-height: clamp(85px, 19vh, 118px) !important;
    border-radius: 0 !important;
    overflow: hidden !important;
    background: #010814 !important;
    position: relative !important;
    display: block !important;
    border-bottom: 2px solid #16cffb !important;
  }

  #project-page .slink-preview-img {
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
  }

  #project-page .slink-preview-badge {
    left: 10px !important;
    bottom: 8px !important;
    font-size: 0.60rem !important;
    padding: 2px 7px !important;
  }

  #project-page .slink-preview-body {
    padding: clamp(4px, 0.8vh, 7px) clamp(10px, 1.4vw, 14px) 0 !important;
    box-sizing: border-box !important;
  }

  #project-page .slink-preview-title {
    font-size: clamp(0.80rem, 1.15vw, 0.98rem) !important;
    margin: 0 0 2px !important;
    line-height: 1.18 !important;
  }

  #project-page .slink-preview-desc {
    font-size: clamp(0.58rem, 0.78vw, 0.68rem) !important;
    line-height: 1.22 !important;
    margin-bottom: 4px !important;
  }

  #project-page .slink-preview-tools {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 3px !important;
    margin-bottom: 4px !important;
  }

  #project-page .slink-preview-tool-tag {
    font-size: clamp(0.52rem, 0.70vw, 0.60rem) !important;
    padding: 1px 5px !important;
  }

  #project-page .slink-preview-actions {
    display: flex !important;
    justify-content: flex-end !important;
    margin-top: 2px !important;
  }

  #project-page .slink-preview-open-btn {
    padding: clamp(3px, 0.6vh, 5px) clamp(9px, 1.2vw, 14px) !important;
    font-size: clamp(0.64rem, 0.85vw, 0.74rem) !important;
  }

  /* 8. CERTIFICATE Subpage: Single-Line Horizontal Tabs + Balanced Grid */
  #skill-page .slink-left-column {
    width: 100% !important;
    max-width: 100% !important;
  }

  .p3r-skill-tabs {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    gap: clamp(5px, 0.8vw, 8px) !important;
    margin-left: clamp(8px, 1.5vw, 16px) !important;
    margin-bottom: clamp(4px, 0.8vh, 6px) !important;
    padding-bottom: 2px !important;
    width: calc(100% - clamp(16px, 3vw, 32px)) !important;
  }

  .p3r-skill-tabs::-webkit-scrollbar {
    display: none !important;
  }

  .p3r-skill-tab {
    flex-shrink: 0 !important;
    padding: clamp(2.5px, 0.5vh, 4.5px) clamp(7px, 1.0vw, 11px) !important;
    height: clamp(26px, 4.2vh, 32px) !important;
    box-sizing: border-box !important;
    align-items: center !important;
    font-size: clamp(0.64rem, 0.85vw, 0.74rem) !important;
    gap: 6px !important;
  }

  .p3r-skill-tab .p3r-tab-tag,
  .p3r-skill-tab.active .p3r-tab-tag {
    font-size: clamp(0.60rem, 0.82vw, 0.70rem) !important;
    padding: 0 !important;
    background: transparent !important;
    margin: 0 !important;
    color: #16cffb !important;
  }

  .p3r-skill-tab.active .p3r-tab-tag {
    color: #ffffff !important;
  }

  .p3r-skill-tab .p3r-tab-label,
  .p3r-skill-tab.active .p3r-tab-label {
    font-size: clamp(0.64rem, 0.88vw, 0.76rem) !important;
    margin: 0 !important;
  }

  .p3r-category-headline {
    font-size: clamp(0.72rem, 1.0vw, 0.86rem) !important;
    margin-bottom: 2px !important;
    margin-left: clamp(8px, 1.5vw, 16px) !important;
  }

  .p3r-skills-container {
    margin-left: clamp(8px, 1.5vw, 16px) !important;
    width: calc(100% - clamp(16px, 3vw, 32px)) !important;
    max-height: calc(100vh - clamp(92px, 15vh, 114px)) !important;
    max-height: calc(100dvh - clamp(92px, 15vh, 114px)) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 2px 4px clamp(12px, 2.5vh, 20px) 2px !important;
  }

  .p3r-cert-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(clamp(170px, 22vw, 220px), 1fr)) !important;
    gap: clamp(6px, 0.9vw, 10px) !important;
    width: 100% !important;
  }

  .p3r-cert-card {
    padding: clamp(3px, 0.5vh, 5px) !important;
    border-radius: 4px !important;
  }

  .p3r-cert-card-top {
    padding: 2px 5px !important;
    margin-bottom: 2px !important;
  }

  .p3r-cert-index {
    font-size: 0.58rem !important;
  }

  .p3r-cert-badge {
    font-size: 0.54rem !important;
    padding: 1px 4px !important;
  }

  .p3r-cert-thumb {
    height: clamp(58px, 10vh, 72px) !important;
    object-fit: cover !important;
    background: #010814 !important;
    border-radius: 2px !important;
  }

  .p3r-cert-body {
    padding: 2px 2px 1px !important;
  }

  .p3r-cert-title {
    font-size: clamp(0.64rem, 0.85vw, 0.74rem) !important;
    line-height: 1.15 !important;
    margin: 1px 0 !important;
    max-height: 2.3em !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .p3r-cert-issuer {
    font-size: clamp(0.50rem, 0.68vw, 0.58rem) !important;
    margin: 1px 0 2px !important;
  }

  .p3r-cert-actions {
    margin-top: 2px !important;
    padding: 2px 0 0 !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 4px !important;
    align-items: center !important;
  }

  .p3r-cert-preview-btn,
  .p3r-cert-link-btn,
  .p3r-cert-credential-btn {
    padding: 2px 6px !important;
    font-size: clamp(0.54rem, 0.72vw, 0.62rem) !important;
    white-space: nowrap !important;
  }

  /* 9. ABOUT Subpage: Vertically Centered Layout matching PC aesthetics (left-docked card + slanted header) */
  #about-page .slink-viewport {
    flex-direction: column !important;
    justify-content: center !important;
    align-items: flex-start !important;
    padding: clamp(6px, 1.2vh, 12px) clamp(14px, 2.2vw, 24px) !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    height: 100vh !important;
    height: 100dvh !important;
  }

  #about-page .slink-left-column {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    margin: auto 0 !important;
  }

  #about-header-div {
    width: clamp(260px, 35vw, 340px) !important;
    height: clamp(52px, 10.5vh, 64px) !important;
    transform: rotate(-4.2deg) !important;
    transform-origin: left center !important;
    margin-top: 0 !important;
    margin-bottom: clamp(3px, 0.7vh, 6px) !important;
    margin-left: clamp(44px, 5.2vw, 56px) !important;
  }

  #about-header-div .p3r-shard-back-band,
  #about-header-div .p3r-header-slash-main {
    left: -40px !important;
    top: 0 !important;
    width: calc(100% + 40px) !important;
    height: 100% !important;
  }

  #about-header-div #about-header-text {
    margin-left: clamp(48px, 5.5vw, 64px) !important;
  }

  #about-header-text .p3r-cutout-char {
    font-size: clamp(1.65rem, 3.2vw, 2.15rem) !important;
    padding: 0.05em 0.12em 0.08em !important;
    box-shadow: 2px 3px 0 rgba(0, 0, 0, 0.9), 0 3px 8px rgba(0, 0, 0, 0.5) !important;
  }

  #about-page .p3r-about-card {
    width: clamp(430px, 58vw, 560px) !important;
    max-width: calc(100vw - clamp(100px, 16vw, 180px)) !important;
    max-height: calc(100vh - clamp(62px, 11vh, 76px)) !important;
    max-height: calc(100dvh - clamp(62px, 11vh, 76px)) !important;
    margin: 0 !important;
    margin-left: clamp(12px, 2.0vw, 24px) !important;
    padding: clamp(6px, 1.2vh, 10px) clamp(12px, 1.8vw, 18px) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    gap: clamp(4px, 0.8vh, 7px) !important;
  }

  .p3r-about-card-inner {
    gap: clamp(4px, 0.8vh, 7px) !important;
  }

  .p3r-about-top-row {
    gap: clamp(8px, 1.2vw, 12px) !important;
    margin-bottom: 0 !important;
  }

  .p3r-photo-box {
    width: clamp(40px, 5.0vw, 48px) !important;
    height: clamp(40px, 5.0vw, 48px) !important;
    border-radius: 6px !important;
  }

  .p3r-about-name {
    font-size: clamp(1.05rem, 1.65vw, 1.25rem) !important;
    line-height: 1.05 !important;
  }

  .p3r-about-title {
    font-size: clamp(0.58rem, 0.78vw, 0.68rem) !important;
  }

  .p3r-about-location {
    font-size: clamp(0.52rem, 0.70vw, 0.60rem) !important;
  }

  .p3r-about-tabs {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
    gap: 4px !important;
    margin-top: 1px !important;
  }

  .p3r-about-tab {
    flex-shrink: 0 !important;
    padding: 2.5px 8px !important;
    font-size: clamp(0.58rem, 0.8vw, 0.66rem) !important;
  }

  .p3r-about-panel {
    gap: clamp(4px, 0.7vh, 6px) !important;
  }

  .p3r-about-bio {
    gap: clamp(3px, 0.5vh, 5px) !important;
  }

  .p3r-about-p {
    font-size: clamp(0.59rem, 0.82vw, 0.69rem) !important;
    line-height: 1.24 !important;
    margin: 0 !important;
  }

  .p3r-about-quote {
    display: flex !important;
    gap: 8px !important;
    padding: clamp(3px, 0.6vh, 5px) clamp(8px, 1.1vw, 12px) !important;
    margin-top: 1px !important;
    border-radius: 4px !important;
  }

  .p3r-quote-mark {
    font-size: 1.05rem !important;
    line-height: 1 !important;
  }

  .p3r-quote-text {
    font-size: clamp(0.58rem, 0.8vw, 0.68rem) !important;
    line-height: 1.20 !important;
  }

  .p3r-quote-author {
    font-size: 0.55rem !important;
    margin-top: 1px !important;
  }

  .p3r-about-actions {
    display: flex !important;
    gap: 6px !important;
    margin-top: 2px !important;
  }

  .p3r-about-btn,
  .p3r-about-btn.primary {
    padding: clamp(3px, 0.6vh, 5px) clamp(9px, 1.2vw, 14px) !important;
    font-size: clamp(0.60rem, 0.82vw, 0.72rem) !important;
  }

  #about-page .p3r-about-scroll-list {
    max-height: clamp(110px, 26vh, 160px) !important;
  }

  /* 10. CONTACT Subpage: Perfectly Centered 2-Column Handheld Grid */
  .p3r-contact-viewport {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: clamp(12px, 2.5vh, 20px) clamp(14px, 2.2vw, 24px) !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    height: 100vh !important;
    height: 100dvh !important;
  }

  .p3r-mail-phone-wrap {
    width: min(580px, 88vw) !important;
    height: auto !important;
    max-height: calc(100vh - clamp(24px, 5.5vh, 36px)) !important;
    max-height: calc(100dvh - clamp(24px, 5.5vh, 36px)) !important;
    margin: auto !important;
    transform: none !important;
    background: rgba(4, 15, 38, 0.96) !important;
    border: 2px solid rgba(22, 207, 251, 0.65) !important;
    border-radius: 10px !important;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.9), 0 0 20px rgba(22, 207, 251, 0.3) !important;
  }

  .p3r-contact-screen.active .p3r-mail-phone-wrap {
    animation: p3rMobileCardFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
    transform: none !important;
  }

  @keyframes p3rMobileCardFadeIn {
    0% {
      opacity: 0;
      transform: translate3d(0, 14px, 0);
    }

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

  .p3r-mail-chassis-svg {
    display: none !important;
  }

  .p3r-mail-phone-card {
    padding: clamp(8px, 1.6vh, 13px) clamp(12px, 2.0vw, 18px) !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  .p3r-mail-header-row {
    min-height: auto !important;
    margin-bottom: clamp(5px, 1.0vh, 8px) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
  }

  .p3r-mail-watermark {
    font-size: clamp(1.4rem, 3.0vw, 2.0rem) !important;
    line-height: 1 !important;
    margin: 0 !important;
    transform: none !important;
  }

  .p3r-mail-watermark .p3r-cutout-char {
    font-size: clamp(1.45rem, 2.7vw, 1.90rem) !important;
    padding: 0.05em 0.12em 0.07em !important;
    box-shadow: 2px 3px 0 rgba(0, 0, 0, 0.9), 0 3px 8px rgba(0, 0, 0, 0.5) !important;
  }

  .p3r-mail-list-container,
  .p3r-mail-list-5,
  .p3r-mail-list-6 {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: clamp(4px, 0.8vh, 7px) clamp(8px, 1.3vw, 12px) !important;
    width: 100% !important;
    padding-right: 0 !important;
    margin-top: 0 !important;
  }

  .p3r-mail-row {
    height: clamp(36px, 5.2vh, 42px) !important;
    border-radius: 5px !important;
    transform: none !important;
  }

  .p3r-mail-row.is-instagram {
    grid-column: 1 / -1 !important;
    max-width: 380px !important;
    justify-self: center !important;
    width: 100% !important;
  }

  .p3r-mail-row:hover,
  .p3r-mail-row.active {
    transform: translateY(-2px) !important;
  }

  .p3r-mail-icon-block {
    width: clamp(38px, 5.0vw, 46px) !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 6px 0 2px !important;
    box-sizing: border-box !important;
    clip-path: polygon(0 0, 100% 0, 80% 100%, 0 100%) !important;
    flex-shrink: 0 !important;
  }

  .p3r-mail-icon-block svg {
    width: clamp(16px, 2.2vw, 20px) !important;
    height: clamp(16px, 2.2vw, 20px) !important;
    display: block !important;
    margin: auto !important;
  }

  /* Keep authentic brand colors solid and vibrant across states */
  .p3r-mail-row.is-gmail .p3r-mail-icon-block {
    background: #ea4335 !important;
    color: #ffffff !important;
  }
  .p3r-mail-row.is-github .p3r-mail-icon-block {
    background: #24292e !important;
    color: #ffffff !important;
  }
  .p3r-mail-row.is-linkedin .p3r-mail-icon-block {
    background: #0a66c2 !important;
    color: #ffffff !important;
  }
  .p3r-mail-row.is-kaggle .p3r-mail-icon-block {
    background: #20beff !important;
    color: #041630 !important;
  }
  .p3r-mail-row.is-instagram .p3r-mail-icon-block {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888) !important;
    color: #ffffff !important;
  }

  /* Hide duplicate mini-icon on mobile for a clean, single-icon layout */
  .p3r-mail-mini-icon {
    display: none !important;
  }

  .p3r-mail-content-block {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    padding: 0 clamp(8px, 1.4vw, 14px) !important;
    height: 100% !important;
  }

  .p3r-mail-sender-row {
    font-size: clamp(0.86rem, 1.2vw, 1.05rem) !important;
    gap: 0 !important;
    line-height: 1 !important;
  }

  .p3r-mail-row-line,
  .p3r-mail-msg-text {
    display: none !important;
  }
}