/* ==========================================================================
   NEXUS // DEV & ART - DESIGN SYSTEM & MAIN STYLES
   Tailored for VFX, Game Dev, 3D Modeling & Software Architecture
   ========================================================================== */

:root {
  /* Color Palette — Siyah, Koyu Gri, Elektrik Mavi & Sıvı Gümüş */
  --bg-primary: hsl(222, 47%, 4%);        /* #05070c — Derin Siyah */
  --bg-secondary: hsl(222, 35%, 7%);      /* #0b0f19 — Obsidyen Koyu Gri */
  --bg-tertiary: hsl(222, 28%, 11%);      /* #131a29 — Füme Antrasit */
  --bg-glass: hsla(222, 35%, 8%, 0.82);
  --bg-glass-heavy: hsla(222, 47%, 4%, 0.94);
  --bg-surface-elevated: hsl(222, 25%, 15%);
  --bg-surface-hover: hsl(222, 25%, 20%);

  /* Gümüş & Metalik Krom Vurgular */
  --silver-light: #ffffff;
  --silver-base: #e2e8f0;
  --silver-dim: #94a3b8;
  --silver-gradient: linear-gradient(135deg, #ffffff 0%, #cbd5e1 45%, #94a3b8 100%);
  --silver-border: rgba(226, 232, 240, 0.16);
  --silver-border-hover: rgba(226, 232, 240, 0.38);
  --silver-glow: rgba(226, 232, 240, 0.2);

  /* Border & Outline Tokens */
  --border-subtle: rgba(226, 232, 240, 0.08);
  --border-medium: rgba(56, 189, 248, 0.22);
  --border-bright: rgba(0, 240, 255, 0.55);

  /* Primary & Accent Palettes — Elektrik Mavi, Siber Cyan & Kobalt */
  --accent-cyan: hsl(186, 100%, 50%);     /* #00f0ff — Neon Siber Mavi */
  --accent-cyan-dim: hsla(186, 100%, 50%, 0.14);
  --accent-cyan-glow: hsla(186, 100%, 50%, 0.4);

  --accent-blue: hsl(205, 95%, 55%);      /* #2299ff — Kobalt Elektrik Mavi */
  --accent-blue-dim: hsla(205, 95%, 55%, 0.14);
  --accent-blue-glow: hsla(205, 95%, 55%, 0.35);

  --accent-amber: hsl(40, 95%, 55%);
  --accent-amber-dim: hsla(40, 95%, 55%, 0.14);

  --accent-emerald: hsl(155, 80%, 48%);
  --accent-emerald-dim: hsla(155, 80%, 48%, 0.14);

  --accent-violet: hsl(255, 85%, 68%);
  --accent-violet-dim: hsla(255, 85%, 68%, 0.14);

  /* Category Specific Colors */
  --cat-vfx: hsl(186, 100%, 50%);
  --cat-game: hsl(205, 95%, 55%);
  --cat-3d: hsl(220, 30%, 85%);          /* Gümüş 3D */
  --cat-software: hsl(155, 80%, 48%);
  --cat-cad: hsl(210, 90%, 60%);

  /* Typography */
  --font-display: 'Syne', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Text Colors */
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;
  --text-silver: #e2e8f0;
  --text-inverse: #05070c;

  /* Shadows and Elevation */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 8px 28px rgba(0, 0, 0, 0.65);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.85);
  --shadow-glow-cyan: 0 0 32px hsla(186, 100%, 50%, 0.25);
  --shadow-glow-silver: 0 0 24px rgba(226, 232, 240, 0.15);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 400ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --max-width: 1220px;
  --header-height: 68px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
}

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

html {
  font-size: 15px;
  scroll-behavior: smooth;
  color-scheme: dark;
  background-color: var(--bg-primary);
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100vw;
  position: relative;
  min-height: 100vh;
}

/* Subtle Grain & Ambient Background Texture */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: 
    radial-gradient(circle at 15% 20%, hsla(186, 100%, 50%, 0.04) 0%, transparent 45%),
    radial-gradient(circle at 85% 75%, hsla(255, 85%, 68%, 0.035) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, hsla(40, 95%, 55%, 0.02) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* Typography Hierarchy - Scaled for Optimal Proportion & Readability */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
  letter-spacing: -0.025em;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

h1 {
  font-size: clamp(1.85rem, 3.8vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.4rem, 2.6vw, 2.15rem);
  letter-spacing: -0.025em;
}

h3 {
  font-size: clamp(1.1rem, 1.6vw, 1.45rem);
}

h4 {
  font-size: 1.1rem;
}

p {
  color: var(--text-secondary);
  font-size: 0.96rem;
  line-height: 1.6;
}

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

code, pre, .font-mono {
  font-family: var(--font-mono);
}

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  outline: none;
  background: transparent;
}

img, svg, video, canvas {
  display: block;
  max-width: 100%;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  position: relative;
  z-index: 1;
}

/* Reading Progress Bar */
#readingProgressBar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-amber), var(--accent-emerald));
  z-index: 9999;
  transition: width 0.1s ease-out;
}

/* Navigation Bar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 1000;
  transition: all var(--transition-normal);
}

.navbar.scrolled {
  background: var(--bg-glass-heavy);
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--border-medium);
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, hsl(220, 20%, 18%), hsl(220, 20%, 10%));
  border: 1px solid var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 1rem;
  box-shadow: 0 0 15px var(--accent-cyan-dim);
  position: relative;
  overflow: hidden;
}

.brand-icon::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, hsla(185, 90%, 50%, 0.2), transparent);
  transform: rotate(45deg);
  animation: shine 4s infinite linear;
}

@keyframes shine {
  0% { transform: translateY(-100%) rotate(45deg); }
  20%, 100% { transform: translateY(100%) rotate(45deg); }
}

.brand-info {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.brand-badge {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  padding: 2px 6px;
  background: var(--accent-cyan-dim);
  color: var(--accent-cyan);
  border-radius: var(--radius-sm);
  border: 1px solid hsla(185, 90%, 50%, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.brand-subtitle {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.03em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  list-style: none;
}

.nav-link {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 0.35rem 0;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-cyan);
  transition: width var(--transition-normal);
  border-radius: 2px;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

/* Quick Search Button in Header */
.search-trigger-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-family: var(--font-mono);
  transition: all var(--transition-fast);
}

.search-trigger-btn:hover {
  border-color: var(--border-medium);
  color: var(--text-primary);
  background: var(--bg-surface-elevated);
}

.search-key-hint {
  padding: 2px 5px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  font-size: 0.65rem;
  color: var(--text-secondary);
}

/* Sound Effect Toggle Button */
.audio-toggle-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.audio-toggle-btn:hover {
  color: var(--accent-cyan);
  border-color: var(--border-medium);
  background: var(--bg-surface-elevated);
}

.audio-toggle-btn.active {
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  background: var(--accent-cyan-dim);
}

/* Mobile Menu Toggle */
.mobile-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero-section {
  min-height: 100vh;
  padding-top: calc(var(--header-height) + 3rem);
  padding-bottom: 5rem;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-bg-canvas {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.85;
  pointer-events: auto;
}

.hero-grid-layout {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 2.5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hero-status-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  background: hsla(155, 80%, 48%, 0.1);
  border: 1px solid hsla(155, 80%, 48%, 0.3);
  color: var(--accent-emerald);
  font-size: 0.76rem;
  font-family: var(--font-mono);
  font-weight: 600;
  width: fit-content;
}

.status-dot {
  width: 7px;
  height: 7px;
  background-color: var(--accent-emerald);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px var(--accent-emerald);
  animation: pulse-dot 2s infinite ease-in-out;
}

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

.hero-title {
  color: var(--text-primary);
  line-height: 1.2;
  font-size: clamp(1.55rem, 2.8vw, 2.35rem);
  white-space: normal;
  overflow-wrap: break-word;
}

.hero-title .highlight-gradient {
  background: linear-gradient(135deg, var(--text-primary) 20%, var(--accent-cyan) 75%, var(--accent-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 520px;
}

.hero-subtitle strong {
  color: var(--text-primary);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

/* Action Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--accent-cyan);
  color: var(--text-inverse);
  box-shadow: 0 4px 16px var(--accent-cyan-dim);
}

.btn-primary:hover {
  background: hsl(185, 95%, 55%);
  box-shadow: 0 6px 20px var(--accent-cyan-glow);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
}

.btn-secondary:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.btn-ghost:hover {
  color: var(--text-primary);
  border-color: var(--border-medium);
  background: var(--bg-secondary);
}

/* Hero Stats Bar */
.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--border-subtle);
  margin-top: 1.75rem;
}

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

.stat-number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.55rem;
  color: var(--text-primary);
  line-height: 1;
}

.stat-number span {
  color: var(--accent-cyan);
}

.stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-top: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* 3D Hero Visualizer Card */
.hero-interactive-card {
  background: var(--bg-glass-heavy);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 1rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  order: -1;
  max-width: 100%;
}

.hero-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  margin-top: 0.25rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border-subtle);
}

.card-title-tag {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.63rem;
  color: var(--text-secondary);
  min-width: 0;
  flex-shrink: 1;
  overflow: hidden;
}

.card-title-tag > span:not(.indicator-led) {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}

.card-title-tag .indicator-led {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
}

.hero-card-viewport {
  width: 100%;
  height: 270px;
  border-radius: var(--radius-md);
  background: radial-gradient(circle at center, hsl(220, 18%, 13%) 0%, hsl(220, 20%, 6%) 100%);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.hero-card-viewport canvas {
  width: 100%;
  height: 100%;
}

.viewport-overlay-controls {
  position: absolute;
  bottom: 0.85rem;
  left: 0.85rem;
  right: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: hsla(220, 18%, 8%, 0.8);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(8px);
}

.viewport-info {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.viewport-info span {
  color: var(--accent-cyan);
  font-weight: 600;
}

.viewport-actions {
  display: flex;
  gap: 0.5rem;
}

.control-chip-btn {
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.control-chip-btn:hover, .control-chip-btn.active {
  background: var(--accent-cyan-dim);
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
}

/* ==========================================================================
   SECTION HEADERS
   ========================================================================== */

.section {
  padding: 4.25rem 0;
  position: relative;
  z-index: 1;
}

.section-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 2.25rem;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.45rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.section-tag::before {
  content: '//';
  opacity: 0.7;
}

.section-title {
  color: var(--text-primary);
  margin-bottom: 0.65rem;
}

.section-desc {
  max-width: 680px;
  font-size: 0.96rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
