/* ============================================
   HERO SECTION ENHANCEMENTS
   ============================================ */

/* Float Animations for Background Orbs */
@keyframes float-slow {
  0%, 100% {
    transform: translateY(0) translateX(0) scale(1);
  }
  33% {
    transform: translateY(-20px) translateX(10px) scale(1.02);
  }
  66% {
    transform: translateY(10px) translateX(-10px) scale(0.98);
  }
}

@keyframes float-medium {
  0%, 100% {
    transform: translateY(0) translateX(0) scale(1) rotate(0deg);
  }
  25% {
    transform: translateY(-30px) translateX(15px) scale(1.03) rotate(2deg);
  }
  50% {
    transform: translateY(-15px) translateX(-10px) scale(0.97) rotate(-1deg);
  }
  75% {
    transform: translateY(20px) translateX(-5px) scale(1.01) rotate(1deg);
  }
}

@keyframes float-fast {
  0%, 100% {
    transform: translateY(0) translateX(0) scale(1);
  }
  20% {
    transform: translateY(-25px) translateX(20px) scale(1.05);
  }
  40% {
    transform: translateY(-10px) translateX(-15px) scale(0.95);
  }
  60% {
    transform: translateY(15px) translateX(10px) scale(1.02);
  }
  80% {
    transform: translateY(-5px) translateX(-5px) scale(0.98);
  }
}

/* Enhanced Button Styles (Dark Theme) */
.btn-primary-enhanced-dark {
  background: linear-gradient(135deg, #12a650 0%, #0d8c40 100%);
  color: #ffffff;
  border: none;
  padding: 14px 32px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(18, 167, 80, 0.3);
  position: relative;
  overflow: hidden;
}

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

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

.btn-primary-enhanced-dark:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(18, 167, 80, 0.4);
}

.btn-primary-enhanced-dark:active {
  transform: translateY(0);
}

.btn-outline-enhanced-dark {
  background: transparent;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.6);
  padding: 14px 32px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn-outline-enhanced-dark::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: rgba(255, 255, 255, 0.15);
  transition: width 0.3s ease;
  z-index: -1;
}

.btn-outline-enhanced-dark:hover::before {
  width: 100%;
}

.btn-outline-enhanced-dark:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn-outline-enhanced-dark:active {
  transform: translateY(0);
}

/* Category Preview Cards (Dark/Glass Theme) */
.category-preview-card-dark {
  display: block;
  text-decoration: none;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-preview-card-dark:hover {
  transform: translateY(-4px);
}

.category-preview-card-dark .card-inner-dark {
  position: relative;
  overflow: hidden;
}

.category-preview-card-dark .card-inner-dark::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  transition: left 0.6s ease;
  pointer-events: none;
}

.category-preview-card-dark:hover .card-inner-dark::before {
  left: 100%;
}

.category-preview-card-dark::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 2px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(18, 167, 80, 0.3));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.category-preview-card-dark:hover::after {
  opacity: 1;
}

/* Pulse Animation for Category Icons */
@keyframes iconPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.category-preview-card-dark:hover .w-14 {
  animation: iconPulse 0.6s ease-in-out;
}

/* Slide Up Animation */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-slide-up {
  animation: slideUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  opacity: 0;
}

/* Staggered Animation Delays */
.animate-slide-up[style*="animation-delay: 0.1s"] {
  animation-delay: 0.1s !important;
}

.animate-slide-up[style*="animation-delay: 0.15s"] {
  animation-delay: 0.15s !important;
}

.animate-slide-up[style*="animation-delay: 0.2s"] {
  animation-delay: 0.2s !important;
}

.animate-slide-up[style*="animation-delay: 0.25s"] {
  animation-delay: 0.25s !important;
}

.animate-slide-up[style*="animation-delay: 0.3s"] {
  animation-delay: 0.3s !important;
}

/* Gradient Text Animation */
@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.text-transparent.bg-clip-text {
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite;
}

/* Trust Badge Hover Effect */
.trust-badge {
  transition: all 0.3s ease;
}

.trust-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(18, 39, 110, 0.15);
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .animate-float-slow,
  .animate-float-medium,
  .animate-float-fast,
  .category-preview-card-dark .w-14,
  .text-transparent.bg-clip-text {
    animation: none !important;
  }

  .btn-primary-enhanced-dark::before,
  .btn-outline-enhanced-dark::before,
  .category-preview-card-dark .card-inner-dark::before {
    transition: none;
  }
}

/* Mobile Optimizations for Hero */
@media (max-width: 768px) {
  .btn-primary-enhanced-dark,
  .btn-outline-enhanced-dark {
    padding: 12px 24px;
    font-size: 14px;
  }

  .category-preview-card-dark .card-inner-dark {
    padding: 1rem;
  }

  .category-preview-card-dark .w-14 {
    width: 3rem;
    height: 3rem;
  }

  .category-preview-card-dark .material-symbols-rounded.text-2xl {
    font-size: 1.5rem;
  }
}

/* ============================================
   PRODUCTS PAGE FILTER STYLES
   ============================================ */

/* ZIRCO Products Page Styles - Updated for checkbox-based filters */

/* Filter Sidebar Styles */
.filter-sidebar {
  position: sticky;
  top: 6rem;
  height: calc(100vh - 8rem);
  overflow-y: auto;
  background: white;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-sidebar::-webkit-scrollbar {
  width: 6px;
}

.filter-sidebar::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 3px;
}

.filter-sidebar::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

.filter-sidebar::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.filter-section {
  border-bottom: 1px solid #e2e8f0;
  padding: 1.5rem;
}

.filter-section:last-child {
  border-bottom: none;
}

.filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.filter-title {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-clear {
  font-size: 0.875rem;
  color: #64748b;
  text-decoration: none;
  transition: color 0.2s;
}

.filter-clear:hover {
  color: #0f766e;
}

/* Filter Toggle Buttons */
.filter-toggle {
  background: none;
  border: none;
  padding: 0.5rem;
  border-radius: 8px;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.filter-toggle:hover {
  background: #f1f5f9;
  color: #0f766e;
}

.filter-toggle.expanded {
  color: #0f766e;
  transform: rotate(180deg);
}

/* Filter Categories */
.filter-category {
  margin-bottom: 1rem;
}

.filter-category:last-child {
  margin-bottom: 0;
}

.category-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  cursor: pointer;
  user-select: none;
  padding: 0.75rem;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.category-header:hover {
  background: #f8fafc;
}

.category-header .material-symbols-rounded {
  color: #0f766e;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.category-header h4 {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: #1e293b;
  margin: 0;
  flex: 1;
}

.category-header .filter-toggle {
  margin-left: auto;
}

.category-options {
  margin-left: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.category-options.expanded {
  max-height: 500px;
}

/* Checkbox Styles */
.filter-checkbox {
  display: none;
}

.filter-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.75rem;
  margin: 0.25rem 0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: "Roboto", sans-serif;
  font-size: 0.875rem;
  color: #475569;
  border: 1px solid transparent;
  position: relative;
}

.filter-label:hover {
  background: #f8fafc;
  border-color: #e2e8f0;
  transform: translateY(-1px);
}

/* Active/Checked state for checkboxes */
.filter-checkbox:checked + .filter-label {
  background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
  color: #047857;
  border-color: #0f766e;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(15, 118, 110, 0.15);
}

.filter-checkbox:checked + .filter-label .material-symbols-rounded {
  color: #0f766e !important;
  font-weight: 600;
}

/* Add subtle animation for checked state */
.filter-checkbox:checked + .filter-label {
  animation: checkboxPulse 0.3s ease-out;
}

@keyframes checkboxPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
  100% {
    transform: scale(1);
  }
}

/* Custom checkbox replacement */
.filter-label::before {
  content: "";
  width: 20px;
  height: 20px;
  border: 2px solid #d1d5db;
  border-radius: 4px;
  background: white;
  flex-shrink: 0;
  margin-right: 0.75rem;
  transition: all 0.2s ease;
  position: relative;
}

/* Ensure checkbox checked state is very visible */
.filter-checkbox:checked + .filter-label::before {
  content: "✓";
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 14px;
  border-color: #0f766e;
  background: #0f766e;
  box-shadow: 0 2px 6px rgba(15, 118, 110, 0.3);
  transform: scale(1.05);
}

/* Double-check the selector - ensure it catches all checkboxes */
input[type="checkbox"]:checked + .filter-label::before {
  content: "✓";
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 14px;
  border-color: #0f766e !important;
  background: #0f766e !important;
  box-shadow: 0 2px 6px rgba(15, 118, 110, 0.3);
  transform: scale(1.05);
}

input[type="checkbox"]:checked + .filter-label {
  background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%) !important;
  color: #047857 !important;
  border-color: #0f766e !important;
  font-weight: 500 !important;
  box-shadow: 0 2px 8px rgba(15, 118, 110, 0.15) !important;
}

/* Enhanced hover effects */
.filter-label:hover::before {
  border-color: #0f766e;
  background: #f0fdfa;
}

.filter-checkbox:checked + .filter-label:hover::before {
  border-color: #0d5f54;
  background: #0d5f54;
}

/* Size Options */
.size-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.size-option {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-family: "Roboto", sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s;
  background: white;
}

.size-option:hover {
  border-color: #0f766e;
  background: #f0fdfa;
  color: #0f766e;
}

.size-option.selected {
  border-color: #10b981;
  background: #10b981;
  color: white;
}

/* Color Options */
.color-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.color-option {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 3px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.color-option:hover {
  transform: scale(1.1);
  border-color: #e2e8f0;
}

.color-option.selected {
  border-color: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.color-option.selected::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-weight: bold;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Price Range Slider */
.price-range {
  margin-top: 1rem;
}

.price-inputs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.price-input {
  flex: 1;
  padding: 0.5rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-family: "Roboto", sans-serif;
  font-size: 0.875rem;
  text-align: center;
}

.price-input:focus {
  outline: none;
  border-color: #0f766e;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1);
}

.price-slider {
  width: 100%;
  height: 6px;
  background: #e2e8f0;
  border-radius: 3px;
  outline: none;
  -webkit-appearance: none;
  margin: 1rem 0;
}

.price-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: #0f766e;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: all 0.2s;
}

.price-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.price-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: #0f766e;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: all 0.2s;
  border: none;
}

/* Filter Buttons */
.filter-actions {
  padding: 1rem 1.5rem;
  border-top: 1px solid #e2e8f0;
  display: flex;
  gap: 0.75rem;
}

.btn-filter {
  flex: 1;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 8px;
  font-family: "Roboto", sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: #0f766e;
  color: white;
}

.btn-primary:hover {
  background: #0d5f54;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(15, 118, 110, 0.3);
}

.btn-secondary {
  background: white;
  color: #64748b;
  border: 1px solid #d1d5db;
}

.btn-secondary:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

/* Mobile Filter Toggle */
.mobile-filter-toggle {
  display: none;
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background: #0f766e;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 24px;
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.3);
  z-index: 40;
  font-family: "Roboto", sans-serif;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.mobile-filter-toggle:hover {
  background: #0d5f54;
  transform: translateX(-50%) translateY(-2px);
}

.mobile-filter-toggle span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Mobile Filter Overlay */
.filter-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 45;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .filter-sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 320px;
    height: 100vh;
    z-index: 50;
    border-radius: 0;
    transition: left 0.3s ease-out;
  }

  .filter-sidebar.open {
    left: 0;
  }

  .mobile-filter-toggle {
    display: flex;
  }

  .filter-overlay.show {
    display: block;
  }
}

@media (max-width: 768px) {
  .filter-sidebar {
    width: 280px;
  }

  .filter-section {
    padding: 1rem;
  }

  .size-grid {
    grid-template-columns: repeat(auto-fill, minmax(36px, 1fr));
  }

  .size-option {
    width: 36px;
    height: 36px;
    font-size: 0.75rem;
  }

  .color-option {
    width: 28px;
    height: 28px;
  }
}

/* Active Filter Pills - Removed as filters are only in sidebar */

/* No Results Message */
.no-results {
  text-align: center;
  padding: 3rem 2rem;
  color: #64748b;
}

.no-results-icon {
  font-size: 3rem;
  color: #cbd5e1;
  margin-bottom: 1rem;
}

.no-results-title {
  font-family: "Poppins", sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
}

.no-results-text {
  font-family: "Roboto", sans-serif;
  color: #64748b;
  margin-bottom: 1.5rem;
}

/* Loading State */
.filter-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  color: #64748b;
}

.filter-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid #e2e8f0;
  border-top: 2px solid #0f766e;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 0.5rem;
}

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

/* Enhanced hover effects for active links */
.filter-link.active:hover {
  background: linear-gradient(135deg, #d1fae5 0%, #e6f7ee 100%);
  color: #047857;
  border-color: #0d5f54;
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.2);
}

/* Active indicator icon for filter links */
.filter-link.active::before {
  content: "✓";
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: #0f766e;
  font-weight: bold;
  font-size: 12px;
  background: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(15, 118, 110, 0.3);
}

/* Active state indicator for filter labels */
.filter-label.active {
  background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
  color: #047857;
  border-color: #0f766e;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(15, 118, 110, 0.15);
}

.filter-label.active .material-symbols-rounded {
  color: #0f766e !important;
  font-weight: 600;
}

.filter-label.active::before {
  content: "✓";
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 14px;
  border-color: #0f766e !important;
  background: #0f766e !important;
  box-shadow: 0 2px 6px rgba(15, 118, 110, 0.3);
  transform: scale(1.05);
}

/* ============================================
Filter Button Styles (kept for reference)
   ============================================ */
.filter-button {
  padding: 0.75rem 1.5rem;
  border: 2px solid #e2e8f0;
  background: white;
  color: #64748b;
  border-radius: 50px;
  font-family: "Roboto", sans-serif;
  font-weight: 500;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: fit-content;
}

.filter-button .material-symbols-rounded {
  font-size: 1.25rem;
  transition: transform 0.2s ease;
}

.filter-button:hover .material-symbols-rounded {
  transform: scale(1.1);
}

.filter-button:hover {
  border-color: #0f766e;
  color: #0f766e;
  background: #f0fdfa;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.15);
}

.filter-button.active {
  background: #0f766e;
  color: white;
  border-color: #0f766e;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.25);
}

.filter-button.active .material-symbols-rounded {
  color: white;
  transform: scale(1.1);
}

.filter-button.active::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  animation: shimmer 0.5s ease-out;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

.material-symbols-rounded {
  font-variation-settings:
    "FILL" 0,
    "wght" 400,
    "GRAD" 0,
    "opsz" 24;
}

/* Responsive Typography */
.text-4xl {
  font-size: 2rem;
}
.text-3xl {
  font-size: 1.75rem;
}
.text-2xl {
  font-size: 1.5rem;
}
.text-xl {
  font-size: 1.25rem;
}
.text-lg {
  font-size: 1.125rem;
}

/* Mobile-specific adjustments */
@media (max-width: 768px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .py-12 {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
  .py-8 {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }
  .px-6 {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .gap-12 {
    gap: 2rem;
  }
  .gap-8 {
    gap: 1.5rem;
  }
  .gap-6 {
    gap: 1rem;
  }
  .gap-4 {
    gap: 0.75rem;
  }
  .gap-3 {
    gap: 0.5rem;
  }
}

/* Header adjustments */
@media (max-width: 640px) {
  header .flex {
    flex-direction: row;
    gap: 0.5rem;
    text-align: center;
  }

  header h1 {
    font-size: 1.5rem;
  }

  header nav a {
    font-size: 0.875rem;
  }
}

/* Image Gallery Styles - Mobile Optimized */
.image-gallery {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.main-image {
  width: 100%;
  height: 300px;
  object-fit: contain;
  display: block;
  background-color: #ffffff;
}

@media (min-width: 768px) {
  .main-image {
    height: 500px;
  }
}

.gallery-thumbs {
  display: flex;
  gap: 6px;
  padding: 8px;
  background: #f8f9fa;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.gallery-thumbs::-webkit-scrollbar {
  height: 4px;
}

.gallery-thumbs::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 2px;
}

.thumb {
  width: 60px;
  height: 45px;
  min-width: 60px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

@media (min-width: 768px) {
  .thumb {
    width: 80px;
    height: 60px;
    min-width: 80px;
  }
}

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

.thumb.active {
  border-color: var(--color-primary-700);
  box-shadow: 0 0 0 3px var(--color-primary-200);
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
}

@media (min-width: 768px) {
  .gallery-nav {
    width: 45px;
    height: 45px;
  }
}

.gallery-nav:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: translateY(-50%) scale(1.1);
}

.gallery-prev {
  left: 10px;
}
.gallery-next {
  right: 10px;
}

@media (min-width: 768px) {
  .gallery-prev {
    left: 15px;
  }
  .gallery-next {
    right: 15px;
  }
}

/* Tab Styles - Mobile Optimized */
.tabs-container {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  margin-top: 2rem;
}

.tab-buttons {
  display: flex;
  background: #f8f9fa;
  border-bottom: 1px solid #e0e0e0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.tab-buttons::-webkit-scrollbar {
  height: 4px;
}

.tab-buttons::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 2px;
}

.tab-button {
  flex: 1;
  min-width: 120px;
  padding: 0.75rem 1rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-size: 0.875rem;
  color: #666;
  transition: all 0.3s ease;
  position: relative;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .tab-button {
    padding: 1rem 1.5rem;
    font-size: 1rem;
    min-width: auto;
  }
}

.tab-button .material-symbols-rounded {
  font-size: 1.25rem;
}

.tab-button:hover {
  background: rgba(var(--color-primary-700-rgb), 0.05);
  color: var(--color-primary-700);
}

.tab-button.active {
  color: var(--color-primary-700);
  background: white;
}

.tab-button.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-primary-700);
}

.tab-content {
  padding: 1.5rem;
  display: none;
  animation: fadeIn 0.3s ease-in;
}

@media (min-width: 768px) {
  .tab-content {
    padding: 2rem;
  }
}

.tab-content.active {
  display: block;
}

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

/* PDF Download Card - Mobile Optimized */
.download-card {
  background: linear-gradient(
    135deg,
    var(--color-primary-700) 0%,
    var(--color-primary-600) 100%
  );
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

@media (max-width: 640px) {
  .download-card {
    padding: 1rem;
  }
}

.download-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(var(--color-primary-700-rgb), 0.3);
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  color: var(--color-primary-700);
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  font-size: 0.875rem;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .download-btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
}

.download-btn:hover {
  background: #f8f9fa;
  transform: scale(1.05);
}

/* Mobile responsive layout for download cards */
@media (max-width: 640px) {
  .download-card .flex {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 1rem;
  }

  .download-card .download-btn {
    width: 100%;
    justify-content: center;
  }

  .download-card .text-left {
    width: 100%;
  }
}

/* Specification Table - Mobile Optimized */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: 0.875rem;
}

@media (min-width: 768px) {
  .spec-table {
    font-size: 1rem;
  }
}

.spec-table th {
  background: var(--color-primary-700);
  color: white;
  padding: 0.5rem;
  text-align: left;
  font-family: "Poppins", sans-serif;
  font-size: 0.875rem;
}

@media (min-width: 768px) {
  .spec-table th {
    padding: 0.75rem;
    font-size: 1rem;
  }
}

.spec-table td {
  padding: 0.5rem;
  border-bottom: 1px solid #e0e0e0;
}

@media (min-width: 768px) {
  .spec-table td {
    padding: 0.75rem;
  }
}

.spec-table tr:nth-child(even) {
  background: #f8f9fa;
}

.spec-table tr:hover {
  background: var(--color-primary-50);
}

/* Mobile-specific layout adjustments */
@media (max-width: 768px) {
  .grid-cols-2 {
    grid-template-columns: 1fr;
  }

  .grid-cols-3 {
    grid-template-columns: 1fr;
  }

  .grid-cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .lg\:grid-cols-2 {
    grid-template-columns: 1fr;
  }

  .lg\:grid-cols-3 {
    grid-template-columns: 1fr;
  }
}

/* CTA Section - Mobile Optimized */
@media (max-width: 640px) {
  .bg-primary-700 {
    padding: 2rem 1rem;
  }

  .flex-col.sm\:flex-row {
    gap: 1rem;
  }

  .px-6.py-3 {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
  }
}

/* Applications Section - Mobile */
@media (max-width: 640px) {
  .bg-primary-50,
  .bg-secondary-50 {
    padding: 1rem;
  }

  .text-3xl {
    font-size: 1.5rem;
  }

  .material-symbols-rounded.text-3xl {
    font-size: 2rem;
  }
}

/* Content adjustments for small screens */
@media (max-width: 640px) {
  .prose {
    font-size: 0.875rem;
  }

  .list-disc li {
    margin-bottom: 0.5rem;
  }

  .bg-yellow-50,
  .bg-red-50,
  .bg-gray-50,
  .bg-primary-50 {
    padding: 1rem;
  }
}

/* Make tables scrollable on mobile */
@media (max-width: 640px) {
  .w-full.border-collapse {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }

  .w-full.border-collapse table {
    min-width: 500px;
  }
}

/* Lightbox Modal */
.lightbox-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  position: relative;
}

.lightbox-image {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: transparent;
  border: none;
  color: white;
  font-size: 40px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.lightbox-close:hover {
  transform: scale(1.1);
}

.lightbox-close:focus {
  outline: 2px solid white;
  outline-offset: 2px;
}

.main-image {
  cursor: pointer;
  transition: transform 0.3s ease;
}

.main-image:hover {
  transform: scale(1.02);
}

/* ========================================
   ENHANCED PRODUCTS PAGE STYLES
   ======================================== */

/* Sort Dropdown Styles */
.sort-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sort-dropdown {
  cursor: pointer;
  transition: all 0.2s ease;
}

.sort-dropdown:hover {
  border-color: #12276e;
}

.sort-dropdown:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(18, 39, 110, 0.1);
}

/* Active Filter Pills */
.active-filters-section {
  padding: 1rem;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.active-filters-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.active-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
  color: #047857;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid #0f766e;
  box-shadow: 0 2px 4px rgba(15, 118, 110, 0.1);
  transition: all 0.2s ease;
  animation: pillEnter 0.2s ease-out;
}

@keyframes pillEnter {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.active-filter-pill:hover {
  background: linear-gradient(135deg, #d1fae5 0%, #e6f7ee 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(15, 118, 110, 0.2);
}

.active-filter-pill .material-symbols-rounded {
  cursor: pointer;
  transition: all 0.2s ease;
}

.active-filter-pill .material-symbols-rounded:hover {
  transform: scale(1.2);
}

/* Quick View Modal */
.quick-view-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.quick-view-modal.hidden {
  display: none;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.2s ease-out;
}

.modal-container {
  position: relative;
  background: white;
  border-radius: 20px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #f1f5f9;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

.modal-close:hover {
  background: #e2e8f0;
  transform: scale(1.1);
}

.modal-close:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(18, 39, 110, 0.2);
}

.modal-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 2rem;
}

@media (min-width: 768px) {
  .modal-content {
    grid-template-columns: 1fr 1fr;
  }
}

.modal-image {
  background: #f8fafc;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.modal-details {
  display: flex;
  flex-direction: column;
}

.modal-details .product-category {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  background: #ecfdf5;
  color: #047857;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.product-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.product-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
}

.product-features .material-symbols-rounded {
  color: #12a650;
  flex-shrink: 0;
}

/* Mobile Filter Bottom Sheet */
.filter-bottom-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1001;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-bottom-sheet.open {
  transform: translateY(0);
}

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

.sheet-container {
  position: relative;
  background: white;
  border-radius: 20px 20px 0 0;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
}

.sheet-header {
  padding: 1rem;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.sheet-drag-handle {
  width: 40px;
  height: 4px;
  background: #cbd5e1;
  border-radius: 2px;
  margin-bottom: 0.75rem;
  cursor: grab;
}

.sheet-drag-handle:active {
  cursor: grabbing;
}

.sheet-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.sheet-close-btn:hover {
  background: #f1f5f9;
}

.sheet-content {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}

.sheet-footer {
  padding: 1rem;
  border-top: 1px solid #e2e8f0;
  display: flex;
  gap: 0.75rem;
}

/* Enhanced Product Card Hover Effects */
.product-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(18, 39, 110, 0.15);
}

/* Product Card Image Hover */
.product-card img {
  transition: transform 0.5s ease;
}

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

/* Quick View Button */
.product-card .quick-view-btn {
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .quick-view-btn {
  opacity: 1;
  transform: scale(1);
}

.product-card .quick-view-btn:hover {
  transform: scale(1.1);
}

.product-card .quick-view-btn:focus {
  opacity: 1;
  outline: 2px solid var(--md-sys-color-primary, #1a56db);
  outline-offset: 2px;
}

/* Ensure group hover works for image container */
.product-card .relative.group {
  position: relative;
}

.product-card .relative.group:hover .quick-view-btn {
  opacity: 1;
  transform: scale(1);
}

/* Skeleton Loading State */
.product-card.skeleton {
  pointer-events: none;
}

.skeleton-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(
    90deg,
    #f0f0f0 25%,
    #e0e0e0 50%,
    #f0f0f0 75%
  );
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 8px 8px 0 0;
}

.skeleton-badge {
  width: 100px;
  height: 24px;
  background: linear-gradient(
    90deg,
    #f0f0f0 25%,
    #e0e0e0 50%,
    #f0f0f0 75%
  );
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 12px;
  margin: 1rem;
}

.skeleton-title {
  width: 80%;
  height: 24px;
  background: linear-gradient(
    90deg,
    #f0f0f0 25%,
    #e0e0e0 50%,
    #f0f0f0 75%
  );
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

.skeleton-text {
  width: 100%;
  height: 16px;
  background: linear-gradient(
    90deg,
    #f0f0f0 25%,
    #e0e0e0 50%,
    #f0f0f0 75%
  );
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.skeleton-text.short {
  width: 60%;
}

.skeleton-button {
  width: 120px;
  height: 40px;
  background: linear-gradient(
    90deg,
    #f0f0f0 25%,
    #e0e0e0 50%,
    #f0f0f0 75%
  );
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 8px;
  margin-top: 1rem;
}

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

/* Accessibility Focus Styles */
.product-card:focus-visible {
  outline: 3px solid #12a650;
  outline-offset: 4px;
  border-radius: 12px;
}

.filter-label:focus-visible {
  outline: 2px solid #12a650;
  outline-offset: 2px;
}

.sort-dropdown:focus-visible {
  outline: 2px solid #12a650;
  outline-offset: 2px;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .product-card,
  .product-card img,
  .modal-container,
  .filter-bottom-sheet,
  .active-filter-pill,
  .product-card.skeleton *,
  .skeleton-image,
  .skeleton-badge,
  .skeleton-title,
  .skeleton-text,
  .skeleton-button {
    animation: none !important;
    transition: none !important;
  }

  .product-card:hover {
    transform: none;
  }
}

/* Mobile Responsive Enhancements */
@media (max-width: 767px) {
  .active-filters-section {
    padding: 0.75rem;
  }

  .active-filters-container {
    gap: 0.5rem;
  }

  .modal-container {
    max-height: 95vh;
    border-radius: 16px 16px 0 0;
  }

  .modal-content {
    padding: 1.5rem;
    gap: 1.5rem;
  }

  .sheet-container {
    border-radius: 16px 16px 0 0;
  }
}

/* Touch-Optimized Controls for Mobile */
@media (max-width: 767px) {
  .filter-label {
    padding: 0.875rem 0.75rem;
    min-height: 44px;
  }

  .sort-dropdown {
    padding: 0.75rem;
    min-height: 44px;
  }

  .modal-close {
    width: 44px;
    height: 44px;
  }

  .sheet-close-btn {
    padding: 0.75rem;
    min-width: 44px;
  }
}

/* Loading State Animation for Filtering */
.products-grid.filtering .product-card:not(.skeleton) {
  opacity: 0.5;
  pointer-events: none;
}

/* Filter Active State Enhancement */
.filter-checkbox:checked + .filter-label {
  position: relative;
}

.filter-checkbox:checked + .filter-label::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 8px;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1);
  pointer-events: none;
}

/* Improve Mobile Filter Button */
#mobile-filter-trigger {
  position: relative;
}

#mobile-filter-trigger::after {
  content: "";
  position: absolute;
  top: 4px;
  right: 4px;
  width: 8px;
  height: 8px;
  background: #ef4444;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.2s ease;
}

#mobile-filter-trigger.has-filters::after {
  opacity: 1;
}

/* Smooth Filter Transitions */
.product-card {
  transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card.hidden {
  display: none;
}

.product-card.fade-out {
  opacity: 0;
  transform: scale(0.95);
}

.product-card.fade-in {
  opacity: 0;
  animation: fadeInProduct 0.3s ease forwards;
}

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

/* Print Styles */
@media print {
  .filter-sidebar,
  .sort-controls,
  .active-filters-section,
  #mobile-filter-trigger,
  .quick-view-modal,
  .filter-bottom-sheet {
    display: none !important;
  }

  .product-card {
    break-inside: avoid;
  }
}

/* ============================================
   PARTNER LOGO SECTION STYLES
   ============================================ */

/* Partner Grid Container */
.partners-grid {
  perspective: 1000px;
}

/* Partner Card Reveal Animation */
.partner-card-wrapper {
  animation: fadeSlideUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  animation-play-state: paused; /* Paused until triggered by Intersection Observer */
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Staggered Animation Delays */
.partner-card-wrapper:nth-child(1) {
  animation-delay: 0ms;
}
.partner-card-wrapper:nth-child(2) {
  animation-delay: 50ms;
}
.partner-card-wrapper:nth-child(3) {
  animation-delay: 100ms;
}
.partner-card-wrapper:nth-child(4) {
  animation-delay: 150ms;
}
.partner-card-wrapper:nth-child(5) {
  animation-delay: 200ms;
}
.partner-card-wrapper:nth-child(6) {
  animation-delay: 250ms;
}
.partner-card-wrapper:nth-child(7) {
  animation-delay: 300ms;
}
.partner-card-wrapper:nth-child(8) {
  animation-delay: 350ms;
}
.partner-card-wrapper:nth-child(9) {
  animation-delay: 400ms;
}
.partner-card-wrapper:nth-child(10) {
  animation-delay: 450ms;
}

/* 3D Hover Effect on Cards */
.partner-card {
  transform-style: preserve-3d;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.partner-card:hover {
  transform: translateY(-8px) rotateX(2deg) rotateY(2deg);
  box-shadow:
    0 20px 40px -10px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.8),
    0 0 40px -10px rgba(124, 58, 237, 0.1);
}

/* Logo Pulse Animation on Hover */
.partner-logo {
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.partner-card:hover .partner-logo {
  animation: logoPulse 0.6s ease-out;
}

@keyframes logoPulse {
  0%,
  100% {
    transform: scale(1.1);
  }
  50% {
    transform: scale(1.15);
  }
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
  .partner-card {
    padding: 1.5rem;
  }

  .partner-logo {
    height: 3rem;
  }

  /* On mobile, play animations immediately (no Intersection Observer needed) */
  .partner-card-wrapper {
    animation-play-state: running;
  }
}

/* Reduced Motion Preference */
@media (prefers-reduced-motion: reduce) {
  .partner-card-wrapper {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .partner-card:hover {
    transform: none;
  }

  .partner-logo {
    animation: none;
  }
}
