/* 
  =========================================
  DESIGN SYSTEM & SYSTEM-WIDE STYLES
  =========================================
*/

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

:root {
  /* Colors */
  --bg-dark: #050505;
  --bg-surface: #0a0a0c;
  --bg-card: rgba(13, 13, 16, 0.75);
  --bg-card-hover: rgba(20, 20, 25, 0.95);
  
  --primary: #a78bfa; /* Bright Violet */
  --primary-rgb: 167, 139, 250;
  --secondary: #22d3ee; /* Bright Cyan */
  --secondary-rgb: 34, 211, 238;
  --accent-pink: #f472b6;
  --accent-orange: #fb923c;
  --accent-green: #34d399;
  
  --border-color: rgba(255, 255, 255, 0.05);
  --border-hover: rgba(255, 255, 255, 0.12);
  
  --text-main: #ededed;
  --text-muted: #8e939e;
  --text-dark: #050505;
  
  /* Fonts */
  --font-title: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  
  /* Layout */
  --header-height: 80px;
  --max-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  background-color: var(--bg-dark);
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Floating animated background blobs */
.bg-blobs-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.glow-blob {
  position: absolute;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.15;
  animation: blobFloat 18s infinite alternate ease-in-out;
}

.blob-1 {
  background: var(--primary);
  top: -10%;
  right: -5%;
}

.blob-2 {
  background: var(--secondary);
  bottom: -15%;
  left: -10%;
  animation-delay: -6s;
}

@keyframes blobFloat {
  0% { transform: translate(0px, 0px) scale(1); }
  50% { transform: translate(60px, -60px) scale(1.15); }
  100% { transform: translate(-40px, 40px) scale(0.9); }
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(167, 139, 250, 0.15);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(167, 139, 250, 0.35);
}

/* Typography & Layout */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

p {
  color: var(--text-muted);
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

/* Header Section */
.section-header {
  text-align: center;
  margin-bottom: 5rem;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--primary);
  background: rgba(167, 139, 250, 0.06);
  border: 1px solid rgba(167, 139, 250, 0.12);
  padding: 0.35rem 0.85rem;
  border-radius: 6px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 2.75rem;
  margin-bottom: 1rem;
}

.section-subtitle {
  max-width: 550px;
  margin: 0 auto;
  font-size: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all var(--transition-normal);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--bg-dark);
  box-shadow: 0 4px 15px rgba(167, 139, 250, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(167, 139, 250, 0.35);
  background: #b8a0ff;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

/* Glassmorphism Panel card */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  transition: border-color var(--transition-normal), background-color var(--transition-normal);
}

.glass-panel:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

/* 
  =========================================
  HEADER & NAVIGATION
  =========================================
*/
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 100;
  display: flex;
  align-items: center;
  transition: all var(--transition-normal);
}

header.scrolled {
  height: 70px;
  background: rgba(5, 5, 5, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
}

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

.logo {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.4rem;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.logo-dot {
  width: 6px;
  height: 6px;
  background-color: var(--secondary);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--secondary);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 0.5rem 0;
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: var(--text-main);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition-normal);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-link.active {
  color: var(--text-main);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Mobile Toggle button */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 32px;
  position: relative;
  z-index: 110;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-main);
  position: absolute;
  left: 5px;
  transition: transform var(--transition-normal), opacity var(--transition-normal);
}

.menu-toggle span:nth-child(1) { top: 11px; }
.menu-toggle span:nth-child(2) { top: 16px; }
.menu-toggle span:nth-child(3) { top: 21px; }

.menu-toggle.active span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* Navigation Drawer overlay */
.nav-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  max-width: 360px;
  background: rgba(5, 5, 5, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 105;
  box-shadow: -10px 0 30px rgba(0,0,0,0.5);
  transition: right var(--transition-slow);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem;
  border-left: 1px solid var(--border-color);
}

.nav-drawer.active { right: 0; }

.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0,0,0,0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
  z-index: 104;
}

.drawer-overlay.active { opacity: 1; visibility: visible; }

.drawer-menu {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  margin-bottom: 3rem;
}

.drawer-link {
  font-family: var(--font-title);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.drawer-link:hover,
.drawer-link.active {
  color: var(--text-main);
}

/* 
  =========================================
  HERO SECTION
  =========================================
*/
.hero-section {
  min-height: 95vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-height) + 2rem);
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  width: 100%;
}

.hero-content {
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(167, 139, 250, 0.05);
  border: 1px solid rgba(167, 139, 250, 0.12);
  color: #c084fc;
  padding: 0.45rem 1rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 3.8rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  font-weight: 800;
}

.hero-title span.glow {
  background: linear-gradient(to right, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 580px;
}

.hero-ctas {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.trust-metrics {
  display: flex;
  gap: 3rem;
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
}

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

.metric-number {
  font-family: var(--font-title);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--secondary);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.metric-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Circular Profile card frame */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

.profile-card-container {
  width: 320px;
  height: 320px;
  position: relative;
  border-radius: 50%;
  border: 2px solid rgba(167, 139, 250, 0.25);
  box-shadow:
    0 0 0 8px rgba(167, 139, 250, 0.05),
    0 0 0 16px rgba(167, 139, 250, 0.03),
    0 20px 60px rgba(0,0,0,0.7),
    0 0 40px rgba(167, 139, 250, 0.12);
  transition: all var(--transition-normal);
  background: var(--bg-surface);
  overflow: visible;
}

.profile-card-container:hover {
  transform: scale(1.03);
  border-color: rgba(167, 139, 250, 0.5);
  box-shadow:
    0 0 0 8px rgba(167, 139, 250, 0.08),
    0 0 0 16px rgba(167, 139, 250, 0.04),
    0 20px 60px rgba(0,0,0,0.7),
    0 0 50px rgba(167, 139, 250, 0.25);
}

.profile-img-clip {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
}

.profile-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 18%;
}

.floating-badge {
  position: absolute;
  background: rgba(10, 10, 12, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  padding: 0.45rem 1rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  transition: transform var(--transition-fast);
  white-space: nowrap;
}

.floating-badge:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
}

.location-badge {
  bottom: -2.2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

/* 
  =========================================
  INFINITE SCROLLING TICKER MARQUEE
  =========================================
*/
.ticker-section {
  padding: 2rem 0;
  background: rgba(255,255,255,0.01);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
}

.marquee-container {
  overflow: hidden;
  width: 100%;
  display: flex;
}

.marquee-content {
  display: flex;
  gap: 4rem;
  min-width: 200%;
  animation: marquee 35s linear infinite;
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

.marquee-item span.highlight {
  color: var(--primary);
}

.marquee-dot {
  width: 6px;
  height: 6px;
  background-color: var(--secondary);
  border-radius: 50%;
  opacity: 0.5;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* 
  =========================================
  PROCESS BLOCK (HOW I WORK)
  =========================================
*/
.process-section {
  padding: 8rem 0;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.process-card {
  padding: 2.25rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.process-card:hover {
  border-color: var(--primary);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
}

.process-step {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 700;
  display: block;
  margin-bottom: 1.5rem;
}

.process-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.process-desc {
  font-size: 0.9rem;
  line-height: 1.5;
}

/* 
  =========================================
  SELECTED WORKS GRID WITH DUAL VIEWS
  =========================================
*/
.works-section {
  padding: 8rem 0;
  position: relative;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

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

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

/* Card Visual Container (Logic & Output panels) */
.work-visual-container {
  height: 250px;
  position: relative;
  overflow: hidden;
  background: #08080b;
  border-bottom: 1px solid var(--border-color);
}

.work-panel-view {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.98);
  transition: opacity var(--transition-normal), transform var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
}

.work-panel-view.active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.work-panel-view svg {
  width: 100%;
  height: 100%;
}

/* Body and view toggles */
.work-body {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.work-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.work-tags {
  display: flex;
  gap: 0.5rem;
}

.work-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--secondary);
  background: rgba(34, 211, 238, 0.05);
  border: 1px solid rgba(34, 211, 238, 0.1);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.work-toggle-btns {
  display: flex;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 0.15rem;
}

.work-toggle-btn {
  background: none;
  border: none;
  font-family: var(--font-title);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0.3rem 0.65rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.work-toggle-btn.active {
  background: rgba(167, 139, 250, 0.1);
  color: var(--primary);
}

.work-title {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-main);
}

.work-desc {
  font-size: 0.95rem;
  line-height: 1.5;
  flex-grow: 1;
}

/* 
  =========================================
  INTERACTIVE PLAYGROUND SECTION
  =========================================
*/
.playground-section {
  padding: 8rem 0;
  position: relative;
  background: rgba(10, 10, 12, 0.4);
}

.playground-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem;
  align-items: stretch;
}

.playground-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tab-nav {
  display: flex;
  gap: 1rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
}

.tab-btn {
  background: none;
  border: none;
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.5rem 1rem;
  transition: color var(--transition-fast), border-bottom var(--transition-fast);
  position: relative;
}

.tab-btn.active {
  color: var(--primary);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -17px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.4s ease forwards;
}

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

.playground-preview-container {
  display: flex;
  align-items: stretch;
}

/* Simulated AI Chat Console Widget */
.chatbot-widget {
  width: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0,0,0,0.5);
  border: 1px solid var(--border-color);
}

.chat-header {
  background: rgba(15, 23, 42, 0.9);
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-agent {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.agent-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-weight: 700;
  color: var(--bg-dark);
}

.agent-status-indicator {
  position: relative;
}

.agent-status-indicator::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  background: #10b981;
  border: 2px solid #0f172a;
  border-radius: 50%;
}

.agent-info h4 {
  font-size: 0.95rem;
  font-weight: 600;
}

.agent-info span {
  font-size: 0.75rem;
  color: #10b981;
}

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

.dot-btn {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
}

.dot-btn.red { background: #ef4444; }
.dot-btn.yellow { background: #f59e0b; }
.dot-btn.green { background: #10b981; }

.chat-messages {
  flex-grow: 1;
  padding: 1.5rem;
  background: rgba(10, 10, 12, 0.7);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  overflow-y: auto;
  max-height: 380px;
  min-height: 320px;
}

.chat-bubble {
  max-width: 80%;
  padding: 0.85rem 1.15rem;
  border-radius: 12px;
  font-size: 0.95rem;
  animation: bubblePop 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes bubblePop {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.chat-bubble.bot {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-color);
  align-self: flex-start;
  border-bottom-left-radius: 2px;
  color: var(--text-main);
}

.chat-bubble.user {
  background: rgba(167, 139, 250, 0.15);
  border: 1px solid rgba(167, 139, 250, 0.2);
  align-self: flex-end;
  border-bottom-right-radius: 2px;
  color: var(--text-main);
}

.chat-suggested-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  background: rgba(10, 10, 12, 0.85);
  border-top: 1px solid var(--border-color);
}

.prompt-chip {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 9999px;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.prompt-chip:hover {
  background: rgba(167, 139, 250, 0.08);
  border-color: rgba(167, 139, 250, 0.3);
  color: var(--primary);
}

.chat-input-wrapper {
  padding: 1rem 1.5rem;
  background: rgba(15, 23, 42, 0.95);
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.chat-input {
  flex-grow: 1;
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

.chat-input:focus {
  border-color: var(--primary);
}

.chat-send-btn {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--primary);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-dark);
  cursor: pointer;
  transition: transform var(--transition-fast), background-color var(--transition-fast);
}

.chat-send-btn:hover {
  transform: scale(1.05);
  background: #b8a0ff;
}

/* Simulated Automation Workflow Console Widget */
.automation-widget {
  width: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0,0,0,0.5);
  border: 1px solid var(--border-color);
}

.automation-header {
  background: rgba(15, 23, 42, 0.9);
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.console-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 600;
}

.console-title svg {
  color: var(--primary);
}

.run-status {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: #34d399;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.run-pulse {
  width: 6px;
  height: 6px;
  background: #34d399;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.5; }
  100% { transform: scale(1); opacity: 1; }
}

.automation-screen {
  background: #070709;
  padding: 2rem;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.flow-node-container {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  position: relative;
  margin-top: 1rem;
}

.flow-node-container::before {
  content: '';
  position: absolute;
  top: 25px;
  bottom: 25px;
  left: 25px;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), var(--secondary), rgba(255,255,255,0.05));
  z-index: 1;
}

.flow-node {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  position: relative;
  z-index: 2;
  opacity: 0.4;
  transform: translateX(-10px);
  transition: all 0.5s ease;
}

.flow-node.active {
  opacity: 1;
  transform: translateX(0);
}

.flow-node.completed {
  opacity: 0.7;
  transform: translateX(0);
}

.node-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: #121217;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.5s ease;
}

.flow-node.active .node-icon {
  border-color: var(--primary);
  background: rgba(167, 139, 250, 0.1);
  color: var(--primary);
  box-shadow: 0 0 15px rgba(167, 139, 250, 0.3);
}

.flow-node.completed .node-icon {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.node-details {
  background: rgba(30, 41, 59, 0.2);
  border: 1px solid var(--border-color);
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  flex-grow: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.5s ease;
}

.flow-node.active .node-details {
  border-color: rgba(167, 139, 250, 0.25);
  background: rgba(30, 41, 59, 0.4);
}

.node-info h5 {
  font-size: 0.9rem;
  margin-bottom: 0.15rem;
}

.node-info p {
  font-size: 0.75rem;
}

.node-status {
  font-family: var(--font-title);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.flow-node.active .node-status {
  color: var(--primary);
}

.flow-node.completed .node-status {
  color: #10b981;
}

.automation-console-logs {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.85rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #34d399;
  min-height: 80px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.log-line {
  margin-top: 0.25rem;
  opacity: 0.8;
  animation: logSlide 0.3s ease forwards;
}

@keyframes logSlide {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 0.8; transform: translateY(0); }
}

/* 
  =========================================
  CONTACT SECTION
  =========================================
*/
.contact-section {
  padding: 8rem 0;
  position: relative;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 4rem;
  align-items: stretch;
}

.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-heading h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.contact-heading p {
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 3rem;
}

.contact-method-card {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.contact-icon {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.contact-method-card:hover .contact-icon {
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(167, 139, 250, 0.2);
}

.contact-method-details h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
  color: var(--text-muted);
}

.contact-method-details p {
  font-size: 1.1rem;
  color: var(--text-main);
  font-weight: 500;
}

.contact-method-details a {
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition-fast);
}

.contact-method-details a:hover {
  border-color: var(--primary);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.social-btn:hover {
  border-color: var(--secondary);
  color: var(--secondary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(34, 211, 238, 0.2);
}

/* Contact Form */
.contact-form-panel {
  padding: 3rem;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.form-group-full {
  grid-column: span 2;
}

.form-field {
  position: relative;
  margin-top: 1rem;
}

.form-input {
  width: 100%;
  background: rgba(0,0,0,0.2);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(167, 139, 250, 0.1);
}

.form-label {
  position: absolute;
  left: 1.25rem;
  top: 1rem;
  color: var(--text-muted);
  transition: all var(--transition-fast);
  pointer-events: none;
  font-size: 1rem;
}

/* Floating labels using :focus and :placeholder-shown */
.form-input:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label {
  top: -0.65rem;
  left: 0.75rem;
  font-size: 0.8rem;
  background: var(--bg-surface);
  padding: 0 0.5rem;
  color: var(--primary);
  font-weight: 500;
  border-radius: 4px;
}

textarea.form-input {
  min-height: 150px;
  resize: vertical;
}

/* Advanced UX validation states using :user-valid and :user-invalid */
.form-input:user-valid {
  border-color: #10b981;
}

.form-input:user-invalid {
  border-color: #ef4444;
}

.form-error-msg {
  display: none;
  font-size: 0.75rem;
  color: #ef4444;
  margin-top: 0.35rem;
  padding-left: 0.25rem;
}

.form-input:user-invalid ~ .form-error-msg {
  display: block;
}

.form-submit-container {
  grid-column: span 2;
  display: flex;
  justify-content: flex-end;
}

.form-status {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: 8px;
  font-size: 0.95rem;
  display: none;
  text-align: center;
}

.form-status.success {
  display: block;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: #34d399;
}

.form-status.error {
  display: block;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #f87171;
}

/* 
  =========================================
  FOOTER
  =========================================
*/
footer {
  border-top: 1px solid var(--border-color);
  padding: 4rem 0 2rem;
  background: rgba(5, 5, 5, 0.75);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
}

.footer-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 350px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* 
  =========================================
  PERSISTENT FLOATING COMMAND TERMINAL WIDGET
  =========================================
*/
.terminal-widget-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 360px;
  height: 320px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  border: 1px solid var(--border-color);
  background: rgba(10, 10, 12, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all var(--transition-normal);
  font-family: var(--font-mono);
}

/* Maximized State */
.terminal-widget-container.maximized {
  width: 600px;
  height: 500px;
}

/* Minimized State */
.terminal-widget-container.minimized {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  border-color: transparent;
  box-shadow: 0 10px 25px rgba(167, 139, 250, 0.4);
}

.terminal-widget-container.minimized:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(167, 139, 250, 0.6);
}

.terminal-min-icon {
  display: none;
  font-weight: bold;
  font-size: 1.25rem;
  color: var(--bg-dark);
}

.terminal-widget-container.minimized .terminal-min-icon {
  display: block;
}

.terminal-widget-container.minimized .term-header,
.terminal-widget-container.minimized .term-body,
.terminal-widget-container.minimized .term-input-line {
  display: none !important;
}

/* Header */
.term-header {
  background: rgba(20, 20, 25, 0.95);
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

.term-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.term-controls {
  display: flex;
  gap: 0.45rem;
}

.term-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  cursor: pointer;
}

.term-dot.close { background: #ef4444; }
.term-dot.min { background: #f59e0b; }
.term-dot.max { background: #10b981; }

/* Body */
.term-body {
  flex-grow: 1;
  padding: 1rem;
  overflow-y: auto;
  font-size: 0.8rem;
  color: var(--secondary);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  line-height: 1.4;
}

.term-line {
  word-break: break-all;
}

.term-line.sys { color: var(--text-muted); }
.term-line.cmd { color: var(--primary); }
.term-line.out { color: var(--text-main); }
.term-line.green { color: var(--accent-green); }

.term-suggested-triggers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 0.5rem;
  border-top: 1px dashed rgba(255,255,255,0.05);
}

.term-suggest-btn {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-color);
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.term-suggest-btn:hover {
  background: rgba(167, 139, 250, 0.1);
  border-color: var(--primary);
}

/* Input prompt line */
.term-input-line {
  background: rgba(15, 15, 20, 0.95);
  border-top: 1px solid var(--border-color);
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
}

.term-prompt {
  color: var(--primary);
}

.term-stdin {
  flex-grow: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

/* 
  =========================================
  RESPONSIVE MEDIA QUERIES
  =========================================
*/

@media (max-width: 1024px) {
  .hero-title {
    font-size: 3rem;
  }
  
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  
  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-ctas {
    justify-content: center;
  }
  
  .trust-metrics {
    justify-content: center;
  }
  
  .hero-visual {
    order: -1;
  }
  
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .works-grid {
    grid-template-columns: 1fr;
  }
  
  .playground-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .contact-info {
    text-align: center;
  }
  
  .contact-methods {
    align-items: center;
  }
  
  .social-links {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  header {
    height: 70px;
  }
  
  .nav-menu, .header-cta .btn {
    display: none;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .process-grid {
    grid-template-columns: 1fr;
  }
  
  .project-mockup-layout {
    grid-template-columns: 1fr;
  }
  
  .kanban-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .contact-form {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .form-group-full, .form-submit-container {
    grid-column: span 1;
  }
  
  .form-submit-container button {
    width: 100%;
  }
  
  .contact-form-panel {
    padding: 1.5rem;
  }
  
  .footer-top {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  /* Automatically minimize terminal widget on mobile to save space */
  .terminal-widget-container {
    bottom: 1rem;
    right: 1rem;
  }
  
  .terminal-widget-container.maximized {
    width: calc(100% - 2rem);
    height: 400px;
  }
}

/* 
  =========================================
  PROGRESSIVE ENHANCEMENT: SCROLL-DRIVEN ANIMATIONS
  =========================================
*/
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    /* Entry fade-in/scale-up animation for cards */
    @keyframes entry-reveal {
      from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
      }
      to {
        opacity: 1;
        transform: translateY(0) scale(1);
      }
    }

    /* Target direct containers to animate as they enter the scrollport */
    .process-grid > *,
    .works-grid > *,
    .contact-layout > *,
    .playground-layout > * {
      animation: entry-reveal auto linear both;
      animation-timeline: view();
      animation-range: entry 10% entry 40%;
    }
  }
}

/* =========================================
   THEME TOGGLE BUTTON
   ========================================= */
.theme-toggle {
  background: none;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.theme-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(var(--primary-rgb), 0.06);
}

/* dark mode shows sun (click → go light) */
.theme-toggle .icon-sun { display: block; }
.theme-toggle .icon-moon { display: none; }

/* =========================================
   LIGHT THEME OVERRIDES
   ========================================= */
[data-theme="light"] {
  --bg-dark:         #f0f2f9;
  --bg-surface:      #ffffff;
  --bg-card:         rgba(255, 255, 255, 0.82);
  --bg-card-hover:   rgba(255, 255, 255, 0.98);
  --primary:         #6d28d9;
  --primary-rgb:     109, 40, 217;
  --secondary:       #0891b2;
  --secondary-rgb:   8, 145, 178;
  --accent-pink:     #db2777;
  --accent-green:    #059669;
  --border-color:    rgba(0, 0, 0, 0.09);
  --border-hover:    rgba(0, 0, 0, 0.20);
  --text-main:       #0f0f1a;
  --text-muted:      #64748b;
  --text-dark:       #ffffff;
}

/* light mode shows moon (click → go dark) */
[data-theme="light"] .theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: block; }

[data-theme="light"] .glow-blob {
  opacity: 0.07;
}

[data-theme="light"] header.scrolled {
  background: rgba(240, 242, 249, 0.88);
}

[data-theme="light"] .nav-drawer {
  background: rgba(240, 242, 249, 0.97);
  backdrop-filter: blur(24px);
}

[data-theme="light"] .drawer-overlay {
  background: rgba(15, 15, 26, 0.45);
}

[data-theme="light"] .btn-secondary {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-main);
}

[data-theme="light"] .btn-secondary:hover {
  background: rgba(0, 0, 0, 0.10);
}

[data-theme="light"] .floating-badge {
  background: rgba(255, 255, 255, 0.92);
  color: var(--text-main);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

[data-theme="light"] ::-webkit-scrollbar-thumb {
  background: rgba(109, 40, 217, 0.18);
}

[data-theme="light"] ::-webkit-scrollbar-thumb:hover {
  background: rgba(109, 40, 217, 0.35);
}

/* Ticker / marquee bg */
[data-theme="light"] .ticker-section {
  background: rgba(0,0,0,0.03);
}

/* Tool showcase mockup frames */
[data-theme="light"] .tool-mockup-frame,
[data-theme="light"] .tool-mock-container {
  background: rgba(255,255,255,0.85);
  border-color: rgba(0,0,0,0.10);
}

/* Contact form inputs */
[data-theme="light"] .form-input,
[data-theme="light"] .form-select,
[data-theme="light"] .form-textarea {
  background: rgba(255,255,255,0.85);
  border-color: rgba(0,0,0,0.12);
  color: var(--text-main);
}

[data-theme="light"] .form-input:focus,
[data-theme="light"] .form-select:focus,
[data-theme="light"] .form-textarea:focus {
  border-color: var(--primary);
  background: #ffffff;
}

/* Section tags */
[data-theme="light"] .section-tag {
  background: rgba(109, 40, 217, 0.07);
  border-color: rgba(109, 40, 217, 0.15);
}

/* Hero badge */
[data-theme="light"] .hero-badge {
  background: rgba(109, 40, 217, 0.07);
  border-color: rgba(109, 40, 217, 0.15);
  color: var(--primary);
}

/* PDF export div always stays dark regardless of theme */
#cv-export {
  color-scheme: only dark;
}
