/* Skip Link Accessibility */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.visually-hidden-focusable:not(:focus):not(:focus-within) {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.visually-hidden-focusable:focus, 
.visually-hidden-focusable:focus-within {
  position: static !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  overflow: visible !important;
  clip: auto !important;
  white-space: normal !important;
  background: var(--brand-accent) !important;
  color: white !important;
  padding: 8px 16px !important;
  text-decoration: none !important;
  border-radius: 4px !important;
  font-weight: 600 !important;
  z-index: 1000 !important;
}

/* Executive Navy Theme Variables */
:root {
    --brand-primary: #0F172A;
    --brand-primary-light: #1E293B;
    --brand-accent: #2563EB;
    --brand-success: #10B981;
    --brand-warning: #F59E0B;
    --brand-danger: #EF4444;
    --brand-gold: #b88a1a;
    --neutral-50: #F8FAFC;
    --neutral-100: #F1F5F9;
    --neutral-200: #E2E8F0;
}

/* Professional Social Media Icons */
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    margin-right: 12px;
    transition: all 0.3s ease;
    text-decoration: none !important;
}

.social-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.social-facebook {
    background: linear-gradient(45deg, #1877F2, #42A5F5);
    color: white;
}

.social-twitter {
    background: linear-gradient(45deg, #1DA1F2, #42A5F5);
    color: white;
}

.social-linkedin {
    background: linear-gradient(45deg, #0A66C2, #0E76A8);
    color: white;
}

.social-instagram {
    background: linear-gradient(45deg, #E4405F, #FCCC63, #833AB4);
    color: white;
}

.social-youtube {
    background: linear-gradient(45deg, #FF0000, #FF4500);
    color: white;
}

/* Enhanced Focus Styles for Accessibility */
.btn:focus,
.btn:focus-visible,
.form-control:focus,
.form-select:focus,
.form-check-input:focus,
a:focus-visible {
    outline: 2px solid var(--brand-accent) !important;
    outline-offset: 2px !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3) !important;
}

.btn:focus:not(:focus-visible) {
    outline: none !important;
    box-shadow: none !important;
}

/* Additional CSS variables */
:root {
    --neutral-300: #CBD5E1;
    --neutral-400: #94A3B8;
    --neutral-500: #64748B;
    --neutral-600: #475569;
}

/* Common styles moved from inline */
.top-header-phone {
    color: white;
    text-decoration: none;
}

.top-header-btn {
    font-size: 11px;
    padding: 6px 15px;
    border-radius: 6px;
}

.navbar-custom {
    padding: 15px 0;
    border-bottom: 1px solid #ddd;
}

.navbar-brand-custom {
    font-size: 1.4rem;
    color: #333;
    letter-spacing: 0.5px;
    text-decoration: none;
}

.navbar-nav-custom {
    gap: 30px;
}

.nav-link-custom {
    color: #333;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 13px;
}

.social-link {
    color: rgba(255,255,255,0.8);
    margin-right: 15px;
    font-size: 18px;
}

.learn-more-btn {
    border-radius: 8px;
    border-color: #2563EB;
    color: #2563EB;
}

/* WhatsApp floating button */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    text-decoration: none;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: white;
}

/* Additional CSS variables continued */
:root {
    --neutral-700: #334155;
    --neutral-800: #1E293B;
    --neutral-900: #0F172A;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

/* Form validation styles */
.form-error {
    color: var(--brand-danger);
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

.form-success {
    color: var(--brand-success);
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

.form-control.is-invalid {
    border-color: var(--brand-danger);
    box-shadow: 0 0 0 0.2rem rgba(239, 68, 68, 0.25);
}

.form-control.is-valid {
    border-color: var(--brand-success);
    box-shadow: 0 0 0 0.2rem rgba(16, 185, 129, 0.25);
}
}

/* Improved Button Contrast & Accessibility */
.btn-gold,
.btn[style*="background: #d4a752"] {
  background-color: var(--brand-gold) !important;
  color: #fff !important;
  border: none !important;
  font-weight: 600 !important;
  min-height: 44px; /* Touch target size */
}
.btn-gold:hover, .btn-gold:focus { 
  filter: brightness(0.95);
  outline: 2px solid var(--brand-accent);
  outline-offset: 2px;
}

/* Footer Styles */
.footer-link {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 13px;
}

.footer-link:hover,
.footer-link:focus {
  color: white;
  text-decoration: underline;
}

.footer-heading {
  color: white;
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 14px;
  text-transform: uppercase;
}

/* Top Header Bar Styles */
.top-header {
  background: var(--brand-primary);
  color: white;
  padding: 8px 0;
  font-size: 13px;
}

.top-header .btn-primary {
  background: var(--brand-accent);
  border: none;
  font-size: 11px;
  padding: 6px 15px;
  border-radius: 6px;
  color: white;
  font-weight: 600;
}

.top-header .btn-primary:hover,
.top-header .btn-primary:focus {
  background: #1d4ed8;
  outline: 2px solid rgba(37, 99, 235, 0.5);
}

/* Icon Colors */
.icon-accent {
  color: var(--brand-accent);
  font-size: 1.5rem;
}

.text-accent {
  color: var(--brand-accent);
  font-weight: bold;
}

/* Enhanced Focus States for Accessibility */
.btn:focus, 
.form-control:focus, 
.form-select:focus,
.form-check-input:focus {
  outline: 2px solid var(--brand-accent) !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1) !important;
}

/* Improved Text Contrast */
.text-muted {
  color: var(--neutral-600) !important; /* Better contrast than default Bootstrap */
}

/* Dark backgrounds text contrast enhancement */
.hero-section .text-light,
[style*="background: #0F172A"] .text-light {
  color: rgba(255, 255, 255, 0.95) !important;
}

/* Link accessibility */
a:focus {
  outline: 2px solid var(--brand-accent);
  outline-offset: 2px;
  text-decoration: underline;
}

/* Skip link enhancement */
.visually-hidden-focusable:focus, 
.visually-hidden-focusable:focus-within {
  z-index: 9999;
  position: fixed;
  top: 10px;
  left: 10px;
}

/* Reusable Component Classes */
.btn-primary-kl { 
  background: var(--brand-accent) !important; 
  border: none !important; 
  border-radius: 12px !important; 
  padding: 15px 30px !important; 
  font-weight: 600 !important; 
  color: white !important;
}

.btn-kl-primary { 
  background: #2563EB; 
  border: none; 
  border-radius: 12px; 
  padding: 15px 30px; 
  font-weight: 600; 
  color: white;
}

.btn-kl-outline { 
  border: 2px solid #2563EB; 
  border-radius: 12px; 
  padding: 15px 30px; 
  font-weight: 600; 
  background: transparent;
  color: #2563EB;
}

.btn-outline-kl { 
  border: 2px solid var(--brand-accent) !important; 
  color: var(--brand-accent) !important; 
  border-radius: 12px !important; 
  padding: 15px 30px !important; 
  font-weight: 600 !important;
  background: transparent !important;
}

.btn-outline-kl:hover {
  background: var(--brand-accent) !important;
  color: white !important;
}

.card-kl { 
  border: none !important; 
  border-radius: 16px !important; 
  padding: 30px !important; 
  box-shadow: var(--shadow-md) !important; 
  transition: transform 0.3s ease !important;
}

.card-kl:hover {
  transform: translateY(-5px) !important;
}

.section-dark { 
  background: linear-gradient(135deg, var(--brand-primary) 0%, #111827 100%) !important;
}

.section-light {
  background: var(--neutral-50) !important;
}

.section-hero {
  background: linear-gradient(135deg, #0F172A 0%, #111827 100%);
}

.section-white {
  background: #fff;
}

/* WhatsApp float hover */
.whatsapp-float:hover {
  transform: scale(1.1);
  transition: transform 0.3s ease;
}

/* Service card hover */
.service-card:hover {
  background-color: #F8FAFC !important;
}

/* Blog preview links hover */
.blog-preview-links a:hover {
  background-color: #F8FAFC !important;
}

.text-navy {
  color: var(--brand-primary) !important;
}

.text-accent {
  color: var(--brand-accent) !important;
}

.heading-primary {
  font-size: 2.5rem !important;
  font-weight: 600 !important;
  color: var(--brand-primary) !important;
  margin-bottom: 1rem !important;
}

.padding-section {
  padding: 60px 0 !important;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, sans-serif;
    line-height: 1.6;
    color: var(--neutral-700);
    font-feature-settings: 'liga' 1, 'kern' 1;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: #ffffff;
    margin: 0;
    padding: 0;
    font-size: 16px;
}

/* Professional CPA-Style Navigation */
.navbar {
    padding: 0.75rem 0;
    background-color: #ffffff !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-bottom: 3px solid var(--primary-color);
    position: relative;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary-color) !important;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

/* Main Content */
.main-content {
    margin-top: 76px; /* Account for fixed navbar */
    min-height: calc(100vh - 76px);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.min-vh-75 {
    min-height: 75vh;
}

/* Statistics */
.stats-section .stat-item {
    padding: 2rem 1rem;
    border-radius: 0.5rem;
    transition: transform 0.3s ease;
}

.stats-section .stat-item:hover {
    transform: translateY(-5px);
}

/* Service Cards */
.service-card,
.card {
    border: none;
    transition: all 0.3s ease;
    border-radius: 0.75rem;
}

.service-card:hover,
.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg) !important;
}

.service-detail {
    border-left: 4px solid var(--primary-color);
}

/* Blog Cards */
.blog-card {
    border: none;
    transition: all 0.3s ease;
    border-radius: 0.75rem;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg) !important;
}

.blog-categories .btn {
    border-radius: 50px;
    margin: 0.25rem;
}

.blog-categories .btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Testimonial Cards */
.testimonial-card {
    border: none;
    border-radius: 0.75rem;
    box-shadow: var(--shadow);
}

/* Footer */
.footer {
    background-color: var(--dark-bg) !important;
    margin-top: auto;
}

.footer .social-links a {
    transition: color 0.3s ease;
}

.footer .social-links a:hover {
    color: var(--primary-color) !important;
}

/* Forms */
.form-control {
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

.form-select {
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
}

.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

/* Buttons */
.btn {
    border-radius: 0.5rem;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

/* Pricing Calculator */
.pricing-calculator {
    background-color: var(--light-bg);
    border-radius: 0.75rem;
    padding: 2rem;
}

.service-option {
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.service-option:has(.form-check-input:checked) {
    border-color: var(--primary-color);
    background-color: rgba(37, 99, 235, 0.05);
}

.service-option .form-check-input {
    margin-top: 0.5rem;
}

.service-option .form-check-label {
    cursor: pointer;
}

.pricing-results {
    background-color: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    border: 2px solid var(--border-color);
}

/* Contact Page */
.contact-info .contact-item {
    display: flex;
    align-items-flex-start;
    margin-bottom: 1.5rem;
}

.contact-info .contact-item i {
    margin-top: 0.25rem;
}

/* Team Members */
.team-member {
    text-align: center;
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
}

.team-avatar {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--light-bg);
    border-radius: 50%;
}

/* Feature Items */
.feature-item {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

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

.feature-icon {
    min-width: 60px;
}

/* Certifications */
.cert-item {
    padding: 1rem;
    text-align: center;
    transition: transform 0.3s ease;
}

.cert-item:hover {
    transform: translateY(-3px);
}

/* Navigation active state */
.nav-link.active {
    color: var(--brand-accent) !important;
    font-weight: 600 !important;
}

/* Focus States for Accessibility */
.btn:focus,
.btn-primary-kl:focus,
.btn-outline-kl:focus {
    outline: 2px solid var(--brand-accent) !important;
    outline-offset: 2px !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3) !important;
}

.form-control:focus,
.form-select:focus {
    outline: 2px solid var(--brand-accent) !important;
    outline-offset: 2px !important;
    border-color: var(--brand-accent) !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3) !important;
}

a:focus {
    outline: 2px solid var(--brand-accent) !important;
    outline-offset: 2px !important;
    text-decoration: underline !important;
}

/* Utilities */
.bg-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.text-primary {
    color: var(--primary-color) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .stats-section .stat-item {
        margin-bottom: 2rem;
    }
    
    .service-card,
    .blog-card,
    .testimonial-card {
        margin-bottom: 1.5rem;
    }
    
    .btn-lg {
        padding: 0.875rem 1.75rem;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 3rem 0;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .card-body {
        padding: 1.5rem;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

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

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .btn,
    .alert {
        display: none !important;
    }
    
    .main-content {
        margin-top: 0;
    }
    
    .card {
        border: 1px solid #ddd !important;
        box-shadow: none !important;
    }
}

/* Reusable Classes for Common Inline Styles */
.header-btn-sm {
    background: #2563EB;
    border: none;
    font-size: 11px;
    padding: 6px 15px;
    border-radius: 6px;
    color: white;
    font-weight: 600;
}

.nav-cpa-style {
    color: #333;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 13px;
}

.card-service {
    border: none;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.footer-social-link {
    color: rgba(255,255,255,0.8);
    margin-right: 15px;
    font-size: 18px;
    text-decoration: none;
}

.footer-social-link:hover {
    color: white;
}

/* Top Header Bar */
.top-header {
    background: #0F172A;
    color: white;
    padding: 8px 0;
    font-size: 13px;
}

/* Main Navigation */
.navbar.kl-nav {
    padding: 15px 0;
    border-bottom: 1px solid #ddd;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #0F172A 0%, #111827 100%);
    padding: 100px 0;
    min-height: 600px;
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* AI Assistant Styles */
.ai-assistant-button {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: auto;
  min-width: 120px;
  height: 64px;
  background: linear-gradient(135deg, var(--brand-accent) 0%, #1e40af 100%);
  border-radius: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1001;
  box-shadow: 0 8px 32px rgba(37, 99, 235, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: white;
  padding: 0 20px;
}

.ai-assistant-button:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 12px 40px rgba(37, 99, 235, 0.4);
}

.ai-assistant-button.chat-open {
  background: linear-gradient(135deg, #64748b 0%, #475569 100%);
  transform: rotate(45deg);
}

.ai-assistant-avatar {
  position: relative;
  z-index: 2;
}

.ai-pulse-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  animation: ai-pulse 2s infinite;
}

@keyframes ai-pulse {
  0% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.4);
    opacity: 0;
  }
}

.ai-assistant-tooltip {
  position: absolute;
  right: 80px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(15, 23, 42, 0.95);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.ai-assistant-button:hover .ai-assistant-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(-8px);
}

.ai-assistant-tooltip::after {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 8px solid transparent;
  border-left-color: rgba(15, 23, 42, 0.95);
}

.ai-chat-interface {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 380px;
  height: 580px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  transform: translateY(100vh);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.ai-chat-interface.open {
  transform: translateY(0);
  opacity: 1;
}

.ai-chat-header {
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-light) 100%);
  color: white;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 20px 20px 0 0;
}

.ai-chat-avatar {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: ai-avatar-glow 3s ease-in-out infinite alternate;
}

@keyframes ai-avatar-glow {
  0% { box-shadow: 0 0 10px rgba(255, 255, 255, 0.3); }
  100% { box-shadow: 0 0 20px rgba(255, 255, 255, 0.6); }
}

.ai-chat-info h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.ai-status {
  font-size: 12px;
  opacity: 0.8;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ai-status::before {
  content: '';
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  animation: ai-status-pulse 2s infinite;
}

@keyframes ai-status-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.ai-chat-close {
  margin-left: auto;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.2s ease;
}

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

.ai-chat-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  background: #f8fafc;
  scroll-behavior: smooth;
}

.ai-message {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.ai-message.show {
  opacity: 1;
  transform: translateY(0);
}

.ai-message-user {
  flex-direction: row-reverse;
}

.ai-message-avatar {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--brand-accent) 0%, #1e40af 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.ai-message-content {
  background: white;
  padding: 12px 16px;
  border-radius: 16px;
  max-width: 280px;
  word-wrap: break-word;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid #e2e8f0;
}

.ai-message-user .ai-message-content {
  background: linear-gradient(135deg, var(--brand-accent) 0%, #1e40af 100%);
  color: white;
  border: none;
}

.ai-message-content p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

.ai-message-content ul {
  margin: 8px 0 0 0;
  padding-left: 20px;
}

.ai-message-content li {
  font-size: 13px;
  margin-bottom: 4px;
}

.ai-welcome-message .ai-message-content {
  background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
  border: 1px solid #a7f3d0;
}

.ai-typing-indicator {
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}

.ai-typing-dots {
  display: flex;
  gap: 4px;
}

.ai-typing-dots span {
  width: 6px;
  height: 6px;
  background: var(--brand-accent);
  border-radius: 50%;
  animation: ai-typing 1.4s infinite;
}

.ai-typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.ai-typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes ai-typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-10px); opacity: 1; }
}

.ai-typing-text {
  font-size: 13px;
  color: #64748b;
  font-style: italic;
}

.ai-chat-input {
  background: white;
  border-top: 1px solid #e2e8f0;
  padding: 20px;
}

.ai-quick-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.ai-quick-btn {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #475569;
  font-weight: 500;
}

.ai-quick-btn:hover {
  background: var(--brand-accent);
  color: white;
  border-color: var(--brand-accent);
  transform: translateY(-1px);
}

.ai-input-container {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}

.ai-message-input {
  flex: 1;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 14px;
  resize: none;
  outline: none;
  transition: border-color 0.2s ease;
}

.ai-message-input:focus {
  border-color: var(--brand-accent);
}

.ai-send-btn {
  background: var(--brand-accent);
  border: none;
  border-radius: 12px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ai-send-btn:hover {
  background: #1e40af;
  transform: translateY(-1px);
}

.ai-contextual-prompt {
  position: fixed;
  bottom: 170px;
  right: 20px;
  max-width: 300px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  z-index: 999;
  transform: translateY(20px) scale(0.95);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: 2px solid #e2e8f0;
}

.ai-contextual-prompt.show {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.ai-contextual-prompt:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.2);
  border-color: var(--brand-accent);
}

.ai-prompt-content {
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  line-height: 1.5;
  color: #334155;
}

.ai-prompt-close {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 0;
  margin-left: auto;
  flex-shrink: 0;
}

.ai-prompt-close:hover {
  color: #64748b;
}

/* Mobile Responsive */
@media (max-width: 480px) {
  .ai-chat-interface {
    width: calc(100vw - 20px);
    right: 10px;
    height: calc(100vh - 40px);
    border-radius: 16px;
  }
  
  .ai-assistant-button {
    bottom: 80px;
    right: 15px;
    width: 56px;
    height: 56px;
  }
  
  .ai-contextual-prompt {
    right: 10px;
    bottom: 150px;
    max-width: calc(100vw - 100px);
  }
  
  .ai-assistant-tooltip {
    display: none;
  }
}

/* Sticky CTA Button */
.sticky-cta-btn {
  position: fixed;
  bottom: 30px;
  right: 130px;
  background: #FF5722;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  text-decoration: none;
  box-shadow: 0 8px 25px rgba(255, 87, 34, 0.4);
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
}

.sticky-cta-btn:hover {
  background: #E64A19;
  color: white;
  transform: translateY(-2px) scale(1.1);
  box-shadow: 0 12px 30px rgba(255, 87, 34, 0.6);
}

.sticky-cta-btn:focus {
  outline: 2px solid #2563EB;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
}

.sticky-cta-btn:active {
  transform: translateY(-1px) scale(1.02);
}

/* Hide sticky button on very small screens where it might interfere */
@media (max-width: 480px) {
  .sticky-cta-btn {
    bottom: 20px;
    right: 100px;
    padding: 12px 20px;
    font-size: 14px;
  }
}

/* New Sticky Quote Button Styles */
#sticky-quote:hover { 
  transform: translateY(-1px); 
  transition: transform 0.2s ease;
}

#sticky-quote:focus-visible { 
  outline: 3px solid #94a3b8; 
  outline-offset: 2px; 
}

@media (max-width: 420px){
  #sticky-quote{ 
    padding:.8rem 1rem; 
    right:100px; 
    bottom:14px; 
  }
}

/* Reduce excessive white space throughout the site */
.py-5 {
  padding-top: 1.5rem !important;
  padding-bottom: 1.5rem !important;
}

.py-4 {
  padding-top: 1.2rem !important;
  padding-bottom: 1.2rem !important;
}

.py-3 {
  padding-top: 0.8rem !important;
  padding-bottom: 0.8rem !important;
}

.py-2 {
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
}

/* Reduce section spacing for tighter layout */
section {
  margin-bottom: 0.5rem;
}

/* Reduce container spacing */
.container {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

/* Hero section spacing optimization */
.hero-section {
  padding: 40px 0 !important;
}

/* Service cards spacing */
.service-card {
  margin-bottom: 1rem !important;
}

/* Blog spacing */
.blog-preview-links {
  margin-bottom: 1rem !important;
}

/* Blog post content spacing */
.blog-content {
  margin-bottom: 1rem !important;
}

.blog-content h1, .blog-content h2, .blog-content h3 {
  margin-top: 1rem !important;
  margin-bottom: 0.5rem !important;
}

.blog-content p {
  margin-bottom: 0.8rem !important;
}

/* Reduce card spacing */
.card {
  margin-bottom: 1rem !important;
}

/* Reduce form spacing */
.mb-3 {
  margin-bottom: 0.8rem !important;
}

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

/* Chat with me text hover effect */
a[href*="contact"] p:hover {
  background: rgba(255,255,255,1) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
}

/* Sticky CTA Button with Text */
.sticky-cta-btn-with-text {
  position: fixed;
  bottom: 30px;
  right: 130px;
  background: #FF5722;
  color: white;
  width: auto;
  min-width: 120px;
  height: 60px;
  border-radius: 30px;
  text-decoration: none;
  box-shadow: 0 8px 25px rgba(255, 87, 34, 0.4);
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  padding: 0 20px;
}

.sticky-cta-btn-with-text:hover {
  background: #E64A19;
  color: white;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 12px 30px rgba(255, 87, 34, 0.6);
}

.sticky-cta-btn-with-text:focus {
  outline: 2px solid #2563EB;
  outline-offset: 2px;
}
