/* Glassmorphism Modern Design Styles */

/* Static Radial Gradient - Ultra Dark Background with Subtle Shades */
body {
  /* Much darker base */
  background-color: #060606 !important;
  /* Multiple scattered radial gradients with very dark and subtle lighter shades */
  background-image: 
    /* Top row gradients - very dark with subtle variations */
    radial-gradient(circle 400px at 15% 20%, 
      rgba(10,10,10,0.3) 0%, rgba(8,8,8,0.15) 50%, transparent 70%),
    radial-gradient(circle 350px at 45% 15%, 
      rgba(18,18,18,0.25) 0%, rgba(12,12,12,0.12) 50%, transparent 70%),
    radial-gradient(circle 450px at 75% 25%, 
      rgba(12,12,12,0.28) 0%, rgba(9,9,9,0.14) 50%, transparent 70%),
    /* Middle row gradients - darker with minimal contrast */
    radial-gradient(circle 380px at 25% 50%, 
      rgba(22,22,22,0.2) 0%, rgba(14,14,14,0.1) 50%, transparent 70%),
    radial-gradient(circle 420px at 65% 45%, 
      rgba(9,9,9,0.28) 0%, rgba(16,16,16,0.15) 50%, transparent 70%),
    radial-gradient(circle 320px at 80% 30%, 
      rgba(20,20,20,0.22) 0%, rgba(11,11,11,0.11) 50%, transparent 70%),
    /* Bottom row gradients - ultra dark variations */
    radial-gradient(circle 360px at 10% 80%, 
      rgba(13,13,13,0.25) 0%, rgba(8,8,8,0.12) 50%, transparent 70%),
    radial-gradient(circle 400px at 50% 75%, 
      rgba(24,24,24,0.26) 0%, rgba(12,12,12,0.14) 50%, transparent 70%),
    radial-gradient(circle 340px at 85% 85%, 
      rgba(15,15,15,0.23) 0%, rgba(18,18,18,0.13) 50%, transparent 70%),
    /* Additional accent gradients for subtle depth */
    radial-gradient(circle 280px at 35% 65%, 
      rgba(26,26,26,0.18) 0%, rgba(14,14,14,0.08) 50%, transparent 70%),
    radial-gradient(circle 460px at 90% 50%, 
      rgba(11,11,11,0.2) 0%, rgba(19,19,19,0.1) 50%, transparent 70%),
    /* Base gradient for overall ultra dark tone */
    linear-gradient(135deg, #030303, #080808, #0b0b0b, #070707, #050505) !important;
  background-attachment: fixed !important;
  background-repeat: no-repeat !important;
  background-size: 100% 100% !important;
  min-height: 100vh;
  position: relative;
  overflow-x: auto;
  font-family: 'Montserrat', sans-serif;
  width: 100%;
  margin: 0;
  padding: 0;
  /* Prevent pull-to-refresh behavior on mobile */
  overscroll-behavior-y: contain;
  /* Ensure smooth scrolling on all devices */
  scroll-behavior: smooth;
}



/* Mobile optimized static background */
@media (max-width: 768px) {
  body {
    /* Use scroll attachment on mobile to prevent white flashes */
    background-attachment: scroll !important;
    /* Multiple scattered mobile gradients with ultra dark shades */
    background-image: 
      /* Optimized mobile gradients - ultra dark base with minimal accents */
      radial-gradient(circle 300px at 15% 20%, 
        rgba(12,12,12,0.28) 0%, rgba(9,9,9,0.15) 50%, transparent 70%),
      radial-gradient(circle 280px at 45% 15%, 
        rgba(20,20,20,0.25) 0%, rgba(13,13,13,0.12) 50%, transparent 70%),
      radial-gradient(circle 320px at 75% 25%, 
        rgba(10,10,10,0.26) 0%, rgba(16,16,16,0.14) 50%, transparent 70%),
      radial-gradient(circle 290px at 65% 45%, 
        rgba(22,22,22,0.23) 0%, rgba(11,11,11,0.13) 50%, transparent 70%),
      radial-gradient(circle 310px at 50% 75%, 
        rgba(14,14,14,0.24) 0%, rgba(18,18,18,0.13) 50%, transparent 70%),
      radial-gradient(circle 260px at 85% 60%, 
        rgba(24,24,24,0.18) 0%, rgba(10,10,10,0.1) 50%, transparent 70%),
      /* Mobile base gradient - ultra dark */
      linear-gradient(135deg, #030303, #080808, #0b0b0b, #070707, #050505) !important;
    background-repeat: no-repeat !important;
    background-size: 100% 100% !important;
  }
}



/* Accessibility: Static gradients for consistency */
@media (prefers-reduced-motion: reduce) {
  body {
    /* Use static gradients with ultra dark shades */
    background-image: 
      radial-gradient(ellipse 800px 600px at 35% 40%, 
        rgba(10,10,10,0.25) 0%, 
        rgba(18,18,18,0.12) 35%, 
        transparent 70%),
      radial-gradient(ellipse 1000px 700px at 65% 60%, 
        rgba(8,8,8,0.3) 0%, 
        rgba(20,20,20,0.15) 30%, 
        transparent 65%),
      radial-gradient(ellipse 600px 400px at 80% 20%, 
        rgba(22,22,22,0.2) 0%, 
        rgba(12,12,12,0.1) 40%, 
        transparent 70%),
      linear-gradient(135deg, #030303, #080808, #0b0b0b, #070707, #050505) !important;
  }
}

/* Ensure modals maintain fixed positioning regardless of body transforms */
#gallery-modal,
#product-modal,
.modal-overlay,
.page-loading-overlay {
  position: fixed !important;
  z-index: 99999 !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

/* When modal is open, ensure body doesn't create stacking context issues */
body.modal-open {
  transform: none !important;
  will-change: auto !important;
  -webkit-backface-visibility: visible !important;
  backface-visibility: visible !important;
}

/* Subtle blur overlay for extra smooth transitions */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(ellipse 400px 300px at 20% 30%, 
      rgba(4,4,4,0.1) 0%, rgba(15,15,15,0.05) 40%, transparent 60%),
    radial-gradient(ellipse 500px 400px at 80% 70%, 
      rgba(18,18,18,0.06) 0%, rgba(6,6,6,0.03) 40%, transparent 50%),
    radial-gradient(ellipse 300px 200px at 60% 40%, 
      rgba(8,8,8,0.08) 0%, transparent 55%);
  backdrop-filter: blur(0.5px);
  -webkit-backdrop-filter: blur(0.5px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

/* Ensure content appears above the blur overlay */
header, main, footer, nav, section {
  position: relative;
  z-index: 1;
}

/* Simple white flash prevention - NO CONFLICTS */
@media (max-width: 768px) {
  * {
    -webkit-tap-highlight-color: transparent !important;
  }
  
  /* Lighter blur effect on mobile for performance */
  body::before {
    backdrop-filter: blur(0.3px);
    -webkit-backdrop-filter: blur(0.3px);
    opacity: 0.4;
  }
}

/* Performance optimization for low-powered devices */
@media (max-width: 480px), (pointer: coarse) {
  body::before {
    /* Disable blur on very low-powered devices */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    opacity: 0.2;
  }
}



/* Mobile-specific container centering fix - NO BACKGROUND OVERRIDE */
@media (max-width: 768px) {
  body {
    overflow-x: hidden !important;
    width: 100vw !important;
    /* Prevent unwanted touch behaviors that might interfere with scrolling */
    touch-action: pan-y pinch-zoom;
  }
  
  /* Ensure main containers are properly centered on mobile */
  .max-w-5xl, .xl\\:max-w-6xl, .\\32 xl\\:max-w-7xl {
    width: 100% !important;
    max-width: calc(100vw - 2rem) !important;
    margin: 0 auto !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  /* Force proper centering for main content container */
  main {
    width: 100% !important;
    margin: 0 auto !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  /* Add consistent mobile spacing between header and main content */
  main.mt-0,
  main[class*="mt-"] {
    margin-top: 1rem !important; /* 16px gap on mobile for all pages */
  }
  
  /* Ensure navigation menu wraps properly on smaller screens */
  .nav-menu {
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    margin: 0 auto;
  }

  /* Adjust nav-link padding to prevent overflow - will be overridden by specific navigation styles below */
  .nav-link {
    padding: 2px 12px;
    font-size: 0.85rem;
  }

  /* Ensure main content and sections are centered */
  main {
    max-width: calc(100vw - 1.5rem);
    margin: 0 auto;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  section {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  /* Prevent horizontal overflow */
  body {
    overflow-x: hidden;
  }
}

/* Seamless HTML background base */
html {
  background-color: #030303;
  background-image: linear-gradient(to bottom, #030303, #080808, #0b0b0b, #070707);
  background-attachment: scroll;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  min-height: 100%;
}

/* Desktop-only fixed attachment for smoother experience */
@media (min-width: 769px) and (pointer: fine) {
  html {
    background-attachment: fixed;
  }
}





/* Desktop-only fixed attachment for smoother experience */
@media (min-width: 769px) and (pointer: fine) {
  body {
    background-attachment: fixed !important;
  }
}

/* Ensure all main containers have black background */
main, .container-responsive, .max-w-5xl, .max-w-6xl {
  background-color: transparent !important;
}

/* Mobile Container Centering Improvements */
@media (max-width: 640px) {
  /* Ensure main container is properly centered on small mobile screens */
  main.max-w-5xl {
    max-width: calc(100vw - 1.5rem) !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }
  
  /* Fix hero section centering */
  .hero {
    text-align: center !important;
    width: 100% !important;
    margin: 0 auto !important;
  }
  
  /* Ensure all sections maintain center alignment */
  section {
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

@media (min-width: 641px) and (max-width: 768px) {
  /* Medium mobile screens */
  main.max-w-5xl {
    max-width: calc(100vw - 2rem) !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  /* Tablet screens */
  main.max-w-5xl {
    max-width: calc(100vw - 3rem) !important;
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }
}

/* Additional mobile viewport fixes */
@media (max-width: 768px) {
  /* Force proper container widths */
  .container, .max-w-4xl, .max-w-3xl, .max-w-2xl {
    max-width: calc(100vw - 2rem) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  /* Ensure process section containers are centered */
  .process-section .container {
    width: 100% !important;
    max-width: calc(100vw - 2rem) !important;
  }
  
  /* Ensure FAQ section is centered */
  .faq-section {
    width: 100% !important;
    max-width: calc(100vw - 2rem) !important;
  }
    /* Ensure hero extra container doesn't overflow but fits content */
  #hero-extra-container {
    max-width: fit-content !important;
    width: fit-content !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

@keyframes shardFloat1 {
  0%, 100% {
    transform: translate(0px, 0px) scale(1) rotate(0deg);
    opacity: 0.1;
  }
  25% {
    transform: translate(-18px, 12px) scale(1.03) rotate(2deg);
    opacity: 0.05;
  }
  50% {
    transform: translate(22px, -10px) scale(0.97) rotate(-1deg);
    opacity: 0.08;
  }
  75% {
    transform: translate(8px, 15px) scale(1.01) rotate(1deg);
    opacity: 0.03;
  }
}

@keyframes shardFloat2 {
  0%, 100% {
    transform: translate(0px, 0px) scale(1) rotate(0deg);
    opacity: 0.08;
  }
  20% {
    transform: translate(15px, -20px) scale(1.02) rotate(-2deg);
    opacity: 0.04;
  }
  45% {
    transform: translate(-25px, 8px) scale(0.98) rotate(3deg);
    opacity: 0.06;
  }
  70% {
    transform: translate(10px, 25px) scale(1.01) rotate(-1deg);
    opacity: 0.02;
  }
  90% {
    transform: translate(-8px, -12px) scale(0.99) rotate(2deg);
    opacity: 0.07;
  }
}

@keyframes shardFloat3 {
  0%, 100% {
    transform: translate(0px, 0px) scale(1) rotate(0deg);
    opacity: 0.06;
  }
  15% {
    transform: translate(-12px, -18px) scale(1.04) rotate(1deg);
    opacity: 0.09;
  }
  40% {
    transform: translate(28px, 5px) scale(0.96) rotate(-3deg);
    opacity: 0.03;
  }
  65% {
    transform: translate(-20px, 22px) scale(1.02) rotate(2deg);
    opacity: 0.08;
  }
  85% {
    transform: translate(12px, -15px) scale(0.98) rotate(-1deg);
    opacity: 0.05;
  }
}

/* Ensure content is above background effects */
header, main, .glass, .glass-card, .glass-dark {
  position: relative;
  z-index: 1;
}

/* Base Glassmorphism Utility Classes */
.glass {
  background: rgba(255, 255, 255, 0.029);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 16px;
}

.glass-dark {
  background: rgba(0, 0, 0, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 16px;
}

.glass-card {
  background: transparent; /* REMOVED: Dark background */
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 24px;
  /* REMOVED: Dark box-shadow */
}

/* Mobile-specific adjustments for consistent glassmorphism across devices */
@media (max-width: 768px) {
  .glass {
    background: rgba(255, 255, 255, 0.04); /* More opaque for better visibility */
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
  }
  
  .glass-dark {
    background: rgba(0, 0, 0, 0.06); /* More opaque for mobile */
    backdrop-filter: blur(18px) saturate(200%);
    -webkit-backdrop-filter: blur(18px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.06);
  }
  
  .glass-card {
    background: rgba(0, 0, 0, 0.4); /* Slightly darker than main background */
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
}

@media (max-width: 480px) {
  .glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(18px) saturate(200%);
    -webkit-backdrop-filter: blur(18px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .glass-dark {
    background: rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(22px) saturate(220%);
    -webkit-backdrop-filter: blur(22px) saturate(220%);
    border: 1px solid rgba(255, 255, 255, 0.08);
  }
  
  .glass-card {
    background: rgba(0, 0, 0, 0.75); /* Keep dark for consistency */
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.12);
  }
}

/* Enhanced Modal Glass Card Readability - Universal Override */
[id*="modal"] .glass-card,
.modal-overlay .glass-card,
.fixed.inset-0 .glass-card {
  background: rgba(0, 0, 0, 0.65) !important;
  backdrop-filter: blur(25px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(25px) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6) !important;
}

/* Specific Admin Modal Overrides - High Specificity */
#gallery-content-modal .glass-card,
#shop-content-modal .glass-card,
#home-content-modal .glass-card,
#contact-content-modal .glass-card,
#work-process-modal .glass-card,
#faq-modal .glass-card,
#order-details-modal .glass-card,
#delete-confirmation-modal .glass-card,
#input-modal .glass-card,
#carousel-image-modal .glass-card,
#shop-item-modal .glass-card,
#gallery-item-modal .glass-card,
#global-content-modal .glass-card,
#message-modal .glass-card {
  background: rgba(0, 0, 0, 0.65) !important;
  backdrop-filter: blur(25px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(25px) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6) !important;
}

/* Ensure text remains readable in enhanced glass cards */
[id*="modal"] .glass-card *,
.modal-overlay .glass-card *,
.fixed.inset-0 .glass-card * {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Custom Buttons - Inspired by Beauxif */
.btn-primary {
  background: linear-gradient(135deg, rgba(255,255,255,0.10), rgba(255,255,255,0.04));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(255,255,255,0.14);
  color: white;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 50px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.875rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
}

.btn-primary:hover {
  background: linear-gradient(135deg, rgba(255,255,255,0.18), rgba(255,255,255,0.08));
  border-color: rgba(255,255,255,0.22);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  padding: 10px 24px;
  border-radius: 25px;
  transition: all 0.3s ease;
  font-size: 0.875rem;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: white;
}

/* Mobile adjustments for buttons */
@media (max-width: 768px) {
  .btn-primary {
    background: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.06)); /* More opaque */
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    border: 1.5px solid rgba(255,255,255,0.18);
  }
  
  .btn-secondary {
    background: rgba(255, 255, 255, 0.05); /* More visible on mobile */
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
}

@media (max-width: 480px) {
  .btn-primary {
    background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0.08));
    backdrop-filter: blur(18px) saturate(200%);
    -webkit-backdrop-filter: blur(18px) saturate(200%);
    border: 1.5px solid rgba(255,255,255,0.2);
  }
  
  .btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(15px) saturate(200%);
    -webkit-backdrop-filter: blur(15px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.12);
  }
}

/* Updated button styles for shop page */
.filter-btn.active {
  background: linear-gradient(45deg, #ffcc00, #ff6600);
  color: white;
  font-weight: bold;
  box-shadow: 0 0 3px rgba(255, 204, 0, 0.4), 0 0 6px rgba(255, 102, 0, 0.3);
  border-radius: 9999px; /* Fully rounded */
  transition: background 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.filter-btn {
  background: #333;
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 9999px; /* Fully rounded */
  cursor: pointer;
  transition: background 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.filter-btn:hover {
  background: linear-gradient(45deg, #ffcc00, #ff6600);
  color: white;
  box-shadow: 0 0 3px rgba(255, 204, 0, 0.4), 0 0 6px rgba(255, 102, 0, 0.3);
}

/* Social Media Icons - Round Filled Minimalist Style */
.social-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.social-icon:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.social-icon svg {
  width: 18px;
  height: 18px;
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
  z-index: 1;
  position: relative;
}

.social-icon:hover svg {
  color: white;
}

/* Enhanced mobile responsive social icons */
@media (max-width: 768px) {
  .social-icon {
    width: 48px;
    height: 48px;
  }
  
  .social-icon img,
  .social-icon svg {
    width: 22px;
    height: 22px;
  }
}

@media (max-width: 480px) {
  .social-icon {
    width: 52px;
    height: 52px;
  }
  
  .social-icon img,
  .social-icon svg {
    width: 26px;
    height: 26px;
  }
}

/* New Process Section Styles */

/* Navigation Styles */
.nav-menu {
  position: relative;
  gap: 1rem; /* Default gap for desktop */
  font-weight: 500;
  font-size: 0.95rem;
  padding: 2px 0; /* Small padding to accommodate the indicator */
  background: transparent;
  border-radius: 0;
  min-height: 48px; /* Ensure adequate height for larger active buttons */
  align-items: center;
}

/* Smooth sliding indicator */
.nav-menu::before {
  content: '';
  position: absolute;
  top: 50%;
  left: var(--indicator-left, 0);
  height: calc(100% - 8px);
  width: var(--indicator-width, 0);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.08));
  border-radius: 22px;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: var(--transition-duration, all 0.4s cubic-bezier(0.4, 0, 0.2, 1));
  z-index: 0;
  opacity: 0;
  transform: translateY(-50%);
  box-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.15),
    0 1px 3px rgba(0, 0, 0, 0.1);
}

.nav-menu.has-active::before {
  opacity: 1;
}

.nav-link {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 20px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  background: transparent;
  min-width: fit-content;
  text-align: center;
  cursor: pointer;
  white-space: nowrap;
}

.nav-link:hover {
  color: rgba(255, 255, 255, 0.95);
  background: transparent;
  transform: translateY(-1px);
  font-weight: 600;
}

.nav-link.active {
  color: white;
  background: transparent;
  font-weight: 600;
  padding: 10px 20px;
}

/* Mobile adjustments for navigation */
@media (max-width: 768px) {
  .nav-menu {
    gap: 0.4rem;
    padding: 0;
    flex-wrap: nowrap; /* Force single line */
    overflow-x: auto; /* Allow horizontal scroll if needed */
    scrollbar-width: none; /* Hide scrollbar on Firefox */
    -ms-overflow-style: none; /* Hide scrollbar on IE */
  }
  
  .nav-menu::-webkit-scrollbar {
    display: none; /* Hide scrollbar on WebKit browsers */
  }
  
  .nav-menu::before {
    top: 0;
    left: var(--indicator-left, 0);
    height: 100%;
    width: var(--indicator-width, 0);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.08));
    backdrop-filter: blur(15px) saturate(160%);
    -webkit-backdrop-filter: blur(15px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    /* Hardware acceleration for smooth mobile performance */
    will-change: transform, width, opacity;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    transition: var(--transition-duration, all 0.4s cubic-bezier(0.4, 0, 0.2, 1));
    box-shadow: 
      0 2px 6px rgba(0, 0, 0, 0.12),
      0 1px 2px rgba(0, 0, 0, 0.08);
  }
  
  .nav-link {
    padding: 2px 12px !important;
    font-size: 0.85rem;
    white-space: nowrap; /* Prevent text wrapping */
    flex-shrink: 0; /* Prevent shrinking */
  }
  
  .nav-link:hover {
    color: rgba(255, 255, 255, 0.95);
    background: transparent;
    transform: translateY(-0.5px);
  }
  
  .nav-link.active {
    color: white;
    background: transparent;
    font-weight: 600;
    padding: 2px 12px !important;
  }
}

@media (max-width: 480px) {
  .nav-menu {
    gap: 0.2rem;
    padding: 0;
  }
  
  .nav-menu::before {
    left: var(--indicator-left, 0);
    width: var(--indicator-width, 0);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.08));
    backdrop-filter: blur(12px) saturate(150%);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    transition: var(--transition-duration, all 0.4s cubic-bezier(0.4, 0, 0.2, 1));
    box-shadow: 
      0 1px 4px rgba(0, 0, 0, 0.1),
      0 1px 2px rgba(0, 0, 0, 0.06);
  }
  
  .nav-link {
    padding: 1px 8px !important;
    font-size: 0.75rem;
    min-width: fit-content;
  }
  
  .nav-link:hover {
    transform: none; /* Disable hover transform on small screens */
  }
  
  .nav-link.active {
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
    padding: 1px 10px !important;
  }
}

/* Extra small mobile screens */
@media (max-width: 360px) {
  .nav-menu {
    gap: 0.15rem;
  }
  
  .nav-menu::before {
    border-radius: 14px;
  }
  
  .nav-link {
    padding: 1px 6px !important;
    font-size: 0.7rem;
    letter-spacing: 0px;
  }
  
  .nav-link.active {
    padding: 1px 8px !important;
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.3);
  }
}

/* Header Glass Effect - Consistent across desktop and mobile */
.header-glass {
  background: rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(15px) saturate(180%);
  -webkit-backdrop-filter: blur(15px) saturate(180%);
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 10;
}

/* Mobile-specific header glass adjustments for consistent appearance */
@media (max-width: 768px) {
  .header-glass {
    background: rgba(0, 0, 0, 0.08); /* Slightly more opaque on mobile for better contrast */
    backdrop-filter: blur(20px) saturate(200%); /* Increased blur and saturation for mobile */
    -webkit-backdrop-filter: blur(20px) saturate(200%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12); /* More visible border on mobile */
  }
}

@media (max-width: 480px) {
  .header-glass {
    background: rgba(0, 0, 0, 0.1); /* Even more opaque on small screens */
    backdrop-filter: blur(25px) saturate(220%);
    -webkit-backdrop-filter: blur(25px) saturate(220%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }
}

/* Header Glass Effect - Background removed for transparency */

/* Card Styles */
.card-glass {
  background: rgba(255, 255, 255, 0.005);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 20px;
  padding: 24px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-glass:hover {
  background: rgba(255, 255, 255, 0.015);
  border-color: rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
}

/* Form Styles */
.form-glass {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 32px;
}

.input-glass {
  background: rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 12px;
  padding: 16px 20px;
  color: white;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  min-height: 56px;
  max-width: 600px !important;
  line-height: 1.5;
  resize: vertical;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.input-glass::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.input-glass:focus {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15) !important;
}

/* Specific styles for textarea elements */
textarea.input-glass {
  min-height: 80px;
  line-height: 1.6;
}

/* Auto-resize textarea behavior - override resize-none when auto-resize is active */
textarea.input-glass.auto-resize {
  resize: none !important;
  overflow: hidden;
}

/* For textareas with both resize-none and auto-resize, prioritize auto-resize */
textarea.input-glass.resize-none.auto-resize {
  resize: none !important;
}

/* Enhanced textarea styles for specific detailed input fields */
#minorRevisionsDetails,
#majorRevisions,
#additionalGraphicsDetails,
#seriesDetails {
  min-height: 120px !important;
  max-height: 300px !important;
  overflow-y: auto !important;
  resize: vertical !important;
  line-height: 1.6 !important;
  padding: 20px !important;
  font-size: 0.95rem !important;
}

/* Glassmorphism scrollbar styles for enhanced textareas */
#minorRevisionsDetails::-webkit-scrollbar,
#majorRevisions::-webkit-scrollbar,
#additionalGraphicsDetails::-webkit-scrollbar,
#seriesDetails::-webkit-scrollbar {
  width: 8px;
}

#minorRevisionsDetails::-webkit-scrollbar-track,
#majorRevisions::-webkit-scrollbar-track,
#additionalGraphicsDetails::-webkit-scrollbar-track,
#seriesDetails::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 6px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

#minorRevisionsDetails::-webkit-scrollbar-thumb,
#majorRevisions::-webkit-scrollbar-thumb,
#additionalGraphicsDetails::-webkit-scrollbar-thumb,
#seriesDetails::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

#minorRevisionsDetails::-webkit-scrollbar-thumb:hover,
#majorRevisions::-webkit-scrollbar-thumb:hover,
#additionalGraphicsDetails::-webkit-scrollbar-thumb:hover,
#seriesDetails::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Focus state for enhanced textareas */
#minorRevisionsDetails:focus,
#majorRevisions:focus,
#additionalGraphicsDetails:focus,
#seriesDetails:focus {
  background: rgba(255, 255, 255, 0.03) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1), 0 4px 20px rgba(255, 255, 255, 0.05) !important;
}

/* Firefox scrollbar support for enhanced textareas */
#minorRevisionsDetails,
#majorRevisions,
#additionalGraphicsDetails,
#seriesDetails {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) rgba(255, 255, 255, 0.02);
}

/* Mobile responsiveness for enhanced textareas */
@media (max-width: 768px) {
  #minorRevisionsDetails,
  #majorRevisions,
  #additionalGraphicsDetails,
  #seriesDetails {
    min-height: 100px !important;
    max-height: 250px !important;
    padding: 16px !important;
    font-size: 16px !important; /* Prevent iOS zoom */
    line-height: 1.5 !important;
  }
  
  /* Mobile scrollbar adjustments */
  #minorRevisionsDetails::-webkit-scrollbar,
  #majorRevisions::-webkit-scrollbar,
  #additionalGraphicsDetails::-webkit-scrollbar,
  #seriesDetails::-webkit-scrollbar {
    width: 6px;
  }
  
  /* Ensure touch scrolling works properly on mobile */
  #minorRevisionsDetails,
  #majorRevisions,
  #additionalGraphicsDetails,
  #seriesDetails {
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 480px) {
  #minorRevisionsDetails,
  #majorRevisions,
  #additionalGraphicsDetails,
  #seriesDetails {
    min-height: 90px !important;
    max-height: 200px !important;
    padding: 14px !important;
    font-size: 16px !important; /* Prevent iOS zoom */
    line-height: 1.4 !important;
  }
  
  /* Smaller scrollbar for very small screens */
  #minorRevisionsDetails::-webkit-scrollbar,
  #majorRevisions::-webkit-scrollbar,
  #additionalGraphicsDetails::-webkit-scrollbar,
  #seriesDetails::-webkit-scrollbar {
    width: 4px;
  }
}

/* Mobile-first improvements for all input-glass elements */
@media (max-width: 768px) {
  .input-glass {
    min-height: 48px !important; /* Minimum touch target size */
    padding: 14px 16px !important;
    font-size: 16px !important; /* Prevent zoom on iOS */
  }
  
  /* Prevent iOS zoom on focus for textareas */
  textarea.input-glass {
    font-size: 16px !important;
  }
}

@media (max-width: 480px) {
  .input-glass {
    min-height: 44px !important;
    padding: 12px 14px !important;
  }
  
  /* Ensure form inputs don't get cut off on small screens */
  .input-glass {
    max-width: calc(100vw - 3rem) !important;
  }
}

/* Enhanced anti-autofill styles to prevent browser interference */
.input-glass:-webkit-autofill,
.input-glass:-webkit-autofill:hover,
.input-glass:-webkit-autofill:focus,
.input-glass:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px rgba(255, 255, 255, 0.015) inset !important;
  box-shadow: 0 0 0 1000px rgba(255, 255, 255, 0.015) inset !important;
  -webkit-text-fill-color: white !important;
  background-color: rgba(255, 255, 255, 0.015) !important;
  background: rgba(255, 255, 255, 0.015) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  color: white !important;
  transition: background-color 9999s ease-in-out 0s !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 12px !important;
}

textarea.input-glass:-webkit-autofill,
textarea.input-glass:-webkit-autofill:hover,
textarea.input-glass:-webkit-autofill:focus,
textarea.input-glass:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px rgba(255, 255, 255, 0.015) inset !important;
  box-shadow: 0 0 0 1000px rgba(255, 255, 255, 0.015) inset !important;
  -webkit-text-fill-color: white !important;
  background-color: rgba(255, 255, 255, 0.015) !important;
  background: rgba(255, 255, 255, 0.015) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  color: white !important;
  transition: background-color 9999s ease-in-out 0s !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 12px !important;
}

/* Force white text in all input states */
.input-glass,
.input-glass:focus,
.input-glass:active,
.input-glass:hover {
  color: white !important;
  -webkit-text-fill-color: white !important;
}

/* VALIDATION BORDER OVERRIDES - Must override glassmorphism borders */
input.border-red-500.input-glass,
textarea.border-red-500.input-glass,
.input-glass.border-red-500,
input.border-red-500.input-glass:-webkit-autofill,
input.border-red-500.input-glass:-webkit-autofill:hover,
input.border-red-500.input-glass:-webkit-autofill:focus,
input.border-red-500.input-glass:-webkit-autofill:active,
textarea.border-red-500.input-glass:-webkit-autofill,
textarea.border-red-500.input-glass:-webkit-autofill:hover,
textarea.border-red-500.input-glass:-webkit-autofill:focus,
textarea.border-red-500.input-glass:-webkit-autofill:active {
  border: 2px solid #EF4444 !important;
  border-color: #EF4444 !important;
  box-shadow: 0 0 0 1px #EF4444, 0 2px 12px rgba(239, 68, 68, 0.15) !important;
}

/* Validation border on focus state */
input.border-red-500.input-glass:focus,
textarea.border-red-500.input-glass:focus,
.input-glass.border-red-500:focus {
  border: 2px solid #EF4444 !important;
  border-color: #EF4444 !important;
  box-shadow: 0 0 0 1px #EF4444, 0 0 0 3px rgba(239, 68, 68, 0.1), 0 2px 12px rgba(239, 68, 68, 0.15) !important;
}

/* Compact input styles for gallery tab modals */
.input-glass-compact {
  background: rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 8px;
  padding: 8px 12px;
  color: white;
  transition: all 0.3s ease;
  font-size: 0.875rem;
  min-height: 36px;
  line-height: 1.4;
}

.input-glass-compact::placeholder {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
}

.input-glass-compact:focus {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.15) !important;
}

/* Compact textarea styles for gallery tab modals */
textarea.input-glass-compact {
  min-height: 64px;
  line-height: 1.5;
  resize: vertical;
}

/* Compact select styles for gallery tab modals */
select.input-glass-compact {
  padding-right: 32px;
  cursor: pointer;
}

/* Enhanced input styles for admin */
.input-glass-large {
  background: rgba(255, 255, 255, 0.015);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px 20px;
  color: white;
  transition: all 0.3s ease;
  font-size: 1rem;
  min-height: 56px;
  width: 100%;
  max-width: 600px !important;
}

.input-glass-large::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.input-glass-large:focus {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

/* Wider FAQ answer textarea for admin panel */
#faq-list-admin textarea.input-glass.input-glass-large {
  min-width: 320px;
  width: 100%;
  max-width: 900px;
  font-size: 1rem;
  resize: vertical;
}

/* Enhanced text area styles for admin forms */
.admin-textarea {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  min-height: 200px;
  color: white;
  padding: 16px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  line-height: 1.6;
  resize: vertical;
  transition: all 0.3s ease;
}

.admin-textarea:focus {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.admin-textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
}

/* Enhanced Admin Tab Styles */
.admin-tab {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 16px;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
  cursor: pointer;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-tab:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  border-color: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
}

.admin-tab-active {
  background: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.06));
  border-color: rgba(255,255,255,0.2);
  color: rgba(255,255,255,1);
  box-shadow: 0 0 0 2px rgba(255,255,255,0.1);
}

.admin-tab-active:hover {
  background: linear-gradient(135deg, rgba(255,255,255,0.18), rgba(255,255,255,0.08));
  border-color: rgba(255,255,255,0.25);
  transform: translateY(-2px);
}

.admin-tab-inactive {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6);
}

.admin-tab-inactive:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.8);
  transform: translateY(-1px);
}

/* Compact admin tab styles - maximizing row space */
.admin-tab {
  padding: 8px 12px;
  min-height: 60px;
  width: 100%;
  border-radius: 8px;
  font-size: 0.85rem;
  gap: 0.25rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  white-space: normal;
  flex: 1;
}
.admin-tab svg {
  width: 18px !important;
  height: 18px !important;
}
.admin-tab span {
  font-size: 0.75rem !important;
  text-align: center;
  word-break: break-word;
  line-height: 1.1;
}

@media (max-width: 768px) {
  .admin-tab {
    padding: 6px 8px;
    min-height: 50px;
    font-size: 0.75rem;
    border-radius: 6px;
  }
  .admin-tab svg {
    width: 16px !important;
    height: 16px !important;
  }
  .admin-tab span {
    font-size: 0.7rem !important;
  }
}

@media (max-width: 640px) {
  .admin-tab {
    padding: 4px 6px;
    min-height: 45px;
    font-size: 0.7rem;
    border-radius: 5px;
  }
  .admin-tab svg {
    width: 14px !important;
    height: 14px !important;
  }
  .admin-tab span {
    font-size: 0.65rem !important;
  }
}

/* Process Section Responsive Design */

/* Old redundant media queries removed - replaced with more specific breakpoints above */

/* Small tablet and mobile adjustments */
@media (max-width: 768px) {
  .process-section {
    padding: 2rem 0;
  }
  
  .process-steps {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 0 0.75rem;
  }
  
  .process-card {
    aspect-ratio: 2/1.2;
    min-height: 160px;
    padding: 1rem;
    text-align: center;
  }
  
  .step-content {
    align-items: center;
    text-align: center;
  }
  
  .step-title-wrapper {
    justify-content: center;
    gap: 0.5rem;
  }
  
  .step-title {
    text-align: center;
    font-size: 1rem;
  }
  
  .step-badge, .step-number-badge, .step-icon-container {
    width: 3rem;
    height: 3rem;
  }
  
  .step-badge, .step-number-badge {
    font-size: 0.875rem;
  }
  
  .step-icon svg {
    width: 1.5rem;
    height: 1.5rem;
  }
}

/* Removed duplicate 480px media query - using the one defined above */

/* Medium desktop adjustments */
@media (min-width: 1025px) and (max-width: 1279px) {
  .process-steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    max-width: 70rem;
  }
  
  .process-card {
    padding: 1.25rem;
    min-height: 250px;
    height: auto;
    aspect-ratio: unset;
    overflow: visible;
  }
  
  .step-title {
    font-size: 1.05rem;
    margin-bottom: 0.75rem;
  }
  
  .step-description {
    font-size: 0.88rem;
    line-height: 1.6;
    overflow: visible;
    text-overflow: unset;
    white-space: normal;
  }
}

/* Large desktop adjustments */
@media (min-width: 1280px) {
  .process-steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 80rem;
  }
  
  .process-card {
    padding: 1.5rem;
    min-height: 280px;
    height: auto;
    aspect-ratio: unset;
    overflow: visible;
  }
  
  .step-badge {
    width: 3.25rem;
    height: 3.25rem;
    font-size: 1.1rem;
  }
  
  .process-icon {
    width: 3.25rem;
    height: 3.25rem;
  }
  
  .process-icon svg {
    width: 1.625rem;
    height: 1.625rem;
  }
  
  .process-content h3 {
    font-size: 1.1rem;
  }
  
  .process-content p {
    font-size: 0.85rem;
  }
  
  .step-description {
    overflow: visible;
    text-overflow: unset;
    white-space: normal;
    word-wrap: break-word;
  }
}

@media (min-width: 1536px) {
  .process-steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 90rem;
  }
  
  .process-card {
    padding: 2rem;
    min-height: 320px;
    height: auto;
    aspect-ratio: unset;
    overflow: visible;
  }
  
  .step-badge {
    width: 3.5rem;
    height: 3.5rem;
    font-size: 1.2rem;
  }
  
  .process-content h3 {
    font-size: 1.2rem;
  }
  
  .process-content p {
    font-size: 0.9rem;
  }
  
  .step-description {
    overflow: visible;
    text-overflow: unset;
    white-space: normal;
    word-wrap: break-word;
  }
}

/* FAQ Section Styles - Compact Design */
.faq-section {
  max-width: 56rem;
  margin: 0 auto;
}

.faq-item {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.faq-item:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
  /* REMOVED: Dark box-shadow effect */
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1rem 1.5rem;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
  line-height: 1.4;
  min-height: 52px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.faq-question:hover {
  color: rgba(255, 255, 255, 1);
}

.faq-question:focus {
  outline: none;
  color: rgba(255, 255, 255, 1);
}

.faq-toggle {
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 1rem;
  font-size: 1.1rem;
  font-weight: bold;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
  color: rgba(255, 255, 255, 1);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(255, 255, 255, 0.02);
  padding: 0 1.5rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  line-height: 1.6;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  text-align: left; /* Left align for better readability */
}

.faq-item.active .faq-answer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1rem 1.5rem 1.25rem 1.5rem; /* Reduced padding for more compact design */
  overflow: visible !important; /* Ensure text is never cut off */
  max-height: none !important; /* Override any conflicting max-height when active */
}

.faq-answer p {
  margin-bottom: 0.75rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  text-align: left; /* Left align for better readability on mobile */
  max-width: 100%; /* Ensure content doesn't overflow */
  padding-left: 0.5rem !important; /* Reduced side padding for more compact design */
  padding-right: 0.5rem !important;
  padding-top: 0.2rem !important; /* Reduced top padding for more compact design */
  padding-bottom: 0.2rem !important; /* Reduced bottom padding for more compact design */
  box-sizing: border-box !important;
}

@media (max-width: 768px) {
  .faq-answer p {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
  }
}

@media (max-width: 480px) {
  .faq-answer p {
    padding-left: 0.3rem !important;
    padding-right: 0.3rem !important;
  }
}  .faq-answer p:last-child {
    margin-bottom: 1.25rem !important; /* Reduced bottom spacing for more compact design */
  }

/* Responsive FAQ Styles - More Compact for Mobile */
@media (max-width: 768px) {
  .faq-section {
    max-width: 100%;
    padding: 0 0.75rem;
    margin: 1rem auto;
  }
  
  .faq-section h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
  }
  
  .faq-item {
    margin-bottom: 0.5rem;
    border-radius: 8px;
  }
  
  .faq-question {
    padding: 0.65rem 0.875rem;
    font-size: 0.8rem;
    min-height: 36px;
    line-height: 1.3;
  }
  
  .faq-toggle {
    font-size: 0.85rem;
    width: 14px;
    height: 14px;
    margin-left: 0.5rem;
  }
  .faq-answer {
    font-size: 0.8rem;
    padding: 0 0.875rem;
    line-height: 1.5;
    text-align: justify; /* Center content in dropdown */
  }  .faq-item.active .faq-answer {
    padding: 0.75rem 0.875rem 1rem 0.875rem; /* Reduced bottom padding for more compact mobile design */
    overflow: visible !important; /* Ensure text is never cut off on mobile */
  }
  
  .faq-answer p {
    margin-bottom: 0.5rem;
    text-align: justify; /* Justify text content */
    padding: 0 0.25rem; /* Add side padding to prevent text clipping */
    max-width: 100%;
    box-sizing: border-box;
  }
  .faq-answer p:last-child {
    margin-bottom: 0.5rem; /* Reduced bottom spacing for more compact mobile design */
  }
}

/* Extra compact for smaller mobile screens */
@media (max-width: 480px) {
  .faq-section {
    padding: 0 0.5rem;
    margin: 0.5rem auto 1rem auto;
  }
  
  .faq-section h2 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
  }
  
  .faq-item {
    margin-bottom: 0.25rem;
    border-radius: 8px;
  }
  
  .faq-question {
    padding: 0.4rem 0.6rem;
    font-size: 0.7rem;
    min-height: 28px;
    line-height: 1.2;
  }
  
  .faq-toggle {
    font-size: 0.75rem;
    width: 10px;
    height: 10px;
    margin-left: 0.4rem;
  }
  .faq-answer {
    font-size: 0.75rem;
    padding: 0 0.6rem;
    line-height: 1.4;
    text-align: justify; /* Center content in dropdown */
  }  .faq-item.active .faq-answer {
    padding: 0.5rem 0.6rem 0.75rem 0.6rem; /* Reduced bottom padding for more compact small mobile design */
   
  }
  
  .faq-answer p {
    text-align: justify; /* Justify text content */
    padding: 0 0.25rem; /* Prevent text clipping */
    margin-bottom: 0.5rem;
    max-width: 100%;
    box-sizing: border-box;
  }    .faq-answer p:last-child {
    margin-bottom: 0.25rem; /* Reduced bottom spacing for more compact small mobile design */
  }
}

@media (max-width: 576px) {
  .faq-question {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    min-height: 44px;
  }
  
  .faq-toggle {
    font-size: 0.9rem;
    width: 16px;
    height: 16px;
    margin-left: 0.75rem;
  }
    .faq-answer {
    font-size: 0.85rem;
    padding: 0 1rem;
    line-height: 1.5;
    text-align: justify; /* Center content in dropdown */
  }  .faq-item.active .faq-answer {
    padding: 0.8rem 1rem 1rem 1rem; /* Reduced bottom padding for more compact medium mobile design */
    overflow: visible !important; /* Ensure text is never cut off on medium mobile */
  }
  
  .faq-answer p {
    text-align: justify; /* Justify text content */
    padding: 0 0.25rem; /* Prevent text clipping */
    margin-bottom: 0.5rem;
    max-width: 100%;
    box-sizing: border-box;
  }
    .faq-answer p:last-child {
    margin-bottom: 0.75rem; /* Enhanced bottom spacing for medium mobile centering */
  }
}

/* Make hero subtitle smaller on mobile */
@media (max-width: 640px) {
  .hero #hero-subtitle {
    font-size: 0.75rem !important; /* Made smaller from 0.85rem */
    line-height: 1.4 !important; /* Slightly increased line height for better readability */
    margin-bottom: 2.0rem !important; /* Increased space below subtitle on mobile */
    padding-left: 0.25rem !important;
    padding-right: 0.25rem !important;
  }
}

/* Enhanced Glassmorphism Carousel Controls */
.carousel-btn {
  background: rgba(255, 255, 255, 0.05) !important;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  color: rgba(255, 255, 255, 0.9) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), 
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  cursor: pointer;
  overflow: hidden;
}

.carousel-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 50%;
  pointer-events: none;
}

.carousel-btn:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  transform: scale(1.05);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 
              inset 0 1px 0 rgba(255, 255, 255, 0.2),
              0 0 20px rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 1) !important;
}

.carousel-btn:hover::before {
  opacity: 1;
}

.carousel-btn:active {
  transform: scale(0.95);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2), 
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.carousel-btn svg {
  color: currentColor !important;
  stroke: currentColor !important;
  fill: none !important;
  width: 20px;
  height: 20px;
  stroke-width: 2.5;
  transition: transform 0.2s ease;
  z-index: 1;
  position: relative;
}

.carousel-btn:hover svg {
  transform: scale(1.1);
}

/* Carousel navigation wrapper for glassmorphism design */
.carousel-nav,
.carousel-nav-mobile {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 12px;
  position: relative;
  z-index: 20;
}

/* Enhanced carousel indicators with glassmorphism */
#carousel-indicators {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  margin-bottom: 0;
  flex-wrap: nowrap; /* Force single line on mobile */
  padding: 0 16px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

#carousel-indicators::-webkit-scrollbar {
  display: none;
}

#carousel-indicators button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

#carousel-indicators button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.3s ease;
}

#carousel-indicators button.bg-white,
#carousel-indicators button:not(.bg-transparent) {
  background: rgba(255, 255, 255, 0.2) !important;
  border-color: rgba(255, 255, 255, 0.6) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2),
              inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

#carousel-indicators button.bg-white::before,
#carousel-indicators button:not(.bg-transparent)::before {
  width: 6px;
  height: 6px;
}

#carousel-indicators button:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
  transform: scale(1.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Comprehensive carousel responsive adjustments for all device sizes */
/* Large tablets (901px - 1024px) */
@media (max-width: 1024px) and (min-width: 901px) {
  .feature-carousel-section {
    padding: 28px 20px;
    border-radius: 24px;
  }
  
  .carousel-btn {
    width: 44px;
    height: 44px;
  }
  
  .carousel-btn svg {
    width: 18px;
    height: 18px;
  }
  
  #carousel-indicators {
    gap: 4px;
    margin-top: 14px;
    padding: 0 16px;
  }
  
  #carousel-indicators button {
    width: 9px;
    height: 9px;
    border-width: 0.75px;
  }
}

/* Medium tablets (769px - 900px) */
@media (max-width: 900px) and (min-width: 769px) {
  .feature-carousel-section {
    padding: 26px 18px;
    border-radius: 22px;
  }
  
  .carousel-btn {
    width: 42px;
    height: 42px;
  }
  
  .carousel-btn svg {
    width: 17px;
    height: 17px;
  }
  
  #carousel-indicators {
    gap: 3.5px;
    margin-top: 13px;
    padding: 0 14px;
  }
  
  #carousel-indicators button {
    width: 8.5px;
    height: 8.5px;
    border-width: 0.6px;
  }
}

/* Small tablets (641px - 768px) */
@media (max-width: 768px) and (min-width: 641px) {
  .feature-carousel-section {
    padding: 25px 17px;
    border-radius: 21px;
  }
  
  .carousel-btn {
    width: 41px;
    height: 41px;
  }
  
  .carousel-btn svg {
    width: 16.5px;
    height: 16.5px;
  }
  
  #carousel-indicators {
    gap: 3.25px;
    margin-top: 12.5px;
    padding: 0 13px;
  }
  
  #carousel-indicators button {
    width: 8.25px;
    height: 8.25px;
    border-width: 0.55px;
  }
}

/* Mobile devices (up to 640px) */
@media (max-width: 640px) {
  .feature-carousel-section {
    padding: 24px 16px;
    border-radius: 20px;
  }
  
  .carousel-btn {
    width: 40px;
    height: 40px;
  }
  
  .carousel-btn svg {
    width: 16px;
    height: 16px;
  }
  
  /* Compact indicators for mobile with dynamic sizing */
  #carousel-indicators {
    gap: 3px;
    margin-top: 12px;
    padding: 0 12px;
  }
  
  #carousel-indicators button {
    width: 8px;
    height: 8px;
    border-width: 0.5px;
  }
  
  #carousel-indicators button::before {
    width: 4px;
    height: 4px;
  }
  
  #carousel-indicators button.bg-white::before,
  #carousel-indicators button:not(.bg-transparent)::before {
    width: 4px;
    height: 4px;
  }
  
  /* Dynamic sizing classes */
  #carousel-indicators.size-small button {
    width: 6px;
    height: 6px;
  }
  
  #carousel-indicators.size-small button::before,
  #carousel-indicators.size-small button.bg-white::before,
  #carousel-indicators.size-small button:not(.bg-transparent)::before {
    width: 3px;
    height: 3px;
  }
  
  #carousel-indicators.size-tiny button {
    width: 4px;
    height: 4px;
  }
  
  #carousel-indicators.size-tiny button::before,
  #carousel-indicators.size-tiny button.bg-white::before,
  #carousel-indicators.size-tiny button:not(.bg-transparent)::before {
    width: 2px;
    height: 2px;
  }
  
  #carousel-indicators.size-micro button {
    width: 3px;
    height: 3px;
  }
  
  #carousel-indicators.size-micro button::before,
  #carousel-indicators.size-micro button.bg-white::before,
  #carousel-indicators.size-micro button:not(.bg-transparent)::before {
    width: 1px;
    height: 1px;
  }
}

/* Extra small screens */
@media (max-width: 400px) {
  .carousel-btn {
    width: 36px;
    height: 36px;
  }
  
  .carousel-btn svg {
    width: 14px;
    height: 14px;
  }
  
  #carousel-indicators {
    gap: 2px;
    padding: 0 8px;
  }
  
  #carousel-indicators button {
    width: 6px;
    height: 6px;
  }
  
  #carousel-indicators button::before {
    width: 3px;
    height: 3px;
  }
  
  #carousel-indicators button.bg-white::before,
  #carousel-indicators button:not(.bg-transparent)::before {
    width: 3px;
    height: 3px;
  }
  
  /* Dynamic sizing for very small screens */
  #carousel-indicators.size-small button {
    width: 5px;
    height: 5px;
  }
  
  #carousel-indicators.size-small button::before,
  #carousel-indicators.size-small button.bg-white::before,
  #carousel-indicators.size-small button:not(.bg-transparent)::before {
    width: 2px;
    height: 2px;
  }
  
  #carousel-indicators.size-tiny button {
    width: 3px;
    height: 3px;
  }
  
  #carousel-indicators.size-tiny button::before,
  #carousel-indicators.size-tiny button.bg-white::before,
  #carousel-indicators.size-tiny button:not(.bg-transparent)::before {
    width: 1px;
    height: 1px;
  }
  
  #carousel-indicators.size-micro button {
    width: 2px;
    height: 2px;
  }
  
  #carousel-indicators.size-micro button::before,
  #carousel-indicators.size-micro button.bg-white::before,
  #carousel-indicators.size-micro button:not(.bg-transparent)::before {
    width: 1px;
    height: 1px;
  }
}

/* Enhanced carousel grid consistency */
#carousel-images-admin {
  display: grid !important;
  align-items: start;
  gap: 0.375rem !important; /* Small gap (6px) between images */
  padding: 0.25rem; /* Small padding around the grid */
}

/* Portrait container admin styling - smaller version without transitions */
.portrait-container-admin {
  width: 120px !important;
  aspect-ratio: 2/3 !important;
  height: auto;
  background: #f3f3f3;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  max-height: 100%;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Portrait image admin styling - no transitions */
.portrait-img-admin {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.75rem;
  display: block;
}

#carousel-images-admin .carousel-drag-item {
  width: 100%;
  aspect-ratio: 3/4;
  max-width: 120px; /* Reduced from 160px for smaller images */
  height: auto;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

#carousel-images-admin .carousel-drag-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#carousel-images-admin .carousel-drag-item img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Changed to cover for proper cropping */
  aspect-ratio: 3/4;
  display: block;
}

/* Ensure hover overlay fits exactly to image */
#carousel-images-admin .carousel-drag-item .hover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  pointer-events: none;
  z-index: 1;
}

#carousel-images-admin .carousel-drag-item:hover .hover-overlay {
  opacity: 1;
}

/* Gallery hover overlay - exact match to carousel */
.gallery-hover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  pointer-events: none;
  z-index: 1;
}

.group:hover .gallery-hover-overlay {
  opacity: 1;
}

/* Gallery items scaling and animations - match carousel behavior */
.group {
  transition: all 0.3s ease;
  position: relative;
}

.group:hover {
  transform: scale(1.05);
  z-index: 5;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Drag and Drop Styles for Gallery Items Admin */

.gallery-drag-item {
  transition: all 0.3s ease;
  position: relative;
}

.gallery-drag-item.dragging {
  opacity: 0.5 !important;
  transform: scale(0.95);
  z-index: 40;
  cursor: grabbing !important;
}

.gallery-drag-item:hover {
  transform: scale(1.05);
  z-index: 10;
}

.gallery-drag-item.dragging:hover {
  transform: scale(0.95);
}

.gallery-drag-item:not(.dragging):hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Gallery drag handle styling */
.gallery-drag-item .absolute.top-1.left-1 {
  cursor: grab;
}

.gallery-drag-item.dragging .absolute.top-1.left-1 {
  cursor: grabbing;
}

/* Drag over indicator without transition */
#carousel-images-admin .drag-over-indicator,
#gallery-list-admin .drag-over-indicator {
  opacity: 0;
}

/* Ensure consistent grid spacing */
@media (min-width: 640px) {
  #carousel-images-admin {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); /* Reduced from 140px */
    max-width: 100%;
    gap: 0.375rem !important; /* Maintain small gap on larger screens */
    padding: 0.375rem; /* Balanced padding on larger screens */
  }
  
  #carousel-images-admin .carousel-drag-item {
    max-width: none;
    width: 100%;
  }
  
  #gallery-list-admin {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    max-width: 100%;
    gap: 0.375rem !important;
    padding: 0.375rem;
  }
  
  #gallery-list-admin .gallery-drag-item {
    max-width: none;
    width: 100%;
  }
}

@media (min-width: 1024px) {
  #carousel-images-admin {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); /* Reduced from 160px */
    gap: 0.5rem !important; /* Slightly larger gap on very large screens */
    padding: 0.5rem; /* More padding for better visual balance */
  }
  
  #gallery-list-admin {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.5rem !important;
    padding: 0.5rem;
  }
}

/* Optimized button positioning and contrast */
#carousel-images-admin .carousel-drag-item .absolute,
#gallery-list-admin .gallery-drag-item .absolute {
  z-index: 10;
}

#carousel-images-admin .carousel-drag-item button,
#carousel-images-admin .carousel-drag-item > div:not(.hover-overlay),
#gallery-list-admin .gallery-drag-item button,
#gallery-list-admin .gallery-drag-item > div:not(.gallery-hover-overlay) {
  pointer-events: auto;
}

/* Modal preview image optimization */
#carousel-modal-preview {
  object-fit: contain;
  width: 100%;
  height: 100%;
  border-radius: 8px;
}

/* Text Color Utility Classes */
.text-muted {
  color: rgba(255, 255, 255, 0.7) !important;
}

.heading-primary {
  color: rgba(255, 255, 255, 0.95) !important;
}

.text-white {
  color: rgba(255, 255, 255, 1) !important;
}

/* Prevent any inline code from showing */
code, pre, .code, .pre-code {
  display: none !important;
  visibility: hidden !important;
}


/* Ensure proper text colors in admin sections */
.admin-tab-panel label {
  color: rgba(255, 255, 255, 0.9) !important;
}

.admin-tab-panel h2 {
  color: rgba(255, 255, 255, 0.95) !important;
}

.admin-tab-panel p {
  color: rgba(255, 255, 255, 0.8) !important;
}

/* Contact form text colors */
.contact ul li {
  color: rgba(255, 255, 255, 0.8) !important;
}

.contact ul li span {
  color: rgba(255, 255, 255, 0.95) !important;
}

/* Fix text colors for labels and headings */
.text-muted {
  color: rgba(255, 255, 255, 0.8) !important;
}

.heading-primary {
  color: white !important;
}

/* Contact form labels styling */
.contact li {
  color: rgba(255, 255, 255, 0.9) !important;
}

/* Admin panel text color fixes */
.admin-tab span {
  color: white !important;
}

/* Modern Process Section Styles */
.process-section {
  padding: 3rem 0;
  position: relative;
  z-index: 10;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 100%;
  overflow: visible;
  box-sizing: border-box;
}

.process-section .container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
}

.process-timeline {
  display: block !important; /* Show the timeline container */
  position: relative;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 1200px) {
  .process-steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

.process-card {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 2rem 1.5rem 1.5rem 1.5rem; /* Extra top padding for ribbon */
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: visible;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  min-height: 180px;
  height: auto;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  word-wrap: break-word;
  hyphens: auto;
  /* Prevent content clipping during animations */
  margin: 20px 10px;
  contain: layout;
  /* Ensure ribbon visibility */
  isolation: isolate;
}

/* Dynamic content-aware heights */
.process-card[data-content-size="small"] {
  min-height: 180px;
}

.process-card[data-content-size="medium"] {
  min-height: 220px;
}

.process-card[data-content-size="large"] {
  min-height: 260px;
}

.process-card[data-content-size="extra-large"] {
  min-height: 300px;
}

.process-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.process-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.process-card:hover::before {
  opacity: 1;
}

.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.2) 0%, 
 
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0.05) 100%);
  backdrop-filter: blur(15px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  font-size: 1.2rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.95);
  margin: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 8px 20px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.step-badge::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, 
    transparent 30%, 
    rgba(255, 255, 255, 0.1) 50%, 
    transparent 70%);
  opacity: 0;
  transition: all 0.6s ease;
  transform: rotate(-45deg);
}

.process-card:hover .step-badge {
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.3) 0%, 
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0.1) 100%);
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.2) rotate(8deg);
  box-shadow: 
    0 12px 25px rgba(0, 0, 0, 0.4),
    0 0 0 3px rgba(255, 255, 255, 0.1),
    inset 0 2px 0 rgba(255, 255, 255, 0.3);
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.5);
}

.process-card:hover .step-badge::before {
  opacity: 1;
}

.step-number-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8) !important;
  margin: 0;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

/* Removed ::before pseudo-element for minimalist design */

.step-number {
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95) !important;
  letter-spacing: 0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  z-index: 2;
  position: relative;
  text-align: center;
  line-height: 1;
  margin-top: -0.2rem; /* Adjust for better vertical centering */
}

.process-card:hover .step-number-badge {
  background: linear-gradient(135deg, 
    rgba(120, 120, 120, 0.95) 0%, 
    rgba(100, 100, 100, 0.9) 50%,
    rgba(80, 80, 80, 0.95) 100%);
  border-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.03) translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Removed ::before hover animation for minimalist design */

.process-card:hover .step-number {
  color: rgba(255, 255, 255, 1) !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Step Content Styles (for JavaScript-generated elements) */
.step-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  margin: 0;
  flex-grow: 1;
  justify-content: flex-start;
  overflow: visible;
  padding: 0;
  box-sizing: border-box;
}

.step-title {
  font-size: 1rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95) !important;
  margin: 0.5rem 0;
  text-align: center;
  letter-spacing: 0.3px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  line-height: 1.2;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: none;
  word-break: keep-all;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  display: block;
}

.step-description {
  font-size: 0.75rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85) !important;
  line-height: 1.5;
  text-align: justify;
  text-justify: inter-word;
  word-spacing: 0.1em;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: none;
  word-break: keep-all;
  max-width: 100%;
  width: 100%;
  padding: 0;
  margin: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  box-sizing: border-box;
  display: block;
  overflow: visible;
  flex-grow: 1;
  min-height: fit-content;
}

/* Dynamic font sizing based on content length */
.step-description[data-length="short"] {
  font-size: 0.8rem;
  line-height: 1.6;
}

.step-description[data-length="medium"] {
  font-size: 0.75rem;
  line-height: 1.5;
}

.step-description[data-length="long"] {
  font-size: 0.7rem;
  line-height: 1.4;
}

.step-description[data-length="extra-long"] {
  font-size: 0.65rem;
  line-height: 1.3;
}

/* Icon container improvements */
.step-icon-container {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  flex-shrink: 0;
  box-sizing: border-box;
}

/* Removed step-icon-container hover effect for no box hover */

/* Number badge improvements */
.step-number-badge {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  z-index: 2;
  box-sizing: border-box;
}

.process-card:hover .step-title {
  color: rgba(255, 255, 255, 1) !important;
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.5);
}

.process-card:hover .step-description {
  color: rgba(255, 255, 255, 0.95) !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

/* Responsive adjustments for step content */
@media (max-width: 768px) {
  .step-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }
  
  .step-description {
    font-size: 0.65rem;
    padding: 0 0.25rem;
  }
}

@media (max-width: 480px) {
  .step-title {
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
  }
  
  .step-description {
    font-size: 0.6rem;
    line-height: 1.5;
    padding: 0 0.1rem;
  }
}

/* Step Icon Container Styles - Simple icon centered above title */
.step-icon-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin: 0.5rem auto 1rem auto;
  flex-shrink: 0;
  transform-origin: center;
}

.step-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  /* Removed transition and transform for no hover effect */
}

.step-icon svg {
  width: 1.75rem;
  height: 1.75rem;
  color: rgba(255, 255, 255, 0.95) !important;
  stroke: rgba(255, 255, 255, 0.95) !important;
  fill: none !important;
  stroke-width: 1.5;
  transition: all 0.4s ease;
}

/* Removed step-icon-glow for simplified design */

/* Step Number Badge Styles - Flag/Bookmark Style in upper right corner */
.step-number-badge {
  position: absolute !important;
  top: -4px !important;
  right: -4px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 2.5rem !important;
  height: 2.8rem !important;
  background: linear-gradient(135deg, 
    rgba(100, 100, 100, 0.9) 0%, 
    rgba(80, 80, 80, 0.85) 50%,
    rgba(60, 60, 60, 0.9) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px 4px 0 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: visible;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 15;
  transform-origin: center top;
  /* Flag/bookmark shape with pointed bottom */
  clip-path: polygon(0 0, 100% 0, 100% 70%, 50% 100%, 0 70%);
  /* Ensure visibility on all devices */
  will-change: auto;
  contain: none;
}

/* Ribbon Badge Responsive Design */
/* Large tablets (901px - 1024px) */
@media (max-width: 1024px) and (min-width: 901px) {
  .step-number-badge {
    width: 2.25rem !important;
    height: 2.5rem !important;
    top: -2px !important;
    right: -2px !important;
    clip-path: polygon(0 0, 100% 0, 100% 70%, 50% 100%, 0 70%) !important;
  }
  
  .step-number {
    font-size: 0.75rem;
    font-weight: 700;
    margin-top: -0.15rem;
  }
}

/* Medium tablets (769px - 900px) */
@media (max-width: 900px) and (min-width: 769px) {
  .step-number-badge {
    width: 2rem;
    height: 2.3rem;
    top: -1px;
    right: -1px;
    clip-path: polygon(0 0, 100% 0, 100% 70%, 50% 100%, 0 70%);
  }
  
  .step-number {
    font-size: 0.7rem;
    font-weight: 700;
    margin-top: -0.1rem;
  }
}

/* Small tablets (641px - 768px) */
@media (max-width: 768px) and (min-width: 641px) {
  .step-number-badge {
    width: 1.875rem;
    height: 2.1rem;
    top: 0px;
    right: 0px;
    clip-path: polygon(0 0, 100% 0, 100% 70%, 50% 100%, 0 70%);
  }
  
  .step-number {
    font-size: 0.65rem;
    font-weight: 700;
    margin-top: -0.1rem;
  }
}

/* Large mobile (481px - 640px) */
@media (max-width: 640px) and (min-width: 481px) {
  .step-number-badge {
    width: 1.8rem !important;
    height: 2rem !important;
    top: 2px !important;
    right: 2px !important;
    clip-path: polygon(0 0, 100% 0, 100% 70%, 50% 100%, 0 70%) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
  }
  
  .step-number {
    font-size: 0.6rem;
    font-weight: 700;
    margin-top: -0.05rem;
  }
}

/* Small mobile (up to 480px) */
@media (max-width: 480px) {
  .step-number-badge {
    width: 1.6rem !important;
    height: 1.8rem !important;
    top: 2px !important;
    right: 2px !important;
    clip-path: polygon(0 0, 100% 0, 100% 70%, 50% 100%, 0 70%) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
  }
  
  .step-number {
    font-size: 0.55rem;
    font-weight: 700;
    margin-top: -0.05rem;
  }
}

/* Extra small mobile devices (up to 360px) - Enhanced ribbon visibility */
@media (max-width: 360px) {
  .step-number-badge {
    width: 1.5rem !important;
    height: 1.7rem !important;
    top: 2px !important;
    right: 2px !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5) !important;
  }
  
  .step-number {
    font-size: 0.5rem;
    font-weight: 800;
    margin-top: -0.05rem;
  }
  
  .process-card {
    padding: 1rem 0.75rem 0.75rem 0.75rem;
    margin: 10px 5px;
  }
}

.step-number-badge::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, 
    transparent 30%, 
    rgba(255, 255, 255, 0.2) 50%, 
    transparent 70%);
  opacity: 0;
  transition: all 0.6s ease;
  transform: rotate(-45deg);
}

.step-number {
  font-size: 0.875rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95) !important;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hover Effects - Removed step-icon box/square background effect completely */

.process-card:hover .step-icon svg {
  /* Keep subtle color enhancement without scaling */
  color: rgba(255, 255, 255, 1) !important;
  stroke: rgba(255, 255, 255, 1) !important;
}

/* Removed step-icon-glow hover state for simplified design */

/* Using simplified hover state defined earlier */

/* Removed duplicate ::before hover animation */

/* Using simplified hover state defined earlier */

/* Step Decorative Elements */
.step-decorative-line {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: translateX(-50%);
  opacity: 0;
  transition: all 0.4s ease;
}

.step-corner-accent {
  position: absolute;
  width: 8px;
  height: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  opacity: 0;
  transition: all 0.4s ease;
}

.step-corner-accent.top-left {
  top: 1rem;
  left: 1rem;
  border-right: none;
  border-bottom: none;
}

.step-corner-accent.top-right {
  top: 1rem;
  right: 1rem;
  border-left: none;
  border-bottom: none;
}

.step-corner-accent.bottom-left {
  bottom: 1rem;
  left: 1rem;
  border-right: none;
  border-top: none;
}

.step-corner-accent.bottom-right {
  bottom: 1rem;
  right: 1rem;
  border-left: none;
  border-top: none;
}

.process-card:hover .step-decorative-line,
.process-card:hover .step-corner-accent {
  opacity: 1;
}

.process-card:hover .step-corner-accent {
  border-color: rgba(255, 255, 255, 0.4);
}

/* Responsive adjustments for horizontal process cards */
@media (min-width: 1536px) {
  .process-steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    max-width: 72rem;
  }
  
  .process-card {
    padding: 1.25rem;
    min-height: 200px;
  }
}

/* Removed duplicate 1200px media query - using more specific breakpoints */

/* ====== RESPONSIVE PROCESS STEPS - MOBILE FIRST APPROACH ====== */

/* Base mobile styles (up to 480px) */
@media (max-width: 480px) {
  .process-section {
    padding: 2rem 0;
    overflow: visible;
  }
  
  .process-section .container {
    overflow: visible;
    padding: 0;
  }
  
  .process-steps {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 10px 1rem;
    max-width: 100%;
    overflow: visible;
    margin: 0 auto;
  }
  
  .process-card {
    padding: 1.5rem 1rem 1rem 1rem;
    min-height: auto;
    max-width: 100%;
    width: 100%;
    margin: 15px 5px;
    overflow: visible;
    position: relative;
    border-radius: 16px;
  }
  
  .step-content {
    min-height: auto;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: visible;
    width: 100%;
  }
  
  .step-title {
    font-size: 0.9rem;
    margin: 0.5rem 0 0.4rem 0;
    line-height: 1.3;
    flex-shrink: 0;
  }
  
  .step-description {
    font-size: 0.65rem;
    line-height: 1.4;
    padding: 0;
    flex-grow: 1;
    overflow: visible;
  }
  
  /* Long content handling for mobile */
  .step-description[data-description-length] {
    font-size: 0.6rem;
    line-height: 1.3;
  }
  
  .step-icon-container {
    width: 2.5rem;
    height: 2.5rem;
    margin: 0 auto 0.5rem auto;
    flex-shrink: 0;
  }
  
  .step-icon svg {
    width: 1.25rem;
    height: 1.25rem;
  }
  
  .step-number-badge {
    width: 2.25rem;
    height: 1.6rem;
    top: -6px;
    right: -6px;
    clip-path: polygon(0 0, calc(100% - 3px) 0, 100% 50%, calc(100% - 3px) 100%, 0 100%);
  }
  
  .step-number {
    font-size: 0.65rem;
    font-weight: 600;
  }
}

/* Large mobile devices (481px to 640px) */
@media (min-width: 481px) and (max-width: 640px) {
  .process-section {
    padding: 2.5rem 0;
    overflow: visible;
  }
  
  .process-section .container {
    overflow: visible;
    padding: 0;
  }
  
  .process-steps {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 10px 1.5rem;
    overflow: visible;
    margin: 0 auto;
  }
  
  .process-card {
    padding: 1.5rem 1.25rem 1.25rem 1.25rem;
    min-height: auto;
    max-width: 100%;
    width: 100%;
    margin: 15px 5px;
    overflow: visible;
    position: relative;
  }
  
  .step-title {
    font-size: 1rem;
    margin: 0.6rem 0 0.5rem 0;
    line-height: 1.3;
  }
  
  .step-description {
    font-size: 0.75rem;
    line-height: 1.6;
    padding: 0;
  }
  
  .step-icon-container {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 0.6rem auto;
  }
  
  .step-icon svg {
    width: 1.5rem;
    height: 1.5rem;
  }
  
  .step-number-badge {
    width: 2.25rem;
    height: 2.25rem;
    top: -6px;
    right: -6px;
  }
  
  .step-number {
    font-size: 0.8rem;
  }
}

/* Small tablets (641px to 768px) */
@media (min-width: 641px) and (max-width: 768px) {
  .process-section {
    padding: 3rem 0;
  }
  
  .process-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    padding: 0 1.5rem;
  }
  
  .process-card {
    padding: 1.5rem 1.25rem;
    min-height: 200px;
    max-width: 100%;
    width: 100%;
    overflow: visible;
  }
  
  .step-content {
    height: auto;
    min-height: auto;
    flex-grow: 1;
  }
  
  .step-title {
    font-size: 0.95rem;
    margin: 0.6rem 0 0.5rem 0;
    line-height: 1.3;
    flex-shrink: 0;
  }
  
  .step-description {
    font-size: 0.7rem;
    line-height: 1.5;
    padding: 0;
    flex-grow: 1;
  }
  
  /* Enhanced content handling for tablets */
  .step-description[data-length=\"long\"],
  .step-description[data-length=\"extra-long\"] {
    font-size: 0.65rem;
    line-height: 1.4;
  }
  
  .process-card[data-content-size=\"large\"],
  .process-card[data-content-size=\"extra-large\"] {
    min-height: 240px;
  }
  
  .step-icon-container {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 0.6rem auto;
    flex-shrink: 0;
  }
  
  .step-icon svg {
    width: 1.5rem;
    height: 1.5rem;
  }
  
  .step-number-badge {
    width: 2.25rem;
    height: 2.25rem;
    top: -6px;
    right: -6px;
  }
  
  .step-number {
    font-size: 0.8rem;
  }
}

/* Medium tablets (769px to 900px) */
@media (min-width: 769px) and (max-width: 900px) {
  .process-section {
    padding: 3rem 0;
  }
  
  .process-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding: 0 2rem;
  }
  
  .process-card {
    padding: 1.75rem 1.5rem;
    min-height: 280px;
    max-width: 100%;
    width: 100%;
    overflow: visible;
    height: auto;
  }
  
  .step-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
  }
  
  .step-title {
    font-size: 1rem;
    margin: 0.6rem 0 0.8rem 0;
    line-height: 1.3;
    flex-shrink: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: none;
  }
  
  .step-description {
    font-size: 0.75rem;
    line-height: 1.6;
    padding: 0;
    flex-grow: 1;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: none;
    word-break: keep-all;
    overflow-wrap: anywhere;
  }
  
  /* Enhanced content handling for tablets */
  .step-description[data-length="long"],
  .step-description[data-length="extra-long"] {
    font-size: 0.7rem;
    line-height: 1.5;
  }
  
  .process-card[data-content-size="large"] {
    min-height: 320px;
  }
  
  .process-card[data-content-size="extra-large"] {
    min-height: 360px;
  }
  
  .step-icon-container {
    width: 3.25rem;
    height: 3.25rem;
    margin: 0 auto 0.6rem auto;
    flex-shrink: 0;
  }
  
  .step-icon svg {
    width: 1.6rem;
    height: 1.6rem;
  }
  
  .step-number-badge {
    width: 2.4rem;
    height: 2.4rem;
    top: -6px;
    right: -6px;
  }
  
  .step-number {
    font-size: 0.85rem;
  }
}

/* Large tablets landscape (901px to 1024px) */
@media (min-width: 901px) and (max-width: 1024px) {
  .process-section {
    padding: 3rem 0;
  }
  
  .process-steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding: 0 1.5rem;
  }
  
  .process-card {
    padding: 1.5rem 1rem;
    min-height: 240px;
    max-width: 100%;
    width: 100%;
    overflow: visible;
    height: auto;
  }
  
  .step-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
  }
  
  .step-title {
    font-size: 0.9rem;
    margin: 0.5rem 0 0.6rem 0;
    line-height: 1.2;
    flex-shrink: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: none;
  }
  
  .step-description {
    font-size: 0.68rem;
    line-height: 1.5;
    padding: 0;
    flex-grow: 1;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: none;
    word-break: keep-all;
    overflow-wrap: anywhere;
  }
  
  /* Enhanced content handling for landscape tablets */
  .step-description[data-length="long"] {
    font-size: 0.63rem;
    line-height: 1.4;
  }
  
  .step-description[data-length="extra-long"] {
    font-size: 0.6rem;
    line-height: 1.3;
  }
  
  .process-card[data-content-size="large"] {
    min-height: 280px;
  }
  
  .process-card[data-content-size="extra-large"] {
    min-height: 320px;
  }
  
  .step-icon-container {
    width: 2.8rem;
    height: 2.8rem;
    margin: 0 auto 0.5rem auto;
    flex-shrink: 0;
  }
  
  .step-icon svg {
    width: 1.4rem;
    height: 1.4rem;
  }
  
  .step-number-badge {
    width: 2.2rem;
    height: 2.2rem;
    top: -6px;
    right: -6px;
  }
  
  .step-number {
    font-size: 0.8rem;
  }
}

/* Small laptops (1025px to 1200px) */
@media (min-width: 1025px) and (max-width: 1200px) {
  .process-section {
    padding: 3.5rem 0;
  }
  
  .process-steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    padding: 0 1.5rem;
  }
  
  .process-card {
    padding: 1.75rem 1.25rem;
    min-height: 220px;
  }
  
  .step-title {
    font-size: 1rem;
    margin: 0.6rem 0 0.5rem 0;
    line-height: 1.2;
  }
  
  .step-description {
    font-size: 0.75rem;
    line-height: 1.5;
  }
}

/* Large screens (1201px and up) */
@media (min-width: 1201px) {
  .process-section {
    padding: 4rem 0;
  }
  
  .process-steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    padding: 0 2rem;
  }
  
  .process-card {
    padding: 2rem 1.5rem;
    min-height: 240px;
  }
  
  .step-title {
    font-size: 1.1rem;
    margin: 0.7rem 0 0.6rem 0;
    line-height: 1.3;
  }
  
  .step-description {
    font-size: 0.8rem;
    line-height: 1.6;
  }
}

/* ===========================================
   FINAL BLACK GRADIENT OVERRIDE - MAXIMUM PRIORITY
   =========================================== */



/* Ensure main containers have transparent background to show gradient */
main, .container-responsive, .max-w-5xl, .max-w-6xl {
  background-color: transparent !important;
}

/* ===========================================
   GALLERY BADGE GRADIENT STYLES - Fix for Tailwind CSS compatibility
   =========================================== */

/* Badge gradient styles for gallery items */
.bg-gradient-to-br {
  background-image: linear-gradient(to bottom right, var(--tw-gradient-from), var(--tw-gradient-to)) !important;
}

/* Cyan gradient variables (for canva-based badges) */
:root {
  --tw-gradient-from-cyan-500: #06b6d4;
  --tw-gradient-to-cyan-700: #0e7490;
}

.from-cyan-500 {
  --tw-gradient-from: #06b6d4 !important;
  --tw-gradient-to: rgba(6, 182, 212, 0) !important;
}

.to-cyan-700 {
  --tw-gradient-to: #0e7490 !important;
}

.border-cyan-400 {
  border-color: #22d3ee !important;
}

/* Blue gradient variables (for photo-based badges) */
.from-blue-500 {
  --tw-gradient-from: #3b82f6 !important;
  --tw-gradient-to: rgba(59, 130, 246, 0) !important;
}

.to-blue-700 {
  --tw-gradient-to: #1d4ed8 !important;
}

.border-blue-400 {
  border-color: #60a5fa !important;
}

/* Indigo gradient variables (for detailed photo-based badges) */
.from-indigo-500 {
  --tw-gradient-from: #6366f1 !important;
  --tw-gradient-to: rgba(99, 102, 241, 0) !important;
}

.to-indigo-700 {
  --tw-gradient-to: #4338ca !important;
}

.border-indigo-400 {
  border-color: #818cf8 !important;
}

/* Green gradient variables (for object-based badges) */
.from-green-500 {
  --tw-gradient-from: #22c55e !important;
  --tw-gradient-to: rgba(34, 197, 94, 0) !important;
}

.to-green-700 {
  --tw-gradient-to: #15803d !important;
}

.border-green-400 {
  border-color: #4ade80 !important;
}

/* Purple gradient variables (for photo-manipulation badges) */
.from-purple-500 {
  --tw-gradient-from: #a855f7 !important;
  --tw-gradient-to: rgba(168, 85, 247, 0) !important;
}

.to-purple-700 {
  --tw-gradient-to: #7c3aed !important;
}

.border-purple-400 {
  border-color: #c084fc !important;
}

/* Pink gradient variables (for floral style badges) */
.from-pink-500 {
  --tw-gradient-from: #ec4899 !important;
  --tw-gradient-to: rgba(236, 72, 153, 0) !important;
}

.to-pink-700 {
  --tw-gradient-to: #be185d !important;
}

.border-pink-400 {
  border-color: #f472b6 !important;
}

/* Gray gradient variables (for silhouette badges) */
.from-gray-700 {
  --tw-gradient-from: #374151 !important;
  --tw-gradient-to: rgba(55, 65, 81, 0) !important;
}

.to-gray-900 {
  --tw-gradient-to: #111827 !important;
}

.border-gray-600 {
  border-color: #4b5563 !important;
}

/* Yellow gradient variables (for typography badges) */
.from-yellow-500 {
  --tw-gradient-from: #eab308 !important;
  --tw-gradient-to: rgba(234, 179, 8, 0) !important;
}

.to-yellow-700 {
  --tw-gradient-to: #a16207 !important;
}

.border-yellow-400 {
  border-color: #facc15 !important;
}

/* Teal gradient variables (for default badges) */
.from-teal-500 {
  --tw-gradient-from: #14b8a6 !important;
  --tw-gradient-to: rgba(20, 184, 166, 0) !important;
}

.to-teal-700 {
  --tw-gradient-to: #0f766e !important;
}

.border-teal-400 {
  border-color: #2dd4bf !important;
}

/* Ensure badges have proper styling */
.gallery-drag-item .absolute[class*="bg-gradient-to-br"],
.carousel-drag-item .absolute[class*="bg-gradient-to-br"] {
  background-clip: padding-box !important;
  border-width: 1px !important;
  border-style: solid !important;
  color: white !important;
  font-weight: 600 !important;
}

/* Specific targeting for gallery and carousel style badges */
.gallery-style-badge,
.carousel-style-badge {
  /* DO NOT set background here - it will override inline styles */
  color: white !important;
  font-weight: 600 !important;
  border-radius: 9999px !important;
  padding: 2px 5px !important;
  font-size: 6px !important;
  line-height: 1.1 !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.2) !important;
  backdrop-filter: blur(4px) !important;
  -webkit-backdrop-filter: blur(4px) !important;
  z-index: 10 !important;
  position: absolute !important;
  transition: all 0.2s ease !important;
}

/* Badge hover effects */
.gallery-style-badge:hover,
.carousel-style-badge:hover {
  transform: scale(1.1) !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.3) !important;
}

/* Specific status badge styling for gallery items */
.gallery-style-badge.available,
.carousel-style-badge.available {
  background: linear-gradient(to right, #16a34a, #15803d) !important;
}

.gallery-style-badge.sold,
.carousel-style-badge.sold {
  background: linear-gradient(to right, #dc2626, #b91c1c) !important;
}

.gallery-style-badge.reserved,
.carousel-style-badge.reserved {
  background: linear-gradient(to right, #2563eb, #1d4ed8) !important;
}

.gallery-style-badge.on-hold,
.carousel-style-badge.on-hold {
  background: linear-gradient(to right, #a855f7, #7c3aed) !important;
}

/* Force proper display for badges */
.gallery-drag-item .absolute.gallery-style-badge,
.carousel-drag-item .absolute.carousel-style-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Gallery Uniform Image Styles */
.gallery-image-container {
  position: relative;
  width: 100%;
  aspect-ratio: 2/3;
  background: transparent;
  border-radius: 0.75rem;
  overflow: hidden;
  display: block;
}

.gallery-uniform-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease, opacity 0.3s ease;
  display: block;
  max-width: 100%;
  max-height: 100%;
}

.gallery-uniform-image:hover {
  transform: scale(1.05);
}

/* Hero Extra Container - Clean Minimalist Design */
.hero-extra-clean {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin: 0 auto 1.5rem auto;
  padding: 0.75rem 1.25rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  width: fit-content;
  max-width: 90%;
  min-height: 44px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  
  /* Enhanced text handling */
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: none;
  word-break: keep-all;
  
  /* Responsive container sizing */
  min-width: min-content;
  contain: layout style;
}

.hero-extra-clean:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Comprehensive tablet and mobile responsive adjustments */
/* Large tablets (901px - 1024px) */
@media (max-width: 1024px) and (min-width: 901px) {
  .hero-extra-clean {
    padding: 0.625rem 1.125rem;
    margin-bottom: 1.25rem;
    border-radius: 40px;
    max-width: 92%;
    min-height: 42px;
    font-size: 0.9rem;
  }
}

/* Medium tablets (769px - 900px) */
@media (max-width: 900px) and (min-width: 769px) {
  .hero-extra-clean {
    padding: 0.55rem 1rem;
    margin-bottom: 1.125rem;
    border-radius: 35px;
    max-width: 94%;
    min-height: 40px;
    font-size: 0.875rem;
  }
}

/* Small tablets (641px - 768px) */
@media (max-width: 768px) and (min-width: 641px) {
  .hero-extra-clean {
    padding: 0.5rem 0.875rem;
    margin-bottom: 1rem;
    border-radius: 30px;
    max-width: 96%;
    min-height: 38px;
    font-size: 0.8rem;
  }
}

/* Mobile devices (up to 640px) */
@media (max-width: 640px) {
  .hero-extra-clean {
    padding: 0.4rem 0.75rem;
    margin-bottom: 0.75rem;
    border-radius: 25px;
    max-width: 98%;
    min-height: 36px;
    font-size: 0.75rem;
  }
}

/* Hero Extra Items - Optimized for Mobile with Better Spacing */
.hero-extra-item {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
  transition: all 0.3s ease;
  letter-spacing: 0.3px;
  margin: 0;
  padding: 0.25rem 0.5rem;
  line-height: 1.2;
  border-radius: 8px;
  
  /* Enhanced text handling */
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: none;
  word-break: keep-all;
  contain: layout;
}

.hero-extra-item:hover {
  color: rgba(255, 255, 255, 1);
  text-shadow: 0 2px 8px rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.05);
}

/* Progressive tablet and mobile text sizing for better readability */
/* Large tablets */
@media (max-width: 1024px) and (min-width: 901px) {
  .hero-extra-item {
    font-size: 0.85rem;
    font-weight: 475;
    letter-spacing: 0.25px;
    line-height: 1.15;
    padding: 0.225rem 0.475rem;
  }
}

/* Medium tablets */
@media (max-width: 900px) and (min-width: 769px) {
  .hero-extra-item {
    font-size: 0.8rem;
    font-weight: 450;
    letter-spacing: 0.22px;
    line-height: 1.12;
    padding: 0.2rem 0.45rem;
  }
}

/* Small tablets */
@media (max-width: 768px) and (min-width: 641px) {
  .hero-extra-item {
    font-size: 0.775rem;
    font-weight: 425;
    letter-spacing: 0.2px;
    line-height: 1.1;
    padding: 0.19rem 0.42rem;
  }
}

/* Mobile devices */
@media (max-width: 640px) {
  .hero-extra-item {
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.2px;
    line-height: 1.1;
    padding: 0.2rem 0.4rem;
  }
}

@media (max-width: 480px) {
  .hero-extra-item {
    font-size: 0.7rem;
    letter-spacing: 0.1px;
    line-height: 1.0;
    padding: 0.15rem 0.3rem;
  }
}

@media (max-width: 360px) {
  .hero-extra-item {
    font-size: 0.65rem;
    letter-spacing: 0;
    line-height: 1.0;
    padding: 0.1rem 0.25rem;
  }
}

/* Hero Extra Dividers - Increased Mobile Spacing */
.hero-extra-divider {
  color: rgba(255, 255, 255, 0.3);
  font-weight: 300;
  margin: 0 1rem;
  user-select: none;
  pointer-events: none;
  transition: all 0.3s ease;
  line-height: 1.0;
}

.hero-extra-clean:hover .hero-extra-divider {
  color: rgba(255, 255, 255, 0.4);
}

/* Comprehensive tablet and mobile divider spacing for better readability */
/* Large tablets */
@media (max-width: 1024px) and (min-width: 901px) {
  .hero-extra-divider {
    margin: 0 0.95rem;
    font-size: 0.85rem;
  }
}

/* Medium tablets */
@media (max-width: 900px) and (min-width: 769px) {
  .hero-extra-divider {
    margin: 0 0.875rem;
    font-size: 0.8rem;
  }
}

/* Small tablets */
@media (max-width: 768px) and (min-width: 641px) {
  .hero-extra-divider {
    margin: 0 0.8rem;
    font-size: 0.775rem;
  }
}

/* Mobile devices */
@media (max-width: 640px) {
  .hero-extra-divider {
    margin: 0 0.75rem;
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .hero-extra-divider {
    margin: 0 0.625rem;
    font-size: 0.7rem;
  }
}

@media (max-width: 360px) {
  .hero-extra-divider {
    margin: 0 0.5rem;
    font-size: 0.65rem;
  }
}

/* Mobile Hero Extra - Spacious Two Row Layout */
.hero-extra-mobile {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 0 auto 0.75rem auto;
  padding: 0.625rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  width: fit-content;
  max-width: 96%;
  gap: 0.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 3px 12px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.hero-extra-mobile:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
  box-shadow: 
    0 6px 24px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Mobile-specific adjustments for comfortable spacing */
@media (max-width: 480px) {
  .hero-extra-mobile {
    padding: 0.5rem 0.875rem;
    margin-bottom: 0.625rem;
    border-radius: 14px;
    gap: 0.375rem;
    max-width: 98%;
    box-shadow: 
      0 2px 8px rgba(0, 0, 0, 0.08),
      inset 0 1px 0 rgba(255, 255, 255, 0.04);
  }
}

@media (max-width: 360px) {
  .hero-extra-mobile {
    padding: 0.4rem 0.75rem;
    margin-bottom: 0.5rem;
    border-radius: 12px;
    gap: 0.3rem;
    max-width: 100%;
    box-shadow: 
      0 1px 4px rgba(0, 0, 0, 0.06),
      inset 0 1px 0 rgba(255, 255, 255, 0.03);
  }
}

.hero-extra-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.625rem;
}

/* Mobile-specific row adjustments with increased spacing */
@media (max-width: 480px) {
  .hero-extra-row {
    gap: 0.5rem;
  }
}

@media (max-width: 360px) {
  .hero-extra-row {
    gap: 0.375rem;
  }
}

/* Purchase Page Container Optimizations for New Lighter Background */

/* Override Tailwind bg-white/5 containers to be slightly darker than background */
.backdrop-blur-md.bg-white\/5,
[class*="backdrop-blur-md"][class*="bg-white/5"],
.backdrop-blur-sm.bg-white\/5,
[class*="backdrop-blur-sm"][class*="bg-white/5"] {
  background: rgba(0, 0, 0, 0.15) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

/* Order review container - removed darker gradient background */
.backdrop-blur-sm.bg-gradient-to-br {
  background: transparent !important;
}

/* Form step containers - removed dark background */
#form-container.glass-card {
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
}

/* Product summary and order total cards */
#product-summary.glass-card,
#order-total-card {
  background: rgba(0, 0, 0, 0.3) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

/* Selection cards for book types and options - slightly darker */
.booktype-card .bg-white\/5,
[class*="booktype-card"] [class*="bg-white/5"],
.group .bg-white\/5,
[class*="group"] [class*="bg-white/5"] {
  background: rgba(0, 0, 0, 0.12) !important;
}

/* Hover states for better interaction feedback */
.booktype-card:hover .bg-white\/5,
.booktype-card .hover\:bg-white\/10:hover,
.group:hover .bg-white\/5,
.group .hover\:bg-white\/10:hover {
  background: rgba(0, 0, 0, 0.08) !important;
}

/* Ensure borders remain visible with new background */
.border-white\/10 {
  border-color: rgba(255, 255, 255, 0.12) !important;
}

.border-white\/20 {
  border-color: rgba(255, 255, 255, 0.18) !important;
}

/* Purchase Page Input Field Enhancements */

/* Add hover state for input fields */
.input-glass:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
}

/* CRITICAL: Final override to ensure input field visibility persists across all JavaScript interactions */
body .input-glass,
#step-1 .input-glass,
#step-2 .input-glass, 
#step-3 .input-glass,
.form-step .input-glass,
input.input-glass[style],
textarea.input-glass[style],
input.input-glass[data-pasted],
textarea.input-glass[data-pasted] {
  background: rgba(255, 255, 255, 0.08) !important;
  background-color: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  color: white !important;
  -webkit-text-fill-color: white !important;
}

/* Critical focus states that should always work */
body .input-glass:focus,
#step-1 .input-glass:focus,
#step-2 .input-glass:focus, 
#step-3 .input-glass:focus,
.form-step .input-glass:focus,
input.input-glass:focus[style],
textarea.input-glass:focus[style] {
  background: rgba(255, 255, 255, 0.12) !important;
  background-color: rgba(255, 255, 255, 0.12) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15) !important;
}

/* Prevent any autofill or inline styles from overriding */
input.input-glass[style*="background"],
textarea.input-glass[style*="background"] {
  background: rgba(255, 255, 255, 0.08) !important;
  background-color: rgba(255, 255, 255, 0.08) !important;
}

/* Page Slide Transition Integration */
/* Enhanced page transition system for seamless navigation */
body {
  overflow-x: hidden; /* Prevent horizontal scroll during slide transitions */
}

.page-transition-container {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: visible; /* FIXED: Changed from hidden to visible - allows sticky positioning */
  overflow-x: hidden; /* Keep horizontal scroll prevention */
}

/* Slide animations with improved performance */
.page-slide-out-left {
  animation: slideOutLeft 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.page-slide-out-right {
  animation: slideOutRight 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.page-slide-in-left {
  animation: slideInLeft 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.page-slide-in-right {
  animation: slideInRight 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideOutLeft {
  0% {
    transform: translateX(0);
    opacity: 1;
  }
  100% {
    transform: translateX(-100%);
    opacity: 0.3;
  }
}

@keyframes slideOutRight {
  0% {
    transform: translateX(0);
    opacity: 1;
  }
  100% {
    transform: translateX(100%);
    opacity: 0.3;
  }
}

@keyframes slideInLeft {
  0% {
    transform: translateX(-100%);
    opacity: 0.3;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInRight {
  0% {
    transform: translateX(100%);
    opacity: 0.3;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}





/* Hardware acceleration and performance optimizations */
.page-slide-out-left,
.page-slide-out-right,
.page-slide-in-left,
.page-slide-in-right {
  will-change: transform, opacity;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

/* Prevent text selection during transitions */
.page-transitioning {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

/* Mobile optimizations for slide transitions */
@media (max-width: 768px) {
  /* Faster transitions on mobile for better performance */
  .page-slide-out-left,
  .page-slide-out-right,
  .page-slide-in-left,
  .page-slide-in-right {
    animation-duration: 0.3s;
  }
  
  /* Touch action optimization */
  body {
    touch-action: manipulation;
  }
  
  /* Reduce motion for accessibility */
  @media (prefers-reduced-motion: reduce) {
    .page-slide-out-left,
    .page-slide-out-right,
    .page-slide-in-left,
    .page-slide-in-right {
      animation: none;
      opacity: 1;
      transform: none;
    }
  }
}

/* Shop Item Link Styles for Right-Click Functionality */
.shop-item {
  text-decoration: none !important;
  color: inherit !important;
}

.shop-item:hover {
  text-decoration: none !important;
  color: inherit !important;
}

.shop-item:visited {
  color: inherit !important;
}

.shop-item:focus {
  outline: 2px solid rgba(255, 255, 255, 0.3);
  outline-offset: 2px;
}

/* Ensure shop item content maintains proper styling */
.shop-item * {
  color: inherit;
  text-decoration: none;
}

/* ✅ FIX: Allow strikethrough on price elements */
.shop-item .line-through {
  text-decoration: line-through !important;
}

/* ====== PROCESS SECTION OVERFLOW PROTECTION ====== */
/* Additional overflow protection for all process elements */
.process-section *, 
.process-steps *, 
.process-card *, 
.step-content *,
.step-title,
.step-description {
  box-sizing: border-box !important;
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
  hyphens: none !important;
  word-break: keep-all !important;
  overflow-wrap: anywhere !important;
  max-width: 100% !important;
}

/* Enhanced text wrapping specifically for tablet devices */
@media (min-width: 641px) and (max-width: 1024px) {
  .step-title,
  .step-description {
    word-spacing: normal !important;
    white-space: normal !important;
    text-overflow: clip !important;
    overflow: visible !important;
  }
  
  .process-card {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: none !important;
    word-break: keep-all !important;
  }
}

.process-card {
  overflow: hidden !important;
  contain: layout style !important;
}

/* Prevent horizontal scroll on smaller screens */
@media (max-width: 768px) {
  body, html {
    overflow-x: hidden !important;
  }
  
  .process-section {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
  }
  
  .process-steps {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}


