:root {
  --primary-color: #bc18d3;
  --secondary-color: #4a67c5;
  --dark-bg: #0f0f1e;
  --light-bg: #f8f9fa;
  --text-dark: #1a1a2e;
  --text-light: #ffffff;
  --gradient: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  overflow-x: hidden;
  transition: font-family 0.3s ease;
}

body[dir="rtl"] {
  font-family: 'Cairo', sans-serif;
}

html {
  scroll-behavior: smooth;
}

.lang-toggle-btn {
  position: fixed;
  top: 110px;
  right: 20px;
  z-index: 1000;
  background: var(--gradient);
  border: none;
  color: white;
  padding: 12px 20px;
  border-radius: 50px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(188, 24, 211, 0.3);
  transition: all 0.3s ease;
}

body[dir="rtl"] .lang-toggle-btn {
  right: auto;
  left: 20px;
}

.lang-toggle-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(188, 24, 211, 0.4);
}

.go-to-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  background: var(--gradient);
  border: none;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(188, 24, 211, 0.3);
  transition: all 0.3s ease;
}

body[dir="rtl"] .go-to-top-btn {
  right: auto;
  left: 30px;
}

.go-to-top-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(188, 24, 211, 0.5);
}

.go-to-top-btn.show {
  display: flex;
}

.navbar {
  background: rgba(15, 15, 30, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
}

.navbar-brand i {
  color: var(--primary-color);
  font-size: 1.8rem;
}

.navbar-brand:hover {
  color: var(--primary-color);
}

.nav-link {
  color: var(--text-light);
  font-weight: 500;
  margin: 0 10px;
  position: relative;
  transition: all 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover {
  color: var(--primary-color);
}

.hero-section {
  position: relative;
  background: var(--dark-bg);
  padding: 80px 0 0 0;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient);
  opacity: 0.1;
  z-index: 1;
}

.hero-dots-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  opacity: 0.6;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(188, 24, 211, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(74, 103, 197, 0.1) 0%, transparent 50%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  animation: fadeInUp 1s ease;
}

.hero-illustration {
  position: relative;
  z-index: 2;
  text-align: center;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-section h1 {
  line-height: 1.2;
}

.hero-buttons .btn {
  border-radius: 50px;
  padding: 12px 35px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--gradient);
  border: none;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(188, 24, 211, 0.4);
}

.btn-outline-light:hover {
  background: white;
  color: var(--primary-color);
  transform: translateY(-3px);
}

.products-section {
  background: var(--light-bg);
  padding: 100px 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--gradient);
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

.product-card {
  background: white;
  border-radius: 20px;
  padding: 40px 30px;
  height: 100%;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.product-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary-color);
  box-shadow: 0 15px 40px rgba(188, 24, 211, 0.2);
}

.product-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  font-size: 2rem;
  color: white;
  transition: all 0.3s ease;
}

.product-card:hover .product-icon {
  transform: scale(1.1) rotate(5deg);
}

.product-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 15px;
}

.product-description {
  color: #666;
  margin-bottom: 20px;
  line-height: 1.6;
}

.product-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.product-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: #555;
}

.product-features i {
  color: var(--primary-color);
  font-size: 0.9rem;
}

.carousel-indicators {
  margin-bottom: 2rem;
}

.carousel-indicators button {
  background-color: var(--primary-color);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  margin: 0 8px;
  opacity: 0.5;
  transition: all 0.3s ease;
}

.carousel-indicators button.active {
  opacity: 1;
  transform: scale(1.3);
}

.product-slide {
  padding: 40px 20px;
  min-height: 450px;
}

.product-card-slide {
  background: white;
  border-radius: 25px;
  padding: 60px 40px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  border: 2px solid transparent;
  transition: all 0.3s ease;
  max-width: 900px;
  margin: 0 auto;
}

.product-card-slide:hover {
  border-color: var(--primary-color);
  box-shadow: 0 15px 50px rgba(188, 24, 211, 0.2);
}

.product-icon-slide {
  width: 120px;
  height: 120px;
  background: var(--gradient);
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 30px;
  font-size: 3.5rem;
  color: white;
  box-shadow: 0 10px 30px rgba(188, 24, 211, 0.3);
  animation: float 3s ease-in-out infinite;
}

.product-title-slide {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 25px;
}

.product-description-slide {
  font-size: 1.2rem;
  color: #666;
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.app-store-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.store-button {
  transition: all 0.3s ease;
  display: block;
}

.store-button img {
  height: 60px;
  width: auto;
  transition: all 0.3s ease;
}

.store-button:hover {
  transform: translateY(-5px);
}

.store-button:hover img {
  filter: brightness(1.1);
}

.carousel-control-prev,
.carousel-control-next {
  width: 60px;
  height: 60px;
  background: var(--gradient);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.8;
  transition: all 0.3s ease;
}

.carousel-control-prev {
  left: -80px;
}

.carousel-control-next {
  right: -80px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 30px;
  height: 30px;
}

.gallery-section {
  background: white;
  padding: 100px 0;
}

.gallery-tabs {
  flex-wrap: wrap;
  gap: 10px;
}

.gallery-tabs .nav-link {
  border-radius: 50px;
  padding: 12px 30px;
  font-weight: 600;
  color: var(--text-dark);
  background: #f0f0f0;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.gallery-tabs .nav-link:hover {
  background: rgba(188, 24, 211, 0.1);
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.gallery-tabs .nav-link.active {
  background: var(--gradient);
  color: white;
  border-color: transparent;
  box-shadow: 0 5px 15px rgba(188, 24, 211, 0.3);
}

.tab-content {
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.gallery-item {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  cursor: pointer;
  height: 300px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 0.95;
}

.gallery-item:hover .gallery-img {
  transform: scale(1.1);
}

.gallery-content {
  text-align: center;
  color: white;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.gallery-item:hover .gallery-content {
  transform: translateY(0);
}

.gallery-content h4 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.gallery-content p {
  font-size: 1rem;
  opacity: 0.9;
}

.contactus-section {
  background: var(--light-bg);
  padding: 100px 0;
}

.footer-section {
  background: var(--dark-bg);
  color: var(--text-light);
  padding: 80px 0 30px 0;
}

.footer-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 25px;
  color: var(--text-light);
  position: relative;
  padding-bottom: 15px;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--gradient);
}

body[dir="rtl"] .footer-title::after {
  left: auto;
  right: 0;
}

.footer-text {
  color: #aaa;
  line-height: 1.8;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-link {
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-link:hover {
  background: var(--gradient);
  transform: translateY(-5px);
  color: white;
}

.contact-info {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-info li {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  color: #aaa;
}

.contact-info i {
  color: var(--primary-color);
  font-size: 1.2rem;
  margin-top: 3px;
}

.map-container {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 50px;
  color: #888;
}

@media (max-width: 768px) {
  .hero-section {
    padding: 60px 0 0 0;
  }

  .hero-section h1 {
    font-size: 2rem;
  }

  .hero-illustration {
    margin-top: 40px;
  }

  .hero-illustration i {
    font-size: 6rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .products-section,
  .gallery-section,
  .footer-section {
    padding: 60px 0;
  }

  .product-card {
    margin-bottom: 20px;
  }

  .product-card-slide {
    padding: 40px 20px;
  }

  .product-icon-slide {
    width: 90px;
    height: 90px;
    font-size: 2.5rem;
  }

  .product-title-slide {
    font-size: 1.8rem;
  }

  .product-description-slide {
    font-size: 1rem;
  }

  .store-button img {
    height: 50px;
  }

  .carousel-control-prev,
  .carousel-control-next {
    width: 45px;
    height: 45px;
  }

  .carousel-control-prev {
    left: 10px;
  }

  .carousel-control-next {
    right: 10px;
  }

  .product-slide {
    min-height: 500px;
    padding: 20px 10px;
  }

  .gallery-item {
    height: 250px;
    margin-bottom: 20px;
  }

  .lang-toggle-btn {
    top: 70px;
    right: 10px;
    padding: 10px 16px;
    font-size: 12px;
  }

  body[dir="rtl"] .lang-toggle-btn {
    right: auto;
    left: 10px;
  }

  .navbar-nav {
    background: rgba(15, 15, 30, 0.98);
    padding: 20px;
    border-radius: 10px;
    margin-top: 15px;
  }

  .nav-link {
    margin: 10px 0;
  }
}

body[dir="rtl"] .navbar-nav {
  margin-left: 0;
  margin-right: auto;
}

body[dir="rtl"] .hero-buttons .btn {
  margin-right: 0;
  margin-left: 15px;
}

body[dir="rtl"] .product-features li,
body[dir="rtl"] .contact-info li {
  flex-direction: row-reverse;
}

body[dir="rtl"] .social-links {
  flex-direction: row-reverse;
}

body[dir="rtl"] .carousel-control-prev {
  left: auto;
  right: -80px;
}

body[dir="rtl"] .carousel-control-next {
  right: auto;
  left: -80px;
}

@media (max-width: 768px) {
  body[dir="rtl"] .carousel-control-prev {
    right: 10px;
  }

  body[dir="rtl"] .carousel-control-next {
    left: 10px;
  }
}

@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
