/* ============================================================
   MARK ANTHONY ANDRADA — Portfolio Redesign
   Dark Navy · Champagne Gold · Premium Gray
   Font: Cormorant Garamond (display) + Inter (body)
   ============================================================ */

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

:root {
  /* Dark base */
  --navy-950:  #090c12;
  --navy-900:  #0d1117;
  --navy-800:  #111820;
  --navy-700:  #171f2a;
  --navy-600:  #1e2738;

  /* Premium gray */
  --gray-600:  #3a4255;
  --gray-500:  #4e5a72;
  --gray-400:  #6b7894;
  --gray-300:  #8d9bb8;
  --gray-200:  #b0bcd4;
  --gray-100:  #d4dae8;

  /* Champagne gold */
  --gold-600:  #9a7b2e;
  --gold-500:  #b8952f;
  --gold-400:  #c9a84c;
  --gold-300:  #d4af61;
  --gold-200:  #e2c98a;
  --gold-100:  #f0e0b8;

  /* White */
  --white:     #f8f6f0;

  /* Semantic */
  --bg:        var(--navy-950);
  --bg-alt:    var(--navy-900);
  --surface:   var(--navy-800);
  --surface-2: var(--navy-700);
  --border:    var(--navy-600);
  --border-2:  var(--gray-600);
  --text:      var(--white);
  --text-dim:  var(--gray-100);
  --text-muted: var(--gray-300);
  --text-faint: var(--gray-400);
  --gold:      var(--gold-400);
  --gold-dim:  var(--gold-600);

  /* Typography */
  --font-head: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing & shape */
  --radius:    8px;
  --radius-lg: 14px;
  --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);

  /* Shadows */
  --shadow-sm:  0 2px 8px rgba(0,0,0,0.5);
  --shadow-md:  0 6px 24px rgba(0,0,0,0.6);
  --shadow-lg:  0 16px 56px rgba(0,0,0,0.75);
  --gold-glow:  0 0 24px rgba(201,168,76,0.15);
}

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

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

::selection { background: rgba(201,168,76,0.2); color: var(--white); }

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
strong { color: var(--gold-200); font-weight: 600; }

/* ── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--gray-600); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-600); }

/* ── Container ─────────────────────────────────────────────── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 32px; }

/* ── Reveal ────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  color: var(--navy-950);
  font-weight: 600;
  box-shadow: var(--shadow-sm), var(--gold-glow);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold-300), var(--gold-400));
  box-shadow: var(--shadow-md), 0 0 36px rgba(201,168,76,0.25);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--gray-200);
  border: 1px solid var(--border-2);
}
.btn-secondary:hover {
  border-color: var(--gold-400);
  color: var(--gold-300);
  background: rgba(201,168,76,0.05);
  transform: translateY(-2px);
}

/* ── Section Layout ────────────────────────────────────────── */
.section { padding: 120px 0; }

.section-alt {
  background: var(--bg-alt);
  position: relative;
}
.section-alt::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(201,168,76,0.03) 0%, transparent 70%);
  pointer-events: none;
}

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 600;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}

.section-sub {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 520px;
  margin-bottom: 64px;
  line-height: 1.8;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background var(--transition), border-color var(--transition);
}
.navbar.scrolled {
  background: rgba(9,12,18,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(201,168,76,0.12);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1160px;
  margin: 0 auto;
  padding: 24px 32px;
}

.nav-logo {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--text);
  letter-spacing: 0.02em;
  transition: color var(--transition);
}
.nav-logo-dot { color: var(--gold-400); }
.nav-logo:hover { color: var(--gold-200); }

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

.nav-link {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: 6px;
  transition: var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--gold-300); }

.nav-cta {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500)) !important;
  color: var(--navy-950) !important;
  font-weight: 600 !important;
  padding: 9px 20px !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--gold-glow);
}
.nav-cta:hover {
  background: linear-gradient(135deg, var(--gold-300), var(--gold-400)) !important;
  transform: translateY(-1px);
  box-shadow: 0 0 28px rgba(201,168,76,0.25) !important;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}
.nav-hamburger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--gray-300);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); background: var(--gold-400); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); background: var(--gold-400); }

.nav-mobile {
  display: none;
  flex-direction: column;
  background: rgba(9,12,18,0.98);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(201,168,76,0.1);
  padding: 16px 32px 32px;
}
.nav-mobile.open { display: flex; }

.nav-mobile-link {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 16px 0;
  border-bottom: 1px solid rgba(201,168,76,0.08);
  transition: var(--transition);
}
.nav-mobile-link:hover { color: var(--gold-300); padding-left: 8px; }
.nav-mobile-link:last-child { border-bottom: none; }
.nav-mobile-cta {
  margin-top: 16px;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  color: var(--navy-950) !important;
  font-weight: 600 !important;
  padding: 14px 20px !important;
  border-radius: var(--radius);
  text-align: center;
  border-bottom: none !important;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy-950);
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  opacity: 1;
}

.hero-overlay-bottom {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 300px;
  background: linear-gradient(to top, var(--navy-950), transparent);
  pointer-events: none;
  z-index: 1;
}

.hero-overlay-top {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 180px;
  background: linear-gradient(to bottom, rgba(9,12,18,0.7), transparent);
  pointer-events: none;
  z-index: 1;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201,168,76,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.03) 1px, transparent 1px);
  background-size: 72px 72px;
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 150px 32px 110px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 16px;
  background: rgba(201,168,76,0.08);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-300);
  margin-bottom: 32px;
}
.hero-badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold-400);
  animation: badge-pulse 2.5s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(201,168,76,0.6);
}
@keyframes badge-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px rgba(201,168,76,0.6); }
  50% { opacity: 0.5; box-shadow: 0 0 4px rgba(201,168,76,0.3); }
}

.hero-headline {
  font-family: var(--font-head);
  font-size: clamp(3.6rem, 6vw, 6.5rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 28px;
}
.hero-headline em {
  font-style: italic;
  color: var(--gold-400);
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.85;
  max-width: 460px;
  margin-bottom: 44px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-typewriter-row {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--text-faint);
  display: flex;
  align-items: center;
  min-height: 1.5em;
  letter-spacing: 0.02em;
}
.tw-prefix { margin-right: 5px; }
.tw-text { color: var(--gold-300); font-weight: 500; }
.tw-cursor {
  color: var(--gold-400);
  animation: cur-blink 0.75s step-end infinite;
  margin-left: 1px;
}
@keyframes cur-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.hero-scroll {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.35;
  transition: opacity var(--transition);
}
.hero-scroll:hover { opacity: 0.7; }
.hero-scroll-line {
  display: block;
  width: 1px; height: 44px;
  background: linear-gradient(to bottom, transparent, var(--gold-400));
  animation: scroll-grow 2.2s ease-in-out infinite;
}
@keyframes scroll-grow {
  0% { transform: scaleY(0); transform-origin: top; opacity: 0; }
  50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  100% { transform: scaleY(1); transform-origin: bottom; opacity: 0; }
}
.hero-scroll-text {
  font-family: var(--font-body);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-400);
}

/* ── Workflow Visual ─────────────────────────────────────── */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.workflow-wrap {
  position: relative;
  width: 520px;
  height: 520px;
}

.workflow-ring {
  position: absolute;
  top: 50%; left: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: ring-slow linear infinite;
}
.ring-1 {
  width: 88%; height: 88%;
  border: 1px solid rgba(201,168,76,0.08);
  animation-duration: 35s;
}
.ring-2 {
  width: 66%; height: 66%;
  border: 1px solid rgba(201,168,76,0.05);
  animation-duration: 24s;
  animation-direction: reverse;
}
@keyframes ring-slow {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

.workflow-svg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}

.workflow-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 148px; height: 100px;
  background: rgba(17,24,32,0.95);
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  z-index: 2;
  backdrop-filter: blur(12px);
  box-shadow:
    0 0 0 1px rgba(201,168,76,0.08),
    0 0 32px rgba(201,168,76,0.08),
    0 8px 32px rgba(0,0,0,0.6);
  animation: center-breathe 4s ease-in-out infinite;
}
@keyframes center-breathe {
  0%, 100% { box-shadow: 0 0 0 1px rgba(201,168,76,0.08), 0 0 32px rgba(201,168,76,0.08), 0 8px 32px rgba(0,0,0,0.6); }
  50% { box-shadow: 0 0 0 1px rgba(201,168,76,0.15), 0 0 52px rgba(201,168,76,0.15), 0 8px 32px rgba(0,0,0,0.6); }
}

.wf-center-icon { color: var(--gold-400); }
.wf-center-label {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.02em;
}
.wf-center-sub {
  font-size: 0.7rem;
  color: var(--gray-400);
  letter-spacing: 0.06em;
}

.tool-node {
  position: absolute;
  width: 74px; height: 74px;
  background: rgba(17,24,32,0.92);
  border: 1px solid rgba(201,168,76,0.15);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  z-index: 2;
  backdrop-filter: blur(8px);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  cursor: default;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
.tool-node img {
  width: 34px; height: 34px;
  object-fit: contain;
  filter: brightness(0.85) saturate(0.7);
  transition: filter 0.3s ease;
}
.tool-node span {
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--gray-300);
  letter-spacing: 0.06em;
}
.tool-node::after {
  content: attr(data-label);
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--gray-400);
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.tool-node:hover {
  border-color: rgba(201,168,76,0.4);
  transform: scale(1.1);
  box-shadow: 0 0 24px rgba(201,168,76,0.12), 0 8px 32px rgba(0,0,0,0.6);
}
.tool-node:hover img { filter: brightness(1.1) saturate(1); }

.node-n8n    { top: 2%;  left: 37%; animation: fn-a 5s ease-in-out infinite; }
.node-make   { top: 20%; left: 1%;  animation: fn-b 6.5s ease-in-out infinite; }
.node-zapier { top: 20%; right: 1%; animation: fn-c 5.5s ease-in-out infinite; }
.node-claude { bottom: 20%; left: 1%;  animation: fn-b 7s ease-in-out infinite; }
.node-ghl    { bottom: 20%; right: 1%; animation: fn-a 6s ease-in-out infinite; }
.node-openai { bottom: 2%; left: 37%; animation: fn-c 5s ease-in-out infinite; }

@keyframes fn-a { 0%,100% { transform: translateY(0px); }  50% { transform: translateY(-9px); } }
@keyframes fn-b { 0%,100% { transform: translateY(0px); }  50% { transform: translateY(9px); } }
@keyframes fn-c { 0%,100% { transform: translateY(-5px); } 50% { transform: translateY(6px); } }

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 80px;
  align-items: start;
}

.about-img-wrap {
  position: relative;
  margin-bottom: 24px;
}

.about-img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius-lg);
  display: block;
  filter: grayscale(15%);
}

.about-img-border {
  position: absolute;
  inset: -8px;
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: calc(var(--radius-lg) + 4px);
  pointer-events: none;
}

.about-stat-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  border: 1px solid rgba(201,168,76,0.12);
  border-radius: var(--radius);
  padding: 20px 24px;
}

.about-stat { text-align: center; flex: 1; }

.about-stat-num {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 600;
  color: var(--gold-400);
  line-height: 1;
  margin-bottom: 4px;
}

.about-stat-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.about-stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(201,168,76,0.15);
}

.about-p {
  color: var(--text-muted);
  line-height: 1.9;
  margin-bottom: 20px;
  font-size: 1rem;
}
.about-p:last-of-type { margin-bottom: 0; }

.about-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 36px;
}

.about-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
}
.about-card:hover {
  border-color: rgba(201,168,76,0.25);
  box-shadow: var(--gold-glow);
  transform: translateX(4px);
}

.about-card-icon {
  width: 36px; height: 36px;
  background: rgba(201,168,76,0.08);
  border: 1px solid rgba(201,168,76,0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-400);
  flex-shrink: 0;
}

.about-card-title {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
  letter-spacing: 0.01em;
}

.about-card-desc {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.6;
}

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

.services-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  position: relative;
  transition: var(--transition);
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,0.3), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}
.service-card:hover {
  border-color: rgba(201,168,76,0.2);
  box-shadow: var(--shadow-lg), var(--gold-glow);
  transform: translateY(-4px);
}
.service-card:hover::before { opacity: 1; }

.service-number {
  font-family: var(--font-head);
  font-size: 3.5rem;
  font-weight: 600;
  color: rgba(201,168,76,0.08);
  position: absolute;
  top: 20px;
  right: 28px;
  line-height: 1;
  letter-spacing: -0.02em;
  user-select: none;
}

.service-icon {
  width: 48px; height: 48px;
  background: rgba(201,168,76,0.08);
  border: 1px solid rgba(201,168,76,0.18);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-400);
  margin-bottom: 20px;
}

.service-title {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 14px;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.service-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 22px;
}

.service-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-list li {
  font-size: 0.83rem;
  color: var(--text-faint);
  padding-left: 16px;
  position: relative;
  letter-spacing: 0.01em;
}
.service-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px; height: 1px;
  background: var(--gold-400);
}

/* ============================================================
   PROJECTS
   ============================================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: var(--transition);
  cursor: default;
  position: relative;
  overflow: hidden;
}
.project-card:hover {
  border-color: rgba(201,168,76,0.2);
  box-shadow: var(--shadow-lg), var(--gold-glow);
  transform: translateY(-5px);
}

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

.project-status {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
  color: var(--gold-300);
  background: rgba(201,168,76,0.08);
  border: 1px solid rgba(201,168,76,0.18);
}

.project-num {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(201,168,76,0.2);
  letter-spacing: 0.05em;
}

.project-img-wrap {
  width: 100%;
  height: 170px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 18px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  position: relative;
}
.project-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.5s ease;
  display: block;
}
.project-card:hover .project-img { transform: scale(1.04); }

.project-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(9,12,18,0.5));
  pointer-events: none;
}

.project-title {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.3;
}

.project-desc {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 18px;
}

.project-tags { display: flex; flex-wrap: wrap; gap: 6px; }

.tag {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--gray-400);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 3px 9px;
}

/* Featured card */
.project-card--featured {
  border-color: rgba(201,168,76,0.2);
  background: linear-gradient(135deg, var(--navy-800), var(--navy-700));
}
.project-card--featured::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: calc(var(--radius-lg) + 1px);
  background: linear-gradient(135deg, rgba(201,168,76,0.15), transparent, rgba(201,168,76,0.08));
  pointer-events: none;
  z-index: 0;
}

.project-status--live-pulse {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.project-status--live-pulse::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold-400);
  animation: pulse-dot 1.5s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(201,168,76,0.6);
  flex-shrink: 0;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

.project-voice-banner {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-800));
  border: 1px solid rgba(201,168,76,0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  overflow: hidden;
  position: relative;
  margin-bottom: 18px;
}
.voice-banner-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 1;
}
.voice-banner-label {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gold-300);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.voice-banner-sub {
  font-size: 0.73rem;
  color: var(--gray-400);
  letter-spacing: 0.04em;
}

.voice-wave {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 36px;
}
.voice-wave span {
  display: block;
  width: 3px;
  border-radius: 4px;
  background: var(--gold-400);
  animation: wave-bar 1.2s ease-in-out infinite;
}
.voice-wave span:nth-child(1) { height: 12px; animation-delay: 0s; }
.voice-wave span:nth-child(2) { height: 24px; animation-delay: 0.15s; }
.voice-wave span:nth-child(3) { height: 36px; animation-delay: 0.3s; }
.voice-wave span:nth-child(4) { height: 24px; animation-delay: 0.45s; }
.voice-wave span:nth-child(5) { height: 12px; animation-delay: 0.6s; }
@keyframes wave-bar {
  0%, 100% { transform: scaleY(0.5); opacity: 0.5; }
  50% { transform: scaleY(1); opacity: 1; }
}

.project-call-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 16px;
  font-size: 0.85rem;
}

/* ============================================================
   SKILLS
   ============================================================ */
.skills-table {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid rgba(201,168,76,0.12);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.skills-col {
  padding: 36px 28px;
  border-right: 1px solid rgba(201,168,76,0.08);
}
.skills-col:last-child { border-right: none; }

.skills-col-label {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(201,168,76,0.12);
}

.skill-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 9px 0;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  transition: color var(--transition);
}
.skill-item:last-child { border-bottom: none; }
.skill-item:hover { color: var(--gold-200); }

.skill-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--gold-600);
  flex-shrink: 0;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 60px;
  align-items: start;
}

.contact-info { display: flex; flex-direction: column; gap: 28px; }

.contact-item-label {
  font-family: var(--font-body);
  font-size: 0.63rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: 6px;
}

.contact-item-value {
  font-size: 0.96rem;
  font-weight: 400;
  color: var(--text-dim);
}

.contact-available {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gray-200);
}

.avail-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold-400);
  animation: avail-pulse 2.5s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(201,168,76,0.5);
}
@keyframes avail-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.contact-link {
  color: inherit;
  transition: color var(--transition);
}
.contact-link:hover { color: var(--gold-300); }

.contact-socials { display: flex; gap: 10px; flex-wrap: wrap; }

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 500;
  transition: var(--transition);
}
.social-btn:hover {
  border-color: rgba(201,168,76,0.25);
  color: var(--gold-300);
  box-shadow: var(--gold-glow);
  transform: translateY(-2px);
}

.ghl-form-wrap {
  background: var(--surface);
  border: 1px solid rgba(201,168,76,0.12);
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 700px;
  position: relative;
  z-index: 1;
}
.ghl-iframe {
  width: 100%;
  min-height: 750px;
  height: 800px;
  border: none;
  display: block;
  pointer-events: all;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 48px 0;
  border-top: 1px solid rgba(201,168,76,0.1);
  position: relative;
}

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

.footer-brand { display: flex; align-items: center; gap: 18px; }

.footer-logo {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--text);
}
.footer-logo-dot { color: var(--gold-400); }

.footer-tagline {
  font-size: 0.82rem;
  color: var(--text-faint);
}

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

.footer-link {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer-link:hover { color: var(--gold-300); }

.footer-copy {
  font-size: 0.76rem;
  color: var(--text-faint);
}

.back-to-top {
  position: absolute;
  right: 32px; bottom: 48px;
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid rgba(201,168,76,0.15);
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 1rem;
  transition: var(--transition);
  opacity: 0;
  pointer-events: none;
}
.back-to-top.visible { opacity: 1; pointer-events: all; }
.back-to-top:hover {
  border-color: var(--gold-400);
  color: var(--gold-300);
  box-shadow: var(--gold-glow);
  transform: translateY(-3px);
}

/* ============================================================
   CHATBOT
   ============================================================ */
.chatbot-fab {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 1000;
  width: 54px; height: 54px;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy-950);
  cursor: pointer;
  box-shadow: var(--shadow-lg), var(--gold-glow);
  transition: var(--transition);
}
.chatbot-fab:hover {
  transform: scale(1.08);
  box-shadow: var(--shadow-lg), 0 0 36px rgba(201,168,76,0.3);
}

.chatbot-panel {
  position: fixed;
  bottom: 96px; right: 28px;
  z-index: 999;
  width: 360px;
  max-width: calc(100vw - 40px);
  background: var(--navy-900);
  border: 1px solid rgba(201,168,76,0.15);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 80px rgba(0,0,0,0.8);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px) scale(0.97);
  pointer-events: none;
  transition: opacity 0.24s ease, transform 0.24s ease;
  max-height: 520px;
}
.chatbot-panel.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.chatbot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--navy-800);
  border-bottom: 1px solid rgba(201,168,76,0.1);
  flex-shrink: 0;
}
.chatbot-header-info { display: flex; align-items: center; gap: 10px; }
.chatbot-avatar {
  width: 34px; height: 34px;
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-400);
  flex-shrink: 0;
}
.chatbot-header-name { font-family: var(--font-body); font-size: 0.88rem; font-weight: 600; color: var(--text); }
.chatbot-header-status { display: flex; align-items: center; gap: 5px; font-size: 0.72rem; color: var(--text-muted); margin-top: 1px; }
.chatbot-status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold-400); flex-shrink: 0; animation: avail-pulse 2.5s ease-in-out infinite; }
.chatbot-close {
  background: none; border: none; cursor: pointer;
  color: var(--text-muted); padding: 4px;
  border-radius: 6px; transition: var(--transition);
  display: flex; align-items: center;
}
.chatbot-close:hover { color: var(--gold-300); }

.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-2) transparent;
}
.chatbot-messages::-webkit-scrollbar { width: 4px; }
.chatbot-messages::-webkit-scrollbar-track { background: transparent; }
.chatbot-messages::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 4px; }

.chat-msg { display: flex; max-width: 88%; }
.chat-msg--bot { align-self: flex-start; }
.chat-msg--user { align-self: flex-end; flex-direction: row-reverse; }

.chat-bubble {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--text);
}
.chat-msg--bot .chat-bubble {
  background: var(--surface);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}
.chat-msg--user .chat-bubble {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  color: var(--navy-950);
  font-weight: 500;
  border-bottom-right-radius: 4px;
}

.chat-typing .chat-bubble {
  display: flex; align-items: center; gap: 4px; padding: 12px 16px;
}
.chat-typing .chat-bubble span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold-400);
  animation: typing-dot 1.2s infinite ease-in-out;
}
.chat-typing .chat-bubble span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing .chat-bubble span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing-dot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-5px); opacity: 1; }
}

.chatbot-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid rgba(201,168,76,0.08);
  background: var(--navy-800);
  flex-shrink: 0;
}
.chatbot-input {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 0.84rem;
  color: var(--text);
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.2s;
}
.chatbot-input::placeholder { color: var(--text-faint); }
.chatbot-input:focus { border-color: rgba(201,168,76,0.35); }
.chatbot-send {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  border: none;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--navy-950);
  cursor: pointer;
  flex-shrink: 0;
  transition: var(--transition);
}
.chatbot-send:hover { transform: scale(1.05); }
.chatbot-send:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-img { aspect-ratio: 16/9; }
  .skills-table { grid-template-columns: repeat(2, 1fr); }
  .skills-col:nth-child(2) { border-right: none; }
  .skills-col:nth-child(3) { border-top: 1px solid rgba(201,168,76,0.08); }
  .skills-col:nth-child(4) { border-right: none; border-top: 1px solid rgba(201,168,76,0.08); }
  .services-grid--3 { grid-template-columns: 1fr; }
}

@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 60px;
    padding-top: 130px;
  }
  .hero-sub { max-width: 100%; }
  .hero-actions { justify-content: center; }
  .hero-typewriter-row { justify-content: center; }
  .hero-visual { order: -1; }
  .workflow-wrap { width: 380px; height: 380px; }
  .workflow-center { width: 120px; height: 84px; }
  .tool-node { width: 58px; height: 58px; }
  .tool-node img { width: 28px; height: 28px; }

  .services-grid,
  .services-grid--3 { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 44px; }
}

@media (max-width: 680px) {
  .section { padding: 80px 0; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  .hero-headline { font-size: 3rem; }
  .section-title { font-size: 2.2rem; }
  .workflow-wrap { width: 300px; height: 300px; }
  .workflow-center { width: 100px; height: 72px; }
  .tool-node { width: 50px; height: 50px; }
  .tool-node img { width: 24px; height: 24px; }

  .projects-grid { grid-template-columns: 1fr; }
  .skills-table { grid-template-columns: 1fr; }
  .skills-col { border-right: none; border-bottom: 1px solid rgba(201,168,76,0.08); }
  .skills-col:last-child { border-bottom: none; }

  .footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-links { flex-wrap: wrap; gap: 16px; }
  .back-to-top { right: 16px; bottom: 16px; }
  .chatbot-fab { bottom: 20px; right: 20px; width: 48px; height: 48px; }
  .chatbot-panel { bottom: 82px; right: 20px; width: calc(100vw - 40px); }
  .about-stat-strip { padding: 16px; }
}
