/* ===== CSS CUSTOM PROPERTIES - CLINICIQ SOLUTIONS THEME ===== */
:root {
  /* Committed Color Strategy - Uranian Blue carries the brand */
  --uranian-blue: #a9cef4;
  --outer-space: #36494e;
  --black: #000000;
  --air-superiority-blue: #7ea0b7;
  --paynes-gray: #597081;

  /* Primary Color Palette */
  --primary-navy: var(--outer-space);
  --primary-blue: var(--air-superiority-blue);
  --primary-blue-light: var(--uranian-blue);
  --primary-green: #2C4A3C;
  --accent-gold: #C4A661;

  /* Committed Accent - Uranian Blue for brand identity */
  --committed-blue: #a9cef4;
  --committed-blue-dark: #8bb8e0;
  --committed-blue-light: #c7dff8;

  /* Secondary Color Palette */
  --secondary-light-blue: var(--paynes-gray);
  --secondary-mint: rgba(169, 206, 244, 0.15);
  --accent-blue: var(--air-superiority-blue);

  /* Background Colors - Committed tinted base */
  --background-mint: rgba(169, 206, 244, 0.08);
  --background-white: #FAFBFD;
  --background-light: rgba(169, 206, 244, 0.04);
  --background-cream: #FAFBFD;

  /* Subtle Gradient Textures */
  --gradient-body: linear-gradient(135deg, #FEFEFE 0%, #f7f9fb 50%, #f0f4f8 100%);
  --gradient-section-light: linear-gradient(180deg, rgba(169, 206, 244, 0.02) 0%, rgba(169, 206, 244, 0.06) 100%);
  --gradient-section-subtle: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(247, 249, 251, 0.9) 100%);
  --gradient-card: linear-gradient(145deg, #f8fafc 0%, #f0f4f8 100%);
  --gradient-card-hover: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  --gradient-hero-subtle: linear-gradient(135deg, rgba(54, 73, 78, 0.02) 0%, rgba(126, 160, 183, 0.03) 100%);
  --gradient-overlay-subtle: linear-gradient(180deg, rgba(54, 73, 78, 0) 0%, rgba(54, 73, 78, 0.02) 100%);
  --gradient-mesh-subtle: radial-gradient(ellipse at 20% 30%, rgba(169, 206, 244, 0.08) 0%, transparent 50%),
                       radial-gradient(ellipse at 80% 70%, rgba(126, 160, 183, 0.06) 0%, transparent 50%);

  /* Text Colors */
  --text-primary: var(--black);
  --text-secondary: var(--outer-space);
  --text-muted: var(--paynes-gray);
  --text-white: #FFFFFF;

  /* Border & Accent Colors */
  --border-light: rgba(169, 206, 244, 0.2);
  --border-medium: rgba(169, 206, 244, 0.4);
  --accent-light: var(--uranian-blue);

  /* Typography */
  --font-primary: 'Ubuntu', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Ubuntu Mono', 'Courier New', 'Courier', monospace;

  /* Spacing Scale */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;

  /* Modern Animation Timings (200-600ms range for optimal perception) */
  --transition-instant: 0.1s ease;
  --transition-fast: 0.25s cubic-bezier(0.4, 0.0, 0.2, 1);
  --transition-normal: 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0.0, 0.2, 1);

  /* Modern Easing Functions */
  --ease-smooth: cubic-bezier(0.4, 0.0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-emphasized: cubic-bezier(0.2, 0.0, 0.0, 1.0);
  --ease-decelerated: cubic-bezier(0.0, 0.0, 0.2, 1);
  --ease-accelerated: cubic-bezier(0.4, 0.0, 1, 1);

  /* Stagger Delays */
  --stagger-fast: 0.08s;
  --stagger-normal: 0.12s;
  --stagger-slow: 0.16s;

  /* Z-index Scale */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal: 1040;
  --z-popover: 1050;
  --z-tooltip: 1060;
}

/* ===== RESET & BASE STYLES ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ===== FONT LOADING COORDINATION ===== */
/* Hide entire page and pause animations until fonts are loaded to prevent FOUT flicker */
.fonts-loading body {
  visibility: hidden;
}

/* Pause all animations during font loading */
.fonts-loading .hero-title-line,
.fonts-loading .fade-in-up,
.fonts-loading .fade-in-down,
.fonts-loading .fade-in-left,
.fonts-loading .fade-in-right,
.fonts-loading .fade-in-scale,
.fonts-loading .hero-subtitle,
.fonts-loading .hero-description,
.fonts-loading .hero-cta,
.fonts-loading .section-title,
.fonts-loading .service-card,
.fonts-loading .portfolio-item,
.fonts-loading .feature-card {
  animation: none !important;
  opacity: 0 !important;
}

/* Show content once fonts are ready */
.fonts-loaded body {
  visibility: visible;
  animation: pageLoadReveal 0.3s ease-out;
}

/* Reduced motion: show content immediately without waiting */
@media (prefers-reduced-motion: reduce) {
  .fonts-loading body {
    visibility: visible;
  }

  .fonts-loading .hero-title-line,
  .fonts-loading .fade-in-up,
  .fonts-loading .fade-in-down,
  .fonts-loading .fade-in-left,
  .fonts-loading .fade-in-right,
  .fonts-loading .fade-in-scale,
  .fonts-loading .hero-subtitle,
  .fonts-loading .hero-description,
  .fonts-loading .hero-cta,
  .fonts-loading .section-title,
  .fonts-loading .service-card,
  .fonts-loading .portfolio-item,
  .fonts-loading .feature-card {
    opacity: 1 !important;
  }
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  width: 100%;
  position: relative; /* Remove position: fixed - was causing scroll container issues */
}

body {
  font-family: var(--font-primary);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--gradient-body);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
  position: relative;
  -webkit-overflow-scrolling: touch;
}

/* Override default hand cursor on all clickable elements */
button,
a,
input[type="button"],
input[type="submit"],
[role="button"],
.btn,
.clickable,
svg,
select,
textarea,
input[type="checkbox"],
input[type="radio"],
.card-clickable,
.nav-logo,
.logo-link,
.filter-btn,
.chat-toggle,
.chat-send,
.chat-close,
.menu-item,
[onclick],
[tabindex]:not([tabindex="-1"]) {
  cursor: default !important;
}

/* Universal override for any element with cursor pointer */
*[style*="cursor: pointer"],
*.cursor-pointer {
  cursor: default !important;
}

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

a {
  color: inherit;
  text-decoration: none;
  cursor: default;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: default;
}

input,
textarea {
  font-family: inherit;
}

/* ===== UTILITY CLASSES ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

@media (min-width: 768px) {
  .container {
    padding: 0 var(--space-lg);
  }
}

@media (min-width: 1200px) {
  .container {
    padding: 0 var(--space-xl);
  }
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
  padding-top: var(--space-lg);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--outer-space);
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 1.125rem; /* Increased from 1rem - Better readability */
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .section-title {
    font-size: 2rem; /* Increased from 1.75rem - Better mobile hierarchy */
  }

  .section-subtitle {
    font-size: 1rem; /* Body text size on mobile */
  }
}

/* ===== BUTTON STYLES ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  transition:
    background-color var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast),
    transform 0.3s var(--ease-smooth);
  border: 2px solid transparent;
  text-decoration: none;
  min-height: 48px;
  position: relative;
  overflow: hidden;
  will-change: transform;
}

/* Button press effect */
.btn:active {
  transform: scale(0.97);
  transition: transform 0.1s var(--ease-emphasized);
}

/* Button loading state */
.btn.loading {
  position: relative;
  color: transparent;
  pointer-events: none;
}

.btn.loading::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  top: 50%;
  left: 50%;
  margin-left: -10px;
  margin-top: -10px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: btn-spinner 0.8s linear infinite;
}

@keyframes btn-spinner {
  to {
    transform: rotate(360deg);
  }
}

/* Button disabled state */
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

/* Magnetic effect - buttons follow cursor slightly when hovering */
.btn.magnetic {
  transition:
    border-color var(--transition-normal),
    background-color var(--transition-normal),
    color var(--transition-normal),
    transform 0.3s var(--ease-smooth);
}

@media (prefers-reduced-motion: reduce) {
  .btn.magnetic {
    transition: all var(--transition-normal), transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }
}

.btn-primary {
  background-color: var(--primary-blue);
  color: var(--text-white);
  border-color: var(--primary-blue);
}

.btn-primary:hover {
  background-color: var(--accent-blue);
  border-color: var(--accent-blue);
  transform: translateY(-2px) scale(1.02);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-navy);
  border-color: var(--primary-navy);
}

.btn-secondary:hover {
  background-color: var(--primary-navy);
  color: var(--text-white);
  transform: translateY(-2px) scale(1.02);
}

/* Hero section button overrides */
.hero .btn-primary {
  background-color: var(--primary-navy);
  color: var(--text-white);
  border-color: var(--primary-navy);

  transition:
    background-color var(--transition-fast),
    border-color var(--transition-fast),
    transform 0.4s var(--ease-smooth);
}

/* Magnetic buttons get enhanced hover effects via JS, no conflicting transform */
.hero .btn-primary:hover {
  background-color: #2a3d42;
  border-color: #2a3d42;
}

/* Non-magnetic buttons keep the lift effect */
.hero .btn-primary:not(.magnetic):hover {
  transform: translateY(-3px) scale(1.02);
}

.hero .btn-secondary {
  background-color: var(--text-white);
  color: var(--primary-navy);
  border-color: var(--primary-navy);
  border-width: 2px;

  transition:
    background-color var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast),
    transform 0.4s var(--ease-smooth);
}

/* Magnetic buttons get enhanced hover effects via JS, no conflicting transform */
.hero .btn-secondary:hover {
  background-color: var(--primary-navy);
  color: var(--text-white);
  border-color: var(--primary-navy);
}

/* Non-magnetic buttons keep the lift effect */
.hero .btn-secondary:not(.magnetic):hover {
  transform: translateY(-3px) scale(1.02);
}

/* Two-line button text styling */
.hero .btn-primary,
.hero .btn-secondary {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 14px 28px;
}

/* Make hero buttons same width */
.hero .hero-buttons {
  display: flex;
  gap: 1.5rem;
  align-items: stretch;
}
.hero .hero-buttons .btn {
  width: 180px;
  box-sizing: border-box;
}

@media (max-width: 640px) {
  .hero .hero-buttons {
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
  }

  .hero .hero-buttons .btn {
    /* Make buttons fill roughly half the viewport width while centered */
    width: calc(50% - 0.75rem);
    min-width: 140px;
    max-width: 320px;
    padding: 12px 20px;
    align-self: center;
  }
}

.btn-main-text {
  font-size: 1.125rem; /* Increased from 1rem - Better prominence */
  font-weight: 600;
  line-height: 1.2;
}

.btn-sub-text {
  font-size: 0.75rem; /* Reduced from 0.875rem - Less prominent */
  font-weight: 400;
  opacity: 0.9;
  line-height: 1;
}

.btn:focus {
  outline: none;
}

/* ===== NAVIGATION - ANCHORED BRAND HEADER ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, rgba(250, 251, 253, 0.98) 0%, rgba(250, 251, 253, 0.95) 100%);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(169, 206, 244, 0.25);
  z-index: var(--z-fixed);
  transition:
    background-color var(--transition-normal),
    border-color var(--transition-normal),
    box-shadow var(--transition-normal);
  padding: 0;
}

.navbar.scrolled {
  background: rgba(250, 251, 253, 0.98);
  border-bottom-color: rgba(169, 206, 244, 0.4);
  box-shadow: 0 4px 24px rgba(54, 73, 78, 0.08);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}

.nav-left {
  display: flex;
  align-items: center;
}

.nav-center {
  display: flex;
  flex: 1;
  justify-content: center;
}

/* CTA Button in Navigation */
.nav-cta {
  margin-left: var(--space-md);
  margin-right: 6px;
  padding: 6px 20px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  line-height: 1.4;
}

.nav-logo .logo-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.35s var(--ease-smooth);
  gap: 0.15rem;
  color: inherit;
  height: 100%;
  cursor: default;
}

.nav-logo .logo-link:hover {
  transform: translateY(-2px) scale(1.02);
}

.logo-text {
  display: inline-flex;
  flex-direction: column;
  gap: 0.1rem;
  line-height: 1;
  color: var(--primary-green, #2C4A3C);
  font-family: "Ubuntu", "Segoe UI", system-ui, sans-serif;
}

.logo-text-main {
  display: inline-flex;
  align-items: baseline;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.32rem;
  text-transform: uppercase;
  white-space: nowrap;
}

.logo-text-highlight {
  color: var(--secondary-gold, #C4A661);
  margin-left: 0.15rem;
}

.logo-text-tagline {
  font-size: 0.62rem;
  letter-spacing: 0.4rem;
  text-transform: uppercase;
  font-weight: 500;
  color: rgba(44, 74, 60, 0.85);
  white-space: nowrap;
}

/* Logo Image Styles */
.logo-image {
  height: 45px;
  width: auto;
  display: block;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: var(--space-lg);
}

/* Dropdown Styles */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--background-white);
  min-width: 180px;
  
  border-radius: var(--radius-lg);
  padding: var(--space-xs);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) scale(0.98);
  transition:
    opacity 0.35s var(--ease-decelerated),
    visibility 0.35s,
    transform 0.35s var(--ease-bounce);
  z-index: var(--z-dropdown);
  border: 1px solid var(--border-light);
  margin-top: var(--space-xs);
}

.nav-item.dropdown:hover .dropdown-menu,
.dropdown-menu:hover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.dropdown-item {
  display: block;
  padding: var(--space-xs) var(--space-sm);
  color: var(--text-primary);
  text-decoration: none;
  border-radius: var(--radius-sm);
  cursor: default;
  transition:
    background-color var(--transition-fast),
    color var(--transition-fast),
    transform 0.3s var(--ease-smooth),
    padding 0.3s var(--ease-smooth);
  font-weight: 500;
}

.dropdown-item:hover {
  background-color: var(--background-mint);
  color: var(--primary-blue);
  transform: translateX(4px);
  padding-left: calc(var(--space-sm) + 4px);
}

/* Mega Dropdown Styles */
.mega-dropdown {
  min-width: 480px;
  padding: var(--space-md);
}

.dropdown-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
}

.dropdown-card {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  text-decoration: none;
  transition:
    background-color var(--transition-fast),
    color var(--transition-fast),
    transform 0.3s var(--ease-smooth);
  background-color: transparent;
}

.dropdown-card:hover {
  background-color: var(--background-mint);
  color: var(--primary-blue);
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 8px 24px rgba(54, 73, 78, 0.08);
}

.dropdown-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background-color: rgba(169, 206, 244, 0.15);
  color: var(--primary-blue);
  flex-shrink: 0;
  transition: background-color 0.3s var(--ease-smooth), color 0.3s var(--ease-smooth);
}

.dropdown-card:hover .dropdown-icon {
  background-color: var(--primary-blue);
  color: var(--text-white);
}

.dropdown-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}

.dropdown-content strong {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
}

.dropdown-content small {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.2;
  transition: color 0.3s var(--ease-smooth);
}

.dropdown-card:hover .dropdown-content small {
  color: var(--primary-blue);
}

.dropdown-item.active {
  background-color: var(--primary-blue);
  color: var(--text-white);
}

.nav-link {
  font-weight: 500;
  color: var(--text-primary);
  transition:
    color var(--transition-fast),
    transform 0.3s var(--ease-smooth);
  position: relative;
  cursor: default;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
}

.nav-link:hover {
  color: var(--primary-blue);
  transform: translateY(-1px);
}

.nav-link.active {
  color: var(--primary-blue);
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 50%;
  background-color: var(--primary-blue);
  transition: all var(--transition-normal);
  transform: translateX(-50%);
}

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

/* Mobile Navigation */
.hamburger {
  display: none;
  flex-direction: column;
  padding: var(--space-xs);
}

.hamburger .bar {
  width: 25px;
  height: 3px;
  background-color: var(--primary-navy);
  margin: 3px 0;
  transition: var(--transition-normal);
}

@media (max-width: 768px) {
  .navbar {
    top: 0;
    width: 100%;
    border-radius: 0;
  }

  .nav-cta {
    display: none;
  }

  .nav-container {
    padding: 0 var(--space-sm);
  }

  .nav-menu {
    position: fixed;
    left: 0;
    top: 72px;
    right: 0;
    transform: translateY(-100%);
    flex-direction: column;
    background-color: var(--background-white);
    width: 100%;
    text-align: center;
    transition: var(--transition-normal);

    padding: var(--space-lg) var(--space-md);
    gap: var(--space-md);
    opacity: 0;
    visibility: hidden;
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 8px 32px rgba(54, 73, 78, 0.12);
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .hamburger {
    display: flex;
    margin-left: auto;
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  /* Mobile dropdown positioning */
  .dropdown-menu {
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    min-width: 200px;
  }

  /* Mega dropdown mobile styles */
  .mega-dropdown {
    min-width: 280px;
    padding: var(--space-sm);
  }

  .dropdown-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xs);
  }

  .nav-item.dropdown:hover .dropdown-menu,
  .dropdown-menu:hover {
    transform: translateX(-50%) translateY(0);
  }
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-top: 100px;
  padding-bottom: var(--space-3xl);
  overflow: hidden;
  /* Committed color strategy - subtle blue tint */
  background: linear-gradient(135deg, #FAFBFD 0%, rgba(169, 206, 244, 0.06) 50%, rgba(126, 160, 183, 0.04) 100%);
}

/* Video Background Container */
.hero-video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  /* Subtle gradient background while video loads */
  background: linear-gradient(135deg, #f0f4f8 0%, #e5ebef 50%, #d0dae1 100%);
}

/* Hero Video Element */
.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: auto;
  height: auto;
  /* Ensure video always covers the container */
  min-width: calc(100% + 2px);
  min-height: calc(100% + 2px);
  transform: translate(-50%, -50%);
  will-change: transform;
}

/* Loading Spinner */
.hero-video-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.hero-video-loading.active {
  opacity: 0.6;
}

.video-loading-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(44, 74, 60, 0.2);
  border-top-color: var(--primary-green);
  border-radius: 50%;
  animation: video-spinner 0.8s linear infinite;
}

@keyframes video-spinner {
  to {
    transform: rotate(360deg);
  }
}

/* Video Overlay for Text Readability - Committed approach */
.hero-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(250, 251, 253, 0.92) 0%, rgba(250, 251, 253, 0.88) 50%, rgba(240, 244, 248, 0.85) 100%);
  z-index: 3;
}

/* Fallback background gradient for when video doesn't load or on low-motion preference */
.hero-fallback {
  background: linear-gradient(135deg, #f0f4f8 0%, #e5ebef 50%, #d0dae1 100%);
}

/* Reduced Motion: Disable video animation */
@media (prefers-reduced-motion: reduce) {
  .hero-video {
    display: none;
  }

  .hero-video-background {
    background: linear-gradient(135deg, #f0f4f8 0%, #e5ebef 50%, #d0dae1 100%);
  }
}

/* Improve rendering performance with GPU acceleration */
.hero-video-background {
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  will-change: transform;
}

.hero-container {
  position: relative;
  z-index: 3;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-lg) var(--space-lg); /* Consistent padding: 2rem all around */
  width: 100%;
  display: flex;
  flex-direction: column;
  min-height: auto; /* Remove fixed height constraint - let content flow naturally */
}

.hero-content {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex: 1;
  min-height: auto;
}

.hero-text {
  position: relative;
  z-index: 5;
  max-width: 800px;
  text-align: left;
  padding: var(--space-xl) var(--space-lg);
}

/* Hero Tagline Badge - Committed color */
.hero-tagline {
  display: inline-block;
  font-family: var(--font-primary);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--outer-space);
  background: linear-gradient(135deg, rgba(169, 206, 244, 0.4) 0%, rgba(169, 206, 244, 0.25) 100%);
  padding: 0.6rem 1.25rem;
  border-radius: 6px;
  margin-bottom: var(--space-lg);
  border: 1px solid rgba(169, 206, 244, 0.5);
  opacity: 0;
  animation: heroFadeIn 0.6s var(--ease-decelerated) forwards;
}

/* Hero Title - Stronger hierarchy */
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--outer-space);
  margin-bottom: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  letter-spacing: -0.02em;
}

.hero-title-line {
  display: block;
  opacity: 0;
  animation: heroSlideUp 0.7s var(--ease-emphasized) forwards;
}

.hero-title-middle {
  white-space: nowrap;
}

.hero-title-line:nth-child(1) {
  animation-delay: 0.1s;
}

.hero-title-line:nth-child(2) {
  animation-delay: 0.2s;
}

.hero-title-line:nth-child(3) {
  animation-delay: 0.3s;
}

.hero-title-accent {
  color: var(--committed-blue);
  font-weight: 400;
  margin: 0 0.2em;
}

.hero-title-target {
  color: var(--primary-navy);
  font-weight: 800;
}

.hero-subtitle {
  font-size: 1.125rem; /* Increased from 1rem - Better readability */
  color: #1a202c;
  margin-bottom: var(--space-2xl);
  line-height: 1.6;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* Hero Centered Variant - For About and Contact pages */
.hero-centered .hero-content {
  display: flex;
  justify-content: center;
  text-align: center;
}

.hero-centered .hero-text {
  max-width: 800px;
  padding-left: 0;
  padding-right: 0;
  text-align: center;
}

.hero-centered .hero-title {
  justify-content: center;
}

.hero-centered .hero-subtitle {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  margin-top: var(--space-lg);
}

/* Specialties Grid - Single Row (3 columns) */
.specialties-grid.single-row {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1024px) {
  .specialties-grid.single-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .specialties-grid.single-row {
    grid-template-columns: 1fr;
  }
}


@media (max-width: 1024px) {
  /* Optional: Disable video on tablets for performance (can be removed if video is optimized) */
  .hero-video {
    opacity: 0.7; /* Dim video slightly on tablets */
  }

  .hero {
    padding-top: 140px; /* Increased spacing from header on tablets */
    padding-bottom: var(--space-xl); /* 3rem bottom spacing for tablets */
    min-height: auto; /* Allow natural height on tablets */
  }

  .hero-container {
    min-height: auto; /* Allow natural height */
    padding: var(--space-md) var(--space-md); /* 1.5rem padding for tablets */
  }

  .hero-content {
    min-height: auto;
  }

  .hero-title {
    font-size: 2rem;
    margin-bottom: var(--space-md);
  }

  .hero-tagline {
    font-size: 0.7rem;
    padding: 0.4rem 0.85rem;
  }

  .hero-subtitle {
    font-size: 1.125rem; /* Maintained for readability on tablet */
    margin-bottom: var(--space-lg); /* Reduce bottom margin */
  }

  .sponsor-item {
  }

  .hero-sponsors {
    position: relative;
    bottom: auto;
    margin-top: var(--space-lg); /* More spacing before sponsors on tablets */
    margin-bottom: 0;
    padding: var(--space-md) 0;
  }

  .sponsors-container {
    padding: 0 var(--space-sm);
  }

  .sponsor-item {
    width: 100px;
    height: 50px;
  }

  .hero-trust {
    position: relative;
    bottom: auto;
    margin-top: var(--space-lg); /* Consistent spacing before trust badges */
    margin-bottom: var(--space-sm);
    padding: var(--space-md) 0;
  }

  .trust-badges {
    gap: 8px;
    flex-wrap: nowrap;
  }

  .trust-badge {
    padding: 5px 10px;
    font-size: 0.7rem;
    white-space: nowrap;
    letter-spacing: 0.3px;
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: 100vh;
    padding-top: 130px; /* Increased spacing from header on mobile */
    padding-bottom: var(--space-lg); /* 2rem bottom spacing for mobile */
  }

  /* Center hero text on mobile */
  .hero-content {
    justify-content: center;
  }

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

  .hero.hero-centered {
    padding-top: 130px; /* Increased spacing for centered hero on mobile */
  }

  .hero-container {
    padding: var(--space-md) var(--space-sm); /* 1.5rem top/bottom, 1rem sides */
    display: flex;
    flex-direction: column;
    min-height: auto;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
  }

  .hero-text {
    padding-left: 0; /* Container handles padding */
    padding-right: 0;
    text-align: center;
  }

  .hero-title {
    font-size: 1.6rem;
    gap: 0.2rem;
  }

  .hero-tagline {
    font-size: 0.65rem;
    padding: 0.35rem 0.75rem;
    margin-bottom: var(--space-sm);
  }

  .hero-title-accent {
    margin: 0 0.1em;
  }

  .hero-subtitle {
    font-size: 1rem;
    max-width: 100%;
  }

  .hero-buttons {
    justify-content: center;
    gap: var(--space-sm);
  }

  .hero-buttons .btn {
    flex: 1;
    max-width: 280px;
  }

  .hero-sponsors {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    margin-top: var(--space-lg); /* More spacing before sponsors on mobile */
    margin-bottom: 0;
    padding: var(--space-md) 0; /* More padding around sponsors */
    z-index: 5;
  }

  .sponsor-item {
    width: 80px;
    height: 40px;
  }

  .sponsors-track {
    gap: var(--space-lg);
  }

  .hero-trust {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    margin-top: var(--space-lg); /* Spacing before trust badges */
    margin-bottom: 0;
    padding: var(--space-md) 0; /* More padding around trust badges */
    z-index: 10;
  }

  .trust-badges {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
    width: 100%;
  }

  .trust-badge {
    padding: 4px 8px;
    font-size: 0.6rem;
    white-space: nowrap;
    flex: 0 0 auto;
    letter-spacing: 0;
    line-height: 1;
    min-width: 0;
  }

  .trust-text {
    font-size: 0.75rem;
    margin-top: 8px;
    margin-bottom: 0;
  }
}

/* ===== PROBLEM → SOLUTION SECTION ===== */
.problem-solution {
  padding: var(--space-3xl) 0;
  background: linear-gradient(180deg, #FAFBFD 0%, rgba(169, 206, 244, 0.06) 100%);
  position: relative;
  overflow: hidden;
}

/* Problem-solution elements work with existing ScrollAnimations class in script.js */
.ps-block,
.ps-header {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.0, 0.0, 0.2, 1), transform 0.6s cubic-bezier(0.0, 0.0, 0.2, 1);
}

.ps-block.is-visible,
.ps-header.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for sequential reveal within blocks */
.ps-block:nth-child(1) { transition-delay: 0ms; }
.ps-block:nth-child(2) { transition-delay: 150ms; }
.ps-block:nth-child(3) { transition-delay: 300ms; }
.ps-block:nth-child(4) { transition-delay: 450ms; }

.problem-solution::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(169, 206, 244, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.ps-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
  position: relative;
  z-index: 1;
}

.ps-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--outer-space);
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.ps-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.ps-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-3xl);
  position: relative;
  z-index: 1;
  margin-bottom: var(--space-3xl);
}

/* Horizontal block layout with alternating sides */
.ps-block {
  display: flex;
  align-items: center;
  gap: var(--space-2xl);
}

/* Block left: video on left, content on right */
.ps-block-left {
  flex-direction: row;
}

/* Block right: video on right, content on left */
.ps-block-right {
  flex-direction: row-reverse;
}

/* Media/Animation side */
.ps-media {
  flex: 0 0 45%;
  max-width: 500px;
  transition: transform 0.4s var(--ease-smooth);
}

.ps-animation-placeholder {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(145deg, #f8fafc 0%, #f0f4f8 100%);
  border-radius: var(--radius-xl);
  border: 2px solid rgba(169, 206, 244, 0.3);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(54, 73, 78, 0.08);
}

.ps-animation-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Image-based problem-solution scenes */
.ps-animation-content picture {
  width: 100%;
  height: 100%;
  display: block;
  margin: 0;
  padding: 0;
}

.ps-scene-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ps-media:hover .ps-scene-image {
  transform: scale(1.06);
}

/* Fallback: Keep SVG styles for backward compatibility */
.ps-scene {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.ps-scene-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
}

.ps-scene-problem .ps-scene-icon {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(239, 68, 68, 0.08) 100%);
  color: #dc2626;
  border: 2px solid rgba(239, 68, 68, 0.3);
}

.ps-scene-solution .ps-scene-icon {
  background: linear-gradient(135deg, rgba(169, 206, 244, 0.3) 0%, rgba(169, 206, 244, 0.15) 100%);
  color: var(--committed-blue-dark);
  border: 2px solid rgba(169, 206, 244, 0.5);
}

.ps-scene-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.ps-scene-problem .ps-scene-label {
  color: #dc2626;
}

.ps-scene-solution .ps-scene-label {
  color: var(--committed-blue-dark);
}

/* Arrow between scenes — static for clean minimalist presentation */
.ps-arrow-horizontal {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--committed-blue);
}

/* Content side */
.ps-content-wrapper {
  flex: 1;
}

.ps-problem-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #dc2626;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(239, 68, 68, 0.08) 100%);
  padding: 0.4rem 0.875rem;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-md);
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.ps-heading {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--outer-space);
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.ps-description {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
}

.ps-solution-box {
  background: linear-gradient(135deg, rgba(169, 206, 244, 0.12) 0%, rgba(169, 206, 244, 0.06) 100%);
  border: 1px solid rgba(169, 206, 244, 0.35);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  position: relative;
  overflow: hidden;
}

.ps-solution-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--committed-blue) 0%, var(--committed-blue-dark) 100%);
}

.ps-solution-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--committed-blue-dark);
  margin-bottom: var(--space-sm);
}

.ps-solution-box strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--outer-space);
  margin-bottom: var(--space-sm);
}

.ps-solution-box p {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

/* Impact highlight - revenue/time savings emphasis */
.ps-impact {
  margin-top: var(--space-sm);
  padding-top: var(--space-sm);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 0.875rem;
  color: var(--primary);
  font-weight: 500;
}

.ps-impact strong {
  color: var(--primary);
}

/* ===== ENHANCED ZIGZAG LAYOUT ===== */

/* Clean zigzag hover effect */
.ps-block {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.ps-block:hover {
  transform: translateY(-2px);
}

/* Subtle hover effect — minimalist lift */
.ps-media:hover .ps-animation-placeholder {
  box-shadow: 0 12px 32px rgba(54, 73, 78, 0.12);
  transform: translateY(-4px);
  transition: box-shadow 0.4s var(--ease-smooth), transform 0.4s var(--ease-smooth);
}

.ps-animation-placeholder {
  transition: box-shadow 0.4s var(--ease-smooth), transform 0.4s var(--ease-smooth);
}

/* Enhanced solution box hover */
.ps-solution-box {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.ps-solution-box:hover {
  background: linear-gradient(135deg, rgba(169, 206, 244, 0.18) 0%, rgba(169, 206, 244, 0.1) 100%);
  border-color: rgba(169, 206, 244, 0.5);
  transform: translateX(4px);
}

/* Footer */
.ps-footer {
  text-align: center;
  position: relative;
  z-index: 1;
}

.ps-footer-text {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
}

.ps-cta {
  min-width: 180px;
}

/* Responsive Design - Tablet */
@media (max-width: 1024px) {
  .ps-grid {
    gap: var(--space-2xl);
  }

  .ps-media {
    flex: 0 0 48%;
  }
}

/* Responsive Design - Mobile: Stack everything vertically */
@media (max-width: 768px) {
  .problem-solution {
    padding: var(--space-2xl) 0;
  }

  .ps-title {
    font-size: 2rem;
  }

  .ps-subtitle {
    font-size: 1rem;
  }

  .ps-grid {
    gap: var(--space-xl);
  }

  .ps-block,
  .ps-block-reverse {
    flex-direction: column;
    gap: var(--space-lg);
  }

  .ps-media {
    flex: 1;
    max-width: 100%;
    width: 100%;
    order: -1; /* Animation always on top on mobile */
  }

  .ps-animation-placeholder {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(145deg, #f8fafc 0%, #f0f4f8 100%);
    border: 2px solid rgba(169, 206, 244, 0.3);
  }

  .ps-animation-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
  }

  .ps-animation-content picture {
    width: 100%;
    height: 100%;
    display: block;
  }

  .ps-scene-image {
    object-fit: cover;
    object-position: center;
    width: 100%;
    height: 100%;
    display: block;
  }

  /* Fallback: SVG icons for backward compatibility */
  .ps-scene-icon {
    width: 56px;
    height: 56px;
  }

  .ps-scene-icon svg {
    width: 28px;
    height: 28px;
  }

  .ps-scene-label {
    font-size: 0.625rem;
  }

  .ps-arrow-horizontal {
    transform: rotate(90deg);
  }

  .ps-arrow-horizontal svg {
    width: 24px;
    height: 24px;
  }

  .ps-heading {
    font-size: 1.5rem;
  }

  .ps-description {
    font-size: 0.9375rem;
  }

  .ps-solution-box {
    padding: var(--space-md);
  }

  .ps-solution-box strong {
    font-size: 1rem;
  }

  .ps-solution-box p {
    font-size: 0.875rem;
  }

  .ps-footer-text {
    font-size: 0.9375rem;
  }
}

/* ===== SPECIALTIES SECTION ===== */
.specialties {
  padding: var(--space-3xl) 0;
  background: linear-gradient(180deg, rgba(169, 206, 244, 0.03) 0%, rgba(169, 206, 244, 0.08) 100%);
  position: relative;
}

.specialties::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(169, 206, 244, 0.12) 0%, transparent 50%),
              radial-gradient(ellipse at 70% 80%, rgba(126, 160, 183, 0.08) 0%, transparent 50%);
  opacity: 1;
  pointer-events: none;
}

.specialties-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2xl);
  position: relative;
  z-index: 1;
}

.specialty-card {
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  border-radius: var(--radius-xl);
  overflow: hidden;

  transition:
    transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.4s var(--ease-smooth),
    border-color 0.4s var(--ease-smooth);
  position: relative;
  border: 1px solid rgba(169, 206, 244, 0.3);
  box-shadow: 0 4px 20px rgba(54, 73, 78, 0.06);
  will-change: transform;
}

.dropdown-card {
  overflow: visible;
}

.specialty-card:hover {
  transform: translateY(-12px) scale(1.01);
  box-shadow: 0 20px 40px rgba(54, 73, 78, 0.12);
  border-color: rgba(169, 206, 244, 0.5);
}

@media (prefers-reduced-motion: reduce) {
  .specialty-card {
    transition: transform 0.3s var(--ease-smooth), ;
  }
  .specialty-card:hover {
    transform: translateY(-4px);
  }
}

.specialty-image {
  position: relative;
  height: 250px;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.specialty-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: transform;
}

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

.specialty-content {
  padding: var(--space-xl);
  position: relative;
  z-index: 2;
}

.specialty-content h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--outer-space);
  margin-bottom: var(--space-md);
  transition: color 0.4s var(--ease-smooth), transform 0.4s var(--ease-smooth);
  display: inline-block;
  letter-spacing: -0.01em;
}

.specialty-card:hover .specialty-content h3 {
  color: var(--committed-blue-dark);
  transform: translateX(6px);
}

.specialty-content p {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.875rem;
  transition: color 0.4s var(--ease-smooth);
}

.specialty-card:hover .specialty-content p {
  color: var(--text-primary);
}

/* Link Card Styles */
.link-card {
  text-decoration: none;
  color: inherit;
  display: block;
}

.link-card:hover {
  text-decoration: none;
  color: inherit;
}

.specialty-cta {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  transition: border-color var(--transition-normal);
}

.specialty-card:hover .specialty-cta {
  border-color: rgba(169, 206, 244, 0.4);
}

.cta-text {
  color: var(--committed-blue-dark);
  font-weight: 700;
  font-size: 0.9rem;
  transition: color var(--transition-normal), transform var(--transition-normal);
  display: inline-block;
  letter-spacing: 0.02em;
}

.link-card:hover .cta-text {
  color: var(--outer-space);
  transform: translateX(10px);
}

@media (prefers-reduced-motion: reduce) {
  .link-card:hover .cta-text {
    transform: none;
  }
}

/* Specialty Card Dropdown Styles */
.specialty-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: var(--background-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition-normal);
  z-index: var(--z-dropdown);
  margin-top: var(--space-sm);
}

.specialty-card:hover .specialty-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.specialty-dropdown .dropdown-item {
  display: block;
  padding: var(--space-sm) var(--space-md);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  border-bottom: 1px solid var(--border-light);
  cursor: default;
}

.specialty-dropdown .dropdown-item:last-child {
  border-bottom: none;
}

.specialty-dropdown .dropdown-item:hover {
  background-color: var(--background-mint);
  color: var(--text-primary);
}

@media (max-width: 768px) {
  .specialties-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .specialty-content {
    padding: var(--space-lg);
  }

  .specialty-cta {
    margin-top: var(--space-sm);
    padding-top: var(--space-sm);
  }
}

/* ===== MENU SECTION ===== */
.menu {
  padding: var(--space-3xl) 0;
  background-color: var(--background-white);
}

.menu-filter {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-3xl);
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.75rem 1.5rem;
  background-color: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  font-weight: 500;
  transition: all var(--transition-normal);
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--primary-navy);
  color: var(--text-white);
  border-color: var(--primary-navy);
}

/* ===== DOWNLOADS SEARCH ===== */
.downloads-search {
  max-width: 600px;
  margin: 0 auto var(--space-md) auto;
  position: relative;
}

.search-container {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--background-white);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 0 var(--space-md);
}

.search-icon {
  position: absolute;
  left: var(--space-md);
  color: var(--text-muted);
  pointer-events: none;
  flex-shrink: 0;
}

.search-input {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  padding-left: calc(var(--space-md) * 2 + 20px); /* Space for icon */
  font-family: var(--font-primary);
  font-size: 1rem;
  color: var(--text-primary);
  background: transparent;
  border: none;
  outline: none;
}

.search-input:focus {
  outline: none;
  
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-clear-btn {
  position: absolute;
  right: var(--space-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--border-light);
  border: none;
  border-radius: 50%;
  color: var(--text-muted);
  transition:
    background-color var(--transition-fast),
    color var(--transition-fast),
    transform var(--transition-fast);
  flex-shrink: 0;
}

.search-clear-btn:hover {
  background: var(--primary-blue);
  color: var(--text-white);
  transform: scale(1.1);
}

.search-clear-btn:active {
  transform: scale(0.95);
}

.search-results-count {
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: var(--space-xs);
  min-height: 20px;
}

/* No results message */
.no-results-message {
  text-align: center;
  padding: var(--space-xl);
  color: var(--text-muted);
  font-size: 1rem;
}

.no-results-message strong {
  color: var(--text-secondary);
  display: block;
  font-size: 1.25rem;
  margin-bottom: var(--space-xs);
}

/* Hidden class for search results */
.download-category.search-hidden {
  display: none !important;
}

.menu-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  max-width: 800px;
  margin: 0 auto;
}

.menu-item {
  background: var(--gradient-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  
  transition:
    transform 0.4s var(--ease-smooth),
    ,
    border-color var(--transition-normal);
  opacity: 1;
  transform: scale(1);
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid rgba(169, 206, 244, 0.08);
}

.menu-item.hidden {
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
}

.menu-item:hover {
  transform: translateY(-5px) scale(1.01);
  background: var(--gradient-card-hover);
}

.menu-item-image {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.menu-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-smooth);
}

.menu-item:hover .menu-item-image img {
  transform: scale(1.1);
}

.menu-item-content {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.menu-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-sm);
}

.menu-item-header h3 {
  font-family: var(--font-display);
  font-size: 1rem; /* Reduced from 1.25rem - 3-tier system: Medium */
  font-weight: 600;
  color: var(--text-primary);
}

.price {
  font-family: var(--font-display);
  font-size: 1rem; /* Reduced from 1.25rem - 3-tier system: Medium */
  font-weight: 700;
  color: var(--primary-blue);
}

.menu-item-content p {
  color: var(--text-secondary);
  margin-bottom: auto;
  line-height: 1.6;
  flex-grow: 1;
}

.category-btn {
  display: inline-block;
  background-color: var(--primary-blue);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-fast);
  margin-top: var(--space-sm);
  align-self: flex-start;
}

.category-btn:hover {
  background-color: var(--accent-blue);
  transform: translateY(-1px);
}

/* Star Rating Styles */
.rating {
  display: flex;
  gap: 0.125rem;
  margin-top: 0.25rem;
}

.star {
  color: #FFD700;
  font-size: 1.25rem;
  line-height: 1;
}

/* Update menu item header for testimonials */
.menu-item-header .rating {
  margin-top: 0.5rem;
}

@media (max-width: 768px) {
  .menu-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    max-width: 100%;
  }

  .menu-item-content {
    padding: var(--space-md);
  }
}

/* ===== ABOUT SECTION ===== */
.about {
  padding: var(--space-3xl) 0;
  background: var(--gradient-section-subtle);
  position: relative;
}

.about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-mesh-subtle);
  opacity: 0.5;
  pointer-events: none;
}

/* Original About Content Grid (for index.html) */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.about-text {
  max-width: 600px;
}

.about-text .section-title {
  text-align: left;
  margin-bottom: var(--space-lg);
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  line-height: 1.7;
}

.about-image {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  max-width: 224px;
  margin: 0 auto;
}

.about-image img {
  width: 100%;
  height: auto;
  transition: transform var(--transition-slow);
}

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

/* ===== FOUNDER SECTION (about.html only) ===== */

/* Founder Header */
.founder-section .founder-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--space-2xl);
}

.founder-section .founder-header .section-title {
  margin-bottom: 0;
}

/* Founder Content with Text Wrap */
.founder-section .founder-content {
  max-width: 900px;
  margin: 0 auto;
}

/* Float photo to left for text wrap */
.founder-section .founder-photo-wrapper {
  float: left;
  width: 380px;
  margin: 0 var(--space-xl) var(--space-lg) 0;
  shape-outside: margin-box;
}

.founder-section .founder-photo {
  width: 100%;
  height: auto;
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 60px rgba(54, 73, 78, 0.12);
  transition: transform var(--transition-slow), box-shadow var(--transition-slow);
}

.founder-section .founder-photo:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 80px rgba(54, 73, 78, 0.18);
}

/* Clearfix for floated content */
.founder-section .founder-content::after {
  content: '';
  display: table;
  clear: both;
}

.founder-section .founder-content h3 {
  margin-bottom: 0.5rem;
}

.founder-section .about-intro {
  font-size: 1rem;
  font-weight: 500;
  color: var(--primary-navy);
  margin-bottom: var(--space-lg);
  margin-top: var(--space-md);
}

.founder-section .founder-content p {
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  line-height: 1.7;
  text-align: justify;
  text-justify: inter-word;
}

/* Founder Highlights - centered cards */
.founder-section .about-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
  clear: both;
  justify-content: center;
}

.founder-section .highlight {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(169, 206, 244, 0.2);
  transition: transform var(--transition-slow), box-shadow var(--transition-slow);
}

.founder-section .highlight:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(54, 73, 78, 0.12);
}

.founder-section .highlight h4 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: var(--space-xs);
}

.founder-section .highlight p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  text-align: center;
}

/* Original Highlights (for index.html) - keep as-is */
.about-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.highlight {
  text-align: center;
  background: var(--gradient-section-subtle);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(169, 206, 244, 0.1);
}

.highlight h4 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: var(--space-xs);
}

.highlight p {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* Tablet - Original About Section (index.html) */
@media (max-width: 1024px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    text-align: center;
  }

  .about-text .section-title {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .about-highlights {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .about-image {
    max-width: 160px;
  }
}

/* ===== FOUNDER SECTION RESPONSIVE ===== */

/* Tablet - smaller floating photo */
@media (max-width: 1024px) {
  .founder-section .founder-content {
    max-width: 100%;
  }

  .founder-section .founder-photo-wrapper {
    width: 320px;
    margin: 0 0 var(--space-lg) var(--space-lg);
  }

  .founder-section .founder-content p {
    text-align: left;
  }
}

/* Mobile - stacked layout */
@media (max-width: 768px) {
  .founder-section {
    padding: var(--space-2xl) 0;
  }

  .founder-section .founder-header {
    margin-bottom: var(--space-xl);
  }

  .founder-section .founder-photo-wrapper {
    float: none;
    width: 100%;
    max-width: 320px;
    margin: 0 auto var(--space-xl);
    display: block;
  }

  .founder-section .about-intro {
    margin-top: var(--space-lg);
    text-align: center;
  }

  .founder-section .founder-content h3 {
    text-align: center;
    font-size: 1.5rem;
  }

  .founder-section .founder-content p {
    text-align: left;
  }

  .founder-section .about-highlights {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
}

/* ===== NEWSLETTER SECTION ===== */
.newsletter {
  padding: var(--space-3xl) 0;
  background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-blue) 100%);
  color: var(--text-white);
}

.newsletter-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.newsletter h2 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
}

.newsletter p {
  font-size: 1.125rem;
  margin-bottom: var(--space-xl);
  opacity: 0.9;
}

.newsletter-form {
  max-width: 400px;
  margin: 0 auto;
}

.newsletter-form .form-group {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.newsletter-form .form-group input {
  flex: 1;
  padding: 0.875rem 1rem;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: 1rem;
  background-color: var(--background-white);
  color: var(--text-primary);
  box-sizing: border-box;
  transition: border-color var(--transition-normal);
}

.newsletter-form .form-group label {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 500;
  color: var(--text-muted);
  font-size: 1rem;
  transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  background-color: var(--background-white);
  padding: 0 0.25rem;
  pointer-events: none;
  transform-origin: left center;
}

.newsletter-form .form-group input:focus {
  outline: none;
  border-color: var(--primary-blue);
}

.newsletter-form .form-group input:focus + label,
.newsletter-form .form-group input:not(:placeholder-shown) + label {
  transform: translateY(-150%) scale(0.85);
  color: var(--primary-blue);
  top: 0;
}

.newsletter-form .form-group .btn {
  padding: 0.875rem 1.5rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.privacy-note {
  font-size: 0.875rem;
  opacity: 0.8;
  margin-top: var(--space-sm);
  white-space: nowrap;
}

.form-message {
  margin-top: var(--space-md);
  padding: var(--space-sm);
  border-radius: var(--radius-md);
  font-weight: 500;
  display: none;
}

.form-message.success {
  background-color: #10b981;
  border: 1px solid #059669;
  color: var(--text-white);
  display: block;
}

.form-message.error {
  background-color: #ef4444;
  border: 1px solid #dc2626;
  color: var(--text-white);
  display: block;
}

@media (max-width: 768px) {
  .newsletter h2 {
    font-size: 1.75rem; /* Reduced from 2rem - 3-tier system: Large (mobile) */
  }

  /* Keep newsletter form in row layout on mobile for compact design */
  .newsletter-form .form-group {
    flex-direction: row;
    flex-wrap: wrap;
  }

  /* Newsletter form label positioning fix for mobile */
  .newsletter-form .form-group {
    position: relative;
  }

  .newsletter-form .form-group input {
    position: relative; /* Establish containing block for label */
    z-index: 1;
    min-width: 0; /* Allow flex item to shrink */
  }

  .newsletter-form .form-group label {
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
  }

  .newsletter-form .form-group input:focus + label,
  .newsletter-form .form-group input:not(:placeholder-shown) + label {
    transform: translateY(-150%) scale(0.85);
    top: 0;
  }

  /* Other form groups (like contact form) still use column layout */
  .form-group:not(.newsletter-form .form-group) {
    flex-direction: column;
  }

  .form-group .btn {
    padding: 0.875rem 2rem;
  }
}

/* ===== CONTACT SECTION ===== */
.contact {
  padding: var(--space-3xl) 0;
  background: var(--gradient-section-light);
  position: relative;
}

.contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-mesh-subtle);
  opacity: 0.6;
  pointer-events: none;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-3xl);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.contact-item h3 {
  font-family: var(--font-display);
  font-size: 1rem; /* Reduced from 1.25rem - 3-tier system: Medium */
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.contact-item p {
  color: var(--text-secondary);
  line-height: 1.6;
}

.map-container {
  margin-top: var(--space-md);
  border-radius: var(--radius-md);
  overflow: hidden;
  
  background: var(--gradient-card);
}

.map-container iframe {
  display: block;
  width: 100%;
  height: 300px;
  border: none;
}

.map-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-xl);
  min-height: 300px;
  text-align: center;
}

.map-placeholder-text {
  color: var(--text-secondary);
  max-width: 18rem;
}

.map-placeholder-link {
  color: var(--accent-blue);
  font-weight: 500;
  text-decoration: underline;
}

.contact-form {
  background: var(--gradient-card);
  padding: var(--space-2xl);
  border-radius: var(--radius-lg);
  
  max-width: 100%;
  width: 100%;
  border: 1px solid rgba(169, 206, 244, 0.15);
}

.contact-form .form-group {
  margin-bottom: var(--space-lg);
  position: relative;
}

.contact-form label {
  display: block;
  font-weight: 500;
  color: var(--text-primary);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  max-width: 100%;
  padding: 1rem 1.25rem;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: 1rem;
  transition:
    border-color var(--transition-fast),
    ,
    transform 0.3s var(--ease-smooth);
  background-color: var(--background-white);
  color: var(--text-primary);
  box-sizing: border-box;
  min-width: 0;
}

/* Focus states */
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary-blue);
  outline: none;
}

/* Validation states */
.contact-form input:valid,
.contact-form textarea:valid {
  border-color: #10b981;
}

.contact-form input:invalid,
.contact-form textarea:invalid {
  border-color: #ef4444;
}

.contact-form input:focus:valid,
.contact-form textarea:focus:valid {
  border-color: #10b981;
}

.contact-form input:focus:invalid,
.contact-form textarea:focus:invalid {
  border-color: #ef4444;
}

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

/* Form Helper Text */
.form-helper-text {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  line-height: 1.4;
}

.form-helper-text .icon {
  margin-right: 0.25rem;
  opacity: 0.7;
}

.form-group {
  margin-bottom: var(--space-md);
}

.contact-form .btn {
  width: 100%;
  margin-top: var(--space-lg);
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

@media (max-width: 1024px) {
  .contact-content {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
}

@media (max-width: 768px) {
  .contact-form {
    padding: var(--space-xl);
  }

  .contact-form input,
  .contact-form textarea {
    padding: 1rem;
  }
}

/* ===== FOOTER ===== */
.footer {
  background: linear-gradient(135deg, var(--primary-navy) 0%, #2d3d42 100%);
  color: var(--text-white);
  padding: var(--space-3xl) 0 var(--space-lg);
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 20% 20%, rgba(169, 206, 244, 0.05) 0%, transparent 50%),
              radial-gradient(ellipse at 80% 80%, rgba(126, 160, 183, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-2xl);
  position: relative;
  z-index: 1;
}

.footer-brand h3 {
  font-family: var(--font-display);
  font-size: 1rem; /* Reduced from 1.75rem - 3-tier system: Medium */
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--primary-blue);
}

.footer-brand p {
  opacity: 0.9;
  font-style: italic;
  font-size: 0.875rem; /* 3-tier system: Small */
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.footer-column h4 {
  font-size: 0.875rem; /* Reduced from 1.125rem - 3-tier system: Small */
  font-weight: 600;
  margin-bottom: var(--space-md);
  color: var(--primary-blue);
}

.footer-column ul {
  list-style: none;
}

.footer-column li {
  margin-bottom: var(--space-xs);
}

.footer-column a {
  color: var(--text-white);
  opacity: 0.8;
  transition: opacity var(--transition-fast), color var(--transition-fast);
}

.footer-column a:hover {
  opacity: 1;
  color: var(--primary-blue);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  opacity: 0.8;
}

.footer-legal {
  display: flex;
  gap: var(--space-lg);
}

.footer-legal a {
  opacity: 0.8;
  transition: opacity var(--transition-fast), color var(--transition-fast);
}

.footer-legal a:hover {
  opacity: 1;
  color: var(--primary-blue);
}

@media (max-width: 1024px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    text-align: center;
  }

  .footer-brand h3 {
    font-size: 1rem; /* Reduced from 1.75rem - 3-tier system: Medium */
  }

  .footer-column h4 {
    font-size: 0.875rem; /* Reduced from 1.125rem - 3-tier system: Small */
  }

  .footer-column a,
  .footer-brand p {
    font-size: 0.875rem; /* 3-tier system: Small */
  }

  .footer-links {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }
}

@media (max-width: 768px) {
  .footer-links {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }
}

/* ===== MODERN ANIMATION SYSTEM ===== */
/* Professional healthcare/tech aesthetic - smooth, polished, trustworthy */

/* ===== ENTRY ANIMATIONS ===== */
/* Elements enter with smooth fade + subtle movement + scale */

/* Fade Up - Default entry animation */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.97);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Hero Fade In - For tagline badge */
@keyframes heroFadeIn {
  0% {
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Hero Slide Up - For title lines */
@keyframes heroSlideUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fade Down */
@keyframes fadeInDown {
  0% {
    opacity: 0;
    transform: translateY(-30px) scale(0.97);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Fade Left */
@keyframes fadeInLeft {
  0% {
    opacity: 0;
    transform: translateX(-30px) scale(0.97);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

/* Fade Right */
@keyframes fadeInRight {
  0% {
    opacity: 0;
    transform: translateX(30px) scale(0.97);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

/* Fade Scale - Centered reveal */
@keyframes fadeInScale {
  0% {
    opacity: 0;
    transform: scale(0.92);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Fade Rotate - Subtle rotation with fade */
@keyframes fadeInRotate {
  0% {
    opacity: 0;
    transform: translateY(20px) rotate(-2deg) scale(0.97);
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotate(0deg) scale(1);
  }
}

/* ===== EXIT ANIMATIONS ===== */
/* Smooth exit when elements are hidden/removed */

/* Fade Out Up */
@keyframes fadeOutUp {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
}

/* Fade Out Down */
@keyframes fadeOutDown {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
}

/* Fade Out Scale */
@keyframes fadeOutScale {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(0.92);
  }
}

/* ===== ENTRY ANIMATION CLASSES ===== */
/* Apply to elements for entrance animations */

.fade-in-up {
  animation: fadeInUp 0.6s var(--ease-decelerated) forwards;
}

.fade-in-down {
  animation: fadeInDown 0.6s var(--ease-decelerated) forwards;
}

.fade-in-left {
  animation: fadeInLeft 0.6s var(--ease-decelerated) forwards;
}

.fade-in-right {
  animation: fadeInRight 0.6s var(--ease-decelerated) forwards;
}

.fade-in-scale {
  animation: fadeInScale 0.5s var(--ease-smooth) forwards;
}

.fade-in-rotate {
  animation: fadeInRotate 0.7s var(--ease-bounce) forwards;
}

/* ===== EXIT ANIMATION CLASSES ===== */
/* Apply to elements being removed/hidden */

.fade-out-up {
  animation: fadeOutUp 0.4s var(--ease-accelerated) forwards;
}

.fade-out-down {
  animation: fadeOutDown 0.4s var(--ease-accelerated) forwards;
}

.fade-out-scale {
  animation: fadeOutScale 0.4s var(--ease-accelerated) forwards;
}

/* ===== STAGGERED DELAY CLASSES ===== */
/* For sequential reveals of multiple elements */

.stagger-1 { animation-delay: 0.08s; }
.stagger-2 { animation-delay: 0.16s; }
.stagger-3 { animation-delay: 0.24s; }
.stagger-4 { animation-delay: 0.32s; }
.stagger-5 { animation-delay: 0.40s; }
.stagger-6 { animation-delay: 0.48s; }
.stagger-7 { animation-delay: 0.56s; }
.stagger-8 { animation-delay: 0.64s; }
.stagger-9 { animation-delay: 0.72s; }
.stagger-10 { animation-delay: 0.80s; }

/* ===== PAGE LOAD ANIMATIONS ===== */
/* Initial page load sequence */

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

/* Apply to main content wrapper for page load */
.page-load-animate > * {
  opacity: 0;
  animation: pageLoadReveal 0.5s var(--ease-decelerated) forwards;
}

/* ===== HOVER ENHANCEMENTS ===== */
/* Professional micro-interactions on hover */

/* Subtle lift with shadow */
.hover-lift {
  transition: transform 0.4s var(--ease-smooth);
}

.hover-lift:hover {
  transform: translateY(-4px);
}

/* Glow effect */
.hover-glow {
  transition: transform 0.4s var(--ease-smooth);
}

.hover-glow:hover {
  transform: translateY(-2px);
}

/* Scale reveal */
.hover-scale {
  transition: transform 0.4s var(--ease-smooth);
}

.hover-scale:hover {
  transform: scale(1.03);
}

/* ===== SPECIAL ANIMATIONS ===== */

/* Shimmer effect for loading states */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.shimmer {
  background: linear-gradient(
    90deg,
    rgba(169, 206, 244, 0.05) 0%,
    rgba(169, 206, 244, 0.15) 50%,
    rgba(169, 206, 244, 0.05) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 2s ease-in-out infinite;
}

/* Pulse for attention */
@keyframes subtlePulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.85;
    transform: scale(1.02);
  }
}

.subtle-pulse {
  animation: subtlePulse 3s ease-in-out infinite;
}

/* Slide in from sides (for panels/modals) */
@keyframes slideInLeft {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.slide-in-left {
  animation: slideInLeft 0.5s var(--ease-decelerated) forwards;
}

.slide-in-right {
  animation: slideInRight 0.5s var(--ease-decelerated) forwards;
}

/* ===== UTILITY CLASSES ===== */

/* Prevent animation during entry */
.no-animation {
  animation: none !important;
}

/* Faster animation variant */
.animate-fast {
  animation-duration: 0.3s !important;
}

/* Slower animation variant */
.animate-slow {
  animation-duration: 0.8s !important;
}

/* Fill mode - element stays in final state */
.animate-forwards {
  animation-fill-mode: forwards;
}

/* ===== ELEMENT-SPECIFIC ENHANCEMENTS ===== */

/* Navbar entry animation */
.navbar-entry {
  animation: fadeInDown 0.6s var(--ease-bounce) forwards;
}

/* Hero content cascade */
.hero-tagline-entry {
  opacity: 0;
}

.hero-title-entry {
  /* Parent container - let children animate */
}

.hero-subtitle-entry {
  animation: fadeInUp 0.7s var(--ease-decelerated) 0.5s forwards;
  opacity: 0;
}

.hero-buttons-entry {
  animation: fadeInUp 0.7s var(--ease-decelerated) 0.65s forwards;
  opacity: 0;
}

/* Card hover enhancements */
.card-entry {
  animation: fadeInScale 0.5s var(--ease-smooth) forwards;
}

/* Smooth filter transitions */
.filter-transition {
  transition:
    opacity 0.4s var(--ease-smooth),
    transform 0.4s var(--ease-smooth),
    filter 0.4s var(--ease-smooth);
}

/* Text reveal animation */
@keyframes textReveal {
  0% {
    opacity: 0;
    transform: translateY(10px);
    filter: blur(4px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.text-reveal {
  animation: textReveal 0.6s var(--ease-decelerated) forwards;
}

/* Icon bounce on hover */
@keyframes iconBounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

.icon-bounce:hover {
  animation: iconBounce 0.5s var(--ease-bounce);
}

/* ===== PRE-ANIMATION STATES ===== */
/* Initial states before animation triggers */

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.6s var(--ease-decelerated),
    transform 0.6s var(--ease-decelerated);
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll.from-left {
  transform: translateX(-30px);
}

.animate-on-scroll.from-right {
  transform: translateX(30px);
}

.animate-on-scroll.from-left.is-visible,
.animate-on-scroll.from-right.is-visible {
  transform: translate(0);
}

.animate-on-scroll.scale-in {
  transform: scale(0.95);
}

.animate-on-scroll.scale-in.is-visible {
  transform: scale(1);
}

/* ===== ENHANCED HOVER EFFECTS ===== */
/* Professional micro-interactions for various elements */

/* Enhanced button hover with glow */
.btn:not(.magnetic) {
  transition:
    transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    ,
    background-color 0.3s var(--ease-smooth),
    border-color 0.3s var(--ease-smooth),
    color 0.3s var(--ease-smooth);
  will-change: transform;
}

.btn:not(.magnetic):hover {
  transform: translateY(-3px) scale(1.02);
}

.btn:not(.magnetic):active {
  transform: translateY(-1px) scale(1.01);
  transition: transform 0.1s var(--ease-emphasized);
}

/* Link hover with arrow slide */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.3s var(--ease-smooth);
}

.link-arrow:hover {
  gap: 0.75rem;
}

.link-arrow svg {
  transition: transform 0.3s var(--ease-smooth);
}

.link-arrow:hover svg {
  transform: translateX(4px);
}

/* Card hover effects for various card types */
.portfolio-item,
.download-category,
.blog-card,
.faq-item,
.glossary-term {
  transition:
    transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    ,
    border-color 0.4s var(--ease-smooth);
  will-change: transform;
}

.portfolio-item:hover,
.download-category:hover,
.blog-card:hover {
  transform: translateY(-6px);
}

/* Icon hover bounce */
.icon-container {
  transition:
    transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    background-color 0.3s var(--ease-smooth),
    color 0.3s var(--ease-smooth);
}

.icon-container:hover {
  transform: translateY(-4px) scale(1.05);
}

/* Image hover zoom with smooth easing */
.zoom-image {
  overflow: hidden;
}

.zoom-image img {
  transition: transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: transform;
}

.zoom-image:hover img {
  transform: scale(1.1);
}

/* Smooth focus states - visible outline for accessibility */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
.btn:focus-visible,
.nav-link:focus-visible,
.form-input:focus-visible,
.social-button:focus-visible {
  outline: 3px solid var(--accent-blue, #3b82f6);
  outline-offset: 2px;
}

/* Remove outline on mouse-only :focus for cleaner appearance */
button:focus:not(:focus-visible),
a:focus:not(:focus-visible),
input:focus:not(:focus-visible),
textarea:focus:not(:focus-visible) {
  outline: none;
}

/* Underline slide effect for links */
.underline-slide {
  position: relative;
  text-decoration: none;
}

.underline-slide::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: currentColor;
  transition: width 0.4s var(--ease-smooth);
}

.underline-slide:hover::after {
  width: 100%;
}

/* Ripple effect for buttons (optional enhancement) */
.ripple-effect {
  position: relative;
  overflow: hidden;
}

.ripple-effect::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease-out, height 0.6s ease-out, opacity 0.6s ease-out;
  opacity: 0;
  pointer-events: none;
}

.ripple-effect:active::before {
  width: 300px;
  height: 300px;
  opacity: 1;
  transition: 0s;
}

/* Smooth height transitions for accordions/dropdowns */
.smooth-height {
  transition:
    max-height 0.5s cubic-bezier(0.4, 0.0, 0.2, 1),
    opacity 0.4s var(--ease-smooth),
    padding 0.4s var(--ease-smooth);
}

/* Background shift on hover */
.bg-shift {
  background-size: 200% 200%;
  transition: background-position 0.6s var(--ease-smooth);
}

.bg-shift:hover {
  background-position: 100% 100%;
}

/* Enhanced form input focus */
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  transform: translateY(-2px);
  
  transition:
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    ,
    border-color 0.3s var(--ease-smooth);
}

/* Testimonial card hover */
.testimonial-card {
  transition:
    transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    background 0.4s var(--ease-smooth),
    ;
}

.testimonial-card:hover {
  transform: translateY(-8px) scale(1.03);
  background: var(--gradient-card-hover);
}

/* Dropdown card enhancements */
.dropdown-card {
  transition:
    transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    background-color 0.3s var(--ease-smooth),
    ;
}

.dropdown-card:hover {
  transform: translateY(-3px) scale(1.01);
}

/* Navbar link hover with underline animation */
.nav-link::after {
  width: 0;
  height: 2px;
  bottom: -4px;
  transition: width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

/* Smooth color transitions for text */
.text-color-shift {
  transition: color 0.4s var(--ease-smooth);
}

/* Accessible reduced motion overrides */
@media (prefers-reduced-motion: reduce) {
  .btn,
  .portfolio-item,
  .download-category,
  .blog-card,
  .faq-item,
  .glossary-term,
  .testimonial-card,
  .dropdown-card,
  .icon-container {
    transition:
      transform 0.2s var(--ease-smooth),
      ,
      background-color 0.2s var(--ease-smooth),
      color 0.2s var(--ease-smooth);
  }

  .zoom-image img {
    transition: transform 0.3s var(--ease-smooth);
  }

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

  .underline-slide::after {
    transition: width 0.2s var(--ease-smooth);
  }
}

/* ===== ACCESSIBILITY ENHANCEMENTS ===== */
@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;
  }
}

/* Focus indicators - visible for keyboard, subtle for mouse */
*:focus:not(:focus-visible) {
  outline: none;
}

/* Ensure focus-visible is always visible for keyboard navigation */
*:focus-visible {
  outline: 3px solid var(--accent-blue, #7ea0b7);
  outline-offset: 2px;
}

/* Skip to main content link for keyboard users */
.skip-to-content {
  position: fixed;
  top: -100px;
  left: 0;
  background: var(--primary-blue);
  color: var(--text-white);
  padding: 12px 20px;
  z-index: 99999;
  text-decoration: none;
  font-weight: 600;
  transition: top 0.2s ease;
  
}

.skip-to-content:focus {
  top: 0;
  outline: 3px solid var(--text-white);
  outline-offset: 2px;
}

/* Screen reader only text */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --border-light: #000000;
    --border-medium: #000000;
  }
}

/* ===== LOADING STATES ===== */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.spinner {
  border: 2px solid transparent;
  border-top: 2px solid var(--primary-blue);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
  display: inline-block;
  margin-right: var(--space-xs);
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ===== RESPONSIVE IMAGE OPTIMIZATION ===== */
@media (max-width: 768px) {
  .hero-image img,
  .specialty-image img,
  .menu-item-image img,
  .about-image img {
    object-position: center;
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  .navbar,
  .hamburger,
  .hero-buttons,
  .newsletter,
  .contact-form,
  .footer {
    display: none !important;
  }

  body {
    background: white !important;
    color: black !important;
  }

  .hero-title,
  .section-title {
    color: black !important;
  }
}

/* Menu filter hidden state */
/* Note: JavaScript handles exit animations before adding this class */
.hidden {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Exit animation state - applied before hidden class */
.is-exiting {
  pointer-events: none;
}

.portfolio-item.hidden,
.download-category.hidden,
.menu-item.hidden {
  display: none !important;
}

/* ===== PORTFOLIO STYLES ===== */
.portfolio-hero {
  min-height: 70vh;
}

.portfolio-filter-section {
  padding: calc(80px + var(--space-xl)) 0 var(--space-lg);
  background: var(--gradient-section-subtle);
  border: none;
  position: relative;
}

.portfolio-filter-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-mesh-subtle);
  opacity: 0.4;
  pointer-events: none;
}

.portfolio-grid-section {
  padding: 0 0 var(--space-3xl);
  background: var(--gradient-section-light);
  border: none;
  position: relative;
}

.portfolio-grid-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-mesh-subtle);
  opacity: 0.5;
  pointer-events: none;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-lg);
}

.portfolio-item {
  background: var(--gradient-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  
  transition: all var(--transition-normal);
  opacity: 1;
  transform: translateY(0);
  border: 1px solid rgba(169, 206, 244, 0.08);
}

.portfolio-item:hover {
  transform: translateY(-8px);
  background: var(--gradient-card-hover);
  box-shadow: 0 20px 40px rgba(54, 73, 78, 0.12);
}

.portfolio-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

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

.portfolio-item:hover .portfolio-image img {
  transform: scale(1.05);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(22, 25, 37, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
  visibility: visible;
}

.portfolio-actions {
  display: flex;
  gap: var(--space-sm);
}

.portfolio-actions .btn {
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.875rem 1.5rem;
  border-width: 2px;
  transition: all var(--transition-normal);
  
  
}

.portfolio-actions .btn-primary {
  background-color: var(--primary-blue);
  color: var(--text-white);
  border-color: var(--primary-blue);
  font-weight: 600;
}

.portfolio-actions .btn-primary:hover {
  background-color: var(--primary-navy);
  color: var(--text-white);
  border-color: var(--primary-navy);
  transform: translateY(-2px);
}

.portfolio-actions .btn-secondary {
  background-color: var(--text-white);
  color: var(--primary-navy);
  border-color: var(--text-white);
  backdrop-filter: blur(10px);
  font-weight: 600;
}

.portfolio-actions .btn-secondary:hover {
  background-color: var(--primary-navy);
  color: var(--text-white);
  border-color: var(--primary-navy);
  transform: translateY(-2px);
}

/* Demo Button Style */
.portfolio-actions .btn-demo {
  background: linear-gradient(135deg, var(--accent-gold) 0%, #d4b76a 100%);
  color: var(--text-white);
  border-color: var(--accent-gold);
  font-weight: 600;
  
}

.portfolio-actions .btn-demo:hover {
  background: linear-gradient(135deg, #d4b76a 0%, var(--accent-gold) 100%);
  color: var(--text-white);
  border-color: #d4b76a;
  transform: translateY(-2px) scale(1.05);
  
}

/* Video Modal Styles */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.video-modal.active {
  opacity: 1;
  visibility: visible;
}

.video-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
}

.video-modal-content {
  position: relative;
  width: 90%;
  max-width: 900px;
  background: var(--background-white);
  border-radius: var(--radius-xl);
  padding: var(--space-md);
  
  transform: scale(0.9) translateY(20px);
  transition: transform var(--transition-normal);
}

.video-modal.active .video-modal-content {
  transform: scale(1) translateY(0);
}

.video-modal-close {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  width: 40px;
  height: 40px;
  background: var(--background-white);
  border: 2px solid var(--border-medium);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
  transition: all var(--transition-fast);
  z-index: 1;
}

.video-modal-close:hover {
  background: var(--primary-navy);
  border-color: var(--primary-navy);
  color: var(--text-white);
  transform: rotate(90deg);
}

.video-modal-iframe-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--primary-navy);
}

.video-modal-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.video-modal-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--primary-navy);
}

.video-modal-title {
  margin-top: var(--space-md);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .video-modal-content {
    width: 95%;
    padding: var(--space-sm);
  }

  .video-modal-iframe-container {
    aspect-ratio: 16 / 9;
  }

  .video-modal-title {
    font-size: 1rem;
  }

  .video-modal-close {
    width: 36px;
    height: 36px;
  }
}

.portfolio-content {
  position: relative;
  padding: var(--space-lg);
  padding-bottom: 4rem; /* Add extra padding to account for the absolute positioned label */
}

.portfolio-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.portfolio-description {
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
  font-size: 0.95rem;
  line-height: 1.5;
}

.product-features,
.product-audience {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
  line-height: 1.5;
}

.product-features strong,
.product-audience strong {
  color: var(--primary-navy);
  font-weight: 600;
}

.portfolio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
}

.tag {
  background: var(--background-mint);
  color: var(--text-secondary);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-lg);
  font-size: 0.8rem;
  font-weight: 500;
}

.portfolio-category {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

/* Status-based styling for portfolio categories */
.portfolio-category.ready {
  background: #10B981; /* Green for ready */
  color: white;
}

.portfolio-category.in-progress {
  background: #F59E0B; /* Orange for in progress */
  color: white;
}

.portfolio-category.beta {
  background: #8B5CF6; /* Purple for beta */
  color: white;
}

.portfolio-category.deprecated {
  background: #EF4444; /* Red for deprecated */
  color: white;
}

.portfolio-cta {
  background: var(--primary-navy);
  color: var(--text-white);
  padding: var(--space-3xl) 0;
  text-align: center;
}

.cta-content h2 {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
  color: var(--text-white);
}

.cta-content p {
  font-size: 1.15rem;
  margin-bottom: var(--space-xl);
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

.cta-buttons .btn {
  min-width: 200px;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 1rem 2.5rem;
  
}

.portfolio-cta .btn-primary {
  background-color: var(--primary-blue);
  color: var(--text-white);
  border-color: var(--primary-blue);
  font-weight: 600;
}

.portfolio-cta .btn-primary:hover {
  background-color: var(--primary-navy);
  color: var(--text-white);
  border-color: var(--primary-navy);
  transform: translateY(-3px);
}

.portfolio-cta .btn-secondary {
  background-color: transparent;
  color: var(--text-white);
  border-color: var(--text-white);
  font-weight: 600;
}

.portfolio-cta .btn-secondary:hover {
  background-color: var(--text-white);
  color: var(--primary-navy);
  border-color: var(--text-white);
  transform: translateY(-3px);
}

/* Filter animation for portfolio items */
.portfolio-item.fade-out {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

.portfolio-item.fade-in {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile responsiveness for portfolio */
@media (max-width: 768px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .portfolio-actions {
    flex-direction: column;
  }

  .cta-content h2 {
    font-size: 2rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-buttons .btn {
    width: 100%;
    max-width: 280px;
  }
}

/* ===== DOWNLOADS TABLE STYLES ===== */
.downloads-tables {
  display: flex;
  flex-direction: column;
  gap: var(--space-3xl);
  margin-top: var(--space-xl);
}

.download-category {
  background-color: var(--background-white);
  border-radius: var(--radius-lg);

  overflow: hidden;
  transition: all var(--transition-normal);
  box-shadow: 0 4px 16px rgba(54, 73, 78, 0.06);
}

.download-category:hover {
  box-shadow: 0 12px 32px rgba(54, 73, 78, 0.1);
}
.category-header {
  background: linear-gradient(135deg, var(--primary-navy), var(--primary-blue));
  color: var(--text-white);
  padding: var(--space-lg) var(--space-xl);
  text-align: center;
}

.category-header h2,
.category-header h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 var(--space-xs) 0;
  font-family: var(--font-display);
}

.category-header p {
  margin: 0;
  opacity: 0.9;
  font-size: 1rem;
}

.download-table-container {
  padding: 0;
  overflow-x: auto;
  box-shadow: 0 2px 8px rgba(54, 73, 78, 0.04);
}

.download-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.download-table th {
  background-color: var(--background-mint);
  color: var(--text-primary);
  font-weight: 600;
  padding: 1rem var(--space-lg);
  text-align: left;
  border-bottom: 2px solid var(--border-light);
  font-family: var(--font-display);
}

.download-table th:first-child {
  width: 60%;
}

.download-table th:nth-child(2) {
  width: 20%;
  text-align: center;
}

.download-table th:last-child {
  width: 20%;
  text-align: center;
}

.download-table td {
  padding: var(--space-lg);
  border-bottom: 1px solid var(--border-light);
  vertical-align: top;
}

.download-table td:nth-child(2),
.download-table td:last-child {
  text-align: center;
  vertical-align: middle;
}

.download-table tr:hover {
  background-color: var(--background-light);
}

.download-table tr:last-child td {
  border-bottom: none;
}

.download-table strong {
  display: block;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
  line-height: 1.3;
}

.download-table .description {
  display: block;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.4;
}

.download-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
  color: var(--text-white);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all var(--transition-normal);
  border: none;
  min-width: 90px;
}

.download-btn:hover {
  background: linear-gradient(135deg, var(--primary-navy), var(--primary-blue));
  transform: translateY(-1px);
}

.download-btn:active {
  transform: translateY(0);
}

/* Service Card */
.service-card {
  background-color: var(--background-white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  transition: all var(--transition-normal);
  box-shadow: 0 4px 16px rgba(54, 73, 78, 0.06);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(54, 73, 78, 0.12);
}

.service-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-md);
  color: var(--primary-blue);
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.service-description {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}


/* Filter functionality for download categories */
.download-category.hidden {
  display: none !important;
}

/* Mobile responsiveness for download tables */
@media (max-width: 1024px) {
  .download-table th:first-child {
    width: 50%;
  }

  .download-table th:nth-child(2) {
    width: 25%;
  }

  .download-table th:last-child {
    width: 25%;
  }

  .category-header {
    padding: var(--space-md) var(--space-lg);
  }

  .category-header h3 {
    font-size: 1.3rem;
  }
}

@media (max-width: 768px) {
  .downloads-tables {
    gap: var(--space-xl);
  }

  .download-table-container {
    padding: 0;
    margin: 0 -var(--space-sm);
  }

  .download-table {
    font-size: 0.85rem;
  }

  .download-table th,
  .download-table td {
    padding: var(--space-sm);
  }

  .download-table th:first-child {
    width: 45%;
  }

  .download-table th:nth-child(2) {
    width: 25%;
  }

  .download-table th:last-child {
    width: 30%;
  }

  .download-table strong {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
  }

  .download-table .description {
    font-size: 0.8rem;
    line-height: 1.3;
  }

  .download-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    min-width: 75px;
  }

  .category-header {
    padding: var(--space-sm) var(--space-md);
  }

  .category-header h3 {
    font-size: 1.2rem;
  }

  .category-header p {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .download-table th:nth-child(2) {
    display: none;
  }

  .download-table td:nth-child(2) {
    display: none;
  }

  .download-table th:first-child {
    width: 65%;
  }

  .download-table th:last-child {
    width: 35%;
  }

  .trust-badges {
    gap: 2px;
  }

  .trust-badge {
    padding: 2px 3px;
    font-size: 0.4rem;
    letter-spacing: 0;
    transform: scale(0.9);
  }

  .trust-text {
    font-size: 0.7rem;
  }
}

@media (max-width: 360px) {
  .trust-badges {
    gap: 1px;
  }

  .trust-badge {
    padding: 2px 2px;
    font-size: 0.35rem;
    letter-spacing: 0;
    transform: scale(0.85);
  }

  .trust-text {
    font-size: 0.6rem;
  }
}

/* ===== PROCESS SECTION STYLES ===== */
.process-section {
  background: var(--gradient-section-light);
  padding: var(--space-3xl) 0;
  position: relative;
}

.process-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-mesh-subtle);
  opacity: 0.5;
  pointer-events: none;
}

.process-section .section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.process-section .section-title {
  color: var(--primary-navy);
  font-size: 2.5rem;
  margin-bottom: var(--space-sm);
}

.process-section .section-subtitle {
  color: var(--text-muted);
  font-size: 1.15rem;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
}

.process-step {
  background: var(--gradient-card);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  
  transition: all var(--transition-normal);
  position: relative;
  border: 1px solid rgba(169, 206, 244, 0.08);
}

.process-step:hover {
  transform: translateY(-5px);
  background: var(--gradient-card-hover);
}

.step-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-blue);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: var(--space-md);
}

.process-step h3 {
  font-size: 1.3rem;
  color: var(--primary-navy);
  margin-bottom: var(--space-sm);
  font-family: var(--font-display);
}

.process-step p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

@media (max-width: 1024px) {
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .process-grid {
    grid-template-columns: 1fr;
  }
  .process-section .section-title {
    font-size: 2rem;
  }
}

/* ===== WHY CHOOSE SECTION STYLES ===== */
.why-choose-section {
  background: var(--gradient-section-subtle);
  padding: var(--space-3xl) 0;
  position: relative;
}

.why-choose-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-mesh-subtle);
  opacity: 0.4;
  pointer-events: none;
}

.why-choose-section .section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.why-choose-section .section-title {
  color: var(--primary-navy);
  font-size: 2.5rem;
  margin-bottom: var(--space-sm);
}

.why-choose-section .section-subtitle {
  color: var(--text-muted);
  font-size: 1.15rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
}

.feature-card {
  background: var(--gradient-card);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all var(--transition-normal);
  border: 1px solid var(--border-light);
}

.feature-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--primary-blue);
  background: var(--gradient-card-hover);
  box-shadow: 0 20px 40px rgba(54, 73, 78, 0.12);
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-md);
  color: var(--primary-blue);
}

.feature-icon svg {
  width: 100%;
  height: 100%;
}

.feature-card h3 {
  font-size: 1.2rem;
  color: var(--primary-navy);
  margin-bottom: var(--space-sm);
  font-family: var(--font-display);
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
  .why-choose-section .section-title {
    font-size: 2rem;
  }
}

/* ===== CASE STUDY SECTION STYLES ===== */
.case-study-section {
  background: var(--gradient-section-light);
  padding: var(--space-3xl) 0;
  position: relative;
}

.case-study-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-mesh-subtle);
  opacity: 0.5;
  pointer-events: none;
}

.case-study-section .section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.case-study-section .section-title {
  color: var(--primary-navy);
  font-size: 2.5rem;
  margin-bottom: var(--space-sm);
}

.case-study-section .section-subtitle {
  color: var(--text-muted);
  font-size: 1.15rem;
}

.case-study-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: start;
}

.case-study-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  
}

.case-study-image img {
  width: 100%;
  height: auto;
  display: block;
}

.case-study-details h3 {
  font-size: 1.3rem;
  color: var(--primary-navy);
  margin-bottom: var(--space-sm);
  margin-top: var(--space-lg);
  font-family: var(--font-display);
}

.case-study-details h3:first-child {
  margin-top: 0;
}

.case-study-details p,
.case-study-details ul {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
}

.case-study-details ul {
  padding-left: var(--space-md);
}

.case-study-details li {
  margin-bottom: var(--space-xs);
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.result-item {
  background: var(--background-white);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  text-align: center;
  
}

.result-number {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-blue);
}

.result-label {
  display: block;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: var(--space-xs);
}

.case-study-quote {
  background: var(--background-white);
  border-left: 4px solid var(--primary-blue);
  padding: var(--space-lg);
  margin-top: var(--space-xl);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
}

.case-study-quote p {
  color: var(--text-primary);
  font-size: 1.1rem;
  margin-bottom: var(--space-sm);
}

.case-study-quote footer {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 600;
  font-style: normal;
}

@media (max-width: 1024px) {
  .case-study-content {
    grid-template-columns: 1fr;
  }
  .case-study-image {
    max-width: 600px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .results-grid {
    grid-template-columns: 1fr;
  }
  .case-study-section .section-title {
    font-size: 2rem;
  }
}

/* ===== FAQ SECTION STYLES ===== */
.faq-section {
  background: var(--gradient-section-subtle);
  padding: var(--space-3xl) 0;
  position: relative;
}

.faq-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-mesh-subtle);
  opacity: 0.4;
  pointer-events: none;
}

.faq-section .section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.faq-section .section-title {
  color: var(--primary-navy);
  font-size: 2.5rem;
  margin-bottom: var(--space-sm);
}

.faq-section .section-subtitle {
  color: var(--text-muted);
  font-size: 1.15rem;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
  max-width: 1000px;
  margin: 0 auto;
}

.faq-item {
  background: var(--gradient-card);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  transition: all var(--transition-normal);
}

.faq-item:hover {
  border-color: var(--primary-blue);
  background: var(--gradient-card-hover);
}

.faq-item h3 {
  font-size: 1.1rem;
  color: var(--primary-navy);
  margin-bottom: var(--space-sm);
  font-family: var(--font-display);
}

.faq-item p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .faq-grid {
    grid-template-columns: 1fr;
  }
  .faq-section .section-title {
    font-size: 2rem;
  }
}

/* ===== CHAT BOT STYLES ===== */
.chat-widget {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1100;
  font-family: var(--font-primary);
}

.chat-toggle {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-navy), var(--primary-blue));
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  
  transition: all var(--transition-smooth);
}

.chat-toggle:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-navy));
}

.chat-container {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 400px;
  height: 580px;
  background: var(--background-white);
  border-radius: var(--radius-xl);
  
  border: 1px solid var(--border-light);
  display: none;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(20px);
  opacity: 0;
  transition: all var(--transition-smooth);
  z-index: 1100;
}

.chat-container.active {
  display: flex;
  transform: translateY(0);
  opacity: 1;
}

.chat-header {
  background: linear-gradient(135deg, var(--primary-navy), var(--primary-blue));
  color: var(--text-white);
  padding: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-title h4 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  font-family: var(--font-display);
}

.chat-status {
  font-size: 0.875rem;
  opacity: 0.9;
  margin-top: 0.25rem;
  display: block;
}

.chat-header-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.chat-close,
.chat-end-conversation {
  background: none;
  border: none;
  color: var(--text-white);
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-close:hover,
.chat-end-conversation:hover {
  background: rgba(255, 255, 255, 0.1);
}

.chat-end-conversation {
  position: relative;
}

.chat-end-conversation[title]:hover::after {
  content: attr(title);
  position: absolute;
  top: -30px;
  right: 0;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  white-space: nowrap;
  z-index: 1000;
}

.chat-messages {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  background: var(--background-light);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.chat-message {
  display: flex;
  flex-direction: column;
  max-width: 85%;
}

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

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

.message-content {
  background: var(--background-white);
  padding: 0.875rem 1rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  
}

.user-message .message-content {
  background: linear-gradient(135deg, var(--primary-navy), var(--primary-blue));
  color: var(--text-white);
  border: none;
}

.message-content p {
  margin: 0;
  line-height: 1.5;
  font-size: 0.9rem;
}

.message-content p + p {
  margin-top: 0.5rem;
}

.message-time {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.375rem;
  text-align: left;
}

.user-message .message-time {
  text-align: right;
}

/* ===== CHAT IDENTIFICATION FORM STYLES ===== */
.chat-identification-form {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  height: 100%;
  justify-content: center;
  background: var(--background-light);
  overflow-y: auto;
}

.identification-form-content {
  text-align: center;
}

.identification-form-content h4 {
  margin: 0 0 0.75rem 0;
  color: var(--primary-navy);
  font-size: 1.25rem;
  font-weight: 700;
  font-family: var(--font-display);
  line-height: 1.3;
}

.identification-intro {
  margin: 0 0 1.5rem 0;
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.4;
}

.identification-form {
  text-align: left;
}

.identification-form .form-group {
  position: relative;
  margin-bottom: 1rem;
}

.form-label {
  position: absolute;
  left: 0.875rem;
  top: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  background-color: var(--background-white);
  padding: 0 0.25rem;
  pointer-events: none;
  transform-origin: left top;
}

.form-input {
  width: 100%;
  padding: 0.75rem 0.875rem;
  border: 2px solid var(--border-medium);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-family: var(--font-primary);
  background: var(--background-white);
  transition:
    border-color var(--transition-fast),
    ,
    transform 0.3s var(--ease-smooth);
  outline: none;
  box-sizing: border-box;
}

.form-input:focus {
  border-color: var(--primary-blue);
}

.form-input:focus + .form-label,
.form-input:not(:placeholder-shown) + .form-label {
  transform: translateY(-28px) scale(0.85);
  color: var(--primary-blue);
  top: 0;
}

/* Validation states for identification form */
.form-input:valid:not(:placeholder-shown) {
  border-color: #10b981;
}

.form-input:invalid:not(:placeholder-shown) {
  border-color: #ef4444;
}

.form-input:focus:valid + .form-label {
  color: #10b981;
}

.form-input:focus:invalid + .form-label {
  color: #ef4444;
}

.form-input:invalid {
  border-color: #e74c3c;
}

.form-input.error {
  border-color: #e74c3c;
  background: #fdf2f2;
}

.start-chat-button {
  width: 100%;
  background-color: var(--primary-blue);
  color: var(--text-white);
  border: 2px solid var(--primary-blue);
  border-radius: var(--radius-md);
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 500;
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  min-height: 48px;
  margin-top: 0.75rem;
}

.start-chat-button:hover:not(:disabled) {
  background-color: var(--accent-blue);
  border-color: var(--accent-blue);
  transform: translateY(-2px);
}

.start-chat-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.button-loading {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.button-loading::after {
  content: '';
  width: 14px;
  height: 14px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.chat-form-error {
  margin-top: 0.75rem;
  padding: 0.625rem 0.875rem;
  background: #fdf2f2;
  border: 1px solid #e74c3c;
  border-radius: var(--radius-md);
  color: #e74c3c;
  font-size: 0.8rem;
  text-align: center;
  line-height: 1.3;
}

.chat-form-error:empty {
  display: none;
}

/* Start New Chat Button */
.start-new-chat-btn {
  font-size: 0.875rem;
  padding: 0.625rem 1.25rem;
  min-height: 40px;
  margin-top: 1rem;
}

.start-new-chat-btn:hover {
  transform: translateY(-1px);
}

.chat-input-container {
  padding: 1rem;
  background: var(--background-white);
  border-top: 1px solid var(--border-light);
}

.chat-form {
  display: flex;
  gap: 0.75rem;
  align-items: flex-end;
}

#chat-input {
  flex: 1;
  padding: 0.875rem 1rem;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  font-size: 1rem;
  font-family: var(--font-primary);
  background: var(--background-light);
  transition: all var(--transition-smooth);
  resize: none;
  outline: none;
}

#chat-input:focus {
  border-color: var(--primary-navy);
  background: var(--background-white);
}

.chat-send {
  background: linear-gradient(135deg, var(--primary-blue), var(--secondary-light-blue));
  border: none;
  border-radius: var(--radius-lg);
  padding: 0.875rem;
  color: var(--text-white);
  transition: all var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
}

.chat-send:hover {
  background: linear-gradient(135deg, var(--secondary-light-blue), var(--primary-blue));
  transform: translateY(-1px);
}

.chat-send:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.chat-input-container.disabled #chat-input {
  background: var(--background-light);
  border-color: var(--border-light);
  color: var(--text-muted);
  cursor: not-allowed;
}

.chat-input-container.disabled .chat-send {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.chat-typing {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1rem;
  background: var(--background-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  
  align-self: flex-start;
}

.typing-dots {
  display: flex;
  gap: 0.25rem;
}

.typing-dot {
  width: 8px;
  height: 8px;
  background: var(--primary-navy);
  border-radius: 50%;
  animation: typing 1.4s infinite;
}

.typing-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing {
  0%, 60%, 100% {
    opacity: 0.3;
    transform: scale(0.8);
  }
  30% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .chat-widget {
    bottom: 1rem;
    right: 1rem;
  }

  .chat-container {
    position: fixed;
    width: calc(100% - 2rem);
    max-width: 350px;
    height: 500px;
    right: 1rem;
    left: auto;
  }

  .chat-toggle {
    width: 56px;
    height: 56px;
  }

  /* Chat form mobile optimizations */
  .chat-identification-form {
    padding: 0.875rem;
  }

  .identification-form-content h4 {
    font-size: 1.125rem;
    margin-bottom: 0.625rem;
  }

  .identification-intro {
    font-size: 0.825rem;
    margin-bottom: 1.25rem;
    line-height: 1.3;
  }

  .form-group {
    margin-bottom: 0.875rem;
  }

  .form-label {
    font-size: 0.825rem;
    margin-bottom: 0.3125rem;
  }

  .form-input {
    padding: 0.6875rem 0.75rem;
    font-size: 0.875rem;
  }

  .start-chat-button {
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
    min-height: 42px;
    margin-top: 0.625rem;
  }

  .chat-form-error {
    font-size: 0.775rem;
    padding: 0.5625rem 0.75rem;
  }
}

/* ===== FORM LOADING SPINNER ===== */
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
  margin-right: 8px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ===== FORM MESSAGES ===== */
.form-message {
  margin-top: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  line-height: 1.4;
  opacity: 0;
  transition: opacity var(--transition-normal);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.form-message.success {
  background-color: #10b981;
  color: var(--text-white);
  border: 1px solid #059669;
  opacity: 1;
  
}

.form-message.error {
  background-color: #ef4444;
  color: var(--text-white);
  border: 1px solid #dc2626;
  opacity: 1;
  
}

.form-message::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.form-message.success::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E");
}

.form-message.error::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'%3E%3Cpath fill-rule='evenodd' d='M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7 4a1 1 0 11-2 0 1 1 0 012 0zm-1-9a1 1 0 00-1 1v4a1 1 0 102 0V6a1 1 0 00-1-1z' clip-rule='evenodd'/%3E%3C/svg%3E");
}

/* ===== SCROLL TO TOP BUTTON ===== */
.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 50px;
  height: 50px;
  background: var(--primary-navy);
  color: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  z-index: var(--z-fixed);
  
}

.scroll-to-top:hover {
  background: var(--primary-blue);
  transform: translateY(-2px);
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

/* Tablet/Medium screens - gradual logo size reduction */
@media (max-width: 1024px) {
  .logo-text-main {
    font-size: 1rem;
    letter-spacing: 0.28rem;
  }

  .logo-text-tagline {
    font-size: 0.58rem;
    letter-spacing: 0.32rem;
  }

  .hero-trust {
    position: relative;
    bottom: auto;
    margin-top: var(--space-xl);
    margin-bottom: var(--space-sm);
  }

  .trust-badges {
    gap: var(--space-sm);
    flex-wrap: nowrap;
  }

  .trust-badge {
    padding: 6px 12px;
    font-size: 0.8rem;
    white-space: nowrap;
  }
}

@media (max-width: 768px) {
  .nav-logo .logo-link {
    gap: 0.05rem;
  }

  .logo-text-main {
    font-size: 0.95rem;
    letter-spacing: 0.22rem;
  }

  .logo-text-highlight {
    margin-left: 0.1rem;
  }

  .logo-text-tagline {
    font-size: 0.55rem;
    letter-spacing: 0.26rem;
  }

  .scroll-to-top {
    bottom: 1rem;
    left: 1rem;
    width: 45px;
    height: 45px;
  }
}

/* ===== HERO TRUST BADGES ===== */
.hero-trust {
  position: relative;
  margin-top: auto; /* Push to bottom of flex container */
  margin-bottom: var(--space-sm);
  left: auto;
  right: auto;
  background: transparent;
  padding: var(--space-md) 0;
  text-align: center;
  z-index: 10;
  width: 100%;
}

.trust-text {
  font-size: 0.9rem;
  color: var(--paynes-gray);
  margin-top: 12px;
  margin-bottom: 0;
  font-weight: 500;
}

.trust-badges {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  flex-wrap: nowrap; /* Keep all badges on one line */
}

.trust-badge {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(169, 206, 244, 0.2);
  border: 1px solid rgba(169, 206, 244, 0.4);
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--outer-space);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ===== HERO SPONSORS CAROUSEL ===== */
.hero-sponsors {
  position: relative;
  margin-top: var(--space-sm); /* Small gap from trust badges */
  margin-bottom: 0;
  left: auto;
  right: auto;
  background: transparent;
  padding: var(--space-sm) 0;
  height: auto;
  z-index: 5;
  width: 100%;
}

.sponsors-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.sponsors-carousel {
  position: relative;
  overflow: hidden;
}

.sponsors-track {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: var(--space-2xl);
  width: max-content;
  animation: sponsors-scroll 30s linear infinite;
}

/* Pause animation on hover */
.sponsors-track:hover {
  animation-play-state: paused;
}

/* Smooth fade edges for carousel using mask-image for true transparency */
.sponsors-carousel {
  -webkit-mask-image: linear-gradient(to right,
    transparent 0%,
    rgba(0, 0, 0, 0.1) 5%,
    rgba(0, 0, 0, 0.5) 10%,
    black 15%,
    black 85%,
    rgba(0, 0, 0, 0.5) 90%,
    rgba(0, 0, 0, 0.1) 95%,
    transparent 100%
  );
  mask-image: linear-gradient(to right,
    transparent 0%,
    rgba(0, 0, 0, 0.1) 5%,
    rgba(0, 0, 0, 0.5) 10%,
    black 15%,
    black 85%,
    rgba(0, 0, 0, 0.5) 90%,
    rgba(0, 0, 0, 0.1) 95%,
    transparent 100%
  );
}

/* Infinite scroll animation */
@keyframes sponsors-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Reduced motion support - disable animation for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  .sponsors-track {
    animation: none;
    justify-content: center;
    width: 100%;
  }

  .sponsors-carousel {
    -webkit-mask-image: none;
    mask-image: none;
  }
}

.sponsors-track .sponsor-item {
  flex: none;
  opacity: 0.5;
  filter: grayscale(100%);
  transform: scale(1);
  transition: opacity 0.3s ease, filter 0.3s ease, transform 0.3s ease;
}

.sponsors-track .sponsor-item:hover {
  opacity: 1;
  filter: grayscale(0%);
  transform: scale(1.15);
}

.sponsor-item {
  flex: none;
  width: 120px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity var(--transition-normal), filter var(--transition-normal), transform var(--transition-normal);
}

.sponsor-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: filter var(--transition-normal);
}

/* ===== TESTIMONIALS CAROUSEL ===== */
.testimonials {
  padding: var(--space-2xl) 0;
  background: linear-gradient(180deg, rgba(169, 206, 244, 0.08) 0%, rgba(169, 206, 244, 0.12) 100%);
  position: relative;
}

.testimonials::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-mesh-subtle);
  opacity: 0.7;
  pointer-events: none;
}

.testimonials-carousel {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.carousel-container {
  overflow: hidden;
  background-color: transparent;
  border-radius: var(--radius-lg);
  padding: var(--space-sm) 0;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
  padding: var(--space-md) 0;
}

.testimonial-card {
  flex: 0 0 calc(33.333333% - 1.333rem);
  margin: var(--space-sm) 0.666rem;
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  box-sizing: border-box;

  transition: all var(--transition-normal);
  border: 1px solid rgba(169, 206, 244, 0.25);
  box-shadow: 0 4px 16px rgba(54, 73, 78, 0.04);
}

.testimonial-card:hover {
  transform: translateY(-12px) scale(1.02);
  background: linear-gradient(145deg, #ffffff 0%, #fafbfc 100%);
  box-shadow: 0 20px 40px rgba(54, 73, 78, 0.1);
  border-color: rgba(169, 206, 244, 0.4);
}

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

.testimonial-content .rating {
  justify-content: center;
  margin-bottom: var(--space-md);
}

.testimonial-content p {
  color: var(--text-secondary);
  font-style: italic;
  line-height: 1.6;
  margin-bottom: var(--space-lg);
  font-size: 1rem;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  text-align: center;
}

.testimonial-author > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.author-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--outer-space);
}

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

.author-clinic {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
}

.carousel-controls {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-xl);
}

.carousel-btn {
  width: 50px;
  height: 50px;
  border: 2px solid var(--border-light);
  background-color: var(--background-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-normal);
  color: var(--text-muted);
}

.carousel-btn:hover {
  background-color: var(--primary-blue);
  border-color: var(--primary-blue);
  color: var(--text-white);
  transform: translateY(-2px);
}

.carousel-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: var(--space-xs);
  margin-top: var(--space-lg);
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--border-light);
  border: none;
  transition: all var(--transition-normal);
}

.indicator.active {
  background-color: var(--primary-blue);
  transform: scale(1.2);
}

.indicator:hover {
  background-color: var(--accent-blue);
}

/* ===== CHAT BOT MOBILE RESPONSIVE STYLES ===== */
@media (max-width: 640px) {
  .chat-widget {
    bottom: 1rem;
    right: 1rem;
  }

  .chat-container {
    position: fixed;
    width: calc(100% - 2rem);
    height: calc(100vh - 120px);
    max-height: 600px;
    bottom: 80px;
    right: 1rem;
    left: auto;
  }

  .chat-header {
    padding: 1rem;
  }

  .chat-title h4 {
    font-size: 1rem;
  }

  .chat-messages {
    padding: 0.75rem;
  }

  /* Identification form mobile styles */
  .chat-identification-form {
    padding: 1rem;
  }

  .identification-form-content h4 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
  }

  .identification-intro {
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
  }

  .form-group {
    margin-bottom: 1rem;
  }

  .form-input {
    padding: 0.75rem;
    font-size: 16px; /* Prevent zoom on iOS */
    min-height: 44px; /* Touch target size */
  }

  .form-label {
    font-size: 0.85rem;
    margin-bottom: 0.375rem;
  }

  .start-chat-button {
    padding: 0.875rem 1.5rem;
    font-size: 0.95rem;
    min-height: 48px;
  }

  .chat-form-error {
    font-size: 0.85rem;
    padding: 0.625rem 0.75rem;
  }

  .chat-input-container {
    padding: 0.75rem;
  }

  #chat-input {
    padding: 0.75rem;
    font-size: 16px; /* Prevent zoom on iOS */
    min-height: 44px; /* Touch target size */
  }

  .chat-send {
    min-width: 44px;
    min-height: 44px;
    padding: 0.75rem;
  }
}

@media (max-width: 480px) {
  .chat-widget {
    bottom: 0.5rem;
    right: 0.5rem;
  }

  .chat-container {
    position: fixed;
    width: calc(100% - 1rem);
    height: calc(100vh - 100px);
    bottom: 70px;
    right: 0.5rem;
    left: auto;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }

  .chat-identification-form {
    padding: 0.75rem;
  }

  .identification-form-content h4 {
    font-size: 1.125rem;
  }

  .form-input {
    padding: 0.625rem 0.75rem;
  }

  .start-chat-button {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }
}

/* Very small mobile devices - fullscreen chat experience */
@media (max-width: 360px) {
  .chat-widget {
    bottom: 0.5rem;
    right: 0.5rem;
  }

  .chat-container {
    position: fixed;
    width: 100%;
    height: calc(100vh - 70px);
    bottom: 70px;
    right: 0;
    left: 0;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    max-height: none;
  }

  .chat-header {
    padding: 0.875rem;
  }

  .chat-title h4 {
    font-size: 0.95rem;
  }

  .chat-identification-form {
    padding: 0.875rem;
  }

  .identification-form-content h4 {
    font-size: 1.1rem;
  }

  .form-input {
    padding: 0.6875rem 0.75rem;
    font-size: 16px;
  }

  .start-chat-button {
    padding: 0.75rem;
    font-size: 0.9rem;
  }
}

/* Mobile responsiveness for testimonials */
@media (max-width: 1024px) {
  .testimonial-card {
    flex: 0 0 calc(50% - 1rem);
  }
}

@media (max-width: 768px) {
  .testimonial-card {
    flex: 0 0 calc(100% - 1rem);
    margin: var(--space-sm) 0.5rem;
  }

  .testimonials-carousel {
    padding: 0 var(--space-sm);
  }

  .carousel-controls {
    margin-top: var(--space-lg);
  }

  .carousel-btn {
    width: 45px;
    height: 45px;
  }

  .testimonial-content p {
    font-size: 0.95rem;
  }

  .testimonial-author {
    flex-direction: column;
    text-align: center;
  }

  .testimonial-author img {
    width: 60px;
    height: 60px;
  }
}

/* ===== LEGAL CONTENT STYLES ===== */
.legal-content {
  padding: calc(var(--space-3xl) + 80px) 0 var(--space-3xl);
  background-color: var(--background-white);
  min-height: calc(100vh - 200px);
}

.legal-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
  padding: 0 var(--space-md);
}

.legal-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.legal-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
}

.legal-intro {
  max-width: 800px;
  margin: 0 auto var(--space-3xl);
  padding: 0 var(--space-md);
  text-align: center;
}

.legal-intro p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

.legal-sections {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.legal-section {
  margin-bottom: var(--space-3xl);
  padding: var(--space-xl);
  background-color: #fafafa;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
}

.legal-section h2 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--primary-navy);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--primary-mint);
}

.legal-section h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: var(--space-lg) 0 var(--space-md);
}

.legal-section p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

.legal-section ul {
  margin: 0 0 var(--space-md) var(--space-lg);
  padding: 0;
}

.legal-section li {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
  list-style-type: none;
  position: relative;
  padding-left: var(--space-md);
}

.legal-section li::before {
  content: "•";
  color: var(--primary-mint);
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 0;
}

.legal-section strong {
  color: var(--text-primary);
  font-weight: 600;
}

.contact-details {
  background-color: #f0f9ff;
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--primary-blue);
  margin: var(--space-lg) 0;
}

.contact-details p {
  margin-bottom: var(--space-sm);
}

.legal-references {
  margin-top: var(--space-3xl);
  padding: var(--space-xl);
  background-color: #f8fafc;
  border-radius: var(--radius-lg);
  border: 1px solid #e2e8f0;
}

.legal-references h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
}

.legal-references p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

.legal-references ul {
  margin: 0 0 var(--space-md) var(--space-lg);
  padding: 0;
}

.legal-references li {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
  list-style-type: none;
  position: relative;
  padding-left: var(--space-md);
}

.legal-references li::before {
  content: "✓";
  color: var(--primary-mint);
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 0;
}

.legal-references a {
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 500;
}

.legal-references a:hover {
  text-decoration: underline;
}

/* Mobile responsiveness for legal content */
@media (max-width: 768px) {
  .legal-content {
    padding: calc(var(--space-2xl) + 76px) 0 var(--space-2xl);
  }

  .legal-header {
    margin-bottom: var(--space-2xl);
    padding: 0 var(--space-sm);
  }

  .legal-header h1 {
    font-size: 2rem;
  }

  .legal-subtitle {
    font-size: 0.9rem;
  }

  .legal-intro {
    margin: 0 auto var(--space-2xl);
    padding: 0 var(--space-sm);
  }

  .legal-intro p {
    font-size: 0.9rem;
  }

  .legal-sections {
    padding: 0 var(--space-sm);
  }

  .legal-section {
    margin-bottom: var(--space-2xl);
    padding: var(--space-lg);
  }

  .legal-section h2 {
    font-size: 1.2rem;
    margin-bottom: var(--space-md);
  }

  .legal-section h3 {
    font-size: 0.9rem;
    margin: var(--space-md) 0 var(--space-sm);
  }

  .legal-section p,
  .legal-section li,
  .legal-references p,
  .legal-references li {
    font-size: 0.9rem;
  }

  .contact-details {
    padding: var(--space-md);
  }

  .legal-references {
    padding: var(--space-lg);
  }
}

@media (max-width: 480px) {
  .legal-header h1 {
    font-size: 1.75rem;
  }

  .legal-section {
    padding: var(--space-md);
  }

  .legal-section h2 {
    font-size: 1.1rem;
  }

  .legal-section ul,
  .legal-references ul {
    margin-left: var(--space-md);
  }

  .legal-section li,
  .legal-references li {
    padding-left: var(--space-sm);
  }
}

/* Desktop styles for trust badges and sponsors - placed after base styles for proper cascade */
@media (min-width: 1025px) {
  .hero {
    padding-bottom: var(--space-2xl); /* 4rem bottom spacing for desktop - consistent with base */
  }

  .hero-trust {
    position: relative;
    bottom: auto;
    margin-top: var(--space-2xl); /* Spacing before trust badges */
    padding: var(--space-lg) 0; /* More padding around trust badges */
  }

  .hero-sponsors {
    position: relative;
    bottom: auto;
    margin-top: var(--space-xl); /* Spacing before sponsors carousel */
    padding: var(--space-lg) 0; /* Padding around sponsors */
  }
}

/* ===== BLOG STYLES ===== */

/* Blog Header Section */
.blog-header-section {
  background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-blue) 100%);
  padding: calc(var(--space-3xl) + 80px) 0 var(--space-3xl);
  color: var(--text-white);
  position: relative;
  overflow: hidden;
}

.blog-header-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 1;
}

.blog-header-section .section-header {
  text-align: center;
  position: relative;
  z-index: 1;
}

.blog-header-section .section-title {
  color: var(--text-white);
  font-size: 3rem;
  margin-bottom: var(--space-md);
}

.blog-header-section .section-subtitle {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Blog Grid */
.blog-grid-section {
  background: var(--gradient-section-light);
  padding: var(--space-3xl) 0;
  position: relative;
}

.blog-grid-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-mesh-subtle);
  opacity: 0.5;
  pointer-events: none;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--space-xl);
}

/* Blog Card */
.blog-card {
  background: var(--gradient-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  
  transition: all var(--transition-normal);
  border: 1px solid var(--border-light);
  will-change: transform;
}

.blog-card:hover {
  transform: translateY(-10px) scale(1.02);
  background: var(--gradient-card-hover);
  box-shadow: 0 20px 40px rgba(54, 73, 78, 0.12);
}

.blog-image {
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, var(--primary-mint) 0%, var(--secondary-mint) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.blog-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%232C4A3C' fill-opacity='0.05' fill-rule='evenodd'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E");
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
  transition: transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: transform;
}

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

.blog-content {
  padding: var(--space-lg);
}

.blog-meta {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
  flex-wrap: wrap;
}

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

.blog-category {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary-blue);
  font-weight: 600;
  background: rgba(67, 97, 238, 0.1);
  padding: 2px 10px;
  border-radius: 20px;
}

.blog-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  line-height: 1.3;
}

.blog-title a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.4s var(--ease-smooth), transform 0.4s var(--ease-smooth);
  display: inline-block;
}

.blog-card:hover .blog-title a {
  color: var(--primary-navy);
  transform: translateX(4px);
}

.blog-title a:hover {
  color: var(--primary-blue);
}

.blog-excerpt {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: var(--space-md);
  transition: color 0.4s var(--ease-smooth);
}

.blog-card:hover .blog-excerpt {
  color: var(--text-primary);
}

.blog-read-more {
  color: var(--primary-blue);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all var(--transition-normal);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.blog-read-more:hover {
  color: var(--accent-blue);
  gap: 8px;
}

@media (prefers-reduced-motion: reduce) {
  .blog-card {
    transition: transform 0.3s var(--ease-smooth), ;
  }

  .blog-card:hover {
    transform: translateY(-4px);
  }
}

/* Article Header */
.article-header {
  background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-blue) 100%);
  padding: calc(var(--space-3xl) + 80px) 0 var(--space-2xl);
  color: var(--text-white);
  position: relative;
  overflow: hidden;
}

.article-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 1;
}

.article-header .container {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.article-meta {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
}

.article-date {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

.article-category {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-white);
  font-weight: 600;
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 12px;
  border-radius: 20px;
}

.article-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: var(--space-md);
  line-height: 1.2;
}

.article-excerpt {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.15rem;
  line-height: 1.6;
}

/* Article Content */
.article-content {
  background-color: var(--background-white);
  padding: var(--space-3xl) 0;
}

.article-body {
  max-width: 800px;
  margin: 0 auto;
}

.article-hero-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-xl);
  display: none; /* Hidden - using styled header instead */
}

.article-body .lead {
  font-size: 1.25rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
  font-weight: 500;
}

.article-body h2 {
  font-size: 1.8rem;
  color: var(--primary-navy);
  margin: var(--space-xl) 0 var(--space-md);
  font-weight: 600;
}

.article-body h3 {
  font-size: 1.3rem;
  color: var(--text-primary);
  margin: var(--space-lg) 0 var(--space-sm);
  font-weight: 600;
}

.article-body p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-md);
}

.article-body ul,
.article-body ol {
  margin: var(--space-md) 0 var(--space-lg) var(--space-lg);
  padding: 0;
}

.article-body li {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-sm);
  padding-left: var(--space-sm);
}

.article-body ul li {
  list-style-type: none;
  position: relative;
}

.article-body ul li::before {
  content: "•";
  color: var(--primary-blue);
  font-weight: bold;
  position: absolute;
  left: -20px;
}

.article-body ol li {
  list-style-type: decimal;
  margin-left: var(--space-sm);
}

.article-body blockquote {
  background: var(--background-light);
  border-left: 4px solid var(--primary-blue);
  padding: var(--space-lg);
  margin: var(--space-lg) 0;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.article-body blockquote p {
  margin: 0;
  color: var(--text-primary);
  font-weight: 500;
}

.article-cta {
  background: linear-gradient(135deg, var(--primary-mint) 0%, var(--secondary-mint) 100%);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  margin: var(--space-xl) 0;
  text-align: center;
}

.article-cta h3 {
  color: var(--primary-navy);
  margin: 0 0 var(--space-sm);
  font-size: 1.4rem;
}

.article-cta p {
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

.article-tags {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-light);
}

.article-tags span {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.article-tags a {
  color: var(--primary-blue);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition-normal);
}

.article-tags a:hover {
  color: var(--accent-blue);
  text-decoration: underline;
}

/* Related Articles */
.related-articles {
  background-color: var(--background-light);
  padding: var(--space-3xl) 0;
}

.related-articles h2 {
  text-align: center;
  font-size: 2rem;
  color: var(--primary-navy);
  margin-bottom: var(--space-xl);
}

.related-articles .blog-card {
  background: var(--background-white);
}

/* Mobile Responsiveness for Blog */
@media (max-width: 768px) {
  .blog-header-section {
    padding: calc(var(--space-2xl) + 60px) 0 var(--space-2xl);
  }

  .blog-header-section .section-title {
    font-size: 2rem;
  }

  .blog-header-section .section-subtitle {
    font-size: 1rem;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .blog-card {
    max-width: 500px;
    margin: 0 auto;
  }

  .article-header {
    padding: calc(var(--space-2xl) + 60px) 0 var(--space-xl);
  }

  .article-title {
    font-size: 1.75rem;
  }

  .article-excerpt {
    font-size: 1rem;
  }

  .article-body h2 {
    font-size: 1.4rem;
  }

  .article-body h3 {
    font-size: 1.1rem;
  }

  .article-body .lead {
    font-size: 1.1rem;
  }

  .article-cta {
    padding: var(--space-lg);
  }

  .article-cta h3 {
    font-size: 1.2rem;
  }
}

/* ===== FLOATING SERVICE LIMITATION BANNER ===== */
.service-limitation-banner {
  position: fixed;
  bottom: 30px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  z-index: 1000;
  animation: slideUp 0.5s ease-out;
  pointer-events: none;
}

.banner-container {
  width: 760px;
  max-width: calc(100% - 60px);
  margin: 0 auto;
  background: linear-gradient(135deg, var(--primary-navy) 0%, var(--paynes-gray) 100%);
  color: var(--text-white);
  border-radius: 12px;
  border-left: 3px solid var(--accent-blue);
  pointer-events: auto;
  position: relative;
}

.banner-content {
  padding: 0;
  position: relative;
  display: flex;
  align-items: stretch;
}

.banner-main {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  flex: 1;
}

.banner-fine-print {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.7);
  font-style: italic;
  margin-top: 4px;
}

.banner-price {
  background: rgba(169, 206, 244, 0.2);
  border-radius: 20px;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(169, 206, 244, 0.3);
  min-width: 100px;
  padding: 8px 16px;
  animation: glow 3s ease-in-out infinite;
}

.price-label {
  font-size: 0.7rem;
  color: var(--uranian-blue);
  margin-bottom: 2px;
}

.price-amount {
  font-size: 1.2rem;
  color: var(--text-white);
  line-height: 1;
}

.banner-icon {
  font-size: 1.2rem;
  animation: pulse 2s ease-in-out infinite;
}

.banner-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.banner-text strong {
  color: var(--uranian-blue);
  font-weight: 600;
  font-size: 0.85rem;
  line-height: 1.3;
}

.banner-subtext {
  color: var(--charcoal);
  font-size: 0.75rem;
  line-height: 1.4;
  margin-top: 0.1rem;
}

.banner-price {
  background: rgba(169, 206, 244, 0.2);
  padding: 0;
  border-radius: 0;
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  animation: glow 3s ease-in-out infinite;
  border-left: 1px solid rgba(169, 206, 244, 0.3);
}

.banner-fine-print {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.7);
  font-style: italic;
  margin-top: 0.2rem;
}

.banner-dismiss {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-white);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
}

.banner-dismiss:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.banner-dismiss:active {
  transform: scale(0.95);
}

/* Animations */
@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideDown {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(100%);
    opacity: 0;
  }
}

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

@keyframes glow {
  0%, 100% {
    
  }
  50% {
    
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .service-limitation-banner {
    bottom: 20px;
    left: 0;
    right: 0;
    width: auto;
    justify-content: center;
  }

  .banner-container {
    width: 320px;
    max-width: calc(100% - 40px);
  }
}

@media (max-width: 480px) {
  .service-limitation-banner {
    bottom: 15px;
    left: 0;
    right: 0;
    justify-content: center;
  }

  .banner-container {
    width: 280px;
    max-width: calc(100% - 30px);
  }

  .banner-content {
    padding: 10px 12px;
  }

  .banner-text strong {
    font-size: 0.8rem;
  }

  .banner-price {
    font-size: 0.75rem;
    padding: 0.15rem 0.5rem;
  }

  .banner-fine-print {
    font-size: 0.6rem;
  }

  .banner-icon {
    display: none;
  }

  .banner-dismiss {
    width: 20px;
    height: 20px;
    top: 6px;
    right: 6px;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .service-limitation-banner {
    animation: none;
  }

  .banner-icon {
    animation: none;
  }

  .banner-price {
    animation: none;
  }

  .banner-dismiss,
  .banner-dismiss:hover,
  .banner-dismiss:active {
    transition: none;
    transform: none;
  }
}

/* ===== SOCIAL MEDIA SIDEBAR ===== */
.social-sidebar {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: calc(var(--z-fixed) - 10);
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(247, 249, 251, 0.95) 100%);
  backdrop-filter: blur(10px);
  border-radius: 16px 0 0 16px;
  
  border: 1px solid rgba(169, 206, 244, 0.15);
  border-right: none;
}

.social-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-card);
  border: 1.5px solid var(--border-light);
  transition: all var(--transition-normal) var(--ease-smooth);
  position: relative;
  overflow: hidden;
}

.social-button::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-card-hover);
  opacity: 0;
  transition: opacity var(--transition-fast) var(--ease-smooth);
}

.social-button:hover {
  transform: scale(1.12) translateX(-4px);
  border-color: var(--accent-light);
}

.social-button:hover::before {
  opacity: 1;
}

.social-button:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
}

.social-button svg {
  width: 20px;
  height: 20px;
  position: relative;
  z-index: 1;
  transition: fill var(--transition-fast) var(--ease-smooth);
}

.social-button.facebook svg {
  fill: #1877F2;
}

.social-button.instagram svg {
  fill: #E4405F;
}

.social-button.linkedin svg {
  fill: #0A66C2;
}

.social-button.whatsapp svg {
  fill: #25D366;
}

.social-button:hover svg {
  transform: scale(1.1);
}

/* Social button tooltip */
.social-button::after {
  content: attr(aria-label);
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  background: var(--primary-navy);
  color: var(--text-white);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast) var(--ease-decelerated);
  pointer-events: none;
}

.social-button:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

/* Mobile: Shift down to avoid blocking content */
@media (max-width: 768px) {
  .social-sidebar {
    right: 0;
    top: auto;
    bottom: 80px;
    transform: none;
    flex-direction: column;
    border-radius: 16px 0 0 16px;
    padding: 12px 6px;
    
    border: 1px solid rgba(169, 206, 244, 0.2);
    gap: 10px;
  }

  .social-button {
    width: 38px;
    height: 38px;
  }

  .social-button:hover {
    transform: scale(1.08) translateX(-2px);
  }

  /* Hide tooltips on mobile */
  .social-button::after {
    display: none;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .social-button,
  .social-button::before,
  .social-button::after,
  .social-button svg {
    transition: none;
  }

  .social-button:hover {
    transform: none;
  }
}

/* ===== PRACTICE SUITE SECTION ===== */
.apps-showcase {
  padding: var(--space-3xl) 0;
  background: var(--gradient-section-light);
  position: relative;
  overflow: hidden;
}

#product-suite {
  padding: 40px 0 0;
  margin-top: calc(-1 * (80px + var(--space-xl) + var(--space-lg) - 60px));
  background: var(--gradient-section-subtle);
  border: none;
}

#product-suite::before,
#product-suite::after {
  display: none;
}

/* Move title up and hide subtitle on automations page */
#portfolio .section-header {
  margin-top: -40px;
}

#portfolio .section-subtitle {
  display: none;
}

.apps-showcase::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-mesh-subtle);
  pointer-events: none;
  z-index: 1;
  opacity: 0.5;
}

.apps-showcase .container {
  position: relative;
  z-index: 2;
}

.apps-showcase-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.apps-showcase-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.apps-showcase-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-sm);
}

.apps-showcase-fineprint {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: var(--space-md);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  opacity: 0.8;
  padding: 0 var(--space-md);
}

/* Practice Grid - 4 Column Layout */
.practice-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  align-items: stretch;
}

/* Practice Card - Modern Card Design */
.practice-card {
  background: linear-gradient(145deg, #ffffff 0%, #fafbfc 100%);
  border-radius: var(--radius-xl);
  overflow: hidden;

  transition: all var(--transition-medium) var(--ease-smooth);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(169, 206, 244, 0.25);
  position: relative;
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.8s var(--ease-decelerated),
              transform 0.8s var(--ease-decelerated);
  box-shadow: 0 4px 16px rgba(54, 73, 78, 0.04);
}

/* Reveal state triggered by scroll */
.practice-card.reveal {
  opacity: 1;
  transform: translateX(0);
}

/* Staggered delays for left-to-right reveal */
.practice-card:nth-child(1) { transition-delay: 0ms; }
.practice-card:nth-child(2) { transition-delay: 150ms; }
.practice-card:nth-child(3) { transition-delay: 300ms; }
.practice-card:nth-child(4) { transition-delay: 450ms; }

.practice-card:hover {
  transform: translateY(-12px) scale(1.01);

  border-color: rgba(169, 206, 244, 0.5);
  box-shadow: 0 24px 48px rgba(54, 73, 78, 0.12);
}

/* Card Video Section - Full Width at Top */
.practice-card-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(44, 74, 60, 0.95) 0%, rgba(196, 166, 97, 0.15) 100%);
}

.video-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.video-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 40%, rgba(196, 166, 97, 0.2) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition-medium);
}

.practice-card:hover .video-placeholder::before {
  opacity: 1;
}

/* Video Embed Styles */
.video-embed-container {
  width: 100%;
  height: 100%;
}

.video-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.video-element {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.video-play-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--background-white);
  border: none;
  cursor: default;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast) var(--ease-smooth);
  
  position: relative;
  z-index: 2;
}

.video-play-btn svg {
  width: 20px;
  height: 20px;
  color: var(--primary-green);
  margin-left: 3px;
  transition: transform var(--transition-fast);
}

.video-play-btn:hover {
  transform: scale(1.1);
  
}

.video-play-btn:hover svg {
  transform: scale(1.1);
  margin-left: 4px;
}

/* Card Content Section */
.practice-card-content {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Badge - Category Indicator */
.practice-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-sm);
  align-self: flex-start;
}

.practice-badge.healthcare {
  background: rgba(169, 206, 244, 0.25);
  color: var(--outer-space);
  border: 1px solid rgba(169, 206, 244, 0.4);
}

.practice-badge.business {
  background: rgba(169, 206, 244, 0.2);
  color: var(--outer-space);
  border: 1px solid rgba(169, 206, 244, 0.35);
}

.practice-badge.productivity {
  background: rgba(126, 160, 183, 0.2);
  color: var(--outer-space);
  border: 1px solid rgba(126, 160, 183, 0.35);
}

.practice-badge.statistics {
  background: rgba(169, 206, 244, 0.15);
  color: var(--outer-space);
  border: 1px solid rgba(169, 206, 244, 0.3);
}

.practice-badge.productivity {
  background: rgba(102, 187, 136, 0.15);
  color: #4A9B6E;
  border: 1px solid rgba(102, 187, 136, 0.3);
}

.practice-badge.statistics {
  background: rgba(255, 154, 162, 0.15);
  color: #C45A6E;
  border: 1px solid rgba(255, 154, 162, 0.3);
}

/* Card Title */
.practice-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--outer-space);
  margin-bottom: var(--space-xs);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* Price Display */
.practice-price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--committed-blue-dark);
  margin-bottom: var(--space-md);
  letter-spacing: 0.02em;
}

/* Card Description */
.practice-description {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-md);
  flex: 1;
}

/* Features List */
.practice-features {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-lg) 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.practice-features li {
  font-size: 0.875rem;
  color: var(--text-secondary);
  padding-left: var(--space-md);
  position: relative;
  line-height: 1.4;
}

.practice-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-gold);
  opacity: 0.6;
}

/* CTA Button - Touch Friendly (min 44px height) */
.practice-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 0.875rem 1.25rem;
  background: var(--outer-space);
  color: var(--text-white);
  font-weight: 700;
  font-size: 0.9375rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast) var(--ease-smooth);
  text-decoration: none;
  border: 2px solid var(--outer-space);
  min-height: 48px;
  width: 100%;
}

.practice-cta:hover {
  background: var(--committed-blue-dark);
  border-color: var(--committed-blue-dark);
  transform: translateY(-2px);

}

.practice-cta:active {
  transform: translateY(0);
}

.practice-cta svg {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-fast);
}

.practice-cta:hover svg {
  transform: translateX(3px);
}

/* Responsive Design */
@media (max-width: 1200px) {
  .practice-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
  }
}

@media (max-width: 768px) {
  .apps-showcase {
    padding: var(--space-2xl) 0;
  }

  .apps-showcase-header {
    margin-bottom: var(--space-2xl);
  }

  .apps-showcase-title {
    font-size: 2rem;
  }

  .apps-showcase-fineprint {
    font-size: 0.6875rem;
  }

  .practice-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .practice-card-video {
    aspect-ratio: 16 / 9;
  }

  .practice-card-content {
    padding: var(--space-md);
  }

  .practice-title {
    font-size: 1.25rem;
  }

  .practice-description {
    font-size: 0.875rem;
  }

  .practice-features li {
    font-size: 0.8125rem;
  }

  .practice-cta {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
  }
}

@media (max-width: 480px) {
  .ps-animation-placeholder {
    position: relative !important;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-md);
  }

  .ps-animation-content {
    position: absolute !important;
    inset: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
  }

  .ps-animation-content picture {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
  }

  .ps-scene-image {
    object-fit: cover !important;
    object-position: center 30% !important;
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    max-width: none !important;
  }

  .video-play-btn {
    width: 48px;
    height: 48px;
  }

  .video-play-btn svg {
    width: 18px;
    height: 18px;
  }
}

/* ===== SECTION DIVIDER ===== */
.section-divider {
  padding: var(--space-2xl) 0;
  background: var(--gradient-section-light);
  position: relative;
  overflow: hidden;
}

.divider-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  max-width: 600px;
  margin: 0 auto;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--border-medium) 50%,
    transparent 100%
  );
}

.divider-text {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0 var(--space-md);
  white-space: nowrap;
}

@media (max-width: 768px) {
  .section-divider {
    padding: var(--space-xl) 0;
  }

  .divider-content {
    gap: var(--space-md);
  }

  .divider-text {
    font-size: 0.75rem;
    padding: 0 var(--space-sm);
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .app-row {
    opacity: 1;
    transform: none;
  }

  .app-video-placeholder::before {
    animation: none;
  }

  .app-cta:hover,
  .app-play-button:hover {
    transform: none;
  }

  .app-cta:hover svg {
    transform: none;
  }
}

/* ===== IPAD-SPECIFIC BREAKPOINTS (768px - 1023px) ===== */
/* These override mobile styles for iPad portrait mode */
@media (min-width: 768px) and (max-width: 1023px) {
  /* Base Settings */
  html {
    font-size: 16px; /* Normal base font size */
  }

  body {
    font-size: 1rem;
  }

  /* Container & Spacing */
  .container {
    padding: 0 var(--space-lg); /* 2rem padding for iPad */
  }

  /* Section Headers */
  .section-title {
    font-size: 2.25rem; /* Between mobile (2rem) and desktop (2.5rem) */
  }

  .section-subtitle {
    font-size: 1.0625rem; /* Between mobile (1rem) and desktop (1.125rem) */
  }

  /* ===== HERO SECTION IPAD FIXES ===== */
  .hero {
    padding-top: 150px; /* Balanced spacing for iPad */
    padding-bottom: var(--space-2xl); /* 4rem bottom spacing */
    min-height: auto;
  }

  .hero-container {
    padding: var(--space-lg) var(--space-xl); /* More generous padding */
  }

  .hero-text {
    padding: var(--space-lg) var(--space-xl); /* Proper text padding */
  }

  /* Hero Centered Variant - For About and Contact pages (iPad) */
  .hero-centered .hero-content {
    display: flex;
    justify-content: center;
    text-align: center;
  }

  .hero-centered .hero-text {
    padding-left: 0;
    padding-right: 0;
    padding: var(--space-lg) 0; /* Only vertical padding for centered hero */
    text-align: center;
  }

  .hero-centered .hero-title {
    justify-content: center;
  }

  .hero-centered .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-centered .hero-buttons {
    justify-content: center;
  }

  .hero-title {
    font-size: 2.25rem; /* Scaled for iPad (between mobile 2rem and desktop 2.75rem) */
    margin-bottom: var(--space-md);
  }

  .hero-tagline {
    font-size: 0.725rem; /* Slightly larger than mobile */
    padding: 0.45rem 0.9rem;
  }

  .hero-subtitle {
    font-size: 1.0625rem; /* Better readability on iPad */
    margin-bottom: var(--space-xl); /* Proper spacing before buttons */
  }

  /* Fix hero buttons - prevent bottom edge issue */
  .hero-buttons {
    gap: var(--space-md);
    flex-wrap: wrap;
  }

  .hero-cta {
    margin-top: var(--space-md); /* Reduced margin for iPad */
  }

  .btn {
    padding: 0.875rem 1.75rem; /* Slightly smaller padding for iPad */
    font-size: 0.9375rem; /* Proper button font size */
  }

  /* ===== NAVIGATION IPAD FIXES ===== */
  .nav-container {
    padding: 0 var(--space-lg);
  }

  .nav-logo {
    max-width: 180px; /* Proper logo size for iPad */
  }

  .nav-logo img {
    max-height: 45px; /* Proper logo height */
  }

  .nav-links {
    gap: var(--space-md);
  }

  .nav-link {
    font-size: 0.9375rem; /* Proper nav font size for iPad */
    padding: 0.5rem 0.75rem;
  }

  /* ===== SPECIALTIES SECTION IPAD FIXES ===== */
  .specialties-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns on iPad */
    gap: var(--space-md);
  }

  .specialty-card {
    padding: var(--space-lg);
  }

  .specialty-icon {
    width: 56px;
    height: 56px;
    font-size: 1.5rem;
  }

  .specialty-title {
    font-size: 1.25rem; /* Proper heading size for iPad */
  }

  .specialty-description {
    font-size: 0.9375rem; /* Better readability */
  }

  /* ===== MENU SECTION IPAD FIXES ===== */
  .menu-filters {
    gap: var(--space-sm);
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: var(--space-lg);
  }

  .filter-btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem; /* Proper filter button size */
  }

  .menu-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns on iPad */
    gap: var(--space-md);
  }

  .menu-item {
    padding: var(--space-md);
  }

  .menu-item-name {
    font-size: 1.125rem; /* Proper menu item title size */
  }

  .menu-item-description {
    font-size: 0.875rem; /* Proper description size */
  }

  .menu-item-price {
    font-size: 1rem; /* Proper price size */
  }

  /* ===== ABOUT SECTION IPAD FIXES ===== */
  .about-grid {
    grid-template-columns: 1fr; /* Single column on iPad */
    gap: var(--space-xl);
  }

  .about-content {
    padding: var(--space-lg);
  }

  .about-title {
    font-size: 2rem; /* Proper about heading size */
  }

  .about-text {
    font-size: 0.9375rem; /* Better readability */
  }

  /* ===== CONTACT SECTION IPAD FIXES ===== */
  .contact-grid {
    grid-template-columns: 1fr; /* Single column on iPad */
    gap: var(--space-xl);
  }

  .contact-form {
    padding: var(--space-lg);
  }

  .form-group {
    margin-bottom: var(--space-md);
  }

  .form-label {
    font-size: 0.875rem; /* Proper label size */
  }

  .form-input,
  .form-textarea {
    font-size: 0.9375rem; /* Proper input size */
    padding: 0.75rem 1rem;
  }

  /* ===== CHATBOT IPAD FIXES ===== */
  .chat-toggle {
    width: 56px;
    height: 56px;
    font-size: 1.5rem;
  }

  .chat-container {
    width: 380px; /* Larger chat window for iPad */
    max-width: 90vw;
  }

  .chat-header {
    padding: var(--space-md);
  }

  .chat-header h3 {
    font-size: 1.125rem; /* Proper chat header size */
  }

  .chat-messages {
    padding: var(--space-md);
  }

  .chat-message {
    font-size: 0.9375rem; /* Better message readability */
  }

  .chat-input-area {
    padding: var(--space-md);
  }

  .chat-input {
    font-size: 0.9375rem; /* Proper input size */
    padding: 0.75rem 1rem;
  }

  /* ===== FOOTER IPAD FIXES ===== */
  .footer {
    padding: var(--space-xl) 0;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns on iPad */
    gap: var(--space-lg);
  }

  .footer-title {
    font-size: 1.125rem; /* Proper footer heading size */
  }

  .footer-text {
    font-size: 0.875rem; /* Better readability */
  }

  .footer-link {
    font-size: 0.875rem;
  }

  /* ===== SPONSORS SECTION IPAD FIXES ===== */
  .hero-sponsors {
    padding: var(--space-md) 0;
  }

  .sponsor-item {
    max-width: 140px; /* Proper sponsor logo size */
  }

  .sponsor-item img {
    max-height: 40px;
  }
}

/* ===== IPAD PRO & LARGE TABLETS (1024px - 1199px) ===== */
@media (min-width: 1024px) and (max-width: 1199px) {
  .hero-title {
    font-size: 2.5rem; /* Slightly smaller than desktop */
  }

  .hero-subtitle {
    font-size: 1.125rem;
  }

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

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