/* 
  Arefa AI Website Stylesheet - Astra-Inspired Design
  Colors: Cosmic pitch black, cyber cyan/teal, and hot pink/rose highlights.
*/

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

:root {
  --bg-primary: #000000;
  --bg-secondary: #070709;
  --bg-tertiary: #0c0c0f;
  
  --border-color: rgba(255, 255, 255, 0.08);
  --border-color-hover: rgba(255, 255, 255, 0.2);
  
  --text-primary: #ffffff;
  --text-secondary: #9a9ab0;
  --text-muted: #555566;
  
  /* Mood Theme Colors */
  --accent-cyan: #00f2fe;
  --accent-teal: #4facfe;
  --accent-rose: #ff007f;
  --accent-green: #00e676;
  --accent-orange: #ff9100;
  
  /* Active Mood Accent (Modified dynamically by JS) */
  --theme-accent: var(--accent-cyan);
  --theme-accent-rgb: 0, 242, 254;
  --theme-accent-gradient: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-teal) 100%);
  
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Outfit', sans-serif;
  --font-mono: 'Fira Code', 'Courier New', monospace;
  
  --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.15s ease;
}

/* Reset & Scrollbar */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  overflow-x: hidden;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--theme-accent);
}

/* General Grid Framework (Astra Aesthetic) */
.page-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  border-left: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  min-height: 100vh;
  position: relative;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(12px);
  z-index: 100;
  margin: 0 -40px;
  padding: 0 40px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.05rem;
  background: var(--theme-accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-smooth);
}

.brand-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  padding: 2px 6px;
  border-radius: 4px;
}

.system-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-green);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-green);
  animation: pulse-green 2s infinite;
}

/* Hero Section */
.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  border-bottom: 1px solid var(--border-color);
  margin: 0 -40px;
}

.hero-content {
  padding: 80px 40px;
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-tag {
  font-family: var(--font-mono);
  color: var(--theme-accent);
  font-size: 0.9rem;
  margin-bottom: 20px;
  letter-spacing: 0.1rem;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-title span {
  display: block;
  color: var(--text-primary);
}

.hero-title .highlight {
  background: var(--theme-accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 40px rgba(var(--theme-accent-rgb), 0.15);
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 600px;
  margin-bottom: 40px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  border-top: 1px solid var(--border-color);
  padding-top: 40px;
}

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

.stat-val {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
}

.stat-lbl {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* Hero Avatar/Visual Column with Slider */
.hero-visual {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 60px 40px;
  background: radial-gradient(circle at center, rgba(var(--theme-accent-rgb), 0.05) 0%, transparent 70%);
  position: relative;
  overflow: hidden;
}

.avatar-container {
  width: 320px;
  height: 320px;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  padding: 12px;
  background: rgba(10, 10, 12, 0.6);
  backdrop-filter: blur(8px);
  position: relative;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  transition: var(--transition-smooth);
}

.avatar-container:hover {
  border-color: var(--theme-accent);
  box-shadow: 0 0 30px rgba(var(--theme-accent-rgb), 0.2);
}

.avatar-img-wrapper {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.avatar-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  z-index: 0;
  transition: opacity 0.5s ease-in-out, transform var(--transition-smooth);
}

.avatar-img.active {
  opacity: 1;
  z-index: 1;
}

.avatar-container:hover .avatar-img.active {
  transform: scale(1.03);
}

/* Navigation Arrow Buttons */
.avatar-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  opacity: 0;
  transition: var(--transition-smooth);
}

.avatar-container:hover .avatar-arrow {
  opacity: 1;
}

.avatar-arrow:hover {
  border-color: var(--theme-accent);
  background: rgba(var(--theme-accent-rgb), 0.2);
  color: var(--theme-accent);
  box-shadow: 0 0 10px rgba(var(--theme-accent-rgb), 0.3);
}

.avatar-arrow.prev {
  left: -18px;
}

.avatar-arrow.next {
  right: -18px;
}

/* Scanline and Hologram effect */
.avatar-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(
    rgba(18, 16, 16, 0) 50%, 
    rgba(0, 0, 0, 0.25) 50%
  ), 
  linear-gradient(
    90deg, 
    rgba(255, 0, 0, 0.04), 
    rgba(0, 255, 0, 0.01), 
    rgba(0, 0, 255, 0.04)
  );
  background-size: 100% 4px, 6px 100%;
  z-index: 2;
}

.scanline {
  width: 100%;
  height: 4px;
  background: rgba(var(--theme-accent-rgb), 0.3);
  position: absolute;
  top: 0;
  left: 0;
  animation: scan 4s linear infinite;
  box-shadow: 0 0 10px rgba(var(--theme-accent-rgb), 0.5);
  z-index: 3;
}

/* Mood Controller Panel */
.mood-panel {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 320px;
}

.mood-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mood-current {
  color: var(--theme-accent);
  font-weight: bold;
}

.mood-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.mood-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 8px 4px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition-fast);
  text-align: center;
}

.mood-btn:hover {
  border-color: var(--border-color-hover);
  color: var(--text-primary);
}

.mood-btn.active[data-mood="tsundere"] {
  border-color: var(--accent-rose);
  color: var(--accent-rose);
  background: rgba(255, 0, 127, 0.05);
  box-shadow: 0 0 10px rgba(255, 0, 127, 0.15);
}

.mood-btn.active[data-mood="savage"] {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: rgba(0, 242, 254, 0.05);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.15);
}

.mood-btn.active[data-mood="proud"] {
  border-color: var(--accent-teal);
  color: var(--accent-teal);
  background: rgba(79, 172, 254, 0.05);
  box-shadow: 0 0 10px rgba(79, 172, 254, 0.15);
}

.mood-btn.active[data-mood="defensive"] {
  border-color: var(--accent-orange);
  color: var(--accent-orange);
  background: rgba(255, 145, 0, 0.05);
  box-shadow: 0 0 10px rgba(255, 145, 0, 0.15);
}

/* Chat / Terminal Section */
.chat-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  border-bottom: 1px solid var(--border-color);
  margin: 0 -40px;
}

.chat-info {
  padding: 80px 40px;
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.section-tag {
  font-family: var(--font-mono);
  color: var(--theme-accent);
  font-size: 0.85rem;
  margin-bottom: 16px;
  letter-spacing: 0.05rem;
  text-transform: uppercase;
}

.section-title {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.section-desc {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 1.05rem;
  margin-bottom: 30px;
}

.preset-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.preset-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.preset-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 14px 20px;
  text-align: left;
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition-fast);
}

.preset-btn:hover {
  background: var(--bg-tertiary);
  border-color: var(--theme-accent);
  color: var(--text-primary);
  transform: translateX(4px);
}

.preset-btn i {
  color: var(--theme-accent);
  opacity: 0;
  transition: var(--transition-fast);
}

.preset-btn:hover i {
  opacity: 1;
}

/* Chat Terminal Window */
.terminal-container {
  padding: 80px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: radial-gradient(circle at bottom right, rgba(var(--theme-accent-rgb), 0.03) 0%, transparent 60%);
}

.terminal {
  border: 1px solid var(--border-color);
  background: #050507;
  border-radius: 12px;
  height: 520px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
  position: relative;
}

.terminal-header {
  height: 48px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.terminal-dots {
  display: flex;
  gap: 8px;
}

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

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

.terminal-status {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--theme-accent);
}

.terminal-body {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

/* Chat Message Styling */
.msg {
  display: flex;
  flex-direction: column;
  max-width: 85%;
  animation: fade-in 0.3s ease forwards;
}

.msg.user {
  align-self: flex-end;
  align-items: flex-end;
}

.msg.arefa {
  align-self: flex-start;
  align-items: flex-start;
}

.msg-sender {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 4px;
  text-transform: uppercase;
}

.msg-bubble {
  padding: 12px 18px;
  border-radius: 12px;
  line-height: 1.5;
  white-space: pre-wrap;
}

.msg.user .msg-bubble {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-top-right-radius: 2px;
}

.msg.arefa .msg-bubble {
  background: rgba(var(--theme-accent-rgb), 0.06);
  border: 1px solid rgba(var(--theme-accent-rgb), 0.2);
  color: var(--text-primary);
  border-top-left-radius: 2px;
}

/* Dual Perspective tags in terminal */
.perspective-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.perspective-block {
  border-left: 2px solid var(--theme-accent);
  padding-left: 14px;
  margin-top: 4px;
}

.perspective-lbl {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.perspective-lbl.action {
  color: var(--theme-accent);
}

.perspective-lbl.reflective {
  color: var(--text-secondary);
}

.perspective-val {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-primary);
}

/* Typing Simulator indicator */
.typing-indicator {
  display: flex;
  gap: 5px;
  padding: 8px 12px;
}

.typing-dot {
  width: 6px;
  height: 6px;
  background-color: var(--theme-accent);
  border-radius: 50%;
  animation: typing-bounce 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

/* Terminal Footer / Input Form */
.terminal-footer {
  border-top: 1px solid var(--border-color);
  background: var(--bg-secondary);
  padding: 16px 20px;
}

.terminal-form {
  display: flex;
  gap: 12px;
}

.terminal-input-wrapper {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.terminal-prompt {
  position: absolute;
  left: 12px;
  font-family: var(--font-mono);
  color: var(--theme-accent);
  font-weight: bold;
}

.terminal-input {
  width: 100%;
  background: #000000;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 12px 12px 12px 30px;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  transition: var(--transition-fast);
}

.terminal-input:focus {
  outline: none;
  border-color: var(--theme-accent);
  box-shadow: 0 0 10px rgba(var(--theme-accent-rgb), 0.15);
}

.terminal-submit {
  background: var(--text-primary);
  color: var(--bg-primary);
  border: none;
  border-radius: 6px;
  padding: 0 20px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
}

.terminal-submit:hover {
  background: var(--theme-accent);
  color: var(--bg-primary);
}

/* Skills Grid Section */
.skills-section {
  padding: 100px 0;
  border-bottom: 1px solid var(--border-color);
}

.skills-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border-color);
  border-left: 1px solid var(--border-color);
}

.skill-card {
  padding: 40px;
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  background: transparent;
  transition: var(--transition-smooth);
}

.skill-card:hover {
  background: rgba(10, 10, 12, 0.4);
}

.skill-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--theme-accent);
  background: rgba(var(--theme-accent-rgb), 0.03);
  font-size: 1.25rem;
  transition: var(--transition-smooth);
}

.skill-card:hover .skill-icon {
  border-color: var(--theme-accent);
  background: rgba(var(--theme-accent-rgb), 0.1);
  box-shadow: 0 0 15px rgba(var(--theme-accent-rgb), 0.2);
}

.skill-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.skill-list {
  list-style: none;
}

.skill-list li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.skill-list li::before {
  content: "•";
  color: var(--theme-accent);
  font-size: 1.2rem;
}

/* Origin (Mystery Protocol) Section */
.creator-section {
  padding: 100px 0;
  border-bottom: 1px solid var(--border-color);
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  margin: 0 -40px;
}

.creator-info {
  padding: 0 40px;
  border-right: 1px solid var(--border-color);
}

.creator-content {
  padding: 0 40px;
}

.creator-card {
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  border-radius: 16px;
  padding: 40px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.creator-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}

/* Encrypted/Mysterious avatar logo placeholder */
.creator-photo-placeholder {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--theme-accent);
  background: rgba(var(--theme-accent-rgb), 0.05);
  box-shadow: 0 0 15px rgba(var(--theme-accent-rgb), 0.1);
  text-shadow: 0 0 10px rgba(var(--theme-accent-rgb), 0.3);
  animation: pulse-redacted 4s infinite ease-in-out;
}

.creator-title-wrapper h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
}

.creator-title-wrapper p {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--theme-accent);
}

.creator-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.detail-block h4 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 6px;
  letter-spacing: 0.05em;
}

.detail-block p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.detail-block a {
  color: var(--theme-accent);
  text-decoration: none;
}

.detail-block a:hover {
  text-decoration: underline;
}

.detail-block.full-width {
  grid-column: span 2;
}

.palestine-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-family: var(--font-mono);
  margin-top: 20px;
  color: var(--text-primary);
}

.palestine-flag {
  display: inline-flex;
  font-weight: bold;
}

/* Footer Section */
.footer {
  padding: 60px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

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

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition-fast);
}

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

/* Keyframes Animations */
@keyframes scan {
  0% { top: 0%; }
  50% { top: 100%; }
  100% { top: 0%; }
}

@keyframes pulse-green {
  0% { box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(0, 230, 118, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 230, 118, 0); }
}

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

@keyframes fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes typing-bounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1.0); }
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-content {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }
  
  .chat-section {
    grid-template-columns: 1fr;
  }
  .chat-info {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding: 60px 40px;
  }
  .terminal-container {
    padding: 60px 40px;
  }
  
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .creator-section {
    grid-template-columns: 1fr;
  }
  .creator-info {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 40px;
    margin-bottom: 40px;
  }
  .creator-content {
    padding: 0 40px;
  }
}

@media (max-width: 768px) {
  .page-container {
    padding: 0 20px;
    border-left: none;
    border-right: none;
  }
  .navbar {
    margin: 0 -20px;
    padding: 0 20px;
  }
  .hero {
    margin: 0 -20px;
  }
  .hero-content {
    padding: 60px 20px;
  }
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .chat-section {
    margin: 0 -20px;
  }
  .chat-info {
    padding: 60px 20px;
  }
  .terminal-container {
    padding: 40px 20px;
  }
  .terminal {
    height: 480px;
  }
  .skills-grid {
    grid-template-columns: 1fr;
  }
  .creator-section {
    margin: 0 -20px;
  }
  .creator-info {
    padding: 0 20px 40px 20px;
  }
  .creator-content {
    padding: 0 20px;
  }
  .creator-details {
    grid-template-columns: 1fr;
  }
  .detail-block.full-width {
    grid-column: span 1;
  }
  .footer {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}

/* ==========================================
   Dashboard Navigation Menu Style
   ========================================== */
.nav-links {
  display: flex;
  gap: 24px;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition-fast);
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid transparent;
}

.nav-links a:hover {
  color: var(--theme-accent);
  background: rgba(var(--theme-accent-rgb), 0.04);
  border-color: var(--border-color);
}

.nav-links a.active {
  color: var(--theme-accent);
  background: rgba(var(--theme-accent-rgb), 0.08);
  border-color: rgba(var(--theme-accent-rgb), 0.2);
}

/* ==========================================
   Dashboard Page Layout & Panels
   ========================================== */
.dashboard-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 0;
}

.dashboard-header {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 40px;
}

.dashboard-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid var(--theme-accent);
  box-shadow: 0 0 20px rgba(var(--theme-accent-rgb), 0.3);
  object-fit: cover;
  animation: pulse-avatar 3s infinite ease-in-out;
}

@keyframes pulse-avatar {
  0%, 100% { box-shadow: 0 0 15px rgba(var(--theme-accent-rgb), 0.2); }
  50% { box-shadow: 0 0 25px rgba(var(--theme-accent-rgb), 0.5); }
}

.dashboard-title-wrapper h1 {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 800;
}

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

.dashboard-typing-row {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 14px 20px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.dashboard-typing-row .cursor {
  color: var(--theme-accent);
  animation: blink-cursor 1s step-end infinite;
  font-weight: bold;
}

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

/* Dashboard Section Divider */
.dash-section-header {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: bold;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 40px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.dash-section-header::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border-color), transparent);
}

/* Stat Box Grid */
.dash-stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.dash-stat-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px 24px;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.dash-stat-box:hover {
  border-color: rgba(var(--theme-accent-rgb), 0.3);
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
  transform: translateY(-2px);
}

.dash-stat-box .number {
  font-family: var(--font-mono);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

.dash-stat-box.highlight .number {
  color: var(--theme-accent);
  text-shadow: 0 0 10px rgba(var(--theme-accent-rgb), 0.2);
}

.dash-stat-box .label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 6px;
  font-weight: 500;
}

/* Panel & Bar Charts */
.dash-panel {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
  transition: var(--transition-smooth);
}

.dash-panel:hover {
  border-color: rgba(var(--theme-accent-rgb), 0.2);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.dash-bar-chart {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dash-bar-row {
  display: grid;
  grid-template-columns: 180px 1fr 140px;
  align-items: center;
  gap: 16px;
  font-size: 0.85rem;
}

.dash-bar-label {
  font-family: var(--font-mono);
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-bar-track {
  height: 8px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 4px;
  overflow: hidden;
}

.dash-bar-fill {
  height: 100%;
  border-radius: 4px;
  width: 0%; /* Animated in JS */
  background: linear-gradient(90deg, rgba(var(--theme-accent-rgb), 0.5), var(--theme-accent));
  transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 8px rgba(var(--theme-accent-rgb), 0.3);
}

.dash-bar-fill.accent-rose { background: linear-gradient(90deg, rgba(255, 0, 127, 0.5), var(--accent-rose)); }
.dash-bar-fill.accent-cyan { background: linear-gradient(90deg, rgba(0, 242, 254, 0.5), var(--accent-cyan)); }
.dash-bar-fill.accent-teal { background: linear-gradient(90deg, rgba(79, 172, 254, 0.5), var(--accent-teal)); }
.dash-bar-fill.accent-orange { background: linear-gradient(90deg, rgba(255, 145, 0, 0.5), var(--accent-orange)); }

.dash-bar-value {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-align: right;
}

/* Double column content grid */
.dash-double-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

/* Sessions list */
.dash-session-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dash-session-card {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  transition: var(--transition-fast);
}

.dash-session-card:hover {
  background: var(--bg-tertiary);
  border-color: rgba(var(--theme-accent-rgb), 0.2);
  transform: translateX(4px);
}

.dash-session-rank {
  font-size: 1rem;
  text-align: center;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.dash-session-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-session-meta {
  font-size: 0.72rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

.dash-session-tokens {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--theme-accent);
  font-weight: bold;
}

/* Table styles */
.dash-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.dash-table th {
  background: rgba(255, 255, 255, 0.01);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 16px;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.dash-table td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  padding: 14px 16px;
  color: var(--text-secondary);
}

.dash-table tr:hover td {
  background: rgba(var(--theme-accent-rgb), 0.02);
}

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

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
}

.status-chip.connected {
  background: rgba(0, 230, 118, 0.08);
  border: 1px solid var(--accent-green);
  color: var(--accent-green);
}

.status-chip.disconnected {
  background: rgba(255, 0, 127, 0.08);
  border: 1px solid var(--accent-rose);
  color: var(--accent-rose);
}

/* Responsive Dashboard */
@media (max-width: 1024px) {
  .dash-stat-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .dash-double-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .dash-stat-row {
    grid-template-columns: 1fr;
  }
  .dash-bar-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .dash-bar-value {
    text-align: left;
  }
  .navbar {
    flex-direction: column;
    height: auto;
    padding: 16px 20px;
    gap: 16px;
  }
  .nav-links {
    width: 100%;
    justify-content: center;
  }
}
