/* Custom Styles for Chai Point FICO Website */

:root {
  --foreground-rgb: 0, 0, 0;
  --background-rgb: 255, 255, 255;
  --brand-blue: #0c2c8c;
  --brand-blue-dark: #071d5a;
  --brand-blue-light: #164b93;
  --brand-orange: #fc6c24;
  --brand-orange-dark: #e65c1f;
  --brand-orange-light: #fca85d;
}

/* Brand color utilities for Tailwind CDN - Comprehensive */
.bg-brand-blue,
[class*="bg-brand-blue"]:not([class*="/"]):not([class*="hover"]) { 
  background-color: var(--brand-blue) !important; 
}
.bg-brand-blue-dark { 
  background-color: var(--brand-blue-dark) !important; 
}
.bg-brand-blue-light { 
  background-color: var(--brand-blue-light) !important; 
}
.text-brand-blue,
[class*="text-brand-blue"]:not([class*="/"]) { 
  color: var(--brand-blue) !important; 
}
.border-brand-blue,
[class*="border-brand-blue"]:not([class*="/"]) { 
  border-color: var(--brand-blue) !important; 
}

.bg-brand-orange,
[class*="bg-brand-orange"]:not([class*="/"]) { 
  background-color: var(--brand-orange) !important; 
}
.bg-brand-orange-dark { 
  background-color: var(--brand-orange-dark) !important; 
}
.bg-brand-orange-light { 
  background-color: var(--brand-orange-light) !important; 
}
.text-brand-orange,
[class*="text-brand-orange"]:not([class*="/"]) { 
  color: var(--brand-orange) !important; 
}
.border-brand-orange,
[class*="border-brand-orange"]:not([class*="/"]) { 
  border-color: var(--brand-orange) !important; 
}

/* Opacity variants */
.bg-brand-blue\/5 { background-color: rgba(12, 44, 140, 0.05) !important; }
.bg-brand-blue\/10 { background-color: rgba(12, 44, 140, 0.1) !important; }
.bg-brand-blue\/20 { background-color: rgba(12, 44, 140, 0.2) !important; }
.border-brand-blue\/20 { border-color: rgba(12, 44, 140, 0.2) !important; }
.border-brand-blue\/30 { border-color: rgba(12, 44, 140, 0.3) !important; }
.border-brand-blue\/50 { border-color: rgba(12, 44, 140, 0.5) !important; }

.bg-brand-orange\/5 { background-color: rgba(252, 108, 36, 0.05) !important; }
.bg-brand-orange\/10 { background-color: rgba(252, 108, 36, 0.1) !important; }
.bg-brand-orange\/20 { background-color: rgba(252, 108, 36, 0.2) !important; }
.border-brand-orange\/20 { border-color: rgba(252, 108, 36, 0.2) !important; }
.border-brand-orange\/30 { border-color: rgba(252, 108, 36, 0.3) !important; }

/* Hover states */
.hover\:bg-brand-blue-dark:hover { background-color: var(--brand-blue-dark) !important; }
.hover\:bg-brand-blue:hover { background-color: var(--brand-blue) !important; }
.hover\:bg-brand-orange-dark:hover { background-color: var(--brand-orange-dark) !important; }
.hover\:text-brand-orange:hover { color: var(--brand-orange) !important; }
.hover\:border-brand-blue:hover { border-color: var(--brand-blue) !important; }
.hover\:border-brand-orange:hover { border-color: var(--brand-orange) !important; }

/* Gradient utilities - Handle Tailwind CDN limitations */
/* For buttons and elements with bg-gradient-to-r from-brand-orange to-orange-600 */
.bg-gradient-to-r.from-brand-orange,
[class*="bg-gradient-to-r"][class*="from-brand-orange"] {
  background-image: linear-gradient(to right, var(--brand-orange), #ea580c) !important;
}

/* For investment section gradient */
.bg-gradient-to-br.from-brand-blue.to-brand-blue-light,
[class*="bg-gradient-to-br"][class*="from-brand-blue"][class*="to-brand-blue-light"]:not([class*="via-"]) {
  background-image: linear-gradient(to bottom right, var(--brand-blue), var(--brand-blue-light)) !important;
}

/* For FAQ section gradient */
.bg-gradient-to-br.from-brand-blue.via-brand-blue-light.to-brand-blue-dark,
[class*="bg-gradient-to-br"][class*="from-brand-blue"][class*="via-brand-blue-light"][class*="to-brand-blue-dark"] {
  background-image: linear-gradient(to bottom right, var(--brand-blue), var(--brand-blue-light), var(--brand-blue-dark)) !important;
}

/* For stats cards gradient */
.bg-gradient-to-br.from-brand-blue\/5.to-brand-blue\/10,
[class*="bg-gradient-to-br"][class*="from-brand-blue/5"][class*="to-brand-blue/10"] {
  background-image: linear-gradient(to bottom right, rgba(12, 44, 140, 0.05), rgba(12, 44, 140, 0.1)) !important;
}

/* Text gradient for hero heading */
.bg-gradient-to-r.from-brand-orange.to-orange-600.bg-clip-text.text-transparent,
[class*="bg-gradient-to-r"][class*="from-brand-orange"][class*="to-orange-600"][class*="bg-clip-text"][class*="text-transparent"] {
  background-image: linear-gradient(to right, var(--brand-orange), #ea580c) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
}

/* Additional brand color classes that might be missing */
.text-brand-blue\/80 { color: rgba(12, 44, 140, 0.8) !important; }
.text-brand-blue\/90 { color: rgba(12, 44, 140, 0.9) !important; }
.text-white\/80 { color: rgba(255, 255, 255, 0.8) !important; }
.text-white\/90 { color: rgba(255, 255, 255, 0.9) !important; }
.border-white\/20 { border-color: rgba(255, 255, 255, 0.2) !important; }

/* Fix for gradient classes - Comprehensive approach */
/* Target elements that contain these class combinations */
[class*="from-brand-orange"][class*="to-orange-600"]:not([class*="bg-clip-text"]) {
  background-image: linear-gradient(to right, var(--brand-orange), #ea580c) !important;
}

[class*="from-brand-blue"][class*="to-brand-blue-light"]:not([class*="via-"]):not([class*="bg-clip-text"]) {
  background-image: linear-gradient(to bottom right, var(--brand-blue), var(--brand-blue-light)) !important;
}

[class*="from-brand-blue"][class*="via-brand-blue-light"][class*="to-brand-blue-dark"]:not([class*="bg-clip-text"]) {
  background-image: linear-gradient(to bottom right, var(--brand-blue), var(--brand-blue-light), var(--brand-blue-dark)) !important;
}

[class*="from-brand-blue/5"][class*="to-brand-blue/10"]:not([class*="bg-clip-text"]) {
  background-image: linear-gradient(to bottom right, rgba(12, 44, 140, 0.05), rgba(12, 44, 140, 0.1)) !important;
}

/* Text gradient fix - for text with gradient */
[class*="from-brand-orange"][class*="to-orange-600"][class*="bg-clip-text"] {
  background-image: linear-gradient(to right, var(--brand-orange), #ea580c) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
}

body {
  color: rgb(var(--foreground-rgb));
  background: rgb(var(--background-rgb));
  font-family: 'Poppins', sans-serif;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom scrollbar - Modern Design */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f8f9fa;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, var(--brand-blue), var(--brand-orange));
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, var(--brand-blue-dark), var(--brand-orange-dark));
}

/* Modern focus styles */
*:focus-visible {
  outline: 2px solid var(--brand-orange);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Smooth transitions for interactive elements */
button, a {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Touch-friendly: use .touch-target-min on interactive elements that need min 44px */
.touch-target-min {
  min-height: 44px;
  min-width: 44px;
}

@media (min-width: 769px) {
  .touch-target-min {
    min-height: 0;
    min-width: 0;
  }
}

/* Touch manipulation for better mobile performance */
.touch-manipulation {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* Glassmorphism utility */
.glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

/* Navigation scroll effect */
nav.scrolled {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(229, 231, 235, 1);
}

nav.scrolled .nav-link {
  color: #374151;
}

/* Enhanced Navigation Menu Styling */
.nav-link {
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.nav-link:active {
  transform: translateY(0);
}

/* Active navigation link styling */
.nav-link.active {
  color: var(--brand-blue) !important;
  background-color: rgba(12, 44, 140, 0.15) !important;
  font-weight: 600;
}

.nav-link.active span[class*="absolute"] {
  transform: scaleX(1) !important;
  opacity: 1 !important;
}

.nav-link.active:hover {
  background-color: rgba(12, 44, 140, 0.15) !important;
  color: var(--brand-blue) !important;
}

/* Navigation underline animation */
.nav-link span[class*="absolute"] {
  transform-origin: left;
}

/* Smooth transitions for navigation elements */
.nav-link.group:hover {
  background-color: rgba(12, 44, 140, 0.05);
}

/* Mobile menu active state */
#mobile-menu button.active {
  background-color: rgba(12, 44, 140, 0.15) !important;
  color: var(--brand-blue) !important;
  border-left-color: var(--brand-blue) !important;
  font-weight: 600;
}

#mobile-menu button.active:hover {
  background-color: rgba(12, 44, 140, 0.15) !important;
  color: var(--brand-blue) !important;
}

#mobile-menu button.active svg {
  opacity: 1 !important;
  transform: translateX(4px) !important;
}

/* Mobile menu button fixes - ensure white background and dark text by default */
#mobile-menu button:not([class*="bg-brand-orange"]) {
  background-color: white !important;
  color: #1f2937 !important; /* text-gray-800 */
}

#mobile-menu button:not([class*="bg-brand-orange"]):hover {
  background-color: var(--brand-blue) !important;
  color: white !important;
}

/* Ensure Get Started button keeps orange background */
#mobile-menu button[class*="bg-brand-orange"],
#mobile-menu button.bg-brand-orange {
  background-color: var(--brand-orange) !important;
  color: white !important;
}

#mobile-menu button[class*="bg-brand-orange"]:hover,
#mobile-menu button.bg-brand-orange:hover {
  background-color: var(--brand-orange-dark) !important;
  color: white !important;
}

/* Hero animations */
.hero-content {
  opacity: 0;
  transform: translateX(-50px);
  animation: fadeInLeft 0.8s ease-out forwards;
}

.hero-cards {
  opacity: 0;
  transform: translateX(50px);
  animation: fadeInRight 0.8s ease-out 0.2s forwards;
}

.hero-stats {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease-out 0.8s forwards;
}

/* Enhanced hero card hover effects */
.hero-cards .group {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-cards .group:hover {
  transform: translateY(-4px);
}

/* Professional hero section styling */
section[class*="hero"] {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Professional card borders */
.hero-cards > div {
  border-radius: 0;
}

@media (min-width: 1024px) {
  .hero-cards > div {
    border-radius: 4px;
  }
}

.scroll-indicator {
  opacity: 0;
  animation: fadeIn 1.2s ease-out 1.2s forwards, bounce 1.5s ease-in-out infinite 2.4s;
}

.scroll-dot {
  animation: scrollBounce 1.5s ease-in-out infinite;
}

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

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

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

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

@keyframes bounce {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-10px);
  }
}

@keyframes scrollBounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(12px);
  }
}

/* Fancy animations for mobile/tablet Hero section */
@keyframes gradientShift {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.1);
  }
}

@keyframes shine {
  0% {
    left: -100%;
  }
  50%, 100% {
    left: 100%;
  }
}

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

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

/* Fade in on scroll */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Store carousel */
.store-carousel-container {
  position: relative;
  overflow: hidden;
}

.store-carousel-image {
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.store-carousel-image.fade-out {
  opacity: 0;
  transform: translateX(-100px);
}

.store-carousel-image.fade-in {
  opacity: 1;
  transform: translateX(0);
}

/* Store type card: line indicators on desktop only */
.store-carousel-indicators {
  bottom: 0.5rem;
  gap: 0.375rem;
}
.store-carousel-indicator {
  width: 0.5rem;
  height: 0.125rem;
  border-radius: 1px;
  flex-shrink: 0;
}
.store-carousel-indicator-active {
  width: 0.875rem;
  height: 0.125rem;
}
@media (max-width: 1024px) {
  .store-carousel-indicators {
    display: none !important;
  }
}

/* Modal styles */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
}

.modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-image {
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Store type modal: keep close button above header so it doesn't get hidden by model name */
#store-type-modal .modal-close {
  z-index: 30 !important;
}
#store-type-modal-header {
  padding-right: 1rem;
}

/* Gallery modal: same overlap fix for close button and title/description */
#gallery-modal .modal-close {
  z-index: 30 !important;
}
#gallery-modal-header {
  padding-right: 1rem;
}

/* FAQ accordion */
.faq-item {
  transition: all 0.3s ease;
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  opacity: 0;
}

.faq-item.open .faq-content {
  max-height: 500px;
  opacity: 1;
}

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

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

/* Form styles */
.form-success {
  background: #d1fae5;
  border: 1px solid #10b981;
  color: #065f46;
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}

.form-error {
  background: #fee2e2;
  border: 1px solid #ef4444;
  color: #991b1b;
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}

/* Loading spinner */
.spinner {
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  animation: spin 0.8s linear infinite;
  display: inline-block;
  margin-right: 8px;
}

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

/* Image gallery hover effects */
.gallery-item {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Store type cards */
.store-type-card {
  transition: all 0.3s ease;
}

.store-type-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border-color: var(--brand-blue);
}

/* Testimonial cards */
.testimonial-card {
  transition: box-shadow 0.3s ease;
}

.testimonial-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* ========== MOBILE & TABLET AESTHETIC IMPROVEMENTS ========== */

/* ========== FANCY MOBILE/TABLET HERO SECTION ========== */

/* Mobile-specific improvements (up to 640px) */
@media (max-width: 640px) {
  /* Better section padding - More breathing room */
  section {
    padding-top: 3.5rem !important;
    padding-bottom: 3.5rem !important;
  }
  
  /* Hero section - Fancy mobile design with enhanced background */
  section.relative.min-h-screen {
    min-height: 100vh !important;
    padding-top: 5rem !important;
    padding-bottom: 2rem !important;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 25%, #f1f5f9 50%, #ffffff 75%, #f8fafc 100%) !important;
    position: relative !important;
    overflow: hidden !important;
  }
  
  /* Animated gradient overlay for mobile */
  section.relative.min-h-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
      radial-gradient(circle at 20% 30%, rgba(12, 44, 140, 0.08) 0%, transparent 50%),
      radial-gradient(circle at 80% 70%, rgba(252, 108, 36, 0.08) 0%, transparent 50%),
      radial-gradient(circle at 50% 50%, rgba(12, 44, 140, 0.05) 0%, transparent 70%);
    animation: gradientShift 15s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
  }
  
  /* Enhanced background pattern for mobile */
  section.relative.min-h-screen > div[class*="absolute"][class*="opacity-5"] {
    opacity: 0.08 !important;
    background-image: 
      linear-gradient(to right, rgba(12, 44, 140, 0.15) 1px, transparent 1px),
      linear-gradient(to bottom, rgba(12, 44, 140, 0.15) 1px, transparent 1px) !important;
    background-size: 30px 30px !important;
  }
  
  /* Enhanced accent line for mobile */
  section.relative.min-h-screen > div[class*="absolute"][class*="top-0"][class*="h-1"] {
    height: 3px !important;
    background: linear-gradient(90deg, 
      rgba(12, 44, 140, 0.8) 0%,
      rgba(252, 108, 36, 0.8) 50%,
      rgba(12, 44, 140, 0.8) 100%) !important;
    box-shadow: 0 2px 8px rgba(12, 44, 140, 0.2) !important;
  }
  
  .hero-content {
    text-align: left !important;
    margin-bottom: 0.125rem !important;
    order: 1 !important;
    position: relative !important;
    z-index: 1 !important;
  }
  
  .hero-cards {
    order: 2 !important;
    position: relative !important;
    z-index: 1 !important;
    margin-top: 0 !important;
  }
  
  /* Fancy Hero Title for mobile - Reflect-style: very tight line spacing */
  .hero-content h1 {
    font-size: 2.25rem !important;
    line-height: 1 !important;
    margin-bottom: 0.5rem !important;
    letter-spacing: -0.02em !important;
    background: linear-gradient(135deg, #1f2937 0%, #0c2c8c 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    position: relative !important;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1)) !important;
  }
  
  .hero-content h1 span:first-child {
    display: block;
    margin-bottom: 0;
  }
  
  /* Enhanced brand blue text */
  .hero-content h1 span[class*="text-brand-blue"] {
    background: linear-gradient(135deg, #0c2c8c 0%, #164b93 50%, #0c2c8c 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-size: 200% 200% !important;
    animation: gradientFlow 3s ease infinite !important;
  }
  
  /* Fancy description text - left-aligned, slightly reduced */
  .hero-content p {
    font-size: 1rem !important;
    margin-bottom: 0.125rem !important;
    line-height: 1.5 !important;
    padding: 0 !important;
    color: #4b5563 !important;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8) !important;
  }
  
  /* Still Have Questions? – Email button on mobile: full width, text wraps, no overflow */
  #faq-cta-buttons {
    align-items: stretch !important;
  }
  #faq-cta-buttons .faq-cta-email {
    min-width: 0 !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
  }
  
  /* Fancy Badge styling for mobile - Glassmorphism effect */
  .hero-content .inline-flex.items-center.gap-2 {
    padding: 0.75rem 1.5rem !important;
    border-radius: 2rem !important;
    margin-bottom: 1.5rem !important;
    font-size: 0.6875rem !important;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1.5px solid rgba(12, 44, 140, 0.2) !important;
    box-shadow: 
      0 4px 16px rgba(12, 44, 140, 0.1),
      0 2px 8px rgba(0, 0, 0, 0.05),
      inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
    position: relative !important;
    overflow: hidden !important;
  }
  
  /* Animated shine effect on badge */
  .hero-content .inline-flex.items-center.gap-2::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
      transparent, 
      rgba(255, 255, 255, 0.4), 
      transparent);
    animation: shine 3s ease-in-out infinite;
  }
  
  /* Enhanced green dot with glow */
  .hero-content .inline-flex.items-center.gap-2 > div[class*="bg-green-600"] {
    width: 8px !important;
    height: 8px !important;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.6), 0 0 12px rgba(34, 197, 94, 0.4) !important;
    animation: pulse 2s ease-in-out infinite !important;
  }
  
  
  /* Fancy Hero Cards - Glassmorphism with enhanced effects */
  .hero-cards {
    gap: 0.875rem !important;
    margin-top: 0.125rem !important;
  }
  
  .hero-cards > div > div {
    padding: 1.25rem 1rem !important;
    border-radius: 1.25rem !important;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.8) !important;
    box-shadow: 
      0 8px 24px rgba(12, 44, 140, 0.12),
      0 4px 12px rgba(0, 0, 0, 0.08),
      inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
    position: relative !important;
    overflow: hidden !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  }
  
  /* Hover effect for cards */
  .hero-cards > div > div:hover {
    transform: translateY(-4px) scale(1.02) !important;
    box-shadow: 
      0 12px 32px rgba(12, 44, 140, 0.18),
      0 6px 16px rgba(0, 0, 0, 0.12),
      inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
  }
  
  /* Gradient overlay on cards */
  .hero-cards > div > div::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
      rgba(12, 44, 140, 0.6) 0%,
      rgba(252, 108, 36, 0.6) 50%,
      rgba(12, 44, 140, 0.6) 100%);
    opacity: 0.6;
  }
  
  /* Blue cards get blue gradient */
  .hero-cards > div > div:first-child::before,
  .hero-cards > div > div:nth-child(2)::before {
    background: linear-gradient(90deg, 
      rgba(12, 44, 140, 0.8) 0%,
      rgba(22, 75, 147, 0.8) 100%) !important;
  }
  
  /* Orange cards get orange gradient */
  .hero-cards > div > div:nth-child(3)::before,
  .hero-cards > div > div:nth-child(4)::before {
    background: linear-gradient(90deg, 
      rgba(252, 108, 36, 0.8) 0%,
      rgba(230, 92, 31, 0.8) 100%) !important;
  }
  
  .hero-cards .text-2xl,
  .hero-cards .text-3xl {
    font-size: 1.5rem !important;
    line-height: 1.2 !important;
    margin-bottom: 0.5rem !important;
  }
  
  .hero-cards .text-sm {
    font-size: 0.75rem !important;
    line-height: 1.3 !important;
  }
  
  .hero-cards .text-xs {
    font-size: 0.625rem !important;
    margin-top: 0.25rem !important;
  }
  
  /* Fancy Stats section - Enhanced glassmorphism cards */
  .hero-stats {
    gap: 1rem !important;
    margin-top: 2.5rem !important;
    grid-template-columns: 1fr !important;
  }
  
  .hero-stats > div {
    padding: 1.75rem 1.5rem !important;
    border-radius: 1.5rem !important;
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    border: 2px solid rgba(255, 255, 255, 0.6) !important;
    box-shadow: 
      0 10px 30px rgba(12, 44, 140, 0.15),
      0 4px 16px rgba(0, 0, 0, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
    position: relative !important;
    overflow: hidden !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  }
  
  /* Hover effect for stats cards */
  .hero-stats > div:hover {
    transform: translateY(-3px) !important;
    box-shadow: 
      0 16px 40px rgba(12, 44, 140, 0.2),
      0 8px 20px rgba(0, 0, 0, 0.12),
      inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
  }
  
  /* Subtle gradient border on stats cards */
  .hero-stats > div::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
      rgba(12, 44, 140, 0.6) 0%,
      rgba(252, 108, 36, 0.6) 50%,
      rgba(12, 44, 140, 0.6) 100%);
    opacity: 0.7;
  }
  
  .hero-stats .text-2xl,
  .hero-stats .text-3xl,
  .hero-stats .text-4xl {
    font-size: 2rem !important;
    line-height: 1.2 !important;
    margin-bottom: 0.5rem !important;
  }
  
  .hero-stats .text-base,
  .hero-stats .text-lg {
    font-size: 0.9375rem !important;
    font-weight: 600 !important;
    margin-bottom: 0.375rem !important;
  }
  
  .hero-stats .text-xs,
  .hero-stats .text-sm {
    font-size: 0.75rem !important;
  }
  
  /* Section headings - Better mobile typography */
  h2 {
    font-size: 1.875rem !important;
    line-height: 1.2 !important;
    margin-bottom: 1rem !important;
    letter-spacing: -0.02em !important;
    font-weight: 800 !important;
  }
  
  h2 span.block {
    display: block;
    margin-bottom: 0.25rem;
  }
  
  /* Section subtitles */
  .text-xl {
    font-size: 1.0625rem !important;
    line-height: 1.6 !important;
    padding: 0 0.5rem;
  }
  
  /* Better card padding and styling */
  .bg-white.rounded-2xl,
  .bg-white.rounded-xl {
    padding: 1.5rem !important;
    border-radius: 1.25rem !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid rgba(229, 231, 235, 0.8) !important;
  }
  
  /* Investment section improvements */
  #roi {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
  
  #roi .lg\:col-span-2 {
    padding: 1.75rem !important;
    margin-bottom: 1.25rem !important;
    border-radius: 1.25rem !important;
  }
  
  #roi .text-4xl,
  #roi .text-5xl,
  #roi .text-6xl {
    font-size: 2.5rem !important;
    line-height: 1.1 !important;
  }
  
  /* ROI Features Grid - Better mobile layout */
  #roi-features-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
    margin-bottom: 2rem !important;
  }
  
  #roi-features-grid > div {
    padding: 1.25rem !important;
    border-radius: 1rem !important;
  }
  
  /* Investment Summary Card - Mobile optimized */
  #roi .bg-white.border {
    border-radius: 1.25rem !important;
    overflow: hidden;
  }
  
  #roi .bg-white.border .p-8,
  #roi .bg-white.border .p-12 {
    padding: 1.5rem !important;
  }
  
  #roi .grid.md\:grid-cols-3 {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
  
  #roi .grid.md\:grid-cols-3 > div {
    border-bottom: 1px solid rgba(229, 231, 235, 0.8) !important;
    padding-bottom: 1.5rem !important;
    border-right: none !important;
    text-align: center !important;
  }
  
  #roi .grid.md\:grid-cols-3 > div:last-child {
    border-bottom: none !important;
    padding-bottom: 0 !important;
  }
  
  /* Store types grid - Single column on mobile */
  #store-types-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
  
  #store-types-grid > div {
    border-radius: 1.25rem !important;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08) !important;
  }
  
  /* Gallery grid - Better mobile layout */
  #store-gallery-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }
  
  #store-gallery-grid > div {
    border-radius: 1rem !important;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
  }
  
  /* Testimonials - Single column on mobile */
  #testimonials-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }
  
  /* FAQ improvements - Better mobile cards */
  #faq-list .faq-item,
  #faq-list > div {
    border-radius: 1rem !important;
    margin-bottom: 1rem !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
    overflow: hidden;
  }
  
  #faq-list button {
    padding: 1.25rem 1rem !important;
    font-size: 1rem !important;
    line-height: 1.5 !important;
  }
  
  /* Contact form - Better mobile layout */
  #contact {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
  
  #contact form {
    padding: 1.5rem !important;
  }
  
  #contact .grid.md\:grid-cols-2 {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  
  /* Better spacing for benefit cards */
  .space-y-4 > * + *,
  .space-y-6 > * + * {
    margin-top: 1.25rem !important;
  }
  
  /* Operating flow steps - Better mobile layout */
  #next-steps-list > div,
  #operating-flow-steps > div {
    padding: 1.25rem 1rem !important;
    margin-bottom: 1rem !important;
    border-radius: 1rem !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
  }
  
  /* About section - Better mobile layout */
  #about .grid.md\:grid-cols-2,
  #about .grid.lg\:grid-cols-2 {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
  
  /* Benefits section */
  #benefits-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }
  
  /* Investment highlights */
  #investment-highlights-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }
  
  /* Footer - Better mobile layout */
  footer .grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
    text-align: center !important;
  }
  
  footer .grid > div:first-child {
    margin-bottom: 1rem !important;
  }
  
  /* Navigation - Better mobile menu */
  #mobile-menu {
    border-radius: 0 0 1rem 1rem !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
  }
  
  #mobile-menu button {
    border-radius: 0.75rem !important;
    margin-bottom: 0.5rem !important;
  }
}

/* Mobile/Tablet Language Dropdown Styling */
@media (max-width: 1024px) {
  /* Language switcher in navigation bar */
  #mobile-language-dropdown {
    border-radius: 0.75rem !important;
    border: 1.5px solid rgba(12, 44, 140, 0.25) !important;
    font-weight: 600 !important;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
    min-width: 130px !important;
    padding: 0.5rem 2rem 0.5rem 0.75rem !important;
    font-size: 0.75rem !important;
  }
  
  #mobile-language-dropdown:hover {
    border-color: rgba(12, 44, 140, 0.4) !important;
    box-shadow: 0 4px 12px rgba(12, 44, 140, 0.15) !important;
  }
  
  #mobile-language-dropdown:focus {
    border-color: var(--brand-blue) !important;
    box-shadow: 0 0 0 3px rgba(12, 44, 140, 0.1) !important;
  }
  
  /* Ensure proper spacing in navigation */
  nav .lg\:hidden.flex.items-center {
    gap: 0.5rem !important;
  }
}

/* Tablet-specific improvements (641px to 1024px) */
@media (min-width: 641px) and (max-width: 1024px) {
  /* Better section padding */
  section {
    padding-top: 4.5rem !important;
    padding-bottom: 4.5rem !important;
  }
  
  /* Fancy Hero section for tablet */
  section.relative.min-h-screen {
    min-height: 90vh !important;
    padding-top: 6rem !important;
    padding-bottom: 3rem !important;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 25%, #f1f5f9 50%, #ffffff 75%, #f8fafc 100%) !important;
    position: relative !important;
    overflow: hidden !important;
  }
  
  /* Animated gradient overlay for tablet */
  section.relative.min-h-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
      radial-gradient(circle at 20% 30%, rgba(12, 44, 140, 0.1) 0%, transparent 50%),
      radial-gradient(circle at 80% 70%, rgba(252, 108, 36, 0.1) 0%, transparent 50%),
      radial-gradient(circle at 50% 50%, rgba(12, 44, 140, 0.06) 0%, transparent 70%);
    animation: gradientShift 15s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
  }
  
  /* Enhanced background pattern for tablet */
  section.relative.min-h-screen > div[class*="absolute"][class*="opacity-5"] {
    opacity: 0.1 !important;
    background-image: 
      linear-gradient(to right, rgba(12, 44, 140, 0.2) 1px, transparent 1px),
      linear-gradient(to bottom, rgba(12, 44, 140, 0.2) 1px, transparent 1px) !important;
    background-size: 35px 35px !important;
  }
  
  /* Enhanced accent line for tablet */
  section.relative.min-h-screen > div[class*="absolute"][class*="top-0"][class*="h-1"] {
    height: 4px !important;
    background: linear-gradient(90deg, 
      rgba(12, 44, 140, 0.9) 0%,
      rgba(252, 108, 36, 0.9) 50%,
      rgba(12, 44, 140, 0.9) 100%) !important;
    box-shadow: 0 3px 12px rgba(12, 44, 140, 0.25) !important;
  }
  
  /* Fancy badge for tablet */
  .hero-content .inline-flex.items-center.gap-2 {
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    border: 2px solid rgba(12, 44, 140, 0.25) !important;
    box-shadow: 
      0 6px 20px rgba(12, 44, 140, 0.12),
      0 3px 10px rgba(0, 0, 0, 0.06),
      inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
  }
  
  /* Enhanced hero cards for tablet */
  .hero-cards > div > div {
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    border: 2px solid rgba(255, 255, 255, 0.8) !important;
    box-shadow: 
      0 10px 30px rgba(12, 44, 140, 0.15),
      0 5px 15px rgba(0, 0, 0, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
  }
  
  /* Enhanced stats cards for tablet */
  .hero-stats > div {
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(28px) !important;
    -webkit-backdrop-filter: blur(28px) !important;
    border: 2px solid rgba(255, 255, 255, 0.7) !important;
    box-shadow: 
      0 12px 36px rgba(12, 44, 140, 0.18),
      0 6px 20px rgba(0, 0, 0, 0.12),
      inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
  }
  
  .hero-content {
    text-align: left !important;
    margin-bottom: 0.5rem !important;
  }
  
  .hero-content h1 {
    font-size: 3rem !important;
    line-height: 1 !important;
    margin-bottom: 0.5rem !important;
    letter-spacing: -0.02em !important;
  }
  
  .hero-content h1 span:first-child {
    margin-bottom: 0;
  }
  
  .hero-content p {
    font-size: 1.0625rem !important;
    line-height: 1.5 !important;
    margin-bottom: 0.25rem !important;
    max-width: 90%;
    margin-left: 0 !important;
    margin-right: auto !important;
  }
  
  /* Hero cards - Better tablet grid */
  .hero-cards {
    max-width: 600px;
    margin: 0.25rem auto 0 !important;
  }
  
  .hero-cards > div > div {
    padding: 1.25rem 1rem !important;
    border-radius: 1rem !important;
  }
  
  .hero-cards .text-2xl,
  .hero-cards .text-3xl {
    font-size: 1.75rem !important;
  }
  
  /* Stats - Better tablet layout */
  .hero-stats {
    max-width: 700px;
    margin: 3rem auto 0 !important;
  }
  
  .hero-stats > div {
    padding: 1.75rem 1.5rem !important;
  }
  
  .hero-stats .text-2xl,
  .hero-stats .text-3xl,
  .hero-stats .text-4xl {
    font-size: 2.5rem !important;
  }
  
  /* Better grid spacing for tablet */
  .grid.md\:grid-cols-2 {
    gap: 2rem !important;
  }
  
  .grid.md\:grid-cols-3 {
    gap: 1.75rem !important;
  }
  
  /* Card improvements */
  .bg-white.rounded-2xl,
  .bg-white.rounded-xl {
    padding: 2rem !important;
    border-radius: 1.5rem !important;
  }
  
  /* Investment section - Tablet optimized */
  #roi {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
  }
  
  #roi .lg\:col-span-2 {
    padding: 2.5rem !important;
    margin-bottom: 1.5rem !important;
    border-radius: 1.5rem !important;
  }
  
  #roi .grid.lg\:grid-cols-3 {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
  
  #roi-features-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.5rem !important;
  }
  
  /* Store types - 2 columns on tablet */
  #store-types-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 2rem !important;
  }
  
  /* Gallery - 2 columns on tablet */
  #store-gallery-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.5rem !important;
  }
  
  /* Testimonials - 2 columns on tablet */
  #testimonials-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.5rem !important;
  }
  
  /* Better button groups */
  .flex.flex-col.sm\:flex-row {
    gap: 1.25rem !important;
    justify-content: center;
  }
  
  .flex.flex-col.sm\:flex-row button {
    padding: 1rem 2rem !important;
    font-size: 1.0625rem !important;
  }
  
  /* Section headings - Better tablet typography */
  h2 {
    font-size: 2.5rem !important;
    line-height: 1.2 !important;
    margin-bottom: 1.25rem !important;
  }
  
  .text-xl {
    font-size: 1.1875rem !important;
    line-height: 1.6 !important;
  }
  
  /* About section - Better tablet layout */
  #about .grid.lg\:grid-cols-2 {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  
  /* Benefits grid - 2 columns on tablet */
  #benefits-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.5rem !important;
  }
  
  /* Investment highlights - 2 columns on tablet */
  #investment-highlights-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.5rem !important;
  }
  
  /* Contact section - Better tablet layout */
  #contact .grid.md\:grid-cols-2 {
    gap: 2.5rem !important;
  }
  
  /* Footer - Better tablet layout */
  footer .grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 2.5rem !important;
    text-align: left !important;
  }
}

/* General mobile/tablet improvements */
@media (max-width: 1024px) {
  /* Better container padding */
  .max-w-7xl,
  .max-w-4xl {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  /* Improved text readability */
  p {
    line-height: 1.7 !important;
  }
  
  /* Better list spacing */
  ul.space-y-2 > li {
    margin-bottom: 0.75rem !important;
  }
  
  /* Improved card shadows on mobile */
  .shadow-lg,
  .shadow-xl {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
  }
  
  /* Better image containers */
  .aspect-video,
  .aspect-\[4\/3\] {
    margin-bottom: 1rem !important;
  }
  
  /* Improved spacing between sections */
  section + section {
    margin-top: 0 !important;
  }
  
  /* Better form inputs */
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  textarea {
    font-size: 16px !important; /* Prevents zoom on iOS */
    padding: 0.875rem !important;
  }
  
  /* Hero animation adjustments */
  .hero-content,
  .hero-cards,
  .hero-stats {
    animation-duration: 0.6s;
  }
  
  /* Better badge/pill styling */
  .inline-flex.items-center.gap-2 {
    padding: 0.5rem 1rem !important;
    font-size: 0.8125rem !important;
  }
  
  /* Improved stat numbers */
  .text-2xl,
  .text-3xl,
  .text-4xl {
    line-height: 1.2 !important;
  }
  
  /* Better icon sizing */
  svg.w-5,
  svg.w-6 {
    width: 1.25rem !important;
    height: 1.25rem !important;
  }
}

/* Extra small devices (phones in portrait) */
@media (max-width: 375px) {
  .hero-content h1 {
    font-size: 1.75rem !important;
  }
  
  .hero-cards {
    gap: 0.5rem !important;
  }
  
  .hero-cards > div {
    padding: 0.75rem !important;
  }
  
  .hero-cards .text-xl {
    font-size: 1rem !important;
  }
  
  section {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
  
  h2 {
    font-size: 1.5rem !important;
  }
  
  /* Even tighter spacing for very small screens */
  .max-w-7xl,
  .max-w-4xl {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }
}

/* Additional aesthetic improvements for all mobile/tablet */
@media (max-width: 1024px) {
  /* Better visual hierarchy */
  h2 {
    letter-spacing: -0.02em !important;
  }
  
  h3 {
    font-size: 1.25rem !important;
    line-height: 1.4 !important;
  }
  
  /* Improve badge/pill readability */
  .inline-flex.items-center.gap-2.bg-white\/80 {
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
  }
  
  /* Better contrast for cards */
  .bg-white\/80,
  .bg-white\/60 {
    background-color: rgba(255, 255, 255, 0.95) !important;
  }
  
  /* Improve button readability */
  button {
    font-weight: 600 !important;
    letter-spacing: 0.01em !important;
  }
  
  /* Better spacing in lists */
  ul li {
    line-height: 1.6 !important;
  }
  
  /* Improve feature icons */
  .w-10.h-10,
  .w-12.h-12 {
    width: 2.5rem !important;
    height: 2.5rem !important;
  }
  
  /* Better section headers */
  .text-center.mb-10,
  .text-center.mb-14 {
    margin-bottom: 2rem !important;
  }
  
  /* Improve investment section readability */
  #roi .text-4xl,
  #roi .text-5xl,
  #roi .text-6xl {
    line-height: 1.1 !important;
  }
  
  /* Better gallery item spacing */
  .gallery-item img {
    transition: transform 0.2s ease !important;
  }
  
  /* Improve form field spacing */
  .mb-6 {
    margin-bottom: 1.25rem !important;
  }
  
  /* Better footer on mobile */
  footer {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
  
  footer .grid {
    text-align: center !important;
  }
  
  footer .grid > div:first-child {
    margin-bottom: 1.5rem !important;
  }
  
  /* Center social media icons on mobile */
  footer li.flex.space-x-4 {
    justify-content: center !important;
  }
}

/* Additional mobile aesthetic improvements */
@media (max-width: 1024px) {
  /* Better navigation on mobile/tablet */
  nav {
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08) !important;
  }
  
  nav.scrolled {
    padding: 0.5rem 0 !important;
    background: rgba(255, 255, 255, 0.98) !important;
  }
  
  /* Mobile menu improvements */
  #mobile-menu {
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    background: rgba(255, 255, 255, 0.98) !important;
    border-top: 2px solid rgba(12, 44, 140, 0.1) !important;
  }
  
  #mobile-menu button {
    border-radius: 0.875rem !important;
    margin-bottom: 0.625rem !important;
    transition: all 0.2s ease !important;
    font-weight: 500 !important;
  }
  
  #mobile-menu button:hover {
    transform: translateX(4px) !important;
    box-shadow: 0 2px 8px rgba(12, 44, 140, 0.15) !important;
  }
  
  /* Language switcher on mobile - Now in navigation bar */
  #mobile-language-dropdown {
    border-radius: 0.75rem !important;
    border: 1.5px solid rgba(12, 44, 140, 0.25) !important;
    font-weight: 600 !important;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
    min-width: 120px !important;
    padding: 0.5rem 2rem 0.5rem 0.75rem !important;
    font-size: 0.75rem !important;
  }
  
  #mobile-language-dropdown:hover {
    border-color: rgba(12, 44, 140, 0.4) !important;
    box-shadow: 0 4px 12px rgba(12, 44, 140, 0.15) !important;
  }
  
  #mobile-language-dropdown:focus {
    border-color: var(--brand-blue) !important;
    box-shadow: 0 0 0 3px rgba(12, 44, 140, 0.1) !important;
  }
  
  /* Improve hero section layout */
  .hero-content {
    margin-bottom: 2rem;
  }
  
  /* Better stats cards */
  .hero-stats > div {
    border-radius: 1rem !important;
    transition: all 0.3s ease !important;
  }
  
  .hero-stats > div:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12) !important;
  }
  
  /* Improve investment cards */
  #roi .space-y-4 > div,
  #roi .space-y-6 > div {
    border-radius: 1.25rem !important;
    padding: 1.5rem !important;
    transition: all 0.3s ease !important;
  }
  
  #roi .space-y-4 > div:hover,
  #roi .space-y-6 > div:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12) !important;
  }
  
  /* Better store type cards */
  #store-types-grid > div {
    border-radius: 1.25rem !important;
    transition: all 0.3s ease !important;
  }
  
  #store-types-grid > div:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15) !important;
  }
  
  /* Improve gallery items */
  #store-gallery-grid > div {
    border-radius: 1rem !important;
    overflow: hidden;
    transition: all 0.3s ease !important;
  }
  
  #store-gallery-grid > div:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15) !important;
  }
  
  /* Better testimonial cards */
  #testimonials-grid > div {
    border-radius: 1.25rem !important;
    padding: 1.75rem !important;
    transition: all 0.3s ease !important;
  }
  
  #testimonials-grid > div:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12) !important;
  }
  
  /* Improve FAQ items */
  #faq-list > div {
    border-radius: 1rem !important;
    margin-bottom: 1rem !important;
    transition: all 0.3s ease !important;
  }
  
  #faq-list > div:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
  }
  
  /* Better contact section */
  #contact .grid.md\:grid-cols-2 > div {
    border-radius: 1.25rem !important;
    overflow: hidden;
  }
  
  /* Improve footer spacing */
  footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
  }
  
  footer .grid {
    gap: 2rem !important;
    margin-bottom: 2rem !important;
  }
  
  /* Better button groups */
  .flex.flex-wrap.gap-3 {
    gap: 0.875rem !important;
  }
  
  /* Improve feature lists */
  ul.space-y-1\.5,
  ul.space-y-2 {
    padding-left: 0.5rem !important;
  }
  
  /* Better icon alignment */
  .flex.items-start svg {
    margin-top: 0.125rem !important;
  }
  
  /* Improve modal on mobile */
  .modal-overlay {
    padding: 1rem !important;
  }
  
  .modal-content {
    padding: 1rem !important;
  }
  
  /* Store Type modal: smaller arrows and counter on mobile/tablet so they don't hide the image */
  #store-type-modal button[aria-label="Previous image"],
  #store-type-modal button[aria-label="Next image"] {
    padding: 0.375rem !important;
  }
  #store-type-modal button[aria-label="Previous image"] {
    left: 0.5rem !important;
  }
  #store-type-modal button[aria-label="Next image"] {
    right: 0.5rem !important;
  }
  #store-type-modal button[aria-label="Previous image"] svg,
  #store-type-modal button[aria-label="Next image"] svg {
    width: 1rem !important;
    height: 1rem !important;
  }
  #store-type-counter {
    padding: 0.25rem 0.5rem !important;
    font-size: 0.6875rem !important;
    bottom: 0.5rem !important;
  }
  
  /* Better form labels */
  label {
    font-size: 0.875rem !important;
    margin-bottom: 0.625rem !important;
    font-weight: 600 !important;
  }
  
  /* Improve spacing in about section */
  #about .grid.lg\:grid-cols-2 {
    gap: 2rem !important;
  }
  
  /* Better operating flow on mobile */
  #next-steps-list .flex,
  #operating-flow-steps .flex {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem !important;
  }
  
  #next-steps-list .flex > div:first-child,
  #operating-flow-steps .flex > div:first-child {
    margin-bottom: 0;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    padding: 0 !important;
  }
  
  /* Section badges - Better mobile styling */
  .inline-flex.items-center.gap-2.bg-white {
    border-radius: 2rem !important;
    padding: 0.625rem 1.25rem !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
  }
  
  /* Better card headers */
  .bg-brand-blue.px-6 {
    padding: 1.25rem 1.5rem !important;
  }
  
  /* Improve investment summary card */
  #roi .bg-white.border .grid.md\:grid-cols-3 {
    padding: 0 !important;
  }
  
  /* Better spacing for all sections */
  section[id] {
    scroll-margin-top: 5rem !important;
  }
}

/* Tablet portrait optimizations (641px to 768px) */
@media (min-width: 641px) and (max-width: 768px) {
  /* Better two-column layouts */
  .grid.md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 1.5rem !important;
  }
  
  /* Improve hero cards */
  .hero-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    max-width: 550px;
    margin: 0.5rem auto 0 !important;
  }
  
  .hero-cards > div > div {
    padding: 1.125rem 1rem !important;
  }
  
  /* Better investment section */
  #roi .grid.lg\:grid-cols-3 {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
  
  #roi .lg\:col-span-2 {
    grid-column: span 1 !important;
  }
  
  #roi-features-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.25rem !important;
  }
  
  /* Store types - 2 columns on tablet portrait */
  #store-types-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.75rem !important;
  }
  
  /* Gallery - 2 columns */
  #store-gallery-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.5rem !important;
  }
  
  /* Benefits - 2 columns */
  #benefits-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.5rem !important;
  }
  
  /* Investment highlights - 2 columns */
  #investment-highlights-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.5rem !important;
  }
  
  /* Hero content - Better tablet portrait */
  .hero-content h1 {
    font-size: 2.75rem !important;
  }
  
  .hero-content p {
    font-size: 1rem !important;
  }
  
  /* Stats - Better tablet portrait */
  .hero-stats {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1rem !important;
  }
}

/* Landscape phone optimizations */
@media (max-width: 896px) and (orientation: landscape) {
  /* Reduce hero section height */
  section.relative.min-h-screen {
    min-height: auto !important;
    padding-top: 5rem !important;
    padding-bottom: 2rem !important;
  }
  
  /* Better spacing */
  .hero-content {
    margin-bottom: 0.5rem !important;
    text-align: left !important;
  }
  
  .hero-content h1 {
    font-size: 2rem !important;
    margin-bottom: 0.5rem !important;
    line-height: 1 !important;
  }
  
  .hero-content h1 span:first-child {
    margin-bottom: 0;
  }
  
  .hero-cards {
    margin-top: 0.25rem !important;
  }
  
  .hero-stats {
    margin-top: 1.5rem !important;
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

/* Additional Mobile/Tablet Typography Improvements */
@media (max-width: 1024px) {
  /* Better heading hierarchy */
  h1 {
    font-weight: 800 !important;
    letter-spacing: -0.03em !important;
  }
  
  h2 {
    font-weight: 800 !important;
    letter-spacing: -0.02em !important;
  }
  
  h3 {
    font-weight: 700 !important;
    letter-spacing: -0.01em !important;
  }
  
  /* Better paragraph readability */
  p {
    font-size: 1rem !important;
    line-height: 1.7 !important;
    color: #4b5563 !important;
  }
  
  /* Improve button text */
  button {
    font-weight: 600 !important;
    letter-spacing: 0.01em !important;
  }
  
  /* Better list styling */
  ul li,
  ol li {
    line-height: 1.7 !important;
    margin-bottom: 0.5rem !important;
  }
  
  /* Improve card text */
  .bg-white p,
  .bg-white span {
    line-height: 1.6 !important;
  }
}

/* Mobile-specific touch improvements */
@media (max-width: 768px) {
  /* Better touch targets */
  button,
  a[role="button"] {
    min-height: 44px !important;
    min-width: 44px !important;
    padding: 0.75rem 1.25rem !important;
  }
  
  /* Improve form inputs */
  input,
  textarea,
  select {
    min-height: 44px !important;
    font-size: 16px !important; /* Prevents iOS zoom */
  }
  
  /* Better link spacing */
  a {
    padding: 0.5rem 0 !important;
    display: inline-block;
  }
  
  /* Improve card touch areas */
  .bg-white.rounded-xl,
  .bg-white.rounded-2xl {
    min-height: auto !important;
  }
  
  /* Better spacing for interactive elements */
  .flex.items-center.gap-2 {
    gap: 0.75rem !important;
  }
  
  /* Improve icon button sizes */
  button svg,
  a svg {
    min-width: 20px !important;
    min-height: 20px !important;
  }
}

/* Tablet landscape optimizations (769px to 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  /* Better hero layout for tablet landscape */
  .hero-content {
    text-align: left !important;
  }
  
  .hero-content h1 {
    font-size: 3.25rem !important;
  }
  
  .hero-content p {
    font-size: 1.125rem !important;
    max-width: 100% !important;
  }
  
  /* Hero cards - Better tablet landscape */
  .hero-cards {
    max-width: 100%;
  }
  
  /* Stats - Better tablet landscape */
  .hero-stats {
    grid-template-columns: repeat(3, 1fr) !important;
    max-width: 100%;
  }
  
  /* Better grid layouts */
  .grid.md\:grid-cols-2 {
    gap: 2rem !important;
  }
  
  .grid.md\:grid-cols-3 {
    gap: 2rem !important;
  }
  
  /* Store types - 3 columns on tablet landscape */
  #store-types-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 2rem !important;
  }
  
  /* Gallery - 3 columns */
  #store-gallery-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1.75rem !important;
  }
  
  /* Benefits - 3 columns */
  #benefits-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1.75rem !important;
  }
  
  /* Investment highlights - 4 columns */
  #investment-highlights-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 1.5rem !important;
  }
  
  /* ROI features - 4 columns */
  #roi-features-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 1.5rem !important;
  }
  
  /* About section - 2 columns on tablet landscape */
  #about .grid.lg\:grid-cols-2 {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 2.5rem !important;
  }
  
  /* Contact - 2 columns */
  #contact .grid.md\:grid-cols-2 {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 3rem !important;
  }
  
  /* Footer - 4 columns on tablet landscape */
  footer .grid {
    grid-template-columns: repeat(4, 1fr) !important;
    text-align: left !important;
  }
}

/* Additional Mobile/Tablet Visual Polish */
@media (max-width: 1024px) {
  /* Better card shadows for depth */
  .bg-white.border,
  .bg-white.rounded-xl,
  .bg-white.rounded-2xl {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08) !important;
    border: 1.5px solid rgba(229, 231, 235, 0.8) !important;
  }
  
  /* Improve section badges */
  .inline-flex.items-center.gap-2.bg-white.border {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
    border-width: 1.5px !important;
  }
  
  /* Better gradient backgrounds on mobile */
  .bg-gradient-to-br {
    background-attachment: scroll !important;
  }
  
  /* Improve image loading on mobile */
  img {
    loading: lazy !important;
  }
  
  /* Better focus states for accessibility */
  button:focus-visible,
  a:focus-visible,
  input:focus-visible,
  textarea:focus-visible,
  select:focus-visible {
    outline: 3px solid var(--brand-orange) !important;
    outline-offset: 2px !important;
    border-radius: 0.5rem !important;
  }
  
  /* Improve scroll behavior */
  html {
    scroll-padding-top: 5rem !important;
  }
  
  /* Better section transitions */
  section {
    transition: opacity 0.3s ease !important;
  }
  
  /* Improve card hover states on touch devices */
  @media (hover: none) {
    .bg-white.border:hover,
    .bg-white.rounded-xl:hover,
    .bg-white.rounded-2xl:hover {
      transform: none !important;
      box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08) !important;
    }
  }
  
  /* Better active states for touch */
  button:active,
  a:active {
    transform: scale(0.98) !important;
    transition: transform 0.1s ease !important;
  }
  
  /* Improve text selection */
  ::selection {
    background-color: rgba(12, 44, 140, 0.2) !important;
    color: var(--brand-blue) !important;
  }
  
  /* Better loading states */
  .spinner {
    border-width: 3px !important;
    width: 24px !important;
    height: 24px !important;
  }
}

/* Mobile-specific animation improvements */
@media (max-width: 768px) {
  /* Reduce motion for better performance */
  @media (prefers-reduced-motion: no-preference) {
    .hero-content,
    .hero-cards,
    .hero-stats {
      animation-duration: 0.5s !important;
    }
  }
  
  /* Disable animations for reduced motion preference */
  @media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }
  }
  
  /* Better image aspect ratios on mobile */
  .aspect-video,
  .aspect-\[4\/3\] {
    aspect-ratio: 16/10 !important;
  }
  
  /* Improve modal on very small screens */
  @media (max-width: 375px) {
    .modal-content {
      padding: 0.5rem !important;
    }
    
    .modal-image {
      max-height: 85vh !important;
    }
  }
}

/* Tablet-specific visual enhancements */
@media (min-width: 641px) and (max-width: 1024px) {
  /* Better card hover effects on tablet */
  .bg-white.border:hover,
  .bg-white.rounded-xl:hover,
  .bg-white.rounded-2xl:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
  }
  
  /* Improve grid item spacing */
  .grid > * {
    min-width: 0 !important;
  }
  
  /* Better image quality on tablet */
  img {
    image-rendering: -webkit-optimize-contrast !important;
    image-rendering: crisp-edges !important;
  }
}

/* Print styles */
@media print {
  nav,
  .scroll-indicator,
  button {
    display: none;
  }
  
  section {
    page-break-inside: avoid;
  }
  
  .bg-white {
    background: white !important;
    box-shadow: none !important;
  }
}
