/* ========================================
   FC Commerce CRM Business Management Styles
   ======================================== */

/* Smooth transitions for responsive changes */
* {
  transition:
    font-size 0.3s ease,
    padding 0.3s ease,
    margin 0.3s ease;
}

/* Touch-friendly tap targets for mobile */
@media (hover: none) and (pointer: coarse) {
  a,
  button {
    min-height: 44px;
    min-width: 44px;
  }
}

/* Universal mobile fix for dashboard decorative elements */
@media (max-width: 768px) {
  /* Ensure dashboard mockup is the positioning context */
  .dashboard-mockup {
    position: relative !important;
    display: block !important;
  }

  /* The gradient background card that contains everything */
  .dashboard-mockup > .bg-gradient-to-br {
    position: relative !important;
    overflow: visible !important;
  }

  /* HIDE green check circle on mobile for cleaner design */
  .dashboard-mockup .bg-green-400.rounded-full,
  .dashboard-mockup .mobile-green-circle,
  .dashboard-mockup div[style*="bottom"][style*="left"] {
    display: none !important;
  }

  /* HIDE yellow star on mobile for cleaner design */
  .dashboard-mockup .bg-yellow-400.rounded-full,
  .dashboard-mockup div[style*="top"][style*="right"] {
    display: none !important;
  }
}

/* Flag image specific styles to override global img styles */
img[src*="flags/"] {
  height: 20px !important;
  width: 20px !important;
  max-width: 20px !important;
  object-fit: cover !important;
}

/* Mobile language toggle flag */
#mobileLangToggle img {
  height: 20px !important;
  width: 20px !important;
  max-width: 20px !important;
}

/* Mobile language menu flags */
#mobileLangMenu img {
  height: 20px !important;
  width: 20px !important;
  max-width: 20px !important;
}

/* FAQ Styles */
.faq-question {
  background-color: #f8fafc; /* slate-50 */
  border: 1px solid #e2e8f0; /* slate-200 */
  border-radius: 0.5rem;
  padding: 1rem 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  text-align: left;
  font-weight: 600;
  color: #1e293b; /* slate-800 */
}

.faq-question:hover {
  background-color: #f1f5f9; /* slate-100 */
}

.faq-question.active {
  background-color: #dbeafe; /* blue-100 */
  border-color: #93c5fd; /* blue-300 */
}

.faq-answer {
  display: none;
  padding: 1rem 1.5rem;
  background-color: #f8fafc; /* slate-50 */
  border-left: 4px solid #3b82f6; /* blue-500 */
  border-right: 1px solid #e2e8f0; /* slate-200 */
  border-bottom: 1px solid #e2e8f0; /* slate-200 */
  border-radius: 0 0 0.5rem 0.5rem;
}

.faq-answer.open {
  display: block;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.faq-toggle-icon {
  transition: transform 0.3s ease;
}

/* Enhance visual appeal */
.feature-icon {
  transition: transform 0.3s ease-in-out;
}

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

.hero-pattern {
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%239C92AC' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.text-gradient {
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 40;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease-in-out;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

/* Disable hover effects on touch devices */
@media (hover: none) {
  .pricing-card:hover,
  .dashboard-card:hover,
  .benefit-card:hover,
  .feature-icon:hover {
    transform: none !important;
  }
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.benefit-card:hover {
  transform: translateY(-3px);
}

/* Scroll margin for anchor links */
#features,
#pricing,
#contact,
#kiosk {
  scroll-margin-top: 3rem; /* Adjusted for shorter header */
}

.dashboard-card {
  transition: all 0.3s ease;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.dashboard-card.featured {
  border-color: #f97316; /* orange-500 */
  box-shadow:
    0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transform: scale(1.02);
}

.dashboard-card:hover {
  transform: translateY(-5px);
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.dashboard-card.featured:hover {
  transform: scale(1.02) translateY(-5px);
}

/* Enhanced Contact Form Styles */
.form-group {
  position: relative;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
  border-color: #f97316;
}

.form-group input.border-red-500:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
  border-color: #ef4444;
}

.form-group input.border-green-500:focus {
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
  border-color: #22c55e;
}

.form-group label {
  font-weight: 500;
  color: #374151;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #9ca3af;
  opacity: 1;
}

/* Loading animation for submit button */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.fa-spinner.fa-spin {
  animation: spin 1s linear infinite;
}

/* Success and error message animations */
#success-message,
#error-message {
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Contact info hover effects */
.contact-info-item {
  transition: all 0.3s ease;
}

.contact-info-item:hover {
  transform: translateX(5px);
}

/* Phone and email link styles */
a[href^="tel:"],
a[href^="mailto:"] {
  text-decoration: none;
  position: relative;
}

a[href^="tel:"]:hover,
a[href^="mailto:"]:hover {
  text-decoration: underline;
}

/* Mobile menu base styles */
#mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 50;
  background: white;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  border-top: 1px solid #e5e7eb;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Active state for mobile menu */
#mobile-menu.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  max-height: none; /* Remove height restriction */
  overflow-y: visible; /* Remove individual scrollbar */
}

/* Mobile menu hidden state */
#mobile-menu.hidden {
  display: none;
}

/* Mobile menu visible state when not hidden */
#mobile-menu:not(.hidden) {
  display: block;
}

/* Force display when active on mobile */
@media (max-width: 767px) {
  #mobile-menu.active {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
  }
}

/* Hide on desktop */
@media (min-width: 768px) {
  #mobile-menu {
    display: none !important;
  }
}

/* Style mobile menu links */
#mobile-menu a {
  display: block !important;
  color: #374151 !important;
  text-decoration: none !important;
  padding: 12px 24px !important;
  border-bottom: 1px solid #f3f4f6 !important;
  transition: all 0.2s ease !important;
  background: white !important;
}

#mobile-menu a:hover {
  background-color: #f0f9ff !important;
  color: #2563eb !important;
}

#mobile-menu a i {
  display: inline-block !important;
  margin-right: 8px !important;
  width: 16px !important;
  color: inherit !important;
}

/* Enhanced Mobile & Tablet Responsive Styles */

/* Mobile Responsive Styles - using mobile-first approach */
@media (max-width: 640px) {
  /* Reduce padding between header and hero section on mobile */
  #main-content {
    padding-top: 5rem !important; /* Reduced from pt-24 (6rem) to bring hero closer to header */
  }

  /* Hero Section Mobile Optimizations */
  .hero-section {
    padding-top: 1.5rem !important; /* Reduced top padding */
    padding-bottom: 2rem !important; /* Reduced bottom padding */
    margin-top: 0 !important; /* Remove any margin */
  }

  /* Reduce spacing between ALL sections on mobile */
  section {
    padding-top: 2rem !important; /* Reduced from default */
    padding-bottom: 2rem !important; /* Reduced from default */
  }

  /* Even less padding for specific sections */
  section#features,
  section#pricing,
  section#testimonials,
  section#cta,
  section#contact {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
  }

  /* Reduce margin between section elements */
  section > div > div {
    margin-bottom: 1rem !important;
  }

  /* Reduce spacing in section headers */
  section h2 {
    margin-bottom: 0.75rem !important;
  }

  section h3 {
    margin-bottom: 0.5rem !important;
  }

  /* Reduce paragraph spacing in sections */
  section p {
    margin-bottom: 0.75rem !important;
  }

  /* Adjust container padding in sections */
  section .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  /* Reduce grid gaps in sections */
  section .grid {
    gap: 1rem !important;
  }

  /* Reduce spacing for section badges/labels */
  section span.inline-block {
    margin-bottom: 1rem !important;
  }

  /* Reduce spacing between cards and components */
  .benefit-card,
  .pricing-card,
  .dashboard-card {
    margin-bottom: 1rem !important;
  }

  /* Reduce internal padding of cards on mobile */
  .benefit-card,
  .pricing-card {
    padding: 1rem !important;
  }

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

  /* Reduce CTA section padding */
  .cta-section,
  section.bg-gradient-to-r {
    padding: 1.5rem 1rem !important;
  }

  /* Reduce footer spacing on mobile */
  footer {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
  }

  footer .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  /* Belgian Compliance Section Mobile Fix */
  section.bg-gradient-to-br.from-gray-50.to-blue-50 {
    padding: 1.5rem 0 !important;
  }

  /* Fix the compliance badge on mobile */
  section.bg-gradient-to-br.from-gray-50.to-blue-50 span.inline-block {
    font-size: 0.7rem !important;
    padding: 0.375rem 0.75rem !important;
    margin-bottom: 0.75rem !important;
  }

  /* Container adjustments */
  section.bg-gradient-to-br.from-gray-50.to-blue-50 .container {
    padding: 0 0.75rem !important;
  }

  section.bg-gradient-to-br.from-gray-50.to-blue-50 h2 {
    font-size: 1.25rem !important;
    line-height: 1.4 !important;
    margin-bottom: 0.75rem !important;
    padding: 0 0.5rem !important;
    word-wrap: break-word !important;
    hyphens: auto !important;
  }

  section.bg-gradient-to-br.from-gray-50.to-blue-50 > div > div > p {
    font-size: 0.875rem !important;
    line-height: 1.5 !important;
    padding: 0 0.5rem !important;
    margin-bottom: 1rem !important;
  }

  /* Fix the compliance card on mobile */
  section.bg-gradient-to-br.from-gray-50.to-blue-50 .max-w-5xl {
    margin: 0 0.5rem !important;
    padding: 0 !important;
  }

  section.bg-gradient-to-br.from-gray-50.to-blue-50 .bg-gradient-to-r.from-blue-600 {
    padding: 2px !important;
  }

  section.bg-gradient-to-br.from-gray-50.to-blue-50 .bg-white.rounded-xl {
    padding: 1rem !important;
  }

  section.bg-gradient-to-br.from-gray-50.to-blue-50 h3 {
    font-size: 1rem !important;
    margin-bottom: 0.75rem !important;
    line-height: 1.3 !important;
    word-wrap: break-word !important;
    padding: 0 0.25rem !important;
  }

  /* Hide emoji in h3 on mobile for cleaner look */
  @media (max-width: 480px) {
    section.bg-gradient-to-br.from-gray-50.to-blue-50 h3:before {
      content: none !important;
    }
  }

  section.bg-gradient-to-br.from-gray-50.to-blue-50 .grid.grid-cols-1 {
    gap: 0.75rem !important;
  }

  section.bg-gradient-to-br.from-gray-50.to-blue-50 .bg-white.p-4.rounded-xl {
    padding: 0.75rem !important;
  }

  /* Fix flex layout for feature items */
  section.bg-gradient-to-br.from-gray-50.to-blue-50 .flex.items-start {
    align-items: flex-start !important;
  }

  section.bg-gradient-to-br.from-gray-50.to-blue-50 .flex.items-start > div:first-child {
    flex-shrink: 0 !important;
    margin-right: 0.5rem !important;
  }

  section.bg-gradient-to-br.from-gray-50.to-blue-50 .flex.items-start > div:last-child {
    flex: 1 !important;
  }

  section.bg-gradient-to-br.from-gray-50.to-blue-50 h4 {
    font-size: 0.875rem !important;
    margin-bottom: 0.25rem !important;
  }

  section.bg-gradient-to-br.from-gray-50.to-blue-50 .text-gray-600 {
    font-size: 0.75rem !important;
    line-height: 1.4 !important;
  }

  /* Fix the icon boxes */
  section.bg-gradient-to-br.from-gray-50.to-blue-50 .bg-blue-600.p-2 {
    padding: 0.375rem !important;
    min-width: 2rem !important;
    height: 2rem !important;
  }

  section.bg-gradient-to-br.from-gray-50.to-blue-50 .bg-blue-600.p-2 i {
    font-size: 0.875rem !important;
  }

  /* Fix bottom stats section */
  section.bg-gradient-to-br.from-gray-50.to-blue-50 .grid.grid-cols-3 {
    gap: 0.5rem !important;
    margin-top: 0.75rem !important;
  }

  section.bg-gradient-to-br.from-gray-50.to-blue-50 .text-center p.text-2xl {
    font-size: 1.125rem !important;
  }

  section.bg-gradient-to-br.from-gray-50.to-blue-50 .text-center p.text-gray-600 {
    font-size: 0.625rem !important;
  }

  /* Hero container adjustments */
  .hero-section .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  /* Hero content spacing adjustments */
  .hero-section .flex-col {
    gap: 1rem !important; /* Reduce gap between elements */
  }

  /* Hero badge adjustment */
  .hero-section .inline-flex.bg-green-100 {
    margin-bottom: 1rem !important; /* Reduce margin */
    padding: 0.5rem 1rem !important;
    font-size: 0.75rem !important;
  }

  /* Hero title responsive sizing */
  .hero-section h1 {
    font-size: 1.75rem !important; /* Better mobile size */
    line-height: 1.15 !important;
    margin-bottom: 1rem !important;
    white-space: normal !important; /* Allow text wrap on mobile */
  }

  /* FC Commerce Management text breakdown on mobile */
  .hero-section h1 span {
    display: inline-block !important;
  }

  /* Hero subtitle adjustments */
  .hero-section p.text-blue-600 {
    font-size: 1rem !important;
    line-height: 1.3 !important;
    margin-bottom: 0.75rem !important;
  }

  /* Hero green subtitle */
  .hero-section p.text-green-600 {
    font-size: 0.875rem !important;
    margin-bottom: 1rem !important;
  }

  /* Hero description text */
  .hero-section p.text-gray-600 {
    font-size: 0.875rem !important;
    line-height: 1.5 !important;
    margin-bottom: 1.5rem !important;
  }

  /* Hero advantages grid - stack on very small screens */
  .hero-section .grid.grid-cols-2 {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
    margin-bottom: 1.5rem !important;
  }

  /* Hero advantage items */
  .hero-section .grid .flex.items-center {
    font-size: 0.875rem !important;
  }

  .hero-section .grid .flex.items-center i {
    font-size: 1rem !important;
    margin-right: 0.5rem !important;
  }

  /* Hero CTA buttons responsive */
  .hero-section .flex-col.sm\\:flex-row {
    gap: 0.75rem !important;
    margin-bottom: 1.5rem !important;
  }

  .hero-section a.bg-transparent,
  .hero-section a.bg-blue-600 {
    padding: 0.875rem 1.5rem !important;
    font-size: 0.9375rem !important;
    border-radius: 9999px !important;
    width: 100% !important; /* Full width on mobile */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
  }

  /* Hero images responsive */
  .hero-section img {
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
  }

  /* Ensure proper text contrast on mobile */
  .hero-section .text-gray-600 {
    color: #4b5563 !important; /* Slightly darker for better readability */
  }

  /* Fix decorative elements positioning on mobile */
  /* Dashboard wrapper needs relative positioning and proper containment */
  .dashboard-mockup {
    position: relative !important;
    z-index: 1 !important;
  }

  /* Ensure the gradient card is the positioning context */
  .dashboard-mockup > div:first-child {
    position: relative !important;
    overflow: visible !important;
  }

  /* Green check circle - override inline styles with more specific selector */
  .dashboard-mockup .mobile-green-circle,
  .hero-section .mobile-green-circle {
    position: absolute !important;
    bottom: -0.25rem !important;
    left: -0.25rem !important;
    z-index: 30 !important;
    width: 2rem !important;
    height: 2rem !important;
  }

  /* Even more specific for inline style override */
  .dashboard-mockup div[style*="bottom: -8px"][style*="left: -8px"] {
    bottom: -0.25rem !important;
    left: -0.25rem !important;
    width: 2rem !important;
    height: 2rem !important;
  }

  /* Yellow star - override inline styles */
  .dashboard-mockup div[style*="top: -8px"][style*="right: -8px"] {
    position: absolute !important;
    top: -0.25rem !important;
    right: -0.25rem !important;
    z-index: 30 !important;
    width: 2rem !important;
    height: 2rem !important;
  }

  /* Ensure dashboard cards have proper stacking context */
  .hero-section .bg-gradient-to-br.from-blue-500 {
    position: relative !important;
    z-index: 1 !important;
  }

  /* Decorative elements with better mobile positioning */
  .hero-section .absolute.top-10.right-10 {
    top: 1rem !important;
    right: 0.5rem !important;
    width: 2.5rem !important;
    height: 2.5rem !important;
  }

  .hero-section .absolute.bottom-10.left-10 {
    bottom: 1rem !important;
    left: 0.5rem !important;
    width: 2.5rem !important;
    height: 2.5rem !important;
  }

  /* Hide decorative SVG underline on small mobile */
  .hero-section svg {
    display: none !important;
  }

  /* General typography adjustments for mobile */
  h1 {
    font-size: 2rem !important;
    line-height: 1.2 !important;
  }
  h2 {
    font-size: 1.75rem !important;
    line-height: 1.3 !important;
  }
  h3 {
    font-size: 1.25rem !important;
  }
  p {
    font-size: 0.9375rem !important;
    line-height: 1.6 !important;
  }

  /* Form adjustments for mobile */
  .form-group input,
  .form-group textarea,
  .form-group select {
    font-size: 16px !important; /* Prevent zoom on iOS */
    padding: 0.875rem !important;
  }

  /* Button adjustments */
  .btn {
    padding: 0.875rem 1.5rem !important;
    font-size: 1rem !important;
  }

  /* Navigation mobile */
  .nav-link {
    padding: 0.75rem 1rem !important;
  }

  /* Pricing cards mobile */
  .dashboard-card {
    margin-bottom: 1.5rem !important;
  }

  /* Testimonial mobile */
  blockquote {
    font-size: 1rem !important;
  }
}

/* Small phones (max-width: 375px) */
@media (max-width: 375px) {
  /* Even more compact for very small phones */
  #main-content {
    padding-top: 4.5rem !important;
  }

  .hero-section {
    padding-top: 1rem !important;
    padding-bottom: 1.5rem !important;
  }

  /* Ultra-compact section spacing for very small screens */
  section {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
  }

  section#features,
  section#pricing,
  section#testimonials,
  section#cta,
  section#contact {
    padding-top: 1.25rem !important;
    padding-bottom: 1.25rem !important;
  }

  .hero-section h1 {
    font-size: 1.5rem !important;
  }

  .hero-section p.text-blue-600 {
    font-size: 0.9375rem !important;
  }

  .hero-section .grid.grid-cols-2 {
    font-size: 0.8125rem !important;
  }

  /* Extra small screens also hide decorative elements for cleaner look */
  .dashboard-mockup .mobile-green-circle,
  .dashboard-mockup div[style*="bottom: -8px"][style*="left: -8px"],
  .dashboard-mockup .bg-green-400.rounded-full,
  .dashboard-mockup div[style*="top: -8px"][style*="right: -8px"],
  .dashboard-mockup .bg-yellow-400.rounded-full {
    display: none !important;
  }

  /* Further optimize Belgian Compliance section for very small screens */
  section.bg-gradient-to-br.from-gray-50.to-blue-50 h2 {
    font-size: 1.125rem !important;
    padding: 0 0.25rem !important;
  }

  section.bg-gradient-to-br.from-gray-50.to-blue-50 > div > div > p {
    font-size: 0.8125rem !important;
    padding: 0 0.25rem !important;
  }

  section.bg-gradient-to-br.from-gray-50.to-blue-50 h3 {
    font-size: 0.9375rem !important;
  }

  section.bg-gradient-to-br.from-gray-50.to-blue-50 h4 {
    font-size: 0.8125rem !important;
  }

  section.bg-gradient-to-br.from-gray-50.to-blue-50 .text-gray-600 {
    font-size: 0.7rem !important;
  }

  section.bg-gradient-to-br.from-gray-50.to-blue-50 .text-center p.text-2xl {
    font-size: 1rem !important;
  }

  section.bg-gradient-to-br.from-gray-50.to-blue-50 .text-center p.text-gray-600 {
    font-size: 0.5625rem !important;
  }
}

/* Landscape mobile (max-width: 768px and landscape orientation) */
@media (max-width: 768px) and (orientation: landscape) {
  #main-content {
    padding-top: 4rem !important;
  }

  .hero-section {
    padding-top: 1rem !important;
    padding-bottom: 1.5rem !important;
  }

  /* Reduced section spacing in landscape mode */
  section {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
  }

  .hero-section h1 {
    font-size: 1.5rem !important;
  }

  .hero-section .grid.grid-cols-2 {
    grid-template-columns: repeat(2, 1fr) !important; /* Keep 2 columns in landscape */
  }
}

/* Medium devices (641px - 768px) */
@media (min-width: 641px) and (max-width: 768px) {
  #main-content {
    padding-top: 6rem !important; /* Slightly more space for medium devices */
  }

  .hero-section {
    padding-top: 2rem !important;
    padding-bottom: 2.5rem !important;
  }

  /* Reduced section spacing for medium devices */
  section {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
  }

  section#features,
  section#pricing,
  section#testimonials,
  section#cta,
  section#contact {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }

  .hero-section h1 {
    font-size: 2.5rem !important;
    white-space: nowrap !important; /* Can fit without wrapping on medium screens */
  }

  .hero-section p.text-blue-600 {
    font-size: 1.25rem !important;
  }

  .hero-section p.text-green-600 {
    font-size: 1rem !important;
  }

  .hero-section p.text-gray-600 {
    font-size: 1rem !important;
  }

  /* Keep grid at 2 columns for medium devices */
  .hero-section .grid.grid-cols-2 {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem !important;
  }

  /* Buttons side by side on medium devices */
  .hero-section a.bg-transparent,
  .hero-section a.bg-blue-600 {
    width: auto !important;
    padding: 1rem 2rem !important;
  }
}

/* Tablet styles */
@media (min-width: 769px) and (max-width: 1024px) {
  /* Reduce top padding for tablets too */
  #main-content {
    padding-top: 7rem !important; /* Reduced from pt-32 (8rem) */
  }

  /* Hero section adjustments for tablets */
  .hero-section {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }

  /* Typography for tablets */
  .hero-section h1 {
    font-size: 3.5rem !important;
    line-height: 1.2 !important;
  }

  .hero-section p.text-blue-600 {
    font-size: 1.5rem !important;
  }

  .hero-section p.text-green-600 {
    font-size: 1.125rem !important;
  }

  .hero-section p.text-gray-600 {
    font-size: 1.125rem !important;
  }

  h1 {
    font-size: 3rem !important;
  }
  h2 {
    font-size: 2.25rem !important;
  }
  h3 {
    font-size: 1.75rem !important;
  }

  /* Container padding for tablets */
  .container {
    padding-left: 2rem !important;
    padding-right: 2rem !important;
  }

  /* Grid adjustments for tablets */
  .grid.lg\:grid-cols-3 {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .grid.md\:grid-cols-2 {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Feature cards tablet */
  .benefit-card {
    padding: 2rem !important;
  }

  /* Hero section tablet */
  .hero-pattern {
    padding: 3rem 0 !important;
  }

  /* Dashboard mockup tablet */
  .dashboard-mockup {
    max-width: 450px !important;
  }

  /* Pricing card tablet */
  .pricing-highlight {
    max-width: 500px !important;
  }
}

/* Large tablet and small desktop */
@media (min-width: 1025px) and (max-width: 1280px) {
  .container {
    max-width: 1024px !important;
  }

  /* Optimal width for hero elements on large screens */
  .dashboard-mockup {
    max-width: 600px !important;
  }

  .pricing-highlight {
    max-width: 450px !important;
    min-height: 100px !important;
  }
}

/* Desktop and larger screens */
@media (min-width: 1281px) {
  /* Optimal width for hero elements on desktop */
  .dashboard-mockup {
    max-width: 700px !important;
  }

  .pricing-highlight {
    max-width: 500px !important;
    min-height: 120px !important;
  }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
  /* Larger touch targets */
  .nav-link {
    min-height: 44px !important;
  }
  .btn {
    min-height: 44px !important;
  }

  /* Remove hover effects on touch devices */
  .dashboard-card:hover {
    transform: none !important;
  }
  .feature-icon:hover {
    transform: none !important;
  }
}

/* Landscape phone adjustments */
@media (max-width: 896px) and (orientation: landscape) {
  .hero-pattern {
    padding: 2rem 0 !important;
  }
  .py-16 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
  .py-20 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
}

/* Dashboard proportions */
.dashboard-mockup .bg-gradient-to-br {
  min-height: 280px;
}

@media (min-width: 641px) {
  .dashboard-mockup .bg-gradient-to-br {
    min-height: 320px;
  }
}

@media (min-width: 1025px) {
  .dashboard-mockup .bg-gradient-to-br {
    min-height: 350px;
  }
}

@media (min-width: 1281px) {
  .dashboard-mockup .bg-gradient-to-br {
    min-height: 380px;
  }
}

/* Additional mobile optimizations */
@media (max-width: 640px) {
  /* Optimize images for mobile */
  img {
    max-width: 100% !important;
    height: auto !important;
  }

  /* Improve text readability */
  body {
    line-height: 1.6 !important;
  }

  /* Optimize spacing */
  .space-y-8 > * + * {
    margin-top: 1.5rem !important;
  }
  .space-y-6 > * + * {
    margin-top: 1rem !important;
  }
  .space-y-4 > * + * {
    margin-top: 0.75rem !important;
  }

  /* Mobile-specific animations */
  [data-aos] {
    transition-duration: 0.4s !important;
  }

  /* Prevent horizontal scroll */
  .overflow-x-hidden {
    overflow-x: hidden !important;
  }

  /* Mobile menu improvements - No individual scrollbar */
  #mobileMenu {
    max-height: none !important; /* Remove height restriction */
    overflow-y: visible !important; /* Remove individual scrollbar */
  }

  /* Better touch targets */
  a,
  button {
    min-width: 44px !important;
  }

  /* Optimize gradients for mobile */
  .bg-gradient-to-br,
  .bg-gradient-to-r {
    background-attachment: scroll !important;
  }
}

/* Very small screens (iPhone SE, etc.) */
@media (max-width: 375px) {
  .container {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }
  h1 {
    font-size: 2rem !important;
  }
  h2 {
    font-size: 1.75rem !important;
  }
  h3 {
    font-size: 1.25rem !important;
  }
  .text-xl {
    font-size: 1.125rem !important;
  }
  .text-lg {
    font-size: 1rem !important;
  }
}

/* High DPI screens optimization */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .shadow-lg {
    box-shadow:
      0 10px 15px -3px rgba(0, 0, 0, 0.1),
      0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
  }
  .shadow-xl {
    box-shadow:
      0 20px 25px -5px rgba(0, 0, 0, 0.1),
      0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
  }
}

/* Custom checkbox styling */
input[type="checkbox"] {
  accent-color: #f97316;
}

/* Select dropdown styling */
select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
  appearance: none;
}
