/* ==============================================================================
   Art Gallery.ma - Modern Aesthetic CSS with Advanced Animations
   ============================================================================== */

/* CSS Variables for consistent theming */
:root {
  /* Color Palette */
  --primary-gold: #D4AF37;
  --secondary-gold: #F4E4BC;
  --dark-charcoal: #1A1A1A;
  --soft-black: #2C2C2C;
  --pearl-white: #FAFAFA;
  --warm-white: #F8F6F0;
  --accent-blue: #3A5A78;
  --muted-gray: #666666;
  --light-gray: #E5E5E5;
  --rich-navy: #1A202C;
  --slate-blue: #2D3748;
  
  /* Typography */
  --font-primary: 'Playfair Display', serif;
  --font-secondary: 'Inter', sans-serif;
  --font-arabic: 'Cairo', 'Noto Naskh Arabic', sans-serif;
  --font-arabic-modern: 'Cairo', sans-serif;
  
  /* Spacing */
  --section-padding: 120px 0;
  --container-padding: 0 20px;
  --border-radius: 12px;
  
  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  
  /* Shadows */
  --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 20px 60px rgba(0, 0, 0, 0.15);
  --shadow-strong: 0 30px 80px rgba(0, 0, 0, 0.2);
  
  /* Gradients */
  --gradient-gold: linear-gradient(135deg, #D4AF37 0%, #F4E4BC 100%);
  --gradient-dark: linear-gradient(135deg, #1A1A1A 0%, #2C2C2C 100%);
  --gradient-overlay: linear-gradient(135deg, rgba(26, 26, 26, 0.8) 0%, rgba(44, 44, 44, 0.6) 100%);
}

/* Performance Optimizations */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Enable GPU acceleration for better performance */
.hero-video video,
.exposition-video video,
.artboard-image img,
.lightbox-content,
.whatsapp-sticky,
.btn-buy,
.artboard-item,
.navbar,
.section-title {
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* Enhanced Performance Optimizations */
html {
  scroll-behavior: smooth;
}

body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Smooth loading transitions */
img, video {
  transition: opacity 0.3s ease-in-out;
}

/* Optimize for 60fps animations */
@media (prefers-reduced-motion: no-preference) {
  * {
    scroll-behavior: smooth;
  }
}

/* Optimize animations */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-secondary);
  line-height: 1.6;
  color: #F7FAFC;
  background: linear-gradient(135deg, #000000 0%, #0a0a0a 15%, #1a1a1a 30%, #0f0f0f 45%, #000000 60%, #0a0a0a 75%, #1a1a1a 90%, #000000 100%);
  background-size: 300% 300%;
  animation: gradientShift 12s ease infinite;
  overflow-x: hidden;
  position: relative;
  will-change: background-position;
  transform: translateZ(0);
}

/* Prevent horizontal overflow on all devices */
html, body {
  max-width: 100vw;
  overflow-x: hidden;
}

/* Enhanced menu open state */
body.menu-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 20%, rgba(212, 175, 55, 0.01) 0%, transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(212, 175, 55, 0.008) 0%, transparent 40%),
    radial-gradient(circle at 40% 70%, rgba(212, 175, 55, 0.012) 0%, transparent 35%);
  animation: gentlePulse 25s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
  will-change: opacity;
  transform: translateZ(0);
}

/* Arabic Direction Support */
body.lang-ar {
  direction: rtl;
  font-family: var(--font-arabic);
}

body.lang-ar .hero-title,
body.lang-ar .section-title {
  font-family: var(--font-arabic);
  font-weight: 600;
  letter-spacing: 1px;
}

body.lang-ar .hero-subtitle,
body.lang-ar .section-subtitle {
  font-family: var(--font-arabic);
  font-weight: 400;
  line-height: 1.8;
}

body.lang-ar .nav-link,
body.lang-ar .btn-primary,
body.lang-ar .btn-secondary {
  font-family: var(--font-arabic-modern);
  font-weight: 500;
}

body.lang-ar .quote-arabic {
  font-family: var(--font-arabic);
  font-size: 1.2rem;
  line-height: 2;
  font-weight: 400;
}

/* Language Content Display */
.lang-content {
  display: none;
}

body.lang-en .lang-content[data-lang="en"],
body.lang-ar .lang-content[data-lang="ar"],
body.lang-fr .lang-content[data-lang="fr"] {
  display: block;
}

/* Loading Screen */
#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--gradient-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 1;
  visibility: visible;
  transition: all 1s ease-in-out;
}

#loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

.loading-content {
  text-align: center;
  color: #FFFFFF;
}

.loading-logo img {
  width: 120px;
  height: auto;
  animation: logoFloat 2s ease-in-out infinite;
}

.loading-text {
  margin-top: 30px;
  font-size: 1.2rem;
  font-weight: 300;
  letter-spacing: 2px;
  color: #FFFFFF;
}

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

/* Container */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--container-padding);
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1000;
  transition: var(--transition-smooth);
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.navbar.scrolled {
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  box-shadow: var(--shadow-soft);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.nav-logo img {
  height: 50px;
  width: auto;
  transition: var(--transition-smooth);
}

.nav-logo img:hover {
  transform: scale(1.05);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-link {
  color: #FFFFFF !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  position: relative;
  transition: var(--transition-smooth);
  padding: 10px 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  opacity: 1;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-gold);
  transition: var(--transition-smooth);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover {
  color: var(--primary-gold) !important;
  text-shadow: 0 2px 4px rgba(212, 175, 55, 0.4);
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}

.language-switcher {
  display: flex;
  gap: 5px;
}

.lang-btn {
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid var(--primary-gold);
  color: #FFFFFF;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(15px);
}

.lang-btn:hover,
.lang-btn.active {
  background: var(--primary-gold);
  color: var(--dark-charcoal);
  transform: translateY(-2px);
}

/* Mobile Menu */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #FFFFFF;
  transition: var(--transition-smooth);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Ensure hamburger menu text is white */
.hamburger {
  color: #FFFFFF;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: transparent;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.hero-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.35) 0%,
    rgba(0, 0, 0, 0.5) 60%,
    rgba(0, 0, 0, 0.55) 100%
  );
}

.hero-content {
  text-align: center;
  color: var(--pearl-white);
  max-width: 800px;
  padding: 0 20px;
  position: relative;
  z-index: 1;
  background: transparent;
}

/* Responsive hero content */
@media (max-width: 768px) {
  .hero-content {
    max-width: 90%;
    padding: 0 15px;
  }
}

@media (max-width: 480px) {
  .hero-content {
    max-width: 95%;
    padding: 0 10px;
  }
}

.hero-title {
  font-family: var(--font-primary);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  margin-bottom: 20px;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
}

/* Hero title spans inherit golden gradient */
.hero-title .animated-title {
  display: inline-block;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Responsive hero title sizing */
@media (max-width: 768px) {
  .hero-title .animated-title {
    font-size: inherit;
  }
}

@media (max-width: 480px) {
  .hero-title .animated-title {
    font-size: inherit;
  }
}

/* Removed all animations and pseudo-elements */

/* Removed unused animation keyframes */

@keyframes titleGlow {
  0% { filter: brightness(1); }
  100% { filter: brightness(1.2); }
}

/* All animations removed - cleaned up */

.hero-subtitle {
  font-size: 1.4rem;
  font-weight: 300;
  margin-bottom: 15px;
  letter-spacing: 1px;
  color: #FFFFFF !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  opacity: 1;
}

.hero-ceo {
  font-size: 1.1rem;
  color: #FFFFFF !important;
  margin-bottom: 40px;
  font-weight: 500;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Responsive hero buttons */
@media (max-width: 768px) {
  .hero-buttons {
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .hero-buttons {
    gap: 12px;
  }
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition-bounce);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-gold);
  color: var(--dark-charcoal);
  border: none;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  border: 2px solid rgba(255, 255, 255, 0.85);
}

.btn-primary:hover,
.btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
}

.btn-primary:hover {
  box-shadow: 0 20px 40px rgba(212, 175, 55, 0.4);
}

.btn-secondary:hover {
  background: var(--pearl-white);
  color: var(--dark-charcoal);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollBounce 2s infinite;
}

/* Responsive scroll indicator */
@media (max-width: 768px) {
  .scroll-indicator {
    bottom: 25px;
  }
  
  .mouse {
    width: 22px;
    height: 35px;
  }
  
  .wheel {
    width: 2.5px;
    height: 5px;
  }
}

@media (max-width: 480px) {
  .scroll-indicator {
    bottom: 20px;
  }
  
  .mouse {
    width: 20px;
    height: 30px;
  }
  
  .wheel {
    width: 2px;
    height: 4px;
  }
}

.mouse {
  width: 25px;
  height: 40px;
  border: 2px solid var(--pearl-white);
  border-radius: 15px;
  position: relative;
}

.wheel {
  width: 3px;
  height: 6px;
  background: var(--pearl-white);
  margin: 6px auto;
  border-radius: 2px;
  animation: scrollWheel 2s infinite;
}

@keyframes scrollBounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

@keyframes scrollWheel {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(6px); }
}

/* Classy Background Animations */
@keyframes gradientShift {
  0% { background-position: 0% 0%; }
  25% { background-position: 100% 0%; }
  50% { background-position: 100% 100%; }
  75% { background-position: 0% 100%; }
  100% { background-position: 0% 0%; }
}

@keyframes slowGradientShift {
  0% { background-position: 0% 0%; }
  16.66% { background-position: 100% 0%; }
  33.33% { background-position: 100% 50%; }
  50% { background-position: 100% 100%; }
  66.66% { background-position: 50% 100%; }
  83.33% { background-position: 0% 100%; }
  100% { background-position: 0% 0%; }
}

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

@keyframes gentlePulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}

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

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 80px;
}

.section-title {
  font-family: var(--font-primary);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 600;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
  background: linear-gradient(45deg, #D4AF37 0%, #F4E4BC 30%, #FFD700 60%, #D4AF37 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: goldGradientMove 3s ease-in-out infinite;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

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

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--gradient-gold);
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.2rem;
  color: #FFFFFF !important;
  font-weight: 400;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* About Section */
.about {
  padding: var(--section-padding);
  background: linear-gradient(135deg, #000000 0%, #0a0a0a 15%, #1a1a1a 30%, #0f0f0f 45%, #000000 60%, #0a0a0a 75%, #1a1a1a 90%, #000000 100%);
  background-size: 400% 400%;
  animation: slowGradientShift 25s ease infinite;
  position: relative;
  overflow: hidden;
}

.about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 80%, rgba(212, 175, 55, 0.05) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.03) 0%, transparent 50%);
  animation: gentlePulse 8s ease-in-out infinite;
  pointer-events: none;
}

/* Vision & Mission Cards Container */
.vision-mission-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Individual Card Styling */
.vm-card {
  position: relative;
  height: 100%;
  min-height: 450px;
  perspective: 1000px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.vm-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  background: rgba(26, 26, 26, 0.9);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 30px;
  padding: 40px 30px;
  box-shadow: 
    0 25px 80px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 0 rgba(212, 175, 55, 0.1);
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Card Hover Effects */
.vm-card:hover .vm-card-inner {
  transform: translateY(-10px) rotateX(5deg);
  box-shadow: 
    0 30px 80px rgba(0, 0, 0, 0.6),
    0 0 50px rgba(212, 175, 55, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border-color: rgba(212, 175, 55, 0.6);
}

/* Card Icon */
.vm-card-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  font-size: 2.2rem;
  color: var(--dark-charcoal);
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
  transition: var(--transition-smooth);
}

.vm-card:hover .vm-card-icon {
  transform: scale(1.1) rotateY(360deg);
  box-shadow: 0 15px 40px rgba(212, 175, 55, 0.6);
}

/* Card Content */
.vm-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
}

.vm-card-title {
  font-family: var(--font-primary);
  font-size: 2rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 20px;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.vm-card-divider {
  width: 60px;
  height: 3px;
  background: var(--gradient-gold);
  margin: 0 auto 25px;
  border-radius: 2px;
  transition: var(--transition-smooth);
}

.vm-card:hover .vm-card-divider {
  width: 100px;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
}

.vm-card-text {
  color: #E2E8F0;
  line-height: 1.8;
  font-size: 1.05rem;
  font-weight: 400;
  opacity: 0.95;
  transition: var(--transition-smooth);
}

.vm-card:hover .vm-card-text {
  color: #F7FAFC;
  opacity: 1;
}

/* Glow Effect */
.vm-card-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: var(--transition-smooth);
  pointer-events: none;
  z-index: -1;
}

.vm-card:hover .vm-card-glow {
  opacity: 1;
  transform: rotate(45deg);
}

/* Card Specific Styling */
.vision-card .vm-card-inner {
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.9) 0%, rgba(40, 40, 40, 0.8) 100%);
}

.mission-card .vm-card-inner {
  background: linear-gradient(135deg, rgba(30, 30, 30, 0.9) 0%, rgba(26, 26, 26, 0.8) 100%);
}

/* Animation Keyframes */
@keyframes cardFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-5px); }
}

@keyframes iconPulse {
  0%, 100% { box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4); }
  50% { box-shadow: 0 15px 40px rgba(212, 175, 55, 0.6); }
}

.vm-card-icon {
  animation: iconPulse 3s ease-in-out infinite;
}

/* Floating Animation */
.vm-card:nth-child(1) {
  animation: cardFloat 6s ease-in-out infinite;
}

.vm-card:nth-child(2) {
  animation: cardFloat 6s ease-in-out infinite 3s;
}

/* Arabic RTL Support */
body.lang-ar .vm-card-content {
  text-align: right;
  direction: rtl;
}

body.lang-ar .vm-card-title,
body.lang-ar .vm-card-text {
  font-family: var(--font-arabic);
}

body.lang-ar .vm-card-text {
  line-height: 2.2;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .vision-mission-cards {
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 800px;
  }
  
  .vm-card {
    min-height: 400px;
  }
  
  .vm-card-inner {
    padding: 35px 25px;
  }
}

@media (max-width: 768px) {
  .vision-mission-cards {
    padding: 10px;
    gap: 25px;
  }
  
  .vm-card {
    min-height: 350px;
  }
  
  .vm-card-inner {
    padding: 30px 20px;
    border-radius: 25px;
  }
  
  .vm-card-icon {
    width: 60px;
    height: 60px;
    font-size: 1.8rem;
    margin-bottom: 20px;
  }
  
  .vm-card-title {
    font-size: 1.6rem;
    margin-bottom: 15px;
  }
  
  .vm-card-text {
    font-size: 0.95rem;
    line-height: 1.7;
  }
  
  .vm-card-divider {
    width: 40px;
    margin-bottom: 20px;
  }
}

@media (max-width: 480px) {
  .vm-card {
    min-height: 320px;
  }
  
  .vm-card-inner {
    padding: 25px 15px;
  }
  
  .vm-card-title {
    font-size: 1.4rem;
  }
  
  .vm-card-text {
    font-size: 0.9rem;
    line-height: 1.6;
  }
  
  .vm-card-icon {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
}

/* Performance Optimization */
@media (prefers-reduced-motion: reduce) {
  .vm-card,
  .vm-card-icon,
  .vm-card-glow,
  .vm-card-inner,
  .vm-card-divider {
    animation: none !important;
    transition: none !important;
  }
}

/* Legacy about styles (removed to prevent conflicts) */

/* Gallery Section */
.gallery {
  padding: var(--section-padding);
  background: linear-gradient(225deg, #000000 0%, #0a0a0a 12%, #1a1a1a 25%, #0f0f0f 37%, #000000 50%, #0a0a0a 62%, #1a1a1a 75%, #0f0f0f 87%, #000000 100%);
  background-size: 500% 500%;
  animation: slowGradientShift 30s ease infinite;
  position: relative;
}

.gallery::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 30% 30%, rgba(212, 175, 55, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 70% 70%, rgba(212, 175, 55, 0.02) 0%, transparent 40%);
  animation: subtleFloat 12s ease-in-out infinite;
  pointer-events: none;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.gallery-item {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: var(--transition-smooth);
  aspect-ratio: 1;
  min-height: 300px;
}

.gallery-item:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-strong);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 26, 26, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-smooth);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-info {
  text-align: center;
  color: var(--pearl-white);
  padding: 20px;
}

.gallery-info h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--primary-gold);
}

.gallery-info p {
  font-size: 1rem;
  margin-bottom: 20px;
  opacity: 0.9;
}

.gallery-icons {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.gallery-btn {
  width: 50px;
  height: 50px;
  border: 2px solid var(--primary-gold);
  background: transparent;
  border-radius: 50%;
  color: var(--primary-gold);
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition-bounce);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-btn:hover {
  background: var(--primary-gold);
  color: var(--dark-charcoal);
  transform: scale(1.1);
}

/* Gallery Filter */
.gallery-filter {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 12px 25px;
  border: 2px solid var(--primary-gold);
  background: transparent;
  color: var(--primary-gold);
  border-radius: 25px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-smooth);
  font-size: 1rem;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary-gold);
  color: var(--dark-charcoal);
  transform: translateY(-2px);
}

/* History Section - Horizontal Morphism Slider */
.history {
  padding: var(--section-padding);
  background: linear-gradient(135deg, #000000 0%, #0a0a0a 14%, #1a1a1a 28%, #0f0f0f 42%, #000000 56%, #0a0a0a 70%, #1a1a1a 84%, #000000 100%);
  background-size: 450% 450%;
  animation: slowGradientShift 28s ease infinite;
  overflow: hidden;
  position: relative;
}

.history::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse at 10% 20%, rgba(212, 175, 55, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 90% 80%, rgba(212, 175, 55, 0.04) 0%, transparent 60%);
  animation: gentlePulse 10s ease-in-out infinite reverse;
  pointer-events: none;
}

.history-slider-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 60px;
}

.history-slider {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  touch-action: pan-y;
}

.history-slide {
  min-width: 100%;
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.history-slide.active {
  opacity: 1;
  transform: scale(1);
}

.history-slide.prev,
.history-slide.next {
  opacity: 0.5;
  transform: scale(0.85);
}

/* Morphism Card */
.morphism-card {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  padding: 0;
  overflow: hidden;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
}

.morphism-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(212, 175, 55, 0.1) 0%,
    rgba(255, 255, 255, 0.05) 50%,
    rgba(212, 175, 55, 0.05) 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.morphism-card:hover::before {
  opacity: 1;
}

.morphism-card:hover {
  transform: translateY(-8px);
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  border-color: rgba(212, 175, 55, 0.3);
}

.slide-image {
  height: 350px;
  overflow: hidden;
  position: relative;
}

.slide-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  filter: brightness(0.95) contrast(1.05);
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide-video {
  height: 350px;
  overflow: hidden;
  position: relative;
  background: #000000;
}

.slide-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  filter: brightness(0.95) contrast(1.05);
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide-video video.loaded {
  opacity: 1;
}

.video-fallback {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #FFFFFF;
  font-size: 1.2rem;
  z-index: 2;
}

.video-fallback i {
  font-size: 3rem;
  color: var(--primary-gold);
  margin-bottom: 10px;
  display: block;
}

.slide-image img.loaded {
  opacity: 1;
}

/* Image placeholder for failed loads */
.image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(255, 255, 255, 0.1) 100%);
  color: #F7FAFC;
  text-align: center;
  padding: 20px;
}

.image-placeholder i {
  font-size: 3rem;
  margin-bottom: 10px;
  opacity: 0.5;
}

.image-placeholder span {
  font-size: 0.9rem;
  opacity: 0.7;
}

/* Video placeholder for failed loads */
.video-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(0, 0, 0, 0.8) 100%);
  color: #FFFFFF;
  text-align: center;
  padding: 20px;
  border-radius: 10px;
}

.video-placeholder i {
  font-size: 3rem;
  color: var(--primary-gold);
  margin-bottom: 10px;
  opacity: 0.8;
}

.video-placeholder span {
  font-size: 0.9rem;
  opacity: 0.7;
}

.morphism-card:hover .slide-image img,
.morphism-card:hover .slide-video video {
  transform: scale(1.08);
  filter: brightness(1.05) contrast(1.1);
}

.slide-content {
  padding: 30px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
}

.slide-content h3 {
  font-family: var(--font-primary);
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 15px;
  background: linear-gradient(45deg, #FFFFFF 0%, #F7FAFC 50%, #E2E8F0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.3;
}

.slide-content p {
  color: #2D3748;
  line-height: 1.7;
  font-size: 1rem;
  margin: 0;
}

/* Navigation Arrows */
.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 10;
  color: var(--primary-gold);
  font-size: 1.2rem;
}

.slider-nav:hover {
  background: var(--primary-gold);
  color: var(--pearl-white);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.slider-nav-left {
  left: 0;
}

.slider-nav-right {
  right: 0;
}

/* Slider Indicators */
.slider-indicators {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.3);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
}

.indicator::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.1);
  opacity: 0;
  transition: all 0.3s ease;
}

.indicator:hover::before {
  opacity: 1;
}

.indicator.active {
  background: var(--primary-gold);
  transform: scale(1.3);
}

.indicator:hover {
  background: var(--primary-gold);
  transform: scale(1.1);
}

/* Desktop Enhancements */
@media (min-width: 1201px) {
  .history-slider-container {
    padding: 0 80px;
  }
  
  .slider-nav {
    width: 60px;
    height: 60px;
    font-size: 1.4rem;
  }
  
  .slide-image {
    height: 400px;
  }
  
  .slide-content h3 {
    font-size: 2rem;
  }
  
  .slide-content p {
    font-size: 1.1rem;
  }
  
  .morphism-card {
    border-radius: 24px;
  }
  
  /* Ensure first slide is visible on desktop by default */
  .history-slide:first-child {
    opacity: 1 !important;
    transform: scale(1) !important;
  }
  
  .history-slide:first-child img {
    opacity: 1;
  }
}

/* Touch and Mobile Enhancements */
@media (max-width: 1200px) {
  .history-slider-container {
    padding: 0 50px;
  }
  
  .slider-nav {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }
  
  .slide-content h3 {
    font-size: 1.6rem;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 80px 0;
  }
  
  .history-slider-container {
    padding: 0 40px;
  }
  
  .slider-nav {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .slide-image {
    height: 280px;
  }
  
  .slide-content {
    padding: 25px 20px;
  }
  
  .slide-content h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
  }
  
  .slide-content p {
    font-size: 0.95rem;
    line-height: 1.6;
  }
  
  .morphism-card {
    border-radius: 16px;
  }
  
  .indicator {
    width: 10px;
    height: 10px;
  }
  
  .slider-indicators {
    gap: 8px;
    margin-top: 25px;
  }
}

@media (max-width: 480px) {
  .history-slider-container {
    padding: 0 30px;
  }
  
  .slider-nav {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
  }
  
  .slider-nav-left {
    left: -5px;
  }
  
  .slider-nav-right {
    right: -5px;
  }
  
  .slide-image {
    height: 220px;
  }
  
  .slide-content {
    padding: 20px 15px;
  }
  
  .slide-content h3 {
    font-size: 1.2rem;
  }
  
  .slide-content p {
    font-size: 0.9rem;
  }
  
  .morphism-card {
    border-radius: 12px;
  }
}

/* RTL Support for Arabic */
body.lang-ar .history-slider-container {
  direction: ltr; /* Keep slider mechanics LTR */
}

body.lang-ar .slide-content {
  direction: rtl;
  text-align: right;
}

body.lang-ar .slide-content h3,
body.lang-ar .slide-content p {
  font-family: var(--font-arabic);
}

/* Accessibility and Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  body,
  .about,
  .gallery,
  .history,
  .projects,
  .contact {
    animation: none !important;
    background: #000000 !important;
  }
  
  body::before,
  .about::before,
  .gallery::before,
  .history::before,
  .projects::before,
  .contact::before {
    animation: none !important;
  }
  
  .history-slider,
  .history-slide,
  .morphism-card,
  .slide-image img,
  .slider-nav,
  .indicator {
    transition: none;
  }
  
  .morphism-card:hover .slide-image img {
    transform: none;
  }
  
  /* No animations to disable - already removed */
}

/* Performance optimizations no longer needed - animations removed */

/* History Modal */
.history-modal-content {
  background: var(--pearl-white);
  border-radius: var(--border-radius);
  max-width: 800px;
  max-height: 90vh;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-strong);
  animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.history-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  color: var(--pearl-white);
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10;
  background: rgba(0, 0, 0, 0.5);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.history-modal-close:hover {
  background: var(--primary-gold);
  color: var(--dark-charcoal);
  transform: scale(1.1);
}

.history-modal-image {
  position: relative;
  height: 400px;
  overflow: hidden;
}

.history-modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.history-modal-info {
  padding: 30px;
}

.history-modal-info h3 {
  font-family: var(--font-primary);
  font-size: 2rem;
  color: #F7FAFC;
  margin-bottom: 15px;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.history-modal-info p {
  color: #E2E8F0;
  line-height: 1.8;
  font-size: 1.1rem;
}

/* Projects Section */
.projects {
  padding: var(--section-padding);
  background: linear-gradient(315deg, #000000 0%, #0a0a0a 16%, #1a1a1a 32%, #0f0f0f 48%, #000000 64%, #0a0a0a 80%, #1a1a1a 96%, #000000 100%);
  background-size: 480% 480%;
  animation: slowGradientShift 32s ease infinite;
  position: relative;
}

.projects::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 25% 25%, rgba(212, 175, 55, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(212, 175, 55, 0.03) 0%, transparent 50%);
  animation: subtleFloat 14s ease-in-out infinite;
  pointer-events: none;
}

.featured-project {
  background: rgba(26, 26, 26, 0.6);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-medium);
}

.project-content {
  padding: 60px 40px;
}

.project-header {
  text-align: center;
  margin-bottom: 50px;
}

.project-title {
  font-family: var(--font-primary);
  font-size: 2.5rem;
  color: #F7FAFC;
  margin-bottom: 30px;
  font-weight: 600;
}

.project-quote {
  background: rgba(26, 26, 26, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(212, 175, 55, 0.2);
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.project-quote::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: var(--gradient-gold);
}

.quote-text {
  margin-bottom: 30px;
}

.quote-arabic,
.quote-english,
.quote-french {
  line-height: 1.8;
  color: #E2E8F0;
}

.quote-arabic {
  font-family: var(--font-arabic);
  font-size: 1.1rem;
  direction: rtl;
  text-align: right;
}

/* Enhanced Arabic Typography */
.quote-arabic .arabic-intro {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--primary-gold);
  margin-bottom: 20px;
  text-align: center;
  font-family: var(--font-arabic);
}

.quote-arabic .arabic-title {
  font-size: 1.4rem;
  font-weight: 700;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
  text-align: center;
  line-height: 1.6;
}

.quote-arabic .arabic-subtitle {
  font-size: 1.2rem;
  font-weight: 500;
  color: #F7FAFC;
  margin-bottom: 8px;
  text-align: center;
  opacity: 0.8;
}

.quote-arabic .arabic-blessing {
  font-size: 1rem;
  font-style: italic;
  color: var(--primary-gold);
  margin-bottom: 25px;
  text-align: center;
  font-weight: 500;
}

.quote-arabic .arabic-greeting {
  border-top: 2px solid var(--secondary-gold);
  border-bottom: 2px solid var(--secondary-gold);
  padding: 15px 0;
  margin: 20px 0;
  text-align: center;
}

.quote-arabic .arabic-greeting p {
  margin-bottom: 5px;
  font-weight: 500;
  color: #F7FAFC;
}

.quote-arabic .arabic-main-content {
  margin: 25px 0;
  line-height: 2.2;
}

.quote-arabic .arabic-main-content p {
  margin-bottom: 20px;
  text-indent: 20px;
  font-size: 1.1rem;
  color: #E2E8F0;
  text-align: justify;
}

.quote-arabic .arabic-closing {
  border-top: 1px solid var(--secondary-gold);
  padding-top: 20px;
  margin-top: 30px;
  text-align: center;
}

.quote-arabic .arabic-closing p {
  margin-bottom: 10px;
  font-weight: 600;
  color: var(--primary-gold);
  font-style: italic;
}

.quote-english,
.quote-french {
  font-size: 1rem;
}

.quote-arabic h4,
.quote-english h4,
.quote-french h4 {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.quote-author {
  text-align: right;
  font-size: 1.2rem;
  font-weight: 600;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-style: italic;
}

.project-gallery {
  margin-top: 50px;
}

.project-main-image {
  margin-bottom: 20px;
}

.project-main-image {
  position: relative;
}

.project-main-image img {
  width: 100%;
  height: auto;
  min-height: 300px;
  max-height: 500px;
  object-fit: contain;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-medium);
  cursor: pointer;
  transition: var(--transition-smooth);
  background: #f8f9fa;
}

.project-main-image img:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-strong);
}

.project-thumbnails {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
}

.project-thumbnails img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
  transition: var(--transition-smooth);
  cursor: pointer;
}

.project-thumbnails img:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-medium);
}

/* Contact Section */
.contact {
  padding: var(--section-padding);
  background: linear-gradient(45deg, #000000 0%, #0a0a0a 18%, #1a1a1a 36%, #0f0f0f 54%, #000000 72%, #0a0a0a 90%, #000000 100%);
  background-size: 420% 420%;
  animation: slowGradientShift 26s ease infinite;
  position: relative;
}

.contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse at 40% 10%, rgba(212, 175, 55, 0.04) 0%, transparent 70%),
    radial-gradient(ellipse at 60% 90%, rgba(212, 175, 55, 0.06) 0%, transparent 70%);
  animation: gentlePulse 9s ease-in-out infinite;
  pointer-events: none;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-card {
  background: rgba(26, 26, 26, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(212, 175, 55, 0.2);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
  text-align: center;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-gold);
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.contact-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.5rem;
  color: #1A1A1A;
}

.contact-card h3 {
  font-size: 1.3rem;
  color: #FFFFFF !important;
  margin-bottom: 10px;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.contact-card p {
  color: #FFFFFF !important;
  font-size: 1rem;
  font-weight: 500;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.contact-form-container {
  background: rgba(26, 26, 26, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(212, 175, 55, 0.2);
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 600;
  color: #F7FAFC;
  margin-bottom: 8px;
  font-size: 1rem;
}

.form-group input,
.form-group textarea {
  padding: 15px;
  border: 2px solid var(--light-gray);
  border-radius: 8px;
  font-size: 1rem;
  transition: var(--transition-smooth);
  background: var(--pearl-white);
  color: var(--dark-charcoal);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.btn-submit {
  background: var(--gradient-gold);
  color: var(--dark-charcoal);
  border: none;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-bounce);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.btn-submit:active {
  transform: translateY(0);
}

/* Footer */
.footer {
  background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #000000 100%);
  color: var(--pearl-white);
  padding: 60px 0 30px;
  position: relative;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 20%, rgba(212, 175, 55, 0.02) 0%, transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(212, 175, 55, 0.01) 0%, transparent 40%);
  pointer-events: none;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo img {
  height: 60px;
  margin-bottom: 20px;
}

.footer-logo p {
  color: #FFFFFF !important;
  line-height: 1.6;
  opacity: 1;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.footer-links h4,
.footer-contact h4 {
  color: var(--primary-gold);
  margin-bottom: 20px;
  font-size: 1.2rem;
  font-weight: 600;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #FFFFFF !important;
  text-decoration: none;
  transition: var(--transition-smooth);
  opacity: 1;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.footer-links a:hover {
  background: linear-gradient(135deg, var(--primary-gold) 0%, #F4E4BC 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: var(--primary-gold);
  opacity: 1;
}

.footer-contact p {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #FFFFFF !important;
  opacity: 1;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.footer-contact i {
  color: var(--primary-gold);
  width: 20px;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  color: #FFFFFF !important;
  opacity: 1;
}

/* Enhanced Lightbox */
.lightbox {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  align-items: center;
  justify-content: center;
  animation: lightboxFadeIn 0.3s ease-out;
}

.lightbox-content {
  margin: 0;
  display: block;
  width: auto;
  height: auto;
  max-width: min(98vw, 1600px);
  max-height: 95vh;
  object-fit: contain;
  border-radius: var(--border-radius);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8);
  border: 2px solid rgba(212, 175, 55, 0.3);
  animation: lightboxZoomIn 0.4s ease-out;
}

@keyframes lightboxFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* Mobile lightbox optimizations */
@media (max-width: 768px) {
  .lightbox-content {
    max-width: 100vw;
    max-height: 100vh;
    border-radius: 0;
    border: none;
  }
}

@media (max-width: 480px) {
  .lightbox {
    padding: 0;
  }
  
  .lightbox-content {
    width: 100vw;
    height: 100vh;
    object-fit: cover;
  }
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 40px;
  color: var(--pearl-white);
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.lightbox-close:hover {
  color: var(--primary-gold);
  transform: scale(1.1);
}

.lightbox-caption {
  text-align: center;
  color: var(--pearl-white);
  padding: 20px;
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  border-radius: var(--border-radius);
  font-size: 1.1rem;
}

/* Desktop Navigation Styles */
@media (min-width: 769px) {
  .nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
  }
  
  .nav-menu {
    display: flex !important;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    flex-direction: row;
    background: none;
    height: auto;
    width: auto;
    padding: 0;
    border: none;
  }
  
  .hamburger {
    display: none;
  }
  
  .nav-link {
    color: #FFFFFF !important;
    padding: 10px 0;
    margin: 0 20px;
    text-align: center;
    width: auto;
    border: none;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  }
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 1200px) {
  .container {
    padding: 0 30px;
  }
  
  .nav-menu {
    gap: 30px;
  }
  
  .about-content,
  .contact-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .about-stats {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .hero-title {
    font-size: clamp(2.8rem, 7vw, 5rem);
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  /* Ensure animated backgrounds work on all devices */
  .about,
  .gallery,
  .history,
  .projects,
  .contact {
    background-attachment: scroll;
    will-change: background-position;
    transform: translateZ(0);
  }
}

/* Tablet Responsiveness */
@media (max-width: 1024px) {
  .container {
    padding: 0 25px;
  }
  
  .hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
  }
  
  .hero-title .animated-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .section-title {
    font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }
  
  .gallery-item {
    min-height: 280px;
  }
  
  /* Ensure media in history slides scales well on tablets */
  .slide-image,
  .slide-video {
    height: 300px;
  }
  
  .about-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
  
  .exposition-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .artboard-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }
}

/* Medium Device Responsiveness */
@media (max-width: 900px) {
  .container {
    padding: 0 20px;
  }
  
  .hero-title {
    font-size: clamp(2.2rem, 5.5vw, 4rem);
  }
  
  .hero-title .animated-title {
    font-size: clamp(2.2rem, 5.5vw, 4rem);
  }
  
  .hero-subtitle {
    font-size: 1.05rem;
  }
  
  .section-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }
  
  .about-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .nav-menu {
    gap: 25px;
  }
  
  .exposition-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .artboard-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 80px 0;
    --container-padding: 0 20px;
  }
  
  /* Enhanced Mobile Navigation */
  .nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
  }
  
  .nav-logo {
    order: 1;
  }
  
  .language-switcher {
    order: 2;
    display: flex;
    gap: 8px;
    margin-right: 15px;
  }

  /* Ensure media in history slides scales well on mobile */
  .slide-image,
  .slide-video {
    height: 260px;
  }
  
  .hamburger {
    order: 3;
    margin-left: auto;
  }
  
  .nav-controls {
    order: 3;
    margin-left: auto;
  }
  
  /* Mobile slide-out menu from far right */
  .nav-menu {
    position: fixed;
    top: 80px;
    right: 0;
    transform: translateX(100%);
    width: 300px;
    height: calc(100vh - 80px);
    background: #000000;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 50px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    border-left: 2px solid rgba(212, 175, 55, 0.5);
    display: flex;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
  }
  
  /* Move hamburger menu to far right */
  .nav-controls {
    order: 3;
    margin-left: auto;
  }
  
  .hamburger {
    order: 2;
    margin-left: 0;
  }
  
  .language-switcher {
    order: 1;
    margin-right: 15px;
  }
  
  .nav-menu.active {
    transform: translateX(0);
  }
  
  .nav-link {
    font-size: 1.1rem;
    padding: 20px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    text-align: left;
    color: #FFFFFF !important;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
  }
  
  .nav-link:hover {
    color: var(--primary-gold) !important;
    padding-left: 40px;
  }
  
  .hamburger {
    display: flex;
  }
  
  /* Mobile Hero Section */
  .hero-title {
    font-size: clamp(2.2rem, 8vw, 3.5rem);
    margin-bottom: 15px;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 12px;
    line-height: 1.6;
  }
  
  .hero-ceo {
    font-size: 1rem;
    margin-bottom: 35px;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
  
  .btn-primary,
  .btn-secondary {
    padding: 12px 25px;
    font-size: 0.95rem;
    width: 200px;
    justify-content: center;
  }
  
  /* Mobile Gallery */
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }
  
  .gallery-filter {
    gap: 8px;
    margin-bottom: 40px;
  }
  
  .filter-btn {
    padding: 10px 18px;
    font-size: 0.9rem;
  }
  
  /* Mobile About Section */
  .about-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .stat-item {
    padding: 30px 15px;
  }
  
  .stat-number {
    font-size: 2.5rem;
  }
  
  /* Mobile Projects */
  .project-content {
    padding: 40px 20px;
  }
  
  .project-title {
    font-size: 2rem;
  }
  
  .quote-arabic {
    font-size: 1rem;
  }
  
  .quote-arabic .arabic-title {
    font-size: 1.2rem;
  }
  
  .quote-arabic .arabic-main-content p {
    font-size: 1rem;
    text-indent: 15px;
  }
  
  /* Mobile Contact */
  .contact-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .contact-card {
    padding: 25px 20px;
  }
  
  .contact-form-container {
    padding: 35px 25px;
  }
  
  .form-group input,
  .form-group textarea {
    padding: 12px;
    font-size: 1rem;
  }
  
  /* Mobile Footer */
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
  }
}

@media (max-width: 480px) {
  :root {
    --section-padding: 60px 0;
    --container-padding: 0 15px;
  }
  
  .container {
    padding: 0 15px;
  }
  
  /* Ultra mobile animated background optimization */
  .about,
  .gallery,
  .history,
  .projects,
  .contact {
    background-size: 200% 200%;
    animation-duration: 40s;
  }
  
  /* Mobile video slide optimization */
  .slide-image,
  .slide-video {
    height: 250px;
  }

  /* Mobile lightbox optimization */
  .lightbox-content {
    max-width: 95vw !important;
    max-height: 85vh !important;
    border-radius: 8px !important;
  }
  
  /* Mobile gallery optimization */
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
    gap: 15px !important;
  }
  
  .gallery-item {
    min-height: 250px !important;
  }
  
  .project-thumbnails {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)) !important;
    gap: 10px !important;
  }
  
  .project-thumbnails img {
    height: 100px !important;
  }
  
  .slide-content {
    padding: 20px;
  }
  
  .slide-content h3 {
    font-size: 1.2rem;
  }
  
  .slide-content p {
    font-size: 0.9rem;
    line-height: 1.5;
  }
  
  /* Ultra Mobile Navigation */
  .nav-container {
    padding: 12px 15px;
  }
  
  .nav-logo img {
    height: 40px;
  }
  
  .language-switcher {
    gap: 3px;
  }
  
  .lang-btn {
    padding: 4px 8px;
    font-size: 0.8rem;
  }
  
  /* Ultra Mobile Hero */
  .hero-content {
    padding: 0 15px;
  }
  
  .hero-title {
    font-size: clamp(1.8rem, 10vw, 2.8rem);
    margin-bottom: 12px;
  }
  
  .hero-title .animated-title {
    font-size: clamp(1.8rem, 10vw, 2.8rem);
  }
  
  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 10px;
    line-height: 1.5;
  }
  
  .hero-ceo {
    font-size: 0.9rem;
    margin-bottom: 30px;
  }
  
  .btn-primary,
  .btn-secondary {
    padding: 10px 20px;
    font-size: 0.9rem;
    width: 180px;
  }
  
  /* Ultra Mobile Sections */
  .section-header {
    margin-bottom: 40px;
  }
  
  .section-title {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }
  
  .section-subtitle {
    font-size: 1rem;
    line-height: 1.6;
  }
  
  /* Ultra Mobile Gallery */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .gallery-filter {
    flex-wrap: wrap;
    gap: 6px;
  }
  
  .filter-btn {
    padding: 8px 15px;
    font-size: 0.85rem;
  }
  
  /* Ultra Mobile About */
  .about-stats {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .about-card {
    padding: 30px 20px;
  }
  
  .about-card h3 {
    font-size: 1.5rem;
  }
  
  /* Ultra Mobile Projects */
  .project-content {
    padding: 30px 15px;
  }
  
  .project-title {
    font-size: 1.8rem;
  }
  
  .project-quote {
    padding: 30px 20px;
  }
  
  .quote-arabic .arabic-intro {
    font-size: 1.1rem;
  }
  
  .quote-arabic .arabic-title {
    font-size: 1.1rem;
  }
  
  .quote-arabic .arabic-subtitle {
    font-size: 1rem;
  }
  
  .quote-arabic .arabic-main-content p {
    font-size: 0.95rem;
    text-indent: 10px;
    line-height: 2;
  }
  
  .project-thumbnails {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  /* Ultra Mobile Contact */
  .contact-card {
    padding: 20px 15px;
  }
  
  .contact-icon {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
  
  .contact-form-container {
    padding: 25px 15px;
  }
  
  .form-group {
    gap: 20px;
  }
  
  .form-group label {
    font-size: 0.95rem;
  }
  
  .form-group input,
  .form-group textarea {
    padding: 10px;
    font-size: 0.95rem;
  }
  
  .btn-submit {
    padding: 12px 25px;
    font-size: 0.95rem;
  }
  
  /* Ultra Mobile Footer */
  .footer {
    padding: 40px 0 20px;
  }
  
  .footer-logo img {
    height: 50px;
  }
  
  .footer-content {
    gap: 25px;
  }
}

/* Landscape Mobile Optimization */
@media (max-width: 768px) and (orientation: landscape) {
  .hero {
    height: 100vh;
    min-height: 500px;
  }
  
  .hero-content {
    transform: scale(0.9);
  }
  
  .nav-menu {
    height: calc(100vh - 70px);
    top: 70px;
  }
  
  .nav-container {
    padding: 10px 20px;
  }
}

/* Large Screen Enhancements */
@media (min-width: 1400px) {
  .container {
    max-width: 1600px;
    padding: 0 40px;
  }
  
  .hero-title {
    font-size: clamp(4rem, 6vw, 7rem);
  }
  
  .hero-title .animated-title {
    font-size: clamp(4rem, 6vw, 7rem);
  }
  
  .section-title {
    font-size: clamp(3rem, 4vw, 5rem);
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
  }
}

/* Ultra Wide Screen Support */
@media (min-width: 1920px) {
  .container {
    max-width: 1800px;
    padding: 0 60px;
  }
  
  .hero-title {
    font-size: clamp(5rem, 5vw, 8rem);
  }
  
  .hero-title .animated-title {
    font-size: clamp(5rem, 5vw, 8rem);
  }
}

/* Touch-Friendly Enhancements */
@media (hover: none) and (pointer: coarse) {
  .btn-primary,
  .btn-secondary,
  .filter-btn,
  .gallery-btn,
  .contact-card,
  .nav-link {
    -webkit-tap-highlight-color: rgba(212, 175, 55, 0.3);
  }
  
  .morphism-card:hover,
  .gallery-item:hover,
  .about-card:hover {
    transform: none;
  }
  
  .morphism-card:active {
    transform: scale(0.98);
  }
  
  /* Increase touch targets */
  .nav-link,
  .lang-btn,
  .filter-btn {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .slider-nav {
    min-width: 44px;
    min-height: 44px;
  }
  
  .indicator {
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .indicator::after {
    content: '';
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.3);
  }
  
  .indicator.active::after {
    background: var(--primary-gold);
  }
}

/* Enhanced Mobile Navigation */
@media (max-width: 768px) {
  .nav-menu {
    border-left: 2px solid rgba(212, 175, 55, 0.5);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
  }
  
  .nav-link {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
  }
  
  .nav-link:hover {
    background: rgba(212, 175, 55, 0.1);
    padding-left: 40px;
  }
  
  .hamburger {
    z-index: 1001;
  }
  
  .nav-controls {
    gap: 15px;
  }
  
  .language-switcher {
    gap: 3px;
  }
  
  .lang-btn {
    padding: 5px 10px;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .nav-controls {
    gap: 10px;
  }
  
  .language-switcher {
    gap: 2px;
  }
  
  .lang-btn {
    padding: 4px 8px;
    font-size: 0.75rem;
  }
  
  .hamburger span {
    width: 22px;
    height: 2.5px;
  }
}

/* Enhanced Footer Responsiveness */
@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
  }
  
  .footer-links ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
  
  .footer-contact p {
    justify-content: center;
  }
  
  .footer-logo p {
    font-size: 0.95rem;
  }
  
  .footer-links h4,
  .footer-contact h4 {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .footer {
    padding: 30px 0 15px;
  }
  
  .footer-content {
    gap: 25px;
  }
  
  .footer-logo img {
    height: 45px;
  }
  
  .footer-logo p {
    font-size: 0.9rem;
  }
  
  .footer-links h4,
  .footer-contact h4 {
    font-size: 1rem;
  }
  
  .footer-links a {
    font-size: 0.95rem;
  }
  
  .footer-contact p {
    font-size: 0.9rem;
  }
  
  .exposition-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .artboard-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .artboard-image {
    height: 250px;
  }
  
  .whatsapp-sticky {
    bottom: 15px;
    right: 15px;
    width: 50px;
    height: 50px;
  }
  
  .whatsapp-sticky i {
    font-size: 25px;
  }
}

/* High DPI Display Support */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero-title,
  .section-title {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  :root {
    --pearl-white: #1A1A1A;
    --warm-white: #2C2C2C;
    --dark-charcoal: #F7FAFC;
    --soft-black: #E2E8F0;
    --muted-gray: #CBD5E0;
  }
}

/* Animation Classes */
.fade-in {
  animation: fadeIn 1s ease-in-out;
}

.slide-up {
  animation: slideUp 1s ease-out;
}

.zoom-in {
  animation: zoomIn 0.8s ease-out;
}

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

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

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

/* Scroll Animations */
.scroll-reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Utilities */
.blur-bg {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.glass-effect {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.text-gradient {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Enhanced visibility utilities */
.high-contrast {
  color: var(--text-primary) !important;
  font-weight: 600;
}

.visible-dark {
  background-color: var(--slate-blue);
  color: var(--pearl-white);
  border: 1px solid var(--primary-gold);
}

/* Enhanced visibility for better contrast */
.slider-nav {
  background: rgba(255, 255, 255, 0.95) !important;
  border: 2px solid var(--primary-gold) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.slider-nav:hover {
  background: var(--primary-gold) !important;
  transform: translateY(-50%) scale(1.1);
}

/* Better visibility for indicators */
.indicator {
  background: rgba(212, 175, 55, 0.6) !important;
  border: 2px solid var(--pearl-white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.indicator.active {
  background: var(--primary-gold) !important;
  border-color: var(--pearl-white);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.5);
}

/* Print Styles */
@media print {
  .navbar,
  .hamburger,
  .scroll-indicator,
  .lightbox {
    display: none !important;
  }
  
  .hero-video {
    display: none;
  }
  
  .hero {
    height: auto;
    background: var(--dark-charcoal);
    color: var(--pearl-white);
    padding: 50px 0;
  }
  
  * {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
}

/* Artboard Selection Section */
.artboards {
  padding: 100px 0;
  background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #000000 100%);
  background-size: 400% 400%;
  animation: slowGradientShift 15s ease infinite;
}

.artboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.artboard-item {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: var(--transition-smooth);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
}

.artboard-item:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-strong);
}

.artboard-image {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
}

.artboard-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.artboard-item:hover .artboard-image img {
  transform: scale(1.1);
}

.artboard-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.6) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-smooth);
}

.artboard-item:hover .artboard-overlay {
  opacity: 1;
}

.artboard-details {
  text-align: center;
  color: #FFFFFF;
  padding: 20px;
}

.artboard-details h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.artboard-details p {
  font-size: 1rem;
  margin-bottom: 20px;
  opacity: 0.9;
}

.btn-buy {
  background: rgba(212, 175, 55, 0.1);
  color: var(--primary-gold);
  border: 2px solid var(--primary-gold);
  padding: 12px 24px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-decoration: none;
  display: inline-block;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-buy:hover {
  background: var(--primary-gold);
  color: #000000;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.btn-buy.selected {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: #FFFFFF;
  border-color: #28a745;
}

.btn-buy.selected:hover {
  box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
}

.artboard-item.selected {
  border: 3px solid var(--gradient-gold);
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 40px rgba(255, 215, 0, 0.4);
  z-index: 10;
}

.artboard-item.selected .artboard-image {
  height: 350px;
}

.artboard-item.selected .artboard-image img {
  transform: scale(1.1);
}

.artboard-item.selected .artboard-overlay {
  opacity: 1;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 100%);
}

.artboard-item.selected .artboard-details h3 {
  font-size: 1.8rem;
  color: var(--gradient-gold);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.artboard-item.selected .artboard-details p {
  font-size: 1.1rem;
  margin-bottom: 25px;
}

.artboard-item.selected .btn-buy {
  padding: 15px 30px;
  font-size: 1.1rem;
  transform: scale(1.1);
}

/* Shopping Cart Styles */
.cart-summary {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 20px;
  margin-bottom: 30px;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.cart-header h4 {
  color: var(--gradient-gold);
  font-size: 1.2rem;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-clear-cart {
  background: #dc3545;
  color: #FFFFFF;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  gap: 5px;
}

.btn-clear-cart:hover {
  background: #c82333;
  transform: translateY(-1px);
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.3);
  padding: 10px 15px;
  border-radius: 8px;
  color: #FFFFFF;
}

.btn-remove-item {
  background: #dc3545;
  color: #FFFFFF;
  border: none;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  transition: var(--transition-smooth);
}

.btn-remove-item:hover {
  background: #c82333;
  transform: scale(1.1);
}

/* Video Exposition Section */
.exposition {
  padding: 100px 0;
  background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #000000 100%);
  background-size: 400% 400%;
  animation: slowGradientShift 18s ease infinite;
}

.exposition-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-top: 50px;
}

.exposition-video {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(26, 26, 26, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(212, 175, 55, 0.2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

.exposition-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.exposition-video:hover video {
  transform: scale(1.02);
}

.exposition-text {
  color: #FFFFFF;
}

.exposition-description h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  font-weight: 600;
  color: var(--gradient-gold);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.exposition-description h3:not(:first-child) {
  margin-top: 40px;
}

.exposition-description p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 20px;
  opacity: 0.9;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Enhanced Arabic support for exposition text */
body.lang-ar .exposition-description h3,
body.lang-ar .exposition-description p {
  font-family: var(--font-arabic);
  text-align: right;
  direction: rtl;
}

body.lang-ar .exposition-description p {
  line-height: 2.2;
}

/* Enhanced exposition styling for better visual hierarchy */
.exposition-description h3 {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  padding-bottom: 10px;
}

.exposition-description h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background: var(--gradient-gold);
  border-radius: 1px;
}

body.lang-ar .exposition-description h3::after {
  left: auto;
  right: 0;
}

/* Enhanced responsive design for exposition */
@media (max-width: 1024px) {
  .exposition-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .exposition-video {
    order: 1;
  }
  
  .exposition-text {
    order: 2;
  }
}

@media (max-width: 768px) {
  .exposition {
    padding: 80px 0;
  }
  
  .exposition-content {
    gap: 30px;
    margin-top: 30px;
  }
  
  .exposition-description h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
  }
  
  .exposition-description p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 15px;
  }
  
  body.lang-ar .exposition-description p {
    line-height: 2;
  }
}

@media (max-width: 480px) {
  .exposition {
    padding: 60px 0;
  }
  
  .exposition-description h3 {
    font-size: 1.4rem;
  }
  
  .exposition-description p {
    font-size: 0.95rem;
    line-height: 1.6;
  }
  
  body.lang-ar .exposition-description p {
    line-height: 1.9;
  }
}

/* Sticky WhatsApp Button */
.whatsapp-sticky {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: var(--transition-smooth);
  z-index: 1000;
}

.whatsapp-sticky:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

.whatsapp-sticky i {
  font-size: 30px;
  color: #FFFFFF;
}

.whatsapp-tooltip {
  position: absolute;
  right: 70px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.9);
  color: #FFFFFF;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.9rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
  pointer-events: none;
}

.whatsapp-sticky:hover .whatsapp-tooltip {
  opacity: 1;
  visibility: visible;
}

.whatsapp-tooltip::after {
  content: '';
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%);
  border-left: 5px solid rgba(0, 0, 0, 0.9);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

/* Notification System */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  z-index: 10000;
  max-width: 400px;
  animation: slideInRight 0.3s ease-out;
}

.notification-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
}

.notification-message {
  color: #333333;
  font-size: 0.95rem;
  line-height: 1.4;
  margin-right: 15px;
}

.notification-close {
  background: none;
  border: none;
  color: #999999;
  cursor: pointer;
  font-size: 1.1rem;
  padding: 5px;
  border-radius: 50%;
  transition: var(--transition-smooth);
  flex-shrink: 0;
}

.notification-close:hover {
  background: #f5f5f5;
  color: #666666;
}

.notification-success {
  border-left: 4px solid #28a745;
}

.notification-info {
  border-left: 4px solid #17a2b8;
}

.notification-warning {
  border-left: 4px solid #ffc107;
}

.notification-error {
  border-left: 4px solid #dc3545;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
