/* ============================================
   Kpo Leung | 梁君寶 - Personal Website
   Premium Dark Theme • Royal Purple + Gold + Tech Cyan
   Professional, Modern, Interactive
   ============================================ */

:root {
  /* Deep navy professional dark theme */
  --bg: #0A0E1A;
  --bg-alt: #111827;
  --bg-card: #1E2937;
  --bg-elevated: #334155;
  --bg-glass: rgba(30, 41, 55, 0.85);

  /* Text */
  --text: #F8FAFC;
  --text-muted: #94A3B8;
  --text-light: #64748B;

  /* Primary: Royal Purple */
  --purple: #6B4C9A;
  --purple-light: #8B6BB8;
  --purple-lighter: #A78BFA;
  --purple-dark: #4F2E7A;
  --purple-glow: rgba(107, 76, 154, 0.4);

  /* Accent: Gold */
  --gold: #C8A951;
  --gold-light: #E8D48A;
  --gold-dark: #A68A3A;
  --gold-glow: rgba(200, 169, 81, 0.35);

  /* Tech accents (cyan/teal for tags & tech items) */
  --tech: #14B8A6;
  --tech-light: #2DD4BF;
  --tech-cyan: #22D3EE;
  --tech-sky: #0EA5E9;
  --tech-glow: rgba(20, 184, 166, 0.35);

  /* Borders & surfaces */
  --border: #334155;
  --border-light: #475569;
  --border-subtle: rgba(148, 163, 184, 0.18);

  /* Shadows - deeper for dark theme */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 25px 60px -15px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 0 1px rgba(107, 76, 154, 0.2), 0 10px 30px -10px rgba(0, 0, 0, 0.45);

  /* Radii & motion */
  --radius: 16px;
  --radius-sm: 10px;
  --radius-full: 999px;
  --transition: 220ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 420ms cubic-bezier(0.23, 1, 0.32, 1);
  --transition-fast: 120ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 15.5px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Elegant Typography */
h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text);
}

h1 { font-size: 3.25rem; }
h2 { font-size: 2.1rem; }
h3 { font-size: 1.25rem; }

p {
  color: var(--text-muted);
  max-width: 66ch;
}

a {
  color: var(--purple-lighter);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--gold);
}

/* Layout */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.75rem;
}

.section {
  padding: 5.75rem 0;
}

.section-header {
  margin-bottom: 2.5rem;
}

.section-title {
  font-size: 2.05rem;
  margin-bottom: 0.4rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 48px;
  height: 3px;
  background: linear-gradient(to right, var(--purple), var(--gold));
  border-radius: 3px;
}

.section-subtitle {
  color: var(--text-light);
  font-size: 0.82rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-weight: 500;
}

/* Navbar - Premium Glass */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 14, 26, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--text);
  letter-spacing: -0.015em;
}

.logo-zh {
  font-size: 1.0rem;
  color: var(--gold);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.4rem;
  font-size: 0.91rem;
  font-weight: 500;
}

.nav-links a {
  color: var(--text-muted);
  padding: 6px 0;
  position: relative;
  transition: color var(--transition);
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, var(--purple), var(--gold));
  transition: width var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Mobile Nav */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4.5px;
  background: none;
  border: none;
  padding: 10px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.75px;
  background: var(--text);
  transition: all 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 2px;
}

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

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 78px;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 1.25rem 0;
    gap: 0;
    border-bottom: 1px solid var(--border);
    transform: translateY(-140%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.32s ease;
    box-shadow: var(--shadow-lg);
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    width: 100%;
    padding: 15px 1.75rem;
    border-bottom: 1px solid var(--border);
  }

  .nav-toggle {
    display: flex;
  }
}

/* Hero - Premium with Parallax Layers & Cursor Interaction */
.hero {
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding: 2.5rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-content {
  max-width: 620px;
  position: relative;
  z-index: 2;
}

.hero-name {
  font-size: 3.85rem;
  font-weight: 600;
  line-height: 1.02;
  margin-bottom: 0.2rem;
  letter-spacing: -0.045em;
  background: linear-gradient(135deg, var(--text) 30%, #E2E8F0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-name-zh {
  font-size: 2.35rem;
  font-weight: 500;
  color: var(--gold);
  margin-bottom: 1.1rem;
  letter-spacing: -0.01em;
}

.hero-title {
  font-size: 1.2rem;
  color: var(--purple-lighter);
  font-weight: 600;
  margin-bottom: 0.25rem;
  letter-spacing: -0.01em;
}

.hero-company {
  font-size: 1.02rem;
  color: var(--text-muted);
  margin-bottom: 1.85rem;
}

.hero-description {
  font-size: 1.03rem;
  max-width: 52ch;
  margin-bottom: 2.35rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Premium Buttons with Glow */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.78rem 1.85rem;
  font-size: 0.94rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
  border: none;
  letter-spacing: -0.01em;
}

.btn-primary {
  background: var(--gold);
  color: #0A0E1A;
  box-shadow: 0 4px 14px var(--gold-glow);
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -100%;
  width: 50%;
  height: 200%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,0.35),
    transparent
  );
  transition: left 0.6s;
}

.btn-primary:hover::after {
  left: 250%;
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px var(--gold-glow);
  color: #0A0E1A;
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-light);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: var(--bg-elevated);
  border-color: var(--purple-light);
  color: var(--text);
  transform: translateY(-1px);
}

/* Hero Visual - Image + Parallax + Interactive Glow */
.hero-visual {
  position: relative;
  z-index: 1;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3.1;
  background: var(--bg-alt);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  will-change: transform;
}

.hero-visual:hover img {
  transform: scale(1.035);
}

/* Interactive cursor glow orb */
.hero-glow {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(107,76,154,0.22) 0%, transparent 70%);
  pointer-events: none;
  z-index: 2;
  mix-blend-mode: screen;
  transition: opacity 0.2s ease;
  opacity: 0.7;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,14,26,0.35) 20%, rgba(10,14,26,0.1) 60%);
  z-index: 1;
  pointer-events: none;
}

.hero-accent-ring {
  position: absolute;
  inset: -1px;
  border: 1px solid rgba(200, 169, 81, 0.25);
  border-radius: var(--radius);
  z-index: 3;
  pointer-events: none;
}

/* Parallax decorative elements */
.parallax {
  transition: transform 80ms linear;
  will-change: transform;
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.75rem;
  }
  .hero-visual {
    aspect-ratio: 16 / 9.5;
    max-height: 380px;
  }
  .hero-name { font-size: 3.1rem; }
  .hero-name-zh { font-size: 1.9rem; }
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.25rem;
  align-items: start;
}

@media (max-width: 860px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.1rem;
  }
}

.about-text p {
  margin-bottom: 1.15rem;
}

.about-text p:last-child {
  margin-bottom: 0;
}

/* About Visual Image */
.about-visual {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-top: 0.5rem;
}

.about-visual img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 650ms cubic-bezier(0.23, 1, 0.32, 1);
}

.about-visual:hover img {
  transform: scale(1.04);
}

/* Meta */
.about-meta {
  margin-top: 1.65rem;
  padding: 1.35rem 0 0;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1.25rem;
}

.meta-item {
  font-size: 0.9rem;
}

.meta-label {
  display: block;
  font-size: 0.68rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 0.2rem;
}

.meta-value {
  color: var(--text);
  font-weight: 500;
  line-height: 1.35;
}

/* Expertise / Tech Tags Section */
.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.tech-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 1.05rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--tech-light);
  background: rgba(20, 184, 166, 0.09);
  border: 1px solid rgba(20, 184, 166, 0.28);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.tech-tag:hover {
  background: rgba(20, 184, 166, 0.18);
  border-color: var(--tech);
  color: var(--tech-cyan);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--tech-glow);
}

/* Interests Section */
.interests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(265px, 1fr));
  gap: 1.25rem;
}

.interest-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  transition: all var(--transition);
  height: 100%;
  overflow: hidden;
  position: relative;
  /* 3D tilt support via JS */
  transform-style: preserve-3d;
  perspective: 1200px;
}

.interest-card-inner {
  padding: 1.55rem 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.interest-image {
  position: relative;
  height: 138px;
  overflow: hidden;
  background: var(--bg-alt);
}

.interest-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 650ms cubic-bezier(0.23, 1, 0.32, 1);
  display: block;
}

.interest-card:hover .interest-image img {
  transform: scale(1.08);
}

.interest-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(107, 76, 154, 0.12);
  border-radius: 12px;
  margin-bottom: 1.05rem;
  margin-top: 0.35rem;
  color: var(--purple-light);
  flex-shrink: 0;
  transition: all var(--transition);
}

.interest-card:hover .interest-icon {
  background: rgba(200, 169, 81, 0.15);
  color: var(--gold);
}

.interest-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.45rem;
  color: var(--text);
  font-weight: 600;
}

.interest-card p {
  font-size: 0.92rem;
  margin: 0;
  line-height: 1.6;
  color: var(--text-muted);
  flex-grow: 1;
}

/* Card hover lift + subtle glow */
.interest-card:hover {
  transform: translateY(-6px);
  border-color: var(--purple-light);
  box-shadow: var(--shadow-lg);
}

/* Contact Section */
.contact-container {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.contact-intro {
  margin-bottom: 2.65rem;
}

.contact-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem;
  margin-bottom: 2.35rem;
}

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

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.65rem 1.5rem;
  text-align: left;
  transition: all var(--transition);
}

.contact-card:hover {
  border-color: var(--purple-light);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.contact-label {
  font-size: 0.69rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-light);
  margin-bottom: 0.4rem;
  font-weight: 500;
}

.contact-value {
  font-size: 1.08rem;
  font-weight: 500;
  color: var(--text);
  word-break: break-all;
}

.contact-value a {
  color: var(--text);
  transition: color var(--transition-fast);
}

.contact-value a:hover {
  color: var(--gold);
}

.copy-btn {
  margin-top: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  padding: 0.35rem 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.copy-btn:hover {
  background: var(--bg-elevated);
  border-color: var(--gold);
  color: var(--gold);
}

.contact-note {
  font-size: 0.9rem;
  color: var(--text-light);
  max-width: 42ch;
  margin: 0 auto;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 2.35rem 0;
  font-size: 0.82rem;
  color: var(--text-light);
}

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

@media (max-width: 640px) {
  .footer-content {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Utility */
.text-center { text-align: center; }

/* Scroll Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.23, 1, 0.32, 1), 
              transform 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Focus styles */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* Subtle gold divider */
.divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  margin: 1.5rem 0;
  opacity: 0.3;
}

/* Glowing accent elements */
.glow-purple {
  box-shadow: 0 0 18px var(--purple-glow);
}

.glow-gold {
  box-shadow: 0 0 18px var(--gold-glow);
}

/* Responsive tweaks */
@media (max-width: 640px) {
  .section { padding: 4.25rem 0; }
  .hero { min-height: 74vh; padding-bottom: 3.5rem; }
  h2 { font-size: 1.75rem; }
  .hero-name { font-size: 2.85rem; }
  .hero-name-zh { font-size: 1.7rem; }
}

/* Performance: reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
  .parallax { transform: none !important; }
}
/* ============================================
   Booking Section
   ============================================ */
.booking-section {
  background: linear-gradient(135deg, var(--bg) 0%, var(--bg-alt) 100%);
}

.booking-intro {
  text-align: center;
  max-width: 48ch;
  margin: 0 auto 2.5rem;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.booking-iframe {
  background: var(--bg-card);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  min-height: 600px;
}

.booking-iframe iframe {
  display: block;
}

/* ============================================
   Scroll Animations - Bounce In Effect
   ============================================ */
@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: translateY(60px) scale(0.92);
  }
  60% {
    opacity: 1;
    transform: translateY(-8px) scale(1.02);
  }
  80% {
    transform: translateY(4px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fadeSlideUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes textGlow {
  0%, 100% {
    text-shadow: 0 0 20px var(--purple-glow);
  }
  50% {
    text-shadow: 0 0 40px var(--purple-glow), 0 0 60px var(--gold-glow);
  }
}

/* Scroll-triggered reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Bounce in animation for text elements */
.bounce-in {
  animation: bounceIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Staggered children */
.stagger-children > * {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeSlideUp 0.6s ease forwards;
}

.stagger-children > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.4s; }
.stagger-children > *:nth-child(5) { animation-delay: 0.5s; }
.stagger-children > *:nth-child(6) { animation-delay: 0.6s; }

/* Hero CTA wrapper */
.hero-cta-wrapper {
  margin-top: 1.75rem;
}

/* Accent button */
.btn-accent {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--bg);
  font-weight: 700;
  padding: 0.85rem 2rem;
  border-radius: 10px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-accent:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px var(--gold-glow);
}

/* Hero visual full width */
.hero-visual-full {
  width: 100%;
  max-width: 100%;
  margin-top: 2rem;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .booking-iframe {
    min-height: 500px;
  }
  .booking-iframe iframe {
    height: 500px;
  }
}

/* ============================================
   PROFESSIONAL INNOVATION UPGRADE
   Powerful Hero, Case Studies, Social Proof,
   Insights/Blog, Advanced Scroll System
   Refined Earth-Tech Palette + Premium Motion
   ============================================ */

/* Refined Palette Additions (Earth + Tech Luxury) */
:root {
  --bronze: #B38A5F;
  --bronze-light: #D4AF7A;
  --bronze-dark: #8C6642;
  --bronze-glow: rgba(179, 138, 95, 0.32);

  --sage: #3F5A4C;
  --sage-light: #5C7A68;
  --sage-glow: rgba(63, 90, 76, 0.25);

  --stone: #C9BDA8;
  --stone-dark: #8F8370;

  --impact: #E8D5A3; /* warm highlight for counters */
}

/* Global Scroll Progress Bar (Innovative, Subtle) */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2.5px;
  background: linear-gradient(to right, var(--gold), var(--bronze), var(--purple-light));
  z-index: 200;
  transition: width 80ms linear;
  border-radius: 0 2px 2px 0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

/* Hero — Powerful Tagline & Impact System */
.hero {
  min-height: 92vh;
  padding: 3rem 0 6rem;
}

.hero-name {
  font-size: 4.1rem;
  letter-spacing: -0.055em;
  margin-bottom: 0.15rem;
}

.hero-tagline {
  font-size: 1.48rem;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.035em;
  background: linear-gradient(92deg, var(--text) 0%, #E2E8F0 45%, var(--stone) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.55rem;
}

.hero-tagline-zh {
  font-size: 1.02rem;
  color: var(--gold);
  font-weight: 500;
  letter-spacing: 0.5px;
  margin-bottom: 1.35rem;
  opacity: 0.92;
}

.hero-description {
  font-size: 1.08rem;
  max-width: 58ch;
  margin-bottom: 2.1rem;
}

/* Hero Impact Video — Neo-Brutalist Style */
.hero-video-container {
  margin-top: 1.2rem;
  border: 3px solid #000;
  box-shadow: 6px 6px 0 #000;
  border-radius: 4px;
  overflow: hidden;
  background: #000;
  cursor: pointer;
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.hero-video-container:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 #000;
}

.hero-video-container:active {
  transform: translate(2px, 2px);
  box-shadow: 4px 4px 0 #000;
}

.hero-video {
  display: block;
  width: 100%;
  height: auto;
  max-height: 240px;
  object-fit: cover;
  border-radius: 2px;
}

/* Jelly animation on scroll */
.hero-video-container.jelly {
  animation: jellyBounce 0.5s ease;
}

@keyframes jellyBounce {
  0%   { transform: scale(1, 1) translateY(0); }
  20%  { transform: scale(1.04, 0.97) translateY(-4px); }
  40%  { transform: scale(0.97, 1.04) translateY(2px); }
  60%  { transform: scale(1.02, 0.99) translateY(-1px); }
  80%  { transform: scale(0.99, 1.01) translateY(0.5px); }
  100% { transform: scale(1, 1) translateY(0); }
}

@media (max-width: 980px) {
  .hero-video {
    max-height: 200px;
  }
}

@media (max-width: 560px) {
  .hero-video-container {
    border-width: 2.5px;
    box-shadow: 4px 4px 0 #000;
  }
  .hero-video {
    max-height: 180px;
  }
}

/* Impact Stats Bar (Hero) */
.hero-impact {
  display: flex;
  align-items: center;
  gap: 2.65rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--border-subtle);
  margin-top: 0.6rem;
}

.impact-stat {
  display: flex;
  flex-direction: column;
}

.impact-number {
  font-size: 1.72rem;
  font-weight: 700;
  line-height: 1;
  color: var(--impact);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}

.impact-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: var(--text-light);
  margin-top: 0.22rem;
  font-weight: 500;
}

@media (max-width: 980px) {
  .hero-impact {
    gap: 1.65rem;
    flex-wrap: wrap;
  }
  .hero-name { font-size: 3.35rem; }
  .hero-tagline { font-size: 1.28rem; }
}

/* Case Studies Section */
.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.45rem;
}

.case-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.85rem 1.65rem 1.7rem;
  transition: all var(--transition-slow);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.case-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(to bottom, var(--gold), var(--bronze));
  opacity: 0.85;
  transition: width 0.3s ease;
}

.case-card:hover::before {
  width: 7px;
}

.case-card:hover {
  transform: translateY(-9px);
  border-color: var(--bronze);
  box-shadow: 0 25px 55px -18px rgba(0,0,0,0.55);
}

.case-header {
  margin-bottom: 1.1rem;
}

.case-client {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--bronze-light);
  font-weight: 600;
}

.case-title {
  font-size: 1.15rem;
  line-height: 1.25;
  color: var(--text);
  margin: 0.3rem 0 0.55rem;
  font-weight: 600;
}

.case-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 1.15rem 0 1.35rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.metric {
  text-align: center;
}

.metric-value {
  font-size: 1.42rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  letter-spacing: -0.02em;
}

.metric-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-light);
  margin-top: 0.28rem;
  line-height: 1.1;
}

.case-body {
  flex: 1;
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.case-body strong {
  color: var(--stone);
  font-weight: 600;
}

.case-footer {
  margin-top: 1.15rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.78rem;
  color: var(--text-light);
}

/* Social Proof — Elegant Partner Logos */
.social-proof {
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
  padding: 3.25rem 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.partner-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2.35rem 3.1rem;
  margin-top: 1.6rem;
}

.partner-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-light);
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  transition: all var(--transition-fast);
  opacity: 0.75;
}

.partner-logo:hover {
  opacity: 1;
  color: var(--gold);
  transform: translateY(-1px);
}

.partner-logo svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 1.6;
  flex-shrink: 0;
}

.partner-label {
  white-space: nowrap;
}

@media (max-width: 640px) {
  .partner-logos { gap: 1.4rem 1.85rem; }
  .partner-logo { font-size: 0.76rem; }
}

/* Insights / Blog Section */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.insight-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.45rem 1.5rem 1.35rem;
  transition: all 0.32s cubic-bezier(0.23, 1, 0.32, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
  cursor: pointer;
}

.insight-card:hover {
  transform: translateY(-7px);
  border-color: var(--purple-light);
  box-shadow: var(--shadow-lg);
}

.insight-meta {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}

.insight-category {
  font-size: 0.65rem;
  padding: 1px 9px;
  background: rgba(107, 76, 154, 0.12);
  color: var(--purple-lighter);
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.insight-date,
.insight-read {
  font-size: 0.73rem;
  color: var(--text-light);
}

.insight-card h3 {
  font-size: 1.02rem;
  line-height: 1.28;
  margin: 0 0 0.55rem;
  color: var(--text);
  transition: color var(--transition);
}

.insight-card:hover h3 {
  color: var(--gold);
}

.insight-excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1rem;
}

.insight-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--bronze-light);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s ease;
}

.insight-card:hover .insight-link {
  gap: 7px;
}

/* Elegant Modal for Insights */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 12, 0.88);
  backdrop-filter: blur(12px);
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  transition: opacity 0.22s ease;
}

.modal-backdrop.visible {
  display: flex;
  opacity: 1;
}

.modal {
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  width: 100%;
  max-width: 720px;
  max-height: 92vh;
  overflow: hidden;
  box-shadow: 0 35px 90px -20px rgba(0,0,0,0.7);
  transform: translateY(12px) scale(0.985);
  transition: transform 0.32s cubic-bezier(0.23, 1, 0.3, 1), opacity 0.22s ease;
  opacity: 0;
}

.modal.visible {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.modal-header {
  padding: 1.35rem 1.85rem 1.05rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.modal-title {
  font-size: 1.32rem;
  line-height: 1.25;
  margin: 0;
  color: var(--text);
  padding-right: 1.5rem;
}

.modal-close {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--border-light);
  background: transparent;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: var(--bg-card);
  color: var(--text);
  border-color: var(--gold);
  transform: rotate(90deg);
}

.modal-body {
  padding: 1.75rem 1.9rem 2rem;
  overflow-y: auto;
  font-size: 1.01rem;
  line-height: 1.78;
  color: var(--text-muted);
  max-height: calc(92vh - 180px);
}

.modal-body h4 {
  color: var(--stone);
  font-size: 1.05rem;
  margin: 1.35rem 0 0.45rem;
  letter-spacing: -0.01em;
}

.modal-body p + p {
  margin-top: 0.85rem;
}

.modal-body ul {
  padding-left: 1.15rem;
  margin: 0.6rem 0;
}

.modal-body li {
  margin-bottom: 0.3rem;
}

.modal-footer {
  padding: 0.95rem 1.85rem;
  background: var(--bg-card);
  border-top: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Advanced Scroll Animations & Reveals */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.75s cubic-bezier(0.23, 1, 0.3, 1),
              transform 0.75s cubic-bezier(0.23, 1, 0.3, 1);
  will-change: transform, opacity;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.96) translateY(18px);
  transition: opacity 0.65s cubic-bezier(0.23, 1, 0.32, 1),
              transform 0.65s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.reveal-stagger {
  opacity: 0;
  transform: translateY(26px);
}

.reveal-stagger.visible {
  animation: staggerFadeUp 0.7s cubic-bezier(0.23, 1, 0.3, 1) forwards;
}

@keyframes staggerFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Stagger delays via inline style or nth */
.reveal-stagger:nth-child(1) { animation-delay: 40ms; }
.reveal-stagger:nth-child(2) { animation-delay: 120ms; }
.reveal-stagger:nth-child(3) { animation-delay: 200ms; }
.reveal-stagger:nth-child(4) { animation-delay: 280ms; }

/* Number Counter Pop */
.counter {
  transition: color 0.2s ease;
}

.counter.done {
  color: var(--gold);
}

/* Enhanced Tilt / Magnetic for New Cards */
.case-card[data-tilt],
.insight-card[data-tilt] {
  transform-style: preserve-3d;
}

/* Scroll-triggered subtle section glow */
.section-glow {
  position: relative;
}

.section-glow::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 20%, rgba(179,138,95,0.06) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.section-glow.visible::after {
  opacity: 1;
}

/* Micro-interaction polish */
.interest-card, .case-card, .contact-card {
  transition: transform 0.38s cubic-bezier(0.23, 1, 0.32, 1), 
              box-shadow 0.38s ease, 
              border-color 0.2s ease;
}

/* Focus & Reduced Motion Safeguards */
@media (prefers-reduced-motion: reduce) {
  .scroll-progress,
  .reveal, .reveal-scale, .reveal-stagger,
  .case-card, .insight-card, .partner-logo {
    transition: none !important;
    animation: none !important;
    transform: none !important;
  }
  .hero-impact .impact-number {
    transition: none;
  }
}

/* Responsive polish for new components */
@media (max-width: 860px) {
  .case-grid {
    grid-template-columns: 1fr;
  }
  .case-metrics {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.55rem;
  }
  .modal {
    max-width: 100%;
    border-radius: 16px;
  }
}

@media (max-width: 560px) {
  .hero-impact {
    gap: 1.15rem;
  }
  .impact-number {
    font-size: 1.45rem;
  }
  .modal-body {
    padding: 1.35rem 1.4rem 1.6rem;
    font-size: 0.98rem;
  }
}

.ai-chatbot{position:fixed;bottom:1.5rem;right:1.5rem;z-index:999}.chat-toggle{display:flex;align-items:center;gap:.5rem;padding:.75rem 1rem;background:var(--purple);border:none;border-radius:999px;color:white;font-size:.875rem;font-weight:600;cursor:pointer;box-shadow:0 0 20px var(--purple-glow);transition:all .2s}.chat-toggle:hover{transform:translateY(-2px);box-shadow:0 0 40px var(--purple-glow)}.chat-window{position:absolute;bottom:calc(100% + 1rem);right:0;width:360px;max-height:480px;background:var(--bg-card);border:2px solid var(--border);border-radius:16px;overflow:hidden;display:none;flex-direction:column;box-shadow:0 25px 60px -15px rgba(0,0,0,0.5)}.chat-window.open{display:flex;animation:chatSlide .3s}@keyframes chatSlide{from{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}.chat-header{display:flex;align-items:center;justify-content:space-between;padding:1rem;background:var(--bg-alt);border-bottom:1px solid var(--border)}.chat-header-info{display:flex;align-items:center;gap:.75rem}.chat-avatar{width:36px;height:36px;background:linear-gradient(135deg,var(--purple),var(--tech));border-radius:50%;display:flex;align-items:center;justify-content:center;color:white}.chat-title{font-weight:600;font-size:.9rem}.chat-status{display:flex;align-items:center;gap:.375rem;font-size:.75rem;color:var(--tech)}.status-dot{width:8px;height:8px;background:var(--tech);border-radius:50%}.chat-close{background:none;border:none;color:var(--text-muted);cursor:pointer;padding:.5rem}.chat-messages{flex:1;overflow-y:auto;padding:1rem;display:flex;flex-direction:column;gap:1rem}.chat-message{display:flex;flex-direction:column;gap:.25rem}.bot-message{align-self:flex-start}.user-message{align-self:flex-end}.message-content{background:var(--bg-elevated);padding:.75rem 1rem;border-radius:16px;font-size:.875rem;line-height:1.5}.user-message .message-content{background:var(--purple);color:white}.message-time{font-size:.7rem;color:var(--text-light);padding:0 .5rem}.chat-quick-actions{display:flex;gap:.5rem;padding:.75rem 1rem;border-top:1px solid var(--border);overflow-x:auto}.quick-action{padding:.5rem .875rem;background:transparent;border:1px solid var(--border);border-radius:999px;font-size:.75rem;color:var(--text-muted);cursor:pointer;white-space:nowrap;transition:all .2s}.quick-action:hover{background:var(--purple);border-color:var(--purple);color:white}.chat-input-container{display:flex;gap:.5rem;padding:1rem;border-top:1px solid var(--border)}.chat-input{flex:1;padding:.75rem 1rem;background:var(--bg);border:1px solid var(--border);border-radius:12px;color:var(--text);font-size:.875rem;outline:none}.chat-send{padding:.75rem;background:var(--purple);border:none;border-radius:12px;color:white;cursor:pointer;transition:all .2s}
