/* ==========================================================================
   COMPONENTS.CSS - UI Components, Cards, Navbar & IDE Window
   ========================================================================== */

/* 1. Navbar & Theme Control Bar */
.navbar-wrapper {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.navbar {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: nowrap;
}

.brand-logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-primary);
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-logo .logo-text {
  white-space: nowrap;
  display: inline-block;
}

.logo-accent {
  color: var(--accent-color);
  font-family: var(--font-mono);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  flex-shrink: 0;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--accent-color);
}

/* Floating Theme Switcher Bar */
.theme-control-bar {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(0, 0, 0, 0.35);
  padding: 0.3rem 0.6rem;
  border-radius: 30px;
  border: 1px solid var(--border-color);
  white-space: nowrap;
  flex-shrink: 0;
}

.theme-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-right: 0.2rem;
  white-space: nowrap;
}

.theme-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 0.25rem 0.6rem;
  font-size: 0.78rem;
  border-radius: 20px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.theme-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.1);
}

.theme-btn.active {
  background: var(--accent-color);
  color: #111;
  font-weight: 700;
  box-shadow: 0 0 10px var(--accent-color);
}

.lang-toggle-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--border-color);
  color: var(--accent-color);
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  font-size: 0.78rem;
  border-radius: 20px;
  cursor: pointer;
  margin-right: 0.3rem;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.lang-toggle-btn:hover {
  background: var(--accent-color);
  color: #111;
}

.sound-toggle-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.2rem;
  margin-left: 0.2rem;
  border-radius: 50%;
  font-size: 0.85rem;
  white-space: nowrap;
}

/* VS Code Bottom Status Bar (Fixed at bottom 0, height 30px, z-index 200) */
.ide-status-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  height: 30px;
  background: #181825;
  color: #a6adc8;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 200;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

html[data-theme="ide"] .ide-status-bar {
  display: flex;
}

.ide-status-bar .status-left, .ide-status-bar .status-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.status-item {
  white-space: nowrap;
}

#status-toggle-panel {
  background: #89b4fa;
  color: #111;
  border: none;
  font-weight: 700;
  padding: 0.15rem 0.6rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.75rem;
}

#status-toggle-panel:hover {
  filter: brightness(1.1);
}

/* Official VS Code Integrated Bottom Panel (Docked directly above Status Bar at bottom: 30px) */
.ide-bottom-panel {
  display: none;
  position: fixed;
  bottom: 30px;
  left: 0;
  width: 100vw;
  height: 220px;
  background: #11111b;
  border-top: 2px solid #89b4fa;
  z-index: 190;
  font-family: var(--font-mono);
  overflow: hidden;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.7);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

html[data-theme="ide"] .ide-bottom-panel {
  display: block;
}

.ide-bottom-panel.collapsed {
  transform: translateY(100%); /* Completely hidden below status bar when closed */
}

.panel-header-tabs {
  background: #181825;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  height: 35px;
}

.tab-group {
  display: flex;
  gap: 0.2rem;
}

.panel-tab {
  background: transparent;
  border: none;
  color: #a6adc8;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
  border-top: 2px solid transparent;
}

.panel-tab.active {
  color: #89b4fa;
  border-top-color: #89b4fa;
  background: #11111b;
  font-weight: 700;
}

.panel-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.panel-close-btn {
  background: transparent;
  border: none;
  color: #a6adc8;
  cursor: pointer;
  font-size: 0.9rem;
}

.panel-close-btn:hover {
  color: #f38ba8;
}

.terminal-cli-body {
  height: calc(220px - 75px);
  padding: 0.6rem 1.2rem;
  overflow-y: auto;
  font-size: 0.85rem;
  color: #cdd6f4;
  background: #11111b;
}

.terminal-cli-input-line {
  display: flex;
  align-items: center;
  background: #181825;
  padding: 0.4rem 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  height: 40px;
}

/* Hide standard website navbar in IDE mode (Ultra-Clean VS Code Workspace Layout) */
html[data-theme="ide"] .navbar-wrapper {
  display: none !important;
}

/* VS Code Top Menu Bar (100% Working Interactive Dropdowns) */
.ide-top-menu {
  display: none;
  background: #181825;
  color: #a6adc8;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 0.35rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  justify-content: space-between;
  align-items: center;
  user-select: none;
  position: sticky;
  top: 0;
  z-index: 110;
}

html[data-theme="ide"] .ide-top-menu {
  display: flex;
}

.ide-top-menu .menu-items {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.menu-dropdown-wrapper {
  position: relative;
  display: inline-block;
}

.ide-top-menu .menu-item {
  color: #a6adc8;
  cursor: pointer;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  display: inline-block;
}

.ide-top-menu .menu-item.highlight-item {
  color: #89b4fa;
  font-weight: 700;
}

.menu-dropdown-wrapper:hover .menu-item,
.menu-dropdown-wrapper:focus-within .menu-item {
  color: #cdd6f4;
  background: rgba(255, 255, 255, 0.12);
}

/* VS Code Dropdown Menu Container */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: #1e1e2e;
  border: 1px solid #89b4fa;
  border-radius: 6px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.85), 0 0 15px rgba(137, 180, 250, 0.2);
  padding: 0.4rem 0;
  z-index: 9999;
}

.menu-dropdown-wrapper:hover .dropdown-menu,
.menu-dropdown-wrapper:focus-within .dropdown-menu {
  display: flex;
  flex-direction: column;
}

.dropdown-header {
  font-size: 0.68rem;
  font-weight: 700;
  color: #a6adc8;
  padding: 0.35rem 1rem 0.15rem;
  letter-spacing: 0.5px;
}

.dropdown-option {
  background: transparent;
  border: none;
  color: #cdd6f4;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 0.45rem 1rem;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
  width: 100%;
  box-sizing: border-box;
}

.dropdown-option:hover,
.dropdown-option.active {
  background: #89b4fa;
  color: #111 !important;
  font-weight: 700;
}

.dropdown-option .shortcut {
  font-size: 0.7rem;
  opacity: 0.65;
  margin-left: 1rem;
}

.dropdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
  margin: 0.35rem 0;
}

.ide-top-menu .menu-center {
  font-weight: 600;
  color: #cdd6f4;
}

.ide-top-menu .menu-right {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.git-branch {
  color: #89b4fa;
}

.window-controls .w-btn {
  margin-left: 0.5rem;
  cursor: pointer;
  color: #6c7086;
}

.window-controls .w-btn:hover {
  color: #cdd6f4;
}

/* Collapsible IDE Sidebar Toggle Button */
.ide-sidebar-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  color: var(--accent-color);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

html[data-theme="ide"] .ide-sidebar-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.ide-sidebar-toggle:hover {
  background: var(--accent-color);
  color: #111;
}

/* Collapsible File Explorer Sidebar */
.ide-sidebar {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  width: 250px;
  height: calc(100vh - 70px);
  background: #11111b;
  border-right: 1px solid var(--border-color);
  z-index: 95;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  padding: 1rem;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 5px 0 20px rgba(0, 0, 0, 0.4);
}

html[data-theme="ide"] .ide-sidebar {
  display: block;
}

.ide-sidebar.collapsed {
  transform: translateX(-100%);
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: #a6adc8;
  font-weight: 700;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.5rem;
}

.sidebar-close-btn {
  background: transparent;
  border: none;
  color: #a6adc8;
  cursor: pointer;
}

.sidebar-tree .folder-name {
  color: #89b4fa;
  font-weight: 600;
  display: block;
  margin-bottom: 0.5rem;
}

.tree-files {
  padding-left: 0.8rem;
}

.tree-file {
  margin: 0.4rem 0;
}

.tree-file a {
  color: #a6adc8;
  display: block;
  padding: 0.25rem 0.4rem;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.tree-file a:hover, .tree-file.active a {
  background: #1e1e2e;
  color: #89b4fa;
}

/* Responsive & Tag Wrapping Fixes (No Awkward Word Breaks) */
.team-tag, .artist-pill, .media-tag, .tech-pill {
  white-space: nowrap;
  display: inline-block;
}

.team-tags, .artist-list, .media-tags, .tech-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.btn, .theme-btn, .ide-tab {
  white-space: nowrap;
}

/* IDE Mode Body Bottom Padding Fix (Prevents Status Bar Overlap / 穿模修复) */
html[data-theme="ide"] body {
  padding-bottom: 80px;
}

/* VS Code Bottom Status Bar (Fixed at bottom 0, z-index 105) */
.ide-status-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #181825;
  color: #a6adc8;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.3rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  z-index: 105;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

html[data-theme="ide"] .ide-status-bar {
  display: flex;
}

.ide-status-bar .status-left, .ide-status-bar .status-right {
  display: flex;
  gap: 1.2rem;
}

.status-item {
  white-space: nowrap;
}

.status-item.bg-blue {
  background: #89b4fa;
  color: #111;
  padding: 0.1rem 0.4rem;
  font-weight: 700;
}

/* Interactive Hacker CLI Terminal Drawer (Fixed at bottom 30px, z-index 104) */
.ide-terminal-drawer {
  display: none;
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 92%;
  max-width: 980px;
  background: rgba(17, 17, 27, 0.98);
  border: 1px solid #89b4fa;
  border-radius: 12px;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.85), 0 0 20px rgba(137, 180, 250, 0.35);
  z-index: 104;
  font-family: var(--font-mono);
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* VS Code Open Editor Tab Bar (IDE Theme Specific) */
.ide-editor-tab-bar {
  display: none;
  background: #1e1e2e;
  border-bottom: 1px solid var(--border-color);
  padding: 0 1rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  overflow-x: auto;
}

html[data-theme="ide"] .ide-editor-tab-bar {
  display: flex;
  gap: 0.2rem;
}

.ide-editor-tab-bar .tab-item {
  background: rgba(0, 0, 0, 0.25);
  border-top: 2px solid transparent;
  padding: 0.4rem 0.8rem;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.ide-editor-tab-bar .tab-item.active {
  background: #11111b;
  border-top-color: #89b4fa;
}

.ide-editor-tab-bar .tab-item a {
  color: #a6adc8;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ide-editor-tab-bar .tab-item.active a {
  color: #cdd6f4;
  font-weight: 600;
}

.tab-close {
  font-size: 0.75rem;
  color: #6c7086;
}

.tab-close:hover {
  color: #f38ba8;
}

/* Interactive Hacker CLI Terminal Drawer */
.ide-terminal-drawer {
  display: none;
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 950px;
  background: rgba(17, 17, 27, 0.95);
  border: 1px solid #89b4fa;
  border-radius: 12px;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.8), 0 0 15px rgba(137, 180, 250, 0.3);
  z-index: 99;
  font-family: var(--font-mono);
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

html[data-theme="ide"] .ide-terminal-drawer {
  display: block;
}

.ide-terminal-drawer.collapsed {
  transform: translateX(-50%) translateY(calc(100% - 40px));
}

.terminal-drawer-header {
  background: #181825;
  padding: 0.5rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.terminal-toggle-btn {
  background: #89b4fa;
  color: #111;
  font-weight: 700;
  border: none;
  padding: 0.2rem 0.7rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
}

.help-hint {
  font-size: 0.75rem;
  color: #a6adc8;
  margin-left: 0.8rem;
}

.cmd-highlight {
  color: #a6e3a1;
  font-weight: 700;
}

.term-status {
  font-size: 0.75rem;
  color: #a6e3a1;
}

.terminal-cli-body {
  height: 140px;
  padding: 0.8rem 1rem;
  overflow-y: auto;
  font-size: 0.85rem;
  color: #cdd6f4;
}

.term-line {
  margin: 0.2rem 0;
}

.term-cmd {
  color: #89b4fa;
  font-weight: 600;
}

.term-error {
  color: #f38ba8;
}

.terminal-cli-input-line {
  display: flex;
  align-items: center;
  background: #11111b;
  padding: 0.5rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.prompt-user {
  color: #a6e3a1;
  font-weight: 700;
  font-size: 0.85rem;
  margin-right: 0.6rem;
}

.cli-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #cdd6f4;
  outline: none;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.navbar {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-primary);
}

.logo-accent {
  color: var(--accent-color);
  font-family: var(--font-mono);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--accent-color);
}

/* Floating Theme Switcher Bar */
.theme-control-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(0, 0, 0, 0.25);
  padding: 0.35rem 0.6rem;
  border-radius: 30px;
  border: 1px solid var(--border-color);
}

.theme-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-right: 0.2rem;
}

.theme-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 0.3rem 0.65rem;
  font-size: 0.8rem;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.theme-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.1);
}

.theme-btn.active {
  background: var(--accent-color);
  color: #111;
  font-weight: 700;
  box-shadow: 0 0 10px var(--accent-color);
}

.lang-toggle-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--border-color);
  color: var(--accent-color);
  font-weight: 700;
  padding: 0.3rem 0.65rem;
  font-size: 0.8rem;
  border-radius: 20px;
  cursor: pointer;
  margin-right: 0.4rem;
  transition: all 0.2s ease;
}

.lang-toggle-btn:hover {
  background: var(--accent-color);
  color: #111;
}

.sound-toggle-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  margin-left: 0.2rem;
  border-radius: 50%;
  font-size: 0.9rem;
}

/* 2. Buttons & Badges */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.6rem;
  font-weight: 600;
  border-radius: var(--border-radius);
  transition: all 0.25s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent-color);
  color: #111;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

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

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-color);
}

/* 3. Hero Section Components */
.hero-section {
  padding: 4rem 0 5rem 0;
  min-height: calc(85vh - 80px);
  display: flex;
  align-items: center;
  margin-bottom: 3rem;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  padding: 0.4rem 0.9rem;
  border-radius: 30px;
  font-size: 0.85rem;
  color: var(--accent-color);
  margin-bottom: 1.5rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
}

.hero-title {
  font-size: 3.25rem;
  margin-bottom: 1.25rem;
  font-family: var(--font-heading);
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent-color), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 60ch;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.tech-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-pill {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-family: var(--font-mono);
}

/* 4. 3D Tilt Cards & Glass Cards */
.tilt-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  transition: transform 0.15s ease-out, border-color 0.3s ease, box-shadow 0.3s ease;
  transform-style: preserve-3d;
  overflow: hidden;
}

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

.hero-card {
  padding: 0;
}

.card-glass-header {
  background: rgba(0, 0, 0, 0.4);
  padding: 0.75rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.window-dots {
  display: flex;
  gap: 0.4rem;
}

.window-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.window-dots .dot.red { background: #ff5f56; }
.window-dots .dot.yellow { background: #ffbd2e; }
.window-dots .dot.green { background: #27c93f; }

.window-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.card-glass-body {
  padding: 1.5rem;
}

.profile-avatar-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.avatar-placeholder {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--accent-color), var(--accent-secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111;
  font-weight: 800;
  font-size: 1.3rem;
}

.key-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.25rem 0;
  text-align: center;
}

.stat-item .stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-color);
}

.stat-item .stat-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.card-divider {
  border: 0;
  height: 1px;
  background: var(--border-color);
  margin: 1rem 0;
}

.card-footer-quote {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-align: center;
  font-style: italic;
}

/* 5. Timeline Section */
.timeline-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.timeline-card {
  padding: 1.75rem;
  position: relative;
}

.timeline-badge {
  display: inline-block;
  background: var(--accent-color);
  color: #111;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  margin-bottom: 0.75rem;
}

.timeline-role {
  font-size: 1.4rem;
  margin-bottom: 0.25rem;
}

.timeline-location {
  font-size: 0.95rem;
  color: var(--accent-secondary);
  margin-bottom: 1rem;
}

.timeline-desc {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.project-highlight-box {
  background: rgba(0, 0, 0, 0.25);
  border-left: 3px solid var(--accent-color);
  padding: 0.85rem 1.1rem;
  border-radius: 4px;
  font-size: 0.9rem;
}

/* 6. Culture Grid Section */
.culture-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.culture-card {
  padding: 1.75rem;
}

.culture-card .card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.culture-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--accent-color);
}

.team-tags, .artist-list, .media-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.team-tag, .artist-pill, .media-tag {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  padding: 0.3rem 0.65rem;
  border-radius: 12px;
  font-size: 0.8rem;
}

/* 7. Web IDE Section */
.ide-container {
  max-width: 1000px;
  margin: 0 auto;
  background: #11111b;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.ide-header {
  background: #181825;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid var(--border-color);
}

.ide-tabs {
  display: flex;
  gap: 0.5rem;
}

.ide-tab {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  padding: 0.4rem 0.9rem;
  border-radius: 6px;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.ide-tab.active {
  background: #1e1e2e;
  color: var(--accent-color);
  border-color: var(--border-color);
}

.btn-run {
  background: #10b981;
  color: #111;
  font-weight: 700;
  border: none;
  padding: 0.35rem 0.9rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
}

.btn-run:hover {
  filter: brightness(1.1);
}

.ide-body {
  display: flex;
  padding: 1rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  background: #1e1e2e;
  color: #cdd6f4;
  min-height: 220px;
  overflow-x: auto;
}

.line-numbers {
  display: flex;
  flex-direction: column;
  color: #585b70;
  padding-right: 1rem;
  user-select: none;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  margin-right: 1rem;
}

.code-display {
  white-space: pre-wrap;
}

.ide-console {
  background: #11111b;
  border-top: 1px solid var(--border-color);
  padding: 0.75rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.console-header {
  color: var(--text-secondary);
  font-size: 0.75rem;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
}

.console-body {
  color: #a6e3a1;
}

/* 8. n8n Simulator Section */
.n8n-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem;
}

.n8n-input-group {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.n8n-input {
  flex: 1;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.8rem 1.2rem;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.n8n-input:focus {
  border-color: var(--accent-color);
}

/* Workflow Canvas Nodes */
.workflow-canvas {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.3);
  padding: 1.5rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 2rem;
  overflow-x: auto;
}

.node-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #181825;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  min-width: 130px;
  transition: all 0.3s ease;
  position: relative;
}

.node-item.active {
  border-color: #89b4fa;
  box-shadow: 0 0 20px rgba(137, 180, 250, 0.5);
  transform: translateY(-4px);
  background: #1e1e2e;
}

.node-item.completed {
  border-color: #a6e3a1;
  background: #11111b;
}

.node-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.node-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
}

.node-line {
  flex: 1;
  height: 2px;
  background: var(--border-color);
  margin: 0 0.5rem;
}

.story-output-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1.25rem;
}

.story-header {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.story-body {
  font-size: 1rem;
  line-height: 1.7;
}

/* 9. Micro-Tools Section */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.tool-card {
  padding: 2rem;
}

.control-group {
  margin: 1.25rem 0;
}

.control-group label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
  color: var(--text-secondary);
}

.control-group input[type="range"] {
  width: 100%;
  accent-color: var(--accent-color);
}

.slot-card {
  border: 2px dashed var(--border-color);
  opacity: 0.8;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.slot-badge {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  font-size: 0.75rem;
  margin-bottom: 1rem;
}

.slot-placeholder {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-top: 1rem;
}

/* 10. Footer Section */
.footer-section {
  border-top: 1px solid var(--border-color);
  padding: 5rem 1.5rem 3rem 1.5rem;
  text-align: center;
  background: var(--bg-secondary);
}

.footer-content h2 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.footer-content p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.contact-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.contact-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.contact-btn:hover {
  border-color: var(--accent-color);
  transform: translateY(-3px);
}

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

/* Responsive Overrides */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
  }
}
