/* RESET & GLOBAL STYLES */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body, .main-wrapper {
  background-color: #0C0C0C;
  color: #D7E2EA;
  font-family: 'Kanit', sans-serif;
  overflow-x: clip;
  width: 100%;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

/* Reusable Hero Heading Gradient - High Contrast & Razor Sharp */
.hero-heading {
  background: linear-gradient(180deg, #FFFFFF 20%, #B8C7D3 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Reusable Buttons */
.contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(123deg, #18011F 7%, #B600A8 37%, #7621B0 72%, #BE4C00 100%);
  border: 2px solid #FFFFFF;
  border-radius: 9999px;
  color: #FFFFFF;
  font-family: 'Kanit', sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  padding: clamp(10px, 1.5vw, 14px) clamp(22px, 2.5vw, 36px);
  font-size: clamp(0.85rem, 1.2vw, 1.1rem);
  transition: transform 0.25s ease, opacity 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
}

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

/* ----------------------------------------------------
   HERO SECTION
---------------------------------------------------- */
.hero-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  width: 100%;
  padding: clamp(85px, 10vh, 110px) clamp(24px, 4vw, 48px) clamp(20px, 3vh, 32px);
  overflow: hidden;
  box-sizing: border-box;
  background-color: #FFFFFF;
}

/* Navigation */
/* Navigation */
.navbar {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translate(-50%, 0);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: max-content;
  max-width: 90vw;
  height: 48px;
  padding: 6px 20px;
  background: rgba(18, 18, 24, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 9999px;
  box-shadow: none;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  box-sizing: border-box;
}

.nav-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-img {
  height: 28px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.nav-logo-img:hover {
  transform: scale(1.08);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.2vw, 16px);
  white-space: nowrap;
  transition: opacity 0.3s ease, transform 0.3s ease, max-width 0.35s ease;
  max-width: 800px;
  opacity: 1;
}

.nav-link {
  color: #D7E2EA;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: clamp(0.72rem, 0.9vw, 0.8rem);
  text-decoration: none;
  transition: color 200ms ease, opacity 200ms ease;
}

.nav-link:hover {
  color: #FFFFFF;
  opacity: 1;
}

.nav-menu-hint {
  display: none;
  align-items: center;
  justify-content: center;
  color: #D7E2EA;
  opacity: 0.8;
  margin-left: -6px;
  transition: transform 0.3s ease;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: transform 0.2s ease;
}

.hamburger-bar {
  width: 18px;
  height: 2px;
  background-color: #D7E2EA;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease, background-color 0.2s ease;
}

.mobile-menu-toggle:hover .hamburger-bar {
  background-color: #FFFFFF;
}

/* FOLDED GLASS CAPSULE STATE (WHEN SCROLLED ON DESKTOP) */
@media (min-width: 769px) {
  .navbar.is-folded {
    padding: 6px 14px;
    gap: 8px;
    cursor: pointer;
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: none;
  }

  .navbar.is-folded:hover {
    transform: translate(-50%, 0) scale(1.06);
    border-color: rgba(255, 255, 255, 0.4);
  }

  .navbar.is-folded .nav-links {
    max-width: 0;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.85);
    margin: 0;
  }

  .navbar.is-folded .nav-menu-hint {
    display: flex;
  }

  /* EXPANDED OVERRIDE (WHEN CLICKED ON FOLDED CAPSULE) */
  .navbar.is-folded.is-expanded {
    padding: 6px 20px;
    gap: 18px;
    cursor: default;
    border-color: rgba(255, 255, 255, 0.2);
  }

  .navbar.is-folded.is-expanded .nav-links {
    max-width: 800px;
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
  }

  .navbar.is-folded.is-expanded .nav-menu-hint {
    display: none;
  }
}

/* ----------------------------------------------------
   MOBILE NAVIGATION DRAWER OVERLAY
---------------------------------------------------- */
.mobile-nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 9999;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  display: flex;
  justify-content: flex-end;
}

.mobile-nav-drawer.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 4, 6, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.mobile-nav-panel {
  position: relative;
  width: min(340px, 86vw);
  height: 100%;
  background: rgba(14, 14, 20, 0.96);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: none;
  display: flex;
  flex-direction: column;
  padding: 24px 20px;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}

.mobile-nav-drawer.is-open .mobile-nav-panel {
  transform: translateX(0);
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-nav-logo {
  display: flex;
  align-items: center;
}

.mobile-nav-logo-img {
  height: 28px;
  width: auto;
}

.mobile-nav-close {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #D7E2EA;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mobile-nav-close:hover,
.mobile-nav-close:active {
  background: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  transform: scale(1.05);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px 0;
  flex: 1;
}

.mobile-nav-link {
  color: #D7E2EA;
  font-size: 1.15rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  padding: 12px 14px;
  border-radius: 12px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-nav-link:hover,
.mobile-nav-link:active {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.07);
  padding-left: 18px;
}

.mobile-nav-footer {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mobile-cta-btn {
  width: 100%;
  text-align: center;
  padding: 14px 20px;
  font-size: 0.92rem;
}

.mobile-nav-tagline {
  font-size: 0.75rem;
  color: #D7E2EA;
  opacity: 0.5;
  text-align: center;
  line-height: 1.4;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

@media (max-width: 768px) {
  .nav-links {
    display: none !important;
  }
  .nav-menu-hint {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .navbar {
    top: 16px;
    height: 44px;
    padding: 6px 14px;
    gap: 12px;
  }
  .nav-logo-img {
    height: 24px;
  }
}

/* Hero Heading */
.hero-heading-container {
  width: 100%;
  margin-top: clamp(8px, 2vh, 24px);
  z-index: 5;
  text-align: center;
}

.hero-title {
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.05;
  width: 100%;
  display: block;
  font-size: clamp(1.85rem, 7.5vw, 5.8rem);
  word-break: break-word;
  color: #0C0C0C !important;
  -webkit-text-fill-color: #0C0C0C !important;
  background: none !important;
}

/* Hero Portrait / Normal 3D Logo */
.hero-portrait-wrapper {
  position: relative;
  margin: clamp(10px, 2vh, 24px) auto;
  z-index: 2;
  pointer-events: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  width: auto;
  max-width: 100%;
  flex-shrink: 0;
}

.hero-portrait {
  width: clamp(220px, 26vw, 360px);
  height: clamp(220px, 26vw, 360px);
  aspect-ratio: 1 / 1 !important;
  max-width: 85vw;
  display: block;
  object-fit: contain;
  pointer-events: auto;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
  image-rendering: -webkit-optimize-contrast;
}

.hero-portrait:hover {
  transform: scale(1.04) translateY(-4px);
}

@media (max-width: 768px) {
  .hero-portrait {
    width: clamp(190px, 52vw, 270px) !important;
    height: clamp(190px, 52vw, 270px) !important;
  }
}

/* Hero Bottom Bar */
.hero-bottom-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  width: 100%;
  z-index: 10;
  margin-top: auto;
  padding-bottom: 0;
  gap: 16px;
}

.hero-subtext {
  color: #0C0C0C;
  opacity: 0.8;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.25;
  font-size: clamp(0.75rem, 1.1vw, 1rem);
  width: clamp(160px, 20vw, 260px);
}

@media (max-width: 640px) {
  .hero-section {
    padding: 76px 18px 24px;
    min-height: 100svh;
    justify-content: space-between;
  }
  .hero-bottom-bar {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    margin-top: 16px;
  }
  .hero-subtext {
    width: 100%;
    max-width: 290px;
    font-size: 0.82rem;
  }
  .contact-btn.hero-anim-btn {
    width: 100%;
    max-width: 280px;
    padding: 12px 24px;
  }
}
@media (min-width: 641px) and (max-width: 768px) {
  .hero-subtext {
    width: 220px;
  }
}
@media (min-width: 769px) {
  .hero-subtext {
    width: 260px;
  }
}

/* Entrance Animation CSS Keyframes */
@keyframes navbarFadeInUp {
  0% {
    opacity: 0;
    transform: translate(-50%, -20px);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@keyframes headingFadeInUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInSimple {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes portraitFadeInUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-anim-nav {
  opacity: 0;
  animation: navbarFadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards 0s;
}

.hero-anim-heading {
  opacity: 0;
  animation: headingFadeInUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.15s;
}

.hero-anim-left {
  opacity: 0;
  animation: fadeInSimple 0.8s ease forwards 0.35s;
}

.hero-anim-btn {
  opacity: 0;
  animation: fadeInSimple 0.8s ease forwards 0.5s;
}

.hero-anim-portrait {
  opacity: 0;
  animation: portraitFadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.6s;
}

/* ----------------------------------------------------
   MARQUEE SECTION
---------------------------------------------------- */
.marquee-section {
  background-color: #FFFFFF;
  padding-top: clamp(24px, 4vw, 44px);
  padding-bottom: clamp(90px, 12vw, 150px);
  width: 100%;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.marquee-tagline {
  font-size: clamp(0.72rem, 0.95vw, 0.82rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #0C0C0C;
  opacity: 0.55;
  text-align: center;
  margin-bottom: 4px;
}

.marquee-row-wrapper {
  width: 100%;
  overflow: hidden;
  display: flex;
}

.marquee-track {
  display: flex;
  gap: 14px;
  width: max-content;
  will-change: transform;
  padding: 4px 0;
}

/* Network Pills */
.network-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px 8px 14px;
  background: #0E0E14;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  box-shadow: none;
  flex-shrink: 0;
  transition: transform 0.25s ease, border-color 0.25s ease;
  user-select: none;
  cursor: default;
}

.network-pill:hover {
  transform: translateY(-2px) scale(1.03);
  border-color: rgba(182, 0, 168, 0.5);
}

.network-pill-icon-wrap {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  flex-shrink: 0;
  padding: 0;
}

.network-pill-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.network-pill-name {
  font-family: 'Kanit', sans-serif;
  font-size: clamp(0.8rem, 1vw, 0.9rem);
  font-weight: 500;
  color: #FFFFFF;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .marquee-section {
    padding-top: 20px;
    padding-bottom: 70px;
    gap: 12px;
  }
  .marquee-track {
    gap: 10px;
  }
  .network-pill {
    padding: 6px 14px 6px 10px;
    gap: 8px;
  }
  .network-pill-icon-wrap {
    width: 18px;
    height: 18px;
    padding: 0;
  }
  .network-pill-name {
    font-size: 0.78rem;
  }
}

/* ----------------------------------------------------
   MOBILE DEMO SECTION
---------------------------------------------------- */
.demo-section {
  height: 450vh;
  position: relative;
  background-color: #FFFFFF;
  color: #0C0C0C;
  border-radius: clamp(32px, 5vw, 60px) clamp(32px, 5vw, 60px) 0 0;
  margin-top: clamp(-50px, -5vw, -30px);
  z-index: 4;
  width: 100%;
}

.demo-sticky-container {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  perspective: 1200px;
  perspective-origin: center center;
}

.mobile-demo-showcase {
  display: none;
}

.demo-text-block {
  position: absolute;
  color: #000000;
  opacity: 0;
  pointer-events: none;
  max-width: 380px;
  z-index: 5;
}

.demo-heading {
  font-weight: 800;
  font-size: clamp(1.8rem, 2.8vw, 2.6rem);
  text-transform: uppercase;
  margin-bottom: 14px;
  line-height: 1.15;
  color: #000000 !important;
  -webkit-text-fill-color: #000000 !important;
  background: none !important;
}

.demo-desc {
  font-weight: 400;
  font-size: clamp(1.02rem, 1.2vw, 1.18rem);
  line-height: 1.6;
  color: #111827;
  opacity: 1;
}

/* Specific text block placements with margins to prevent overlap */
.text-1 {
  left: 54%;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(280px, 30vw, 420px);
  text-align: left;
}

.text-2 {
  right: 54%;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(280px, 30vw, 420px);
  text-align: right;
}

.text-3 {
  left: 54%;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(280px, 32vw, 450px);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.demo-feature-item {
  display: flex;
  flex-direction: column;
}

/* Mobile Frame 3D Object Styling */
.mobile-frame {
  width: clamp(260px, 22vw, 305px);
  aspect-ratio: 9 / 16;
  height: auto;
  border: 4px solid #2a2a32;
  outline: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 36px;
  background-color: #070709;
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transform-style: preserve-3d;
  will-change: transform;
}

.mobile-frame.hero-active {
  border-color: #444452;
}

.mobile-notch {
  display: none;
}

.mobile-screen {
  width: 100%;
  height: 100%;
  border-radius: 32px;
  background: #070709;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.demo-screens-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 32px;
  overflow: hidden;
}

.demo-screen-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 0.2s ease-out;
  border-radius: 32px;
  image-rendering: auto;
  will-change: opacity;
}

.demo-screen-img.stage-img-1 {
  opacity: 1;
}

@media (max-width: 900px) {
  .mobile-frame {
    width: clamp(190px, 36vw, 230px);
    aspect-ratio: 9 / 16;
    height: auto;
    border-width: 3px;
    border-radius: 26px;
  }
  .mobile-screen,
  .demo-screens-wrapper,
  .demo-screen-img {
    border-radius: 23px;
  }
  .demo-heading {
    font-size: clamp(1.35rem, 5vw, 1.85rem);
    margin-bottom: 6px;
  }
  .demo-desc {
    font-size: clamp(0.82rem, 2.8vw, 0.95rem);
    line-height: 1.45;
  }
  .text-1, .text-2 {
    left: 50% !important;
    right: auto !important;
    top: 8% !important;
    transform: translateX(-50%) !important;
    width: 90% !important;
    max-width: 340px;
    text-align: center !important;
  }
  .text-3 {
    left: 50% !important;
    right: auto !important;
    top: 6% !important;
    transform: translateX(-50%) !important;
    width: 90% !important;
    max-width: 360px;
    text-align: center !important;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }
  .demo-feature-item {
    width: 100%;
    text-align: center !important;
  }
}

/* Dedicated Mobile Viewport Showcase for Demo Section (< 768px) */
@media (max-width: 768px) {
  .demo-section {
    height: 300vh !important;
    min-height: 300vh !important;
    position: relative;
    background-color: #FFFFFF;
    color: #0C0C0C;
    border-radius: clamp(32px, 5vw, 60px) clamp(32px, 5vw, 60px) 0 0 !important;
    margin-top: clamp(-50px, -5vw, -30px) !important;
    z-index: 4;
    width: 100%;
    padding: 0 !important;
    display: block !important;
  }

  .demo-sticky-container {
    display: none !important;
  }

  .mobile-demo-showcase {
    display: block !important;
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: inherit;
  }

  .mobile-demo-sticky-wrap {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100svh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: clamp(74px, 10.5vh, 88px) 16px clamp(14px, 2.2vh, 24px);
    box-sizing: border-box;
    background-color: #FFFFFF;
    border-radius: clamp(32px, 5vw, 60px) clamp(32px, 5vw, 60px) 0 0;
    gap: 8px;
  }

  /* Top Text Header Area on TOP of the frame */
  .mobile-demo-top-area {
    flex: 0 0 auto;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0;
    z-index: 15;
    padding: 0;
  }

  /* Text Slider positioned cleanly on top */
  .mobile-demo-text-slider {
    position: relative;
    width: 100%;
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-demo-text-slide {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.25s ease-out, transform 0.25s ease-out;
    pointer-events: none;
    text-align: center;
  }

  .mobile-demo-text-slide.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .mobile-stage-title {
    font-size: clamp(1.32rem, 5.2vw, 1.65rem);
    font-weight: 900;
    color: #0C0C0C;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    margin: 0 0 4px;
    line-height: 1.15;
  }

  .mobile-stage-desc {
    font-size: clamp(0.92rem, 3.5vw, 1.05rem);
    line-height: 1.46;
    color: #475569;
    font-weight: 400;
    max-width: 380px;
    margin: 0;
  }

  /* Interactive Mobile Stage taking the center/bottom space */
  .mobile-demo-stage-area {
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    touch-action: pan-y;
  }

  .mobile-demo-slider-track {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
  }

  /* Mobile Phone Frame Mockups - Enlarged responsive height */
  .mobile-stage-card {
    position: absolute;
    top: 50%;
    left: 50%;
    height: 100%;
    max-height: clamp(260px, 55vh, 500px);
    width: auto;
    aspect-ratio: 9 / 16;
    max-width: 86vw;
    transform: translate(-50%, -50%);
    will-change: transform, opacity;
    transition: box-shadow 0.3s ease, filter 0.3s ease;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
  }

  .mobile-stage-phone {
    width: 100%;
    height: 100%;
    border-radius: 30px;
    border: 3.5px solid #22222B;
    background: #08080A;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(255, 255, 255, 0.08);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
  }

  .mobile-stage-notch {
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 52px;
    height: 12px;
    background: #111115;
    border-radius: 9999px;
    z-index: 5;
  }

  .mobile-stage-screen {
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 26px;
    overflow: hidden;
    background: #000;
  }

  .mobile-stage-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    image-rendering: auto;
    pointer-events: none;
  }
}

/* ----------------------------------------------------
   ABOUT SECTION
---------------------------------------------------- */
.about-section {
  height: 220vh;
  position: relative;
  background-color: #0C0C0C;
  color: #D7E2EA;
  border-radius: clamp(32px, 5vw, 60px) clamp(32px, 5vw, 60px) 0 0;
  margin-top: clamp(-50px, -5vw, -30px);
  z-index: 3;
  width: 100%;
}

.about-sticky-container {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(40px, 6vh, 80px) clamp(20px, 4vw, 40px);
  overflow: hidden;
  box-sizing: border-box;
}

/* Decorative 3D Images */
.decor-img {
  position: absolute;
  pointer-events: none;
  object-fit: contain;
  opacity: 0;
  transform: scale(0.8) translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}

.decor-img.is-visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.decor-top-left {
  top: 5%;
  left: 3%;
  width: clamp(100px, 12vw, 170px);
}
.decor-bottom-left {
  bottom: 5%;
  left: 4%;
  width: clamp(90px, 10vw, 150px);
}
.decor-top-right {
  top: 5%;
  right: 3%;
  width: clamp(100px, 12vw, 170px);
}
.decor-bottom-right {
  bottom: 5%;
  right: 4%;
  width: clamp(100px, 11vw, 170px);
}

/* HIDE DECORATIVE 3D ASSETS ON MOBILE TO AVOID CLUTTER */
@media (max-width: 768px) {
  .decor-img {
    display: none !important;
  }
  .about-section {
    height: auto;
    min-height: auto;
    border-radius: clamp(32px, 5vw, 60px) clamp(32px, 5vw, 60px) 0 0;
    margin-top: clamp(-50px, -5vw, -30px);
  }
  .about-sticky-container {
    position: relative;
    height: auto;
    min-height: auto;
    padding: 70px 20px 50px;
  }
}

.about-content {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 780px;
  width: 100%;
}

.about-heading {
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.05;
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  margin-bottom: clamp(16px, 2.5vh, 28px);
  background: linear-gradient(180deg, #FFFFFF 20%, #B8C7D3 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.about-paragraph {
  color: #D7E2EA;
  font-weight: 400;
  line-height: 1.65;
  max-width: 640px;
  font-size: clamp(0.98rem, 1.3vw, 1.2rem);
  margin-bottom: clamp(20px, 3vh, 32px);
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}

.about-paragraph .about-word {
  display: inline-block;
  white-space: nowrap;
}

.about-paragraph .char {
  display: inline;
  opacity: 0.35;
  transition: opacity 0.15s ease-out;
  color: #FFFFFF;
}

.about-btn {
  margin-top: 4px;
}

/* ----------------------------------------------------
   PROJECTS / FORMATS SECTION (STACKED CARDS)
---------------------------------------------------- */
.projects-section {
  background-color: #0C0C0C;
  border-radius: clamp(32px, 5vw, 60px) clamp(32px, 5vw, 60px) 0 0;
  margin-top: clamp(-50px, -5vw, -30px);
  padding: clamp(70px, 10vw, 140px) clamp(16px, 4vw, 40px) clamp(100px, 12vw, 160px);
  position: relative;
  z-index: 5;
  width: 100%;
}

@media (max-width: 768px) {
  .projects-section {
    padding: 60px 16px 80px;
    border-radius: 30px 30px 0 0;
    margin-top: -30px;
  }
}

.projects-header {
  text-align: center;
  margin-bottom: clamp(32px, 5vw, 60px);
}

.projects-section .projects-header {
  position: sticky;
  top: clamp(74px, 9vh, 86px);
  z-index: 20;
  text-align: center;
  margin-bottom: clamp(28px, 4vw, 48px);
  pointer-events: none;
}

.projects-heading {
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(2.8rem, 11vw, 160px);
  line-height: 1;
  letter-spacing: -0.02em;
  word-break: break-word;
}

.projects-section .projects-heading {
  font-size: clamp(2.4rem, 5.5vw, 4.5rem);
  line-height: 1.05;
  background: linear-gradient(180deg, #FFFFFF 20%, #B8C7D3 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.projects-stack-container {
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 6vw, 80px);
  max-width: 1300px;
  margin: 0 auto;
  position: relative;
}

.project-card {
  position: sticky;
  top: clamp(160px, 20vh, 210px);
  border: 2px solid #D7E2EA;
  background-color: #0C0C0C;
  border-radius: clamp(24px, 4vw, 60px);
  padding: clamp(18px, 3vw, 36px);
  width: 100%;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  transform-origin: center top;
  transition: transform 0.1s ease-out;
}

/* Card Top Bar */
.project-card-top {
  display: flex;
  align-items: center;
  margin-bottom: clamp(16px, 3vw, 32px);
  gap: clamp(10px, 2vw, 24px);
}

.project-num {
  font-weight: 700;
  font-size: clamp(1.1rem, 2vw, 1.8rem);
  color: #D7E2EA;
  opacity: 0.6;
  order: 1;
}

.project-category {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: clamp(0.82rem, 1.15vw, 1.05rem);
  padding: 4px 14px;
  border-radius: 9999px;
  color: #D7E2EA;
  order: 3;
  margin-left: auto;
}

.project-title {
  font-weight: 700;
  font-size: clamp(1.35rem, 2.6vw, 2.3rem);
  color: #FFFFFF;
  text-transform: uppercase;
  order: 2;
}

.live-project-btn {
  position: relative;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #D7E2EA;
  border-radius: 9999px;
  color: #D7E2EA;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  font-size: clamp(0.82rem, 1.1vw, 1.02rem);
  padding: 16px 22px;
  text-decoration: none;
  transition: background-color 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}

.btn-arrow-icon {
  position: absolute;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a855f7, #3b82f6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
}

.live-project-btn:hover {
  background-color: rgba(215, 226, 234, 0.1);
  transform: translateY(-2px);
}

/* Card Bottom Grid - Image First, Then Text */
.project-card-grid {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3.5vw, 48px);
  width: 100%;
}

.grid-img-col {
  width: 58%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.grid-info-col {
  width: 42%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(14px, 2vw, 24px);
}

/* GHOST UI PLACEHOLDERS */
.ghost-ui-thumb,
.project-img {
  width: 100%;
  height: clamp(140px, 20vw, 260px);
  border-radius: clamp(14px, 2vw, 28px);
  background: radial-gradient(circle at 50% 30%, #171724 0%, #0d0d14 65%, #07070a 100%);
  border: none !important;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
}

.ghost-ui-thumb::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.04) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: ghost-shimmer 3.5s infinite ease-in-out;
  pointer-events: none;
}

@keyframes ghost-shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* SOLUTION CARD ILLUSTRATIONS */
.solution-card-img {
  width: 100%;
  border-radius: clamp(14px, 2vw, 24px);
  background: #0A0A0E;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
}

.solution-card-img.single-showcase-img {
  width: 100%;
  height: auto;
  border-radius: clamp(14px, 2vw, 24px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.solution-illustration {
  width: 100%;
  height: auto;
  aspect-ratio: 1672 / 941;
  display: block;
  filter: none;
  image-rendering: auto;
  transition: transform 0.35s ease;
}

.solution-card-img:hover .solution-illustration {
  transform: scale(1.02);
}

.game-thumb-wrapper .ghost-ui-thumb {
  width: 100%;
  height: 100%;
  border-radius: 0 !important;
  box-shadow: none;
}

.blog-featured-img-col .ghost-ui-thumb {
  height: clamp(180px, 25vw, 320px);
  border-radius: clamp(14px, 2vw, 20px);
}

.blog-card .ghost-ui-thumb {
  height: 170px;
  width: 100%;
  border-radius: 0 !important;
}

.format-card-details {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0;
  background: transparent;
  border: none;
}

.format-card-desc {
  font-size: clamp(1.08rem, 1.4vw, 1.32rem);
  line-height: 1.65;
  color: #E2ECF4;
  opacity: 0.95;
  font-weight: 400;
}

.format-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.format-tag {
  font-size: clamp(0.8rem, 0.95vw, 0.92rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #E2ECF4;
  border-radius: 9999px;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.format-tag:hover {
  border-color: rgba(182, 0, 168, 0.6);
  background: rgba(182, 0, 168, 0.1);
}

@media (max-width: 768px) {
  .projects-section {
    padding: 44px 14px 70px;
  }
  .projects-section .projects-header {
    top: clamp(62px, 8.5vh, 72px);
    margin-bottom: 18px;
  }
  .projects-section .projects-heading {
    font-size: clamp(1.9rem, 7vw, 2.8rem);
  }
  .project-card {
    border-radius: 20px;
    padding: 18px 16px 20px;
    top: clamp(118px, 16vh, 145px);
  }
  .project-card-top {
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
  }
  .project-category {
    margin-left: auto;
    order: 2;
  }
  .project-title {
    width: 100%;
    order: 3;
  }
  .live-project-btn {
    width: 100%;
    padding: 10px 14px;
  }
  .project-card-grid {
    flex-direction: column;
    gap: 16px;
  }
  .grid-img-col, .grid-info-col {
    width: 100%;
  }
  .solution-card-img.single-showcase-img {
    width: 100%;
    aspect-ratio: 1672 / 941;
    height: auto;
    border-radius: 14px;
  }
  .format-card-desc {
    font-size: 1.02rem;
    line-height: 1.55;
    font-weight: 400;
  }
}

/* ----------------------------------------------------
   SERVICES SECTION
---------------------------------------------------- */
.services-section {
  background-color: #FFFFFF;
  color: #0C0C0C;
  border-radius: clamp(32px, 5vw, 60px) clamp(32px, 5vw, 60px) 0 0;
  margin-top: clamp(-50px, -5vw, -30px);
  padding: clamp(70px, 10vw, 140px) clamp(16px, 4vw, 40px);
  width: 100%;
  position: relative;
  z-index: 6;
}

.services-heading {
  color: #0C0C0C;
  font-weight: 900;
  text-transform: uppercase;
  text-align: center;
  font-size: clamp(2.8rem, 11vw, 160px);
  line-height: 1;
  margin-bottom: clamp(36px, 8vw, 90px);
  letter-spacing: -0.02em;
  word-break: break-word;
}

.services-list {
  display: flex;
  flex-direction: column;
  max-width: 1200px;
  margin: 0 auto;
}

.service-item {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  border-top: 1px solid rgba(12, 12, 12, 0.15);
  padding: clamp(28px, 4vw, 48px) 0;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-item:last-child {
  border-bottom: 1px solid rgba(12, 12, 12, 0.15);
}

.service-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.service-number {
  font-weight: 900;
  font-size: clamp(2.8rem, 10vw, 140px);
  color: #0C0C0C;
  line-height: 0.9;
  flex-shrink: 0;
  width: 30%;
}

.service-info {
  width: 68%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: clamp(6px, 1.5vw, 20px);
}

.service-name {
  font-weight: 500;
  text-transform: uppercase;
  font-size: clamp(1.15rem, 2.2vw, 2.1rem);
  color: #0C0C0C;
  letter-spacing: 0.02em;
}

.service-desc {
  font-weight: 300;
  line-height: 1.65;
  max-width: 700px;
  font-size: clamp(0.9rem, 1.3vw, 1.15rem);
  color: #0C0C0C;
  opacity: 0.68;
}

@media (max-width: 768px) {
  .services-section {
    padding: 60px 16px 70px;
    border-radius: 30px 30px 0 0;
    margin-top: -30px;
  }
  .service-item {
    flex-direction: column;
    gap: 10px;
    padding: 22px 0;
  }
  .service-number {
    width: 100%;
    font-size: 2.6rem;
  }
  .service-info {
    width: 100%;
    padding-top: 0;
  }
}

/* FOOTER */
.site-footer {
  background-color: #FFFFFF;
  color: #0C0C0C;
  border-radius: clamp(32px, 5vw, 60px) clamp(32px, 5vw, 60px) 0 0;
  margin-top: clamp(-50px, -5vw, -30px);
  padding: clamp(70px, 10vw, 130px) 20px 36px;
  text-align: center;
  position: relative;
  z-index: 8;
}

.footer-content {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
}

.footer-cta-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.footer-cta-title {
  font-weight: 800;
  font-size: clamp(1.65rem, 4.5vw, 3rem);
  text-transform: uppercase;
  line-height: 1.1;
  letter-spacing: -0.01em;
  word-break: break-word;
  color: #0C0C0C !important;
  -webkit-text-fill-color: #0C0C0C !important;
  background: none !important;
}

.footer-cta-desc {
  font-size: clamp(0.9rem, 1.3vw, 1.15rem);
  color: #0C0C0C;
  opacity: 0.75;
  font-weight: 300;
  max-width: 500px;
}

.footer-btn {
  margin-top: 8px;
}

.footer-bottom {
  border-top: 1px solid rgba(12, 12, 12, 0.12);
  width: 100%;
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.footer-nav-links {
  display: flex;
  gap: clamp(12px, 2vw, 20px);
  flex-wrap: wrap;
  justify-content: center;
}

.footer-nav-link {
  color: #0C0C0C;
  opacity: 0.7;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.footer-nav-link:hover {
  color: #000000;
  opacity: 1;
}

.footer-copy {
  color: #0C0C0C;
  opacity: 0.55;
  font-weight: 300;
  font-size: 0.82rem;
}

@media (max-width: 640px) {
  .site-footer {
    padding: 60px 16px 28px;
    border-radius: 30px 30px 0 0;
    margin-top: -30px;
  }
  .footer-btn {
    width: 100%;
    max-width: 280px;
    padding: 12px 24px;
  }
}

/* ----------------------------------------------------
   SUBPAGE UNIVERSAL HEADER & LAYOUT
---------------------------------------------------- */
.subpage-hero {
  padding: clamp(95px, 14vh, 160px) clamp(16px, 4vw, 40px) clamp(30px, 5vh, 60px);
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.subpage-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 14px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 9999px;
  color: #D7E2EA;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.subpage-title {
  font-size: clamp(2rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.subpage-subtitle {
  font-size: clamp(0.92rem, 1.4vw, 1.2rem);
  color: #D7E2EA;
  opacity: 0.8;
  font-weight: 300;
  line-height: 1.55;
  max-width: 680px;
}

.subpage-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px) clamp(60px, 10vw, 120px);
  width: 100%;
}

/* ----------------------------------------------------
   FILTER BAR (OUTLINE PILL BUTTONS)
---------------------------------------------------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: clamp(24px, 4vw, 48px);
}

.filter-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 9999px;
  color: #D7E2EA;
  padding: 6px 16px;
  font-family: 'Kanit', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.5);
  color: #FFFFFF;
}

.filter-btn.active {
  background: #FFFFFF;
  border-color: #FFFFFF;
  color: #000000;
  font-weight: 600;
}

@media (max-width: 640px) {
  .filter-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding: 4px 4px 12px 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .filter-bar::-webkit-scrollbar {
    display: none;
  }
  .filter-btn {
    flex-shrink: 0;
    padding: 5px 13px;
    font-size: 0.72rem;
  }
}

/* ----------------------------------------------------
   ALL GAMES SHOWCASE GRID (SQUARE THUMBNAIL CARDS)
---------------------------------------------------- */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: clamp(14px, 2.5vw, 26px);
}

.game-item-card {
  background: transparent;
  border: 2px solid transparent;
  border-radius: 18px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1),
              background-color 0.28s ease,
              border-color 0.28s ease,
              box-shadow 0.28s ease;
  position: relative;
  cursor: pointer;
  text-decoration: none;
}

.game-item-card:hover {
  background: #16161E;
  border-color: #FFFFFF;
  transform: translateY(-5px);
  box-shadow: none;
}

.game-thumb-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  background: #0d0d12;
}

.game-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.game-item-card:hover .game-thumb {
  transform: scale(1.04);
}

/* Top-only frosted blur overlay in theme color */
.game-hover-overlay {
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  padding: 14px 14px 28px;
  background: linear-gradient(180deg, rgba(12, 12, 16, 0.96) 0%, rgba(12, 12, 16, 0.7) 65%, transparent 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  mask-image: linear-gradient(to bottom, black 0%, black 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 70%, transparent 100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 2;
  box-sizing: border-box;
}

.game-item-card:hover .game-hover-overlay {
  opacity: 1;
}

.game-hover-desc {
  font-size: 0.86rem;
  line-height: 1.4;
  color: #FFFFFF;
  margin: 0;
  font-weight: 500;
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: none;
  letter-spacing: 0.01em;
  transform: translateY(-3px);
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.game-item-card:hover .game-hover-desc {
  transform: translateY(0);
}

/* Centered Play Icon on Hover */
.game-hover-click {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
  z-index: 3;
}

.game-hover-click img {
  width: 222px;
  height: 222px;
  object-fit: contain;
  filter: none;
}

.game-item-card:hover .game-hover-click {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.game-card-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  width: 100%;
}

.game-tag-row {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.game-genre-tag {
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #D7E2EA;
  padding: 3px 10px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.game-item-card:hover .game-genre-tag {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
  color: #FFFFFF;
}

.game-title {
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #FFFFFF;
  line-height: 1.2;
  text-align: center;
  width: 100%;
  letter-spacing: 0.02em;
}

@media (max-width: 600px) {
  .games-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .game-item-card {
    padding: 8px;
    border-radius: 14px;
    gap: 8px;
  }
  .game-thumb-wrapper {
    border-radius: 10px;
  }
  .game-hover-overlay {
    padding: 10px 10px 20px;
  }
  .game-hover-desc {
    font-size: 0.74rem;
    line-height: 1.35;
    -webkit-line-clamp: 3;
  }
  .game-title {
    font-size: 0.84rem;
  }
}

@media (max-width: 360px) {
  .games-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* ----------------------------------------------------
   BLOG GRID, CONTROLS & ARTICLE READER
---------------------------------------------------- */
.subpage-badge.is-live {
  border-color: rgba(34, 197, 94, 0.4);
  background: rgba(34, 197, 94, 0.08);
  color: #4ade80;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #a855f7;
  box-shadow: none;
  display: inline-block;
  animation: pulse-dot 2s infinite ease-in-out;
}

.subpage-badge.is-live .status-dot {
  background: #22c55e;
  box-shadow: none;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
}

/* Controls: Filter & Search */
.blog-controls-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: clamp(24px, 4vw, 40px);
  width: 100%;
}

.blog-search-box {
  position: relative;
  width: 100%;
  max-width: 460px;
  display: flex;
  align-items: center;
}

.blog-search-box .search-icon {
  position: absolute;
  left: 16px;
  color: #8E9BAE;
  pointer-events: none;
}

.blog-search-box input {
  width: 100%;
  background: #111116;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 9999px;
  padding: 10px 42px 10px 44px;
  font-family: 'Kanit', sans-serif;
  font-size: 0.88rem;
  color: #FFFFFF;
  outline: none;
  transition: all 0.25s ease;
}

.blog-search-box input::placeholder {
  color: #6A778B;
}

.blog-search-box input:focus {
  border-color: rgba(255, 255, 255, 0.45);
  background: #16161D;
  box-shadow: none;
}

.search-clear-btn {
  position: absolute;
  right: 14px;
  background: none;
  border: none;
  color: #8E9BAE;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  transition: color 0.2s ease;
}

.search-clear-btn:hover {
  color: #FFFFFF;
}

/* Skeleton Loading Shimmer */
.skeleton-box {
  background: linear-gradient(90deg, #16161E 25%, #22222E 50%, #16161E 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.blog-skeleton-featured {
  display: flex;
  gap: 30px;
  width: 100%;
  align-items: center;
}

.blog-skeleton-featured .skeleton-img {
  flex: 1;
  height: 260px;
  border-radius: 18px;
}

.blog-skeleton-featured .skeleton-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.skeleton-tag { width: 90px; height: 22px; border-radius: 9999px; }
.skeleton-title { width: 85%; height: 32px; }
.skeleton-text { width: 100%; height: 16px; margin-bottom: 6px; }

.blog-skeleton-card {
  background: #111116;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.skeleton-card-img {
  width: 100%;
  height: 160px;
  border-radius: 12px;
}

/* Empty State */
.blog-empty-state {
  text-align: center;
  padding: 60px 20px;
  background: #111116;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  max-width: 540px;
  margin: 0 auto;
}

.empty-state-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.blog-empty-state h3 {
  font-size: 1.3rem;
  color: #FFFFFF;
  margin-bottom: 6px;
}

.blog-empty-state p {
  color: #8E9BAE;
  font-size: 0.9rem;
}

/* Featured Blog Post Card */
.blog-featured {
  background: #111116;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: clamp(18px, 3vw, 32px);
  padding: clamp(18px, 3vw, 36px);
  margin-bottom: clamp(28px, 4vw, 48px);
  display: flex;
  gap: clamp(18px, 3vw, 40px);
  align-items: center;
  position: relative;
  transition: border-color 0.3s ease;
}

.blog-featured:hover {
  border-color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 800px) {
  .blog-featured {
    flex-direction: column;
    padding: 18px 16px;
  }
}

.blog-featured-img-col {
  flex: 1;
  width: 100%;
}

.blog-featured-img-link {
  display: block;
  overflow: hidden;
  border-radius: clamp(12px, 2vw, 20px);
}

.blog-featured-img {
  width: 100%;
  height: clamp(200px, 26vw, 340px);
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.blog-featured:hover .blog-featured-img {
  transform: scale(1.03);
}

.blog-featured-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: #D7E2EA;
  opacity: 0.75;
}

.blog-category-tag {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.blog-featured-title {
  font-size: clamp(1.3rem, 2.2vw, 2.1rem);
  font-weight: 800;
  line-height: 1.18;
  text-transform: uppercase;
  color: #FFFFFF;
}

.blog-title-link {
  color: #FFFFFF;
  text-decoration: none;
  transition: color 0.2s ease;
}

.blog-title-link:hover {
  color: #D7E2EA;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.blog-featured-desc {
  font-size: clamp(0.88rem, 1.1vw, 1.05rem);
  line-height: 1.55;
  color: #D7E2EA;
  opacity: 0.85;
  font-weight: 300;
}

.blog-featured-footer {
  margin-top: 6px;
}

/* Blog Grid & Cards */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: clamp(16px, 2.5vw, 28px);
}

.blog-card {
  background: #111116;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: none;
}

.blog-card-img-link {
  display: block;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #000000;
}

.blog-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.blog-card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.blog-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.25;
  color: #FFFFFF;
}

.blog-card-desc {
  font-size: 0.85rem;
  color: #D7E2EA;
  opacity: 0.78;
  line-height: 1.48;
  font-weight: 300;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-read-more {
  margin-top: auto;
  padding-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #FFFFFF;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.blog-read-more:hover {
  opacity: 0.8;
  transform: translateX(3px);
}

@media (max-width: 600px) {
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ====================================================
   ARTICLE READER PAGE (POST.HTML)
==================================================== */
.blog-post-body {
  background-color: #0C0C0C;
}

/* Top Reading Progress Bar */
.reading-progress-track {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: transparent;
  z-index: 9999;
}

.reading-progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #B600A8 0%, #7621B0 50%, #BE4C00 100%);
  box-shadow: none;
  transition: width 0.1s linear;
}

/* Article Layout Container */
.article-reader-container {
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(90px, 14vh, 140px) clamp(18px, 4vw, 36px) clamp(60px, 8vw, 100px);
  width: 100%;
}

/* Breadcrumbs */
.article-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: #8E9BAE;
  margin-bottom: 24px;
  overflow-x: auto;
  white-space: nowrap;
}

.article-breadcrumbs a {
  color: #8E9BAE;
  text-decoration: none;
  transition: color 0.2s ease;
}

.article-breadcrumbs a:hover {
  color: #FFFFFF;
}

.crumb-separator {
  opacity: 0.4;
}

.crumb-current {
  color: #FFFFFF;
  opacity: 0.9;
  text-overflow: ellipsis;
  overflow: hidden;
  max-width: 320px;
}

/* Article Header */
.article-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: clamp(24px, 4vw, 36px);
}

.article-meta-top {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: #8E9BAE;
}

.meta-dot {
  opacity: 0.4;
}

.article-title {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.article-excerpt-lead {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.6;
  color: #D7E2EA;
  opacity: 0.9;
  font-weight: 300;
  border-left: 3px solid #7621B0;
  padding-left: 16px;
  margin: 6px 0 12px 0;
}

/* Author & Share Bar */
.article-author-share-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 8px;
}

@media (max-width: 580px) {
  .article-author-share-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}

.article-author-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: #111116;
  flex-shrink: 0;
}

.author-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-name {
  font-weight: 600;
  font-size: 0.92rem;
  color: #FFFFFF;
}

.author-role {
  font-size: 0.76rem;
  color: #8E9BAE;
  font-weight: 300;
}

.article-share-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.share-label {
  font-size: 0.78rem;
  color: #8E9BAE;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-right: 4px;
}

.share-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #16161D;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #D7E2EA;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.share-btn:hover {
  background: #FFFFFF;
  color: #000000;
  border-color: #FFFFFF;
  transform: translateY(-2px);
}

/* Featured Media */
.article-featured-media {
  margin-bottom: clamp(28px, 4vw, 44px);
  width: 100%;
}

.article-hero-img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: block;
}

.article-img-caption {
  font-size: 0.8rem;
  color: #8E9BAE;
  text-align: center;
  margin-top: 8px;
  font-style: italic;
}

/* Portable Text Content Styles */
.article-rich-content {
  color: #D7E2EA;
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  line-height: 1.75;
  font-weight: 300;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.article-rich-content .article-h2 {
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  font-weight: 800;
  text-transform: uppercase;
  color: #FFFFFF;
  margin-top: 24px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.article-rich-content .article-h3 {
  font-size: clamp(1.2rem, 1.8vw, 1.45rem);
  font-weight: 700;
  color: #FFFFFF;
  margin-top: 16px;
  line-height: 1.3;
}

.article-rich-content .article-h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #FFFFFF;
  margin-top: 12px;
}

.article-rich-content .article-paragraph {
  margin: 0;
}

.article-rich-content .article-quote {
  border-left: 4px solid #B600A8;
  background: rgba(182, 0, 168, 0.05);
  padding: 16px 20px;
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: #FFFFFF;
  margin: 12px 0;
}

.article-rich-content .article-list {
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.article-rich-content .article-list li {
  line-height: 1.6;
}

.article-rich-content .inline-code {
  background: #191924;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 2px 6px;
  border-radius: 6px;
  font-family: monospace;
  font-size: 0.88em;
  color: #f472b6;
}

.article-rich-content .article-link {
  color: #c084fc;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.article-rich-content .article-link:hover {
  color: #e879f9;
}

/* Callout Boxes */
.article-callout {
  background: #111116;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 18px 20px;
  margin: 14px 0;
}

.article-callout.callout-tip {
  border-left: 4px solid #a855f7;
  background: rgba(168, 85, 247, 0.06);
}

.article-callout.callout-metric {
  border-left: 4px solid #22c55e;
  background: rgba(34, 197, 94, 0.06);
}

.article-callout.callout-warning {
  border-left: 4px solid #f59e0b;
  background: rgba(245, 158, 11, 0.06);
}

.article-callout.callout-info {
  border-left: 4px solid #3b82f6;
  background: rgba(59, 130, 246, 0.06);
}

.callout-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  color: #FFFFFF;
  margin-bottom: 6px;
}

.callout-body p {
  font-size: 0.92rem;
  line-height: 1.55;
  color: #D7E2EA;
  margin: 0;
}

/* Code Snippet Blocks */
.article-code-container {
  background: #08080C;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  overflow: hidden;
  margin: 16px 0;
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: #111118;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.code-lang {
  font-size: 0.72rem;
  font-weight: 600;
  color: #8E9BAE;
  letter-spacing: 0.06em;
}

.code-copy-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  color: #D7E2EA;
  font-size: 0.7rem;
  padding: 2px 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.code-copy-btn:hover {
  background: #FFFFFF;
  color: #000000;
}

.article-code-pre {
  padding: 16px;
  margin: 0;
  overflow-x: auto;
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #a5f3fc;
}

/* Inline Article Images */
.article-inline-image-box {
  margin: 20px 0;
  width: 100%;
}

.article-inline-img {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: block;
}

/* Author Bio Footer Card */
.article-author-bio-card {
  display: flex;
  gap: 20px;
  background: #111116;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 24px;
  margin-top: 48px;
  align-items: center;
}

@media (max-width: 600px) {
  .article-author-bio-card {
    flex-direction: column;
    text-align: center;
  }
}

.bio-avatar-col {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.bio-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bio-content-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bio-author-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: #FFFFFF;
}

.bio-author-role {
  font-size: 0.8rem;
  color: #a855f7;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.bio-author-desc {
  font-size: 0.88rem;
  color: #8E9BAE;
  line-height: 1.5;
  margin-top: 4px;
}

/* In-Article Conversion CTA Card */
.article-cta-card {
  margin-top: 40px;
  background: radial-gradient(circle at 100% 0%, rgba(182, 0, 168, 0.25) 0%, #111116 70%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  padding: clamp(24px, 4vw, 40px);
  text-align: center;
}

.article-cta-inner {
  max-width: 580px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.article-cta-heading {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 800;
  color: #FFFFFF;
  text-transform: uppercase;
  line-height: 1.15;
}

.article-cta-sub {
  font-size: 0.95rem;
  color: #D7E2EA;
  opacity: 0.85;
  font-weight: 300;
}

.article-cta-btn {
  margin-top: 10px;
}

/* Related Articles Section */
.related-articles-section {
  margin-top: clamp(60px, 8vw, 90px);
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.related-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 900;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: clamp(24px, 4vw, 36px);
}


/* ----------------------------------------------------
   REVIEWS SECTION (CLEAN AVATAR CARDS & SLIDER)
---------------------------------------------------- */
.reviews-section {
  background-color: #0C0C0C;
  border-radius: clamp(32px, 5vw, 60px) clamp(32px, 5vw, 60px) 0 0;
  margin-top: clamp(-50px, -5vw, -30px);
  padding: clamp(70px, 10vw, 120px) clamp(16px, 4vw, 40px) clamp(60px, 8vw, 80px);
  position: relative;
  z-index: 7;
  width: 100%;
}

@media (max-width: 768px) {
  .reviews-section {
    padding: 60px 16px 40px;
    border-radius: 30px 30px 0 0;
    margin-top: -30px;
  }
}

.reviews-feed-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0;
  position: relative;
}

.reviews-feed {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 16px 6px 28px 6px;
  margin: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.reviews-feed::-webkit-scrollbar {
  display: none;
}

.review-feed-card {
  flex: 0 0 calc(33.333% - 14px);
  min-width: 280px;
  box-sizing: border-box;
  scroll-snap-align: start;
  background: #111116;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  padding: clamp(20px, 3vw, 30px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}

.review-feed-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: none;
}

.review-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.15);
  box-shadow: none;
  flex-shrink: 0;
}

.review-author-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.review-author-name {
  font-size: 1rem;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.2;
}

.review-author-role {
  font-size: 0.75rem;
  color: #D7E2EA;
  opacity: 0.65;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.review-card-quote {
  font-size: 0.92rem;
  line-height: 1.6;
  color: #D7E2EA;
  opacity: 0.9;
  font-weight: 300;
  margin: 0;
}

.reviews-bottom-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: clamp(24px, 4vw, 36px);
}

.review-arrow-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #111116;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
}

.review-arrow-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #FFFFFF;
  transform: scale(1.08);
}

@media (max-width: 960px) {
  .review-feed-card {
    flex: 0 0 calc(50% - 10px);
    min-width: 260px;
  }
}

@media (max-width: 640px) {
  .reviews-feed {
    gap: 12px;
    padding: 12px 4px 22px 4px;
  }
  .review-feed-card {
    flex: 0 0 86%;
    min-width: 240px;
    padding: 18px 16px;
  }
}

/* ----------------------------------------------------
   GHOST UI MODAL FOR GAMES & INTERACTIVE IFRAME PLAYER
---------------------------------------------------- */
.demo-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.demo-modal-backdrop.is-open {
  display: flex;
  opacity: 1;
}

.modal-mobile-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: default;
  animation: modalPhonePop 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPhonePop {
  0% { transform: scale(0.9) translateY(20px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

/* Smartphone Bezel */
.modal-mobile-phone {
  width: min(340px, 86vw);
  height: min(650px, 80vh);
  border: 4px solid #2a2a32;
  outline: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 42px;
  background-color: #070709;
  position: relative;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), height 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Landscape Mode for phone */
.modal-mobile-phone.is-landscape {
  width: min(660px, 92vw);
  height: min(380px, 78vh);
}

.modal-mobile-phone.is-landscape .modal-mobile-notch {
  left: 10px;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
}

.modal-mobile-notch {
  position: absolute;
  top: 10px;
  width: 64px;
  height: 12px;
  background-color: #000000;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 20;
  transition: all 0.3s ease;
}

.modal-mobile-screen {
  width: 100%;
  height: 100%;
  border-radius: 36px;
  background: radial-gradient(circle at 50% 25%, #181828 0%, #0d0d16 65%, #060609 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.modal-game-canvas-area {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0;
  box-sizing: border-box;
}

/* Game Iframe */
.modal-game-iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 36px;
  background: transparent;
  display: block;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.modal-game-iframe.is-loaded {
  opacity: 1;
}

/* Loading Spinner */
.modal-game-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  z-index: 5;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-game-loader.is-hidden {
  opacity: 0;
}

.loader-spinner-ring {
  width: 44px;
  height: 44px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: #00FFCC;
  border-right-color: #A855F7;
  border-radius: 50%;
  animation: spinLoader 0.8s linear infinite;
  box-shadow: none;
}

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

.loader-text {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #D7E2EA;
  opacity: 0.85;
}

.modal-canvas-glow {
  display: none;
}

/* Mobile Floating Exit Button */
.modal-mobile-exit-btn {
  display: none;
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 2100;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: rgba(18, 18, 26, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  color: #D7E2EA;
  font-family: 'Kanit', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: none;
  transition: all 0.2s ease;
}

.modal-mobile-exit-btn:hover,
.modal-mobile-exit-btn:active {
  background: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 768px) {
  .demo-modal-backdrop {
    padding: 0;
    background: #060609;
  }

  .modal-mobile-exit-btn {
    display: flex !important;
  }

  .modal-simulator-toolbar {
    position: fixed;
    top: 16px;
    right: 16px;
    width: auto;
    max-width: none;
    z-index: 2200;
  }

  .modal-game-info-badge {
    display: none;
  }

  .modal-mobile-container {
    width: 100vw;
    height: 100vh;
    height: 100svh;
    margin: 0;
    padding: 0;
    animation: none;
  }

  .modal-mobile-phone {
    width: 100vw !important;
    height: 100vh !important;
    height: 100svh !important;
    max-width: 100vw;
    max-height: 100vh;
    border: none;
    border-radius: 0;
    box-shadow: none;
    outline: none;
    padding: 0;
    background-color: transparent;
  }

  .modal-mobile-notch {
    display: none !important;
  }

  .modal-mobile-screen {
    width: 100vw;
    height: 100vh;
    height: 100svh;
    border-radius: 0;
    background: radial-gradient(circle at 50% 20%, #1a1a2e 0%, #0d0d14 60%, #050508 100%);
  }

  .modal-game-iframe {
    border-radius: 0 !important;
  }

  .modal-game-canvas-area {
    padding: 0;
  }
}
