@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

:root {
  --bg-dark: #030508;
  --bg-card: rgba(8, 14, 26, 0.45);
  --border-glass: rgba(255, 255, 255, 0.08);
  --text-primary: #ffffff;
  --text-muted: #94a3b8;
  --text-secondary: #cbd5e1;
  --cyan-glow: #00d2ff;
  --blue-glow: #0066ff;
  --emerald-glow: #10b981;
  --mint-glow: #34d399;
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========================================================
   SMOOTH BLUE-GREEN & BLACK GRADIENT BACKGROUND
   ======================================================== */
.parallax-bg-container {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  background-color: #020408;
}

.parallax-image-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(ellipse 70% 60% at 85% 35%, rgba(13, 148, 136, 0.26) 0%, rgba(16, 185, 129, 0.12) 42%, transparent 72%),
    radial-gradient(ellipse 65% 55% at 15% 75%, rgba(2, 132, 199, 0.22) 0%, rgba(14, 116, 144, 0.14) 45%, transparent 75%),
    radial-gradient(circle at 50% 25%, rgba(6, 95, 114, 0.16) 0%, transparent 60%),
    linear-gradient(135deg, #02050b 0%, #030e1a 30%, #03151b 65%, #020408 100%);
  transform: none !important;
  opacity: 1;
}

.cinematic-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 95% 85% at 50% 50%, transparent 45%, rgba(2, 4, 8, 0.55) 80%, rgba(2, 4, 8, 0.92) 100%);
  pointer-events: none;
  z-index: 2;
}

/* ========================================================
   NAVIGATION BAR
   ======================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 24px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease;
}

.site-header.scrolled {
  background: rgba(3, 5, 8, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 16px 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Brand Logo */
.brand-link {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.logo-symbol {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 5px rgba(0, 217, 255, 0.72)) drop-shadow(0 0 12px rgba(54, 240, 189, 0.32));
  transition: transform 0.3s ease;
}

.brand-link:hover .logo-symbol,
.brand-link:focus-visible .logo-symbol {
  animation: logo-spin 1.2s ease-in-out;
}

@keyframes logo-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .brand-link:hover .logo-symbol,
  .brand-link:focus-visible .logo-symbol {
    animation: none;
  }
}

.brand-meta {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #ffffff;
  line-height: 1.2;
}

.brand-subtitle {
  font-size: 0.72rem;
  font-weight: 500;
  color: #94a3b8;
  letter-spacing: 0.03em;
  line-height: 1.2;
}

/* Center Nav Capsule */
.nav-pill-container {
  display: flex;
  align-items: center;
  background: rgba(13, 18, 30, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  padding: 5px 6px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.08);
}

.nav-item {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 9999px;
  transition: all 0.25s ease;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-item:hover {
  color: #ffffff;
}

/* Active Nav Item (Home) */
.nav-item.active {
  color: #ffffff;
  background: rgba(6, 40, 85, 0.55);
  border: 1px solid rgba(56, 189, 248, 0.55);
  box-shadow: 
    0 0 18px rgba(14, 165, 233, 0.45),
    inset 0 0 12px rgba(56, 189, 248, 0.25);
  font-weight: 600;
}

/* Top-right "Let's Talk" Button */
.cta-header-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(8, 28, 24, 0.65);
  border: 1px solid rgba(16, 185, 129, 0.7);
  box-shadow: 0 0 18px rgba(16, 185, 129, 0.25), inset 0 0 10px rgba(16, 185, 129, 0.15);
  color: #ffffff;
  padding: 8px 22px;
  border-radius: 9999px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.cta-header-btn .arrow-icon {
  color: #34d399;
  font-size: 1rem;
  line-height: 1;
  transition: transform 0.25s ease;
}

.cta-header-btn:hover {
  background: rgba(16, 185, 129, 0.18);
  border-color: #34d399;
  box-shadow: 0 0 25px rgba(52, 211, 153, 0.5), inset 0 0 15px rgba(52, 211, 153, 0.3);
  transform: translateY(-1px);
}

.cta-header-btn:hover .arrow-icon {
  transform: translateX(3px);
}

/* Mobile Nav Toggle */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: #ffffff;
  cursor: pointer;
  padding: 8px;
}

/* ========================================================
   HERO SECTION
   ======================================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 48px 60px 48px;
  z-index: 10;
  max-width: 1440px;
  margin: 0 auto;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 40px;
  width: 100%;
}

/* Left Hero Content */
.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  z-index: 15;
}

/* Pill Badge: AI Automation Specialist */
.badge-specialist {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  padding: 6px 18px 6px 14px;
  font-size: 0.82rem;
  font-weight: 500;
  color: #cbd5e1;
  margin-bottom: 28px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 10px #10b981, 0 0 18px #10b981;
  position: relative;
}

.status-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(16, 185, 129, 0.6);
  animation: pulse-ring 2s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
}

@keyframes pulse-ring {
  0% { transform: scale(0.7); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* Main Headline */
.hero-headline {
  font-size: clamp(2.8rem, 4.8vw, 4.4rem);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.025em;
  color: #ffffff;
  margin-bottom: 26px;
}

.hero-headline .text-line {
  display: block;
}

.hero-headline .gradient-automate {
  background: linear-gradient(90deg, #38bdf8 0%, #2dd4bf 55%, #34d399 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  filter: drop-shadow(0 0 20px rgba(45, 212, 191, 0.35));
}

/* Sub-features text */
.hero-subtext {
  font-size: 1.05rem;
  font-weight: 400;
  color: #94a3b8;
  letter-spacing: 0.01em;
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-subtext .dot-separator {
  color: #64748b;
  font-size: 0.9rem;
}

.hero-subtext-intro {
  font-size: 1.05rem;
  color: #94a3b8;
  line-height: 1.7;
  max-width: 620px;
  margin-bottom: 36px;
}

.hero-subtext-intro strong {
  color: #f1f5f9;
  font-weight: 600;
}

/* Hero Action Buttons */
.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Button 1: Let's Work Together */
.btn-primary-explore {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(90deg, rgba(3, 85, 160, 0.85) 0%, rgba(13, 148, 136, 0.85) 100%);
  border: 1px solid rgba(45, 212, 191, 0.6);
  box-shadow: 
    0 0 24px rgba(45, 212, 191, 0.35),
    inset 0 1px 1px rgba(255, 255, 255, 0.25);
  color: #ffffff;
  padding: 10px 14px 10px 24px;
  border-radius: 9999px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn-primary-explore:hover {
  background: linear-gradient(90deg, rgba(2, 115, 215, 0.95) 0%, rgba(16, 185, 129, 0.95) 100%);
  box-shadow: 
    0 0 35px rgba(45, 212, 191, 0.55),
    inset 0 1px 2px rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

.btn-primary-explore .icon-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease;
}

.btn-primary-explore:hover .icon-circle {
  transform: translateX(3px);
  background: rgba(255, 255, 255, 0.25);
}

/* Button 2: Explore My Projects */
.btn-secondary-projects {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f8fafc;
  padding: 12px 24px;
  border-radius: 9999px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.btn-secondary-projects:hover {
  background: rgba(30, 41, 59, 0.85);
  border-color: rgba(56, 189, 248, 0.5);
  color: #38bdf8;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.btn-secondary-projects .arrow-sym {
  transition: transform 0.2s ease;
}

.btn-secondary-projects:hover .arrow-sym {
  transform: translateX(4px);
}

/* ========================================================
   RIGHT HERO VISUAL - FUTURISTIC GLASS VIEWPORT & NEON
   ======================================================== */
.hero-visual-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 460px;
}

/* Ambient Neon Swirl SVG Canvas in Right Visual */
.neon-glow-vector {
  position: absolute;
  inset: -15% -10% -15% -10%;
  width: 120%;
  height: 130%;
  pointer-events: none;
  z-index: 1;
}

/* Sci-fi Framing with Corner Brackets */
.viewport-frame-container {
  position: relative;
  width: 100%;
  max-width: 480px;
  height: 300px;
  z-index: 5;
}

/* Corner bracket markers */
.bracket {
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: #38bdf8;
  border-style: solid;
  pointer-events: none;
  z-index: 15;
  filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.8));
}

.bracket-tl {
  top: -12px;
  left: -12px;
  border-width: 2px 0 0 2px;
}

.bracket-bl {
  bottom: -12px;
  left: -12px;
  border-width: 0 0 2px 2px;
}

.bracket-tr {
  top: -12px;
  right: -12px;
  border-width: 2px 2px 0 0;
}

.bracket-br {
  bottom: -12px;
  right: -12px;
  border-width: 0 2px 2px 0;
}

/* Main Glass Viewport Card */
.glass-viewport-card {
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background: rgba(8, 14, 26, 0.22);
  border: 1px solid rgba(56, 189, 248, 0.28);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 
    0 16px 40px rgba(0, 0, 0, 0.5),
    inset 0 0 25px rgba(56, 189, 248, 0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  transition: all 0.4s ease;
}

.glass-viewport-card:hover {
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 
    0 20px 50px rgba(0, 0, 0, 0.7),
    0 0 30px rgba(56, 189, 248, 0.25),
    inset 0 0 35px rgba(56, 189, 248, 0.12);
}

/* Overlapping Secondary Glass Card on top-right */
.overlapping-accent-card {
  position: absolute;
  top: -24px;
  right: -24px;
  width: 116px;
  height: 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 18px;
  color: #d1fae5;
  background: rgba(6, 26, 20, 0.4);
  border: 1px solid rgba(52, 211, 153, 0.5);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(16, 185, 129, 0.35), inset 0 0 15px rgba(52, 211, 153, 0.15);
  z-index: 10;
  pointer-events: none;
}
.accent-card-label { color: #86efac; font: 600 0.62rem/1 monospace; letter-spacing: 0.12em; }
.overlapping-accent-card strong { font-size: 0.9rem; letter-spacing: 0.08em; }
.accent-flow-dots { display: flex; align-items: center; gap: 10px; position: relative; padding: 2px 5px; }
.accent-flow-dots::before { content: ""; position: absolute; left: 7px; right: 7px; top: 50%; height: 1px; background: rgba(52, 211, 153, 0.55); }
.accent-flow-dots i { width: 6px; height: 6px; border-radius: 50%; background: #6ee7b7; box-shadow: 0 0 8px rgba(52, 211, 153, 0.8); z-index: 1; }
/* Inside Viewport: Interactive Live AI Agent Simulation */
.agent-node-interface {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0.9;
}

.interface-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 12px;
}

.interface-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: #38bdf8;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pulse-indicator {
  width: 6px;
  height: 6px;
  background: #38bdf8;
  border-radius: 50%;
  box-shadow: 0 0 8px #38bdf8;
  animation: pulse-ring 2s infinite;
}

.system-speed {
  font-size: 0.76rem;
  color: #a9bdd0;
  font-weight: 600;
  letter-spacing: 0.06em;
  font-family: monospace;
}

/* Workflow Flowchart Animation */
.workflow-nodes {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: auto 0;
  position: relative;
  padding: 10px 0;
}

.workflow-connector-line {
  position: absolute;
  top: 50%;
  left: 20px;
  right: 20px;
  height: 2px;
  background: linear-gradient(90deg, #38bdf8, #2dd4bf, #34d399);
  z-index: 1;
  opacity: 0.65;
}
.workflow-connector-line::after {
  content: '';
  position: absolute;
  top: -4px;
  left: 0;
  width: 10px;
  height: 10px;
  background: #ecfeff;
  border-radius: 50%;
  box-shadow: 0 0 8px #fff, 0 0 16px #34d399;
  animation: data-packet 3s infinite linear;
}
@keyframes data-packet {
  0% { left: 0%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}
.agent-node {
  position: relative;
  z-index: 2;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(56, 189, 248, 0.45);
  padding: 9px 13px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}
.agent-node.highlight-green { border-color: rgba(52, 211, 153, 0.6); box-shadow: 0 0 16px rgba(52, 211, 153, 0.25); }
.node-title { font-size: 0.76rem; font-weight: 600; color: #fff; }
.node-status { font-size: 0.7rem; color: #67d9ff; font-family: monospace; }
.agent-node.highlight-green .node-status { color: #6ee7b7; }
.interface-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 10px;
  font-size: 0.76rem;
  color: #8aa0b8;
  font-family: monospace;
  letter-spacing: 0.03em;
}
.workflow-caption { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); width: min(92%, 480px); margin: 0; color: #a6bacd; font-size: 0.84rem; line-height: 1.5; text-align: center; z-index: 4; }
.flow-step { --step-glow: rgba(56, 189, 248, 0.68); animation: flow-step-pulse 3s infinite ease-in-out; }
.flow-step-reason { --step-glow: rgba(52, 211, 153, 0.72); animation-delay: 1s; }
.flow-step-action { animation-delay: 2s; }
@keyframes flow-step-pulse { 0%, 22%, 100% { box-shadow: 0 4px 12px rgba(0,0,0,0.4); } 8%, 17% { border-color: var(--step-glow); box-shadow: 0 0 18px var(--step-glow); transform: translateY(-2px); } }
@media (prefers-reduced-motion: reduce) { .workflow-connector-line::after, .flow-step { animation: none; } }
/* Bottom-left Blurred Glass Card Corner Accent */
.bottom-left-glass-card {
  position: fixed;
  bottom: -40px;
  left: -20px;
  width: 180px;
  height: 140px;
  border-radius: 24px;
  background: rgba(13, 25, 48, 0.35);
  border: 1px solid rgba(56, 189, 248, 0.2);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  z-index: 5;
  pointer-events: none;
}

/* ========================================================
   PORTFOLIO EXPANSION SECTIONS (ABOUT, PROJECTS, ETC)
   ======================================================== */
.section-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 120px 48px;
  position: relative;
  z-index: 10;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 4px 14px;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #38bdf8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 20px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 640px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.section-sub-desc {
  font-size: 0.95rem;
  color: #8b9bb4;
  max-width: 640px;
  line-height: 1.6;
  margin-bottom: 32px;
}

/* ========================================================
   ABOUT HERO SPLIT (CONCEPT 1: EXECUTIVE BIO & PORTRAIT)
   ======================================================== */
.about-hero-split {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 52px;
  align-items: stretch;
  margin-bottom: 64px;
}

.about-bio-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.about-bio-col > .section-tag {
  align-self: flex-start;
}
.about-portrait-col {
  display: flex;
  justify-content: flex-start;
}

.portrait-card-frame {
  position: relative;
  background: rgba(8, 14, 26, 0.45);
  border: 1.5px solid rgba(0, 210, 255, 0.45);
  border-radius: 20px;
  padding: 0;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 
    0 0 32px rgba(0, 210, 255, 0.22),
    0 24px 60px rgba(0, 0, 0, 0.75),
    inset 0 0 20px rgba(0, 210, 255, 0.08);
  width: 100%;
  max-width: 320px;
  transition: all 0.35s ease;
}

.portrait-card-frame:hover {
  border-color: rgba(0, 229, 255, 0.75);
  box-shadow: 
    0 0 45px rgba(0, 210, 255, 0.38),
    0 30px 70px rgba(0, 0, 0, 0.85),
    inset 0 0 25px rgba(0, 210, 255, 0.15);
  transform: translateY(-4px);
}

.portrait-card-frame .bracket {
  width: 20px;
  height: 20px;
  border-color: #00e5ff;
  border-width: 3px;
  filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.95));
}

.portrait-card-frame .bracket-tl {
  top: -14px;
  left: -14px;
  border-width: 3px 0 0 3px;
}

.portrait-card-frame .bracket-tr {
  top: -14px;
  right: -14px;
  border-width: 3px 3px 0 0;
}

.portrait-card-frame .bracket-bl {
  bottom: -14px;
  left: -14px;
  border-width: 0 0 3px 3px;
}

.portrait-card-frame .bracket-br {
  bottom: -14px;
  right: -14px;
  border-width: 0 3px 3px 0;
}

.portrait-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1.55;
  border-radius: 18px;
  overflow: hidden;
  background: #02050b;
}

.portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 10%;
  transform: scale(1.08);
  display: block;
  transition: transform 0.4s ease;
}

.portrait-card-frame:hover .portrait-img {
  transform: scale(1.11);
}

/* Compact social icon links */
.social-panel { max-width: 760px; margin-top: 22px; }
.social-panel-heading { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; }
.social-eyebrow { color: #67e8f9; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.social-intro { margin-top: 4px; color: #dbe7f5; font-size: 1rem; font-weight: 500; }
.social-icons { display: flex; align-items: center; gap: 22px; margin-top: 3px; }
.social-icon-link { --social-color: #94a3b8; width: 36px; height: 36px; display: inline-grid; place-items: center; color: var(--social-color); text-decoration: none; transition: transform 0.2s ease, filter 0.2s ease, opacity 0.2s ease; filter: drop-shadow(0 0 7px color-mix(in srgb, var(--social-color) 45%, transparent)); }
.social-icon-link svg { width: 30px; height: 30px; display: block; fill: currentColor; }
.social-instagram { --social-color: #ff70a6; }
.social-instagram svg { fill: none; stroke: currentColor; stroke-width: 1.8; }
.social-instagram .social-icon-dot { fill: currentColor; stroke: none; }
.social-facebook { --social-color: #60a5fa; }
.social-linkedin { --social-color: #38bdf8; }
.social-github { --social-color: #e2e8f0; }
.social-icon-link[href]:hover, .social-icon-link[href]:focus-visible { transform: translateY(-3px) scale(1.1); filter: drop-shadow(0 0 11px color-mix(in srgb, var(--social-color) 72%, transparent)); outline: none; }
.social-icon-link[href]:focus-visible { border-radius: 6px; outline: 2px solid color-mix(in srgb, var(--social-color) 70%, transparent); outline-offset: 5px; }
.social-icon-coming { opacity: 0.55; cursor: default; }
/* About Grid */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.glass-feature-card {
  background: rgba(13, 20, 36, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 32px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.glass-feature-card:hover {
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4), 0 0 20px rgba(56, 189, 248, 0.15);
}

.feature-icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38bdf8;
  margin-bottom: 20px;
}

.glass-feature-card.green-accent .feature-icon-wrapper {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
  color: #34d399;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: #ffffff;
}

.feature-text {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ========================================================
   SERVICES SECTION (6 CARDS)
   ======================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 24px;
  margin-top: 36px;
}

.service-card {
  display: flex;
  grid-column: span 2;
  flex-direction: column;
  height: 100%;
}

.service-card-cta { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; margin-top: auto; padding-top: 12px; color: #67e8f9; font-size: 0.9rem; font-weight: 600; text-decoration: none; transition: color 0.2s ease, gap 0.2s ease; }
.service-card-cta:hover { color: #a5f3fc; gap: 14px; }
.service-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.service-card .feature-icon-wrapper {
  margin-bottom: 0;
}

.service-num {
  font-family: 'Space Grotesk', monospace, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.05em;
}

.service-card.green-accent .service-num {
  color: #34d399;
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.25);
}



/* ========================================================
   SKILLS & TECHNOLOGIES SECTION (CATEGORIZED GROUPS)
   ======================================================== */
.skills-categorized-container {
  display: flex;
  flex-direction: column;
  gap: 36px;
  margin-top: 36px;
}

.skill-category-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.category-heading {
  font-size: 1.05rem;
  font-weight: 600;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.02em;
}

.cat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 10px #38bdf8;
  display: inline-block;
}

.skill-category-block:nth-child(2) .cat-dot {
  background: #34d399;
  box-shadow: 0 0 10px #34d399;
}

.skill-category-block:nth-child(3) .cat-dot {
  background: #2dd4bf;
  box-shadow: 0 0 10px #2dd4bf;
}

.skill-category-block:nth-child(4) .cat-dot {
  background: #0ea5e9;
  box-shadow: 0 0 10px #0ea5e9;
}

.skills-grid-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.skill-pill-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 20px;
  border-radius: 16px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: all 0.25s ease;
}

.skill-pill-card:hover {
  border-color: rgba(56, 189, 248, 0.4);
  background: rgba(18, 30, 56, 0.7);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.skill-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: transparent;
}

.skill-icon img {
  width: 30px;
  height: 30px;
  display: block;
  object-fit: contain;
  filter: brightness(1.35) saturate(1.2)
          drop-shadow(0 0 5px var(--logo-glow))
          drop-shadow(0 0 13px var(--logo-glow-soft));
  transition: filter 0.25s ease, transform 0.25s ease;
}

/* Brand-colored light follows the transparent logo silhouette. */
.skill-icon img[src$="n8n.svg"] {
  --logo-glow: rgba(255, 50, 96, 0.8);
  --logo-glow-soft: rgba(255, 50, 96, 0.42);
}
.skill-icon img[src$="openai.svg"] {
  --logo-glow: rgba(255, 255, 255, 0.8);
  --logo-glow-soft: rgba(190, 220, 255, 0.55);
  filter: brightness(0) invert(1)
          drop-shadow(0 0 5px var(--logo-glow))
          drop-shadow(0 0 13px var(--logo-glow-soft));
}
.skill-icon img[src$="claude.svg"] {
  --logo-glow: rgba(255, 115, 76, 0.86);
  --logo-glow-soft: rgba(255, 115, 76, 0.48);
}
.skill-icon img[src$="gemini.svg"] {
  --logo-glow: rgba(160, 112, 255, 0.9);
  --logo-glow-soft: rgba(94, 154, 255, 0.55);
}
.skill-icon img[src$="pinecone.svg"] {
  --logo-glow: rgba(190, 145, 255, 0.9);
  --logo-glow-soft: rgba(149, 91, 255, 0.5);
  filter: brightness(0) invert(1)
          drop-shadow(0 0 5px var(--logo-glow))
          drop-shadow(0 0 13px var(--logo-glow-soft));
}
.skill-icon img[src$="supabase.svg"] {
  --logo-glow: rgba(62, 207, 142, 0.9);
  --logo-glow-soft: rgba(62, 207, 142, 0.48);
}
.skill-icon img[src$="postgresql.svg"] {
  --logo-glow: rgba(112, 174, 238, 0.92);
  --logo-glow-soft: rgba(56, 145, 232, 0.58);
  filter: brightness(1.8) saturate(1.35)
          drop-shadow(0 0 5px var(--logo-glow))
          drop-shadow(0 0 13px var(--logo-glow-soft));
}
.skill-icon img[src$="telegram.svg"] {
  --logo-glow: rgba(38, 165, 228, 0.95);
  --logo-glow-soft: rgba(38, 165, 228, 0.52);
}
.skill-icon img[src$="whatsapp.svg"] {
  --logo-glow: rgba(37, 211, 102, 0.95);
  --logo-glow-soft: rgba(37, 211, 102, 0.5);
}
.skill-icon img[src$="rest.svg"] {
  --logo-glow: rgba(108, 190, 255, 0.9);
  --logo-glow-soft: rgba(56, 160, 255, 0.58);
  filter: brightness(0) invert(1)
          drop-shadow(0 0 5px var(--logo-glow))
          drop-shadow(0 0 13px var(--logo-glow-soft));
}
.skill-icon img[src$="webhook.svg"] {
  --logo-glow: rgba(80, 232, 204, 0.9);
  --logo-glow-soft: rgba(45, 212, 191, 0.55);
  filter: brightness(0) invert(1)
          drop-shadow(0 0 5px var(--logo-glow))
          drop-shadow(0 0 13px var(--logo-glow-soft));
}

.skill-pill-card:hover .skill-icon img {
  filter: brightness(1.55) saturate(1.35)
          drop-shadow(0 0 7px var(--logo-glow))
          drop-shadow(0 0 17px var(--logo-glow-soft));
  transform: scale(1.06);
}
.skill-pill-card:hover .skill-icon img[src$="openai.svg"],
.skill-pill-card:hover .skill-icon img[src$="pinecone.svg"],
.skill-pill-card:hover .skill-icon img[src$="rest.svg"],
.skill-pill-card:hover .skill-icon img[src$="webhook.svg"] {
  filter: brightness(0) invert(1)
          drop-shadow(0 0 7px var(--logo-glow))
          drop-shadow(0 0 17px var(--logo-glow-soft));
}
.skill-pill-card:hover .skill-icon img[src$="postgresql.svg"] {
  filter: brightness(2) saturate(1.4)
          drop-shadow(0 0 7px var(--logo-glow))
          drop-shadow(0 0 17px var(--logo-glow-soft));
}
.skill-info h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 2px;
}

.skill-info p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ========================================================
   PROJECTS SECTION (CONFIRMED + EXPANDABLE TEASER)
   ======================================================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 28px;
  margin-top: 36px;
}

.project-card {
  background: rgba(11, 18, 32, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 20px;
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  border-color: rgba(52, 211, 153, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(52, 211, 153, 0.2);
  transform: translateY(-5px);
}

.project-thumb {
  height: 180px;
  position: relative;
  background: linear-gradient(135deg, rgba(8, 20, 36, 0.9), rgba(16, 32, 54, 0.8));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.project-thumb svg {
  width: 58px;
  height: 58px;
  opacity: 0.75;
  filter: drop-shadow(0 0 15px rgba(56, 189, 248, 0.5));
  transition: transform 0.4s ease;
}

.project-card:hover .project-thumb svg {
  transform: scale(1.12);
  opacity: 0.95;
}

.project-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.tag-badge {
  font-size: 0.72rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 9999px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  color: #38bdf8;
}

.tag-badge.badge-emerald {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.35);
  color: #34d399;
}

.project-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
}

.project-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 16px;
  flex: 0 1 auto;
}

/* Highlights Box */
.project-highlights-box {
  background: rgba(2, 6, 23, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 2px solid #38bdf8;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 20px;
}

.project-card:nth-child(2) .project-highlights-box {
  border-left-color: #34d399;
}

.hl-title {
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
  margin-bottom: 8px;
}

.hl-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hl-list li {
  font-size: 0.82rem;
  color: #cbd5e1;
  position: relative;
  padding-left: 14px;
  line-height: 1.4;
}

.hl-list li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: #38bdf8;
  font-size: 0.75rem;
}

.project-card:nth-child(2) .hl-list li::before {
  color: #34d399;
}

/* Expandable Upcoming Agents Card */
.upcoming-agents-card {
  border: 1px dashed rgba(52, 211, 153, 0.4);
  background: rgba(8, 20, 32, 0.45);
}

.upcoming-thumb {
  background: linear-gradient(135deg, rgba(6, 30, 38, 0.8) 0%, rgba(4, 20, 32, 0.85) 100%);
  position: relative;
}

.pulse-upcoming-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #34d399;
}

.status-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px #34d399;
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.4);
    opacity: 0.6;
  }
}

.project-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #34d399;
  text-decoration: none;
  transition: gap 0.2s ease;
  margin-top: auto;
}

.project-link-btn:hover {
  gap: 12px;
  color: #6ee7b7;
}

/* ========================================================
   DEVELOPMENT PROCESS (6-STAGE WORKFLOW)
   ======================================================== */
.process-grid-six {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
  position: relative;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.process-card {
  background: rgba(11, 19, 35, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 28px 24px;
  position: relative;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.process-card:hover {
  border-color: rgba(45, 212, 191, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.5);
}

.process-step-num {
  font-size: 2rem;
  font-weight: 800;
  color: rgba(56, 189, 248, 0.4);
  font-family: 'Space Grotesk', monospace, sans-serif;
  margin-bottom: 12px;
  line-height: 1;
}

.process-card:nth-child(even) .process-step-num {
  color: rgba(52, 211, 153, 0.4);
}

.process-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 10px;
}

.process-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ========================================================
   CONTACT SECTION & METADATA
   ======================================================== */
.contact-email-link {
  color: #38bdf8;
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
  display: inline-block;
}

.contact-email-link:hover {
  color: #34d399;
  text-shadow: 0 0 12px rgba(52, 211, 153, 0.5);
  transform: translateX(2px);
}

/* Contact Section & Form */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  background: rgba(10, 16, 30, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  padding: 56px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.contact-info h3 {
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
}

.contact-info p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 32px;
}

.contact-meta-item {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  color: #cbd5e1;
  font-size: 0.95rem;
}

.meta-icon-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38bdf8;
}

.contact-next-steps {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.contact-next-steps h4 {
  margin: 0 0 14px;
  color: #e2e8f0;
  font-size: 0.95rem;
  font-weight: 600;
}

.contact-next-steps ol {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-next-steps li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  color: #94a3b8;
  font-size: 0.88rem;
  line-height: 1.45;
}

.contact-next-steps li span {
  color: #38bdf8;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.optional-label { color: #94a3b8; font-weight: 400; }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: #cbd5e1;
}

.form-input, .form-textarea {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 12px 16px;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.95rem;
  transition: all 0.25s ease;
}

.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: #38bdf8;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.3);
  background: rgba(15, 23, 42, 0.9);
}

.btn-submit-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(90deg, #0284c7 0%, #059669 100%);
  border: 1px solid rgba(52, 211, 153, 0.6);
  color: #ffffff;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 20px rgba(52, 211, 153, 0.3);
}

.form-note, .form-status {
  margin: -8px 0 0;
  color: #94a3b8;
  font-size: 0.8rem;
  line-height: 1.5;
}

.form-status:not(:empty) {
  margin-top: -10px;
  color: #67e8f9;
}

.btn-submit-contact:hover {
  background: linear-gradient(90deg, #0369a1 0%, #047857 100%);
  box-shadow: 0 0 30px rgba(52, 211, 153, 0.5);
  transform: translateY(-2px);
}

/* Footer */
.footer-links { display: flex; align-items: center; gap: 22px; }
.footer-text-link { color: inherit; text-decoration: none; }
.footer-social-icons { margin-top: 0; gap: 7px; }
.footer-social-icons .social-icon-link { width: 26px; height: 26px; }
.footer-social-icons .social-icon-link svg { width: 20px; height: 20px; }
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 40px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
  color: #64748b;
  font-size: 0.88rem;
}

/* ========================================================
   RESPONSIVENESS / MEDIA QUERIES
   ======================================================== */
@media (max-width: 1024px) {
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 60px;
    text-align: center;
  }

  .hero-content {
    align-items: center;
  }

  .hero-headline .text-line {
    display: inline;
  }

  .hero-subtext {
    justify-content: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .about-grid, .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .about-hero-split {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .about-portrait-col {
    justify-content: center;
  }

  .portrait-card-frame {
    margin: 0 auto;
  }

  .about-bio-col > .section-tag {
    align-self: center;
  }

  .social-panel {
    margin: 28px auto 0;
    text-align: left;
  }

  .social-icons { justify-content: center; gap: 20px; }

.services-grid .service-card { grid-column: span 2; }
.services-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }


  .projects-grid {
    grid-template-columns: 1fr;
  }

  .skills-grid-row {
    grid-template-columns: 1fr;
  }

  .process-grid, .process-grid-six {
    grid-template-columns: 1fr;
  }

  .contact-wrapper {
    padding: 28px 20px;
  }

  .footer-links { flex-wrap: wrap; justify-content: center; gap: 14px; }

  .site-footer {
    flex-direction: column;
    gap: 16px;
    text-align: center;
    padding: 30px 20px;
  }
}


@media (max-width: 640px) {
  .services-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .services-grid .service-card { grid-column: span 2; }
}


@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
  .services-grid .service-card, .services-grid .service-card:nth-child(4), .services-grid .service-card:nth-child(5) { grid-column: 1; }
}

/* Interactive vector support workflow */
.workflow-preview-button { width:100%; height:100%; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px; border:0; background:transparent; color:#38d8ee; cursor:pointer; font:inherit; }
.workflow-preview-button svg { width:62px; height:62px; opacity:1; filter:drop-shadow(0 0 10px rgba(56,216,238,.52)); transition:transform .28s ease,filter .28s ease; }
.workflow-preview-button span { color:#71ddec; font-size:.72rem; font-weight:600; letter-spacing:.06em; text-transform:uppercase; opacity:.82; }
.project-card:hover .workflow-preview-button svg,.workflow-preview-button:hover svg,.workflow-preview-button:focus-visible svg { transform:scale(1.1); filter:drop-shadow(0 0 16px rgba(45,212,191,.72)); }
.workflow-preview-button:focus-visible { outline:2px solid #38bdf8; outline-offset:-8px; border-radius:12px; }
.workflow-open-link { width:100%; justify-content:flex-start; border:0; padding:0; background:transparent; color:#38bdf8; font:inherit; cursor:pointer; text-align:left; }
.workflow-open-link:hover { color:#6ee7b7; }
.project-contact-link { margin-top:14px; }
.workflow-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2.5vh 2vw;
}

.workflow-modal.is-open {
  display: flex;
}

.workflow-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 14, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.workflow-dialog {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(1560px, 96vw);
  height: min(92vh, 900px);
  max-height: 94vh;
  padding: clamp(16px, 2vw, 26px);
  overflow: hidden;
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 24px;
  background: radial-gradient(ellipse at 90% 0%, rgba(13, 148, 136, 0.14), transparent 42%), #07131f;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.75), 0 0 40px rgba(0, 190, 210, 0.12);
}

.workflow-dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 14px;
  flex-shrink: 0;
}

.workflow-dialog-kicker {
  color: #38bdf8;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  font-family: 'Space Grotesk', monospace, sans-serif;
}

.workflow-dialog-header h2 {
  margin: 4px 0 2px;
  color: #f8fafc;
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  font-weight: 700;
  line-height: 1.2;
}

.workflow-dialog-header p {
  margin: 0;
  color: #94a3b8;
  font-size: 0.88rem;
  line-height: 1.4;
}

.workflow-close {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  color: #e2e8f0;
  font-size: 1.4rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.workflow-close:hover,
.workflow-close:focus-visible {
  border-color: rgba(56, 189, 248, 0.65);
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  outline: none;
}

.workflow-toolbar {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  background: rgba(9, 25, 38, 0.95);
  flex-shrink: 0;
}

.workflow-tool {
  min-width: 34px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 11px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.workflow-tool:hover,
.workflow-tool:focus-visible {
  border-color: rgba(56, 189, 248, 0.6);
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.08);
  outline: none;
}

.workflow-hand.active,
.workflow-hand[aria-pressed="true"] {
  border-color: rgba(45, 212, 191, 0.65);
  background: rgba(45, 212, 191, 0.16);
  color: #2dd4bf;
}

.workflow-zoom {
  padding: 0;
  font-size: 1.15rem;
}

.workflow-zoom-level {
  min-width: 50px;
  color: #94a3b8;
  font-size: 0.74rem;
  font-weight: 600;
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-family: 'Space Grotesk', monospace, sans-serif;
}

.workflow-fit {
  margin-left: 4px;
}

.workflow-tool-separator {
  width: 1px;
  height: 20px;
  margin: 0 4px;
  background: rgba(148, 163, 184, 0.2);
}

.workflow-toolbar-spacer {
  flex: 1;
}

.workflow-canvas-hint {
  color: #64748b;
  font-size: 0.72rem;
  font-family: 'Space Grotesk', monospace, sans-serif;
}

/* Viewport stays completely fixed during zoom */
.workflow-viewport {
  position: relative;
  flex: 1 1 auto;
  min-height: 260px;
  overflow: hidden;
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 0 0 12px 12px;
  background: #06111d;
  touch-action: auto;
  cursor: default !important;
}

.workflow-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 3280px !important;
  height: 1420px !important;
  transform-origin: top left;
  will-change: transform;
  cursor: default !important;
}

.workflow-svg {
  display: block;
  width: 3280px !important;
  height: 1420px !important;
  overflow: visible;
}

/* Cursor control: standard arrow cursor except when hand tool is active */
.workflow-viewport,
.workflow-canvas,
.workflow-vector-node,
.workflow-svg {
  cursor: default !important;
}

.workflow-viewport.is-pan-mode,
.workflow-canvas.is-pan-mode,
.workflow-canvas.is-pan-mode .workflow-vector-node,
.workflow-canvas.is-pan-mode .workflow-svg {
  cursor: grab !important;
}

.workflow-viewport.is-dragging,
.workflow-canvas.is-dragging,
.workflow-canvas.is-dragging .workflow-vector-node {
  cursor: grabbing !important;
}

/* Edges & Markers */
.workflow-edge {
  fill: none;
  stroke: #2b7a94;
  stroke-width: 2.4;
  opacity: 0.88;
  vector-effect: non-scaling-stroke;
  transition: stroke 0.2s ease, opacity 0.2s ease;
}

.workflow-edge.is-true {
  stroke: #10b981;
}

.workflow-edge.is-error {
  stroke: #f43f5e;
}

.workflow-edge.is-ai {
  stroke: #64748b;
  stroke-dasharray: 6 6;
  opacity: 0.72;
}

/* Edge Pills / Labels */
.edge-pill rect {
  fill: #0c1c2a;
  stroke: #1e3a4b;
  stroke-width: 1.2;
}

.edge-pill text {
  fill: #94a3b8;
  font-family: 'Space Grotesk', monospace, sans-serif;
  font-size: 10px;
  font-weight: 600;
}

.edge-pill.is-true rect {
  stroke: #10b981;
  fill: rgba(16, 185, 129, 0.16);
}

.edge-pill.is-true text {
  fill: #34d399;
}

.edge-pill.is-false rect {
  stroke: #f59e0b;
  fill: rgba(245, 158, 11, 0.14);
}

.edge-pill.is-false text {
  fill: #fbbf24;
}

.edge-pill.is-error rect {
  stroke: #f43f5e;
  fill: rgba(244, 63, 94, 0.16);
}

.edge-pill.is-error text {
  fill: #fb7185;
}

/* Vector Nodes */
.workflow-vector-node {
  outline: none;
}

.workflow-vector-node .node-card {
  fill: #0d1e2e;
  stroke: #1e3a4b;
  stroke-width: 1.8;
  vector-effect: non-scaling-stroke;
  transition: stroke 0.18s ease, fill 0.18s ease, filter 0.18s ease;
}

.workflow-vector-node:hover .node-card,
.workflow-vector-node:focus .node-card,
.workflow-vector-node.is-selected .node-card {
  fill: #11273c;
  stroke: #38bdf8;
  stroke-width: 2.2;
  filter: url(#workflowNodeGlow);
}

.workflow-vector-node.is-ai-agent:hover .node-card,
.workflow-vector-node.is-ai-agent.is-selected .node-card {
  stroke: #2dd4bf;
  fill: #0c2538;
}

.workflow-vector-node .node-port {
  fill: #0d1e2e;
  stroke: #38bdf8;
  stroke-width: 1.5;
}

.workflow-vector-node .agent-port-circle {
  fill: #081522;
  stroke: #38bdf8;
  stroke-width: 1.4;
}

.workflow-vector-node .agent-port-circle.is-empty {
  stroke: #64748b;
  fill: #0f172a;
}

.workflow-vector-node .agent-title {
  fill: #ffffff;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 700;
}

.workflow-vector-node .agent-slot-text {
  fill: #94a3b8;
  font-family: 'Space Grotesk', monospace, sans-serif;
  font-size: 9.5px;
  font-weight: 500;
  text-anchor: middle;
}

.workflow-vector-node .node-title {
  fill: #f1f5f9;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  text-anchor: middle;
  letter-spacing: 0.01em;
}

.workflow-vector-node .node-subtitle {
  fill: #64748b;
  font-family: 'Space Grotesk', monospace, sans-serif;
  font-size: 10.5px;
  font-weight: 500;
  text-anchor: middle;
  letter-spacing: 0.02em;
}

/* Node Details Bar */
.workflow-node-details {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-height: 72px;
  margin-top: 12px;
  padding: 12px 18px;
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 12px;
  background: rgba(9, 25, 38, 0.92);
  flex-shrink: 0;
}

.workflow-node-type {
  flex: 0 0 auto;
  margin-top: 2px;
  padding: 4px 8px;
  border: 1px solid rgba(45, 212, 191, 0.28);
  border-radius: 999px;
  color: #34d399;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-family: 'Space Grotesk', monospace, sans-serif;
}

.workflow-node-details strong {
  color: #f8fafc;
  font-size: 0.92rem;
  font-weight: 700;
}

.workflow-node-details p {
  margin: 3px 0 0;
  color: #94a3b8;
  font-size: 0.82rem;
  line-height: 1.45;
}

.workflow-modal-open {
  overflow: hidden;
}

@media (max-width: 700px) {
  .workflow-modal {
    padding: 1vh 1vw;
  }
  .workflow-dialog {
    width: 98vw;
    height: 96vh;
    padding: 12px;
    border-radius: 16px;
  }
  .workflow-dialog-header {
    padding-bottom: 10px;
  }
  .workflow-dialog-header p {
    font-size: 0.78rem;
  }
  .workflow-toolbar {
    gap: 5px;
    padding: 6px 8px;
  }
  .workflow-canvas-hint {
    display: none;
  }
  .workflow-node-details {
    min-height: 68px;
    padding: 10px;
    gap: 10px;
  }
}

/* Static portfolio-themed workflow preview; all nodes and connections remain vector-sharp. */
.workflow-viewport { border-radius:12px !important; touch-action:auto !important; cursor:default !important; background:radial-gradient(ellipse at 78% 38%, rgba(13,148,136,.12), transparent 48%), #06121d !important; }
.workflow-canvas, .workflow-viewport, .workflow-svg, .workflow-vector-node { cursor:default !important; }
.workflow-edge { stroke:#35a9c8 !important; opacity:.82 !important; }
.workflow-edge.is-true { stroke:#32d6a0 !important; }
.workflow-edge.is-error { stroke:#45c5d9 !important; }
.workflow-edge.is-ai { stroke:#4c8698 !important; }
.workflow-vector-node .node-card { fill:#0a1a29 !important; stroke:rgba(56,189,248,.42) !important; }
.workflow-vector-node:hover .node-card,.workflow-vector-node:focus .node-card,.workflow-vector-node.is-selected .node-card { fill:#0c2635 !important; stroke:#4bd9e9 !important; filter:url(#workflowNodeGlow); }
.workflow-vector-node.is-ai-agent .node-card { fill:#0a202b !important; stroke:rgba(45,212,191,.6) !important; }
.workflow-viewport.is-pan-mode,.workflow-canvas.is-pan-mode,.workflow-canvas.is-pan-mode .workflow-vector-node,.workflow-canvas.is-pan-mode .workflow-svg,.workflow-viewport.is-dragging,.workflow-canvas.is-dragging,.workflow-canvas.is-dragging .workflow-vector-node { cursor:default !important; }

/* First project: use the workflow reference as its clickable visual. */
.project-thumb-workflow { isolation:isolate; }
.project-thumb-workflow .project-workflow-image { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:center; transition:transform .45s ease,filter .35s ease; }
.project-card:hover .project-thumb-workflow .project-workflow-image { transform:scale(1.035); filter:brightness(.82); }
.project-thumb-workflow .workflow-preview-button { position:absolute; inset:0; z-index:1; display:flex; align-items:flex-end; justify-content:flex-start; padding:14px; background:linear-gradient(180deg,transparent 46%,rgba(3,12,21,.74)); }
.project-thumb-workflow .workflow-preview-button span { display:inline-flex; align-items:center; gap:8px; padding:8px 11px; color:#d7fbff; font-size:.68rem; font-weight:650; letter-spacing:.045em; text-transform:uppercase; background:rgba(4,22,34,.82); border:1px solid rgba(56,216,238,.42); border-radius:999px; box-shadow:0 4px 18px rgba(0,0,0,.25); }
.project-thumb-workflow .workflow-preview-button span span { padding:0; border:0; background:transparent; box-shadow:none; font-size:.95rem; }
.project-thumb-workflow .workflow-preview-button:focus-visible { outline:2px solid #38bdf8; outline-offset:-5px; border-radius:10px; }


/* Display the supplied workflow image in the original wide canvas. */
.workflow-image-canvas { position:absolute; inset:0; display:grid; place-items:center; width:100%; height:100%; overflow:hidden; }
.workflow-image-svg { display:block; width:100%; height:100%; }
.workflow-image-hotspot { fill:transparent; stroke:transparent; stroke-width:7; cursor:pointer; pointer-events:all; }
.workflow-image-hotspot:hover,.workflow-image-hotspot:focus,.workflow-image-hotspot.is-selected { fill:transparent !important; stroke:transparent !important; outline:none; filter:none; }
.workflow-canvas[hidden] { display:none !important; }
/* Match the image's dark blue-green background in the contain-fit side gutters. */
#supportWorkflowModal .workflow-viewport { background:#171717 !important; }
/* Monthly billing project image preview. */
.project-thumb-billing { background:#171717; }
.project-thumb-billing .project-workflow-image { object-fit:cover; }
/* Abandoned cart project preview and matching dark workflow canvas. */
.project-thumb-abandoned-cart { background:#171717; }
.project-thumb-abandoned-cart .project-workflow-image { object-fit:cover; }
#abandonedCartWorkflowModal .workflow-viewport { background:#171717 !important; }
/* Billing workflow image has a charcoal background; use it in the contain-fit gutters. */
#billingWorkflowModal .workflow-viewport { background:#171717 !important; }
/* Keep abandoned-cart node descriptions readable when a longer note wraps. */
#abandonedCartNodeDetails > div { min-width:0; flex:1 1 auto; }
#abandonedCartNodeDetails strong,
#abandonedCartNodeDetails p { overflow-wrap:anywhere; word-break:normal; }
