@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;700&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg: #0a0a0a;
  --surface: #141414;
  --surface-hover: #1e1e1e;
  --border: #222222;
  --border-active: #3a3a3a;
  --text: #f5f5f5;
  --muted: #8e8e93;
  --accent: #34aadb;
  --accent-hover: #5dbfe8;
  --accent-rgb: 52, 170, 219;
  
  --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 8px;
  --container-width: 1100px;
}

/* Base Styles & Reset */
.hidden {
  display: none !important;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  background-color: var(--bg);
}

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 5px;
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--border-active);
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul {
  list-style: none;
}

/* Focus outline for accessibility */
*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

/* Layout Utilities */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
  border-bottom: 1px solid var(--border);
}

.section-header {
  margin-bottom: 48px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 12px;
}

.section-subtitle {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--muted);
}

/* Header & Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: 72px;
  display: flex;
  align-items: center;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo span {
  color: var(--text);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  position: relative;
  padding: 6px 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--text);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link.active::after, .nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-socials {
  display: flex;
  align-items: center;
  gap: 16px;
}

.social-icon-btn {
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.social-icon-btn:hover {
  color: var(--text);
  border-color: var(--accent);
  background-color: rgba(52, 170, 219, 0.05);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--text);
  transition: var(--transition);
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  background: radial-gradient(circle at 80% 30%, rgba(52, 170, 219, 0.03) 0%, transparent 50%);
  overflow: hidden;
}

.hero-content {
  width: 100%;
}

.hero-lanyard-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 2;
  pointer-events: none;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

@media (max-width: 768px) {
  .hero-lanyard-container {
    display: none !important;
  }
}

#lanyard-canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
  touch-action: none;
  pointer-events: none;
}

#lanyard-canvas:active {
  cursor: grabbing;
}

.lanyard-hint {
  position: absolute;
  bottom: 225px;
  left: 80%;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}

.lanyard-hint.visible {
  opacity: 1;
}

.lanyard-hint p {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--accent);
  font-weight: 600;
  text-align: center;
  letter-spacing: 1px;
  animation: pulse-hint 1.5s ease-in-out infinite;
}

@keyframes pulse-hint {
  0%, 100% {
    transform: translateY(0);
    opacity: 0.7;
  }
  50% {
    transform: translateY(-10px);
    opacity: 1;
  }
}

@media (min-width: 768px) {
  .hero-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
  }
}

.hero-title {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero-title span {
  color: var(--accent);
  display: inline-block;
  position: relative;
}

/* Blinking cursor effect */
.hero-title span::after {
  content: '';
  display: inline-block;
  width: 3px;
  height: 0.9em;
  background-color: var(--accent);
  margin-left: 4px;
  vertical-align: middle;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  from, to { background-color: transparent }
  50% { background-color: var(--accent); }
}

.hero-tagline {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--muted);
  max-width: 600px;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 72px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: var(--radius);
  transition: var(--transition);
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--accent);
  color: #000;
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
}

.btn-secondary {
  border-color: var(--border);
  color: var(--text);
  background-color: transparent;
}

.btn-secondary:hover {
  border-color: var(--accent);
  background-color: rgba(52, 170, 219, 0.05);
  transform: translateY(-2px);
}

.btn-text {
  padding: 12px 0;
  color: var(--accent);
  gap: 6px;
}

.btn-text:hover {
  color: var(--accent-hover);
}

/* Stats Counter */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 600px;
  border-top: 1px solid var(--border);
  padding-top: 40px;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.05em;
}

/* Projects Section */
.filters-container {
  display: flex;
  gap: 12px;
  margin-bottom: 40px;
  overflow-x: auto;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
}

.filter-btn {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 8px 16px;
  border-radius: 4px;
  border: 1px solid var(--border);
  color: var(--muted);
  transition: var(--transition);
  white-space: nowrap;
}

.filter-btn:hover, .filter-btn.active {
  color: var(--text);
  border-color: var(--accent);
  background-color: rgba(52, 170, 219, 0.03);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.project-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  height: 100%;
}

.project-card:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: var(--accent);
}

.project-thumb {
  aspect-ratio: 16/9;
  position: relative;
  overflow: hidden;
  background-color: #1a1a1a;
  border-bottom: 1px solid var(--border);
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

/* Portfolio Live Preview Frame simulation */
.portfolio-live-preview {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #0e1e2d 0%, #060b11 100%);
  padding: 24px;
  font-family: var(--font-mono);
  color: var(--accent);
  position: relative;
  text-align: center;
}

.plp-scanline {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
  background-size: 100% 4px, 6px 100%;
  pointer-events: none;
}

.plp-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.plp-subtitle {
  font-size: 0.7rem;
  color: var(--muted);
  margin-bottom: 16px;
}

.plp-stats {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.plp-stat {
  font-size: 0.65rem;
  display: flex;
  flex-direction: column;
}

.plp-stat-num {
  font-weight: 700;
  color: #fff;
}

.plp-links {
  display: flex;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Category & Status badges */
.project-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.project-category {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.project-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  background-color: rgba(52, 170, 219, 0.1);
  color: var(--accent);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid rgba(52, 170, 219, 0.2);
}

.project-details {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-name {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.project-desc {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 24px;
  flex-grow: 1;
}

.project-footer {
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

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

.tech-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 2px 6px;
  border-radius: 4px;
}

.project-links {
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.project-link-btn {
  font-size: 0.85rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  transition: var(--transition);
}

.project-link-btn:hover {
  color: var(--accent);
}

/* 3D Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 24px;
}

.gallery-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.gallery-card:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: var(--accent);
}

.gallery-thumb {
  aspect-ratio: 16/9;
  position: relative;
  overflow: hidden;
  background-color: #1a1a1a;
  border-bottom: 1px solid var(--border);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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


.gallery-info { display: none; }

.gallery-name {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.gallery-desc {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 12px;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  box-orient: vertical;
  overflow: hidden;
}

.gallery-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}



/* Modals & Lightbox */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(5, 5, 5, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* Instagram-style Modal Container */
.modal-container.instagram-style {
  width: fit-content;
  max-width: 95vw;
  height: 90vh;
  max-height: 900px;
  background-color: #000;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: row;
  transform: scale(0.95) translateY(10px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 40px rgba(0,0,0,0.8);
}

.modal-overlay.active .modal-container.instagram-style {
  transform: scale(1) translateY(0);
}

.modal-overlay.is-sketchfab .modal-container.instagram-style {
  width: 95vw;
  max-width: 1400px;
}

.modal-close-global {
  position: absolute;
  top: 20px;
  right: 20px;
  color: #fff;
  font-size: 1.8rem;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.modal-close-global:hover {
  opacity: 1;
}

.modal-media-section {
  flex: 1;
  width: 100%;
  height: 100%;
  background-color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.modal-info-section {
  width: 350px;
  min-width: 350px;
  background-color: var(--surface);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.modal-header-clean {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.modal-header-clean .modal-title {
  font-size: 1rem;
  margin: 0;
  font-weight: 600;
}

.modal-details {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

.sketchfab-embed-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sketchfab-embed-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

@media (max-width: 900px) {
  .modal-container.instagram-style {
    width: 95vw;
    flex-direction: column;
    height: 95vh;
    max-height: none;
  }
  .modal-media-section {
    width: 100%;
    height: auto;
    max-height: 50vh;
  }
  .modal-info-section {
    width: 100%;
    min-width: 100%;
    flex: 1;
    border-left: none;
    border-top: 1px solid var(--border);
  }

  /* Sketchfab and Post Modals on Mobile */
  .modal-overlay.is-sketchfab .modal-info-section,
  .modal-overlay.is-post .modal-info-section {
    display: none !important;
  }
  
  .modal-overlay.is-sketchfab .modal-media-section,
  .modal-overlay.is-post .modal-media-section {
    max-height: none !important;
    height: 100% !important;
  }
  
  .modal-overlay.is-post .modal-carousel-container {
    max-width: 100vw !important;
  }
}

/* Modal Carousel Styles */
.modal-carousel-container {
  height: 100%;
  aspect-ratio: var(--aspect-ratio, 1);
  max-width: calc(95vw - 350px);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-carousel-media {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: opacity 0.4s ease;
}

.modal-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  background-color: rgba(255, 255, 255, 0.85);
  border: none;
  border-radius: 50%;
  color: #111;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.modal-carousel-arrow:hover {
  background-color: #fff;
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.modal-carousel-arrow svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.5px;
}

.modal-carousel-prev {
  left: 16px;
}

.modal-carousel-next {
  right: 16px;
}

.modal-carousel-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
  background: rgba(0, 0, 0, 0.4);
  padding: 6px 10px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
}

.modal-carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.modal-carousel-dot.active {
  background-color: #fff;
  transform: scale(1.2);
}

.modal-carousel-dot:hover {
  background-color: rgba(255, 255, 255, 0.8);
}

.modal-carousel-overlay {
  position: absolute;
  top: 16px;
  right: 16px;
  background-color: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  padding: 4px 12px;
  border-radius: 20px;
  z-index: 10;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-carousel-counter {
  font-size: 0.8rem;
  color: #fff;
  font-family: var(--font-main);
  font-weight: 500;
  letter-spacing: 0.5px;
}

.modal-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-description {
  font-size: 0.95rem;
  color: var(--muted);
}

.modal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  font-size: 0.85rem;
}

.modal-meta-item strong {
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  margin-right: 6px;
}

/* ==========================================================================
   PREMIERE LAYOUT (Cinematic Page)
   ========================================================================== */

.premiere-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

/* Hero / Theater Section */
.premiere-theater {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.premiere-badge {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  letter-spacing: 4px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}
.premiere-year {
  opacity: 0.5;
  color: var(--text);
  font-weight: bold;
}

.premiere-title {
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 0.5rem;
  color: #fff;
  text-transform: uppercase;
  text-shadow: 0 0 30px rgba(52, 170, 219, 0.3);
}

.premiere-japanese {
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 12px;
  color: var(--accent);
  opacity: 0.8;
  margin-bottom: 3rem;
}

/* Video Wrappers */
.premiere-screen-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.premiere-screen-wrapper:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(52, 170, 219, 0.2), 0 0 40px rgba(52, 170, 219, 0.1);
}

.premiere-screen-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Metadata & Credits */
.premiere-metadata {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  padding: 0 2rem;
  align-items: start;
}

.premiere-tagline {
  font-family: serif;
  font-size: 1.5rem;
  font-style: italic;
  color: #fff;
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

.premiere-description {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.6);
}

.premiere-crew {
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  padding-left: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.crew-role {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.crew-role span {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
}

.crew-role strong {
  font-size: 1.1rem;
  color: #fff;
  font-weight: 500;
}

/* BTS Section */
.premiere-bts-section {
  padding-top: 4rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  margin-top: 1rem;
}

.bts-header {
  margin-bottom: 2rem;
  text-align: center;
}

.bts-header h4 {
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.bts-header p {
  font-size: 0.9rem;
  color: var(--accent);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.bts-screen {
  opacity: 0.9;
}

.bts-screen:hover {
  opacity: 1;
}

@media (max-width: 768px) {
  .premiere-metadata {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 1rem;
  }

  .premiere-crew {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: 0;
    padding-top: 2rem;
  }

  .premiere-title {
    font-size: 2.5rem;
  }
}

/* Experience Section */
.timeline {
  position: relative;
  padding-left: 32px;
  margin-top: 24px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background-color: var(--border);
}

.timeline-item {
  position: relative;
  margin-bottom: 56px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -32px;
  top: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: var(--bg);
  border: 3px solid var(--accent);
  transform: translateX(-40%);
  z-index: 2;
  transition: var(--transition);
}

.timeline-item:hover .timeline-dot {
  background-color: var(--accent);
  box-shadow: 0 0 10px rgba(52, 170, 219, 0.4);
}

.timeline-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.timeline-title {
  font-size: 1.3rem;
  font-weight: 700;
}

.timeline-company {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--accent);
  font-weight: 500;
  margin-top: 2px;
}

.timeline-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 16px;
}

.timeline-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.timeline-details {
  font-size: 0.95rem;
  color: var(--muted);
  list-style: none;
}

.timeline-details li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
}

.timeline-details li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

/* Skills Section */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 768px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Category Specific Variables */
#skills-group-gamedev {
  --group-color: #34aadb;
  --group-color-rgb: 52, 170, 219;
}
#skills-group-3dart {
  --group-color: #b388ff;
  --group-color-rgb: 179, 136, 255;
}
#skills-group-datascience {
  --group-color: #00e676;
  --group-color-rgb: 0, 230, 118;
}
#skills-group-web {
  --group-color: #ff9100;
  --group-color-rgb: 255, 145, 0;
}
#skills-group-tools {
  --group-color: #90a4ae;
  --group-color-rgb: 144, 164, 174;
}

.skills-group {
  position: relative;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  overflow: hidden;
  z-index: 1;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.skills-group::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle at top right, rgba(var(--group-color-rgb), 0.08), transparent 70%);
  z-index: -1;
  pointer-events: none;
  opacity: 0.6;
  transition: opacity 0.4s ease;
}

.skills-group:hover {
  transform: translateY(-4px);
  border-color: var(--group-color);
  box-shadow: 0 12px 30px -15px rgba(var(--group-color-rgb), 0.2),
              0 0 20px -5px rgba(var(--group-color-rgb), 0.05);
}

.skills-group:hover::before {
  opacity: 1;
}

.skills-group-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--group-color);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
  transition: border-color 0.4s ease;
}

.skills-group:hover .skills-group-title {
  border-color: rgba(var(--group-color-rgb), 0.3);
}

.group-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  opacity: 0.4;
  transition: all 0.3s ease;
}

.skills-group:hover .group-tag {
  color: var(--group-color);
  opacity: 0.8;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--muted);
  background-color: rgba(10, 10, 10, 0.4);
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: 6px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.skill-chip::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--border-active);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.skill-chip:hover {
  border-color: var(--group-color);
  color: #fff;
  background-color: rgba(var(--group-color-rgb), 0.04);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(var(--group-color-rgb), 0.1);
}

.skill-chip:hover::before {
  background-color: var(--group-color);
  box-shadow: 0 0 8px var(--group-color);
}

/* Card Entry/Transition Animation */
@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.project-card.animating {
  animation: cardFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Contact Grid & Section Redesign */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-top: 48px;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1.2fr 1.8fr;
    gap: 60px;
    align-items: stretch;
  }
}

.contact-left {
  display: flex;
  align-items: center;
}

.contact-message {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  line-height: 1.4;
  color: var(--text);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.contact-right {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-right::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background-color: var(--accent);
}

.contact-right:hover {
  border-color: rgba(52, 170, 219, 0.4);
  box-shadow: 0 10px 40px -20px rgba(52, 170, 219, 0.15);
}

.contact-details-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-details-list li {
  font-size: 1rem;
  color: var(--muted);
  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: center;
  gap: 20px;
  position: relative;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  transition: all 0.3s ease;
}

.contact-details-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.contact-details-list li strong {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.08em;
  transition: color 0.3s ease;
}

.contact-details-list li a,
.contact-details-list li span {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--text);
  transition: all 0.3s ease;
}

.contact-details-list li a {
  display: inline-block;
}

.contact-details-list li a:hover {
  color: var(--accent);
  text-decoration: none;
  transform: translateX(4px);
}

.contact-details-list li:hover {
  border-bottom-color: rgba(52, 170, 219, 0.15);
}

.contact-details-list li:hover strong {
  color: var(--accent);
}

/* Footer Section */
.footer {
  padding: 40px 0;
  background-color: var(--bg);
  border-top: 1px solid var(--border);
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

@media (min-width: 768px) {
  .footer-container {
    flex-direction: row;
  }
}

.footer-logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--accent);
}

.footer-copyright {
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-link {
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-link:hover {
  color: var(--accent);
}

/* Animation System (Scroll Trigger) */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Delays */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }

/* Responsive adjustments */
@media (max-width: 1023px) {
  .nav-menu {
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    height: calc(100vh - 72px);
    background-color: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 48px 24px;
    gap: 32px;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  }
  
  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .header.menu-open .menu-toggle span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  .header.menu-open .menu-toggle span:nth-child(2) {
    opacity: 0;
  }
  
  .header.menu-open .menu-toggle span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  
  .nav-socials {
    margin-top: auto;
  }
}

@media (max-width: 640px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  
  .hero-actions .btn {
    justify-content: center;
  }
  
  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
  
  .stat-num {
    font-size: clamp(1.2rem, 5vw, 1.8rem);
  }
  
  .stat-label {
    font-size: 0.65rem;
  }
  
  .section {
    padding: 64px 0;
  }
}

/* Custom Tooltip System */
.custom-tooltip {
  position: fixed;
  background: rgba(10, 10, 10, 0.95);
  color: var(--text);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  font-weight: 500;
  pointer-events: none;
  z-index: 9999;
  white-space: nowrap;
  opacity: 0;
  border: 1px solid var(--border-active);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transform: translate(-50%, -100%);
  margin-top: -10px;
  transition: opacity 0.1s ease-out;
}

.custom-tooltip.visible {
  opacity: 1;
}

/* Plausible or other iframe overrides */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  z-index: -1;
}

/* ==========================================================================
   LOGOLOOP COMPONENT STYLES
   ========================================================================== */

.logoloop {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin-bottom: 24px;
  --logoloop-gap: 32px;
  --logoloop-logoHeight: 28px;
  --logoloop-fadeColorAuto: #0a0a0a;
}

@media (max-width: 768px) {
  .logoloop {
    --logoloop-gap: 16px;
    --logoloop-logoHeight: 18px;
  }
}

.logoloop--vertical {
  height: 100%;
  display: inline-block;
}

.logoloop--scale-hover {
  padding-top: calc(var(--logoloop-logoHeight) * 0.15);
  padding-bottom: calc(var(--logoloop-logoHeight) * 0.15);
}

.logoloop__track {
  display: flex;
  width: max-content;
  will-change: transform;
  user-select: none;
  position: relative;
  z-index: 1;
}

.logoloop--vertical .logoloop__track {
  flex-direction: column;
  height: max-content;
  width: 100%;
}

.logoloop__list {
  display: flex;
  align-items: center;
  padding: 0;
  margin: 0;
  list-style: none;
}

.logoloop--vertical .logoloop__list {
  flex-direction: column;
}

.logoloop__item {
  flex: 0 0 auto;
  margin-right: var(--logoloop-gap);
  font-size: var(--logoloop-logoHeight);
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.logoloop--vertical .logoloop__item {
  margin-right: 0;
  margin-bottom: var(--logoloop-gap);
}

.logoloop__item:last-child {
  margin-right: var(--logoloop-gap);
}

.logoloop--vertical .logoloop__item:last-child {
  margin-right: 0;
  margin-bottom: var(--logoloop-gap);
}

.logoloop__node {
  display: inline-flex;
  align-items: center;
}

.logoloop__item img {
  height: var(--logoloop-logoHeight);
  width: auto;
  display: block;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  -webkit-user-drag: none;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), filter 0.3s ease, opacity 0.3s ease;
  filter: brightness(0) invert(1);
  opacity: 0.7;
}

.logoloop__item:hover img {
  filter: brightness(0) invert(1);
  opacity: 1;
}

.logoloop--scale-hover .logoloop__item {
  overflow: visible;
}

.logoloop--scale-hover .logoloop__item:hover img,
.logoloop--scale-hover .logoloop__item:hover .logoloop__node {
  transform: scale(1.2);
  transform-origin: center center;
}

.logoloop--scale-hover .logoloop__node {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logoloop__link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  border-radius: 4px;
  transition: opacity 0.2s ease;
}

.logoloop__link:hover {
  opacity: 0.9;
}

.logoloop__link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.logoloop--fade::before,
.logoloop--fade::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(30px, 12%, 150px);
  pointer-events: none;
  z-index: 10;
}

.logoloop--fade::before {
  left: 0;
  background: linear-gradient(
    to right,
    var(--logoloop-fadeColor, var(--logoloop-fadeColorAuto)) 0%,
    rgba(10, 10, 10, 0) 100%
  );
}

.logoloop--fade::after {
  right: 0;
  background: linear-gradient(
    to left,
    var(--logoloop-fadeColor, var(--logoloop-fadeColorAuto)) 0%,
    rgba(10, 10, 10, 0) 100%
  );
}

.logoloop--vertical.logoloop--fade::before,
.logoloop--vertical.logoloop--fade::after {
  left: 0;
  right: 0;
  width: 100%;
  height: clamp(30px, 12%, 150px);
}

.logoloop--vertical.logoloop--fade::before {
  top: 0;
  bottom: auto;
  background: linear-gradient(
    to bottom,
    var(--logoloop-fadeColor, var(--logoloop-fadeColorAuto)) 0%,
    rgba(10, 10, 10, 0) 100%
  );
}

.logoloop--vertical.logoloop--fade::after {
  bottom: 0;
  top: auto;
  background: linear-gradient(
    to top,
    var(--logoloop-fadeColor, var(--logoloop-fadeColorAuto)) 0%,
    rgba(10, 10, 10, 0) 100%
  );
}

@media (prefers-reduced-motion: reduce) {
  .logoloop__track {
    transform: translate3d(0, 0, 0) !important;
  }

  .logoloop__item img,
  .logoloop__node {
    transition: none !important;
  }
}

.skills-loops-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 48px;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: 0 16px;
  box-sizing: border-box;
}
@media (max-width: 900px) {
  .sketchfab-embed-wrapper, .modal-carousel-container {
    max-width: 100%;
  }
}

.checkered-bg {
  background-image: 
    linear-gradient(45deg, #181822 25%, transparent 25%), 
    linear-gradient(-45deg, #181822 25%, transparent 25%), 
    linear-gradient(45deg, transparent 75%, #181822 75%), 
    linear-gradient(-45deg, transparent 75%, #181822 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
  background-color: #0c0c10;
}

/* ==========================================================================
   PIXEL EXPLORER COMPONENT STYLES (Consolidated)
   ========================================================================== */

.modal-overlay.is-pixel-explorer .modal-container.instagram-style {
  max-width: 95vw;
  width: 1400px;
}

.pixel-explorer-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #0c0c10;
}

.pixel-explorer-canvas {
  cursor: grab;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  width: 100%;
  height: 100%;
}

.pixel-explorer-canvas:active {
  cursor: grabbing;
}

.pixel-explorer-parallax-view {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.pixel-explorer-parallax-layer {
  image-rendering: pixelated;
}

.pixel-explorer-controls {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 12px 24px;
  border-radius: 40px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  z-index: 100;
  white-space: nowrap;
}

.pixel-explorer-control-btn {
  background: transparent;
  border: none;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  padding: 6px 12px;
  border-radius: 20px;
}

.pixel-explorer-control-btn:hover, .pixel-explorer-control-btn.active {
  color: var(--accent);
  background: rgba(52, 170, 219, 0.1);
}

.pixel-explorer-sheet-toggle {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 100;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.pixel-explorer-bg-switcher {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 0 16px;
  margin: 0 8px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.bg-toggle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s;
  padding: 0;
}

.bg-toggle.active {
  border-color: var(--accent);
  transform: scale(1.15);
}

.bg-toggle[data-bg="bg-checker"] {
  background: repeating-conic-gradient(#808080 0% 25%, transparent 0% 50%) 50% / 10px 10px;
  background-color: #fff;
}
.bg-toggle[data-bg="bg-dark"] { background: #111; }
.bg-toggle[data-bg="bg-light"] { background: #f0f0f0; }
.bg-toggle[data-bg="bg-blue"] { background: #003366; }

.bg-checker {
  background-image: linear-gradient(45deg, #1a1a1a 25%, transparent 25%),
                    linear-gradient(-45deg, #1a1a1a 25%, transparent 25%),
                    linear-gradient(45deg, transparent 75%, #1a1a1a 75%),
                    linear-gradient(-45deg, transparent 75%, #1a1a1a 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
  background-color: #222 !important;
}
.bg-dark { background-color: #111 !important; background-image: none !important; }
.bg-light { background-color: #f0f0f0 !important; background-image: none !important; }
.bg-blue { background-color: #003366 !important; background-image: none !important; }

.pixel-explorer-slider-group {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
}

.pixel-explorer-slider {
  width: 100px;
  accent-color: var(--accent);
  cursor: pointer;
}

.pixel-explorer-slider-val {
  min-width: 50px;
  text-align: right;
}

.pixel-explorer-tabs {
  display: flex;
  gap: 8px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.pixel-explorer-tab {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid transparent;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 8px 0;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  text-transform: uppercase;
  text-align: center;
}

.pixel-explorer-tab:hover {
  background: rgba(255, 255, 255, 0.1);
}

.pixel-explorer-tab.active {
  background: rgba(52, 170, 219, 0.1);
  border-color: var(--accent);
  color: var(--accent);
}

.pixel-explorer-list {
  flex: 1;
  overflow-y: auto;
  list-style: none;
  padding: 0;
  margin: 0;
}

.pixel-explorer-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 20px;
  cursor: pointer;
  transition: background 0.2s;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.pixel-explorer-item:hover {
  background: rgba(255, 255, 255, 0.02);
}

.pixel-explorer-item.active {
  background: rgba(52, 170, 219, 0.08);
  border-left: 3px solid var(--accent);
}

.pixel-explorer-item-thumb {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pixel-explorer-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
}

.pixel-explorer-item-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.pixel-explorer-item-name {
  font-size: 0.9rem;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pixel-explorer-item-meta {
  font-size: 0.75rem;
  color: var(--muted);
  font-family: var(--font-mono);
}

.pixel-explorer-sidebar {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.pixel-explorer-detail-panel {
  border-top: 1px solid var(--border);
  padding: 16px 20px;
}

.pixel-explorer-detail-panel h3 {
  font-size: 0.95rem;
  margin: 0 0 6px 0;
  color: #fff;
  font-weight: 600;
}

.pixel-explorer-detail-panel p {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
  margin: 0 0 10px 0;
}

.pixel-explorer-detail-meta {
  display: flex;
  gap: 8px;
}

.pixel-explorer-detail-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  background: rgba(52, 170, 219, 0.1);
  color: var(--accent);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid rgba(52, 170, 219, 0.2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

