/* ============================================
   Kpo Leung | 梁君寶 - Personal Website v3.3
   Light Theme • Warm Cream + Soft Yellow
   Purple + Gold Accents • Neo-Brutalism
   ============================================ */

/* ===== CSS Variables - LIGHT THEME ===== */
:root {
  /* Backgrounds - Warm Cream/Yellow */
  --bg: #FFFEF0;
  --bg-alt: #FFF8E1;
  --bg-card: #FFFFFF;
  --bg-elevated: #FFF8E1;
  --bg-glass: rgba(255, 254, 240, 0.92);

  /* Text - Warm Dark */
  --text: #2D2A26;
  --text-muted: #5C5650;
  --text-light: #8A847A;

  /* Primary: Royal Purple - KEPT SAME */
  --purple: #6B2D8B;
  --purple-light: #8B4CAF;
  --purple-lighter: #B57EDC;
  --purple-dark: #4A1E62;
  --purple-glow: rgba(107, 45, 139, 0.3);
  --purple-glow-strong: rgba(107, 45, 139, 0.5);

  /* Accent: Gold - KEPT SAME */
  --gold: #D4AF37;
  --gold-light: #E8C967;
  --gold-dark: #B8942F;
  --gold-glow: rgba(212, 175, 55, 0.25);

  /* Tech accent for JS compatibility */
  --tech: #6B4C9A;
  --tech-light: #8B6BB8;
  --tech-glow: rgba(107, 76, 154, 0.25);

  /* Borders & surfaces - Soft Beige */
  --border: #E0D9C8;
  --border-light: #D0C9B8;
  --border-subtle: rgba(45, 42, 38, 0.1);

  /* Neo-Brutalism Shadows - Soft Taupe (no blur) */
  --shadow-sm: 4px 4px 0px #C9BFA8;
  --shadow: 6px 6px 0px #C9BFA8;
  --shadow-lg: 8px 8px 0px #C9BFA8;
  --shadow-glow: 0 0 0 3px var(--purple), 6px 6px 0px #C9BFA8;

  /* Glow Effects */
  --ai-glow-purple: 0 0 20px var(--purple-glow);
  --ai-glow-gold: 0 0 20px var(--gold-glow);

  /* Radii & motion */
  --radius: 4px;
  --radius-sm: 2px;
  --radius-full: 999px;
  --transition: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 300ms cubic-bezier(0.23, 1, 0.32, 1);
  --transition-fast: 80ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Hide body until loader finishes */
body.loading {
  overflow: hidden;
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
}

h1 { font-size: 3rem; font-weight: 800; }
h2 { font-size: 2rem; font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }

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

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

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

img {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== Page Loader ===== */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-content {
  text-align: center;
  z-index: 2;
}

.loader-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  margin-bottom: 2rem;
}

.loader-logo-inner {
  display: flex;
}

.loader-logo-k {
  font-size: 3rem;
  font-weight: 900;
  color: var(--purple);
  animation: loaderPulse 0.8s ease-in-out infinite;
}

.loader-logo-p {
  font-size: 3rem;
  font-weight: 900;
  color: var(--gold);
  animation: loaderPulse 0.8s ease-in-out infinite 0.1s;
}

@keyframes loaderPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(0.95); }
}

.loader-progress {
  width: 200px;
  height: 6px;
  background: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 0 auto 1rem;
  border: 2px solid var(--border);
}

.loader-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--purple), var(--gold));
  border-radius: var(--radius);
  transition: width 0.1s linear;
}

.loader-percent {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.05em;
}

/* ===== Scroll Progress ===== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0%;
  background: linear-gradient(90deg, var(--purple), var(--gold));
  z-index: 1001;
  transition: width 0.1s linear;
}

/* ===== Navigation ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.25rem 0;
  background: var(--bg);
  border-bottom: 3px solid var(--border);
  transition: background var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -0.03em;
}

.logo-zh {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  position: relative;
  padding: 0.25rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--gold);
  transition: width var(--transition);
}

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

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

/* Mobile Navigation */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 2px solid var(--border);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: var(--transition);
}

.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(5px, -5px);
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--bg-card);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    gap: 1.5rem;
    transition: right var(--transition-slow);
    box-shadow: var(--shadow-lg);
    border-left: 3px solid var(--border);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    font-size: 1rem;
  }
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 7rem 0 4rem;
  overflow: hidden;
}

/* Light Theme Background with subtle pattern */
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background: 
    linear-gradient(135deg, var(--bg) 0%, var(--bg-alt) 100%);
}

.hero-pattern {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0.04;
  background-image: 
    linear-gradient(var(--purple) 2px, transparent 2px),
    linear-gradient(90deg, var(--purple) 2px, transparent 2px);
  background-size: 60px 60px;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  max-width: 520px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--bg-card);
  border: 3px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--purple);
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.hero-name {
  font-size: 3.5rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
  color: var(--text);
}

.hero-tagline {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

.hero-tagline-zh {
  font-size: 1.1rem;
  color: var(--gold-dark);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.hero-title {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero-company {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.hero-description {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

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

/* Buttons - Neo-Brutalism Style */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all var(--transition);
  cursor: pointer;
  border: 3px solid #2D2A26;
  text-decoration: none;
}

.btn-primary {
  background: var(--purple);
  color: white;
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  background: var(--purple-light);
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0px #C9BFA8;
}

.btn-primary:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0px #C9BFA8;
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 3px solid var(--border);
  box-shadow: 4px 4px 0px var(--border);
}

.btn-secondary:hover {
  border-color: var(--gold);
  background: var(--gold);
  color: #2D2A26;
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0px #C9BFA8;
}

.btn-secondary:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0px #C9BFA8;
}

/* Hero Visual */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  border: 3px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
}

.hero-visual-badge {
  position: absolute;
  top: -12px;
  right: -12px;
  background: var(--purple);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  border: 2px solid #2D2A26;
  box-shadow: 3px 3px 0px #C9BFA8;
}

.hero-visual-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-visual-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--bg);
  border-radius: var(--radius);
  border: 2px solid var(--border);
}

.hero-visual-icon {
  width: 36px;
  height: 36px;
  background: var(--purple);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.hero-visual-text {
  font-size: 0.875rem;
  font-weight: 600;
}

.hero-glow {
  position: absolute;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--purple-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    display: none;
  }
}

/* ===== Sections ===== */
.section {
  padding: 5rem 0;
  position: relative;
}

.section-alt {
  background: var(--bg-alt);
}

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

.section-subtitle {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold-dark);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
}

.text-center {
  text-align: center;
}

/* ===== About Section ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-text p {
  margin-bottom: 1.25rem;
  font-size: 1rem;
  line-height: 1.75;
}

.about-visual {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 3px solid var(--border);
  box-shadow: var(--shadow);
}

.about-visual img {
  width: 100%;
  display: block;
}

.about-meta {
  margin-top: 1.5rem;
  display: grid;
  gap: 1rem;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
}

.meta-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-light);
}

.meta-value {
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 500;
}

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

/* ===== Tech Tags ===== */
.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.tech-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--transition);
  cursor: default;
  box-shadow: 3px 3px 0px var(--border);
}

.tech-tag-dot {
  width: 8px;
  height: 8px;
  background: var(--purple);
  border-radius: 50%;
}

.tech-tag:hover {
  background: var(--purple);
  border-color: var(--purple);
  color: white;
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0px #C9BFA8;
}

.tech-tag:hover .tech-tag-dot {
  background: var(--gold);
}

.tech-description {
  max-width: 58ch;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ===== Case Studies ===== */
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.case-card {
  background: var(--bg-card);
  border: 3px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
  box-shadow: var(--shadow);
}

.case-card:hover {
  border-color: var(--purple);
  transform: translate(-4px, -4px);
  box-shadow: 10px 10px 0px var(--border);
}

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

.case-client {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-dark);
  margin-bottom: 0.5rem;
}

.case-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
}

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

.metric {
  text-align: center;
}

.metric-value {
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--purple);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.metric-suffix {
  font-size: 0.875rem;
  color: var(--text-muted);
}

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

.case-body p {
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 0.75rem;
  max-width: none;
}

.case-body p:last-child {
  margin-bottom: 0;
}

.case-footer {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 2px solid var(--border);
  font-size: 0.75rem;
  color: var(--text-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (max-width: 1024px) {
  .case-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Social Proof ===== */
.social-proof {
  padding: 4rem 0;
  background: var(--bg-alt);
  border-top: 3px solid var(--border);
  border-bottom: 3px solid var(--border);
}

.partner-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
}

.partner-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-light);
  transition: color var(--transition);
  cursor: default;
}

.partner-logo:hover {
  color: var(--gold-dark);
}

.partner-logo svg {
  width: 36px;
  height: 36px;
  stroke: currentColor;
  stroke-width: 1.5;
}

.partner-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ===== Insights ===== */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.insights-cta {
  text-align: center;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .insights-grid {
    grid-template-columns: 1fr;
  }
}

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

.interest-card {
  background: var(--bg-card);
  border: 3px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  transition: all var(--transition);
  box-shadow: var(--shadow);
}

.interest-card:hover {
  border-color: var(--gold);
  transform: translate(-4px, -4px);
  box-shadow: 10px 10px 0px var(--border);
}

.interest-image {
  height: 160px;
  overflow: hidden;
}

.interest-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.interest-card-inner {
  padding: 1.5rem;
}

.interest-icon {
  width: 44px;
  height: 44px;
  background: var(--bg);
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--gold);
}

.interest-card h3 {
  margin-bottom: 0.5rem;
  color: var(--text);
}

.interest-card p {
  font-size: 0.875rem;
  line-height: 1.65;
}

/* ===== Booking ===== */
.booking-section {
  background: var(--bg-alt);
  border-top: 3px solid var(--border);
  border-bottom: 3px solid var(--border);
}

.booking-intro {
  text-align: center;
  max-width: 42ch;
  margin: 0 auto 2rem;
  color: var(--text-muted);
}

.tidycal-embed {
  max-width: 700px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  border: 3px solid var(--border);
  box-shadow: var(--shadow);
}

/* ===== Contact ===== */
.contact-container {
  max-width: 600px;
  margin: 0 auto;
}

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

.contact-methods {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.contact-card {
  background: var(--bg-card);
  border: 3px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  transition: all var(--transition);
  box-shadow: var(--shadow);
}

.contact-card:hover {
  border-color: var(--purple);
  transform: translate(-3px, -3px);
  box-shadow: 8px 8px 0px var(--border);
}

.contact-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.contact-value {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

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

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

.contact-location {
  font-size: 0.75rem;
  color: var(--text-light);
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 2px 2px 0px var(--border);
}

.copy-btn:hover {
  border-color: var(--gold);
  color: var(--gold-dark);
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0px #C9BFA8;
}

.contact-note {
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-light);
}

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

/* ===== Footer ===== */
.footer {
  padding: 2rem 0;
  background: var(--bg-alt);
  border-top: 3px solid var(--border);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-tagline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-ai-indicator {
  width: 10px;
  height: 10px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
  border: 2px solid #C9BFA8;
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}

/* ===== AI Chatbot Widget ===== */
.ai-chatbot {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 999;
}

.chat-toggle {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.25rem;
  background: var(--purple);
  border: 3px solid #2D2A26;
  border-radius: var(--radius);
  color: white;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: all var(--transition);
}

.chat-toggle:hover {
  transform: translate(-3px, -3px);
  box-shadow: 8px 8px 0px #C9BFA8;
}

.chat-toggle-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-toggle-pulse {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 16px;
  height: 16px;
  background: var(--gold);
  border-radius: 50%;
  animation: chatPulse 1.5s ease-out infinite;
  border: 2px solid #2D2A26;
}

@keyframes chatPulse {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(2); opacity: 0; }
}

.chat-toggle-label {
  position: relative;
  z-index: 1;
}

.chat-window {
  position: absolute;
  bottom: calc(100% + 1rem);
  right: 0;
  width: 360px;
  max-height: 480px;
  background: var(--bg-card);
  border: 3px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: none;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}

.chat-window.open {
  display: flex;
  animation: chatSlideIn 0.25s ease-out;
}

@keyframes chatSlideIn {
  from { opacity: 0; transform: translateY(15px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background: var(--bg-alt);
  border-bottom: 3px solid var(--border);
}

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

.chat-avatar {
  width: 40px;
  height: 40px;
  background: var(--purple);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  border: 2px solid #2D2A26;
}

.chat-header-text {
  display: flex;
  flex-direction: column;
}

.chat-title {
  font-weight: 700;
  font-size: 0.9rem;
}

.chat-status {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  color: var(--gold-dark);
  font-weight: 600;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse 1.5s ease-in-out infinite;
}

.chat-close {
  background: none;
  border: 2px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius);
  transition: all var(--transition);
}

.chat-close:hover {
  border-color: var(--purple);
  color: var(--purple);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.chat-message {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.bot-message {
  align-self: flex-start;
}

.user-message {
  align-self: flex-end;
}

.message-content {
  background: var(--bg-elevated);
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  line-height: 1.5;
  border: 2px solid var(--border);
}

.message-content p {
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  max-width: none;
}

.message-content a {
  color: var(--gold-dark);
}

.message-content p:last-child {
  margin-bottom: 0;
}

.user-message .message-content {
  background: var(--purple);
  border-color: var(--purple);
  color: white;
}

.message-time {
  font-size: 0.65rem;
  color: var(--text-light);
  padding: 0 0.5rem;
}

.chat-quick-actions {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-top: 2px solid var(--border);
  overflow-x: auto;
}

.quick-action {
  padding: 0.5rem 1rem;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition);
  box-shadow: 2px 2px 0px var(--border);
}

.quick-action:hover {
  background: var(--purple);
  border-color: var(--purple);
  color: white;
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0px #C9BFA8;
}

.chat-input-container {
  display: flex;
  gap: 0.5rem;
  padding: 1rem;
  border-top: 2px solid var(--border);
}

.chat-input {
  flex: 1;
  padding: 0.75rem 1rem;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.875rem;
  outline: none;
  transition: border-color var(--transition);
}

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

.chat-input::placeholder {
  color: var(--text-light);
}

.chat-send {
  padding: 0.75rem;
  background: var(--purple);
  border: 2px solid #2D2A26;
  border-radius: var(--radius);
  color: white;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 2px 2px 0px #C9BFA8;
}

.chat-send:hover {
  background: var(--purple-light);
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0px #C9BFA8;
}

@media (max-width: 480px) {
  .chat-window {
    width: calc(100vw - 3rem);
    right: -0.75rem;
  }
}

/* ===== Scroll Reveal Animations ===== */
.reveal-item,
.reveal-section,
.reveal-card {
  opacity: 0;
  transform: translateY(25px);
}

.reveal-item.revealed,
.reveal-section.revealed,
.reveal-card.revealed {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal-card {
  transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

/* Stagger delays */
.reveal-item:nth-child(1) { transition-delay: 0ms; }
.reveal-item:nth-child(2) { transition-delay: 80ms; }
.reveal-item:nth-child(3) { transition-delay: 160ms; }
.reveal-item:nth-child(4) { transition-delay: 240ms; }
.reveal-item:nth-child(5) { transition-delay: 320ms; }
.reveal-item:nth-child(6) { transition-delay: 400ms; }
.reveal-item:nth-child(7) { transition-delay: 480ms; }

/* ===== Utility Classes ===== */
.text-lg {
  font-size: 1.125rem;
}

.mt-3 {
  margin-top: 0.75rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

/* ===== Focus States ===== */
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* ===== Selection ===== */
::selection {
  background: var(--purple);
  color: white;
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: var(--radius);
  border: 2px solid var(--bg);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--border-light);
}

/* ============================================
   🎀 JELLY EFFECTS - v3.3 Light Theme
   ============================================ */

/* ===== 1. Jelly Wobble - Hover wobble on cards ===== */
.jellyWobble {
  transition: transform 0.25s cubic-bezier(0.68, -0.55, 0.265, 1.55),
              box-shadow 0.2s ease,
              border-color 0.2s ease;
}

.jellyWobble:hover {
  animation: jellyWobbleAnim 0.5s ease-in-out;
  transform: translate(-4px, -4px);
}

@keyframes jellyWobbleAnim {
  0% { transform: translate(-4px, -4px) rotate(0deg); }
  15% { transform: translate(-4px, -4px) rotate(-2deg); }
  30% { transform: translate(-4px, -4px) rotate(2deg); }
  45% { transform: translate(-4px, -4px) rotate(-1.5deg); }
  60% { transform: translate(-4px, -4px) rotate(1.5deg); }
  75% { transform: translate(-4px, -4px) rotate(-0.5deg); }
  100% { transform: translate(-4px, -4px) rotate(0deg); }
}

/* Case cards with wobble */
.case-card.jellyWobble:hover {
  border-color: var(--purple);
  box-shadow: 10px 10px 0px var(--border);
}

/* Interest cards with wobble */
.interest-card.jellyWobble:hover {
  border-color: var(--gold);
  box-shadow: 10px 10px 0px var(--border);
}

/* Contact cards with wobble */
.contact-card.jellyWobble:hover {
  border-color: var(--purple);
  box-shadow: 8px 8px 0px var(--border);
}

/* Tech tags with wobble */
.tech-tag.jellyWobble:hover {
  animation: tagWobble 0.4s ease-in-out;
}

@keyframes tagWobble {
  0% { transform: translate(-2px, -2px) scale(1); }
  25% { transform: translate(-2px, -2px) scale(1.05) rotate(-3deg); }
  50% { transform: translate(-2px, -2px) scale(1.08) rotate(3deg); }
  75% { transform: translate(-2px, -2px) scale(1.05) rotate(-1deg); }
  100% { transform: translate(-2px, -2px) scale(1); }
}

/* ===== 2. Jelly Squish - Click/tap squish feedback ===== */
.jellySquish {
  transition: transform 0.1s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  cursor: pointer;
}

.jellySquish:active {
  animation: jellySquishAnim 0.3s ease-out;
}

@keyframes jellySquishAnim {
  0% { transform: scale(1, 1); }
  30% { transform: scale(0.94, 1.06); }
  50% { transform: scale(1.06, 0.94); }
  70% { transform: scale(0.98, 1.02); }
  100% { transform: scale(1, 1); }
}

/* Buttons with squish */
.btn.jellySquish {
  transform-origin: center center;
}

.btn.jellySquish:hover {
  transform: translate(-2px, -2px);
}

.btn.jellySquish:active {
  animation: buttonSquish 0.25s ease-out;
}

@keyframes buttonSquish {
  0% { transform: translate(-2px, -2px); }
  30% { transform: translate(1px, 1px); }
  50% { transform: translate(2px, 2px); }
  70% { transform: translate(1px, 1px); }
  100% { transform: translate(0, 0); }
}

/* Nav links with squish */
.nav-links a.jellySquish:active {
  animation: navSquish 0.25s ease-out;
}

@keyframes navSquish {
  0% { transform: scale(1); }
  30% { transform: scale(0.92, 1.08); }
  50% { transform: scale(1.08, 0.92); }
  100% { transform: scale(1); }
}

/* Quick actions with squish */
.quick-action.jellySquish:active {
  animation: quickActionSquish 0.25s ease-out;
}

@keyframes quickActionSquish {
  0% { transform: translate(-1px, -1px); }
  30% { transform: translate(2px, 2px); }
  50% { transform: translate(3px, 3px); }
  100% { transform: translate(0, 0); }
}

/* ===== 3. Jelly Pulse - Subtle glow pulse on accent elements ===== */
.jellyPulse {
  position: relative;
}

.jellyPulse::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  background: inherit;
  border-radius: inherit;
  transform: translate(-50%, -50%);
  z-index: -1;
  opacity: 0;
  animation: jellyPulseAnim 2s ease-in-out infinite;
}

.jellyPulse:hover::before {
  opacity: 1;
}

@keyframes jellyPulseAnim {
  0%, 100% { 
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
    box-shadow: 0 0 0 0 currentColor;
  }
  50% { 
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0.25;
    box-shadow: 0 0 15px 3px currentColor;
  }
}

/* Purple pulse variant */
.jellyPulse-purple::before {
  background: var(--purple-glow);
}

/* Gold pulse variant */
.jellyPulse-gold::before {
  background: var(--gold-glow);
}

/* Hero badge pulse */
.hero-badge.jellyPulse {
  animation: badgePulse 2.5s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { 
    box-shadow: 3px 3px 0px var(--border);
    transform: scale(1);
  }
  50% { 
    box-shadow: 0 0 15px var(--purple-glow), 3px 3px 0px var(--border);
    transform: scale(1.03);
  }
}

/* Footer AI indicator pulse */
.footer-ai-indicator.jellyPulse {
  animation: indicatorPulse 2s ease-in-out infinite;
}

@keyframes indicatorPulse {
  0%, 100% { 
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.6);
    transform: scale(1);
  }
  50% { 
    box-shadow: 0 0 8px 2px rgba(212, 175, 55, 0.4);
    transform: scale(1.15);
  }
}

/* Chat toggle pulse */
.chat-toggle.jellyPulse {
  animation: chatTogglePulse 2.5s ease-in-out infinite;
}

@keyframes chatTogglePulse {
  0%, 100% { 
    box-shadow: var(--shadow);
    transform: translate(0, 0);
  }
  50% { 
    box-shadow: 0 0 20px var(--purple-glow), var(--shadow);
    transform: translate(-2px, -2px);
  }
}

/* Status dot pulse */
.status-dot.jellyPulse {
  animation: statusPulse 1.5s ease-in-out infinite;
}

@keyframes statusPulse {
  0%, 100% { 
    opacity: 1;
    transform: scale(1);
  }
  50% { 
    opacity: 0.7;
    transform: scale(1.25);
  }
}

/* Chat avatar pulse */
.chat-avatar.jellyPulse {
  animation: avatarPulse 2s ease-in-out infinite;
}

@keyframes avatarPulse {
  0%, 100% { 
    box-shadow: 2px 2px 0px #C9BFA8;
    transform: scale(1);
  }
  50% { 
    box-shadow: 0 0 12px var(--purple-glow), 2px 2px 0px #C9BFA8;
    transform: scale(1.05);
  }
}

/* ============================================
   🎯 v3.3 ACCESSIBILITY ENHANCEMENTS
   ============================================ */

/* ===== Reduced Motion Support ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .reveal-item,
  .reveal-section,
  .reveal-card {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  
  .jellyWobble:hover,
  .jellyPulse,
  .jellySquish:active {
    animation: none !important;
    transform: none !important;
  }
  
  .hero-badge-dot {
    animation: none !important;
  }
  
  .footer-ai-indicator,
  .chat-toggle-pulse,
  .status-dot,
  .hero-badge.jellyPulse {
    animation: none !important;
  }
  
  .hero-visual-card {
    transform: none !important;
  }
}

/* ===== Screen Reader Only Utility ===== */
.sr-only {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ===== Focus States Enhancement ===== */
*:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Nav links focus state */
.nav-links a:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

/* Buttons focus state */
.btn:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* Cards focus state */
.case-card:focus-visible,
.interest-card:focus-visible,
.contact-card:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
  border-color: var(--purple);
}

/* ===== Skip Link (for keyboard users) ===== */
.skip-link {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--purple);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.875rem;
  z-index: 10000;
  transition: top 0.2s ease;
  text-decoration: none;
}

.skip-link:focus {
  top: 10px;
}

/* ===== High Contrast Mode Support ===== */
@media (prefers-contrast: high) {
  :root {
    --border: #8A847A;
    --text: #1A1A1A;
    --text-muted: #3D3D3D;
    --bg: #FFFFFF;
    --bg-card: #F5F5F5;
  }
  
  .btn-primary {
    border-width: 4px;
  }
  
  .case-card,
  .interest-card,
  .contact-card {
    border-width: 4px;
  }
}

/* ===== Print Styles ===== */
@media print {
  .navbar,
  .ai-chatbot,
  .chat-window,
  .scroll-progress,
  .hero-visual-card,
  .hero-glow,
  .jellyWobble,
  .jellyPulse,
  .jellySquish,
  .hero-badge-dot,
  .footer-ai-indicator,
  .chat-toggle-pulse,
  .status-dot {
    display: none !important;
  }
  
  body {
    background: white;
    color: black;
  }
  
  .hero {
    min-height: auto;
    padding: 2rem 0;
  }
  
  .section {
    padding: 2rem 0;
  }
  
  a {
    color: black;
    text-decoration: underline;
  }
  
  .hero-description,
  .about-text p,
  .case-body p {
    color: #333;
  }
}

/* ===== Touch Device Optimization ===== */
@media (hover: none) and (pointer: coarse) {
  .hero-badge-dot {
    animation: none;
  }
  
  .hero-visual-card {
    transform: none !important;
  }
  
  /* Larger touch targets on mobile */
  .btn {
    min-height: 48px;
    min-width: 48px;
  }
  
  .nav-toggle {
    min-height: 48px;
    min-width: 48px;
  }
  
  .chat-toggle {
    min-height: 48px;
    min-width: 48px;
  }
  
  .tech-tag {
    min-height: 44px;
  }
}

/* ============================================
   🎨 v3.3 MOTION.JS ENHANCEMENTS
   Smooth spring animations via Motion.js
   ============================================ */

/* Cards with Motion.js enhanced hover */
[data-case-card] {
  will-change: transform;
  cursor: pointer;
}


/* Interest card images for zoom effect */
.interest-image img {
  will-change: transform;
}

/* Tech tags for scale effect */
.tech-tag {
  will-change: transform;
}

/* Contact cards for lift effect */
.contact-card {
  will-change: transform;
}
/* ===== Tablet (iPad) Fix ===== */
@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .about-visual {
    order: -1;
  }
}

