/* shadcn/ui Design Tokens - Accessible Color System */
:root {
  /* Brand Colors - WCAG AA Compliant */
  --color-primary: #C1121F;
  --color-primary-foreground: #FFFFFF;
  --color-primary-hover: #A30F1A;
  --color-primary-light: #FEF2F2;
  
  /* Neutral Colors - High Contrast */
  --color-background: #FFFFFF;
  --color-foreground: #0F172A; /* Improved from #343A40 for better contrast */
  --color-muted: #F1F5F9;
  --color-muted-foreground: #475569; /* Improved from light grays for contrast */
  --color-accent: #F8FAFC;
  --color-accent-foreground: #1E293B;
  
  /* Semantic Colors - Accessible */
  --color-success: #059669;
  --color-success-foreground: #FFFFFF;
  --color-warning: #D97706;
  --color-warning-foreground: #FFFFFF;
  --color-destructive: #DC2626;
  --color-destructive-foreground: #FFFFFF;
  
  /* Border & Input Colors */
  --color-border: #E2E8F0;
  --color-input: #E2E8F0;
  --color-ring: #C1121F;
  
  /* Component Colors */
  --color-card: #FFFFFF;
  --color-card-foreground: #0F172A;
  --color-popover: #FFFFFF;
  --color-popover-foreground: #0F172A;
  
  /* Typography Scale - WCAG Compliant */
  --font-size-xs: 0.875rem; /* 14px - Minimum readable size */
  --font-size-sm: 0.875rem; /* 14px - WCAG minimum */
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  
  /* Additional Contrast Colors for WCAG AA */
  --color-muted-light: #64748B; /* 7:1 contrast ratio */
  --color-secondary: #475569; /* 4.5:1+ contrast */
  --color-secondary-foreground: #FFFFFF;
  
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-base: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  
  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-base: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  
  /* Shadow System */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-base: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  
  /* Focus Ring */
  --focus-ring: 0 0 0 2px var(--color-ring);
}

/* Enhanced Body with Accessible Defaults */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-family: 'Inter', sans-serif;
  color: var(--color-foreground); /* High contrast text */
  background-color: var(--color-background);
  line-height: 1.6; /* Improved readability */
}

/* shadcn-inspired Button System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-base);
  font-size: var(--font-size-sm);
  font-weight: 500;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: 1px solid transparent;
  min-height: 2.75rem; /* 44px minimum touch target */
  padding: 0.5rem 1rem;
  text-decoration: none;
  outline: none;
  position: relative;
}

.btn:focus-visible {
  box-shadow: var(--focus-ring);
}

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

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

.btn-secondary {
  background-color: var(--color-muted);
  color: var(--color-muted-foreground);
  border-color: var(--color-border);
}

.btn-secondary:hover {
  background-color: var(--color-accent);
  color: var(--color-accent-foreground);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-foreground);
  border-color: var(--color-border);
}

.btn-outline:hover {
  background-color: var(--color-accent);
  color: var(--color-accent-foreground);
}

.btn-ghost {
  background-color: transparent;
  color: var(--color-foreground);
  border-color: transparent;
}

.btn-ghost:hover {
  background-color: var(--color-accent);
  color: var(--color-accent-foreground);
}

/* Button Size Variants */
.btn-sm {
  min-height: 2.25rem; /* 36px */
  padding: 0.375rem 0.75rem;
  font-size: var(--font-size-sm);
}

.btn-lg {
  min-height: 3rem; /* 48px */
  padding: 0.75rem 1.5rem;
  font-size: var(--font-size-base);
}

/* Button States */
.btn:disabled,
.btn[disabled] {
  pointer-events: none;
  opacity: 0.5;
}

.btn-loading {
  color: transparent;
}

.btn-loading::after {
  content: "";
  position: absolute;
  width: 1rem;
  height: 1rem;
  top: 50%;
  left: 50%;
  margin-left: -0.5rem;
  margin-top: -0.5rem;
  border: 2px solid currentColor;
  border-radius: 50%;
  border-top-color: transparent;
  animation: button-loading-spinner 0.6s linear infinite;
}

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

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

.btn-destructive:hover {
  opacity: 0.9;
}

/* Button Sizes */
.btn-sm {
  font-size: var(--font-size-xs);
  padding: 0.375rem 0.75rem;
  min-height: 2.25rem; /* 36px */
}

.btn-lg {
  font-size: var(--font-size-base);
  padding: 0.75rem 1.5rem;
  min-height: 3rem; /* 48px */
}

/* Button States */
.btn:disabled,
.btn[disabled] {
  pointer-events: none;
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-loading {
  pointer-events: none;
  opacity: 0.7;
}

.btn-loading::before {
  content: "";
  position: absolute;
  width: 1rem;
  height: 1rem;
  margin: auto;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: button-loading-spinner 1s ease infinite;
}

@keyframes button-loading-spinner {
  from {
    transform: rotate(0turn);
  }
  to {
    transform: rotate(1turn);
  }
}
/* shadcn-inspired Card System */
.card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background-color: var(--color-card);
  color: var(--color-card-foreground);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card-header {
  display: flex;
  flex-direction: column;
  space-y: 1.5;
  padding: var(--spacing-lg);
}

.card-content {
  padding: var(--spacing-lg);
  padding-top: 0;
}

.card-footer {
  display: flex;
  align-items: center;
  padding: var(--spacing-lg);
  padding-top: 0;
}

/* Enhanced Input System */
.input {
  display: flex;
  width: 100%;
  border-radius: var(--radius-base);
  border: 1px solid var(--color-input);
  background-color: var(--color-background);
  color: var(--color-foreground);
  padding: 0.5rem 0.75rem;
  font-size: var(--font-size-sm);
  line-height: 1.5;
  min-height: 2.5rem; /* 40px minimum */
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.input:focus {
  outline: none;
  border-color: var(--color-ring);
  box-shadow: var(--focus-ring);
}

.input:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

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

/* Label System */
.label {
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-foreground);
  line-height: 1.5;
  margin-bottom: 0.5rem;
  display: block;
}

/* Badge System */
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  padding: 0.25rem 0.75rem;
  font-size: var(--font-size-xs);
  font-weight: 600;
  line-height: 1;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.badge-default {
  background-color: var(--color-muted);
  color: var(--color-muted-foreground);
}

.badge-primary {
  background-color: var(--color-primary);
  color: var(--color-primary-foreground) !important;
}

.badge-success {
  background-color: var(--color-success);
  color: var(--color-success-foreground) !important;
}

.badge-warning {
  background-color: var(--color-warning);
  color: var(--color-warning-foreground) !important;
}

.badge-destructive {
  background-color: var(--color-destructive);
  color: var(--color-destructive-foreground) !important;
}

.badge-outline {
  color: var(--color-foreground);
  border: 1px solid var(--color-border);
  background-color: transparent;
}

/* Enhanced Badge Variants with High Contrast */
.badge-feature {
  background-color: #0F766E; /* Teal for features */
  color: #FFFFFF !important;
  font-weight: 600;
}

.badge-new {
  background-color: #DC2626; /* Red for new items */
  color: #FFFFFF !important;
  font-weight: 600;
  animation: pulse-subtle 2s infinite;
}

.badge-popular {
  background-color: #7C2D12; /* Brown/orange for popular items */
  color: #FFFFFF !important;
  font-weight: 600;
}

.badge-enterprise {
  background-color: #1E293B; /* Dark blue for enterprise */
  color: #FFFFFF !important;
  font-weight: 600;
}

.badge-recommended {
  background-color: #059669; /* Green for recommended */
  color: #FFFFFF !important;
  font-weight: 600;
}

.badge-verified {
  background-color: #1D4ED8; /* Blue for verified */
  color: #FFFFFF !important;
  font-weight: 600;
}

.badge-star {
  background: linear-gradient(135deg, #FBBF24, #F59E0B);
  color: #FFFFFF !important;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Hover effects for interactive badges */
.badge-feature:hover { background-color: #0D9488; }
.badge-new:hover { background-color: #EF4444; }
.badge-popular:hover { background-color: #92400E; }
.badge-enterprise:hover { background-color: #334155; }
.badge-recommended:hover { background-color: #10B981; }
.badge-verified:hover { background-color: #2563EB; }

/* Subtle pulse animation for new badges */
@keyframes pulse-subtle {
  0%, 100% { 
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4);
  }
  50% { 
    transform: scale(1.02);
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1);
  }
}

/* Badge icons */
.badge-icon {
  width: 0.875rem;
  height: 0.875rem;
  margin-right: 0.25rem;
}

.badge-star .badge-icon {
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.2));
}

/* Alert System */
.alert {
  position: relative;
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  padding: var(--spacing-base);
  color: var(--color-foreground);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.alert-default {
  background-color: var(--color-background);
  color: var(--color-foreground);
}

.alert-destructive {
  border-color: var(--color-destructive);
  color: var(--color-destructive);
  background-color: #FEF2F2;
}

.alert-success {
  border-color: var(--color-success);
  color: var(--color-success);
  background-color: #F0FDF4;
}

.alert-warning {
  border-color: var(--color-warning);
  color: var(--color-warning);
  background-color: #FFFBEB;
}

.alert-title {
  margin-bottom: 0.25rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.025em;
}

.alert-description {
  font-size: var(--font-size-sm);
  opacity: 0.8;
  line-height: 1.5;
}

/* Progress System */
.progress {
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: var(--color-muted);
  border-radius: 9999px;
  height: 0.5rem;
}

.progress-indicator {
  height: 100%;
  width: 100%;
  flex: 1;
  background-color: var(--color-primary);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: left;
}

/* Enhanced Typography */
.text-muted {
  color: var(--color-muted-foreground);
}

.text-accent {
  color: var(--color-accent-foreground);
}

/* Improved contrast for small text */
.text-xs {
  font-size: var(--font-size-xs);
  color: var(--color-muted-foreground); /* Better contrast than light grays */
}

.text-sm {
  font-size: var(--font-size-sm);
  color: var(--color-foreground);
}

/* Ensure minimum readable text sizes for accessibility */
@media screen and (max-width: 768px) {
  .text-xs:not(.badge):not(.tooltip-box-paket) {
    font-size: 0.875rem; /* Upgrade to text-sm on mobile for better readability */
  }
  
  .text-xs.badge {
    font-size: 0.75rem; /* Badges can remain smaller but with better contrast */
    font-weight: 600;
  }
  
  /* Enhanced line heights for better readability */
  .text-sm, .text-xs {
    line-height: 1.5; /* Improved from default 1.25 */
  }
  
  .text-base {
    line-height: 1.6; /* Comfortable reading line height */
  }
  
  .text-lg {
    line-height: 1.6; /* Optimal for larger text */
  }
  
  .text-xl, .text-2xl, .text-3xl {
    line-height: 1.4; /* Slightly tighter for headings */
  }
}

/* Accessible Focus States */
*:focus-visible {
  outline: 2px solid var(--color-ring);
  outline-offset: 2px;
}

/* Remove default focus for mouse users */
*:focus:not(:focus-visible) {
  outline: none;
}

    .hero-gradient {
      background-image: linear-gradient(135deg, rgba(27, 38, 59, 0.65) 0%, rgba(65, 90, 119, 0.7) 100%);
    }
    .section-padding {
      padding-top: 2.5rem; 
      padding-bottom: 2.5rem; 
    }
    @media (min-width: 640px) { /* sm */
      .section-padding {
        padding-top: 4rem; 
        padding-bottom: 4rem; 
      }
    }
    @media (min-width: 768px) { /* md */
      .section-padding {
        padding-top: 5rem; 
        padding-bottom: 5rem; 
      }
    }
    .icon-service-original { 
      font-size: 2.25rem; 
      line-height: 1;
      display: flex;
      justify-content: center;
      align-items: center;
    }
    .fade-in-up {
      opacity: 0;
      transform: translateY(30px);
      transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    }
    .fade-in-up.visible {
      opacity: 1;
      transform: translateY(0);
    }
    .smooth-scroll { scroll-behavior: smooth; }

    /* Enhanced Tooltip System */
    .tooltip-container {
      position: relative;
      display: inline-block;
    }

    /* Enhanced tooltip trigger styling */
    .tooltip-trigger {
      cursor: help;
      position: relative;
      border-bottom: 1px dotted var(--color-muted-foreground);
      transition: border-color 0.2s ease;
    }

    .tooltip-trigger:hover,
    .tooltip-trigger:focus {
      border-bottom-color: var(--color-primary);
    }

    /* Improved accessibility for screen readers */
    .tooltip-trigger[aria-describedby] {
      position: relative;
    }

    .tooltip-box, .tooltip-box-paket {
      display: none;
      position: absolute;
      bottom: 100%;
      left: 50%; 
      transform: translateX(-50%); 
      margin-bottom: 0.5rem;
      background-color: var(--color-popover); 
      color: var(--color-popover-foreground);
      font-size: 0.875rem; /* Improved readability */
      padding: 0.75rem 1rem;
      border-radius: var(--radius-base);
      border: 1px solid var(--color-border);
      box-shadow: var(--shadow-lg);
      min-width: 12rem; 
      max-width: 18rem;
      white-space: normal; 
      z-index: 30;
      opacity: 0;
      transition: opacity 0.2s ease-in-out;
      line-height: 1.4;
      text-align: left;
    }

    .tooltip-box::before, .tooltip-box-paket::before {
      content: '';
      position: absolute;
      top: 100%;
      left: 50%;
      transform: translateX(-50%);
      border: 6px solid transparent;
      border-top-color: var(--color-popover);
    }

    .tooltip-box::after, .tooltip-box-paket::after {
      content: '';
      position: absolute;
      top: calc(100% + 1px);
      left: 50%;
      transform: translateX(-50%);
      border: 5px solid transparent;
      border-top-color: var(--color-popover);
    }

    /* Show tooltips on hover and focus */
    .tooltip-container:hover .tooltip-box,
    .info-icon-container:hover .tooltip-box-paket,
    .tooltip-container:focus-within .tooltip-box {
      display: block;
      opacity: 1;
    }

    /* Tooltip variations */
    .tooltip-box.tooltip-top {
      bottom: 100%;
      top: auto;
      margin-bottom: 0.5rem;
      margin-top: 0;
    }

    .tooltip-box.tooltip-bottom {
      top: 100%;
      bottom: auto;
      margin-top: 0.5rem;
      margin-bottom: 0;
    }

    .tooltip-box.tooltip-bottom::before {
      bottom: 100%;
      top: auto;
      border-top-color: transparent;
      border-bottom-color: var(--color-popover);
    }

    .tooltip-box.tooltip-bottom::after {
      bottom: calc(100% + 1px);
      top: auto;
      border-top-color: transparent;
      border-bottom-color: var(--color-popover);
    }

    /* Help icon styling */
    .help-icon {
      color: var(--color-muted-foreground);
      cursor: help;
      transition: color 0.2s ease;
      margin-left: 0.25rem;
    }

    .help-icon:hover, .help-icon:focus {
      color: var(--color-primary);
    }

    /* Mobile tooltip adjustments */
    @media screen and (max-width: 768px) {
      .tooltip-box, .tooltip-box-paket {
        position: fixed;
        left: 1rem;
        right: 1rem;
        bottom: auto;
        top: auto;
        transform: none;
        max-width: none;
        margin: 0;
        z-index: 50;
        font-size: 0.875rem; /* Slightly larger on mobile */
        padding: 1rem 1.25rem; /* More padding for touch interfaces */
      }

      .tooltip-container:hover .tooltip-box,
      .info-icon-container:hover .tooltip-box-paket,
      .tooltip-container:focus-within .tooltip-box {
        bottom: 2rem;
        top: auto;
      }

      /* Remove arrow on mobile for cleaner look */
      .tooltip-box::before, .tooltip-box::after,
      .tooltip-box-paket::before, .tooltip-box-paket::after {
        display: none;
      }
    }

    /* Touch-friendly tooltip activation */
    @media (hover: none) and (pointer: coarse) {
      .tooltip-container:active .tooltip-box,
      .info-icon-container:active .tooltip-box-paket {
        display: block;
        opacity: 1;
      }
    }
    
    /* Custom Slider Implementation */
    .custom-slider-container {
        position: relative;
        width: 100%;
        height: 1.25rem;
        display: flex;
        align-items: center;
        cursor: pointer;
    }
    
    .custom-slider-track {
        position: absolute;
        width: 100%;
        height: 0.5rem;
        background-color: var(--color-muted);
        border-radius: 9999px;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .custom-slider-thumb {
        position: absolute;
        width: 1rem;
        height: 1rem;
        border-radius: 50%;
        border: 2px solid var(--color-background);
        cursor: pointer;
        box-shadow: var(--shadow-sm);
        z-index: 10;
        top: 50%;
        transform: translateY(-50%);
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .custom-slider-thumb:hover {
        box-shadow: var(--shadow-md);
    }
    
    .custom-slider-thumb:focus-visible {
        outline: 2px solid var(--color-ring);
        outline-offset: 2px;
    }
    
    .custom-slider-thumb.accent-primary {
        background-color: var(--color-primary);
    }
    
    .custom-slider-thumb.accent-secondary {
        background-color: var(--color-accent-foreground);
    }
    
    /* Hide the original range input */
    .durasi-slider {
        opacity: 0;
        position: absolute;
        width: 100%;
        height: 100%;
        cursor: pointer;
        z-index: 20;
    }
    
    /* Touch device optimizations */
    @media (hover: none) and (pointer: coarse) {
      .hover\:shadow-medium:hover {
        box-shadow: var(--shadow-lg);
      }
      
      .hover\:bg-primary-dark:hover {
        background-color: var(--color-primary-hover);
      }
      
      .hover\:bg-neutral-medium:hover {
        background-color: var(--color-accent);
      }
      
      /* Enhanced touch targets */
      .btn {
        min-height: 3rem; /* 48px for touch */
        padding: 0.75rem 1rem;
      }
      
      .custom-slider-thumb {
        width: 1.125rem;
        height: 1.125rem;
      }
    }
    
    /* Touch manipulation for better performance */
    .touch-manipulation {
      touch-action: manipulation;
    }
    
    /* Safe area handling for modern devices */
    .safe-area-padding {
      padding-left: env(safe-area-inset-left);
      padding-right: env(safe-area-inset-right);
    }

/* Enhanced Card Components - shadcn/ui Inspired */
.card {
  background: var(--color-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.card:hover {
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  transform: translateY(-2px);
}

.card-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

.card-content {
  padding: 1.5rem;
}

.card-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--color-border);
  background: var(--color-muted);
}

/* Enhanced Modal Components */
.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  background: var(--color-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 32rem;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(1rem);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* Micro-interactions */
.hover-lift {
  transition: transform 0.2s ease;
}

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

.hover-scale {
  transition: transform 0.2s ease;
}

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

.hover-glow {
  transition: box-shadow 0.3s ease;
}

.hover-glow:hover {
  box-shadow: 0 0 20px rgba(193, 18, 31, 0.3);
}

/* Pulse Animation for CTAs */
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.pulse {
  animation: pulse 2s infinite;
}

/* Smooth Fade Transitions */
.fade-in {
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Package Card Enhancements */
.package-card {
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.package-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-hover));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.package-card:hover::before {
  transform: scaleX(1);
}

.package-card-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--color-primary);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-base);
  font-size: var(--font-size-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Navigation Enhancements */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: width 0.3s ease;
}

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

.nav-icon {
  transition: transform 0.2s ease;
}

.nav-link:hover .nav-icon {
  transform: scale(1.1);
}

/* Mobile Menu Animations */
.mobile-menu {
  opacity: 0;
  transform: translateY(-10px) scale(0.95);
  pointer-events: none;
}

.mobile-menu.active,
.mobile-menu.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.mobile-menu-button:hover .hamburger-icon {
  transform: scale(1.05);
}

.mobile-menu-button.active .hamburger-icon {
  transform: rotate(90deg);
}

.mobile-menu-item {
  opacity: 0;
  transform: translateX(-20px);
  animation: slideInLeft 0.3s ease forwards;
}

.mobile-menu-item:nth-child(1) { animation-delay: 0.1s; }
.mobile-menu-item:nth-child(2) { animation-delay: 0.15s; }
.mobile-menu-item:nth-child(3) { animation-delay: 0.2s; }
.mobile-menu-item:nth-child(4) { animation-delay: 0.25s; }
.mobile-menu-item:nth-child(5) { animation-delay: 0.3s; }

@keyframes slideInLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Enhanced Touch Targets */
@media (hover: none) and (pointer: coarse) {
  .nav-link, 
  .mobile-menu-item {
    min-height: 44px;
    padding: 12px 16px;
  }
  
  .mobile-menu-button {
    min-width: 48px;
    min-height: 48px;
  }
}

/* Navigation Icon Enhancements */
.nav-icon {
  flex-shrink: 0;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  margin-right: 0.5rem;
}

.nav-link:hover .nav-icon {
  transform: translateY(-1px);
}

.mobile-menu-icon svg {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

.mobile-menu-button.menu-open .hamburger-line-1 {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-button.menu-open .hamburger-line-2 {
  opacity: 0;
  transform: translateX(20px);
}

.mobile-menu-button.menu-open .hamburger-line-3 {
  transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-menu {
  transform: translateY(-10px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.mobile-menu.show {
  transform: translateY(0);
  opacity: 1;
}

.mobile-menu-item {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: var(--radius-base);
}

.mobile-menu-item:hover {
  background-color: var(--color-accent);
  transform: translateX(2px);
}

.mobile-menu-item svg {
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-item:hover svg {
  transform: scale(1.05);
}

/* Dropdown indicators */
.dropdown-indicator {
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  margin-left: 0.25rem;
}

.dropdown-open .dropdown-indicator {
  transform: rotate(180deg);
}

/* Image Loading States and Lazy Loading */
.image-container {
  position: relative;
  overflow: hidden;
  background-color: var(--color-muted);
}

.lazy-image {
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lazy-image.loaded {
  opacity: 1;
}

.lazy-image.error {
  opacity: 0.6;
  filter: grayscale(100%);
}

/* Loading Placeholder */
.image-loading-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    var(--color-muted) 25%,
    var(--color-accent) 50%,
    var(--color-muted) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.image-loading-placeholder::before {
  content: '';
  width: 2rem;
  height: 2rem;
  border: 2px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.image-loading-placeholder.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Hero Image Loading & Parallax */
.hero-image-container {
  position: absolute;
  inset: 0;
  background-color: var(--color-secondary);
  overflow: hidden;
}

/* Parallax Effect */
.parallax-hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  overflow: hidden;
}

.parallax-bg {
  position: absolute;
  top: -20%;
  left: 0;
  width: 100%;
  height: 120%;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  z-index: 0;
}

.parallax-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 120px;
  padding-bottom: 60px;
}

.parallax-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(27, 38, 59, 0.3) 0%, rgba(65, 90, 119, 0.4) 100%);
  z-index: 1;
}

/* Blog Hero Parallax */
.blog-parallax-hero {
  position: relative;
  height: 70vh;
  min-height: 500px;
  overflow: hidden;
}

.blog-parallax-bg {
  position: absolute;
  top: -15%;
  left: 0;
  width: 100%;
  height: 115%;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

/* Smooth Parallax Animation */
@keyframes parallaxFloat {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.parallax-float {
  animation: parallaxFloat 6s ease-in-out infinite;
}

/* Mobile Optimization - Enhanced Responsive Design */
@media (max-width: 480px) {
  .parallax-bg,
  .blog-parallax-bg {
    background-attachment: scroll;
    transform: none;
    top: 0;
    height: 100%;
  }
  
  .parallax-hero {
    height: 100vh;
    min-height: 700px; /* Increased for better card visibility */
  }
  
  .parallax-content {
    padding-top: 80px;
    padding-bottom: 60px; /* Increased bottom padding */
    overflow-y: auto; /* Allow scrolling if needed */
  }
  
  .blog-parallax-hero {
    height: 60vh;
    min-height: 400px;
  }
}

@media (min-width: 481px) and (max-width: 640px) {
  .parallax-bg,
  .blog-parallax-bg {
    background-attachment: scroll;
    transform: none;
    top: 0;
    height: 100%;
  }
  
  .parallax-hero {
    height: 95vh;
    min-height: 650px;
  }
  
  .parallax-content {
    padding-top: 90px;
    padding-bottom: 50px;
  }
}

@media (min-width: 641px) and (max-width: 768px) {
  .parallax-bg,
  .blog-parallax-bg {
    background-attachment: scroll;
    transform: none;
    top: 0;
    height: 100%;
  }
  
  .parallax-hero {
    height: 90vh;
    min-height: 600px;
  }
  
  .parallax-content {
    padding-top: 100px;
    padding-bottom: 40px;
  }
}

/* Subtle Background Patterns */
.subtle-pattern-overlay {
  position: relative;
  overflow: hidden;
}

.subtle-pattern-overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.06;
  pointer-events: none;
  z-index: 0;
}

/* Services Section Background */
.services-bg {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.services-bg::before {
  background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIwIiBoZWlnaHQ9IjEyMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8ZGVmcz4KICAgIDxwYXR0ZXJuIGlkPSJzZWN1cml0eS1wYXR0ZXJuIiB4PSIwIiB5PSIwIiB3aWR0aD0iMTIwIiBoZWlnaHQ9IjEyMCIgcGF0dGVyblVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+CiAgICAgIDxjaXJjbGUgY3g9IjIwIiBjeT0iMjAiIHI9IjMiIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzQ3NTU2OSIgc3Ryb2tlLXdpZHRoPSIwLjUiIG9wYWNpdHk9IjAuNyIvPgogICAgICA8cmVjdCB4PSI2MCIgeT0iMTAiIHdpZHRoPSIxNiIgaGVpZ2h0PSIxMCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjNDc1NTY5IiBzdHJva2Utd2lkdGg9IjAuNSIgb3BhY2l0eT0iMC41Ii8+CiAgICAgIDxwYXRoIGQ9Ik0xMCA2MHEwLTEwIDEwLTEwdDEwIDEwIiBmaWxsPSJub25lIiBzdHJva2U9IiM0NzU1NjkiIHN0cm9rZS13aWR0aD0iMC41IiBvcGFjaXR5PSIwLjQiLz4KICAgICAgPGNpcmNsZSBjeD0iMTAwIiBjeT0iMTAwIiByPSI0IiBmaWxsPSJub25lIiBzdHJva2U9IiM0NzU1NjkiIHN0cm9rZS13aWR0aD0iMC41IiBvcGFjaXR5PSIwLjMiLz4KICAgICAgPGxpbmUgeDE9IjgwIiB5MT0iMzAiIHgyPSI5NSIgeTI9IjMwIiBzdHJva2U9IiM0NzU1NjkiIHN0cm9rZS13aWR0aD0iMC41IiBvcGFjaXR5PSIwLjQiLz4KICAgIDwvcGF0dGVybj4KICA8L2RlZnM+CiAgPHJlY3Qgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgZmlsbD0idXJsKCNzZWN1cml0eS1wYXR0ZXJuKSIvPgo8L3N2Zz4K');
  background-size: 120px 120px;
}

/* Testimonials Section Background */
.testimonials-bg {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.testimonials-bg::before {
  background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwIiBoZWlnaHQ9IjEwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8ZGVmcz4KICAgIDxwYXR0ZXJuIGlkPSJ0ZXN0aW1vbmlhbC1wYXR0ZXJuIiB4PSIwIiB5PSIwIiB3aWR0aD0iMTAwIiBoZWlnaHQ9IjEwMCIgcGF0dGVyblVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+CiAgICAgIDxwb2x5Z29uIHBvaW50cz0iNTAsMTAgNjAsMzAgNDAsNDAgMTAsNDAgMzAsMjAiIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzY0NzQ4YiIgc3Ryb2tlLXdpZHRoPSIwLjMiIG9wYWNpdHk9IjAuNCIvPgogICAgICA8Y2lyY2xlIGN4PSI4MCIgY3k9IjgwIiByPSI4IiBmaWxsPSJub25lIiBzdHJva2U9IiM2NDc0OGIiIHN0cm9rZS13aWR0aD0iMC4zIiBvcGFjaXR5PSIwLjMiLz4KICAgICAgPHBhdGggZD0iTTIwIDgwcTEwLTEwIDIwIDAgMTAtMTAgMjAgMCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjNjQ3NDhiIiBzdHJva2Utd2lkdGg9IjAuMyIgb3BhY2l0eT0iMC4zIi8+CiAgICAgIDxyZWN0IHg9IjcwIiB5PSIxNSIgd2lkdGg9IjE1IiBoZWlnaHQ9IjE1IiBmaWxsPSJub25lIiBzdHJva2U9IiM2NDc0OGIiIHN0cm9rZS13aWR0aD0iMC4zIiBvcGFjaXR5PSIwLjIiLz4KICAgIDwvcGF0dGVybj4KICA8L2RlZnM+CiAgPHJlY3Qgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgZmlsbD0idXJsKCN0ZXN0aW1vbmlhbC1wYXR0ZXJuKSIvPgo8L3N2Zz4K');
  background-size: 100px 100px;
  opacity: 0.04;
}

/* Packages Section Background */
.packages-bg {
  background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
}

.packages-bg::before {
  background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iODAiIGhlaWdodD0iODAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgPGRlZnM+CiAgICA8cGF0dGVybiBpZD0idGVjaC1wYXR0ZXJuIiB4PSIwIiB5PSIwIiB3aWR0aD0iODAiIGhlaWdodD0iODAiIHBhdHRlcm5Vbml0cz0idXNlclNwYWNlT25Vc2UiPgogICAgICA8Y2lyY2xlIGN4PSI0MCIgY3k9IjQwIiByPSIyIiBmaWxsPSIjNDc1NTY5IiBvcGFjaXR5PSIwLjQiLz4KICAgICAgPGxpbmUgeDE9IjIwIiB5MT0iMjAiIHgyPSI2MCIgeTI9IjIwIiBzdHJva2U9IiM0NzU1NjkiIHN0cm9rZS13aWR0aD0iMC4zIiBvcGFjaXR5PSIwLjMiLz4KICAgICAgPGxpbmUgeDE9IjIwIiB5MT0iNjAiIHgyPSI2MCIgeTI9IjYwIiBzdHJva2U9IiM0NzU1NjkiIHN0cm9rZS13aWR0aD0iMC4zIiBvcGFjaXR5PSIwLjMiLz4KICAgICAgPGxpbmUgeDE9IjIwIiB5MT0iMjAiIHgyPSIyMCIgeTI9IjYwIiBzdHJva2U9IiM0NzU1NjkiIHN0cm9rZS13aWR0aD0iMC4zIiBvcGFjaXR5PSIwLjMiLz4KICAgICAgPGxpbmUgeDE9IjYwIiB5MT0iMjAiIHgyPSI2MCIgeTI9IjYwIiBzdHJva2U9IiM0NzU1NjkiIHN0cm9rZS13aWR0aD0iMC4zIiBvcGFjaXR5PSIwLjMiLz4KICAgICAgPGNpcmNsZSBjeD0iMjAiIGN5PSIyMCIgcj0iMS41IiBmaWxsPSJub25lIiBzdHJva2U9IiM0NzU1NjkiIHN0cm9rZS13aWR0aD0iMC4yIiBvcGFjaXR5PSIwLjQiLz4KICAgICAgPGNpcmNsZSBjeD0iNjAiIGN5PSI2MCIgcj0iMS41IiBmaWxsPSJub25lIiBzdHJva2U9IiM0NzU1NjkiIHN0cm9rZS13aWR0aD0iMC4yIiBvcGFjaXR5PSIwLjQiLz4KICAgIDwvcGF0dGVybj4KICA8L2RlZnM+CiAgPHJlY3Qgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgZmlsbD0idXJsKCN0ZWNoLXBhdHRlcm4pIi8+Cjwvc3ZnPgo=');
  background-size: 80px 80px;
  opacity: 0.05;
}

/* Portfolio Section Background */
.portfolio-bg {
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.portfolio-bg::before {
  background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iOTAiIGhlaWdodD0iOTAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgPGRlZnM+CiAgICA8cGF0dGVybiBpZD0icG9ydGZvbGlvLXBhdHRlcm4iIHg9IjAiIHk9IjAiIHdpZHRoPSI5MCIgaGVpZ2h0PSI5MCIgcGF0dGVyblVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+CiAgICAgIDxyZWN0IHg9IjE1IiB5PSIxNSIgd2lkdGg9IjE4IiBoZWlnaHQ9IjEyIiBmaWxsPSJub25lIiBzdHJva2U9IiM2NDc0OGIiIHN0cm9rZS13aWR0aD0iMC4yIiBvcGFjaXR5PSIwLjMiLz4KICAgICAgPHJlY3QgeD0iNTUiIHk9IjU1IiB3aWR0aD0iMTgiIGhlaWdodD0iMTIiIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzY0NzQ4YiIgc3Ryb2tlLXdpZHRoPSIwLjIiIG9wYWNpdHk9IjAuMyIvPgogICAgICA8Y2lyY2xlIGN4PSI0NSIgY3k9IjQ1IiByPSI0IiBmaWxsPSJub25lIiBzdHJva2U9IiM2NDc0OGIiIHN0cm9rZS13aWR0aD0iMC4zIiBvcGFjaXR5PSIwLjI1Ii8+CiAgICAgIDxwYXRoIGQ9Ik0xMCA3MEwyNSA1NSA0MCA3MFoiIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzY0NzQ4YiIgc3Ryb2tlLXdpZHRoPSIwLjIiIG9wYWNpdHk9IjAuMiIvPgogICAgPC9wYXR0ZXJuPgogIDwvZGVmcz4KICA8cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWxsPSJ1cmwoI3BvcnRmb2xpby1wYXR0ZXJuKSIvPgo8L3N2Zz4K');
  background-size: 90px 90px;
  opacity: 0.04;
}

/* Background Utility Classes */
.bg-neutral-dark {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

/* Transparency Utilities for Parallax Background Effect */
.bg-opacity-90 {
  background-color: rgba(255, 255, 255, 0.9) !important;
}

.bg-opacity-85 {
  background-color: rgba(241, 245, 249, 0.85) !important; /* neutral-light with opacity */
}

.backdrop-blur-sm {
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Contact Section Background */
.contact-bg {
  background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
}

.contact-bg::before {
  background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNzAiIGhlaWdodD0iNzAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgPGRlZnM+CiAgICA8cGF0dGVybiBpZD0iY29udGFjdC1wYXR0ZXJuIiB4PSIwIiB5PSIwIiB3aWR0aD0iNzAiIGhlaWdodD0iNzAiIHBhdHRlcm5Vbml0cz0idXNlclNwYWNlT25Vc2UiPgogICAgICA8Y2lyY2xlIGN4PSIzNSIgY3k9IjM1IiByPSIzIiBmaWxsPSJub25lIiBzdHJva2U9IiM0NzU1NjkiIHN0cm9rZS13aWR0aD0iMC4zIiBvcGFjaXR5PSIwLjMiLz4KICAgICAgPHBhdGggZD0iTTUgMjB2MjBxMC01IDUtNWg1MHEwIDUgNSA1VjIwIiBmaWxsPSJub25lIiBzdHJva2U9IiM0NzU1NjkiIHN0cm9rZS13aWR0aD0iMC4yIiBvcGFjaXR5PSIwLjI1Ii8+CiAgICAgIDxwb2x5Z29uIHBvaW50cz0iMTAsMTAgMjAsMTAgMTUsNSIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjNDc1NTY5IiBzdHJva2Utd2lkdGg9IjAuMiIgb3BhY2l0eT0iMC4yIi8+CiAgICAgIDxsaW5lIHgxPSI1NSIgeTE9IjU1IiB4Mj0iNjUiIHkyPSI2NSIgc3Ryb2tlPSIjNDc1NTY5IiBzdHJva2Utd2lkdGg9IjAuMiIgb3BhY2l0eT0iMC4yIi8+CiAgICA8L3BhdHRlcm4+CiAgPC9kZWZzPgogIDxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjY29udGFjdC1wYXR0ZXJuKSIvPgo8L3N2Zz4K');
  background-size: 70px 70px;
  opacity: 0.03;
}

/* Blog Section Background */
.blog-bg {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.blog-bg::before {
  background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjAiIGhlaWdodD0iNjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgPGRlZnM+CiAgICA8cGF0dGVybiBpZD0iYmxvZy1wYXR0ZXJuIiB4PSIwIiB5PSIwIiB3aWR0aD0iNjAiIGhlaWdodD0iNjAiIHBhdHRlcm5Vbml0cz0idXNlclNwYWNlT25Vc2UiPgogICAgICA8cmVjdCB4PSI1IiB5PSI1IiB3aWR0aD0iMjAiIGhlaWdodD0iMTUiIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzY0NzQ4YiIgc3Ryb2tlLXdpZHRoPSIwLjI1IiBvcGFjaXR5PSIwLjMiLz4KICAgICAgPGxpbmUgeDE9IjgiIHkxPSIyNSIgeDI9IjIwIiB5Mj0iMjUiIHN0cm9rZT0iIzY0NzQ4YiIgc3Ryb2tlLXdpZHRoPSIwLjI1IiBvcGFjaXR5PSIwLjI1Ii8+CiAgICAgIDxsaW5lIHgxPSI4IiB5MT0iMzAiIHgyPSIxNSIgeTI9IjMwIiBzdHJva2U9IiM2NDc0OGIiIHN0cm9rZS13aWR0aD0iMC4yNSIgb3BhY2l0eT0iMC4yIi8+CiAgICAgIDxjaXJjbGUgY3g9IjQ1IiBjeT0iNDUiIHI9IjMiIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzY0NzQ4YiIgc3Ryb2tlLXdpZHRoPSIwLjI1IiBvcGFjaXR5PSIwLjIiLz4KICAgIDwvcGF0dGVybj4KICA8L2RlZnM+CiAgPHJlY3Qgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgZmlsbD0idXJsKCNibG9nLXBhdHRlcm4pIi8+Cjwvc3ZnPgo=');
  background-size: 60px 60px;
  opacity: 0.04;
}

.hero-image-container .image-loading-placeholder {
  background: linear-gradient(
    90deg,
    rgba(27, 38, 59, 0.8) 25%,
    rgba(65, 90, 119, 0.9) 50%,
    rgba(27, 38, 59, 0.8) 75%
  );
}

.hero-image-container .image-loading-placeholder::before {
  border-color: rgba(255, 255, 255, 0.3);
  border-top-color: var(--color-primary);
}

/* Package Card Image Loading */
.package-image-container {
  position: relative;
  width: 100%;
  height: 9rem; /* h-36 equivalent */
  border-radius: var(--radius-base);
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.package-image-container .image-loading-placeholder {
  border-radius: var(--radius-base);
}

/* Image Error State */
.image-error-state {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--color-muted-foreground);
  font-size: var(--font-size-sm);
  text-align: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.image-error-state.visible {
  opacity: 1;
}

.image-error-state svg {
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.5rem;
  opacity: 0.6;
}

/* Critical image loading prioritization */
.hero-image,
.above-fold-image {
  /* Critical images load immediately */
  opacity: 1;
}

/* Blur-up loading effect for package images */
.blur-up {
  filter: blur(5px);
  transition: filter 0.3s ease, opacity 0.3s ease;
}

.blur-up.loaded {
  filter: blur(0);
}

/* Loading state for service icons */
.service-icon-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 4rem;
}

.service-icon-loading {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-muted);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-icon-loading.visible {
  opacity: 1;
}

.service-icon-loading::before {
  content: '';
  width: 1.5rem;
  height: 1.5rem;
  border: 2px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Performance optimizations for images */
.lazy-image {
  content-visibility: auto;
  contain: layout style paint;
}

/* Reduce motion for users with motion sensitivity */
@media (prefers-reduced-motion: reduce) {
  .lazy-image,
  .image-loading-placeholder,
  .blur-up {
    transition: none;
    animation: none;
  }
  
  .image-loading-placeholder::before {
    animation: none;
    border-top-color: transparent;
  }
}

/* Blog Section Styling */
.blog-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.blog-image-container {
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
}

.blog-image-container img {
  transition: transform 0.3s ease;
}

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

/* Line clamp utilities for text truncation */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Blog carousel dots */
#blog-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #d1d5db;
  transition: all 0.3s ease;
  cursor: pointer;
}

#blog-dots .dot.active {
  width: 24px;
  border-radius: 4px;
  background-color: var(--color-primary);
}

#blog-dots .dot:hover:not(.active) {
  background-color: #9ca3af;
}

/* Blog navigation buttons */
#blog-prev,
#blog-next {
  opacity: 0.9;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  min-width: 48px;
  min-height: 48px;
}

#blog-prev:hover,
#blog-next:hover {
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(193, 18, 31, 0.2);
}

#blog-prev:hover {
  transform: translateY(-50%) translateX(-3px) scale(1.1);
}

#blog-prev:hover svg {
  transform: translateX(-2px);
  color: #C1121F;
}

#blog-next:hover {
  transform: translateY(-50%) translateX(3px) scale(1.1);
}

#blog-next:hover svg {
  transform: translateX(2px);
  color: #C1121F;
}

#blog-prev:active,
#blog-next:active {
  transform: translateY(-50%) scale(0.95);
  transition-duration: 0.15s;
}

#blog-prev:disabled,
#blog-next:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: translateY(-50%) scale(0.9);
}

#blog-prev:disabled:hover,
#blog-next:disabled:hover {
  opacity: 0.3;
  transform: translateY(-50%) scale(0.9);
  box-shadow: none;
}

/* Enhanced mobile experience */
@media (max-width: 768px) {
  #blog-prev,
  #blog-next {
    opacity: 0.95;
    min-width: 44px;
    min-height: 44px;
    backdrop-filter: blur(8px);
  }
  
  #blog-prev:hover {
    transform: translateY(-50%) translateX(-2px) scale(1.05);
  }
  
  #blog-next:hover {
    transform: translateY(-50%) translateX(2px) scale(1.05);
  }
}

/* Focus styles for accessibility */
#blog-prev:focus-visible,
#blog-next:focus-visible {
  outline: 2px solid #C1121F;
  outline-offset: 2px;
}

/* Blog article hover effects */
.blog-card .badge {
  transition: transform 0.3s ease;
}

.blog-card:hover .badge {
  transform: scale(1.05);
}

/* ===== CERTIFICATION BADGES ===== */

/* Hero Section Badge Styles */
.certification-badges-hero {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

.certification-item-hero {
  transition: all 0.3s ease;
}

.certification-item-hero img {
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
  transition: all 0.3s ease;
}

.certification-item-hero:hover img {
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
}

/* Main Certification Section Styles */
.certification-badges {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  position: relative;
}

.certification-badges::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 20%, rgba(193, 18, 31, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(193, 18, 31, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

.certification-item {
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.6s ease forwards;
}

.certification-item > div {
  border: 1px solid rgba(226, 232, 240, 0.5);
  backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.certification-item > div::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(193, 18, 31, 0.05), transparent);
  transform: rotate(-45deg);
  transition: all 0.6s ease;
  opacity: 0;
}

.certification-item:hover > div::before {
  animation: shimmer 1.5s ease-in-out;
  opacity: 1;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(-45deg);
  }
  50% {
    transform: translateX(-50%) translateY(-50%) rotate(-45deg);
  }
  100% {
    transform: translateX(100%) translateY(100%) rotate(-45deg);
  }
}

.certification-item img {
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.certification-item:hover img {
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.15));
}

.certification-item h3 {
  color: var(--color-secondary);
  position: relative;
}

.certification-item h3::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 30px;
  height: 2px;
  background: var(--color-primary);
  transition: transform 0.3s ease;
}

.certification-item:hover h3::after {
  transform: translateX(-50%) scaleX(1);
}

/* Enhanced CTA Button in Certification Section */
.certification-badges .bg-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
  position: relative;
  overflow: hidden;
}

.certification-badges .bg-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.certification-badges .bg-primary:hover::before {
  left: 100%;
}

/* Mobile-First Responsive Design */
@media (max-width: 640px) {
  .certification-badges-hero .flex {
    flex-direction: column;
    space-y: 1rem;
  }
  
  .certification-badges-hero .certification-item-hero {
    margin-bottom: 1rem;
  }
  
  .certification-badges-hero img {
    height: 3rem; /* 48px */
  }
  
  .certification-item {
    max-width: 100%;
  }
  
  .certification-item > div {
    padding: 1.25rem;
  }
  
  .certification-item img {
    height: 4.5rem; /* 72px on mobile */
  }
}

@media (min-width: 641px) and (max-width: 768px) {
  .certification-badges-hero img {
    height: 3.5rem; /* 56px */
  }
  
  .certification-item img {
    height: 5rem; /* 80px on tablet */
  }
}

@media (min-width: 769px) {
  .certification-badges-hero img {
    height: 4rem; /* 64px */
  }
  
  .certification-item img {
    height: 6rem; /* 96px on desktop */
  }
}

/* High-contrast mode support */
@media (prefers-contrast: high) {
  .certification-item > div {
    border: 2px solid var(--color-border);
  }
  
  .certification-item img {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .certification-item,
  .certification-badges-hero,
  .certification-item-hero,
  .certification-item img {
    animation: none;
    transition: none;
  }
  
  .certification-item:hover > div {
    transform: none;
  }
}

/* ===== PERSONA-FOCUSED DESIGN SYSTEM ===== */

/* Persona Selection Cards */
.persona-selection {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

.persona-card {
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.persona-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.6s ease;
}

.persona-card:hover::before {
  left: 100%;
}

.persona-card:hover {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Service Area CTA */
.service-area-cta {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

/* Persona Section Highlight Effect */
.persona-highlight {
  position: relative;
}

.persona-highlight::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-hover));
  z-index: 10;
  animation: slideIn 0.5s ease;
}

@keyframes slideIn {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

/* Breadcrumb Navigation */
.breadcrumb-nav {
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.breadcrumb-nav:hover {
  opacity: 1;
}

.breadcrumb-nav a {
  transition: color 0.2s ease;
}

/* Enhanced CTA Buttons */
.btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

/* Persona-Specific Color Schemes */
#residential {
  --section-primary: #3B82F6;
  --section-primary-hover: #2563EB;
  --section-bg: linear-gradient(135deg, #EBF8FF 0%, #DBEAFE 100%);
}

/* Residential Section Image Styling */
#residential .relative img {
  max-height: 500px;
  min-height: 350px;
  object-position: center center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#residential .relative:hover img {
  transform: translateY(-2px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Responsive Image Optimization */
@media (max-width: 768px) {
  #residential .relative img {
    max-height: 300px;
    min-height: 250px;
  }
  
  #residential .absolute {
    -bottom-6: -1rem;
    -left-6: -1rem;
  }
}

/* Image Loading State */
#residential .relative img[loading="lazy"] {
  background: linear-gradient(90deg, #f0f0f0 25%, transparent 37%, #f0f0f0 63%);
  background-size: 400% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
}

@keyframes shimmer {
  0% { background-position: 100% 50%; }
  100% { background-position: -100% 50%; }
}

/* Image Error State */
#residential .relative img::after {
  content: "📱 Smart Home Security";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, #3B82F6, #1D4ED8);
  color: white;
  padding: 2rem;
  border-radius: 0.75rem;
  font-size: 1.25rem;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

#business {
  --section-primary: #64748B;
  --section-primary-hover: #475569;
  --section-bg: linear-gradient(135deg, #F8FAFC 0%, #E2E8F0 100%);
}

/* Local SEO Elements */
.local-seo-section {
  background: linear-gradient(135deg, #FEF2F2 0%, #FEE2E2 100%);
  border: 1px solid #FECACA;
}

.local-badge {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-hover));
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 4px 6px rgba(193, 18, 31, 0.2);
}

/* Enhanced Social Proof */
.social-proof-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.social-proof-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Stars Animation */
.stars {
  display: inline-flex;
  gap: 2px;
}

.stars svg {
  transition: transform 0.2s ease;
}

.stars:hover svg {
  transform: scale(1.1);
}

/* ROI Badge Animation */
@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 5px rgba(193, 18, 31, 0.3);
  }
  50% {
    box-shadow: 0 0 20px rgba(193, 18, 31, 0.5);
  }
}

.roi-badge {
  animation: pulse-glow 2s infinite;
}

/* Premium Persona Cards */
.persona-card-premium {
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.persona-card-premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.8s ease;
  z-index: 1;
}

.persona-card-premium:hover::before {
  left: 100%;
}

/* Ensure content visibility */
.persona-card-premium .relative {
  z-index: 10;
  position: relative;
}

.persona-card-premium h3,
.persona-card-premium p,
.persona-card-premium span {
  color: white !important;
  text-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.8),
    0 1px 2px rgba(0, 0, 0, 0.9),
    1px 1px 0px rgba(0, 0, 0, 0.7);
  font-weight: 600;
}

/* Enhanced text background for better readability */
.persona-card-premium .relative {
  z-index: 10;
  position: relative;
}

.persona-card-premium .relative::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 1rem;
  z-index: -1;
}

/* Mobile Optimizations - Enhanced Multi-Breakpoint Design */

/* Extra Small Mobile (320px - 480px) */
@media (max-width: 480px) {
  .persona-selection {
    margin-bottom: 2rem;
  }
  
  .persona-selection h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    line-height: 1.4;
  }
  
  .persona-card-premium {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 1rem;
  }
  
  .persona-card-premium:hover {
    transform: scale(1.005); /* Minimal hover effect on mobile */
  }
  
  .persona-card-premium .w-16 {
    width: 2.5rem;
    height: 2.5rem;
  }
  
  .persona-card-premium .w-8 {
    width: 1.25rem;
    height: 1.25rem;
  }
  
  .persona-card-premium h3 {
    font-size: 1.125rem;
    line-height: 1.3;
    margin-bottom: 0.75rem;
  }
  
  .persona-card-premium p {
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1rem;
  }
  
  .persona-card-premium .text-sm {
    font-size: 0.75rem;
  }
  
  /* Enhanced mobile text visibility */
  .persona-card-premium h3,
  .persona-card-premium p,
  .persona-card-premium span {
    text-shadow: 
      0 2px 8px rgba(0, 0, 0, 0.9),
      0 1px 4px rgba(0, 0, 0, 1),
      1px 1px 2px rgba(0, 0, 0, 0.8);
  }
  
  .persona-card-premium .relative::before {
    background: rgba(0, 0, 0, 0.5);
  }
  
  /* Touch-friendly button sizing */
  .persona-card-premium .bg-gradient-to-r {
    padding: 0.875rem;
    margin-top: 1rem;
    min-height: 44px; /* WCAG touch target minimum */
  }
  
  /* Stacked grid layout on very small screens */
  .grid.md\\:grid-cols-2 {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* Small Mobile (481px - 640px) */
@media (min-width: 481px) and (max-width: 640px) {
  .persona-selection {
    margin-bottom: 2.5rem;
  }
  
  .persona-selection h2 {
    font-size: 1.375rem;
    margin-bottom: 1.25rem;
  }
  
  .persona-card-premium {
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    border-radius: 1.25rem;
  }
  
  .persona-card-premium:hover {
    transform: scale(1.01);
  }
  
  .persona-card-premium .w-16 {
    width: 3rem;
    height: 3rem;
  }
  
  .persona-card-premium h3 {
    font-size: 1.25rem;
    margin-bottom: 0.875rem;
  }
  
  .persona-card-premium p {
    font-size: 0.9375rem;
    margin-bottom: 1.25rem;
  }
  
  /* Enhanced text visibility for small mobile */
  .persona-card-premium h3,
  .persona-card-premium p,
  .persona-card-premium span {
    text-shadow: 
      0 2px 6px rgba(0, 0, 0, 0.8),
      0 1px 3px rgba(0, 0, 0, 0.9),
      1px 1px 1px rgba(0, 0, 0, 0.7);
  }
  
  .persona-card-premium .relative::before {
    background: rgba(0, 0, 0, 0.45);
  }
  
  /* Single column layout */
  .grid.md\\:grid-cols-2 {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

/* Tablet Portrait (641px - 768px) */
@media (min-width: 641px) and (max-width: 768px) {
  .persona-selection {
    margin-bottom: 3rem;
  }
  
  .persona-card-premium {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .persona-card-premium:hover {
    transform: scale(1.015);
  }
  
  .persona-card-premium .w-16 {
    width: 3.5rem;
    height: 3.5rem;
  }
  
  .persona-card-premium h3 {
    font-size: 1.375rem;
  }
  
  /* Enhanced text visibility */
  .persona-card-premium .relative::before {
    background: rgba(0, 0, 0, 0.4);
  }
  
  /* Two column layout starts here */
  .grid.md\\:grid-cols-2 {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}

/* General mobile styles (up to 768px) */
@media (max-width: 768px) {
  .persona-card {
    margin-bottom: 1rem;
  }
  
  .persona-card:hover {
    transform: scale(1.02);
  }
  
  .breadcrumb-nav {
    display: none !important;
  }
  
  .service-area-cta {
    text-align: center;
  }
  
  .service-area-cta .flex {
    flex-direction: column;
    gap: 1rem;
  }
}

/* Tablet Landscape (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .parallax-hero {
    height: 85vh;
    min-height: 650px;
  }
  
  .parallax-content {
    padding-top: 120px;
    padding-bottom: 50px;
  }
  
  .persona-selection {
    margin-bottom: 3.5rem;
  }
  
  .persona-selection h2 {
    font-size: 1.875rem;
    margin-bottom: 1.75rem;
  }
  
  .persona-card-premium {
    padding: 2rem;
    margin-bottom: 0;
  }
  
  .persona-card-premium:hover {
    transform: scale(1.02);
  }
  
  .persona-card-premium .w-16 {
    width: 4rem;
    height: 4rem;
  }
  
  .persona-card-premium h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
  
  .persona-card-premium p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  /* Two column layout with larger gap */
  .grid.md\\:grid-cols-2 {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

/* Desktop (1025px and up) */
@media (min-width: 1025px) {
  .parallax-hero {
    height: 100vh;
    min-height: 700px;
  }
  
  .parallax-content {
    padding-top: 120px;
    padding-bottom: 60px;
  }
  
  .persona-selection {
    margin-bottom: 4rem;
  }
  
  .persona-selection h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
  }
  
  .persona-card-premium {
    padding: 2rem;
    margin-bottom: 0;
  }
  
  .persona-card-premium:hover {
    transform: scale(1.02);
  }
  
  .persona-card-premium .w-16 {
    width: 4rem;
    height: 4rem;
  }
  
  .persona-card-premium h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
  
  .persona-card-premium p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
  }
  
  /* Two column layout with optimal gap */
  .grid.md\\:grid-cols-2 {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  
  /* Enhanced hover effects for desktop */
  .persona-card-premium:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  }
}

/* Ultra-wide Desktop (1440px and up) */
@media (min-width: 1440px) {
  .persona-selection .max-w-5xl {
    max-width: 80rem; /* Wider container for ultra-wide */
  }
  
  .grid.md\\:grid-cols-2 {
    gap: 3rem; /* Larger gap for ultra-wide */
  }
  
  .persona-card-premium {
    padding: 2.5rem;
  }
  
  .persona-card-premium h3 {
    font-size: 1.75rem;
  }
  
  .persona-card-premium p {
    font-size: 1.125rem;
  }
}

/* Enhanced Accessibility & Touch Targets */
@media (max-width: 768px) {
  /* Ensure touch targets meet WCAG requirements */
  .persona-card-premium {
    min-height: 44px;
    cursor: pointer;
  }
  
  /* Focus states for keyboard navigation */
  .persona-card-premium:focus-visible {
    outline: 3px solid #C1121F;
    outline-offset: 2px;
    box-shadow: 0 0 0 6px rgba(193, 18, 31, 0.2);
  }
  
  /* High contrast mode improvements */
  @media (prefers-contrast: high) {
    .persona-card-premium {
      border: 2px solid white;
    }
    
    .persona-card-premium h3,
    .persona-card-premium p,
    .persona-card-premium span {
      text-shadow: 2px 2px 0 #000, -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000;
    }
  }
}

/* Grid Layout Override for Better Control */
.persona-grid {
  display: grid;
  width: 100%;
}

/* Extra Small Mobile Grid */
@media (max-width: 480px) {
  .persona-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
    padding: 0 0.5rem;
  }
}

/* Small Mobile Grid */
@media (min-width: 481px) and (max-width: 640px) {
  .persona-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
    padding: 0 1rem;
  }
}

/* Tablet Portrait Grid */
@media (min-width: 641px) and (max-width: 768px) {
  .persona-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 1.5rem !important;
  }
}

/* Tablet Landscape and Desktop Grid */
@media (min-width: 769px) {
  .persona-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 2rem !important;
  }
}

/* Ultra-wide Desktop Grid */
@media (min-width: 1440px) {
  .persona-grid {
    gap: 3rem !important;
  }
}

/* Performance Optimizations */
.persona-card-premium {
  will-change: transform;
  transform: translateZ(0); /* Hardware acceleration */
  backface-visibility: hidden;
}

/* Prevent layout shifts */
.persona-selection {
  contain: layout style;
}

/* Smooth transitions for better UX */
@media (prefers-reduced-motion: no-preference) {
  .persona-card-premium {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
}

/* Safe Area & Viewport Optimizations */
@media (max-width: 768px) {
  .parallax-content {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }
  
  .persona-selection {
    overflow-x: hidden; /* Prevent horizontal scrolling */
  }
  
  .persona-grid {
    max-width: 100vw;
    box-sizing: border-box;
  }
  
  /* Prevent text overflow on very small screens */
  .persona-card-premium h3,
  .persona-card-premium p {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }
}

/* Landscape mobile orientation optimization */
@media (max-width: 768px) and (orientation: landscape) {
  .parallax-hero {
    height: 100vh;
    min-height: 500px; /* Reduced min-height for landscape */
  }
  
  .parallax-content {
    padding-top: 60px;
    padding-bottom: 40px;
  }
  
  .persona-selection h2 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
  }
  
  .persona-card-premium {
    padding: 0.75rem;
  }
}

/* iOS Safari viewport fixes */
@supports (-webkit-touch-callout: none) {
  @media (max-width: 768px) {
    .parallax-hero {
      height: -webkit-fill-available;
      min-height: -webkit-fill-available;
    }
  }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .persona-card {
    border: 2px solid currentColor;
    background: rgba(255, 255, 255, 0.95);
  }
  
  .persona-card:hover {
    background: rgba(255, 255, 255, 1);
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .persona-card,
  .persona-selection,
  .service-area-cta,
  .social-proof-card {
    animation: none;
    transition: none;
  }
  
  .persona-card:hover {
    transform: none;
  }
}

/* Enhanced Accessibility */
.persona-card:focus-visible,
.persona-card-premium:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px rgba(193, 18, 31, 0.2);
}

/* Loading States */
.persona-card.loading {
  opacity: 0.6;
  pointer-events: none;
}

.persona-card.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Enhanced Typography for Persona Sections */
.persona-section h2 {
  background: linear-gradient(135deg, var(--color-foreground), var(--color-secondary));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Feature List Enhancements */
.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: background-color 0.2s ease;
}

.feature-list li:hover {
  background-color: rgba(0, 0, 0, 0.02);
  padding-left: 0.5rem;
}

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

/* ===== ENHANCED NAVIGATION SYSTEM ===== */

/* Dropdown Menu Enhancements */
.group:hover .dropdown-indicator {
  transform: rotate(180deg);
}

/* Mobile Menu Sections */
.mobile-section {
  margin-bottom: 1rem;
}

.mobile-section h3 {
  color: var(--color-muted-foreground);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.75rem;
}

/* Service Area Cards */
.service-area-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-area-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
}

/* Emergency CTA Enhancement */
.emergency-cta {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
  position: relative;
  overflow: hidden;
}

.emergency-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  animation: pulse-wave 3s ease-in-out infinite;
}

@keyframes pulse-wave {
  0%, 100% {
    transform: scale(1);
    opacity: 0.3;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.6;
  }
}

/* WCAG AA Compliance Enhancements */
@media (prefers-contrast: high) {
  .persona-card {
    border: 3px solid currentColor;
    background: rgba(255, 255, 255, 0.98);
  }
  
  .local-badge {
    border: 2px solid rgba(0, 0, 0, 0.8);
  }
  
  .social-proof-card {
    border: 2px solid var(--color-border);
  }
}

/* Focus Management for Dropdowns */
.group:focus-within > div {
  opacity: 1;
  visibility: visible;
}

/* Print Styles */
@media print {
  .persona-card,
  .social-proof-card,
  .service-area-card {
    break-inside: avoid;
    page-break-inside: avoid;
  }
  
  .breadcrumb-nav,
  .emergency-cta::before {
    display: none !important;
  }
}

/* Dark Mode Support (Future Enhancement) */
@media (prefers-color-scheme: dark) {
  .persona-card {
    background: rgba(0, 0, 0, 0.8);
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
  }
  
  .social-proof-card {
    background: rgba(0, 0, 0, 0.9);
    border-color: rgba(255, 255, 255, 0.1);
    color: white;
  }
}

/* Residential Section Image Enhancement */
.residential-image {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.residential-image:hover {
  transform: translateY(-2px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Image Loading Shimmer */
.residential-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
  border-radius: 0.5rem;
  z-index: -1;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Responsive Image Adjustments */
@media (max-width: 768px) {
  .residential-image {
    max-height: 300px !important;
  }
  
  /* Fix floating badge on mobile */
  .order-1.lg\\:order-2 .absolute {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    margin-top: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  }
}

/* Image container improvements */
.order-1.lg\\:order-2 .relative {
  display: block;
  width: 100%;
  height: auto;
  min-height: 200px;
}

/* Ensure proper aspect ratio and display */
.residential-image {
  display: block;
  object-position: center center;
  background: #f3f4f6;
}

/* ========================================
   GLASSMORPHISM BUTTON SYSTEM
   ======================================== */

/* Base Glassmorphism Button */
.glassmorphism-btn {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 400px;
  min-height: 80px;
  padding: 1.5rem;
  border: none;
  border-radius: 1.5rem;
  background: transparent;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  
  /* Touch target optimization */
  min-height: 44px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  
  /* Emergency fallback for complete transparency issues */
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

/* Glass Background Effect */
.glassmorphism-bg {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 1.5rem;
  transition: all 0.4s ease;
  z-index: 1;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

/* Fallback for browsers without backdrop-filter support */
@supports not (backdrop-filter: blur(20px)) {
  .glassmorphism-bg {
    background: rgba(255, 255, 255, 0.35);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.5);
  }
}

/* Additional fallback for complete browser compatibility */
@supports not (backdrop-filter: blur(1px)) and not (-webkit-backdrop-filter: blur(1px)) {
  .glassmorphism-bg {
    background: rgba(255, 255, 255, 0.45) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2) !important;
    border: 3px solid rgba(255, 255, 255, 0.6) !important;
  }
  
  .glassmorphism-btn:hover .glassmorphism-bg {
    background: rgba(255, 255, 255, 0.6) !important;
    border-color: rgba(255, 255, 255, 0.8) !important;
  }
}

/* Animated Glow Effects */
.glassmorphism-glow {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.2;
  transition: all 0.6s ease;
  pointer-events: none;
}

.glassmorphism-glow-blue {
  background: linear-gradient(135deg, #3B82F6, #6366F1);
  top: -30px;
  right: -30px;
}

.glassmorphism-glow-indigo {
  background: linear-gradient(135deg, #6366F1, #8B5CF6);
  bottom: -30px;
  left: -30px;
  width: 80px;
  height: 80px;
}

.glassmorphism-glow-red {
  background: linear-gradient(135deg, #DC2626, #EA580C);
  top: -30px;
  right: -30px;
}

.glassmorphism-glow-orange {
  background: linear-gradient(135deg, #EA580C, #F59E0B);
  bottom: -30px;
  left: -30px;
  width: 80px;
  height: 80px;
}

/* Icon Containers */
.glassmorphism-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 1rem;
  color: white;
  transition: all 0.3s ease;
  flex-shrink: 0;
  z-index: 10;
}

.glassmorphism-icon-blue {
  background: linear-gradient(135deg, #3B82F6, #6366F1);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.glassmorphism-icon-red {
  background: linear-gradient(135deg, var(--color-primary), #EA580C);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

/* Typography */
.glassmorphism-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: white;
  margin: 0 0 0.25rem 0;
  transition: all 0.3s ease;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7), 0 1px 2px rgba(0, 0, 0, 0.8);
}

.glassmorphism-subtitle {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  transition: all 0.3s ease;
  line-height: 1.3;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6), 0 1px 1px rgba(0, 0, 0, 0.7);
}

/* Arrow Icon */
.glassmorphism-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
  flex-shrink: 0;
  z-index: 10;
}

/* Focus Ring */
.glassmorphism-focus-ring {
  position: absolute;
  inset: -2px;
  border-radius: 1.75rem;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  pointer-events: none;
  z-index: 0;
}

/* Hover States */
.glassmorphism-btn:hover .glassmorphism-bg {
  background: rgba(255, 255, 255, 0.35);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}

.glassmorphism-btn:hover .glassmorphism-glow {
  opacity: 0.4;
  filter: blur(30px);
}

.glassmorphism-btn:hover .glassmorphism-icon {
  transform: scale(1.05);
}

.glassmorphism-btn:hover .glassmorphism-title {
  color: rgba(255, 255, 255, 0.95);
}

.glassmorphism-btn:hover .glassmorphism-subtitle {
  color: rgba(255, 255, 255, 0.9);
}

.glassmorphism-btn:hover .glassmorphism-arrow {
  transform: translateX(4px);
  color: white;
}

/* Active States */
.glassmorphism-btn:active {
  transform: scale(0.98);
}

.glassmorphism-btn:active .glassmorphism-bg {
  background: rgba(255, 255, 255, 0.4);
  border-color: rgba(255, 255, 255, 0.7);
}

/* Focus States - Accessibility */
.glassmorphism-btn:focus-visible .glassmorphism-focus-ring {
  border-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2);
}

.glassmorphism-btn-home:focus-visible .glassmorphism-focus-ring {
  border-color: rgba(59, 130, 246, 0.6);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
}

.glassmorphism-btn-business:focus-visible .glassmorphism-focus-ring {
  border-color: rgba(193, 18, 31, 0.6);
  box-shadow: 0 0 0 4px rgba(193, 18, 31, 0.2);
}

/* Specific Button Enhancements */
.glassmorphism-btn-home:hover .glassmorphism-glow-blue {
  background: linear-gradient(135deg, #60A5FA, #818CF8);
  transform: scale(1.1);
}

.glassmorphism-btn-home:hover .glassmorphism-glow-indigo {
  background: linear-gradient(135deg, #818CF8, #A78BFA);
  transform: scale(1.15);
}

.glassmorphism-btn-business:hover .glassmorphism-glow-red {
  background: linear-gradient(135deg, #F87171, #FB923C);
  transform: scale(1.1);
}

.glassmorphism-btn-business:hover .glassmorphism-glow-orange {
  background: linear-gradient(135deg, #FB923C, #FBBF24);
  transform: scale(1.15);
}

/* Responsive Design */
@media (max-width: 640px) {
  .glassmorphism-btn {
    max-width: none;
    min-height: 72px;
    padding: 1.25rem;
    border-radius: 1.25rem;
  }
  
  .glassmorphism-bg {
    border-radius: 1.25rem;
  }
  
  .glassmorphism-focus-ring {
    border-radius: 1.5rem;
  }
  
  .glassmorphism-icon {
    width: 44px;
    height: 44px;
  }
  
  .glassmorphism-title {
    font-size: 1.125rem;
  }
  
  .glassmorphism-subtitle {
    font-size: 0.875rem;
  }
}

@media (max-width: 480px) {
  .glassmorphism-btn {
    padding: 1rem;
    min-height: 64px;
  }
  
  .glassmorphism-icon {
    width: 40px;
    height: 40px;
  }
  
  .glassmorphism-title {
    font-size: 1rem;
  }
  
  .glassmorphism-subtitle {
    font-size: 0.8125rem;
  }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .glassmorphism-bg {
    background: rgba(255, 255, 255, 0.4);
    border: 3px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  }
  
  .glassmorphism-title {
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
  }
  
  .glassmorphism-subtitle {
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .glassmorphism-btn,
  .glassmorphism-bg,
  .glassmorphism-glow,
  .glassmorphism-icon,
  .glassmorphism-title,
  .glassmorphism-subtitle,
  .glassmorphism-arrow,
  .glassmorphism-focus-ring {
    transition: none;
  }
  
  .glassmorphism-btn:hover .glassmorphism-glow {
    transform: none;
  }
  
  .glassmorphism-btn:hover .glassmorphism-icon {
    transform: none;
  }
  
  .glassmorphism-btn:hover .glassmorphism-arrow {
    transform: none;
  }
}

/* Critical Fix: Ensure glassmorphism buttons are always visible */
.category-selection .glassmorphism-btn {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Animation enhancement for glassmorphism buttons */
.category-selection.fade-in-up.visible .glassmorphism-btn {
  animation: glassmorphism-reveal 0.6s ease-out;
}

@keyframes glassmorphism-reveal {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Dark Mode Enhancements */
@media (prefers-color-scheme: dark) {
  .glassmorphism-bg {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  }
  
  .glassmorphism-btn:hover .glassmorphism-bg {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
  }
}

/* ===== NEW MODERN HERO SECTION ===== */

.hero-modern {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  /* Hide video controls completely */
  outline: none;
  border: none;
  /* Ensure video is behind overlay but above backup */
  z-index: 0;
}

.hero-backup {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -1;
}

.hero-fallback {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -2;
}

/* Google Maps Responsive Embed - Latest 2024 Standards */
.map-responsive {
  overflow: hidden;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  position: relative;
  height: 0;
  border-radius: 12px;
}

.map-responsive iframe {
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  position: absolute;
  border-radius: 12px;
}

/* Ensure video controls are completely hidden */
.hero-video::-webkit-media-controls {
  display: none !important;
}

.hero-video::-webkit-media-controls-panel {
  display: none !important;
}

.hero-video::-webkit-media-controls-play-button {
  display: none !important;
}

.hero-video::-webkit-media-controls-start-playback-button {
  display: none !important;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(27, 38, 59, 0.7) 0%, rgba(65, 90, 119, 0.8) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 80px 0 60px;
}

/* Hero Typography */
.hero-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: white;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0;
}

.hero-section-title {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 2rem;
}

/* Hero Buttons */
.hero-button-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 56rem;
  margin: 0 auto;
}

.hero-btn {
  display: flex;
  align-items: center;
  padding: 1.5rem 2rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 1rem;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  width: 100%;
}

.hero-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.hero-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

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

.hero-btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  margin-right: 1rem;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.hero-btn-home .hero-btn-icon {
  background: linear-gradient(135deg, #3B82F6, #6366F1);
}

.hero-btn-business .hero-btn-icon {
  background: linear-gradient(135deg, #C1121F, #EA580C);
}

.hero-btn:hover .hero-btn-icon {
  transform: scale(1.1);
}

.hero-btn-text {
  flex: 1;
  text-align: left;
}

.hero-btn-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: white;
}

.hero-btn-desc {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0;
}

.hero-btn-arrow {
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
}

.hero-btn:hover .hero-btn-arrow {
  color: white;
  transform: translateX(0.25rem);
}

/* Hero CTA */
.hero-service-area {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.5rem;
}

.hero-cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

.hero-cta-primary {
  display: inline-flex;
  align-items: center;
  padding: 0.875rem 2rem;
  background-color: #C1121F;
  color: white;
  text-decoration: none;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid #C1121F;
}

.hero-cta-primary:hover {
  background-color: #A30F1A;
  border-color: #A30F1A;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(193, 18, 31, 0.3);
}

.hero-cta-secondary {
  display: inline-flex;
  align-items: center;
  padding: 0.875rem 2rem;
  background-color: transparent;
  color: white;
  text-decoration: none;
  border-radius: 0.5rem;
  font-weight: 600;
  border: 2px solid rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
}

.hero-cta-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.8);
  transform: translateY(-2px);
}

/* Hero Certifications */
.hero-certifications {
  margin-top: 3rem;
}

.hero-cert-title {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.hero-cert-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

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

.hero-cert-img {
  height: 3rem;
  width: auto;
  margin: 0 auto 0.5rem;
  transition: transform 0.3s ease;
}

.hero-cert-img:hover {
  transform: scale(1.1);
}

.hero-cert-desc {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0;
  line-height: 1.3;
}

/* Responsive Design */
@media (min-width: 640px) {
  .hero-button-grid {
    flex-direction: row;
    gap: 1.5rem;
  }
  
  .hero-cta-buttons {
    flex-direction: row;
    gap: 1.5rem;
  }
  
  .hero-cert-grid {
    gap: 3rem;
  }
  
  .hero-cert-img {
    height: 3.5rem;
  }
  
  .hero-cert-desc {
    font-size: 0.75rem;
  }
}

@media (min-width: 768px) {
  .hero-content {
    padding: 100px 0 80px;
  }
  
  .hero-btn {
    padding: 1.75rem 2.5rem;
  }
  
  .hero-cert-img {
    height: 4rem;
  }
}

@media (min-width: 1024px) {
  .hero-content {
    padding: 120px 0 100px;
  }
}

/* Mobile Optimizations */
@media (max-width: 480px) {
  .hero-modern {
    min-height: 100vh;
  }
  
  .hero-content {
    padding: 60px 0 40px;
  }
  
  .hero-btn {
    padding: 1.25rem 1.5rem;
  }
  
  .hero-btn-icon {
    width: 2.5rem;
    height: 2.5rem;
  }
  
  .hero-cert-grid {
    gap: 1.5rem;
  }
  
  .hero-cert-img {
    height: 2.5rem;
  }
  
  .hero-cert-desc {
    font-size: 0.6875rem;
  }
}

/* ========================================
   Video Showcase Section
   ======================================== */

/* Video Container Styles */
#video-showcase {
  background: linear-gradient(to bottom, var(--color-muted), var(--color-background));
}

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

/* Custom Video Play Button */
.video-play-button {
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.video-play-button:hover {
  background-color: var(--color-primary-hover);
  transform: scale(1.1);
  box-shadow: 0 25px 50px -12px rgba(193, 18, 31, 0.4);
}

.video-play-button svg {
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

/* Video Overlay States */
#video-overlay {
  transition: all 0.3s ease-in-out;
}

#video-overlay.playing {
  opacity: 0;
  pointer-events: none;
}

/* Video Loading Animation */
.video-loading-spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Video Controls Enhancement */
#showcase-video::-webkit-media-controls-panel {
  background-color: rgba(0, 0, 0, 0.8);
}

#showcase-video::-webkit-media-controls-play-button {
  background-color: var(--color-primary);
  border-radius: 50%;
}

/* Mobile Video Optimizations */
@media (max-width: 768px) {
  .video-play-button {
    padding: 1.25rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  }
  
  .video-play-button svg {
    width: 1.75rem;
    height: 1.75rem;
  }
  
  #video-showcase .max-w-3xl {
    max-width: 100%;
    margin-left: 0.5rem;
    margin-right: 0.5rem;
  }
}

@media (max-width: 480px) {
  .video-play-button {
    padding: 1rem;
  }
  
  .video-play-button svg {
    width: 1.5rem;
    height: 1.5rem;
  }
  
  #video-showcase .p-6 {
    padding: 1rem;
  }
  
  #video-showcase .text-lg {
    font-size: 1rem;
  }
}

/* Video Accessibility Enhancements */
.video-play-button:focus {
  outline: 2px solid var(--color-ring);
  outline-offset: 2px;
}

.video-play-button:focus-visible {
  outline: 2px solid var(--color-ring);
  outline-offset: 4px;
  box-shadow: 0 0 0 4px rgba(193, 18, 31, 0.2);
}

#showcase-video:focus {
  outline: 2px solid var(--color-ring);
  outline-offset: 2px;
}

/* Video Error State */
.video-error {
  background-color: var(--color-muted);
  color: var(--color-muted-foreground);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  text-align: center;
}

/* Smooth transitions for all video states */
#showcase-video,
#video-overlay,
#video-loading {
  transition: opacity 0.3s ease-in-out;
}
