/* Simple Hover Effects for Images */
.glow-border {
  position: relative;
  display: inline-block;
  border-radius: 1.5rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.glow-border:hover {
  transform: scale(1.02);
}

.glow-inner {
  position: relative;
  display: block;
  border-radius: 1.5rem;
  overflow: hidden;
}

.glow-inner img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 1.5rem;
  transition: all 0.3s ease;
}

/* Simple Hover Effects for Slider Images */
.swiper-slide .relative.group:hover .glow-border {
  transform: scale(1.02);
}

/* Simple Hover Effects for Main Dashboard Image */
.animate-float {
  position: relative;
  display: inline-block;
  transition: all 0.3s ease;
}

.animate-float:hover {
  transform: scale(1.02);
}

.animate-float img {
  border-radius: 1.5rem;
  position: relative;
  transition: all 0.4s ease;
  display: block;
  z-index: 1;
}

/* Simple Feature Cards */
.feature-card {
  position: relative;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
}

/* Simple Navigation Items */
.nav-item-edge {
  position: relative;
  transition: all 0.3s ease;
}

.nav-item-edge:hover {
  transform: translateY(-1px);
}

/* Gradient Backgrounds */
.gradient-bg {
  background: linear-gradient(135deg, #0b0b0d 0%, #1a1a1f 50%, #0b0b0d 100%);
  position: relative;
}

.gradient-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 20% 80%,
      rgba(100, 34, 242, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(92, 35, 217, 0.1) 0%,
      transparent 50%
    );
  pointer-events: none;
}

/* Text Gradients */
.text-gradient {
  background: linear-gradient(135deg, #6422f2 0%, #5c23d9 50%, #3d188c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

/* Floating Shapes Animation */
.floating-shapes {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.floating-shapes::before,
.floating-shapes::after {
  content: "";
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: linear-gradient(
    45deg,
    rgba(100, 34, 242, 0.1),
    rgba(92, 35, 217, 0.1)
  );
  animation: float 20s infinite linear;
}

.floating-shapes::before {
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.floating-shapes::after {
  bottom: 10%;
  right: 10%;
  animation-delay: -10s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  33% {
    transform: translateY(-30px);
  }
  66% {
    transform: translateY(30px);
  }
}

/* Scroll Progress Indicator */
.scroll-indicator {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, #6422f2, #5c23d9, #3d188c);
  z-index: 9999;
  transition: width 0.3s ease;
}

/* Hero Section Animations */
.hero-title {
  animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
  animation: fadeInUp 1s ease-out 0.2s both;
}

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

/* Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

/* Swiper Customization */
.swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.3);
  opacity: 1;
}

.swiper-pagination-bullet-active {
  background: #6422f2;
}

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

.hamburger span {
  width: 25px;
  height: 3px;
  background: white;
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

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

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

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

/* Mobile Menu */
.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-menu-overlay.active {
  display: block !important;
}

/* Button Styles */
.btn-primary {
  background: linear-gradient(135deg, #6422f2 0%, #5c23d9 100%);
  border: none;
  padding: 12px 24px;
  border-radius: 50px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(100, 34, 242, 0.3);
}

/* Card Styles */
.card {
  background: rgba(11, 11, 13, 0.8);
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(100, 34, 242, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem !important;
    line-height: 1.2 !important;
  }

  .hero-subtitle {
    font-size: 1.125rem !important;
  }

  .feature-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 2rem !important;
  }

  .hero-subtitle {
    font-size: 1rem !important;
  }
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 20px;
  right: 20px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 3px #999;
  z-index: 1000;
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

.whatsapp-float a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.whatsapp-float svg {
  transition: transform 0.3s ease;
}

.whatsapp-float:hover svg {
  /* Removed rotation animation */
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* Responsive adjustments for WhatsApp button */
@media (max-width: 768px) {
  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 15px;
    right: 15px;
  }

  .whatsapp-float svg {
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 480px) {
  .whatsapp-float {
    width: 45px;
    height: 45px;
    bottom: 10px;
    right: 10px;
  }

  .whatsapp-float svg {
    width: 45px;
    height: 45px;
  }
}

/* Language Switcher Styles */
.language-switcher {
  position: relative;
}

.language-switcher button {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: white;
  font-size: 14px;
  transition: all 0.3s ease;
}

.language-switcher button:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* RTL border radius fixes for CTA section */
.rtl-input {
  border-radius: 9999px;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-top-right-radius: 9999px;
  border-bottom-right-radius: 9999px;
}

.rtl-button {
  border-radius: 9999px;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-top-left-radius: 9999px;
  border-bottom-left-radius: 9999px;
}
/* Language Switcher Styles */
.language-switcher {
  position: relative;
  display: inline-block;
}

.language-switcher .language-toggle {
  background: rgba(17, 17, 17, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  padding: 0.5rem 1rem;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.language-switcher .language-toggle:hover {
  background: rgba(100, 34, 242, 0.2);
  border-color: rgba(100, 34, 242, 0.5);
}

.language-switcher .language-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.5rem;
  background: rgba(17, 17, 17, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  min-width: 200px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(15px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.language-switcher .language-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.language-switcher .language-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: white;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.language-switcher .language-option:last-child {
  border-bottom: none;
}

.language-switcher .language-option:hover {
  background: rgba(100, 34, 242, 0.2);
  color: #6422f2;
}

.language-switcher .language-option.active {
  background: rgba(100, 34, 242, 0.3);
  color: #6422f2;
}

.language-switcher .language-option .flag {
  font-size: 1.25rem;
  width: 24px;
  text-align: center;
}

.language-switcher .language-option .language-name {
  font-size: 0.875rem;
  font-weight: 500;
}

/* RTL Support for Arabic */
[dir="rtl"] {
  text-align: right;
}

[dir="rtl"] .language-switcher .language-dropdown {
  left: 0;
  right: auto;
}

/* Hero Section RTL Fixes */
[dir="rtl"] #home .text-center {
  text-align: center !important;
}

[dir="rtl"] #home .hero-title,
[dir="rtl"] #home .hero-subtitle {
  text-align: center !important;
  width: 100%;
  display: block;
}

[dir="rtl"] #home .container {
  padding-top: 0;
}

[dir="rtl"] #home .flex.flex-col.justify-center {
  justify-content: center;
  align-items: center;
}

/* RTL Form Elements - Keep input/button order correct */
[dir="rtl"]
  .flex.flex-col.sm\:flex-row
  .flex.flex-col.sm\:flex-row.items-center {
  flex-direction: row !important;
  direction: rtl;
}

/* RTL Input Styling */
[dir="rtl"] input[type="phone"],
[dir="rtl"] input[type="tel"] {
  text-align: right;
  padding-right: 1.5rem;
  padding-left: 1.5rem;
}

/* RTL Border Radius - Fix for proper RTL appearance */
[dir="rtl"] input.sm\:rounded-l-full.sm\:rounded-r-none {
  border-radius: 9999px;
}

[dir="rtl"] button.sm\:rounded-l-none.sm\:rounded-r-full {
  border-radius: 9999px;
}

@media (min-width: 640px) {
  /* RTL: Input rounded on RIGHT, Button rounded on LEFT */
  [dir="rtl"] input.sm\:rounded-l-full.sm\:rounded-r-none {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-top-right-radius: 9999px;
    border-bottom-right-radius: 9999px;
  }

  [dir="rtl"] button.sm\:rounded-l-none.sm\:rounded-r-full {
    border-top-left-radius: 9999px;
    border-bottom-left-radius: 9999px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
  }
}

/* RTL Navigation and General Layout - Only for navigation, not forms */
[dir="rtl"] nav .flex {
  flex-direction: row-reverse;
}

[dir="rtl"] .space-x-8 > * + * {
  margin-left: 0;
  margin-right: 2rem;
}

/* RTL Text Alignment */
[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3,
[dir="rtl"] p {
  text-align: right;
}

/* RTL Feature Cards */
[dir="rtl"] .text-left {
  text-align: right;
}

/* RTL Gap Spacing */
[dir="rtl"] .gap-4 {
  gap: 1rem;
  direction: rtl;
}

/* Mobile Language Switcher */
@media (max-width: 768px) {
  .language-switcher .language-dropdown {
    position: fixed;
    top: 50%;
    left: 50%;
    right: auto;
    transform: translate(-50%, -50%);
    margin-top: 0;
    width: 90%;
    max-width: 300px;
  }

  .language-switcher .language-dropdown.show {
    transform: translate(-50%, -50%);
  }
}
