/* ==========================================================================
   MODERN BENTO DESIGN SYSTEM
   Deep Black Canvas, Refined Typography, Frosted Glass & Bento Layouts
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=SF+Mono:wght@400;500&family=Press+Start+2P&family=Pixelify+Sans:wght@400;500;600;700&display=swap');

/* --- Root Color Tokens (Dark Theme Default) --- */
:root {
  --bg-primary: #000000;          /* Deep Space Black */
  --bg-secondary: #0a0a0c;        /* Elevated Surface Black */
  --bg-tertiary: #121216;         /* Card Surface */
  
  --nav-bg: rgba(0, 0, 0, 0.8);
  --nav-border: rgba(255, 255, 255, 0.1);

  --card-bg: rgba(20, 20, 26, 0.6);
  --card-border: rgba(255, 255, 255, 0.08);
  --card-border-hover: rgba(255, 255, 255, 0.25);

  --badge-bg: rgba(20, 20, 26, 0.85);
  --badge-border: rgba(255, 255, 255, 0.12);
  --badge-text: #f5f5f7;

  --input-bg: rgba(255, 255, 255, 0.05);
  --input-border: rgba(255, 255, 255, 0.15);
  --placeholder-color: #86868b;

  --text-primary: #f5f5f7;        /* Crisp White Text */
  --text-secondary: #86868b;      /* Muted Gray */
  --text-muted: #6e6e73;          /* Darker Sub-text */

  --accent-primary: #2997ff;      /* Blue Accent */
  --accent-amber: #d97706;        /* Under Construction Amber Accent */
  --accent-purple: #af52de;       /* Purple Accent */
  --accent-glow: rgba(41, 151, 255, 0.15);

  --font-main: 'Plus Jakarta Sans', system-ui, BlinkMacSystemFont, sans-serif;
  --font-mono: 'SF Mono', SFMono-Regular, ui-monospace, monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;              /* Bento Card Radius */
  --radius-full: 9999px;

  --transition-smooth: 0.25s ease;
}

/* --- Light Mode Overrides --- */
[data-theme="light"] {
  --bg-primary: #f5f5f7;          /* Light Gray Canvas */
  --bg-secondary: #ffffff;
  --bg-tertiary: #e8e8ed;

  --nav-bg: rgba(245, 245, 247, 0.85);
  --nav-border: rgba(0, 0, 0, 0.1);

  --card-bg: rgba(255, 255, 255, 0.85);
  --card-border: rgba(0, 0, 0, 0.1);
  --card-border-hover: rgba(0, 0, 0, 0.3);

  --badge-bg: rgba(255, 255, 255, 0.95);
  --badge-border: rgba(0, 0, 0, 0.15);
  --badge-text: #1d1d1f;

  --input-bg: #ffffff;
  --input-border: rgba(0, 0, 0, 0.2);
  --placeholder-color: #6e6e73;

  --text-primary: #1d1d1f;        /* Near-Black Text */
  --text-secondary: #515154;
  --text-muted: #86868b;

  --accent-primary: #0066cc;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.47059;
  font-weight: 400;
  letter-spacing: -0.022em;
  overflow-x: hidden;
  transition: background-color var(--transition-smooth), color var(--transition-smooth);
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  width: 90%;
  max-width: 980px;
  margin: 0 auto;
}

/* --- Main Content Clearance --- */
#main-content {
  margin-top: 52px;
  width: 100%;
}

/* --- Navigation Bar --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  height: 52px;
  background-color: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--nav-border);
  transition: background-color var(--transition-smooth), border-color var(--transition-smooth);
}

.nav {
  position: relative;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  position: relative;
  display: flex;
  align-items: center;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  height: 100%;
  z-index: 2;
}

.logo-icon {
  width: 26px;
  height: 26px;
  background: var(--text-primary);
  color: var(--bg-primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  flex-shrink: 0;
  z-index: 3;
}

.logo-text {
  position: absolute;
  left: 34px;
  opacity: 0;
  visibility: hidden;
  white-space: nowrap;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 2;
}

.header.show-logo-text .logo-text {
  opacity: 1;
  visibility: visible;
}

/* Mathematically Centered Navigation Items */
.nav-links {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.2rem;
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  z-index: 1;
}

.nav-links li {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-smooth);
  letter-spacing: -0.01em;
  padding: 0 0.2rem;
  line-height: 1;
  white-space: nowrap;
}

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

.nav-link.active {
  color: var(--text-primary) !important;
}

/* Circular Active Dot Indicator Element */
.nav-link .nav-dot {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  background-color: var(--accent-primary);
  border-radius: 50%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  box-shadow: 0 0 6px var(--accent-primary);
}

/* Reveal Dot Indicator when Active */
.nav-link.active .nav-dot {
  opacity: 1 !important;
  visibility: visible !important;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  z-index: 2;
}

.theme-toggle-btn {
  background: transparent;
  border: 1px solid var(--nav-border);
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all var(--transition-smooth);
}

.theme-toggle-btn:hover {
  color: #ffcc00;
  border-color: #ffcc00;
  box-shadow: 0 0 12px rgba(255, 204, 0, 0.45);
  transform: scale(1.08);
}

[data-theme="light"] .theme-toggle-btn:hover {
  color: #6366f1;
  border-color: #6366f1;
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.45);
  transform: scale(1.08);
}

.retro-toggle-btn {
  background: transparent;
  border: 1px solid var(--nav-border);
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all var(--transition-smooth);
}

.retro-toggle-btn:hover {
  color: #ff0055;
  border-color: #ff0055;
  box-shadow: 0 0 12px rgba(255, 0, 85, 0.5);
  transform: scale(1.08);
}

[data-theme="light"] .retro-toggle-btn:hover {
  color: #d90429;
  border-color: #d90429;
  box-shadow: 0 0 12px rgba(217, 4, 41, 0.35);
  transform: scale(1.08);
}

.retro-toggle-btn.active {
  background: #ff0055;
  color: #ffffff;
  border-color: #ffcc00;
  box-shadow: 0 0 12px rgba(255, 0, 85, 0.8);
  animation: retroGamepadGlow 1.5s infinite alternate;
}

.retro-toggle-btn.active:hover {
  background: #ff0055 !important;
  color: #ffcc00 !important;
  border-color: #ffcc00 !important;
  box-shadow: 0 0 16px rgba(255, 204, 0, 0.85), 0 0 8px rgba(255, 0, 85, 0.8) !important;
  transform: scale(1.08);
}

@keyframes retroGamepadGlow {
  0% { box-shadow: 0 0 6px #ff0055, 0 0 12px #ff0055; }
  100% { box-shadow: 0 0 12px #00f0ff, 0 0 20px #00f0ff; }
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.1rem;
  cursor: pointer;
}

/* --- Hero Section --- */
.hero-section {
  padding-top: 64px;
  padding-bottom: 48px;
  text-align: center;
  width: 100%;
}

.hero-content {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.hero-name-display {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 0.8rem;
  display: block;
  white-space: nowrap;
  word-break: keep-all;
}

.hero-role-title {
  font-size: clamp(1.4rem, 3.2vw, 2.1rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--accent-primary);
  letter-spacing: -0.025em;
  margin-bottom: 0.6rem;
  white-space: nowrap;
  word-break: keep-all;
}

.hero-role-subtitle {
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: -0.015em;
  margin-bottom: 1.8rem;
  display: block;
}

.hero-description {
  font-size: clamp(1.0rem, 1.8vw, 1.15rem);
  font-weight: 400;
  color: var(--text-secondary);
  max-width: 660px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
  letter-spacing: -0.015em;
}

.hero-description .hero-desc-line {
  display: block;
  margin-bottom: 0.6rem;
}

.hero-description .hero-desc-line:last-child {
  margin-bottom: 0;
}

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

.bento-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.8rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all var(--transition-smooth);
  cursor: pointer;
  letter-spacing: -0.01em;
}

.bento-btn-primary {
  background-color: var(--text-primary);
  color: var(--bg-primary);
}

.bento-btn-primary:hover {
  opacity: 0.9;
}

.bento-btn-secondary {
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--card-border);
  color: var(--accent-primary);
}

.bento-btn-secondary:hover {
  border-color: var(--card-border-hover);
  color: var(--text-primary);
}

/* ==========================================================================
   BENTO SECTIONS (Overview, Projects, Skills, Experiences, Contact)
   ========================================================================== */
section[id] {
  scroll-margin-top: 80px;
}

.overview-section, .projects-section, .skills-section, .experiences-section, .contact-section {
  padding: 48px 0;
}

.section-eyebrow {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-primary);
  margin-bottom: 0.6rem;
  display: block;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 0.8rem;
}

.section-subtext {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 640px;
  line-height: 1.5;
  margin-bottom: 1.8rem;
}

/* Bento Grid Container */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}

/* Unified Signature Bento Card Style */
.bento-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: border-color var(--transition-smooth), background-color var(--transition-smooth);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  grid-row: var(--bento-row, auto);
  grid-column: span var(--bento-colspan, 12);
}

.bento-card:hover {
  border-color: var(--card-border-hover);
}

.bento-span-12 { grid-column: span 12; }
.bento-span-8 { grid-column: span 8; }
.bento-span-7 { grid-column: span 7; }
.bento-span-6 { grid-column: span 6; }
.bento-span-5 { grid-column: span 5; }
.bento-span-4 { grid-column: span 4; }

.bento-icon-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent-primary);
  margin-bottom: 1.2rem;
  letter-spacing: 0.02em;
}

.bento-card-title {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  line-height: 1.25;
}

.bento-card-desc {
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.bento-stat-number {
  font-size: 3.8rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.bento-stat-label {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}

.bento-stat-subtext {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.bento-badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.bento-badge {
  padding: 0.38rem 0.8rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
}

[data-theme="light"] .bento-badge {
  background: rgba(0, 0, 0, 0.04);
}

/* ==========================================================================
   BENTO TIMELINE FOR EXPERIENCES (#experiences)
   ========================================================================== */
.bento-timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding-left: 2.5rem;
}

.bento-timeline::before {
  content: '';
  position: absolute;
  top: 16px;
  left: 8px;
  width: 2px;
  height: calc(100% - 32px);
  background: linear-gradient(180deg, var(--accent-primary) 0%, rgba(41, 151, 255, 0.15) 100%);
}

.bento-timeline-node {
  position: relative;
  margin-bottom: 2.5rem;
}

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

.bento-timeline-dot {
  position: absolute;
  left: -2.5rem;
  top: 26px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 4px solid var(--accent-primary);
  box-shadow: 0 0 12px var(--accent-glow);
  z-index: 2;
}

.bento-timeline-duration {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-primary);
  background: rgba(41, 151, 255, 0.1);
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
  margin-bottom: 0.8rem;
  letter-spacing: 0.02em;
}

.bento-timeline-date {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-primary);
  font-weight: 600;
  margin-bottom: 0.4rem;
  display: block;
}

.bento-company {
  font-size: 0.98rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 1.25rem;
}

.bento-bullets {
  list-style: disc;
  padding-left: 1.2rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-top: 0.8rem;
}

.bento-bullets li {
  margin-bottom: 0.45rem;
}

/* Certifications inside Bento Box */
.cert-list {
  list-style: none;
  margin-top: 1rem;
}

.cert-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0;
}

.cert-item:last-child {
  border-bottom: none;
}

.cert-icon {
  color: var(--accent-primary);
  font-size: 1.1rem;
  margin-top: 0.15rem;
}

.cert-title {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-primary);
}

.cert-issuer {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   CONTACT SECTION (#contact) & FORM STYLES
   ========================================================================== */
.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-item-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: rgba(41, 151, 255, 0.12);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

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

.hidden-honeypot {
  display: none !important;
  opacity: 0 !important;
  position: absolute !important;
  top: -9999px !important;
  left: -9999px !important;
}

:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

.contact-item-val {
  font-size: 0.95rem;
  color: var(--text-primary);
  font-weight: 500;
}

.social-bar {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.social-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  border: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 0.95rem;
  transition: all var(--transition-smooth);
  text-decoration: none;
}

.social-icon-btn:hover {
  color: var(--text-primary);
  border-color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
}

/* Interactive Form Controls */
.form-group {
  margin-bottom: 1.1rem;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 0.92rem;
  transition: all var(--transition-smooth);
  box-sizing: border-box;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--placeholder-color);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-textarea {
  min-height: 110px;
  resize: vertical;
}

/* --- Footer --- */
.footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--card-border);
  background-color: var(--bg-primary);
}

.footer-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
}

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

.back-to-top {
  position: fixed;
  right: 2rem;
  bottom: 2rem;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(16px);
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.2s ease,
              border-color 0.2s ease,
              box-shadow 0.2s ease;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--text-primary);
  color: var(--bg-primary);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.back-to-top:active {
  transform: translateY(-1px) scale(0.96);
}

[data-theme="light"] .back-to-top {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(0, 0, 0, 0.12);
  color: var(--text-primary);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .back-to-top:hover {
  background: var(--text-primary);
  color: var(--bg-primary);
}

/* ==========================================================================
   MOBILE & TABLET RESPONSIVE ADAPTATIONS (MOBILE APP SCREEN COMPATIBILITY)
   ========================================================================== */

@keyframes mobileNavSlideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Tablet & Mobile Layout Adaptations (<= 900px) */
@media (max-width: 900px) {
  .bento-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }

  .bento-card,
  .bento-span-12,
  .bento-span-8,
  .bento-span-7,
  .bento-span-6,
  .bento-span-5,
  .bento-span-4 {
    grid-column: span 1 / -1 !important;
    grid-row: auto !important;
    width: 100% !important;
  }

  .bento-card {
    padding: 1.6rem 1.4rem !important;
  }

  .hero-name-display {
    font-size: clamp(2.1rem, 7.5vw, 3.2rem) !important;
    white-space: normal !important;
    word-break: break-word !important;
  }

  .hero-role-title {
    font-size: clamp(1.25rem, 4.5vw, 1.8rem) !important;
    white-space: normal !important;
    word-break: break-word !important;
  }
  
  .section-title {
    font-size: 1.85rem !important;
  }
}

/* Mobile Screens & Mobile App WebViews (<= 768px) */
@media (max-width: 768px) {
  .container {
    width: 100%;
    padding-left: max(1.25rem, env(safe-area-inset-left));
    padding-right: max(1.25rem, env(safe-area-inset-right));
  }

  /* Header & Navigation */
  .header {
    height: 54px;
  }

  .logo {
    max-width: 55%;
  }

  .logo-text {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mobile-menu-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    font-size: 1.05rem;
    border: 1px solid var(--nav-border);
    border-radius: var(--radius-full);
    background: transparent;
    color: var(--text-primary);
    cursor: pointer;
  }

  .nav-actions {
    gap: 0.5rem;
  }

  .theme-toggle-btn,
  .retro-toggle-btn {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 54px;
    left: 0;
    width: 100vw;
    height: auto;
    max-height: calc(100vh - 54px);
    overflow-y: auto;
    background: var(--nav-bg);
    backdrop-filter: saturate(180%) blur(25px);
    -webkit-backdrop-filter: saturate(180%) blur(25px);
    border-bottom: 1px solid var(--nav-border);
    padding: 0.75rem 1rem 1.25rem 1rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    transform: none;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    z-index: 9998;
  }

  .nav-links.active {
    display: flex !important;
    animation: mobileNavSlideDown 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  .nav-links li {
    width: 100%;
    height: auto;
    display: block;
  }

  .nav-link {
    width: 100%;
    height: auto;
    min-height: 48px;
    font-size: 1.05rem;
    font-weight: 600;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    line-height: 1.4;
    transition: background-color var(--transition-smooth), color var(--transition-smooth);
  }

  .nav-link:hover,
  .nav-link:focus-visible {
    background-color: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
  }

  [data-theme="light"] .nav-link:hover,
  [data-theme="light"] .nav-link:focus-visible {
    background-color: rgba(0, 0, 0, 0.04);
  }

  .nav-links li:last-child .nav-link {
    border-bottom: none;
  }

  .nav-link .nav-dot {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    top: auto;
    transform: none;
    width: 8px;
    height: 8px;
    flex-shrink: 0;
    margin-left: auto;
    box-shadow: 0 0 8px var(--accent-primary);
  }

  /* Hero Section */
  .hero-section {
    padding-top: 44px;
    padding-bottom: 36px;
  }

  .hero-description {
    font-size: 0.98rem;
    line-height: 1.55;
    margin-bottom: 1.8rem;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero-buttons .bento-btn {
    width: 100%;
    justify-content: center;
    min-height: 48px;
    font-size: 0.95rem;
  }

  /* Experiences Timeline */
  .bento-timeline {
    padding-left: 1.5rem;
  }

  .bento-timeline::before {
    left: 4px;
  }

  .bento-timeline-dot {
    left: -1.5rem;
    top: 22px;
    width: 14px;
    height: 14px;
    border-width: 3px;
  }

  /* Form & Interactive Controls */
  .form-input,
  .form-textarea {
    font-size: 16px !important; /* Prevents mobile browser auto-zoom */
    min-height: 46px;
  }

  .contact-item {
    gap: 0.75rem;
    margin-bottom: 1.1rem;
  }

  .contact-item-icon {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }

  .contact-item-val {
    font-size: 0.88rem;
    word-break: break-all;
  }

  .social-icon-btn {
    width: 42px;
    height: 42px;
    font-size: 1.05rem;
  }

  /* Back to Top */
  .back-to-top {
    right: 1rem;
    bottom: 1rem;
    width: 44px;
    height: 44px;
  }
}

/* Compact Mobile Screens (<= 480px / Small Mobile Phones & WebViews) */
@media (max-width: 480px) {
  .container {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }

  .bento-card {
    padding: 1.25rem 1rem !important;
  }

  .bento-card-title {
    font-size: 1.2rem !important;
  }

  .bento-stat-number {
    font-size: 2.4rem !important;
  }

  .bento-stat-label {
    font-size: 0.95rem !important;
  }

  .bento-badge {
    font-size: 0.75rem;
    padding: 0.3rem 0.65rem;
  }

  .section-eyebrow {
    font-size: 0.78rem;
  }

  .section-title {
    font-size: 1.55rem !important;
  }

  .section-subtext {
    font-size: 0.98rem;
    margin-bottom: 1.3rem;
  }

  /* Retro Game Modal Mobile Optimization */
  .retro-arcade-modal {
    padding: 0.4rem;
    justify-content: flex-start;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .arcade-cabinet-inner {
    padding: 0.85rem;
    gap: 0.75rem;
    max-height: calc(100vh - 75px);
    overflow-y: auto;
  }

  .arcade-close-btn {
    top: 4px;
    right: 4px;
    width: 36px;
    height: 36px;
    font-size: 1.4rem;
  }

  .arcade-header-bar {
    padding-top: 1.8rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }

  .arcade-title {
    font-size: 0.82rem;
  }

  .arcade-stats-hud {
    font-size: 0.65rem;
    gap: 0.5rem;
  }

  .arcade-controls-hint {
    font-size: 0.85rem;
  }

  .arcade-start-title {
    font-size: 1.2rem;
  }

  .arcade-touch-btn {
    padding: 0.85rem 0.4rem;
    font-size: 0.78rem;
    min-height: 48px;
  }

  .arcade-connect-btn {
    padding: 0.85rem 1rem !important;
    font-size: 0.85rem !important;
    min-height: 48px;
  }
}

/* ==========================================================================
   RETRO VIDEO GAME ARCADE THEME (8-BIT / 90s CRT MODE)
   ========================================================================== */

/* CRT Scanline Overlay */
.crt-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 99998;
  opacity: 0;
  visibility: hidden;
  background: linear-gradient(
    rgba(18, 16, 16, 0) 50%, 
    rgba(0, 0, 0, 0.25) 50%
  ), linear-gradient(
    90deg,
    rgba(255, 0, 0, 0.03),
    rgba(0, 255, 0, 0.01),
    rgba(0, 0, 255, 0.03)
  );
  background-size: 100% 3px, 6px 100%;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

[data-theme="retro"] .crt-overlay {
  opacity: 0.85;
  visibility: visible;
}

/* CRT Power On/Off Screen Flash & Warp Overlay */
.retro-transition-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  background: #080414;
}

.retro-transition-overlay.power-on {
  visibility: visible;
  animation: crtPowerOnAnimation 0.38s ease-out forwards;
}

.retro-transition-overlay.power-off {
  visibility: visible;
  animation: crtPowerOffAnimation 0.38s ease-in forwards;
}

@keyframes crtPowerOnAnimation {
  0% {
    opacity: 1;
    background: #ffffff;
    clip-path: ellipse(100% 0.5% at 50% 50%);
  }
  35% {
    opacity: 1;
    background: #00f0ff;
    clip-path: ellipse(100% 12% at 50% 50%);
  }
  65% {
    opacity: 0.9;
    background: #ff0055;
    clip-path: ellipse(100% 60% at 50% 50%);
  }
  100% {
    opacity: 0;
    visibility: hidden;
    clip-path: ellipse(100% 100% at 50% 50%);
  }
}

@keyframes crtPowerOffAnimation {
  0% {
    opacity: 0.9;
    background: #080414;
    clip-path: ellipse(100% 100% at 50% 50%);
  }
  40% {
    opacity: 1;
    background: #ff0055;
    clip-path: ellipse(100% 15% at 50% 50%);
  }
  75% {
    opacity: 1;
    background: #ffffff;
    clip-path: ellipse(100% 1px at 50% 50%);
  }
  100% {
    opacity: 0;
    visibility: hidden;
  }
}

/* Retro Theme Variables */
[data-theme="retro"] {
  --bg-primary: #080414;          /* Deep Arcade Night Canvas */
  --bg-secondary: #0f0826;
  --bg-tertiary: #160c38;

  --nav-bg: rgba(8, 4, 20, 0.95);
  --nav-border: #00f0ff;

  --card-bg: #160c38;
  --card-border: #00f0ff;
  --card-border-hover: #ff0055;

  --badge-bg: #0f0826;
  --badge-border: #ffcc00;
  --badge-text: #ffcc00;

  --input-bg: #0a0418;
  --input-border: #00f0ff;
  --placeholder-color: #7b7baf;

  --text-primary: #00f0ff;        /* Arcade Electric Cyan */
  --text-secondary: #e0e0ff;      /* Crisp Retro Subtext */
  --text-muted: #ff77a8;

  --accent-primary: #ff0055;      /* Neon Magenta */
  --accent-amber: #ffcc00;        /* Arcade Gold */
  --accent-purple: #a855f7;

  --font-main: 'Pixelify Sans', cursive, sans-serif;
  --font-mono: 'Silkscreen', monospace;

  --radius-sm: 0px;
  --radius-md: 0px;
  --radius-lg: 0px;              /* Chunky 8-Bit Pixel Corners */
  --radius-full: 0px;
}

/* Global Body & Image Rendering in Retro Mode */
[data-theme="retro"],
[data-theme="retro"] body {
  font-family: 'Pixelify Sans', sans-serif !important;
  background-color: #080414;
  color: #00f0ff;
  letter-spacing: 0.04em;
  image-rendering: pixelated;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' shape-rendering='crispEdges'%3E%3Cpath d='M0,0H4V2H6V4H8V6H10V8H12V10H14V12H16V14H6V18H4V14H2V10H0Z' fill='%23000000'/%3E%3Cpath d='M2,2H4V4H6V6H8V8H10V10H12V12H4V16H2V10Z' fill='%2300f0ff'/%3E%3Cpath d='M2,2H4V4H2Z M4,4H6V6H4Z M6,6H8V8H6Z' fill='%23ffffff'/%3E%3C/svg%3E"), auto !important;
}

/* Custom 8-Bit Retro Interactive Pointer Cursors */
[data-theme="retro"] a,
[data-theme="retro"] button,
[data-theme="retro"] input,
[data-theme="retro"] textarea,
[data-theme="retro"] label,
[data-theme="retro"] .bento-card,
[data-theme="retro"] .social-icon-btn,
[data-theme="retro"] .nav-link,
[data-theme="retro"] .back-to-top,
[data-theme="retro"] .theme-toggle-btn,
[data-theme="retro"] .retro-toggle-btn {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' shape-rendering='crispEdges'%3E%3Cpath d='M6,0H10V8H8V10H6V12H4V18H14V16H16V14H18V12H20V8H16V10H14V8H12V6H10V0Z' fill='%23000000'/%3E%3Cpath d='M8,2H10V8H8Z M8,8H10V10H8Z M6,10H8V12H6Z M4,12H6V16H14V14H16V12H18V10H14V8H12V6H10V8H8Z' fill='%23ff0055'/%3E%3Cpath d='M8,2H10V6H8Z M6,10H8V12H6Z' fill='%23ffcc00'/%3E%3C/svg%3E") 6 0, pointer !important;
}

[data-theme="retro"] .theme-toggle-btn:hover {
  color: #ffcc00 !important;
  border-color: #ffcc00 !important;
  background: rgba(255, 204, 0, 0.15) !important;
  box-shadow: 0 0 12px rgba(255, 204, 0, 0.7) !important;
  transform: scale(1.08);
}

[data-theme="retro"] .retro-toggle-btn:hover {
  background: #ff0055 !important;
  color: #ffcc00 !important;
  border-color: #ffcc00 !important;
  box-shadow: 0 0 16px rgba(255, 204, 0, 0.85), 0 0 8px rgba(255, 0, 85, 0.8) !important;
  transform: scale(1.08);
}

/* Retro Typography Overrides - Zero Shift Sizing */
[data-theme="retro"] h1,
[data-theme="retro"] h2,
[data-theme="retro"] h3,
[data-theme="retro"] .logo-text,
[data-theme="retro"] .logo-icon,
[data-theme="retro"] .section-eyebrow,
[data-theme="retro"] .bento-card-title,
[data-theme="retro"] .hero-name-display,
[data-theme="retro"] .bento-btn,
[data-theme="retro"] .bento-stat-number,
[data-theme="retro"] .nav-link,
[data-theme="retro"] #construction-badge-text {
  font-family: 'Pixelify Sans', cursive, sans-serif !important;
}

/* Retro Hero Header Display - Fixed Dimensions */
[data-theme="retro"] .hero-name-display {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  color: #ffcc00 !important;
  text-shadow: 3px 3px 0px #ff0055, 6px 6px 0px #000;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 0.8rem;
  white-space: nowrap !important;
  word-break: keep-all !important;
  animation: retroArcadeFlicker 4s infinite;
}

@keyframes retroArcadeFlicker {
  0%, 100% { opacity: 1; }
  92% { opacity: 1; }
  93% { opacity: 0.75; }
  94% { opacity: 1; }
  98% { opacity: 0.9; }
}

[data-theme="retro"] .hero-role-title {
  color: #00ff66 !important;
  font-family: 'Pixelify Sans', sans-serif !important;
  font-size: clamp(1.4rem, 3.2vw, 2.1rem);
  line-height: 1.2;
  text-shadow: 2px 2px 0px #000;
  margin-top: 0.5rem;
  margin-bottom: 0.6rem;
  white-space: nowrap !important;
  word-break: keep-all !important;
}

[data-theme="retro"] .hero-role-subtitle {
  color: #ff0055 !important;
  font-family: 'Pixelify Sans', sans-serif !important;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  line-height: 1.3;
  margin-bottom: 1.8rem;
}

[data-theme="retro"] .hero-description {
  color: #ffffff !important;
  font-size: clamp(1.0rem, 1.8vw, 1.15rem);
  line-height: 1.6;
  max-width: 660px;
  margin: 0 auto 2.5rem;
}

[data-theme="retro"] .section-eyebrow {
  color: #ffcc00 !important;
  font-size: 0.75rem !important;
  text-shadow: 2px 2px 0px #ff0055;
  background: transparent !important;
  padding: 0 !important;
  border: none !important;
  box-shadow: none !important;
  margin-bottom: 0.6rem;
  display: block;
}

[data-theme="retro"] .section-title {
  color: #00f0ff !important;
  font-family: 'Pixelify Sans', sans-serif !important;
  font-size: 2.5rem !important;
  text-shadow: 3px 3px 0px #ff0055, 5px 5px 0px #000;
  margin-bottom: 0.8rem;
}

[data-theme="retro"] .section-subtext {
  color: #e0e0ff !important;
  font-size: 1.1rem !important;
}

/* Retro Bento Grid Cards & Pixel Shadows - Matching Box Model */
[data-theme="retro"] .bento-card {
  border: 1px solid #00f0ff !important;
  box-shadow: 4px 4px 0px #ff0055, 8px 8px 0px #000 !important;
  border-radius: 0px !important;
  background: #160c38 !important;
  padding: 1.6rem !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease !important;
}

[data-theme="retro"] .bento-card:hover {
  transform: translate(-3px, -3px) !important;
  border-color: #ffcc00 !important;
  box-shadow: 7px 7px 0px #ff0055, 12px 12px 0px #000 !important;
}

[data-theme="retro"] .bento-card-title {
  color: #ffcc00 !important;
  font-family: 'Pixelify Sans', sans-serif !important;
  font-size: 1.6rem !important;
  line-height: 1.25;
  text-shadow: 2px 2px 0px #000;
}

[data-theme="retro"] .bento-card-desc {
  color: #ffffff !important;
  font-size: 0.98rem !important;
}

[data-theme="retro"] .bento-stat-number {
  color: #00ff66 !important;
  font-family: 'Pixelify Sans', sans-serif !important;
  font-size: 3.8rem !important;
  text-shadow: 3px 3px 0px #ff0055, 6px 6px 0px #000;
}

[data-theme="retro"] .bento-stat-label {
  color: #00f0ff !important;
  font-family: 'Silkscreen', monospace !important;
  font-size: 1.1rem !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Retro Badges & Subtitle Tags - Clean Borderless & Boxless */
[data-theme="retro"] .bento-badge {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0.2rem 0.5rem !important;
  color: #00f0ff !important;
  font-family: 'Silkscreen', monospace !important;
  font-size: 0.7rem !important;
}

[data-theme="retro"] .bento-icon-tag {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  color: #ffcc00 !important;
  font-family: 'Silkscreen', monospace !important;
  font-size: 0.72rem !important;
  text-shadow: 2px 2px 0px #ff0055;
  margin-bottom: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

[data-theme="retro"] .floating-construction-badge {
  border-radius: 0px !important;
  border: 1px solid #ff0055 !important;
  background: #0f0826 !important;
  color: #ffcc00 !important;
  font-family: 'Silkscreen', monospace !important;
  font-size: 0.72rem !important;
  box-shadow: 3px 3px 0px #000;
}

[data-theme="retro"] .amber-pulse-dot {
  background-color: #00ff66 !important;
  border-radius: 0px !important;
}

[data-theme="retro"] .amber-pulse-dot::after {
  background-color: #00ff66 !important;
  border-radius: 0px !important;
}

/* Retro Buttons - Matching Box Model */
[data-theme="retro"] .bento-btn-primary {
  border-radius: 0px !important;
  background: #ff0055 !important;
  color: #ffffff !important;
  border: 1px solid #ffcc00 !important;
  box-shadow: 3px 3px 0px #000 !important;
  font-family: 'Pixelify Sans', sans-serif !important;
  font-size: 0.9rem !important;
  padding: 0.85rem 1.8rem !important;
  transition: all 0.15s ease !important;
}

[data-theme="retro"] .bento-btn-primary:hover {
  background: #00ff66 !important;
  color: #000000 !important;
  border-color: #ffffff !important;
  transform: translate(-2px, -2px) !important;
  box-shadow: 5px 5px 0px #000 !important;
}

[data-theme="retro"] .bento-btn-primary:active {
  transform: translate(2px, 2px) !important;
  box-shadow: 2px 2px 0px #000 !important;
}

/* Retro Navigation Header - Matching Box Model */
[data-theme="retro"] .header {
  border-bottom: 1px solid #00f0ff !important;
  background-color: rgba(8, 4, 20, 0.98) !important;
  box-shadow: 0 2px 0px rgba(0, 240, 255, 0.4);
}

[data-theme="retro"] .logo-icon {
  border-radius: 0px !important;
  background: #ff0055 !important;
  color: #ffcc00 !important;
  border: 1px solid #ffcc00 !important;
  box-shadow: 2px 2px 0px #000;
  font-family: 'Silkscreen', monospace !important;
  font-size: 0.75rem;
}

[data-theme="retro"] .nav-link {
  font-family: 'Silkscreen', monospace !important;
  font-size: 0.72rem !important;
  color: #e0e0ff !important;
}

[data-theme="retro"] .nav-link:hover,
[data-theme="retro"] .nav-link.active {
  color: #ffcc00 !important;
  text-shadow: 2px 2px 0px #ff0055;
}

[data-theme="retro"] .nav-link .nav-dot {
  border-radius: 0px !important;
  width: 6px;
  height: 6px;
  background-color: #00ff66 !important;
  box-shadow: 0 0 6px #00ff66 !important;
}

/* Retro Form Controls */
[data-theme="retro"] .form-input,
[data-theme="retro"] .form-textarea {
  border-radius: 0px !important;
  border: 2px solid #00f0ff !important;
  background: #0a0418 !important;
  color: #00f0ff !important;
  font-family: 'Pixelify Sans', monospace !important;
  font-size: 1.15rem !important;
}

[data-theme="retro"] .form-input:focus,
[data-theme="retro"] .form-textarea:focus {
  border-color: #ff0055 !important;
  box-shadow: 3px 3px 0px #ff0055 !important;
  outline: none;
}

[data-theme="retro"] .contact-item-icon {
  border-radius: 0px !important;
  border: 2px solid #00f0ff !important;
  background: #160c38 !important;
  color: #ffcc00 !important;
}

[data-theme="retro"] .social-icon-btn {
  border-radius: 0px !important;
  border: 2px solid #00f0ff !important;
  background: #160c38 !important;
  color: #00f0ff !important;
  box-shadow: 2px 2px 0px #000;
}

[data-theme="retro"] .social-icon-btn:hover {
  background: #ff0055 !important;
  color: #ffffff !important;
  border-color: #ffcc00 !important;
}

[data-theme="retro"] .bento-timeline-dot {
  border-radius: 0px !important;
  background-color: #ff0055 !important;
  border: 2px solid #ffcc00 !important;
  box-shadow: 0 0 8px #ff0055;
}

[data-theme="retro"] .bento-timeline-date {
  font-family: 'Silkscreen', monospace !important;
  font-size: 0.72rem !important;
  color: #00ff66 !important;
}

[data-theme="retro"] .bento-timeline-duration {
  font-family: 'Silkscreen', monospace !important;
  font-size: 0.72rem !important;
  color: #ff0055 !important;
  background: rgba(255, 0, 85, 0.15) !important;
  border: 1px solid #ff0055 !important;
  border-radius: 0px !important;
}

[data-theme="retro"] .footer {
  border-top: 3px solid #00f0ff !important;
  background: #080414 !important;
}

[data-theme="retro"] .footer-text {
  font-family: 'Silkscreen', monospace !important;
  font-size: 0.7rem !important;
  color: #e0e0ff !important;
}

[data-theme="retro"] .back-to-top {
  border-radius: 0px !important;
  border: 2px solid #ffcc00 !important;
  background: #ff0055 !important;
  color: #ffffff !important;
  box-shadow: 3px 3px 0px #000 !important;
}

[data-theme="retro"] .back-to-top:hover {
  background: #ffcc00 !important;
  color: #ff0055 !important;
  box-shadow: 4px 4px 0px #000 !important;
}

[data-theme="retro"] .back-to-top.visible {
  transform: translateY(0) !important;
}

[data-theme="retro"] .back-to-top.visible:hover {
  transform: translateY(-3px) !important;
}

@media (max-width: 768px) {
  [data-theme="retro"] .hero-name-display {
    font-size: clamp(2.0rem, 6vw, 2.5rem) !important;
    white-space: nowrap !important;
  }
}

/* ==========================================================================
   RETRO MINI GAME ARCADE CABINET STYLES
   ========================================================================== */

[data-theme="retro"] #hero-btn {
  display: inline-flex !important;
  border-radius: 0px !important;
  background: #00ff66 !important;
  color: #000000 !important;
  border: 3px solid #ffcc00 !important;
  box-shadow: 4px 4px 0px #000 !important;
  font-family: 'Pixelify Sans', sans-serif !important;
  font-size: 0.9rem !important;
  padding: 0.75rem 1.2rem !important;
  animation: retroBtnPulse 1.5s infinite alternate !important;
}

[data-theme="retro"] #hero-btn:hover {
  background: #ff0055 !important;
  color: #ffffff !important;
  border-color: #00f0ff !important;
  transform: translate(-2px, -2px) !important;
  box-shadow: 6px 6px 0px #000 !important;
}

@keyframes retroBtnPulse {
  0% { box-shadow: 0 0 8px #00ff66, 4px 4px 0px #000; }
  100% { box-shadow: 0 0 16px #ffcc00, 4px 4px 0px #000; }
}

.retro-arcade-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(8, 4, 20, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 10005;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 1rem;
  gap: 1.2rem;
}

.arcade-cabinet-inner {
  width: 100%;
  max-width: 540px;
  background: #160c38;
  border: 4px solid #00f0ff;
  box-shadow: 6px 6px 0px #ff0055, 12px 12px 0px #000;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-family: 'Pixelify Sans', sans-serif;
  color: #00f0ff;
  position: relative;
}

.arcade-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #00f0ff;
  padding-bottom: 0.8rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.arcade-title {
  font-family: 'Pixelify Sans', sans-serif;
  font-size: 0.95rem;
  color: #ffcc00;
  text-shadow: 2px 2px 0px #ff0055;
}

.arcade-stats-hud {
  display: flex;
  gap: 0.8rem;
  font-family: 'Silkscreen', monospace;
  font-size: 0.7rem;
  color: #e0e0ff;
  flex-wrap: wrap;
}

.arcade-stats-hud strong {
  color: #00ff66;
}

.arcade-close-btn {
  position: absolute;
  top: -14px;
  right: -14px;
  background: #ff0055;
  color: #ffffff;
  border: 3px solid #ffcc00;
  font-size: 1.3rem;
  font-weight: bold;
  line-height: 1;
  width: 32px;
  height: 32px;
  cursor: pointer;
  box-shadow: 3px 3px 0px #000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 25;
  transition: transform 0.15s ease, background 0.15s ease;
}

.arcade-close-btn:hover {
  background: #00ff66;
  color: #000;
  transform: scale(1.1);
}

.arcade-screen-frame {
  position: relative;
  width: 100%;
  background: #080414;
  border: 3px solid #ff0055;
  box-shadow: inset 0 0 20px rgba(0, 240, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
}

#arcade-canvas {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  display: block;
  background: #080414;
  image-rendering: pixelated;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
}

.arcade-overlay-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(8, 4, 20, 0.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
  padding: 1rem;
}

.arcade-start-title {
  font-family: 'Pixelify Sans', sans-serif;
  font-size: 1.5rem;
  color: #ffcc00;
  text-shadow: 3px 3px 0px #ff0055, 5px 5px 0px #000;
  animation: retroStartBlink 1.2s infinite;
}

@keyframes retroStartBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.arcade-controls-hint {
  font-family: 'Pixelify Sans', sans-serif;
  font-size: 1.05rem;
  color: #00f0ff;
  max-width: 380px;
  line-height: 1.35;
}

.arcade-connect-btn {
  background: #00f0ff !important;
  color: #080414 !important;
  font-family: 'Pixelify Sans', sans-serif !important;
  font-size: 0.85rem !important;
  border-radius: 0px !important;
  border: 3px solid #ffcc00 !important;
  box-shadow: 4px 4px 0px #000, 0 0 16px rgba(0, 240, 255, 0.4) !important;
  padding: 0.8rem 1.8rem !important;
  width: 100%;
  max-width: 540px;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  transition: all 0.2s ease;
  cursor: pointer;
  margin-top: 0.2rem;
}

.arcade-connect-btn:hover {
  background: #ff0055 !important;
  color: #ffffff !important;
  border-color: #00f0ff !important;
  transform: translate(-2px, -2px) !important;
  box-shadow: 6px 6px 0px #000, 0 0 24px rgba(255, 0, 85, 0.6) !important;
}

.arcade-touch-controls {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  margin-top: 0.2rem;
}

.arcade-touch-btn {
  flex: 1;
  background: #160c38;
  border: 2px solid #00f0ff;
  color: #00f0ff;
  font-family: 'Silkscreen', monospace;
  font-size: 0.72rem;
  padding: 0.75rem 0.4rem;
  cursor: pointer;
  box-shadow: 3px 3px 0px #000;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.arcade-fire-btn {
  flex: 1 !important;
  background: #ff0055 !important;
  color: #ffffff !important;
  border-color: #ffcc00 !important;
}

.arcade-duck-btn {
  flex: 1 !important;
  background: #0088cc !important;
  color: #ffffff !important;
  border-color: #00f0ff !important;
}

.arcade-touch-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0px #000;
}
