/* =============================================
   SENTINEL — Dark Luxury Editorial (REFACTORED)
   ============================================= */

/* --- CSS Custom Properties --- */
:root {
  --sidebar-width-expanded: 260px;
  --sidebar-width-collapsed: 80px;
  --transition-default: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-sidebar: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: #050505;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
}

img, video {
  max-width: 100%;
  display: block;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 4px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 2px;
}

/* --- Selection --- */
::selection {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* =============================================
   SIDEBAR — FIXED POSITION, FULL HEIGHT
   ============================================= */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width-expanded);
  min-width: var(--sidebar-width-expanded);
  height: 100vh;
  background: rgba(255, 255, 255, 0.02);
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 100;
  display: flex;
  flex-direction: column;
  transition: width var(--transition-sidebar), min-width var(--transition-sidebar);
  overflow: hidden;
}

.sidebar.collapsed {
  width: var(--sidebar-width-collapsed);
  min-width: var(--sidebar-width-collapsed);
}

.sidebar-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0 16px;
  min-width: 0;
  width: 100%;
}

.sidebar.collapsed .sidebar-inner {
  padding: 0 12px;
}

/* Collapse toggle — ALWAYS position:absolute, never changes */
.sidebar-collapse {
  position: absolute;
  top: 16px;
  right: 12px;
  z-index: 10;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.3);
  transition: all 0.25s ease;
}

.sidebar-collapse:hover {
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.05);
}

.sidebar.collapsed .sidebar-collapse {
  top: 12px;
  right: auto;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 36px;
}

.sidebar.collapsed .sidebar-collapse svg {
  transform: rotate(180deg);
}

/* Sidebar Logo Video — hidden in collapsed state */
.sidebar-logo {
  width: 100%;
  max-width: 160px;
  margin: 24px auto 32px;
}

.sidebar.collapsed .sidebar-logo {
  display: none;
}

.sidebar.collapsed .logo-text {
  display: none !important;
}

.sidebar-video {
  width: 100%;
  height: auto;
  display: block;
}

/* Navigation — first item gets top margin to clear the collapse button */
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  margin-top: 60px; /* Clear the absolute collapse button */
}

.sidebar.collapsed .sidebar-nav {
  margin-top: 56px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.5);
  transition: all 0.25s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.04);
}

.nav-link.active {
  color: rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.06);
}

.nav-link--dimmed {
  opacity: 0.35;
  pointer-events: none;
}

.nav-icon {
  flex-shrink: 0;
  opacity: 0.7;
  min-width: 20px;
  width: 20px;
  height: 20px;
}

/* Collapsed: hide text labels, keep icons centered & visible */
.sidebar.collapsed .nav-link span {
  display: none !important;
}

.sidebar.collapsed .nav-link {
  justify-content: center;
  padding: 12px 0;
  gap: 0;
}

.sidebar.collapsed .nav-icon {
  opacity: 1 !important;
  display: block !important;
  visibility: visible !important;
  width: 22px;
  height: 22px;
  margin: 0 auto;
  flex-shrink: 0;
}

/* Highlight active nav in collapsed state */
.sidebar.collapsed .nav-link.active {
  background: rgba(255, 255, 255, 0.08);
}

.sidebar.collapsed .nav-link.active .nav-icon {
  opacity: 1;
  color: #fff;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.15));
}

/* Sidebar Footer — collapsed: vertical stack at bottom */
.sidebar-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar.collapsed .sidebar-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
}

.lang-btn {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.3);
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.25s ease;
}

.lang-btn:hover {
  color: rgba(255, 255, 255, 0.7);
}

.lang-btn.active {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.06);
}

.lang-divider {
  width: 1px;
  height: 12px;
  background: rgba(255, 255, 255, 0.1);
}

/* Collapsed language: show only active lang in a micro-box */
.sidebar.collapsed .lang-switcher {
  gap: 0;
}

.sidebar.collapsed .lang-btn {
  font-size: 11px;
  letter-spacing: 0;
  padding: 4px 6px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
}

.sidebar.collapsed .lang-btn:not(.active) {
  display: none;
}

.sidebar.collapsed .lang-divider {
  display: none;
}

/* Help trigger */
.help-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.3);
  transition: all 0.25s ease;
}

.help-trigger:hover {
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.05);
}

/* --- Mobile Header --- */
.mobile-header {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 99;
  background: rgba(5, 5, 5, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 14px 20px;
  align-items: center;
  justify-content: space-between;
}

.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s;
}

.menu-toggle:hover {
  color: rgba(255, 255, 255, 0.9);
}

.mobile-brand {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

.mobile-lang {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Sidebar Overlay (mobile) */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 99;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.sidebar-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* =============================================
   MAIN CONTENT — FULL-WIDTH CENTERED WRAPPER
   Uses padding-left for sidebar offset with CSS variables
   ============================================= */
.main-content {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  margin: 0 auto;
  padding: 40px 24px;
  padding-left: calc(var(--sidebar-width-expanded) + 24px);
  overflow-y: auto;
  overflow-x: hidden;
  transition: padding-left var(--transition-default);
}

body:has(.sidebar.collapsed) .main-content {
  padding-left: calc(var(--sidebar-width-collapsed) + 24px);
}

/* Content container — centered, max-width constrained */
.content-container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

@media (min-width: 1024px) {
  .content-container {
    padding-left: 3rem;
    padding-right: 3rem;
  }
}

/* =============================================
   TAB SYSTEM
   ============================================= */
.tab-content {
  display: none;
  width: 100%;
}

.tab-content.active {
  display: block;
}

/* =============================================
   HOME TAB — PERFECT CENTER (FULL VIEWPORT)
   ============================================= */
#home.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  max-width: 600px;
  margin: auto;
  min-height: 100vh;
}

.home-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 40px;
  padding-top: 0;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

/* Avatar Block */
.avatar-block {
  display: flex;
  justify-content: center;
}

.avatar-frame {
  position: relative;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.avatar-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.avatar-img.active {
  opacity: 1;
}

.avatar-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  pointer-events: none;
}

/* Home Text */
.home-text {
  max-width: 600px;
}

.home-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.05;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 20px;
}

.home-desc {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.5);
  max-width: 520px;
  font-weight: 400;
  margin: 0 auto;
}

/* =============================================
   HOME BIRTHDAY COUNTDOWN — Integrated Widget
   ============================================= */
.home-bday {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

.home-bday-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.home-bday-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.7);
}

.home-bday-header svg {
  color: rgba(255, 255, 255, 0.4);
  flex-shrink: 0;
}

.home-bday-progress-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  overflow: hidden;
}

.home-bday-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #00e676, #00c853);
  border-radius: 3px;
  transition: width 1s linear;
  box-shadow: 0 0 12px rgba(0, 230, 118, 0.3);
}

.home-bday-countdown {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.home-bday-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.home-bday-number {
  font-family: 'Syne', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.home-bday-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.25);
}

.home-bday-status {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: rgba(0, 230, 118, 0.7);
  text-align: center;
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Social Grid */
.social-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  width: 100%;
  max-width: 600px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.6);
  transition: all 0.25s ease;
}

.social-link:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.9);
}

.social-link svg {
  flex-shrink: 0;
  transition: opacity 0.2s;
}

/* =============================================
   PROJECTS SECTION — CENTERED GRID
   ============================================= */
.section {
  padding: 80px 0;
  width: 100%;
}

.section-header {
  margin-bottom: 48px;
}

.section-label {
  font-family: 'Syne', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.25);
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.15;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 16px;
}

.section-desc {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.45);
  max-width: 580px;
}

#projects.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Projects Grid — centered with justify-content/items */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  width: 100%;
  justify-content: center;
  justify-items: center;
}

/* Project Card */
.project-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  width: 100%;
  max-width: 400px;
}

.project-card:hover {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
}

.project-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.03);
}

.project-body {
  padding: 24px 28px 28px;
}

.project-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 12px;
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
}

.project-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 10px;
  line-height: 1.3;
}

.project-desc {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 20px;
}

.project-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.project-year {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.25);
}

.project-arrow {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.2);
  transition: color 0.2s, transform 0.2s;
}

.project-card:hover .project-arrow {
  color: rgba(255, 255, 255, 0.6);
  transform: translateX(4px);
}

/* Placeholder Card */
.project-card--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.06);
  background: transparent;
}

.project-card--placeholder:hover {
  border-color: rgba(255, 255, 255, 0.1);
  background: transparent;
}

.placeholder-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.2);
  margin-left: auto;
  margin-right: auto;
}

/* =============================================
   GAMES & MOVIES SECTIONS — CENTERED
   ============================================= */
#games.active,
#movies.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

#games .content-container,
#movies .content-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#games .section-header,
#movies .section-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* =============================================
   MEDIA GRID — Games & Movies
   ============================================= */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  justify-content: center;
  justify-items: center;
  align-content: center;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.media-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  width: 100%;
  max-width: 320px;
}

.media-card:hover {
  border-color: rgba(239, 68, 68, 0.2);
  background: rgba(255, 255, 255, 0.04);
  transform: scale(1.03);
}

.media-card:hover .media-banner img {
  transform: scale(1.05);
  filter: brightness(1.1);
}

.media-banner img {
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), filter 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =============================================
   PREMIUM BANNERS
   ============================================= */
.media-banner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.media-banner--game {
  aspect-ratio: 16 / 9;
}

.media-banner--movie {
  aspect-ratio: 2 / 3;
}

.media-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, 
    rgba(5, 5, 10, 0.7) 0%, 
    rgba(5, 5, 10, 0.3) 50%, 
    rgba(5, 5, 10, 0.7) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.media-banner::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(transparent, rgba(5, 5, 5, 0.8));
  z-index: 2;
  pointer-events: none;
}

.media-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.media-body {
  padding: 18px 20px 20px;
  position: relative;
  z-index: 1;
}

.media-title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.35;
}

.media-subtitle {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
  margin-top: 4px;
  letter-spacing: 0.05em;
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  padding: 40px 0 60px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  width: 100%;
}

.site-footer p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.2);
  letter-spacing: 0.05em;
}

/* =============================================
   MODAL — FAQ Accordion
   ============================================= */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 200;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal {
  position: relative;
  max-width: 460px;
  width: 90%;
  background: rgba(20, 20, 20, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 48px 40px 40px;
  transform: scale(0.92) translateY(20px);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.35s ease;
}

.modal--faq {
  max-width: 520px;
}

.modal-overlay.active .modal {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.3);
  transition: all 0.2s;
}

.modal-close:hover {
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.05);
}

.modal-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 20px;
}

.modal-title {
  font-family: 'Syne', sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.9);
}

/* FAQ Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.25s ease;
}

.faq-item.active {
  border-color: rgba(255, 255, 255, 0.12);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.7);
  background: transparent;
  transition: all 0.25s ease;
  text-align: left;
  cursor: pointer;
}

.faq-question::after {
  content: '+';
  font-size: 18px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.25);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
  content: '−';
  color: rgba(255, 255, 255, 0.6);
}

.faq-question:hover {
  color: rgba(255, 255, 255, 0.9);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), padding 0.35s ease;
  padding: 0 18px;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.5);
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding: 0 18px 18px;
}

/* =============================================
   DETAIL VIEW MODAL — Refined & Minimal
   ============================================= */
#detailOverlay {
  z-index: 300;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

#detailOverlay .modal-detail {
  position: relative;
  max-width: 440px;
  width: 90%;
  background: rgba(15, 15, 18, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  transform: translateY(24px);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

#detailOverlay.active .modal-detail {
  transform: translateY(0);
  opacity: 1;
}

/* Detail Banner */
.detail-banner {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.detail-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-banner-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, 
    rgba(15, 15, 18, 0) 35%, 
    rgba(15, 15, 18, 0.6) 70%,
    rgba(15, 15, 18, 0.95) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.detail-title {
  position: absolute;
  bottom: 16px;
  left: 20px;
  right: 20px;
  font-family: 'Syne', sans-serif;
  font-size: clamp(18px, 3vw, 22px);
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
  line-height: 1.2;
  z-index: 2;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.detail-subtitle {
  position: absolute;
  bottom: 0;
  left: 20px;
  right: 20px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  z-index: 2;
  margin-bottom: 16px;
}

/* Close button */
.detail-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  color: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.2s ease;
}

.detail-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* Stats Panel — inline text style */
.detail-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 12px;
  padding: 16px 20px 4px;
}

.detail-stat {
  font-family: 'Courier New', 'SF Mono', 'Fira Code', monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
  white-space: nowrap;
  position: relative;
}

.detail-stat + .detail-stat::before {
  content: '·';
  position: absolute;
  left: -8px;
  color: rgba(255, 255, 255, 0.15);
}

/* CTA Button */
.detail-cta-wrapper {
  padding: 12px 20px 20px;
}

.detail-cta {
  display: block;
  width: 100%;
  padding: 12px 20px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
}

.detail-cta:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
}

/* Detail Modal — responsive */
@media (max-width: 768px) {
  #detailOverlay .modal-detail {
    max-width: 94%;
    border-radius: 14px;
  }
  .detail-title {
    left: 14px;
    right: 14px;
    bottom: 14px;
    font-size: 17px;
  }
  .detail-stats {
    padding: 14px 14px 2px;
    gap: 2px 10px;
  }
  .detail-stat {
    font-size: 9px;
  }
  .detail-cta-wrapper {
    padding: 8px 14px 14px;
  }
}

/* =============================================
   KEYFRAMES & PAGE TRANSITIONS
   ============================================= */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tab-content.active {
  animation: fadeInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes shimmer {
  100% { transform: translateX(100%); }
}

.skeleton-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  overflow: hidden;
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.skeleton-banner {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: rgba(255, 255, 255, 0.03);
  position: relative;
  overflow: hidden;
}

.skeleton-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.03), transparent);
  transform: translateX(-100%);
  animation: shimmer 1.5s infinite;
}

.skeleton-line {
  height: 14px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 4px;
  margin: 12px 16px;
}

.skeleton-line--short {
  width: 60%;
}

/* =============================================
   RESPONSIVE
   ============================================= */

/* Tablet & small desktop */
@media (max-width: 1024px) {
  .section {
    padding: 60px 0;
  }
  .site-footer {
    padding: 32px 0 48px;
  }
  .social-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .media-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

/* Mobile — Bulletproof responsive structure */
@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 260px;
    min-width: 260px;
    height: 100vh;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar.collapsed {
    width: 260px;
    min-width: 260px;
    transform: translateX(-100%);
  }

  .sidebar.collapsed .sidebar-inner {
    padding: 0 20px;
  }

  .sidebar.collapsed .sidebar-nav {
    margin-top: 60px;
  }

  /* On mobile, collapsed sidebar shows full text labels */
  .sidebar.collapsed .nav-link span {
    display: inline !important;
  }

  .sidebar.collapsed .nav-link {
    justify-content: flex-start;
    padding: 12px 16px;
    gap: 14px;
  }

  .sidebar.collapsed .nav-icon {
    opacity: 0.7;
    display: block;
    visibility: visible;
    width: 20px;
    height: 20px;
    margin: 0;
  }

  .sidebar.collapsed .sidebar-footer {
    flex-direction: row;
    gap: 0;
  }

  .sidebar.collapsed .lang-divider {
    display: block;
  }

  .sidebar.collapsed .sidebar-logo {
    display: block;
    max-width: 160px;
    margin: 24px auto 32px;
  }

  .sidebar.collapsed .sidebar-collapse {
    top: 16px;
    right: 12px;
    left: auto;
    transform: none;
  }

  .sidebar.collapsed .sidebar-collapse svg {
    transform: rotate(0deg);
  }

  .sidebar-collapse {
    display: none;
  }

  .mobile-header {
    display: flex;
  }

  .sidebar-overlay {
    display: block;
  }

  .main-content {
    padding: 0 24px;
    padding-top: 68px;
    padding-left: 24px;
  }

  body:has(.sidebar.collapsed) .main-content {
    padding-left: 24px;
  }

  .section {
    padding: 40px 0;
  }

  .content-container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .home-layout {
    gap: 32px;
    padding-top: 20px;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .avatar-frame {
    width: 160px;
    height: 160px;
  }

  .social-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .media-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }

  .site-footer {
    padding: 24px 0 36px;
  }

  .project-body {
    padding: 20px;
  }

  .home-bday-number {
    font-size: 22px;
  }

  .home-bday-countdown {
    gap: 14px;
  }
}

/* =============================================
   GAMES — COLLECTION SHELVES & PROGRESS
   ============================================= */

.game-collection {
  margin-bottom: 32px;
}

.game-collection-header {
  padding: 8px 0 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 16px;
}

.game-collection-title {
  font-family: 'Syne', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.game-collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

/* Search Bar */
.games-search-bar {
  margin-bottom: 24px;
}

.games-search-input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  outline: none;
  transition: all 0.25s ease;
}

.games-search-input:focus {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.games-search-input::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

/* Progress Bar on Cards */
.media-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
  z-index: 5;
}

.media-progress-fill {
  height: 100%;
  background: #c0392b;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 0 2px 0 0;
}

.media-progress-text {
  position: absolute;
  bottom: 6px;
  right: 6px;
  font-family: 'Courier New', 'SF Mono', monospace;
  font-size: 9px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  background: rgba(0, 0, 0, 0.6);
  padding: 2px 6px;
  border-radius: 4px;
  z-index: 6;
  letter-spacing: 0.04em;
  backdrop-filter: blur(4px);
}

.games-empty {
  text-align: center;
  padding: 60px 20px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.2);
  letter-spacing: 0.04em;
}

/* =============================================
   ACHIEVEMENTS — Detail Modal
   ============================================= */

.detail-achievements {
  padding: 8px 20px 4px;
}

.detail-achievements-header {
  font-family: 'Courier New', 'SF Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.3);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.detail-achievements-loading,
.detail-achievements-empty {
  text-align: center;
  padding: 16px 0;
  font-family: 'Courier New', 'SF Mono', monospace;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.15);
  letter-spacing: 0.06em;
}

.detail-achievements-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 200px;
  overflow-y: auto;
  padding-right: 4px;
}

.ach-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  transition: background 0.2s;
}

.ach-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.ach-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.04);
}

.ach-icon--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Syne', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-transform: uppercase;
}

.ach-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.ach-name {
  font-family: 'Courier New', 'SF Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ach-desc {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.25);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Responsive for game collections */
@media (max-width: 768px) {
  .game-collection-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
  }
  .detail-achievements {
    padding: 8px 14px 4px;
  }
  .detail-achievements-list {
    max-height: 160px;
  }
}

@media (max-width: 480px) {
  .social-grid {
    grid-template-columns: 1fr;
  }

  .home-title {
    font-size: 28px;
  }

  .section-title {
    font-size: 24px;
  }

  .avatar-frame {
    width: 140px;
    height: 140px;
  }

  .media-grid {
    grid-template-columns: 1fr;
  }
  
  .home-bday-countdown {
    gap: 10px;
  }
  
  .home-bday-number {
    font-size: 20px;
  }
}
