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

/* --- Root variables & Design Tokens --- */
:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Sora', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Global Accent Colors */
  --color-cyan: #00b4d8;
  --color-violet: #7209b7;
  --color-blue: #0070f3;
  --color-nvidia: #76b900;
  --color-amd: #ff4500;
  --color-intel: #00a8e8;
  --color-warning: #eab308;
  --color-error: #ef4444;
  --color-success: #22c55e;

  /* Base Cohesive Tokens */
  --bg-dark: #05070c;
  --bg-dark-alt: #0a0d14;
  --bg-light: #ffffff;
  --bg-light-alt: #f8fafc;
  
  /* Cards */
  --bg-card-dark: #0f1325;
  --bg-card-dark-hover: #141a33;
  --bg-card-light: #f8fafc;
  --bg-card-light-hover: #f1f5f9;

  /* Borders */
  --border-dark: rgba(255, 255, 255, 0.05);
  --border-light: rgba(15, 23, 42, 0.06);
  --border-glow: rgba(0, 180, 216, 0.35);

  /* Texts */
  --text-dark-primary: #f8fafc;
  --text-dark-secondary: #94a3b8;
  --text-light-primary: #0f172a;
  --text-light-secondary: #475569;

  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.15s ease;
}

/* --- Base Setup --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  overflow-x: hidden;
  width: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  color: var(--text-dark-primary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  color: #fff;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 5px;
  border: 2px solid var(--bg-dark);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

code {
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.08);
  padding: 0.2rem 0.4rem;
  border-radius: var(--radius-sm);
  font-size: 0.85em;
}

.section-light code {
  background: rgba(15, 23, 42, 0.06);
  color: #0f172a;
}

pre {
  font-family: var(--font-mono);
  background: rgba(10, 15, 30, 0.5);
  border: 1px solid var(--border-dark);
  padding: 1.2rem;
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin: 1rem 0;
}

.section-light pre {
  background: #f1f5f9;
  border: 1px solid var(--border-light);
  color: #0f172a;
}

/* --- Layout Elements --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  width: 100%;
}

/* Width Constraining Classes for Visual Balance */
.content-width-medium {
  max-width: 850px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.content-width-large {
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

/* --- Side Guide Lines --- */
.line-accent-vertical {
  pointer-events: none;
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
}

.section-dark .line-accent-vertical {
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.02) 15%, rgba(255, 255, 255, 0.02) 85%, transparent);
}

.section-light .line-accent-vertical {
  background: linear-gradient(to bottom, transparent, rgba(15, 23, 42, 0.02) 15%, rgba(15, 23, 42, 0.02) 85%, transparent);
}

/* --- Alternating Layout System --- */
.section-dark {
  background-color: var(--bg-dark);
  color: var(--text-dark-primary);
  position: relative;
  padding: 6.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.section-light {
  background-color: var(--bg-light);
  color: var(--text-light-primary);
  position: relative;
  padding: 6.5rem 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.04);
}

/* Symmetrical Typography Rules */
.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  letter-spacing: -0.03em;
  text-align: center;
}

.section-dark .section-title {
  color: #fff;
}

.section-light .section-title {
  color: #0f172a;
}

.section-subtitle {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3.5rem;
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1.6;
}

.section-dark .section-subtitle {
  color: var(--text-dark-secondary);
}

.section-light .section-subtitle {
  color: var(--text-light-secondary);
}

/* --- Sticky Blurred Header --- */
.premium-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: rgba(5, 7, 12, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  z-index: 100;
  display: flex;
  align-items: center;
}

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

.logo-section {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon-img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0, 180, 216, 0.45);
  border: 1.5px solid rgba(0, 180, 216, 0.3);
  transition: transform var(--transition-fast);
}

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

.logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  color: #fff;
  letter-spacing: -0.5px;
}

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

/* Scroll Progress Bar */
.progress-container {
  position: fixed;
  top: 80px;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 101;
  pointer-events: none;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--color-cyan) 0%, var(--color-blue) 50%, var(--color-violet) 100%);
  transition: width 0.1s ease-out;
}

/* --- Hero Section (Full Background Gameplay Video Loop) --- */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 140px;
  padding-bottom: 80px;
  overflow: hidden;
  position: relative;
}

.hero-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  pointer-events: none;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.hero-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(5, 7, 12, 0.58) 0%, rgba(5, 7, 12, 0.88) 100%);
  z-index: 2;
  pointer-events: none;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
  width: 100%;
  position: relative;
  z-index: 3;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

.hero-section h1 {
  font-size: 4.5rem;
  font-weight: 950;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #fff 40%, #a1a1aa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: left;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.hero-paragraph {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-dark-secondary);
  margin-bottom: 2.5rem;
  text-align: justify;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: flex-start;
  flex-wrap: wrap;
}

/* Button UI */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.8rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: 1px solid transparent;
}

.btn-filled {
  background: linear-gradient(135deg, var(--color-cyan) 0%, var(--color-blue) 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(0, 180, 216, 0.25);
}

.btn-filled:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 180, 216, 0.4);
}

.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.section-light .btn-outline {
  border-color: rgba(15, 23, 42, 0.15);
  color: var(--text-light-primary);
}

.section-light .btn-outline:hover {
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.3);
}

/* --- Card Systems (Alternating Themes) --- */
.card-dark {
  background: var(--bg-card-dark);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: 0 12px 40px -10px rgba(0, 0, 0, 0.45);
  transition: transform var(--transition-normal),
              border-color var(--transition-normal),
              box-shadow var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.card-dark:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
  box-shadow: 0 20px 40px -15px rgba(0, 180, 216, 0.18),
              0 0 20px -5px rgba(0, 180, 216, 0.12);
  background-color: var(--bg-card-dark-hover);
}

.card-dark h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
  color: #fff;
}

.card-dark p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-dark-secondary);
}

.card-light {
  background: var(--bg-card-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.02);
  transition: transform var(--transition-normal),
              border-color var(--transition-normal),
              box-shadow var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.card-light:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 180, 216, 0.4);
  box-shadow: 0 16px 30px rgba(0, 180, 216, 0.08);
  background-color: var(--bg-card-light-hover);
}

.card-light h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
  color: #0f172a;
}

.card-light p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-light-secondary);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(0, 180, 216, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--color-cyan);
}

.card-footer {
  margin-top: 1.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-cyan);
}

/* Grids */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 1rem;
}

.grid-3-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .grid-3-col {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* --- Callout Alert Panels --- */
.callout-box {
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border-left: 4px solid transparent;
  margin: 2rem auto;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.callout-box svg {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
}

.callout-title {
  font-weight: 700;
  margin-bottom: 0.4rem;
  font-size: 1.05rem;
}

.callout-desc {
  font-size: 0.95rem;
  line-height: 1.6;
}

.callout-danger {
  background: rgba(239, 68, 68, 0.06);
  border-color: var(--color-error);
  color: #fff;
  border-top: 1px solid rgba(239, 68, 68, 0.1);
  border-right: 1px solid rgba(239, 68, 68, 0.1);
  border-bottom: 1px solid rgba(239, 68, 68, 0.1);
}

.section-light .callout-danger {
  background: rgba(239, 68, 68, 0.04);
  color: #0f172a;
}

.callout-danger .callout-title {
  color: var(--color-error);
}

.callout-warning {
  background: rgba(234, 179, 8, 0.06);
  border-color: var(--color-warning);
  color: #fff;
  border-top: 1px solid rgba(234, 179, 8, 0.1);
  border-right: 1px solid rgba(234, 179, 8, 0.1);
  border-bottom: 1px solid rgba(234, 179, 8, 0.1);
}

.section-light .callout-warning {
  background: rgba(234, 179, 8, 0.04);
  color: #0f172a;
}

.callout-warning .callout-title {
  color: var(--color-warning);
}

/* --- Stats Grid (White Section) --- */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin: 0 auto;
}

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

.stat-item {
  text-align: center;
}

.stat-num {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--color-blue) 0%, var(--color-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-dark .stat-label {
  color: var(--text-dark-secondary);
}

.section-light .stat-label {
  color: var(--text-light-secondary);
}

/* --- Supported Tech / Tabs --- */
.tech-tabs-list {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 0.5rem;
}

.section-dark .tech-tabs-list {
  border-bottom-color: var(--border-dark);
}

.tech-tab-btn {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all var(--transition-fast);
}

.section-dark .tech-tab-btn {
  color: var(--text-dark-secondary);
}

.section-dark .tech-tab-btn:hover {
  color: #fff;
}

.section-light .tech-tab-btn {
  color: var(--text-light-secondary);
}

.section-light .tech-tab-btn:hover {
  color: #0f172a;
}

.tech-tab-btn.active {
  color: var(--color-cyan);
  border-bottom-color: var(--color-cyan);
}

.tech-tab-panel {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tech-tab-panel.active {
  display: block;
}

/* --- Timeline Stepper (Installation - White Section) --- */
.timeline-stepper {
  position: relative;
}

.timeline-step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1.5rem;
  position: relative;
  padding-bottom: 4rem;
}

.timeline-step:last-child {
  padding-bottom: 0;
}

.timeline-line {
  position: absolute;
  left: 39px;
  top: 40px;
  bottom: 0;
  width: 2px;
  background: rgba(15, 23, 42, 0.06);
}

.timeline-badge {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid var(--color-cyan);
  color: var(--color-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  margin: 0 auto;
  z-index: 2;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.timeline-content {
  background: var(--bg-card-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  transition: transform var(--transition-normal);
}

.timeline-content:hover {
  transform: translateX(4px);
}

.timeline-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
  color: #0f172a;
}

.timeline-content p {
  color: var(--text-light-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* --- Compatibility Section --- */
.table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  background: var(--bg-card-dark);
  margin-top: 1.5rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

th, td {
  padding: 1.1rem 1.4rem;
  border-bottom: 1px solid var(--border-dark);
}

th {
  background: rgba(10, 15, 30, 0.4);
  font-weight: 700;
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background: rgba(255, 255, 255, 0.01);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-success {
  background: rgba(34, 197, 94, 0.1);
  color: var(--color-success);
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.badge-warning {
  background: rgba(234, 179, 8, 0.1);
  color: var(--color-warning);
  border: 1px solid rgba(234, 179, 8, 0.2);
}

.badge-error {
  background: rgba(239, 68, 68, 0.1);
  color: var(--color-error);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* --- Search Controls --- */
.search-bar-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.search-input {
  flex-grow: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.4rem;
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: all var(--transition-fast);
}

.search-input:focus {
  border-color: var(--color-cyan);
  box-shadow: 0 0 15px rgba(0, 180, 216, 0.15);
}

.section-light .search-input {
  background: rgba(15, 23, 42, 0.03);
  border-color: var(--border-light);
  color: #0f172a;
}

.section-light .search-input:focus {
  border-color: var(--color-cyan);
  background: #ffffff;
}

.filter-dropdown {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.25rem;
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  outline: none;
}

.filter-dropdown:focus {
  border-color: var(--color-cyan);
}

.section-light .filter-dropdown {
  background: rgba(15, 23, 42, 0.03);
  border-color: var(--border-light);
  color: #0f172a;
}

/* --- FAQ Accordions --- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-card-dark);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

.faq-question {
  padding: 1.25rem 1.75rem;
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  color: #fff;
}

.faq-question::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--color-cyan);
  transition: transform 0.2s ease;
}

.faq-item.active .faq-question::after {
  content: "-";
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s ease;
  padding: 0 1.75rem;
  color: var(--text-dark-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  padding-bottom: 1.25rem;
}

/* --- Interactive Flowchart & Simulator --- */

/* Flowchart */
.flowchart-panel {
  background: var(--bg-card-dark);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  margin: 2rem auto 0;
}

.flow-step-panel {
  display: none;
  animation: fadeIn 0.3s ease;
}

.flow-step-panel.active {
  display: block;
}

.flow-btn-group {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  justify-content: center;
}

/* HUDFix Simulator */
.hudfix-simulator {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  background: var(--bg-card-dark);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  align-items: center;
}

@media (max-width: 900px) {
  .hudfix-simulator {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.hudfix-slider-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hudfix-slider {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  outline: none;
  -webkit-appearance: none;
}

.hudfix-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-cyan);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0, 180, 216, 0.5);
  transition: transform 0.1s ease;
}

.hudfix-slider::-webkit-slider-thumb:hover {
  transform: scale(1.25);
}

.hudfix-viewport {
  background: #000;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.hudfix-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}

.hudfix-simulated-hud {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(10, 15, 30, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #fff;
  pointer-events: none;
  transition: filter 0.2s, transform 0.2s, border-color 0.2s;
}

/* --- In-Game ImGui Overlay Emulator --- */
.imgui-wrapper {
  background: #1c1c1f;
  border: 2px solid #3c3c3f;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: #e0e0e0;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 15px 45px rgba(0,0,0,0.7);
  overflow: hidden;
  user-select: none;
}

.imgui-titlebar {
  background: #2a2a2e;
  border-bottom: 2px solid #3c3c3f;
  padding: 6px 12px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
}

.imgui-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 480px;
  overflow-y: auto;
}

.imgui-section {
  border-bottom: 1px dashed #3c3c3f;
  padding-bottom: 8px;
}

.imgui-section-title {
  color: var(--color-cyan);
  font-weight: 700;
  margin-bottom: 6px;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.5px;
}

.imgui-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.imgui-label {
  color: #c8c8c8;
}

.imgui-select {
  background: #2d2d30;
  border: 1px solid #4d4d50;
  color: #fff;
  padding: 2px 6px;
  font-family: inherit;
  font-size: 12px;
  outline: none;
  cursor: pointer;
  border-radius: 2px;
}

.imgui-select:focus {
  border-color: var(--color-cyan);
}

.imgui-checkbox-container {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.imgui-checkbox {
  width: 14px;
  height: 14px;
  border: 1px solid #4d4d50;
  background: #2d2d30;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 1px;
}

.imgui-checkbox.checked::after {
  content: "X";
  color: var(--color-cyan);
  font-weight: 900;
  font-size: 10px;
}

.overlay-wrapper {
  background: rgba(10, 15, 30, 0.4);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  width: 100%;
}

.game-viewport {
  position: relative;
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 16/10;
  border: 1px solid var(--border-dark);
  width: 100%;
}

.game-viewport-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: filter 0.3s ease;
}

.imgui-viewport-pos {
  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 5;
  transform: scale(0.68);
  transform-origin: top left;
}

@media (max-width: 1024px) {
  .imgui-viewport-pos {
    transform: scale(0.55);
  }
}

@media (max-width: 480px) {
  .imgui-viewport-pos {
    transform: scale(0.42);
  }
}

.game-hud-stats {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.85);
  padding: 8px 12px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-nvidia);
  text-align: right;
  line-height: 1.35;
  border: 1px solid rgba(255, 255, 255, 0.1);
  pointer-events: none;
}

/* --- Graphics Flowchart Architecture Stack --- */
.arch-flow-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin: 3rem 0;
  flex-wrap: wrap;
}

.arch-node {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-dark);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.section-light .arch-node {
  background: rgba(15, 23, 42, 0.02);
  border-color: var(--border-light);
  color: var(--text-light-primary);
}

.arch-arrow {
  color: var(--color-cyan);
  font-size: 1.5rem;
  font-weight: 700;
}

/* --- Inline Repo Image Wrappers --- */
.showcase-image-wrapper {
  background: #000;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: 1.5rem auto;
  box-shadow: 0 8px 30px rgba(0,0,0,0.03);
}

.section-dark .showcase-image-wrapper {
  border-color: var(--border-dark);
  box-shadow: 0 8px 30px rgba(0,0,0,0.45);
}

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

/* --- Footer --- */
footer {
  background-color: #03050a;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding: 5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: 3rem;
  margin-bottom: 4rem;
}

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

.footer-brand h4 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.footer-brand p {
  color: var(--text-dark-secondary);
  font-size: 0.9rem;
  max-width: 320px;
}

.footer-col h5 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.25rem;
  color: #fff;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.75rem;
}

.footer-col ul li a {
  color: var(--text-dark-secondary);
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.footer-col ul li a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-dark-secondary);
}

.footer-bottom-credits {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.35);
  line-height: 1.5;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive Overrides */
.page-title {
  font-size: 3.5rem;
  font-weight: 850;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #fff 30%, var(--text-dark-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
  width: 100%;
}

@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 2.75rem;
  }
  .page-title {
    font-size: 2.25rem !important;
  }
  /* Hide Guide Lines on Mobile/Tablets to prevent layout expansion */
  .line-accent-vertical {
    display: none !important;
  }
  /* Hide text links in sticky navigation bar to fit mobile screens */
  .nav-links {
    display: none !important;
  }
}

@media (max-width: 480px) {
  .hero-section h1 {
    font-size: 2.25rem;
  }
  .container {
    padding: 0 1rem !important;
  }
  /* Stack stats strip vertically */
  .stats-strip {
    grid-template-columns: 1fr !important;
    gap: 1.5rem;
  }
  .stat-num {
    font-size: 2.2rem !important;
  }
  /* Stack flowchart buttons vertically */
  .flow-btn-group {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0.75rem;
  }
  .flowchart-panel, .hudfix-simulator {
    padding: 1.25rem !important;
  }
  /* Force search input and dropdown filter to stack */
  .search-bar-row {
    flex-direction: column;
  }
  .search-input, .filter-dropdown {
    width: 100% !important;
  }
  /* Download cards: force column layout, prevent badge overflow */
  .card-light {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 1rem !important;
    padding: 1.25rem !important;
  }
  .card-light > div {
    min-width: 0 !important;
    width: 100% !important;
  }
  .card-light > div > div {
    flex-wrap: wrap !important;
  }
  .card-light .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
  /* Timeline: collapse left column */
  .timeline-step {
    grid-template-columns: 40px 1fr !important;
    gap: 0.75rem !important;
    padding-bottom: 2rem !important;
  }
  .timeline-badge {
    width: 32px !important;
    height: 32px !important;
    font-size: 0.85rem !important;
  }
  .timeline-line {
    left: 15px !important;
  }
  .timeline-content {
    padding: 1.25rem !important;
    overflow-x: auto;
    max-width: 100%;
  }
  .timeline-content h3 {
    font-size: 1.05rem !important;
  }
  /* Code tags: force wrapping on long strings */
  code {
    word-break: break-all !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
    display: inline;
  }
  /* Section titles */
  .section-title {
    font-size: 1.75rem !important;
  }
  .section-subtitle {
    font-size: 0.9rem !important;
  }
  /* Feature card grid: single column on mobile */
  .card-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }
  /* Feature cards */
  .card-dark, .card-light {
    padding: 1.25rem !important;
  }
  .card-dark h3, .card-light h3 {
    font-size: 1.1rem !important;
  }
  /* Footer grid */
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  .footer-bottom {
    flex-direction: column !important;
    text-align: center;
  }
}

/* --- Ambient Glow Orbs --- */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  background: var(--color-cyan);
  filter: blur(120px);
  pointer-events: none;
  z-index: 1;
}

/* --- Navigation Links & Dropdown Menu --- */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  color: var(--text-dark-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition-fast);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link:hover, .nav-link.active {
  color: #fff;
}

/* Dropdown styling */
.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(10, 13, 20, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  min-width: 180px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border-radius: var(--radius-md);
  z-index: 150;
  padding: 0.5rem 0;
  animation: fadeIn 0.2s ease-out;
  margin-top: 10px;
}

.dropdown-content::before {
  content: '';
  position: absolute;
  top: -15px;
  left: 0;
  right: 0;
  height: 15px;
  background: transparent;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown-item {
  color: var(--text-dark-secondary);
  padding: 0.6rem 1.25rem;
  text-decoration: none;
  display: block;
  font-size: 0.85rem;
  transition: all var(--transition-fast);
  text-align: left;
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  padding-left: 1.5rem;
}

/* Hide navigation links on small viewports to maintain header balance */
@media (max-width: 820px) {
  .nav-links {
    display: none;
  }
}

/* --- Contact Form Styling --- */
.contact-form-group {
  margin-bottom: 1.5rem;
  text-align: left;
}

.contact-form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.section-dark .contact-form-label {
  color: var(--text-dark-secondary);
}

.section-light .contact-form-label {
  color: var(--text-light-secondary);
}

.contact-input, .contact-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.section-dark .contact-input, .section-dark .contact-textarea {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
}

.section-dark .contact-input:focus, .section-dark .contact-textarea:focus {
  border-color: var(--color-cyan);
  box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.15);
  outline: none;
}

.section-light .contact-input, .section-light .contact-textarea {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  color: var(--text-light-primary);
}

.section-light .contact-input:focus, .section-light .contact-textarea:focus {
  border-color: var(--color-blue);
  box-shadow: 0 0 0 3px rgba(0, 112, 243, 0.1);
  outline: none;
}
