/* ============================================================
   trcdev — Next-Gen Modern Engineering & Executive Design System
   Developer & Engineer: Julio Trelles (@trcdev)
   ============================================================ */

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

:root {
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Transitions */
  --tr-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --tr-base: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --tr-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --tr-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ============================================================
   Dark Mode Theme (Executive Deep Slate & Royal Sapphire Blue)
   ============================================================ */
:root[data-theme="dark"], :root {
  --bg-main: #0a0e17;
  --bg-secondary: #0f1624;
  --bg-card: rgba(16, 24, 39, 0.75);
  --bg-card-hover: rgba(26, 38, 62, 0.88);
  --bg-card-solid: #121c2e;
  --bg-glass: rgba(15, 23, 42, 0.82);
  --bg-code: #0b121f;
  
  --line-dim: rgba(255, 255, 255, 0.08);
  --line-mid: rgba(255, 255, 255, 0.15);
  --line-active: rgba(59, 130, 246, 0.5);

  --fg-main: #f8fafc;
  --fg-secondary: #94a3b8;
  --fg-muted: #64748b;

  --accent-primary: #2563eb;
  --accent-light: #3b82f6;
  --accent-glow: #60a5fa;
  --accent-dark: #1d4ed8;
  --accent-bg: rgba(37, 99, 235, 0.14);
  --accent-border: rgba(59, 130, 246, 0.32);

  --cyan-neon: #0284c7;
  --cyan-bg: rgba(2, 132, 199, 0.14);
  --purple-neon: #6366f1;
  --purple-bg: rgba(99, 102, 241, 0.14);
  --amber-neon: #f59e0b;
  --danger-neon: #ef4444;

  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 35px -8px rgba(37, 99, 235, 0.35);
  --shadow-glow-cyan: 0 0 35px -8px rgba(2, 132, 199, 0.3);

  --grid-pattern: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.07) 1px, transparent 1px);
  --spotlight-gradient: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(59, 130, 246, 0.14), transparent 40%);
}

/* ============================================================
   Light Mode Theme (Crisp Executive Slate & Cobalt)
   ============================================================ */
:root[data-theme="light"] {
  --bg-main: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.92);
  --bg-card-hover: #ffffff;
  --bg-card-solid: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.88);
  --bg-code: #f1f5f9;

  --line-dim: rgba(15, 23, 42, 0.08);
  --line-mid: rgba(15, 23, 42, 0.14);
  --line-active: rgba(37, 99, 235, 0.45);

  --fg-main: #0f172a;
  --fg-secondary: #475569;
  --fg-muted: #64748b;

  --accent-primary: #1d4ed8;
  --accent-light: #2563eb;
  --accent-glow: #1e40af;
  --accent-dark: #1e3a8a;
  --accent-bg: rgba(37, 99, 235, 0.08);
  --accent-border: rgba(37, 99, 235, 0.24);

  --cyan-neon: #0369a1;
  --cyan-bg: rgba(3, 105, 161, 0.1);
  --purple-neon: #4f46e5;
  --purple-bg: rgba(79, 70, 229, 0.1);
  --amber-neon: #d97706;
  --danger-neon: #dc2626;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-glow: 0 0 35px -8px rgba(37, 99, 235, 0.18);
  --shadow-glow-cyan: 0 0 35px -8px rgba(2, 132, 199, 0.15);

  --grid-pattern: radial-gradient(circle at 50% 50%, rgba(37, 99, 235, 0.07) 1px, transparent 1px);
  --spotlight-gradient: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(37, 99, 235, 0.08), transparent 40%);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--fg-main);
  background-color: var(--bg-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--tr-smooth), color var(--tr-smooth);
}

::selection {
  background: var(--accent-primary);
  color: #ffffff;
}

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

button, input, textarea, select {
  font: inherit;
  color: inherit;
  border: none;
  outline: none;
  background: none;
}

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

svg {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

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

.panama-flag-svg {
  display: inline-block;
  vertical-align: -2px;
  margin-left: 6px;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.22);
}

/* Ambient Background Canvas Effect */
.bg-ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: var(--grid-pattern);
  background-size: 32px 32px;
  opacity: 0.8;
}

.bg-ambient::before {
  content: '';
  position: absolute;
  top: -15%;
  left: 20%;
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.12) 0%, rgba(2, 132, 199, 0.06) 45%, transparent 70%);
  filter: blur(85px);
  border-radius: 50%;
  animation: floatOrb 18s ease-in-out infinite alternate;
}

.bg-ambient::after {
  content: '';
  position: absolute;
  top: 45%;
  right: 10%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.09) 0%, rgba(2, 132, 199, 0.04) 50%, transparent 70%);
  filter: blur(95px);
  border-radius: 50%;
  animation: floatOrb 22s ease-in-out infinite alternate-reverse;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 60px) scale(1.1); }
  100% { transform: translate(-30px, -40px) scale(0.95); }
}

/* Layout Wrapper */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .container { padding: 0 18px; }
}

/* ============================================================
   Component: Status Bar (Executive Dev Bar)
   ============================================================ */
.statusbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 32px;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line-dim);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-secondary);
}

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

.sb-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sb-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  background: var(--accent-bg);
  border: 1px solid var(--accent-border);
  border-radius: 999px;
  color: var(--accent-glow);
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: 0.03em;
}

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

@keyframes pulseLight {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; filter: drop-shadow(0 0 4px var(--accent-light)); }
  100% { transform: scale(0.9); opacity: 0.7; }
}

.sb-location {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--fg-muted);
}

.sb-location .path-active {
  color: var(--fg-main);
  font-weight: 500;
}

.sb-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sb-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 4px;
  border: 1px solid var(--line-dim);
  background: rgba(255, 255, 255, 0.02);
  color: var(--fg-secondary);
  font-size: 10.5px;
  letter-spacing: 0.05em;
  transition: all var(--tr-fast);
}

.sb-toggle-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--line-active);
  color: var(--fg-main);
}

.sb-toggle-btn .active-lang {
  color: var(--accent-light);
  font-weight: 600;
}

@media (max-width: 640px) {
  .sb-hide-mobile { display: none !important; }
}

/* ============================================================
   Component: Main Navigation (Navbar)
   ============================================================ */
.navbar {
  position: sticky;
  top: 32px;
  z-index: 90;
  background: color-mix(in srgb, var(--bg-main) 88%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-dim);
  transition: all var(--tr-base);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.25), rgba(99, 102, 241, 0.25));
  border: 1px solid var(--accent-border);
  color: var(--accent-glow);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
  box-shadow: 0 0 14px -3px rgba(37, 99, 235, 0.4);
}

.brand-text {
  font-family: var(--font-sans);
  color: var(--fg-main);
}

.brand-cursor {
  color: var(--accent-light);
  animation: blinkCursor 1s step-end infinite;
}

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

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--fg-secondary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 0;
  position: relative;
  transition: color var(--tr-fast);
}

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

.nav-link .nav-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-light);
  opacity: 0.9;
}

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

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

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

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid var(--line-dim);
}

.mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--fg-main);
  transition: transform var(--tr-base), opacity var(--tr-base);
}

@media (max-width: 860px) {
  .nav-menu {
    position: fixed;
    top: 100px;
    left: 0;
    right: 0;
    background: var(--bg-main);
    border-bottom: 1px solid var(--line-dim);
    flex-direction: column;
    padding: 24px;
    gap: 18px;
    align-items: flex-start;
    display: none;
    box-shadow: var(--shadow-md);
  }

  .nav-menu.open {
    display: flex;
  }

  .mobile-toggle {
    display: flex;
  }
}

/* ============================================================
   Buttons & Badges UI
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: all var(--tr-base);
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-light), var(--accent-primary));
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 20px -4px rgba(37, 99, 235, 0.45);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #60a5fa, var(--accent-light));
  box-shadow: 0 6px 26px -2px rgba(37, 99, 235, 0.6);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--fg-main);
  border: 1px solid var(--line-mid);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-border);
  color: var(--accent-glow);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.78rem;
  border-radius: 6px;
}

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

.btn:hover .btn-icon-right svg {
  transform: translateX(4px);
}

/* ============================================================
   Section: Hero Section
   ============================================================ */
.hero-section {
  padding: 72px 0 96px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.profile-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--line-mid);
  backdrop-filter: blur(12px);
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--tr-fast);
}

.profile-pill:hover {
  border-color: var(--accent-border);
}

.profile-avatar-wrap {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  border: 1.5px solid var(--accent-primary);
}

.profile-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-info {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.profile-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--fg-main);
}

.profile-handle {
  font-size: 0.72rem;
  color: var(--accent-glow);
  font-family: var(--font-mono);
}

.hero-status-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-glow);
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}

.hero-title {
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
  color: var(--fg-main);
}

.hero-title .text-gradient {
  background: linear-gradient(135deg, #60a5fa 0%, #38bdf8 50%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-title .text-dim {
  color: var(--fg-muted);
  font-weight: 700;
}

.hero-lead {
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--fg-secondary);
  max-width: 54ch;
  margin-bottom: 36px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-bottom: 40px;
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px dashed var(--line-dim);
}

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

.metric-num {
  font-size: 1.25rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--fg-main);
}

.metric-num span {
  color: var(--accent-light);
}

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

/* ============================================================
   Component: Interactive Code Terminal 2.0
   ============================================================ */
.terminal-window {
  background: var(--bg-code);
  border: 1px solid var(--line-mid);
  border-radius: 12px;
  box-shadow: var(--shadow-md), var(--shadow-glow);
  overflow: hidden;
  position: relative;
}

.terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--line-dim);
}

.terminal-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

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

.term-dot.close { background: #ef4444; }
.term-dot.min { background: #f59e0b; }
.term-dot.max { background: #3b82f6; }

.terminal-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
}

.terminal-tab {
  padding: 3px 10px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--fg-muted);
  transition: all var(--tr-fast);
}

.terminal-tab:hover {
  color: var(--fg-main);
  background: rgba(255, 255, 255, 0.04);
}

.terminal-tab.active {
  color: var(--accent-glow);
  background: var(--accent-bg);
  border: 1px solid var(--accent-border);
}

.terminal-body {
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.7;
  min-height: 360px;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

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

.code-line {
  margin-bottom: 4px;
  word-break: break-all;
}

.c-prompt { color: var(--accent-glow); }
.c-dir { color: var(--cyan-neon); }
.c-comment { color: var(--fg-muted); font-style: italic; }
.c-keyword { color: var(--purple-neon); }
.c-string { color: var(--amber-neon); }
.c-func { color: #60a5fa; }
.c-prop { color: var(--fg-secondary); }
.c-success { color: var(--accent-glow); }

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ============================================================
   Section Primitives
   ============================================================ */
.section {
  padding: 104px 0 60px;
  position: relative;
}

.section-header {
  margin-bottom: 56px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line-dim);
  padding-bottom: 24px;
}

.section-badge {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--fg-main);
}

.section-title span {
  color: var(--accent-light);
}

.section-desc {
  color: var(--fg-secondary);
  font-size: 0.95rem;
  max-width: 44ch;
  text-align: right;
}

@media (max-width: 768px) {
  .section { padding: 64px 0 40px; }
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .section-desc { text-align: left; }
}

/* ============================================================
   Component: Bento Grid ("Qué Hago & Mi Stack")
   ============================================================ */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--line-dim);
  border-radius: 16px;
  padding: 28px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all var(--tr-smooth);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.bento-card:hover {
  border-color: var(--line-active);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md), var(--shadow-glow);
}

.bento-card-spotlight {
  position: absolute;
  inset: 0;
  background: var(--spotlight-gradient);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--tr-base);
}

.bento-card:hover .bento-card-spotlight {
  opacity: 1;
}

.col-8 { grid-column: span 8; }
.col-7 { grid-column: span 7; }
.col-6 { grid-column: span 6; }
.col-5 { grid-column: span 5; }
.col-4 { grid-column: span 4; }
.col-12 { grid-column: span 12; }

@media (max-width: 960px) {
  .col-8, .col-7, .col-6, .col-5, .col-4 {
    grid-column: span 12;
  }
}

.bento-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-bg);
  border: 1px solid var(--accent-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-glow);
  margin-bottom: 20px;
}

.bento-icon.cyan {
  background: var(--cyan-bg);
  border-color: rgba(2, 132, 199, 0.3);
  color: var(--cyan-neon);
}

.bento-icon.purple {
  background: var(--purple-bg);
  border-color: rgba(99, 102, 241, 0.3);
  color: var(--purple-neon);
}

.bento-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  color: var(--fg-main);
}

.bento-text {
  font-size: 0.9rem;
  color: var(--fg-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

/* Interactive AI Demo inside Bento */
.ai-interactive-widget {
  background: var(--bg-code);
  border: 1px solid var(--line-dim);
  border-radius: 10px;
  padding: 14px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  margin-top: auto;
}

.ai-input-row {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.ai-input-row input {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-mid);
  border-radius: 6px;
  padding: 6px 10px;
  color: var(--fg-main);
  font-size: 0.78rem;
}

.ai-input-row input:focus {
  border-color: var(--accent-light);
}

.ai-output-box {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  padding: 10px;
  color: var(--accent-glow);
  min-height: 52px;
  display: flex;
  align-items: center;
}

/* Flowchart Visual inside Bento */
.flow-diagram {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: var(--bg-code);
  border: 1px solid var(--line-dim);
  border-radius: 10px;
  padding: 14px 10px;
  margin-top: auto;
}

.flow-node {
  padding: 6px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-mid);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--fg-main);
  text-align: center;
}

.flow-node.active {
  border-color: var(--accent-border);
  background: var(--accent-bg);
  color: var(--accent-glow);
}

.flow-arrow {
  color: var(--fg-muted);
  font-size: 0.8rem;
  animation: pulseArrow 1.5s infinite;
}

@keyframes pulseArrow {
  0%, 100% { opacity: 0.4; transform: translateX(0); }
  50% { opacity: 1; transform: translateX(2px); color: var(--accent-light); }
}

/* Stack Tag Cloud Filter */
.stack-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.stack-pill-btn {
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-dim);
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--fg-secondary);
  transition: all var(--tr-fast);
}

.stack-pill-btn:hover, .stack-pill-btn.active {
  background: var(--accent-bg);
  border-color: var(--accent-border);
  color: var(--accent-glow);
}

.stack-items-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line-dim);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--fg-main);
  transition: all var(--tr-fast);
}

.tech-badge:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-border);
  color: var(--accent-glow);
  transform: translateY(-2px);
}

/* ============================================================
   Section: Featured Portfolio & Client Websites (NEW)
   ============================================================ */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--line-dim);
  border-radius: 16px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: all var(--tr-smooth);
  backdrop-filter: blur(12px);
}

.project-card:hover {
  border-color: var(--line-active);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md), var(--shadow-glow);
}

.project-card.col-6 { grid-column: span 6; }
.project-card.col-4 { grid-column: span 4; }

@media (max-width: 960px) {
  .project-card.col-6, .project-card.col-4 {
    grid-column: span 12;
  }
}

.project-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.project-category-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-light);
  background: var(--accent-bg);
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--accent-border);
}

.project-status-pill {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 3px 9px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.project-status-pill.live {
  background: rgba(34, 197, 94, 0.12);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.project-status-pill.progress {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.project-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--fg-main);
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.project-domain {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-glow);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 14px;
}

.project-domain:hover {
  text-decoration: underline;
}

.project-desc {
  font-size: 0.88rem;
  color: var(--fg-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

.project-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.project-tech-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--fg-muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-dim);
  padding: 2px 8px;
  border-radius: 4px;
}

.project-visit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line-mid);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--fg-main);
  transition: all var(--tr-fast);
}

.project-visit-btn:hover {
  background: var(--accent-bg);
  border-color: var(--accent-border);
  color: var(--accent-glow);
}

/* ============================================================
   Section: Services & Deliverables
   ============================================================ */
.services-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--line-dim);
  border-radius: 14px;
  padding: 24px 28px;
  transition: all var(--tr-smooth);
  cursor: pointer;
  position: relative;
}

.service-card:hover {
  border-color: var(--line-active);
  background: var(--bg-card-hover);
}

.service-card.open {
  border-color: var(--accent-border);
  box-shadow: var(--shadow-sm);
}

.service-header-row {
  display: grid;
  grid-template-columns: 48px 1fr auto auto;
  gap: 24px;
  align-items: center;
}

.service-index {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-light);
  font-weight: 600;
}

.service-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--fg-main);
  letter-spacing: -0.01em;
}

.service-card:hover .service-name {
  color: var(--accent-glow);
}

.service-quick-tags {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--fg-muted);
  background: rgba(255, 255, 255, 0.02);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--line-dim);
}

.service-toggle-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg-secondary);
  transition: transform var(--tr-base), border-color var(--tr-base);
}

.service-card.open .service-toggle-icon {
  transform: rotate(180deg);
  border-color: var(--accent-primary);
  color: var(--accent-glow);
}

.service-expand-body {
  display: none;
  padding-top: 20px;
  margin-top: 18px;
  border-top: 1px dashed var(--line-dim);
}

.service-card.open .service-expand-body {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  animation: fadeIn 0.3s ease;
}

.service-desc-text {
  font-size: 0.95rem;
  color: var(--fg-secondary);
  line-height: 1.7;
}

.deliverables-box {
  background: var(--bg-code);
  border: 1px solid var(--line-dim);
  border-radius: 8px;
  padding: 16px;
}

.deliverables-title {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--accent-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

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

.deliverables-list li {
  font-size: 0.82rem;
  color: var(--fg-main);
  padding: 4px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.deliverables-list li::before {
  content: '✓';
  color: var(--accent-glow);
  font-weight: 700;
}

@media (max-width: 768px) {
  .service-header-row {
    grid-template-columns: 32px 1fr auto;
    gap: 12px;
  }
  .service-quick-tags { display: none; }
  .service-card.open .service-expand-body {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ============================================================
   Section: Interactive Project Estimator / Scope Calculator
   ============================================================ */
.estimator-card {
  background: var(--bg-card);
  border: 1px solid var(--line-mid);
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(16px);
}

.estimator-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
}

.calc-step-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--fg-main);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.calc-step-title .step-badge {
  display: inline-flex;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-bg);
  border: 1px solid var(--accent-border);
  color: var(--accent-glow);
  font-size: 0.72rem;
  font-family: var(--font-mono);
  align-items: center;
  justify-content: center;
}

.calc-options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}

.calc-option-btn {
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--line-dim);
  background: rgba(255, 255, 255, 0.02);
  text-align: left;
  transition: all var(--tr-fast);
  cursor: pointer;
}

.calc-option-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--line-mid);
}

.calc-option-btn.selected {
  background: var(--accent-bg);
  border-color: var(--accent-primary);
  box-shadow: 0 0 16px -4px rgba(37, 99, 235, 0.35);
}

.calc-opt-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--fg-main);
  margin-bottom: 2px;
}

.calc-opt-desc {
  font-size: 0.74rem;
  color: var(--fg-muted);
}

/* Result Box */
.calc-result-panel {
  background: var(--bg-code);
  border: 1px solid var(--line-mid);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.result-header {
  border-bottom: 1px dashed var(--line-dim);
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.result-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-light);
  text-transform: uppercase;
}

.result-estimate {
  font-size: 1.8rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--fg-main);
  margin-top: 4px;
}

.result-timeline {
  font-size: 0.85rem;
  color: var(--fg-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
}

.result-features-summary {
  list-style: none;
  margin-bottom: 24px;
  flex: 1;
}

.result-features-summary li {
  font-size: 0.82rem;
  color: var(--fg-secondary);
  padding: 4px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.result-features-summary li svg {
  color: var(--accent-light);
  flex-shrink: 0;
}

@media (max-width: 860px) {
  .estimator-grid { grid-template-columns: 1fr; gap: 32px; }
  .calc-options-grid { grid-template-columns: 1fr; }
  .estimator-card { padding: 24px; }
}

/* ============================================================
   Section: Contact & Booking Calendar
   ============================================================ */
.contact-grid-wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--line-mid);
  border-radius: 18px;
  padding: 32px;
  backdrop-filter: blur(12px);
}

.contact-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--fg-main);
}

.contact-card-title span {
  color: var(--accent-light);
  font-family: var(--font-mono);
}

/* Schedule Calendar */
.schedule-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.schedule-nav-btns {
  display: flex;
  gap: 6px;
}

.schedule-nav-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid var(--line-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg-secondary);
  transition: all var(--tr-fast);
}

.schedule-nav-btn:hover {
  border-color: var(--accent-primary);
  color: var(--accent-glow);
  background: var(--accent-bg);
}

.calendar-days-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.calendar-day-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.day-header {
  text-align: center;
  font-family: var(--font-mono);
  margin-bottom: 4px;
}

.day-header .d-name {
  font-size: 0.68rem;
  color: var(--fg-muted);
  text-transform: uppercase;
}

.day-header .d-num {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--fg-main);
}

.time-slot-btn {
  padding: 8px 0;
  text-align: center;
  border-radius: 6px;
  border: 1px solid var(--line-dim);
  background: rgba(255, 255, 255, 0.02);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--fg-secondary);
  transition: all var(--tr-fast);
}

.time-slot-btn:hover:not([disabled]) {
  border-color: var(--accent-primary);
  color: var(--accent-glow);
  background: var(--accent-bg);
}

.time-slot-btn.selected {
  background: var(--accent-primary);
  border-color: var(--accent-glow);
  color: #ffffff;
  font-weight: 700;
}

.time-slot-btn[disabled] {
  opacity: 0.35;
  border-style: dashed;
  cursor: not-allowed;
}

.selected-slot-feedback {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--bg-code);
  border-radius: 8px;
  border: 1px solid var(--line-dim);
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--fg-secondary);
  margin-bottom: 16px;
}

.selected-slot-badge {
  color: var(--accent-glow);
  font-weight: 600;
}

/* Forms */
.contact-form {
  display: grid;
  gap: 14px;
}

.form-group {
  display: grid;
  gap: 6px;
}

.form-label {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-label .req { color: var(--purple-neon); }

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--line-mid);
  background: rgba(255, 255, 255, 0.02);
  color: var(--fg-main);
  font-size: 0.88rem;
  transition: all var(--tr-fast);
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--accent-light);
  background: var(--bg-card-hover);
  box-shadow: 0 0 12px -2px rgba(37, 99, 235, 0.25);
}

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

.form-select option {
  background: var(--bg-card-solid);
  color: var(--fg-main);
}

/* Direct Channels List */
.direct-channels-list {
  display: grid;
  gap: 14px;
  margin-bottom: 28px;
}

.channel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--line-dim);
  background: rgba(255, 255, 255, 0.02);
  transition: all var(--tr-fast);
}

.channel-row:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-border);
}

.channel-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--fg-secondary);
}

.channel-val {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--fg-main);
  display: flex;
  align-items: center;
  gap: 4px;
}

.channel-val:hover {
  color: var(--accent-glow);
}

@media (max-width: 900px) {
  .contact-grid-wrap { grid-template-columns: 1fr; }
}

/* ============================================================
   Component: Toast Notification
   ============================================================ */
.toast-notice {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 200;
  background: var(--bg-card-solid);
  border: 1px solid var(--accent-light);
  border-radius: 10px;
  padding: 14px 20px;
  box-shadow: var(--shadow-md), var(--shadow-glow);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--fg-main);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: all var(--tr-base);
}

.toast-notice.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ============================================================
   Section: Footer
   ============================================================ */
.footer {
  padding: 48px 0 36px;
  border-top: 1px solid var(--line-dim);
  background: var(--bg-secondary);
  font-size: 0.82rem;
  color: var(--fg-muted);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-uptime {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  color: var(--accent-glow);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

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

/* Scroll Animation Helper */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.in-view {
  opacity: 1;
  transform: translateY(0);
}
