:root {
  --primary-color: #65383f;
  --secondary-color: #8f3743;
  --primary-gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  --white: #ffffff;
  --light-gray: #f8f8f8;
  --medium-gray: #e0e0e0;
  --dark-gray: #333333;
  --animation-duration: 0.3s;
  --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  --box-shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.15);
  --card-radius: 20px;
  --button-radius: 50px;
}

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

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--white);
  color: var(--dark-gray);
  overflow-x: hidden;
  line-height: 1.6;
  background-image: url('data:image/svg+xml;utf8,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><path d="M10 10l80 80M30 10l60 60M50 10l40 40M70 10l20 20M10 30l60 60M10 50l40 40M10 70l20 20" stroke="%23f0f0f0" stroke-width="1" fill="none"/></svg>');
  background-size: 30px 30px;
}

/* For RTL support */
html[dir="rtl"] body {
  font-family: 'Cairo', 'Poppins', sans-serif;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header styles */
header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 0;
  position: relative;
  margin-bottom: 40px;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.logo {
  margin-bottom: 20px;
  animation: fadeInDown 1s ease;
}

.logo img {
  height: 80px;
  transition: transform 0.3s ease;
}

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

.lang-switcher {
  display: flex;
  gap: 10px;
  animation: fadeInUp 1s ease;
}

.lang-btn {
  background: none;
  border: 2px solid var(--primary-color);
  border-radius: 20px;
  padding: 5px 15px;
  color: var(--primary-color);
  cursor: pointer;
  font-weight: 600;
  transition: all var(--animation-duration) ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.lang-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary-gradient);
  z-index: -1;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.lang-btn:hover::before, .lang-btn.active::before {
  transform: scaleX(1);
  transform-origin: left;
}

.lang-btn:hover, .lang-btn.active {
  color: var(--white);
  border-color: transparent;
  animation: pulse 1.5s infinite;
}

/* Main content styles */
main {
  padding: 20px 0 60px;
}

.intro {
  text-align: center;
  margin-bottom: 60px;
  animation: fadeIn 1.2s ease;
  padding: 30px;
  position: relative;
}

.intro::before,
.intro::after {
  content: '';
  position: absolute;
  width: 100px;
  height: 100px;
  background-image: url('data:image/svg+xml;utf8,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><path d="M50,10 A40,40 0 1,0 50,90 A40,40 0 1,0 50,10 Z" stroke="%23653841" stroke-width="2" fill="none" stroke-dasharray="5,5" /></svg>');
  background-repeat: no-repeat;
  opacity: 0.5;
}

.intro::before {
  top: 0;
  left: 10%;
  transform: translate(-50%, -30%);
}

.intro::after {
  bottom: 0;
  right: 10%;
  transform: translate(50%, 30%);
}

.title {
  font-size: 3.2rem;
  margin-bottom: 15px;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
  letter-spacing: -1px;
  position: relative;
  display: inline-block;
}

.title::after {
  content: '';
  position: absolute;
  width: 100px;
  height: 6px;
  background: var(--primary-gradient);
  bottom: -10px;
  left: calc(50% - 50px);
  border-radius: 3px;
}

.subtitle {
  font-size: 1.2rem;
  color: #666;
  max-width: 700px;
  margin: 0 auto;
}

/* Product cards */
.products {
  display: flex;
  flex-direction: column;
  gap: 60px;
  margin-bottom: 60px;
}

.product-card {
  display: flex;
  gap: 20px;
  background: #fff;
  border-radius: var(--card-radius);
  box-shadow: var(--box-shadow);
  padding: 15px;
  padding-top: 5px;
  margin: 20px 0;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

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

.product-card:nth-child(even) {
  flex-direction: row-reverse;
}

.product-image {
  flex: 1;
  min-height: 280px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0;
  margin: 0;
  background: transparent;
  justify-content: flex-start;
  align-items: flex-start;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s ease;
  padding: 20px;
}

/* Removed hover transform to avoid affecting colors */

.product-details {
  flex: 1.5;
  padding: 40px;
  display: flex;
  flex-direction: column;
}

.product-title {
  font-size: 2rem;
  margin-bottom: 15px;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  display: inline-block;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.product-title::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--primary-gradient);
  border-radius: 2px;
}

.product-description {
  margin-bottom: 15px;
  line-height: 1.6;
}

/* Product specifications */
.product-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--medium-gray);
  animation: fadeInUp 1s ease;
}

.spec-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: var(--white);
  padding: 10px 15px;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.spec-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(143, 55, 67, 0.15);
  border-color: rgba(143, 55, 67, 0.2);
}

.spec-item i {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1.1rem;
}

/* Service sections */
.service-section {
  margin-bottom: 25px;
}

.service-section h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  display: inline-block;
  padding-left: 15px;
}

.service-section h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 20px;
  background: var(--primary-gradient);
  border-radius: 3px;
}

.service-list {
  list-style: none;
  background-color: var(--white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.05);
  animation: fadeIn 1s ease;
}

.service-list li {
  padding: 12px 15px;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--medium-gray);
}

.service-list li:last-child {
  border-bottom: none;
}

.service-list li:nth-child(odd) {
  background-color: rgba(101, 56, 63, 0.05);
}

.service-name {
  font-weight: 600;
}

.service-duration {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
}

.download-btn {
  align-self: flex-start;
  background: var(--primary-gradient);
  color: var(--white);
  border: none;
  padding: 12px 28px;
  border-radius: var(--button-radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  box-shadow: 0 5px 15px rgba(143, 55, 67, 0.3);
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 1;
  overflow: hidden;
  margin-top: 20px;
  letter-spacing: 0.5px;
}

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

.download-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(143, 55, 67, 0.5);
}

.download-btn i {
  font-size: 1.1rem;
}

/* Coming Soon Product */
.coming-soon .product-image {
  position: relative;
}

.coming-soon-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(101, 56, 63, 0.85), rgba(143, 55, 67, 0.85));
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--white);
  font-size: 1.8rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
  clip-path: polygon(0 0, 100% 0, 100% 85%, 85% 100%, 0 100%);
}

.product-image {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  border-radius: var(--card-radius);
  overflow: hidden;
  padding: 10px;
}

/* Footer styles */
footer {
  text-align: center;
  padding: 30px 0;
  color: #666;
  border-top: 1px solid var(--medium-gray);
}

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

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(143, 55, 67, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(143, 55, 67, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(143, 55, 67, 0);
  }
}

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

/* Responsive styles */
@media (max-width: 900px) {
  .product-card, .product-card:nth-child(even) {
    flex-direction: column;
  }

  .product-image {
    min-height: 300px;
  }

  .title {
    font-size: 2.2rem;
  }

  .product-details {
    padding: 30px;
  }
}

@media (max-width: 600px) {
  .title {
    font-size: 1.8rem;
  }

  .product-title {
    font-size: 1.6rem;
  }

  .product-specs {
    gap: 10px;
  }

  .spec-item {
    padding: 6px 12px;
    font-size: 0.9rem;
  }

  .service-section h3 {
    font-size: 1.2rem;
  }

  .service-list li {
    flex-direction: column;
    gap: 5px;
  }
}

/* RTL direction styles */
html[dir="rtl"] .product-card:nth-child(even) {
  flex-direction: row;
}

html[dir="rtl"] .product-card:nth-child(odd) {
  flex-direction: row-reverse;
}

html[dir="rtl"] .download-btn i {
  transform: scaleX(-1);
}

html[dir="rtl"] .product-title::after {
  left: auto;
  right: 0;
}

html[dir="rtl"] .spec-item {
  flex-direction: row-reverse;
}

@media (max-width: 900px) {
  html[dir="rtl"] .product-card, 
  html[dir="rtl"] .product-card:nth-child(even),
  html[dir="rtl"] .product-card:nth-child(odd) {
    flex-direction: column;
  }
}
