/* CSS Custom Properties (Variables) */
:root {
  /* Colors */
  --primary-color: #ff4081;
  --primary-hover-color: #e91e63;
  --background-dark: #000000;
  --background-light: #ffffff;
  --text-primary: #000000;
  --text-secondary: #ffffff;
  --text-muted: #6b7280;
  --text-gray: #374151;
  --border-color: #e5e7eb;
  --border-dark: #4b5563;

  /* Typography */
  --font-primary: "Inter", sans-serif;
  --font-heading: "Inter", sans-serif;
  --font-body: "Inter", sans-serif;

  /* Section Spacing */
  --section-padding-mobile: 7rem;
  --section-padding-tablet: 8rem;
  --section-padding-desktop: 8rem;
  --section-title-padding: 6rem;

  /* Font Sizes */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;
  --text-7xl: 4.5rem;
  --text-8xl: 6rem;

  /* Header/Navigation */
  --header-background: rgba(0, 0, 0, 0.4);
  --header-text-color: #ffffff;
  --header-text-hover: var(--primary-color);
  --header-font: var(--font-primary);
  --header-font-weight: 600;

  /* Buttons */
  --button-primary-bg: var(--primary-color);
  --button-primary-text: #ffffff;
  --button-primary-hover: var(--primary-hover-color);
  --button-secondary-bg: #ffffff;
  --button-secondary-text: var(--primary-color);
  --button-secondary-hover: #f3f4f6;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);

  /* Border Radius */
  --radius-sm: 0.125rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-2xl: 1rem;
  --radius-3xl: 1.5rem;

  /* Transitions */
  --transition-fast: 0.15s ease-in-out;
  --transition-normal: 0.3s ease-in-out;
  --transition-slow: 0.5s ease-in-out;
}

/* Video Styles - Full screen container */
.video-container {
  width: 100vw;
  height: 100vh;
  position: relative;
  margin: 0;
  overflow: hidden;
  z-index: 1;
}

/* 16:9 aspect ratio for medium to extra large screens */
@media (min-width: 768px) {
  .video-container {
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    position: relative;
    overflow: hidden;
  }
}

/* Full viewport for small screens and below */
@media (max-width: 767px) {
  .video-container {
    width: 100vw;
    height: 100vh;
    padding-bottom: 0;
  }
}

/* Video wrapper for zoom effect */
.video-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

/* Adjust wrapper positioning for aspect ratio screens */
@media (min-width: 768px) {
  .video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
}

#backgroundVideo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Adjust video positioning for aspect ratio screens */
@media (min-width: 768px) {
  #backgroundVideo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
}

/* Adjust overlay for aspect ratio */
@media (min-width: 768px) {
  .video-container .absolute.inset-0 {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
  }
}

/* Navbar Scroll Blur Effect */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  backdrop-filter: blur(0px);
  background-color: rgba(0, 0, 0, 0);
  transition: background-color 1s ease, backdrop-filter 1s ease;
  -webkit-transition: background-color 1s ease, backdrop-filter 1s ease;
  z-index: 9999;
}

/* Navbar blur only on desktop */
@media (min-width: 1024px) {
  #navbar.scrolled {
    background-color: rgba(0, 0, 0, 0.1) !important;
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
  }
}

/* No blur for mobile and tablet */
@media (max-width: 1023px) {
  #navbar.scrolled {
    background-color: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}

/* Dynamic Island Styles - Fixed for all screen sizes */
.dynamic-island {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 50px;
  padding: 12px 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.dynamic-island:hover {
  transform: scale(1.05);
  background: rgba(0, 0, 0, 0.9);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Mobile Dynamic Island - Fixed size and backdrop */
.dynamic-island-mobile {
  background: rgba(0, 0, 0, 0.4);
  border-radius: 20px;
  padding: 16px 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.dynamic-island-mobile:hover {
  transform: scale(1.05);
  background: rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 255, 255, 0.4);
}

/* Fixed icon size for mobile */
.mobile-menu-icon {
  width: 28px;
  height: 28px;
  stroke-width: 2.5;
}

/* Tablet Dynamic Island */
.dynamic-island-tablet {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 20px;
  padding: 16px 20px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.dynamic-island-tablet:hover {
  transform: scale(1.08);
  background: rgba(0, 0, 0, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
}

/* Tablet icon size */
.tablet-menu-icon {
  width: 28px;
  height: 28px;
  stroke-width: 2.8;
}

/* Menu Animations */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes menuExpand {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(-50%) scale(0.8);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(-50%) scale(1);
  }
}

@keyframes menuItemFadeIn {
  from {
    opacity: 0;
    transform: translateX(-20px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

.menu-slide-down {
  animation: slideDown 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-expand {
  animation: menuExpand 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-item {
  animation: menuItemFadeIn 600ms cubic-bezier(0.4, 0, 0.2, 1) both;
}

/* Enhanced Backdrop Blur */
#tabletMenu {
  backdrop-filter: saturate(150%) blur(30px);
  -webkit-backdrop-filter: saturate(150%) blur(30px);
}

#mobileMenu {
  backdrop-filter: saturate(120%) blur(25px);
  -webkit-backdrop-filter: saturate(120%) blur(25px);
}

/* Glass Morphism Effect */
.glass-effect {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* Hover Effects for Menu Items */
.menu-item:hover {
  text-shadow: 0 0 20px currentColor;
  transform: translateY(-2px);
}

/* Close Button Enhancement */
#tabletCloseBtn {
  transition: all 0.3s ease;
}

#tabletCloseBtn:hover {
  transform: scale(1.1) rotate(90deg);
  background: rgba(255, 255, 255, 0.2);
}

/* Ensure video plays on all devices */
video {
  -webkit-playsinline: true;
  -moz-playsinline: true;
  playsinline: true;
}

/* Mobile touch optimizations */
@media (max-width: 767px) {
  * {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
}

/* Tablet optimizations */
@media (min-width: 768px) and (max-width: 1023px) {
  .dynamic-island-tablet {
    padding: 14px 18px;
    border-radius: 18px;
  }

  .tablet-menu-icon {
    width: 26px;
    height: 26px;
    stroke-width: 3;
  }
  
  /* Remove navbar background on tablet */
  #navbar {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  
  #navbar.scrolled {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: none !important;
  }
}

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

/* Security Measures - Prevent Content Theft */
* {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

/* Allow text selection only for specific elements */
input, textarea, [contenteditable="true"] {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

/* Prevent drag and drop */
img, video, audio {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
  pointer-events: none;
}

/* Make clickable elements work */
a, button, [role="button"], input, textarea, select, nav, nav *, #navbar, #navbar * {
  pointer-events: auto !important;
}

/* Specific navigation bar fixes */
#navbar {
  pointer-events: auto !important;
}

#navbar *, #navbar a, #navbar button, #navbar div {
  pointer-events: auto !important;
}

/* Navigation links specific fixes */
.nav-link {
  pointer-events: auto !important;
  cursor: pointer !important;
  display: inline-block !important;
}

/* Menu containers */
#mobileMenu, #tabletMenu, #mobileMenuBtn, #tabletMenuBtn, #tabletCloseBtn {
  pointer-events: auto !important;
}

/* Override any security measures that might block navbar */
#navbar, #navbar *, .nav-link, #mobileMenuBtn, #tabletMenuBtn, #tabletCloseBtn {
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  user-select: none !important;
  pointer-events: auto !important;
  cursor: pointer !important;
}

/* Prevent text selection on specific elements */
body, h1, h2, h3, h4, h5, h6, p, span, div {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Hide scrollbars to prevent easy navigation */
::-webkit-scrollbar {
  width: 0px;
  background: transparent;
}

/* Prevent highlighting */
::selection {
  background: transparent;
}
::-moz-selection {
  background: transparent;
}

/* Prevent print */
@media print {
  * {
    display: none !important;
  }
}

/* Mobile optimizations */
@media (max-width: 767px) {
  .dynamic-island-mobile {
    padding: 14px 18px;
    border-radius: 18px;
  }

  .mobile-menu-icon {
    width: 26px;
    height: 26px;
  }
  
  /* Remove navbar background on mobile */
  #navbar {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  
  #navbar.scrolled {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: none !important;
  }
  
  /* Optimize glasmorphism for mobile performance */
  .backdrop-blur-md {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(255, 255, 255, 0.15) !important;
  }
  
  .backdrop-blur-sm {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(255, 255, 255, 0.1) !important;
  }
  
  /* Remove expensive animations on mobile */
  .group:hover {
    transform: none !important;
  }
  
  .group-hover\:scale-110 {
    transform: none !important;
  }
  
  .hover\:-translate-y-1:hover {
    transform: none !important;
  }
  
  /* Simplify borders on mobile */
  .border-white\/20 {
    border-color: rgba(255, 255, 255, 0.1) !important;
  }
  
  .hover\:border-white\/30:hover {
    border-color: rgba(255, 255, 255, 0.15) !important;
  }
  
  /* Remove blur effects from specific sections on mobile */
  #community .backdrop-blur-md,
  #access .backdrop-blur-xl,
  #matters .backdrop-blur-md {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(255, 255, 255, 0.12) !important;
  }
  
  /* Optimize background patterns on mobile */
  .blur-3xl {
    filter: none !important;
    opacity: 0.03 !important;
  }
  
  .animate-pulse {
    animation: none !important;
  }
  
  /* Reduce section padding on mobile */
  section {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
  
  .py-20, .py-24, .py-32 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
  
  .py-16 {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
  }
  
  .pt-40 {
    padding-top: 8rem !important;
  }
  
  .pb-16 {
    padding-bottom: 1.5rem !important;
  }
  
  .mb-16, .mb-20 {
    margin-bottom: 1.5rem !important;
  }
  
  .mb-12 {
    margin-bottom: 1rem !important;
  }
  
  .pt-20 {
    padding-top: 2rem !important;
  }
}

/* Models Section Styles */
.models-container {
  margin: 0;
  padding: 0;
  border: none;
  max-width: none;
}

.models-grid {
  margin: 0;
  padding: 0;
  gap: 0;
  border: none;
}

/* Mobile: Stack vertically, no scroll */
@media (max-width: 767px) {
  .models-container {
    overflow: visible;
    width: 100%;
  }

  .models-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0 !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
  }

  .model-card {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    margin: 0 !important;
    display: block !important;
  }
}

/* Tablet and Desktop: Horizontal scroll */
@media (min-width: 768px) {
  .models-container {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    scroll-behavior: auto; /* Remove smooth scrolling for better performance */
    scroll-snap-type: none; /* Remove snap scrolling to prevent lag */
    -webkit-overflow-scrolling: touch; /* iOS smooth scrolling */
    transform: translateZ(0); /* Hardware acceleration */
    will-change: scroll-position; /* Optimize for scrolling */
  }

  .models-container::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
  }

  .models-grid {
    display: flex;
    flex-direction: row;
    width: 100%; /* Always full width to prevent black space */
    min-width: 100%;
    gap: 0; /* Ensure no gaps */
    margin: 0;
    padding: 0;
    justify-content: flex-start; /* Default alignment */
  }

  /* Center single model card */
  .models-grid:has(.model-card:only-child) {
    justify-content: center;
    width: 100%;
    min-width: auto;
  }

  /* Center 2-3 models */
  .models-grid:has(.model-card:nth-child(2):last-child),
  .models-grid:has(.model-card:nth-child(3):last-child) {
    justify-content: center;
    width: 100%;
    min-width: auto;
  }

  /* Handle exactly 4 models - full width */
  .models-grid:has(.model-card:nth-child(4):last-child) {
    width: 100%;
    min-width: 100%;
    justify-content: space-between;
  }

  /* Handle 5+ models - scrollable layout */
  .models-grid:has(.model-card:nth-child(5)) {
    width: max-content;
    min-width: auto;
    justify-content: flex-start;
  }

  /* Single model card styling */
  .models-grid .model-card:only-child {
    min-width: 400px;
    max-width: 400px;
    flex-shrink: 0;
  }

  .model-card {
    min-width: 23.26vw; /* Back to 4.3 layout for 8 models (23.26vw × 4.3 ≈ 100vw) */
    max-width: 23.26vw;
    flex-shrink: 0;
    scroll-snap-align: none; /* Remove snap alignment to prevent lag */
    border: none; /* Remove any borders */
    outline: none; /* Remove any outlines */
    margin: 0; /* Remove any margins */
    padding: 0; /* Remove any padding */
    margin-left: -0.02vw; /* Tiny overlap to prevent white lines */
    transform: translateZ(0); /* Hardware acceleration for each card */
    will-change: auto; /* Let browser optimize */
  }

  /* Exactly 4 models - full width distribution */
  .models-grid:has(.model-card:nth-child(4):last-child) .model-card {
    min-width: 25vw; /* 4 cards × 25vw = 100vw */
    max-width: 25vw;
    margin-left: 0; /* No overlap for full width layout */
  }

  .model-card:first-child {
    margin-left: 0; /* No overlap for first card */
  }
}

/* Fallback for browsers without :has() support */
.models-grid.single-model,
.models-grid.center-models {
  justify-content: center;
  width: 100%;
  min-width: auto;
}

.models-grid.four-models {
  width: 100%;
  min-width: 100%;
  justify-content: space-between;
}

.models-grid.multiple-models {
  width: max-content;
  min-width: auto;
  justify-content: flex-start;
}

.models-grid.single-model .model-card {
  min-width: 400px;
  max-width: 400px;
  flex-shrink: 0;
  margin-left: 0; /* No overlap for single model */
}

.models-grid.four-models .model-card {
  min-width: 25vw; /* 4 cards × 25vw = 100vw */
  max-width: 25vw;
  margin-left: 0; /* No overlap for full width layout */
}

/* Single model hover effect fallback */
.models-grid.single-model:hover .model-card {
  transform: translateZ(0) scale(1.05);
}

/* Multiple models fallback hover effects */
.models-grid:not(.single-model):hover .model-card {
  min-width: 20vw;
  max-width: 20vw;
  transform: translateZ(0) scale(0.98);
  margin-left: -0.03vw;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.models-grid:not(.single-model):hover .model-card:first-child {
  margin-left: 0;
}

.models-grid:not(.single-model):hover .model-card:hover {
  min-width: 40vw;
  max-width: 40vw;
  transform: translateZ(0) scale(1.02);
  margin-left: -0.01vw;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.model-card {
  margin: 0;
  padding: 0;
  border: none;
  outline: none;
  max-width: none;
  height: 300px;
  position: relative;
  cursor: pointer;
  flex: none; /* Prevent flex-grow, maintain fixed width */
  box-sizing: border-box; /* Include borders in width calculation */
  background: transparent; /* Ensure no background color */
}

.model-card img {
  margin: 0;
  padding: 0;
  border: none;
  outline: none;
  max-width: none;
  display: block;
  vertical-align: top; /* Prevent baseline gaps */
  line-height: 0; /* Remove line-height gaps */
  transform: translateZ(0); /* Hardware acceleration */
  will-change: auto; /* Let browser optimize */
  image-rendering: -webkit-optimize-contrast; /* Optimize rendering */
  image-rendering: crisp-edges; /* Better performance */
}

/* Image switching effect */
.model-img-blur {
  z-index: 2;
}

.model-img-clear {
  z-index: 1;
}

/* Responsive heights for model cards - 16:9 on mobile, TikTok Style on larger screens */
@media (max-width: 767px) {
  .model-card {
    height: 225px; /* 16:9 aspect ratio for mobile */
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .model-card {
    height: 600px; /* Even taller for tablet */
  }
}

@media (min-width: 1024px) {
  .model-card {
    height: 700px; /* Much taller for desktop - TikTok vertical format */
  }
}

/* Animation for scroll reveal */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.models-grid {
  animation: slideInUp 0.8s ease-out;
}

/* Hover width expansion effect - only for tablet and desktop */
@media (min-width: 768px) {
  .models-grid {
    transition: none; /* Remove grid transition for better performance */
    will-change: auto; /* Let browser optimize */
  }

  .model-card {
    transition: transform 0.3s ease, min-width 0.3s ease, max-width 0.3s ease; /* Optimize specific properties */
    will-change: transform, min-width, max-width; /* Specific properties */
    transform: translateZ(0); /* Hardware acceleration */
    backface-visibility: hidden; /* Prevent flickering */
    perspective: 1000px; /* Better 3D rendering */
    contain: layout style paint; /* CSS containment for better performance */
  }

  /* Image optimization for smoother animations */
  .model-card img {
    transition: transform 0.3s ease, opacity 0.3s ease; /* Optimize specific properties */
    will-change: transform, opacity;
    backface-visibility: hidden;
    contain: layout style paint; /* CSS containment for better performance */
  }

  /* Single model hover effect - just scale, no width change */
  .models-grid:has(.model-card:only-child):hover .model-card {
    transform: translateZ(0) scale(1.05);
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  /* Multiple models hover effects */
  .models-grid:not(:has(.model-card:only-child)):hover .model-card {
    min-width: 20vw; /* Shrink to 20vw for better balance */
    max-width: 20vw;
    transform: translateZ(0) scale(0.98); /* Slightly more shrink for smoother effect */
    margin-left: -0.03vw; /* Slight overlap during hover */
    transition: transform 0.25s ease, min-width 0.25s ease, max-width 0.25s ease; /* Faster transitions */
  }

  .models-grid:not(:has(.model-card:only-child)):hover
    .model-card:first-child {
    margin-left: 0; /* No overlap for first card during hover */
  }

  /* The hovered card expands (only for multiple models) */
  .models-grid:not(:has(.model-card:only-child)):hover .model-card:hover {
    min-width: 40vw; /* Expand to 40vw (20vw × 3 + 40vw = 100vw) */
    max-width: 40vw;
    transform: translateZ(0) scale(1.02); /* Slightly more emphasis */
    margin-left: -0.01vw; /* Maintain tiny overlap */
    transition: transform 0.2s ease, min-width 0.2s ease, max-width 0.2s ease; /* Even faster expansion */
  }
}

.models-row {
  animation: slideInUp 0.8s ease-out;
}

.models-row:nth-child(2) {
  animation-delay: 0.2s;
}

/* Models Navigation Arrows */
#modelsLeftArrow,
#modelsRightArrow {
  pointer-events: auto !important; /* Override security settings for navigation */
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  cursor: pointer;
  z-index: 50;
}

#modelsLeftArrow:hover,
#modelsRightArrow:hover {
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 8px 25px rgba(255, 64, 129, 0.4);
}

#modelsLeftArrow:active,
#modelsRightArrow:active {
  transform: translateY(-50%) scale(0.95);
}

/* Ensure arrows are positioned correctly */
#modelsLeftArrow {
  left: 1rem;
}

#modelsRightArrow {
  right: 1rem;
}

/* Hide arrows on mobile and show models in single column */
@media (max-width: 767px) {
  #modelsLeftArrow,
  #modelsRightArrow {
    display: none !important;
  }
}

/* Enhanced Image Modal Styles - Add this to your existing CSS */
#imageModal {
    z-index: 9999 !important;
    backdrop-filter: blur(4px);
}

.modal-close-btn {
    background: rgba(0, 0, 0, 0.8) !important;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    z-index: 10000 !important;
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

#modalImage {
    z-index: 9999 !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Prevent body scroll when modal is open */
body.modal-open {
    overflow: hidden !important;
    height: 100vh !important;
}