




/* Belgear Oil - Premium Motor Oils Website Styles
 * Optimized for performance and accessibility
 * Version: 2.0
 */

:root {
  /* Brand Colors */
  --primary-gold: #d4af37;
  --secondary-gold: #b89b2c;
  --light-gold: #fffbe6;
  --dark-gold: #8b6f00;
  --gold-hover: #b89b2c;
  
  /* Neutral Colors */
  --white: #ffffff;
  --black: #000000;
  --dark-gray: #222222;
  --medium-gray: #666666;
  --light-gray: #f8f9fa;
  --border-gray: #e0e0e0;
  --background-gray: #f8f9fa;
  
  /* Semantic Colors */
  --success: #28a745;
  --error: #dc3545;
  --warning: #ffc107;
  --info: #17a2b8;
  --heart-red: #ff4757;
  
  /* Enhanced Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
  --shadow-light: 0 2px 10px rgba(212, 175, 55, 0.1);
  --shadow-medium: 0 4px 20px rgba(212, 175, 55, 0.15);
  --shadow-heavy: 0 8px 30px rgba(212, 175, 55, 0.2);
  --shadow-dark: 0 2px 12px rgba(0, 0, 0, 0.06);
  
  /* Enhanced Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.6s ease;
  
  /* Enhanced Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-small: 6px;
  --radius-medium: 15px;
  --radius-large: 25px;
  --radius-circle: 50%;
  
  /* Enhanced Spacing System */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --spacing-xs: 5px;
  --spacing-sm: 10px;
  --spacing-md: 20px;
  --spacing-lg: 40px;
  --spacing-xl: 60px;
  
  /* Typography Scale */
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
}

body {
  font-family: 'Cairo', Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: linear-gradient(to bottom, #fff 0%, #fff 27%, #000 27%, #000 100%);
  color: #222;
  direction: ltr;
  text-align: left;
}


/* Header styles are now in shared/header-shared.css - removed duplicate styles */
/* Search icon styles - Now handled by shared/header-shared.css */


.hero-slider {
  position: relative;
  padding: 0;
  min-height: 650px;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  justify-content: center;
  background: none;
  width: 100vw;
  max-width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}
.hero-slider .slide {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin: auto;
  animation: fadeIn 0.7s;
  min-height: 650px;
  width: 100vw;
  max-width: 100vw;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  position: absolute;
  top: 0; right: 0; left: 0; bottom: 0;
  z-index: 1;
  padding: 80px 0 60px 0;
}
.hero-slider .slide.active {
  display: flex;
  position: relative;
  z-index: 2;
}
.hero-slider .slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 1;
}
.hero-slider .product-img,
.hero-slider .slide > div {
  position: relative;
  z-index: 2;
}
.hero-slider .product-img {
  /* Make all bottle images render at a consistent visual size */
  height: 360px;            /* unified height on desktop */
  width: auto;              /* preserve aspect ratio */
  max-width: 40vw;          /* keep within viewport on very wide screens */
  object-fit: contain;      /* fit different source ratios without cropping */
  border-radius: 16px;
  display: block;
}

.hero-slider h1 {
  font-size: 2.5em;
  color: #fff;
  text-shadow: 2px 2px 8px #000;
  margin-bottom: 10px;
}
.hero-slider p {
  color: #fff;
  font-size: 1.2em;
  margin-bottom: 20px;
}
.hero-slider button {
  background: #d4af37;
  color: #fff;
  border: none;
  padding: 12px 32px;
  font-size: 1.1em;
  border-radius: 30px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.2s;
}
.hero-slider button:hover,
.hero-slider button:focus {
  background: #b89b2c;
  outline: 3px solid #fff;
  outline-offset: 2px;
}

/* Responsive, keep bottles visually consistent on smaller screens */
@media (max-width: 992px) {
  .hero-slider .product-img { height: 300px; max-width: 55vw; }
}

@media (max-width: 576px) {
  .hero-slider .product-img { height: 220px; max-width: 70vw; }
}
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(34,34,34,0.7);
  color: #fff;
  border: none;
  font-size: 2.5em;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s;
}
.slider-btn:hover {
  background: #d4af37;
  color: #222;
}
.slider-btn.prev {
  background: transparent;
  right: 30px;
}
.slider-btn.next {
  background: transparent;
   left: 30px;
}
.slider-btn:hover,
.slider-btn:focus {
  color: #d4af37 !important;
  background: transparent !important;
  outline: 3px solid #d4af37;
  outline-offset: 2px;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}



.short-sections {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin: 0;
  position: relative;
  top: -80px;
  z-index: 10;
  background: none;
  width: 100vw;
  max-width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: 0 4vw;
  box-sizing: border-box;
}
.short-sections .card {
  display: flex;
  flex-direction: row;
  align-items: center;
  background: #fff;
  box-shadow: 0 8px 32px rgba(0,0,0,0.13);
  border-radius: 18px;
  padding: 30px 40px;
  min-width: 220px;
  max-width: 250px;
  flex: 1 1 0;
  transition: box-shadow 0.2s, transform 0.2s;
  position: relative;
  text-align: left;
  gap: 28px;
}
.short-sections .icon {
  font-size: 3.2em;
  color: #d4af37;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
}
.short-sections .card-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
}
.short-sections h3 {
  margin: 0 0 4px 0;
  font-size: 1.7em;
  font-weight: bold;
  letter-spacing: 0.5px;
  color: #111;
}
.short-sections p {
  color: #b89b2c;
  margin: 0;
  font-size: 1.1em;
  font-weight: 500;
}

.our-story {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  background: url('../assets/aa.jpg') center/cover no-repeat;
  min-height: 80vh;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: 0;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 6vw, 100% 100%, 0 calc(100% - 6vw));
  /* السابق: clip-path: polygon(0 6vw, 100% 0, 100% 94vh, 0 100%); */
  /* الجديد: ميل قطري من اليسار إلى اليمين */
  /* تم إلغاء الأنميشن */
}
.our-story::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.18);
  z-index: 1;
}
/* .story-images,  */

.story-text {
  position: relative;
  z-index: 2;
  max-width: 900px;
  min-width: 400px;
  font-size: 1.15em;
  padding: 38px 60px 38px 48px;
  margin-right: 60px; /* إعادة margin-right */
}
.story-images {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  min-width: 260px;
  z-index: 2;
  padding-bottom: 100px;
}
.story-images img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
  background: #fff;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.92) rotate(-8deg);
  opacity: 0.7;
  z-index: 1;
  transition: 
    transform 1.5s cubic-bezier(.77,0,.18,1),
    opacity 1.2s cubic-bezier(.77,0,.18,1),
    box-shadow 1.2s cubic-bezier(.77,0,.18,1);
}
.story-images img:nth-child(2) {
  transform: translate(-50%, -50%) scale(0.92) rotate(8deg);
  z-index: 2;
}
.story-images img:nth-child(3) {
  transform: translate(-50%, -50%) scale(0.92) rotate(0deg);
  z-index: 3;
}

.story-images.triangle img {
  opacity: 1;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}
.story-images.triangle img:nth-child(1) {
  transform: translate(-50%, -90%) scale(1) !important;
  transition-delay: 0.1s;
}
.story-images.triangle img:nth-child(2) {
  transform: translate(-80%, 20%) scale(1) !important;
  transition-delay: 0.3s;
}
.story-images.triangle img:nth-child(3) {
  transform: translate(0%, 20%) scale(1) !important;
  transition-delay: 0.5s;
}
.story-text {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  padding: 38px 48px 32px 48px;
  max-width: 400px;
  
 max-height: 200px;
  z-index: 3;
  position: relative;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 0.95em;
  line-height: 1.3;
  padding: 24px 18px 18px 18px;
}
.story-text h2, .story-text p, .story-divider {
  align-self: flex-start;
}
.story-text h2 {
  font-size: 1.1em;
  margin-bottom: 10px;
  color: #111;
  font-style: italic;
  font-weight: bold;
  text-align: left;
  letter-spacing: 1px;
}
.story-text p {
  font-size: 0.95em;
  line-height: 1.3;
  margin-bottom: 10px;
  color: #111;
  font-weight: 500;
  text-align: left;
}
.story-text button, .story-text .read-more-btn {
  background: linear-gradient(90deg, #111 60%, #222 100%);
  color: #fff;
  border: none;
  padding: 14px 32px 14px 40px;
  border-radius: 32px;
  font-weight: bold;
  cursor: pointer;
  font-size: 1.18em;
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 18px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.13);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, border 0.2s, transform 0.18s;
  outline: none;
  border: 2px solid transparent;
}
/* تعطيل القواعد القديمة للـ hover التي تستخدم التدرج أو تتداخل */
/* .story-text button:hover, .story-text .read-more-btn:hover {
  background: linear-gradient(90deg, #d4af37 60%, #fffbe6 100%);
  color: #111;
  border: 2px solid #d4af37;
  box-shadow: 0 8px 32px rgba(212,175,55,0.18);
  transform: translateY(-2px) scale(1.04);
} */
.story-text .read-more-btn svg {
  width: 1.5em;
  height: 1.5em;
  margin-right: 10px;
  fill: #fff;
  transition: fill 0.2s;
}
.story-text .read-more-btn:hover svg {
  fill: #111;
}

.read-more-btn {
  background: #111 !important;
  color: #fff !important;
  border: none;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 28px 8px 8px;
  font-size: 1.08em;
  font-weight: 600;
  box-shadow: 0 4px 18px rgba(0,0,0,0.18);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, border 0.2s, transform 0.18s;
  outline: none;
  border: 2px solid transparent;
  margin-top: 20px;
  align-self: flex-end;
}
.read-more-btn svg {
  background: #fff;
  border-radius: 10px;
  padding: 7px;
  width: 38px;
  height: 38px;
  box-sizing: border-box;
  margin-right: 0;
  margin-left: 0;
  color: #111;
  transition: background 0.2s, color 0.2s;
}
.read-more-btn:hover {
  background: #d4af37 !important;
  color: #111 !important;
  border: 2px solid #d4af37;
  box-shadow: 0 8px 32px rgba(212,175,55,0.18);
  transform: translateY(-2px) scale(1.04);
}
.read-more-btn:hover svg {
  background: #111;
  color: #d4af37;
}

.story-divider {
  display: none;
}

.company-values {
  padding: 80px 0;
  background: #f8f9fa;
  position: relative;
  overflow: hidden;
}

.values-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
}

.value-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(30px);
}

.value-card.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.value-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.value-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #d4af37, #f4e4a6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px auto;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.value-icon i {
  font-size: 2rem;
  color: #ffffff;
}

.value-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 20px;
}

.value-card p {
  font-size: 1rem;
  line-height: 1.7;
  color: #666;
}

.production-line {
  background-image: url('../assets/cc.jpg');
  padding-bottom: 100px;
  padding-top: 40px;
}

.production-line h2 {
  color: #fff;
  font-size: 2.5em;
  margin-top: 38px;
  margin-bottom: 38px;
  font-style: italic;
  font-weight: bold;
  letter-spacing: 1px;
  text-shadow: 2px 2px 12px #b87b1a;
  text-align: center;
}
.products {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
}
.product-card {
  flex: 0 0 calc(33.333% - 20px);
  max-width: 350px;
  min-width: 300px;
  box-sizing: border-box;
  background: rgba(84, 81, 81, 0.4);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border-radius: 75px 0 75px 0;
  box-shadow: 0 0 32px 8px #222, 0 8px 32px rgba(0,0,0,0.01);
  padding: 48px 32px 32px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: visible;
  transition: box-shadow 0.2s, transform 0.2s;
  min-height: 450px;
}
.product-card:hover {
  box-shadow: 0 0 10px 10px #fff7dc, 0 8px 8px 0 rgba(188, 183, 164, 0.18);
  transform: translateY(-8px) scale(1.04);
}
.product-card .product-img-wrapper {
  position: relative;
  width: 280px;
  height: 280px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-card .product-img-wrapper img {
  width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: 50%;
  background: transparent;
  z-index: 2;
  position: relative;
}
.product-card .product-circles {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 160px; height: 160px;
  pointer-events: none;
  z-index: 1;
}
.product-card .product-circles svg {
  width: 100%; height: 100%;
  display: block;
}
.product-card .belgear-logo {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  background: #fff;
  border-radius: 8px;
  padding: 2px 16px 2px 12px;
  box-shadow: 0 2px 8px rgba(255,191,0,0.08);
  font-weight: bold;
  color: #d4af37;
  font-size: 1.1em;
  border: 2px solid #d4af37;
}
.product-card h4 {
  color: #fff;
  background: linear-gradient(to right, rgba(255,236,179,0.85) 50%, transparent 50%);
  border-radius: 12px 0 12px 0;
  padding: 10px 28px;
  margin: 0;
  font-size: 1.1em;
  font-weight: bold;
  letter-spacing: 1px;
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 4;
  box-shadow: 0 2px 8px rgba(255,191,0,0.08);
  transition: background 0.3s;
}
.product-card:hover h4 {
  background: rgba(255,236,179,0.85);
}

.laboratory {
  margin-top: 48px;
  position: relative;
  background: url('xx.jpg') center/cover no-repeat;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
}
.laboratory::after {
  content: none;
}
/* Enhanced Laboratory Title */
.laboratory-title {
  position: relative;
  z-index: 4;
  font-size: 4.5em;
  font-weight: 900;
  letter-spacing: 3px;
  margin: 120px 0 32px 0;
  text-align: center;
  font-style: italic;
  
  /* Advanced gradient text effect */
  background: linear-gradient(135deg, #ffffff 0%, #d4af37 50%, #ffffff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  
  /* Enhanced shadow for depth */
  filter: drop-shadow(0 8px 32px rgba(0,0,0,0.8)) drop-shadow(0 4px 8px rgba(212,175,55,0.6));
  
  /* Underline decoration */
}

.laboratory-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 4px;
  background: linear-gradient(90deg, transparent 0%, #d4af37 50%, transparent 100%);
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(212,175,55,0.4);
}
/* Enhanced Laboratory Description Box */
.laboratory .lab-desc-box {
  position: relative;
  z-index: 4;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(15px);
  color: #222;
  border-radius: 40px;
  box-shadow: 
    0 12px 48px rgba(0,0,0,0.25),
    0 8px 24px rgba(212,175,55,0.15),
    inset 0 1px 0 rgba(255,255,255,0.8);
  padding: 56px 56px 48px 56px;
  max-width: 1200px;
  margin: 0 auto 80px auto;
  text-align: center;
  border: 3px solid rgba(212,175,55,0.3);
  position: relative;
}

.laboratory .lab-desc-box::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, rgba(212,175,55,0.3), transparent, rgba(212,175,55,0.3));
  border-radius: 42px;
  z-index: -1;
}

/* Enhanced Subtitle */
.lab-subtitle {
  display: block;
  font-size: 3em;
  font-weight: 800;
  margin-bottom: 48px;
  color: #d4af37;
  font-style: italic;
  letter-spacing: 1.8px;
  text-shadow: 
    0 4px 8px rgba(212,175,55,0.5),
    0 2px 4px rgba(0,0,0,0.4);
  position: relative;
  line-height: 1.3;
}

.lab-subtitle::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #d4af37 50%, transparent 100%);
  border-radius: 1px;
}

/* Enhanced Content Structure */
.lab-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  text-align: left;
  max-width: 1000px;
  margin: 0 auto;
}

/* Enhanced visibility for lab content */
.lab-content p {
  font-size: 1.6em;
  font-weight: 600;
  line-height: 2;
  color: #1a1a1a;
  margin: 0;
  padding: 32px 36px;
  border-radius: 16px;
  transition: all 0.3s ease;
  position: relative;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  border: 1px solid rgba(255,255,255,0.3);
}

.lab-intro {
  background: linear-gradient(135deg, rgba(212,175,55,0.15) 0%, rgba(255,255,255,0.9) 100%);
  border-left: 6px solid #d4af37;
  color: #2d2d2d;
}

.lab-technology {
  background: linear-gradient(135deg, rgba(59,130,246,0.15) 0%, rgba(255,255,255,0.9) 100%);
  border-left: 6px solid #3b82f6;
  color: #2d2d2d;
}

.lab-excellence {
  background: linear-gradient(135deg, rgba(16,185,129,0.15) 0%, rgba(255,255,255,0.9) 100%);
  border-left: 6px solid #10b981;
  color: #2d2d2d;
}

.lab-commitment {
  background: linear-gradient(135deg, rgba(139,69,19,0.15) 0%, rgba(255,255,255,0.9) 100%);
  border-left: 6px solid #8b4513;
  color: #2d2d2d;
}

.lab-content p:hover {
  transform: translateX(12px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  border-left-width: 8px;
}

.lab-content strong {
  color: #d4af37;
  font-weight: 800;
  text-shadow: 0 1px 3px rgba(212,175,55,0.4);
  background: rgba(212,175,55,0.1);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(212,175,55,0.2);
}

/* Enhanced readability */
.lab-content p::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: inherit;
  border-radius: 16px 0 0 16px;
}

/* Add subtle animation */
.lab-content p {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease-out forwards;
}

.lab-intro { animation-delay: 0.2s; }
.lab-technology { animation-delay: 0.4s; }
.lab-excellence { animation-delay: 0.6s; }
.lab-commitment { animation-delay: 0.8s; }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.laboratory p {
  background: rgba(255, 255, 255, 0.6);
  display: inline-block;
  padding: 1px 10px;
  border-radius: 18px;
  font-size: 0.6em;
  max-width: 700px;
}


.contact-form {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 48px;
  background: #191a1c;
  color: #fff;
  padding: 40px 100px 40px 100px;
  box-shadow: none;
  border-top-left-radius: 80px 60px;
  border-top-right-radius: 80px 60px;
  box-shadow: 0 -8px 48px 0 rgba(0,0,0,0.18);
  margin-top: -60px;
  z-index: 10;
  position: relative;
  animation: fadeInUp 1.2s 0.3s cubic-bezier(.22,1,.36,1) both;
}
.contact-form::before {
  content: none;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 32px;
  min-width: 220px;
  margin-top: 0;
}
.contact-info-card {
  background: #fff;
  color: #222;
  border-radius: 24px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.18);
  padding: 24px 18px 18px 18px;
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 1.1em;
  font-weight: 600;
  min-width: 200px;
  text-decoration: none;
  transition: all 0.3s ease;
  /* margin-top: 100px; */
}

.contact-info-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(0,0,0,0.25);
  background: #f8f9fa;
}
.contact-info-card .icon {
  font-size: 2em;
  color: #b89b2c;
  margin-right: 12px;
}
.contact-info-card .info-label {
  font-weight: bold;
  font-size: 1.1em;
  margin-bottom: 2px;
}
.contact-info-card .info-value {
  font-size: 1em;
  color: #222;
  font-weight: 400;
}
.contact-form form {
  background: #fff;
  color: #222;
  border-radius: 18px;
  padding: 38px 38px 32px 38px;
  min-width: 340px;
  max-width: 520px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* توسيع النموذج للموبايل */
@media (max-width: 1024px) {
  .contact-form form {
    min-width: auto;
    max-width: 80%;
    width: 80%;
    margin: 0 auto;
    padding: 40px 30px;
    gap: 25px;
  }
}
.contact-form form h3 {
  color: #d4af37;
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 18px;
  font-style: italic;
  text-align: center;
}
.contact-form input,
.contact-form textarea {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 12px;
  font-size: 1em;
  font-family: inherit;
  resize: none;
  background: #fcfcfc;
  color: #222;
  width: 100%;
  box-sizing: border-box;
}
.contact-form button {
  background: #e6c98c;
  color: #fff;
  border: none;
  padding: 12px 0;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  font-size: 1.1em;
  margin-top: 8px;
  transition: background 0.2s;
  box-shadow: 0 2px 8px rgba(212,175,55,0.10);
  width: 100%;
  box-sizing: border-box;
}
.contact-form button:hover {
  background: #d4af37;
}

footer {
  background: #fff;
  text-align: left;
  padding: 30px 0 10px 0;
}
footer img {
  height: 80px;
  object-fit: contain;
}

.story-text-container {
  margin-right: 40px;
  font-size: 0.92em;
}
.story-text h2 {
  font-size: 1.1em;
}
.read-more-btn {
  font-size: 0.98em;
  padding: 6px 20px 6px 6px;
}
.read-more-btn svg {
  width: 30px;
  height: 30px;
  padding: 5px;
}


/* Touch Targets - محسنة للموبايل */
button, a, input, textarea {
  min-height: 44px;
  min-width: 44px;
}

/* تحسينات اللمس للموبايل */
@media (hover: none) and (pointer: coarse) {
  /* إزالة تأثيرات hover على الأجهزة التي لا تدعمها */
  .product-card:hover {
    transform: none;
    box-shadow: 0 0 32px 8px #222, 0 8px 32px rgba(0,0,0,0.01);
  }
  
  .short-sections .card:hover {
    transform: none;
    box-shadow: 0 8px 32px rgba(0,0,0,0.13);
  }
  
  /* تحسين تأثيرات اللمس */
  .product-card:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
  }
  
  .short-sections .card:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
  }
  
  button:active, 
  .read-more-btn:active {
    transform: scale(0.95);
    transition: transform 0.1s ease;
  }
  
  /* تحسين الأزرار للمس */
  .slider-btn:active {
    background: rgba(34,34,34,0.9);
    transform: scale(0.9);
  }
  
  /* تحسين النماذج للمس */
  input:focus, 
  textarea:focus {
    border-width: 3px;
    border-color: #d4af37;
    transform: scale(1.02);
    transition: all 0.2s ease;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
  }
  
  /* تحسين بطاقات معلومات التواصل */
  .contact-info-card:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
  }
  
  .contact-info-card:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
    transition: all 0.2s ease;
  }
}

/* تحسينات إضافية للشاشات الصغيرة */
@media (max-width: 768px) {
  /* تحسين التمرير السلس */
  html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
  }
  
  /* تحسين عرض النصوص */
  body {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
  }
  
  /* تحسين التخطيط المرن */
  .short-sections .card {
    touch-action: manipulation;
  }
  
  .product-card {
    touch-action: manipulation;
  }
  
  /* تحسين أزرار التمرير */
  .slider-btn {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }
  
  /* تحسين النماذج */
  input, textarea {
    -webkit-appearance: none;
    appearance: none;
    border-radius: 8px;
    font-size: 16px; /* منع التكبير في iOS */
  }
  
  /* تحسين الروابط */
  a {
    -webkit-tap-highlight-color: rgba(212, 175, 55, 0.3);
  }
  
  /* تحسين الأزرار */
  button {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus States */
button:focus, input:focus, textarea:focus, a:focus {
  outline: 2px solid var(--primary-gold);
  outline-offset: 2px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .form-input {
    border-width: 3px;
  }
}



/* ضمان أولوية تأثير hover للزر */
button.read-more-btn:hover, .read-more-btn:hover {
  background: #d4af37 !important;
  color: #111 !important;
  border: 2px solid #d4af37 !important;
  box-shadow: 0 8px 32px rgba(212,175,55,0.18) !important;
  transform: translateY(-2px) scale(1.04) !important;
} 

/* --- حركة الصور في قسم our-story (نسخة مضمونة) --- */
.story-images-container {
  position: relative;
  top: -20px;
  left: -20px;
}


/* === تخطيط احترافي جديد لقسم Our Story === */

/* Mobile Story Layout */
.mobile-story-layout {
  display: none;
}

/* Desktop Layout for Product Cards */
@media (min-width: 1025px) {
  .products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .product-card {
    flex: none;
    max-width: 100%;
    min-width: auto;
  }
}

/* Desktop Story Layout */
@media (min-width: 1025px) {
  .desktop-story-layout {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 40px;
    position: relative;
    z-index: 2;
    flex-direction: row-reverse !important; /* تبديل ترتيب العناصر */
  }
  
  /* التأكد من أن الصور تظهر على اليمين */
  .desktop-story-layout .story-images-container {
    order: 2; /* الصور في المركز الثاني (اليمين) */
  }
  
  /* التأكد من أن النص يظهر على اليسار */
  .desktop-story-layout .story-text-container {
    order: 1; /* النص في المركز الأول (اليسار) */
    flex: 1;
    max-width: 600px;
    margin-right: 20px;
  }
  
  .desktop-story-layout .story-images-container {
    flex: 0 0 400px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
  }
}


.desktop-story-layout .story-images {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  min-width: 280px;
  height: 280px;
}

.story-images img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 200px;
  height: 180px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
  background: #fff;
  transition:
    transform 1.5s cubic-bezier(.77,0,.18,1),
    opacity 1.2s cubic-bezier(.77,0,.18,1),
    box-shadow 1.2s cubic-bezier(.77,0,.18,1);
}

.story-images.triangle img:nth-child(1) {
  transform: translate(-50%, -140%) scale(1) !important;
  transition-delay: 0.05s;
}
.story-images.triangle img:nth-child(2) {
  transform: translate(-125%, -65%) scale(1) !important;
  transition-delay: 0.18s;
}
.story-images.triangle img:nth-child(3) {
  transform: translate(-5%, -30%) scale(1) !important;
  transition-delay: 0.32s;
}


.desktop-story-layout .story-text {
  background: rgba(255, 255, 255, 0.95);
  padding: 30px;
  border-radius: 24px;
  border: 2px solid rgba(0,0,0,0.08);
  box-shadow: 0 20px 60px rgba(0,0,0,0.18);
  backdrop-filter: blur(10px);
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.story-text h2 {
  font-size: 1.6rem;
  font-weight: 800;
  font-style: italic;
  letter-spacing: 0.3px;
  color: #111;
  margin: 0 0 20px 0;
  text-align: left;
}

.story-text p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #222;
  margin: 0 0 18px 0;
  text-align: left;
}

.story-divider {
  border: none;
  height: 2px;
  background: linear-gradient(90deg, #d4af37, transparent);
  margin: 20px 0;
}

.read-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #333;
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  align-self: flex-end;
  margin-top: 20px;
}

.read-more-btn:hover {
  background: #d4af37;
  color: #333;
  transform: translateY(-2px);
}

.read-more-btn svg {
  width: 20px;
  height: 20px;
}

/* Story Header */
.story-header {
  text-align: center;
  margin-bottom: 40px;
  padding: 0 20px;
}

.story-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 20px 0;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
  letter-spacing: 2px;
}

.story-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212, 175, 55, 0.9);
  color: #111;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.badge-icon {
  font-size: 1.2rem;
}

/* Story Timeline */
.story-timeline {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 40px 0;
  padding: 0 20px;
}

.timeline-item {
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 20px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.timeline-item:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateX(10px);
}

.timeline-icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #d4af37, #f4e4a6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.icon-number {
  font-size: 1.2rem;
  font-weight: 800;
  color: #111;
}

.timeline-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px 0;
}

.timeline-content p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  line-height: 1.4;
}

/* Story Images Grid */
.story-images-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 40px 0;
  padding: 0 20px;
}

.story-image-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16/10;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
}

.story-image-card.featured {
  grid-column: 1;
}

.story-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  padding: 20px;
  color: #fff;
}

.image-label {
  font-size: 1rem;
  font-weight: 600;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}


/* Story CTA */
.story-cta {
  text-align: center;
  margin: 40px 0;
  padding: 0 20px;
}

.read-more-btn.enhanced {
  background: linear-gradient(135deg, #d4af37, #f4e4a6);
  color: #111;
  border: none;
  border-radius: 50px;
  padding: 16px 32px;
  font-size: 1.1rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.4);
  transition: all 0.3s ease;
  text-decoration: none;
}

.read-more-btn.enhanced:hover {
  background: linear-gradient(135deg, #f4e4a6, #d4af37);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(212, 175, 55, 0.5);
}

.read-more-btn.enhanced svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.read-more-btn.enhanced:hover svg {
  transform: translateX(5px);
}

/* === تحسينات شاملة للموبايل === */

/* تحسينات للشاشات المتوسطة والصغيرة */
@media (max-width: 1024px) {
  /* إصلاح horizontal scroll على الموبايل */
  body {
    overflow-x: hidden;
  }
  
  /* إصلاح العناصر التي تستخدم 100vw */
  .hero-slider,
  .short-sections,
  .our-story {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    left: 0 !important;
    right: 0 !important;
  }
  
  /* تفعيل التخطيط الجديد للموبايل */
  .mobile-story-layout {
    display: block;
  }
  
  .desktop-story-layout {
    display: none !important;
  }
  
  .our-story {
    padding: 60px 0;
  }
  .hero-slider {
    min-height: 450px;
  }
  
  .hero-slider .slide {
    flex-direction: column;
    gap: 20px;
    padding: 80px 20px 40px 20px;
    text-align: center;
  }
  
  .hero-slider .product-img {
    width: 200px;
    max-width: 60vw;
  }
  
  
  .hero-slider h1 {
    font-size: 2rem;
    margin-bottom: 15px;
  }
  
  .hero-slider p {
    font-size: 1.1rem;
    margin-bottom: 25px;
  }
  
  .short-sections {
    flex-direction: column;
    gap: 20px;
    padding: 0 20px;
    top: -60px;
  }
  
  .short-sections .card {
    max-width: 100%;
    min-width: auto;
    padding: 25px 30px;
  }
  
  .our-story {
    flex-direction: column;
    gap: 40px;
    padding: 60px 20px;
    min-height: auto;
    justify-content: center;
  }
  
  .story-text {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding: 30px 25px;
  }
  
  .story-images-container {
    top: 0;
    left: 0;
  }
  
  .story-images {
    width: 100%;
    height: auto;
    flex-direction: row;
    gap: 15px;
    justify-content: center;
    margin-right: 0;
  }
  
  .story-images img {
    width: 80px;
    height: 80px;
  }
  
  .production-line {
    padding: 40px 20px 80px 20px;
  }
  
  .production-line h2 {
    font-size: 2rem;
    margin: 20px 0 30px 0;
  }
  
  .products {
    gap: 20px;
    max-width: 100%;
  }
  
  .product-card {
    flex: 1 1 calc(50% - 10px);
    max-width: calc(50% - 10px);
    min-width: 160px;
    padding: 30px 20px 25px 20px;
    min-height: 320px;
  }
  
  .product-card .product-img-wrapper {
    width: 180px;
    height: 180px;
    margin-bottom: 15px;
  }
  
  .product-card .product-img-wrapper img {
    width: 200px;
    height: 200px;
  }
  
  .laboratory {
    padding: 60px 20px 40px 20px;
  }
  
  .laboratory-title {
    font-size: 2.5rem;
    margin: 40px 0 20px 0;
  }
  
  .lab-subtitle {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }
  
  .lab-desc-box {
    padding: 30px 25px 25px 25px;
    margin: 0 auto 40px auto;
  }
  
  .lab-content p {
    font-size: 1.2rem;
    padding: 20px 25px;
  }
  
  .contact-form {
    flex-direction: column;
    gap: 40px;
    padding: 40px 20px;
    align-items: center;
    justify-content: center;
  }
  
  .contact-info {
    flex-direction: column;
    gap: 20px;
    overflow-x: visible;
    padding-bottom: 0;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    text-align: center;
    width: 100%;
    max-width: 400px;
  }
  
  .contact-info-card {
    min-width: auto;
    width: 100%;
    flex-shrink: 1;
    padding: 25px 20px;
    font-size: 1.1rem;
    min-height: 80px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 0 auto;
    text-align: left;
    text-decoration: none;
    transition: all 0.3s ease;
  }
  
  .contact-info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 40px rgba(0,0,0,0.25);
    background: #f8f9fa;
  }
  
  .contact-info-card .icon {
    font-size: 2.5rem;
    flex-shrink: 0;
  }
  
  .contact-info-card div {
    flex: 1;
  }
  
  .contact-info-card .info-label {
    font-size: 1.2rem;
    margin-bottom: 8px;
  }
  
  .contact-info-card .info-value {
    font-size: 1.1rem;
    line-height: 1.4;
  }
  
  .contact-form form {
    min-width: auto;
    max-width: 80%;
    width: 80%;
    margin: 0 auto;
    padding: 40px 30px;
    gap: 25px;
  }
  
  .contact-form form h3 {
    font-size: 1.8rem;
    margin-bottom: 25px;
  }
  
  .contact-form input,
  .contact-form textarea {
    padding: 18px 20px;
    font-size: 1.1rem;
    border-radius: 12px;
    border: 2px solid #e0e0e0;
    min-height: 60px;
    width: 100%;
    box-sizing: border-box;
  }
  
  .contact-form textarea {
    min-height: 120px;
    resize: vertical;
  }
  
  .contact-form button {
    padding: 18px 0;
    font-size: 1.2rem;
    border-radius: 12px;
    min-height: 60px;
    margin-top: 15px;
  }
}

/* تحسينات للشاشات الصغيرة جدًا */
@media (max-width: 768px) {
  /* Navigation styles now handled by shared/header-shared.css */
  
  /* Header styles are now in shared/header-shared.css - removed duplicate styles */
  
  .hero-slider {
    min-height: 400px;
  }
  
  .hero-slider .slide {
    padding: 70px 15px 30px 15px;
  }
  
  .hero-slider .product-img {
    width: 160px;
  }
  
  
  .hero-slider h1 {
    font-size: 1.6rem;
  }
  
  .hero-slider p {
    font-size: 1rem;
  }
  
  .hero-slider button {
    padding: 10px 25px;
    font-size: 1rem;
  }
  
  .slider-btn {
    width: 40px;
    height: 40px;
    font-size: 2rem;
  }
  
  .slider-btn.prev {
    right: 20px;
  }
  
  .slider-btn.next {
    left: 20px;
  }
  
  .short-sections {
    padding: 0 15px;
    top: -50px;
  }
  
  .short-sections .card {
    padding: 20px 25px;
    gap: 20px;
  }
  
  .short-sections .icon {
    font-size: 2.5em;
    min-width: 50px;
  }
  
  .short-sections h3 {
    font-size: 1.4em;
  }
  
  .short-sections p {
    font-size: 1rem;
  }
  
  .our-story {
    padding: 40px 15px;
    clip-path: polygon(0 0, 100% 4vw, 100% 100%, 0 calc(100% - 4vw));
  }
  
  /* تحسينات التخطيط الجديد للموبايل */
  .story-title {
    font-size: 2rem;
    margin-bottom: 15px;
  }
  
  .story-timeline {
    margin: 30px 0;
    padding: 0 15px;
  }
  
  .timeline-item {
    padding: 15px;
    gap: 15px;
  }
  
  .timeline-icon {
    width: 40px;
    height: 40px;
  }
  
  .icon-number {
    font-size: 1rem;
  }
  
  .timeline-content h3 {
    font-size: 1.1rem;
  }
  
  .timeline-content p {
    font-size: 0.9rem;
  }
  
  .story-images-grid {
    margin: 30px 0;
    padding: 0 15px;
    gap: 12px;
  }
  
  
  .story-cta {
    margin: 30px 0;
    padding: 0 15px;
  }
  
  .read-more-btn.enhanced {
    padding: 14px 28px;
    font-size: 1rem;
  }
  
  .story-text {
    padding: 25px 20px;
    font-size: 0.9em;
  }
  
  .story-text h2 {
    font-size: 1rem;
  }
  
  .story-text p {
    font-size: 0.9em;
    line-height: 1.4;
  }
  
  .read-more-btn {
    padding: 8px 20px 8px 8px;
    font-size: 0.95em;
    margin-top: 20px;
  }
  
  .read-more-btn svg {
    width: 32px;
    height: 32px;
    padding: 4px;
  }
  
  .production-line h2 {
    font-size: 1.8rem;
  }
  
  .products {
    gap: 15px;
  }
  
  .product-card {
    flex: 1 1 100%;
    max-width: 100%;
    padding: 25px 15px 20px 15px;
    min-height: 280px;
  }
  
  .product-card .product-img-wrapper {
    width: 160px;
    height: 160px;
  }
  
  .product-card .product-img-wrapper img {
    width: 180px;
    height: 180px;
  }
  
  .product-card h4 {
    font-size: 1rem;
    padding: 8px 20px;
    left: 10px;
    bottom: 10px;
  }
  
  .laboratory {
    padding: 40px 15px 30px 15px;
  }
  
  .laboratory-title {
    font-size: 2rem;
    margin: 30px 0 15px 0;
  }
  
  .lab-subtitle {
    font-size: 1.4rem;
    margin-bottom: 25px;
  }
  
  .lab-desc-box {
    padding: 25px 20px 20px 20px;
  }
  
  .lab-content p {
    font-size: 1.1rem;
    padding: 15px 20px;
    line-height: 1.6;
  }
  
  .contact-form {
    padding: 35px 15px;
    gap: 35px;
  }
  
  .contact-info {
    flex-direction: column;
    gap: 18px;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    text-align: center;
    width: 100%;
    max-width: 400px;
  }
  
  .contact-info-card {
    min-width: auto;
    width: 100%;
    padding: 22px 18px;
    font-size: 1.05rem;
    min-height: 75px;
    gap: 18px;
  }
  
  .contact-info-card .icon {
    font-size: 2.3rem;
  }
  
  .contact-info-card .info-label {
    font-size: 1.15rem;
    margin-bottom: 6px;
  }
  
  .contact-info-card .info-value {
    font-size: 1.05rem;
  }
  
  .contact-form form {
    max-width: 80%;
    width: 80%;
    margin: 0 auto;
    padding: 35px 25px;
    gap: 22px;
  }
  
  .contact-form form h3 {
    font-size: 1.6rem;
    margin-bottom: 22px;
  }
  
  .contact-form input,
  .contact-form textarea {
    padding: 16px 18px;
    font-size: 1.05rem;
    border-radius: 10px;
    border: 2px solid #e0e0e0;
    min-height: 55px;
    width: 100%;
    box-sizing: border-box;
  }
  
  .contact-form textarea {
    min-height: 100px;
    resize: vertical;
  }
  
  .contact-form button {
    padding: 16px 0;
    font-size: 1.15rem;
    border-radius: 10px;
    min-height: 55px;
    margin-top: 12px;
  }
}

/* تحسينات للشاشات الصغيرة جدًا */
@media (max-width: 480px) {
  .hero-slider {
    min-height: 350px;
  }
  
  .hero-slider .slide {
    padding: 60px 10px 25px 10px;
  }
  
  .hero-slider .product-img {
    width: 140px;
  }
  
  
  .hero-slider h1 {
    font-size: 1.4rem;
  }
  
  .hero-slider p {
    font-size: 0.9rem;
  }
  
  .hero-slider button {
    padding: 8px 20px;
    font-size: 0.9rem;
  }
  
  .slider-btn {
    width: 35px;
    height: 35px;
    font-size: 1.8rem;
  }
  
  .slider-btn.prev {
    right: 15px;
  }
  
  .slider-btn.next {
    left: 15px;
  }
  
  .short-sections {
    padding: 0 10px;
    top: -40px;
  }
  
  .short-sections .card {
    padding: 18px 20px;
    gap: 15px;
  }
  
  .short-sections .icon {
    font-size: 2.2em;
    min-width: 45px;
  }
  
  .short-sections h3 {
    font-size: 1.2em;
  }
  
  .short-sections p {
    font-size: 0.9em;
  }
  
  .our-story {
    padding: 30px 10px;
    clip-path: polygon(0 0, 100% 3vw, 100% 100%, 0 calc(100% - 3vw));
  }
  
  /* تحسينات التخطيط الجديد للشاشات الصغيرة جداً */
  .story-title {
    font-size: 1.6rem;
    margin-bottom: 12px;
  }
  
  .story-badge {
    padding: 6px 12px;
    font-size: 0.8rem;
  }
  
  .story-timeline {
    margin: 25px 0;
    padding: 0 10px;
    gap: 15px;
  }
  
  .timeline-item {
    padding: 12px;
    gap: 12px;
  }
  
  .timeline-icon {
    width: 35px;
    height: 35px;
  }
  
  .icon-number {
    font-size: 0.9rem;
  }
  
  .timeline-content h3 {
    font-size: 1rem;
  }
  
  .timeline-content p {
    font-size: 0.85rem;
  }
  
  .story-images-grid {
    margin: 25px 0;
    padding: 0 10px;
    gap: 10px;
  }
  
  .story-image-card {
    border-radius: 12px;
  }
  
  .image-overlay {
    padding: 15px;
  }
  
  .image-label {
    font-size: 0.9rem;
  }
  
  
  .story-cta {
    margin: 25px 0;
    padding: 0 10px;
  }
  
  .read-more-btn.enhanced {
    padding: 12px 24px;
    font-size: 0.9rem;
  }
  
  .story-text {
    padding: 20px 15px;
    font-size: 0.85em;
  }
  
  .story-text h2 {
    font-size: 0.95rem;
  }
  
  .story-text p {
    font-size: 0.85em;
  }
  
  .read-more-btn {
    padding: 6px 15px 6px 6px;
    font-size: 0.9em;
  }
  
  .read-more-btn svg {
    width: 28px;
    height: 28px;
    padding: 3px;
  }
  
  .production-line {
    padding: 30px 10px 60px 10px;
  }
  
  .production-line h2 {
    font-size: 1.5rem;
  }
  
  .products {
    gap: 10px;
  }
  
  .product-card {
    padding: 20px 10px 15px 10px;
    min-height: 240px;
  }
  
  .product-card .product-img-wrapper {
    width: 140px;
    height: 140px;
    margin-bottom: 10px;
  }
  
  .product-card .product-img-wrapper img {
    width: 160px;
    height: 160px;
  }
  
  .product-card h4 {
    font-size: 0.9rem;
    padding: 6px 15px;
    left: 8px;
    bottom: 8px;
  }
  
  .laboratory {
    padding: 30px 10px 25px 10px;
  }
  
  .laboratory-title {
    font-size: 1.6rem;
    margin: 20px 0 10px 0;
  }
  
  .lab-subtitle {
    font-size: 1.2rem;
    margin-bottom: 20px;
  }
  
  .lab-desc-box {
    padding: 20px 15px 15px 15px;
  }
  
  .lab-content p {
    font-size: 1rem;
    padding: 12px 15px;
    line-height: 1.5;
  }
  
  .contact-form {
    padding: 30px 10px;
    gap: 30px;
  }
  
  .contact-info {
    gap: 16px;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    text-align: center;
    width: 100%;
    max-width: 400px;
  }
  
  .contact-info-card {
    padding: 20px 15px;
    font-size: 1rem;
    min-height: 70px;
    gap: 16px;
  }
  
  .contact-info-card .icon {
    font-size: 2rem;
  }
  
  .contact-info-card .info-label {
    font-size: 1.1rem;
    margin-bottom: 5px;
  }
  
  .contact-info-card .info-value {
    font-size: 1rem;
    line-height: 1.3;
  }
  
  .contact-form form {
    max-width: 80%;
    width: 80%;
    margin: 0 auto;
    padding: 30px 20px;
    gap: 20px;
  }
  
  .contact-form form h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
  }
  
  .contact-form input,
  .contact-form textarea {
    padding: 14px 16px;
    font-size: 1rem;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    min-height: 50px;
    width: 100%;
    box-sizing: border-box;
  }
  
  .contact-form textarea {
    min-height: 90px;
    resize: vertical;
  }
  
  .contact-form button {
    padding: 14px 0;
    font-size: 1.1rem;
    border-radius: 8px;
    min-height: 50px;
    margin-top: 10px;
  }
  
  /* تحسين زر العودة للأعلى للموبايل */
  #backToTop {
    width: 45px;
    height: 45px;
    bottom: 15px;
    right: 15px;
    font-size: 1.3rem;
  }
}

/* Back to Top Button */
#backToTop {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: var(--primary-gold);
  color: var(--white);
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 1000;
  display: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

#backToTop:hover {
  background: var(--secondary-gold);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

#backToTop.show {
  display: block;
}
.story-images {
  position: relative;
  width: 220px;
  height: 220px;
}
.story-images img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 160px;
  height: 140px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
  background: #fff;
  transition:
    transform 0.9s cubic-bezier(.77,0,.18,1),
    opacity 0.7s cubic-bezier(.77,0,.18,1),
    box-shadow 0.7s cubic-bezier(.77,0,.18,1);
}
.product-img {
  background: transparent !important;
}

/* === Enhanced Products Page Layout === */

.laboratory .lab-desc-box {
  font-size: 0.9em;
  padding: 10px 10px 10px 10px;
  max-width: 1000px;
  border-radius: 30px;
  margin: 0 auto 40px auto;
}
.laboratory .lab-desc-box em {
  font-size: 1.5em;
}
.laboratory h2 {
  font-size: 2em;
  margin: 60px 0 18px 0;
}
/* .laboratory .lab-desc-box {
  border-radius: 120px;
  max-width: 1600px;
} */

.laboratory {
  position: relative;
  padding-bottom: 0;
  background: url('lab-bg.jpg') center/cover no-repeat;
  animation: none;
}
.contact-form {
  background: #191a1c;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  box-shadow: none;
  margin-top: 0;
  z-index: auto;
  position: relative;
  border-top: none;
  filter: none;
  animation: none;
}
.contact-form-separator {
  display: none;
}
@media (max-width: 700px) {
  /* إصلاح إضافي للشاشات الصغيرة */
  body {
    overflow-x: hidden !important;
  }
  
  /* التأكد من أن جميع العناصر تناسب الشاشة */
  * {
    max-width: 100vw;
    box-sizing: border-box;
  }
  
  .products-main {
    flex-direction: column;
    gap: 18px;
    padding: 60px 2vw 10px 2vw;
  }
  .products-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .product-card {
    min-width: 0;
    max-width: 98vw;
    padding: 18px 4vw 12px 4vw;
    font-size: 0.98em;
  }
  .contact-form {
    padding: 18px 2vw 18px 2vw;
    border-radius: 18px 18px 0 0;
    margin-top: 0;
  }
  .laboratory {
    padding: 0 2vw 0 2vw;
    min-height: 200px;
  }
  .lab-desc-box {
    padding: 10px 4vw 8px 4vw;
    max-width: 98vw;
    font-size: 0.95em;
  }
}
img { max-width: 100%; height: auto; display: block; }

/* إصلاح عام للـ horizontal scroll على الموبايل */
@media (max-width: 1024px) {
  html, body {
    overflow-x: hidden;
    max-width: 100vw;
  }
  
  /* التأكد من أن جميع العناصر تناسب الشاشة */
  .container, .wrapper, main, section {
    max-width: 100vw;
    overflow-x: hidden;
  }
}

@keyframes fadeInUpScroll {
  from { opacity: 0; transform: translateY(60px); }
  to { opacity: 1; transform: translateY(0); }
}
.scroll-animate {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.7s, transform 0.7s;
}
.scroll-animate.visible {
  opacity: 1;
  transform: translateY(0);
  animation: fadeInUpScroll 1s cubic-bezier(.22,1,.36,1) both;
}
/* Performance optimizations - محسنة للموبايل */
img, .product-img-wrapper img {
  transition: transform 0.35s cubic-bezier(.22,1,.36,1), filter 0.35s;
  will-change: transform, filter;
}

/* تحسينات الأداء للموبايل */
@media (max-width: 768px) {
  /* تحسين الرسوم المتحركة للموبايل */
  * {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }
  
  /* تحسين التمرير */
  .hero-slider,
  .our-story,
  .production-line,
  .laboratory,
  .contact-form {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
  }
  
  /* تحسين الصور */
  img {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
  }
  
  /* تقليل التعقيد في الرسوم المتحركة */
  .story-images img {
    transition: transform 0.6s ease-out, opacity 0.5s ease-out;
  }
  
  /* تحسين تأثيرات الظلال للموبايل */
  .short-sections .card,
  .product-card,
  .story-text,
  .lab-desc-box {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  }
  
  /* تحسين التدرجات للموبايل */
  .laboratory-title {
    background: #d4af37;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 4px 16px rgba(0,0,0,0.6));
  }
  
  /* تحسين الخطوط للموبايل */
  body {
    font-display: swap;
  }
  
  /* تحسين التخطيط */
  .short-sections,
  .products,
  .contact-form {
    contain: layout style paint;
  }
}
img:hover, .product-img-wrapper img:hover {
  transform: scale(1.07) rotate(-2deg);
  filter: brightness(1.15) drop-shadow(0 4px 18px #d4af37aa);
  z-index: 2;
}

/* Lazy loading placeholder */
img[loading="lazy"] {
  background: linear-gradient(90deg, #f0f0f0 25%, transparent 37%, #f0f0f0 63%);
  background-size: 400% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
}

img[loading="lazy"].loaded {
  animation: none;
  background: none;
}

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

/* Fade in animation for filtered products */
.fade-in {
  animation: fadeInScale 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

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

/* Critical CSS - Above the fold optimizations */
.hero-slider, .loader {
  contain: layout style paint;
}

/* Reduce repaints and reflows */
.product-card, .short-sections .card {
  transform: translateZ(0);
  backface-visibility: hidden;
}




/* Mobile Sidebar Styles - Now handled by shared/header-shared.css */

.close-sidebar {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #666;
  cursor: pointer;
  padding: 10px;
  border-radius: 50%;
  transition: all 0.3s ease;
  z-index: 1004;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-sidebar:hover {
  background: #f0f0f0;
  color: #d4af37;
}

.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1003;
  transition: opacity 0.3s ease;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  backdrop-filter: blur(2px);
}

.sidebar-overlay.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Burger Menu Styles - Now handled by shared/header-shared.css */

/* Responsive Design - Tablet and Desktop - Now handled by shared/header-shared.css */

/* Mobile only - burger menu shows only on mobile devices - Now handled by shared/header-shared.css */

/* Tablet - hide burger menu, show navigation - Now handled by shared/header-shared.css */
  
  /* Tablet Story Layout */
  .desktop-story-layout {
    flex-direction: column;
    gap: 40px;
    padding: 60px 30px;
  }
  
  .story-images-container {
    flex: none;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }
  
  .story-images {
    flex-direction: row;
    justify-content: center;
    gap: 15px;
  }
  
  .story-images img {
    width: 170px;
    height: 170px;
  }
  
  .story-text-container {
    max-width: 600px;
    margin: 0 auto;
  }
  
  .story-text {
    padding: 30px;

  }
  
  .story-text h2 {
    font-size: 1.8rem;
    text-align: center;
  }
  
  .story-text p {
    font-size: 1rem;
    text-align: center;
  }

/* Small phones refinements */
@media (max-width: 480px) {
  /* إصلاح نهائي للشاشات الصغيرة جداً */
  body {
    overflow-x: hidden !important;
  }
  
  /* التأكد من عدم وجود عناصر تتجاوز عرض الشاشة */
  .hero-slider .slide,
  .short-sections,
  .our-story,
  .production-line,
  .laboratory {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
  
  /* Header styles are now in shared/header-shared.css */

  /* Mobile sidebar styles now handled by shared/header-shared.css */

  .close-sidebar {
    top: 15px;
    right: 15px;
    font-size: 1.3rem;
  }
}

/* Ultra-small devices */
@media (max-width: 360px) {
  /* Mobile sidebar styles now handled by shared/header-shared.css */
}
