/* ========================================
   CYBERPUNK NEON + GLASSMORPHISM THEME
   Fonts: Space Grotesk + JetBrains Mono
   ======================================== */

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

:root {
  /* Primary Colors - Cyberpunk Neon */
  --color-bg: #0a0a0f;
  --color-bg-secondary: #12121a;
  --color-bg-card: rgba(18, 18, 26, 0.7);
  
  /* Neon Accents */
  --neon-cyan: #00f5ff;
  --neon-pink: #ff00ff;
  --neon-purple: #b829dd;
  --neon-blue: #2979ff;
  --neon-green: #00ff9d;
  
  /* Text Colors */
  --color-text: #ffffff;
  --color-text-secondary: rgba(255, 255, 255, 0.7);
  --color-text-muted: rgba(255, 255, 255, 0.5);
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
  --gradient-text: linear-gradient(135deg, var(--neon-cyan), var(--neon-pink));
  --gradient-glow: radial-gradient(circle at center, var(--neon-cyan), transparent 70%);
  
  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-hover: rgba(255, 255, 255, 0.15);
  
  /* Shadows */
  --shadow-neon-cyan: 0 0 20px rgba(0, 245, 255, 0.3), 0 0 40px rgba(0, 245, 255, 0.1);
  --shadow-neon-pink: 0 0 20px rgba(255, 0, 255, 0.3), 0 0 40px rgba(255, 0, 255, 0.1);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
  
  /* Typography */
  --font-primary: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  
  /* Spacing */
  --container-width: 1200px;
  --section-padding: 120px;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
}

/* Light Theme */
[data-theme="light"] {
  --color-bg: #f8f9fa;
  --color-bg-secondary: #ffffff;
  --color-bg-card: rgba(255, 255, 255, 0.8);
  --color-text: #0a0a0f;
  --color-text-secondary: rgba(10, 10, 15, 0.7);
  --color-text-muted: rgba(10, 10, 15, 0.5);
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(0, 0, 0, 0.08);
  --glass-border-hover: rgba(0, 0, 0, 0.15);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Three.js Canvas Background */
#hero-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* Page Shell */
.page-shell {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ========================================
   NAVBAR
   ======================================== */
.navbar {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: 1150px;
  z-index: 1000;
  animation: slideDown 0.8s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-card);
  transition: var(--transition-normal);
}

.navbar-inner:hover {
  border-color: var(--glass-border-hover);
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--color-text);
}

.brand-mark {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.brand-mark-glow {
  position: absolute;
  inset: -2px;
  background: var(--gradient-primary);
  filter: blur(10px);
  opacity: 0.5;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.8; }
}

.brand-mark::before {
  content: 'DS';
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 14px;
  color: var(--color-bg);
  position: relative;
  z-index: 1;
}

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

.brand-name {
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.brand-tagline {
  font-size: 12px;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
}

/* Nav Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  position: relative;
  padding: 8px 16px;
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-full);
  transition: var(--transition-fast);
  overflow: hidden;
}

.nav-link::before {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0;
  transition: var(--transition-fast);
}

.nav-link:hover {
  color: transparent;
  background: rgba(255, 255, 255, 0.05);
}

.nav-link:hover::before {
  opacity: 1;
}

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-switch {
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-full);
  padding: 4px;
  border: 1px solid var(--glass-border);
}

.lang-btn {
  padding: 6px 12px;
  border: none;
  background: transparent;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-fast);
}

.lang-btn.active,
.lang-btn:hover {
  background: var(--gradient-primary);
  color: var(--color-bg);
}

.theme-toggle {
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: var(--transition-fast);
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

.theme-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  width: auto;
  padding: 0 12px;
}

.theme-status {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-secondary);
  font-family: var(--font-mono);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 140px 0 80px;
}

.hero-content {
  animation: fadeInUp 1s ease 0.2s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-family: var(--font-mono);
  margin-bottom: 24px;
  animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
  0%, 100% { box-shadow: 0 0 5px rgba(0, 245, 255, 0.2); }
  50% { box-shadow: 0 0 20px rgba(0, 245, 255, 0.4); }
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--neon-green);
  border-radius: 50%;
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero-title {
  font-size: clamp(48px, 8vw, 80px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-title-line {
  display: block;
}

.hero-title-line--accent {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-title-line--small {
  font-size: 0.4em;
  font-weight: 400;
  color: var(--color-text-secondary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 16px;
}

.hero-description {
  font-size: 18px;
  color: var(--color-text-secondary);
  max-width: 480px;
  margin-bottom: 40px;
  line-height: 1.7;
}

/* Hero Actions */
.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 60px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  font-family: var(--font-primary);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-normal);
  border: none;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--color-bg);
  box-shadow: var(--shadow-neon-cyan);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(0, 245, 255, 0.4);
}

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

.btn-secondary:hover {
  border-color: var(--neon-cyan);
  box-shadow: var(--shadow-neon-cyan);
}

.btn-icon {
  transition: transform var(--transition-fast);
}

.btn:hover .btn-icon {
  transform: translate(4px, -4px);
}

/* Hero Stats */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-stat-value {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 600;
  color: var(--neon-cyan);
}

.hero-stat-label {
  font-size: 12px;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero-stat-divider {
  width: 1px;
  height: 40px;
  background: var(--glass-border);
}

/* Hero Visual */
.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  animation: fadeInUp 1s ease 0.4s both;
}

.hero-image-wrapper {
  position: relative;
  width: 320px;
  height: 400px;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  position: relative;
  z-index: 1;
}

.hero-image-glow {
  position: absolute;
  inset: -4px;
  background: var(--gradient-primary);
  border-radius: var(--radius-lg);
  filter: blur(30px);
  opacity: 0.15;
  z-index: 0;
  animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.15; transform: scale(1); }
  50% { opacity: 0.2; transform: scale(1.02); }
}

.hero-tech-stack {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.tech-tag {
  padding: 8px 16px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-text-secondary);
  transition: var(--transition-fast);
}

.tech-tag:hover {
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
}

/* ========================================
   SECTIONS GENERAL
   ======================================== */
.section {
  padding: var(--section-padding) 0;
}

.section-header {
  margin-bottom: 64px;
}

.section-eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--neon-cyan);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.about-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.about-card {
  padding: 32px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  transition: var(--transition-normal);
}

.about-card:hover {
  transform: translateY(-4px);
  border-color: var(--glass-border-hover);
  box-shadow: var(--shadow-card);
}

.about-card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  border-radius: var(--radius-md);
  font-size: 24px;
  margin-bottom: 20px;
}

.about-card-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}

.about-card-text {
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* ========================================
   SKILLS SECTION (Tasks)
   ======================================== */
.tasks-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.task-item {
  padding: 20px 24px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  font-size: 16px;
  color: var(--color-text);
  transition: var(--transition-normal);
}

.task-item:hover {
  border-color: var(--neon-cyan);
  transform: translateX(8px);
}

@media (max-width: 768px) {
  .tasks-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================
    PROJECTS SECTION
    ======================================== */
.projects {
  position: relative;
}

.section-description {
  font-size: 17px;
  color: var(--color-text-secondary);
  max-width: 640px;
  line-height: 1.7;
  margin-top: 16px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}

.project-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: var(--glass-border-hover);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), var(--shadow-neon-cyan);
}

.project-image {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.project-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.project-icon {
  font-size: 64px;
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.3));
}

.project-links {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 16px;
  gap: 10px;
  opacity: 0;
  transition: opacity 0.3s ease;
  background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, transparent 50%);
}

.project-card:hover .project-links {
  opacity: 1;
}

.project-link {
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-link:hover {
  transform: scale(1.1);
  background: var(--gradient-primary);
  border-color: transparent;
}

.project-info {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-info h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--color-text);
}

.project-description {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 8px;
}

.project-description-en {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
  font-style: italic;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.project-tag {
  padding: 6px 12px;
  background: rgba(0, 245, 255, 0.08);
  border: 1px solid rgba(0, 245, 255, 0.15);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--neon-cyan);
  transition: var(--transition-fast);
}

.project-tag:hover {
  background: rgba(0, 245, 255, 0.15);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .project-card {
    max-width: 100%;
  }
}

/* ========================================
    CONTACT SECTION
    ======================================== */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 0.5fr;
  gap: 64px;
  align-items: center;
}

.contact-description {
  font-size: 18px;
  color: var(--color-text-secondary);
  margin-bottom: 40px;
  max-width: 480px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--color-bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--color-text);
  transition: var(--transition-normal);
}

.contact-link:hover {
  border-color: var(--neon-cyan);
  transform: translateX(8px);
  box-shadow: 0 0 15px rgba(0, 245, 255, 0.15);
}

.contact-link.primary {
  background: rgba(0, 245, 255, 0.08);
  border-color: rgba(0, 245, 255, 0.2);
}

.contact-link.primary:hover {
  background: rgba(0, 245, 255, 0.12);
}

.contact-link-icon {
  font-size: 24px;
}

.contact-link-text {
  font-size: 16px;
  font-weight: 500;
}

.contact-visual {
  display: flex;
  justify-content: center;
}

.contact-card {
  position: relative;
  padding: 40px;
  background: var(--color-bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  text-align: center;
}

.contact-card-content {
  position: relative;
  z-index: 1;
}

[data-theme="light"] .contact-card,
[data-theme="light"] .contact-link {
  background: var(--color-bg-secondary);
  border-color: var(--glass-border-hover);
}

[data-theme="light"] .contact-card-status {
  color: var(--color-text);
}

.contact-card-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}

.contact-card-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 600;
}

.status-dot {
  width: 12px;
  height: 12px;
  background: var(--neon-green);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--neon-green);
  animation: blink 2s ease-in-out infinite;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--glass-border);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-text {
  font-size: 14px;
  color: var(--color-text-muted);
}

.footer-link {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: var(--transition-fast);
}

.footer-link:hover {
  color: var(--neon-cyan);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }
  
  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-stats {
    justify-content: center;
  }
  
  .hero-visual {
    order: -1;
  }
  
  .hero-image-wrapper {
    width: 280px;
    height: 350px;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  .contact-visual {
    order: -1;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 80px;
  }
  
  .navbar {
    top: 12px;
    width: calc(100% - 24px);
  }
  
  .navbar-inner {
    padding: 10px 16px;
  }
  
  .brand-tagline,
  .nav-menu {
    display: none;
  }
  
  .about-grid,
  .skills-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
  
  .hero-stats {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }
  
  .hero-stat-divider {
    display: none;
  }
  
  .footer-inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

/* ========================================
   CHAT WIDGET
   ======================================== */
.chat-widget {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.chat-toggle {
  border: 1px solid rgba(0, 245, 255, 0.35);
  background: var(--gradient-primary);
  color: var(--color-bg);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-full);
  padding: 10px 18px;
  cursor: pointer;
  box-shadow: var(--shadow-neon-cyan);
  transition: var(--transition-fast);
}

.chat-toggle:hover {
  transform: translateY(-1px);
}

.chat-panel {
  width: min(380px, calc(100vw - 32px));
  max-height: min(72vh, 620px);
  background: var(--color-bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.chat-panel[hidden] {
  display: none;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--glass-border);
}

.chat-title {
  font-size: 14px;
  font-weight: 600;
}

.chat-close {
  border: 1px solid var(--glass-border);
  background: transparent;
  color: var(--color-text-secondary);
  border-radius: var(--radius-full);
  width: 28px;
  height: 28px;
  cursor: pointer;
  font-size: 14px;
  transition: var(--transition-fast);
}

.chat-close:hover {
  color: var(--color-text);
  border-color: var(--glass-border-hover);
}

.chat-messages {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  min-height: 220px;
}

.chat-message {
  max-width: 92%;
  border-radius: 14px;
  padding: 8px 10px;
  font-size: 14px;
  line-height: 1.45;
  word-break: break-word;
}

.chat-message-user {
  align-self: flex-end;
  background: rgba(0, 245, 255, 0.2);
  border: 1px solid rgba(0, 245, 255, 0.3);
}

.chat-message-assistant {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
}

.chat-message-system {
  align-self: center;
  font-size: 12px;
  color: var(--color-text-muted);
  text-align: center;
}

.chat-form {
  border-top: 1px solid var(--glass-border);
  padding: 10px 12px 12px;
  display: grid;
  gap: 8px;
}

.chat-label {
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--color-text-muted);
}

.chat-input {
  width: 100%;
  resize: vertical;
  min-height: 68px;
  max-height: 160px;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  background: transparent;
  color: var(--color-text);
  font-family: var(--font-primary);
  font-size: 14px;
  padding: 10px;
}

.chat-input:focus {
  outline: none;
  border-color: var(--neon-cyan);
}

.chat-submit {
  border: none;
  border-radius: var(--radius-full);
  padding: 10px 14px;
  background: var(--gradient-primary);
  color: var(--color-bg);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.chat-submit[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

@media (max-width: 768px) {
  .chat-widget {
    right: 12px;
    left: 12px;
    bottom: 12px;
    align-items: stretch;
  }

  .chat-panel {
    width: 100%;
    max-height: 68vh;
  }

  .chat-toggle {
    width: 100%;
  }
}

/* ========================================
   SCROLLBAR
   ======================================== */
::-webkit-scrollbar {
  width: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--glass-border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--glass-border-hover);
}

/* Selection */
::selection {
  background: rgba(0, 245, 255, 0.3);
  color: var(--color-text);
}

/* ========================================
   PRICING SECTION
   ======================================== */
.pricing {
  padding: 6rem 2rem;
  background: var(--color-bg);
}

.pricing-table-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  overflow-x: auto;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-card);
  border-radius: 12px;
  overflow: hidden;
}

.pricing-table th,
.pricing-table td {
  padding: 1rem 1.5rem;
  text-align: left;
  border-bottom: 1px solid var(--glass-border);
}

.pricing-table th {
  background: var(--color-accent);
  color: var(--color-bg);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.pricing-table tr:hover {
  background: rgba(0, 245, 255, 0.05);
}

.pricing-table td:first-child {
  font-weight: 600;
  color: var(--color-accent);
}

.pricing-table td:last-child {
  font-family: var(--font-mono);
  color: var(--color-accent);
}

@media (max-width: 768px) {
  .pricing-table th,
  .pricing-table td {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }
}

/* ========================================
   FAQ SECTION
   ======================================== */
.faq {
  padding: 6rem 2rem;
  background: var(--color-bg);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 1rem;
  background: var(--color-card);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
}

.faq-item[open] {
  border-color: var(--color-accent);
}

.faq-question {
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--color-text);
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--color-accent);
  transition: transform 0.3s ease;
}

.faq-item[open] .faq-question::after {
  transform: rotate(45deg);
}

.faq-question:hover {
  background: rgba(0, 245, 255, 0.05);
}

.faq-answer {
  padding: 0 1.5rem 1.5rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  border-top: 1px solid var(--glass-border);
  padding-top: 1rem;
  margin-top: 0.5rem;
}
